query
stringlengths
7
5.25k
document
stringlengths
15
1.06M
metadata
dict
negatives
sequencelengths
3
101
negative_scores
sequencelengths
3
101
document_score
stringlengths
3
10
document_rank
stringclasses
102 values
the result of query is an array of object
public function __call($name, $argument){ if(strtolower(substr($name, 0, 7)) == 'queryby'){ $proper = strtolower(substr($name, 7)); if(strtolower($proper) != 'all'){ $ps = explode("_", $proper); $where = array(); for($i=0; $i<count($ps); $i++) $where[$ps[$i]] = $argument[$i]; $sql = "select * from ".$this->modName." ".$this->parseWhere($where); }else{ $sql = "select * from ".$this->modName; } $mysql = new DbMysql(Config::$config); $results = $mysql->query($sql); $res = array(); if($results){ foreach($results as $result){ $r = new Model(); foreach($result as $index => $value){ $r->{$index} = $value; } $res[] = $r; } return $res; } } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function toArray()\n {\n return $this->query->findAll();\n }", "public function getResult() {\n $this->execute();\n return $this->statement->fetchAll(PDO::FETCH_OBJ);\n }", "public function results()\n {\n //by default data get as array/stdclasses\n\n // to trunit to arrays of arrays\n // return json_decode(json_encode($this->_results), true);\n return $this->_results;\n // gives array data with column name and itsvalue not index array\n }", "public function resultSet(){\r\n $this->execute();\r\n return $this->stmt->fetchAll(PDO::FETCH_OBJ);\r\n /*PDO::FETCH_OBJ\r\n assim podemos imprimir como objeto exemplo\r\n foreach($users as user){\r\n echo $user->name . '<br>';\r\n ao invés de echo $user['name];\r\n */\r\n }", "public function return_results_objects($result){\n\n $objectsArr = [];\n foreach($result as $result){\n $obj = new $this->model();\n $obj->populate_object_data($result);\n $objectsArr[] = $obj;\n }\n\n return $objectsArr;\n\n }", "public function resultSet(){\n $this->execute();\n return $this->statement->fetchAll(PDO::FETCH_OBJ);\n }", "public function toArray(){\n\t\treturn json_decode(json_encode($this->rows), true);\n\t}", "public function resultToArray() {\n $array = array();\n\n if (is_array($this->_result)) {\n foreach ($this->_result as $res) {\n if (is_array($res)) {\n $array[] = $res;\n } else {\n $array[] = $this->fromObjectToArray($res);\n }\n }\n } else {\n $array[] = $this->fromObjectToArray($this->_result);\n }\n\n return $array;\n }", "public function resultSet(){\n\t\t$this->execute();\n\t\treturn $this->stmt->fetchAll(PDO::FETCH_OBJ);\n\t}", "public function getResultObject(): array\n {\n if (! empty($this->resultObject)) {\n return $this->resultObject;\n }\n\n // In the event that query caching is on, the result_id variable\n // will not be a valid resource so we'll simply return an empty\n // array.\n if (! $this->isValidResultId()) {\n return [];\n }\n\n if ($this->resultArray) {\n foreach ($this->resultArray as $row) {\n $this->resultObject[] = (object) $row;\n }\n\n return $this->resultObject;\n }\n\n if ($this->rowData !== null) {\n $this->dataSeek();\n }\n\n while ($row = $this->fetchObject()) {\n if (! is_subclass_of($row, Entity::class) && method_exists($row, 'syncOriginal')) {\n $row->syncOriginal();\n }\n\n $this->resultObject[] = $row;\n }\n\n return $this->resultObject;\n }", "public function getResult()\n {\n return $this->toArray();\n }", "private function getObjByResult($result){ \n //verifica tamanho do array\n if(count($result)>1){ \n $objects=array(); \n foreach ($result as $k => $v){ \n $objects[$k]=$this->getObjByRow($result[$k]);\n }\n return $objects;\n }\n else{ \n return array($this->getObjByRow($result[0]));\n }\n }", "public function results(): array;", "private static function resultToArray($result){\n\t\t$list = array();\n\t\twhile($row = mysqli_fetch_array($result)){\n\t\t\tarray_push($list, MovimentoDao::rowToObject($row));\t\t\t \n\t\t}\n\t\treturn $list;\n\t}", "public function fetch()\n {\n return (array)$this->query();\n }", "public function results($sql){\n\t\t\tif (!empty($sql['output'])){\n\t\t\t\tif ($sql['output'] == \"array\" || $sql['output'] == \"object\"){\n\t\t\t\t\t$type = $sql['output'];\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\t$type = \"array\";\n\t\t\t\t}\n\t\t\t}\n\t\t\telse{\n\t\t\t\t$type = \"array\";\n\t\t\t}\n\n\t\t\t$args = func_get_args();\n\t\t\tarray_shift($args);\n\n\t\t\tif (isset($args[0]) and is_array($args[0])){\n\t\t\t\t$args = $args[0];\n\t\t\t}\n\n\t\t\t$result = $this->run_query($sql,$args);\n\t\n\t\t\t$return = array();\n\n\t\t\twhile ($row = mysqli_fetch_assoc($result)){\n\t\t\t\tif ($type == \"array\"){\n\t\t\t\t\t$return[] = $row;\n\t\t\t\t}\n\t\t\t\tif ($type == \"object\"){\n\t\t\t\t\t$return[] = (object) $row;\n\t\t\t\t}\t\t\t\n\t\t\t}\n\n\t\t\tif ($result){\n\t\t\t\tif ($type == \"array\"){\n\t\t\t\t\treturn $return;\n\t\t\t\t}\n\t\t\t\tif ($type == \"object\"){\n\t\t\t\t\treturn (object) $return;\n\t\t\t\t}\n\t\t\t}\n\t\t}", "public function resultaSet(){\n $this->execute();\n return $this->statemet->fetchAll(PDO::FETCH_OBJ);\n }", "public function resultArray() {\n return $this->result_array;\n }", "public function getResult()\n {\n $data = [\n 'query' => $this->getQuery(),\n 'table' => $this->table,\n ];\n\n if (isset($this->columns)) {\n $data['columns'] = $this->columns;\n }\n if (isset($this->with)) {\n $data['with'] = $this->with;\n }\n if (isset($this->where)) {\n $data['where'] = $this->where;\n }\n if (isset($this->data)) {\n $data['data'] = $this->data;\n }\n if (isset($this->order)) {\n $data['order'] = $this->order;\n }\n if (isset($this->limit)) {\n $data['limit'] = $this->limit;\n }\n\n return $data;\n }", "public static function as_object_array($result) {\n\t\t$output = array();\n foreach ($result as $r) {\n $output[] = $r->as_array();\n }\n return $output;\n }", "public function get_result_arr()\n {\n return $this->result_object;\n }", "function results()\r\n {\r\n $result = array();\r\n if(!$this->res_id)\r\n {\r\n $this->error_msg = \"Could not execute query to $this->db_name database, wrong result id\";\r\n return 0;\r\n }\r\n while($row = mysql_fetch_object($this->res_id))\r\n {\r\n array_push($result, $row);\r\n }\r\n return $result;\r\n }", "public function getResult()\n {\n return array();\n }", "public function asObject() {\n\t\treturn $this->_sth->fetchAll(PDO::FETCH_OBJ);\n\t}", "public function resultSet()\n\t{\n\t\t$this->execute();\n\t\treturn $this->stm->fetchAll(PDO::FETCH_OBJ);\n\t}", "public function toArray(): array\n {\n return (array) $this->result();\n }", "private function resultToArray($res) {\r\n\r\n $lista = array();\r\n $i = 0;\r\n\r\n\t\t\tif($this->response) {\r\n\r\n\t while ($fila = mysql_fetch_assoc($this->response)) {\r\n\t $lista[$i] = $fila;\r\n\t $i = $i + 1;\r\n\t }\r\n\r\n\t\t\t}\r\n\r\n return $lista;\r\n\r\n }", "function getResult() {\n $rows = array();\n while ($row = mysqli_fetch_assoc($this->theResult)) {\n $rows[] = $row;\n }\n return $rows;\n }", "function resultToArray($result) {\n $rows = array();\n while($row = $result->fetch_assoc()) {\n $rows[] = $row;\n }\n return $rows;\n }", "function getResultArray($sql) {\n require_once(\"Y_DB_MySQL.class.php\");\n $db = new My();\n $array = array();\n $db->Query($sql);\n \n while ($db->NextRecord()) {\n array_push($array, $db->Record);\n }\n \n $db->Close();\n return $array;\n }", "public function result() : array;", "public function getArray()\n {\n return mysqli_fetch_array($this->resulset);\n }", "function db_result_to_array($result) {\n $res_array = array();\n \n for ($count=0; $row = $result->fetch_assoc(); $count++) {\n $res_array[$count] = $row;\n }\n \n return $res_array;\n }", "function resultToArray($result) {\n\t\t$rows = array();\n\t\twhile($row = $result->fetch_assoc()) {\n\t\t\t$rows[] = $row;\n\t\t}\n\t\treturn $rows;\n\t}", "public function GetResultados(){\n $resultado = null;\n\n while ($objeto = $this->resultados->fetch_object()) {\n $resultado[] = $objeto;\n }\n\n return $resultado;\n }", "public function getAllResult() {\n $rowsArray = array();\n while($row = mysql_fetch_array($this->result)) {\n $rowsArray[] = $row;\n }\n return $rowsArray;\n }", "public function getResult(): array;", "public function getResult(): array;", "function db_result_to_array($result) {\r\n $res_array = array();\r\n\r\n for ($count = 0; $row = $result->fetch_assoc(); $count++) {\r\n $res_array[$count] = $row;\r\n }\r\n return $res_array;\r\n }", "public function result_array()\n {\n $output = array();\n\n if (is_bool($this->result))\n {\n return $output;\n }\n\n while ($row = $this->result->fetch_assoc())\n {\n $output[] = $row;\n }\n\n $this->free_result();\n\n return $output;\n }", "public function all(){\n\n $a= parent::bdd()->query(\"SELECT * FROM auteur\");\n $b= $a->fetchall(\\PDO::FETCH_OBJ);\n\n return $b;\n\n }", "function dbResultArray($query) {\n\t$result = dbQuery($query);\n\tif($result === false) { return(false); }\n\twhile($row = mysqli_fetch_assoc($result)) {\n\t\t$output[] = $row;\n\t}\n\treturn($output);\n}", "public function getResultArray() : ?array{\n return $this->results;\n }", "function fetch_object_array($resource) {\n $result = array();\n if ($this->num_rows($resource) > 0) {\n while($row_obj = mysql_fetch_object($resource)) {\n array_push($result, $row_obj);\n }\n }\n\n return $result;\n }", "private static function mappingFromDBResult(&$result){\n $bindResult= [];\n $result->bind_result($bindResult['id'],$bindResult['descripcion'],$bindResult['estatus']);\n\n $results = [];\n while($result->fetch()){\n $estadoActual = new EstadoActual($bindResult['id'],$bindResult['descripcion']);\n $estadoActual->estatus = new Estatus($bindResult['estatus']);\n $results[] = $estadoActual;\n }\n return $results;\n }", "public function results()\n\t{\n\t\t// using any existing $resource, process the results into a stdClass object:\n\t\t$out = array();\n\n\t\t// if the resource exists, proceed:\n\t\tif (isset(self::$resource))\n\t\t{\n\t\t\t// loop through the results and add them to the object:\n\t\t\twhile ($row = mysql_fetch_assoc(self::$resource))\n\t\t\t{\n\t\t\t\t$out[] = (object)$row;\n\t\t\t}\n\t\t}\n\n\t\t// return $out as an object:\n\t\treturn (object)$out;\n\t}", "public static function find_by_query($sql){\n global $database;\n $result_set = $database->query($sql);\n $the_object_array = array();\n while($row = mysqli_fetch_array($result_set)){\n \n $the_object_array[] = static::instantation($row);// Getting array\n }\n\n return $the_object_array;\n }", "public function all(){ \n $arraytoret = array();\n $query='select *\n from Usuario';\n $results = $this->driver->exec($query);\n return $this->factory($results);\n}", "function obtenerArray(){\r\n\t\treturn mysql_fetch_array( $this->rs() );\r\n\t}", "public function results()\r\n\t{\r\n\t\treturn $this->model->get($this->select);\r\n\t}", "public function asArray() {\n\t\treturn $this->_sth->fetchAll(PDO::FETCH_ASSOC);\n\t}", "function getArrayResult($sql) {\n\t\tif ((! $res = $this->goSQL ( $sql )) || ($res->num_rows == 0))\n\t\t\treturn false;\n\t\tif ($res->num_rows == 1) {\n\t\t\treturn $res->fetch_assoc ();\n\t\t}\n\t\twhile ( $item = $res->fetch_assoc () ) {\n\t\t\t$items [] = $item;\n\t\t}\n\t\treturn $items;\n\t}", "function /* array(stdObject) */ getFacturas() {\n $consulta = \\Base\\FacturaQuery::create()\n ->select(array(\"id_factura\", \"id_cliente\", \"fecha\", \"cantidad_productos\"))\n ->find();\n $arregloObj = json_decode(json_encode($consulta->toArray()), FALSE);\n return $arregloObj;\n /*$sql = 'SELECT `id_factura`, `id_cliente`, `fecha`, `cantidad_productos` FROM `factura`';\n return $this->oMySQL->ejecutarConsultaSelect($sql);*/\n }", "public static function toArray() {\n $str = \"\n SELECT id, firstName, lastName, email, password\n FROM indPrj_persons\";\n \n // Obtain an array of persons records.\n $records = Database::query($str);\n \n // Push each row into a new array to be outputted.\n $x = 0;\n $output = array();\n while($row = mysql_fetch_array($records)){\n $output[$x]['id'] = $row['id'];\n $output[$x]['firstName'] = $row['firstName'];\n $output[$x]['lastName'] = $row['lastName'];\n $output[$x]['email'] = $row['email'];\n $output[$x]['password'] = $row['password'];\n $x++;\n }\n \n return $output;\n }", "public function getQueryAsArray();", "public function resultset(){\n\t\t$this->execute() ;\n\t\treturn $this->statement->fetchAll(PDO::FETCH_ASSOC) ;\n\t}", "private static function fromResultSetList( $res ) {\n\t\t$entityList = array();\n\t\t$i=0;\n\t\t//print_r($res);\n\t\twhile ( ($row = $res->fetch_array(MYSQLI_BOTH)) != NULL ) {\n\t\t\t//We get all the values an add into the array\n\t\t\t$entity = CakeDesignClass::fromResultSet( $row );\n\t\t\t\n\t\t\t$entityList[$i]= $entity;\n\t\t\t$i++;\n\t\t}\n\t\treturn $entityList;\n }", "public function get(){\n\n if(is_null($this->columns)) $this->columns = ['*'];\n $select_statement = $this->grammer->compileSelect($this);\n \n \n $result = $this->connection->get($select_statement); \n \n if(!empty($this->model)){\n \n return $this->return_results_objects($result);\n\n }else{\n \n return $this->return_result_as_array($result);\n }\n \n }", "public function results(){\n return $this->_result;\n }", "function db_result_to_array($result){\n\t\t\t\t\t\t\t$res_array = array();\n\n\t\t\t\t\t\t\tfor($count=0; $row= @mysql_fetch_array($result); $count++)\n\t\t\t\t\t\t\t\t$res_array[$count] = $row;\n\t\t\t\t\t\t\treturn $res_array;\n\t\t\t\t\t\t}", "private function execute_query($sql) {\n \n // execute the query\n $result = $this->db->Execute($sql);\n // initialise the data array\n $data = array();\n // convert the resultset into a Moodle style object\n if(!empty($result)) {\n while (!$result->EOF) {\n $obj = new stdClass;\n foreach (array_keys($result->fields) as $key) {\n $obj->{$key} = $result->fields[$key];\n }\n $index = reset($result->fields);\n $data[$index] = $obj;\n $result->MoveNext();\n }\n }\n\n // return an array of objects\n return $data;\n \n }", "public function toArray()\n {\n return $this->getEntity()->toArray();\n\t}", "public function getAll(): array\n {\n $this->setReqSql(\"SELECT * FROM {$this->table}\");\n return $this->outCast($this->fetchAll());\n }", "public function asArray(): array\n {\n return json_decode($this->result, true);\n }", "public function toArray()\n {\n return ['rows' => $this->rows] + parent::toArray();\n }", "public function All()\n {\n $query = \"SELECT * FROM $this->table\";\n $result = $this->query($query);\n return $this->convertArray($result);\n }", "function asListObject($result)\n {\n $lista = array();\n while ($linha = $result->fetch(PDO::FETCH_OBJ)) {\n $lista[] = $this->asObject($linha);\n }\n return $lista;\n }", "function loadObjectlist($query){\n\t\t$rows\t= array();\n\t\t$result = mysql_query($query);\n\t\tif($result){\n\t\t\twhile( $row = mysql_fetch_object($result) ){\n\t\t\t\t$rows[] = $row;\n\t\t\t}\n\t\t}\n\t\treturn $rows;\n\t}", "public function toArray()\r\n {\r\n return $this->all()->toArray();\r\n }", "public function results()\n {\n return $this->model->get($this->select);\n }", "function get_results($query=null) {\n\n\t\t\t// If there is a query then perform it if not then use cached results..\n\t\t\tif ( $query ) {\n\t\t\t\t$this->query($query);\n\t\t\t}\n\n\t\t\t// Send back array of objects. Each row is an object\n\t\t\treturn $this->last_result;\n\t\t}", "public function fetch_all(){\n $data = array();\n while( ($obj = oci_fetch_object($this->result)) != false ){\n $data[] = $obj;\n }\n return $data;\n }", "public function queryAllUsers(){\n try{\n $object=array();\n\n if($stmt=$this->DataBaseCon->prepare(\"SELECT userID,userEmail,userPhoto FROM UsersDataSet\")){\n $stmt->execute();\n $stmt->bind_result($userID, $userEmail,$userPhoto);\n while ($stmt->fetch())\n {\n $array =array('userID'=>$userID, 'userEmail'=>$userEmail,'userPhoto'=>$userPhoto);\n array_push($object,$array);\n }\n $stmt -> close();\n return $object;\n }\n else{\n return false;\n }\n\n }catch(Expection $e){\n return false;\n }\n }", "static function GetAll(){\r\n\t\t\t$str = \"select * from chuyendi\";\r\n\t\t\t$kq = Query($str);\t\r\n\t\t\t$arr=array();\t\t\r\n\t\t\tif($kq>0){\r\n\t\t\t\t$i=0;\r\n\t\t\t\twhile($row=mysql_fetch_array($kq)){\r\n\t\t\t\t\t$arr[$i] = self:: ConversToObject($row);\r\n\t\t\t\t\t$i++;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\treturn $arr;\r\n\t\t}", "public function fetchResults(){\n $resultsValues = $this->data;\n return $resultsValues;\n }", "private function sqlResToArray($res) { //appends sql query result to php array\n\t\t$phpArray = array();\n\t\t$res->data_seek(0);\n while ($row = $res->fetch_assoc()) {\n $phpArray[] = $row;\n }\n\t\treturn $phpArray;\n\t}", "public function arrayResult(){\n\t\t$this->arrayedResult = mysqli_fetch_assoc($this->result) or die (mysql_error($this->databaseLink));\n\t\treturn $this->arrayedResult;\n\t}", "function toArray(){\r\n\t\treturn $this->data;\r\n\t}", "public static function find_by_query($sql){\n global $database;\n\n // created an empty array \n $object_array = array();\n $result_set = $database->query($sql);\n\n // created a loop that fetches the data from the table in the database\n while($row = mysqli_fetch_array($result_set)){\n \n // this is where the key and values of the object are stored. \n $object_array[] = static::instantation($row);\n }\n return $object_array;\n\n }", "public function _arr($q)\n\t{\n\t\t\n\t\t$array = array();\n\t\t\n\t\tforeach ($q->result() as $r)\n\t\t{\n\t\t\t$array[] = $r;\n\t\t}\n\t\t\n\t\treturn $array;\n\t}", "public function all()\n {\n $records = R::findAll( $this->table_name(), \" order by id \");\n\n $object = array_map( function($each_record) {\n return $this->map_reford_to_object( $each_record );\n },\n $records\n );\n\n return array_values( $object );\n }", "public function toArray() : array\n {\n return $this->all();\n }", "public function resultSet()\n {\n $this->execute();\n return $this->stmt->fetchAll(PDO::FETCH_ASSOC);\n }", "public function getAll()\n {\n $sql = \"SELECT * FROM \".$this->table;\n $req = Database::getBdd()->prepare($sql);\n $req->execute();\n return $req->fetchAll(PDO::FETCH_OBJ);\n \n }", "public static function fromResultSetList( $res ) {\n $entityList = array();\n $i=0;\n //while ( ($row = $res->fetch_array(MYSQLI_BOTH)) != NULL ) {\n foreach ( $res as $row)\n {\n //We get all the values an add into the array\n $entity = ApplicationADO::fromResultSet( $row );\n\n $entityList[$i]= $entity;\n $i++;\n }\n return $entityList;\n }", "public function GetAllRows() : ARRAY\r\n {\r\n return($this->preparedStatement->fetchAll(\\PDO::FETCH_ASSOC));\r\n }", "public function toArray()\n {\n\n\n return $this->data;\n }", "function FetchArray() {\n\t\t\t$this->ConnectServer();\n\t\t\t$array = pg_fetch_array($this->result, NULL, PGSQL_ASSOC);\n\t\t\t$this->DisconnectServer();\n\t\t\treturn $array;\n\t\t}", "function result()\n {\n return $this->rows;\n }", "public function result_array()\n\t{\n\t\tif (count($this->result_array) > 0)\n\t\t{\n\t\t\treturn $this->result_array;\n\t\t}\n\t\telseif (count($this->result_object) > 0)\n\t\t{\n\t\t\tfor ($i = 0, $c = count($this->result_object); $i < $c; $i++)\n\t\t\t{\n\t\t\t\t$this->result_array[$i] = (array) $this->result_object[$i];\n\t\t\t}\n\n\t\t\treturn $this->result_array;\n\t\t}\n\t\telseif (is_array($this->row_data))\n\t\t{\n\t\t\tif (count($this->row_data) === 0)\n\t\t\t{\n\t\t\t\treturn $this->result_array;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$row_index = count($this->row_data);\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$row_index = 0;\n\t\t\t$this->row_data = array();\n\t\t}\n\n\t\t$row = NULL;\n\t\twhile ($row = $this->_fetch_assoc())\n\t\t{\n\t\t\t$this->row_data[$row_index++] = $row;\n\t\t}\n\n\t\t// Un-comment the following line, in case it becomes needed\n\t\t// $this->_data_seek();\n\t\treturn $this->result_array = $this->row_data;\n\t}", "public function toArray()\n {\n return $this->fetchData;\n }", "public function result_object()\n\t{\n\t\tif (count($this->result_object) > 0)\n\t\t{\n\t\t\treturn $this->result_object;\n\t\t}\n\t\telseif (count($this->result_array) > 0)\n\t\t{\n\t\t\tfor ($i = 0, $c = count($this->result_array); $i < $c; $i++)\n\t\t\t{\n\t\t\t\t$this->result_object[] = (object) $this->result_array[$i];\n\t\t\t}\n\n\t\t\treturn $this->result_object;\n\t\t}\n\t\telseif (is_array($this->row_data))\n\t\t{\n\t\t\tif (count($this->row_data) === 0)\n\t\t\t{\n\t\t\t\treturn $this->result_object;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$row_index = count($this->row_data);\n\t\t\t\tfor ($i = 0; $i < $row_index; $i++)\n\t\t\t\t{\n\t\t\t\t\t$this->result_object[$i] = (object) $this->row_data[$i];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$row_index = 0;\n\t\t\t$this->row_data = array();\n\t\t}\n\n\t\t$row = NULL;\n\t\twhile ($row = $this->_fetch_object())\n\t\t{\n\t\t\t$this->row_data[$row_index] = (array) $row;\n\t\t\t$this->result_object[$row_index++] = $row;\n\t\t}\n\n\t\t// Un-comment the following line, in case it becomes needed\n\t\t// $this->_data_seek();\n\t\treturn $this->result_object;\n\t}", "public function toArray() {\n return $this->getData();\n }", "public function toArray(): array\n {\n $this->initialize();\n return $this->rows;\n }", "public function toArray()\r\n\t{\r\n\t\treturn $this->m_data;\r\n\t}", "public function query_arr() {\n\t\t\treturn \\uri\\generate::query_array($this->object);\n\t\t}", "public function getAll(): array;", "public function getAll(): array;", "public function getAll(): array;", "function result_to_array($results) {\n $items = [];\n while ($item = mysqli_fetch_array($results)) {\n $items[] = $item;\n }\n return $items; \n }", "public function get(): array\n {\n return Arr::map(\n $this->query->get(),\n fn($item) => call_user_func($this->class . \"::__createInstanceFromArray\", $item)\n );\n }" ]
[ "0.7285592", "0.72355556", "0.7223293", "0.7122238", "0.7097079", "0.7091295", "0.704751", "0.70346886", "0.70292515", "0.6969334", "0.69539505", "0.6952952", "0.6927832", "0.6915799", "0.6869562", "0.68644124", "0.6862827", "0.6840711", "0.6837606", "0.6827231", "0.68017244", "0.6795948", "0.6772583", "0.67553794", "0.6752509", "0.6729735", "0.6717459", "0.6712721", "0.66879207", "0.6684614", "0.6677869", "0.66436535", "0.66367775", "0.66283077", "0.6614936", "0.66134757", "0.6611201", "0.6611201", "0.66081977", "0.660452", "0.6586002", "0.65833807", "0.65753806", "0.65712464", "0.65652543", "0.65587884", "0.65408856", "0.65382695", "0.6523619", "0.6510679", "0.65079224", "0.6507256", "0.6506042", "0.6505541", "0.6505471", "0.6505016", "0.65026146", "0.64904976", "0.6484053", "0.6483112", "0.648192", "0.6480509", "0.6475512", "0.6474031", "0.6473329", "0.64683694", "0.6463733", "0.6461482", "0.64571023", "0.6456382", "0.64537895", "0.64513105", "0.6444642", "0.6442738", "0.6439592", "0.6435542", "0.6433853", "0.6431764", "0.6431201", "0.6427518", "0.64247245", "0.64188206", "0.6409875", "0.64034194", "0.6401908", "0.6389712", "0.6379121", "0.63789856", "0.63702416", "0.63629645", "0.6361169", "0.6359648", "0.63594794", "0.63412976", "0.63351154", "0.633219", "0.6330256", "0.6330256", "0.6330256", "0.63159454", "0.6307569" ]
0.0
-1
/$datas = array(array('filename' => 'xxx', 'contents' => 'yyyyy'), array('filename' => 'xxx', 'contents' => 'yyyyy'));
public function add($datas, $options=''){ $fields = array_keys($datas[0]); foreach($datas as $data){ $value = array(); foreach($data as $key => $val){ $val = $this->parseValue($val); if(is_scalar($val)){ $value[] = $val; } } $values[] = '('.implode(',', $value).')'; } $sql = "insert into ". $this->modName. "(". implode(',', $fields). ') values '.implode(',',$values); // echo $sql."<br/>"; $mysql = new DbMysql(Config::$config); return $mysql->execute($sql); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function setDatas(array $datas){\n\t\tforeach($datas as $k=>$v)\n\t\t\t$this->__set($k,$v);\n\t\treturn $this;\n\t}", "public function importArray($data);", "function prepara_para_json($array) {\n return array(\"data\" => $array);\n}", "function prepara_para_json($array) {\n return array(\"data\" => $array);\n}", "function getData()\n{\n return array(\n array(\"name\"=>\"Bob\",\"age\"=>50),\n array(\"name\"=>\"Jane\",\"age\"=>41),\n array(\"name\"=>\"Sarah\",\"age\"=>30)\n );\n}", "private function build_data(array $data)\n {\n // do stuff\n\n return $data;\n }", "function data_extract( array $files ) {\n\n // Recursively extract the data key from the files.\n return array_map(function($file) { \n\n // Extract the data key.\n return (isset($file['data']) ? $file['data'] : data_extract($file));\n\n }, $files);\n\n}", "public static function crear(array $data);", "function cjpopups_reArrayFiles(&$file_post)\n{\n $file_ary = array();\n $file_count = count($file_post['name']);\n $file_keys = array_keys($file_post);\n\n for ($i=0; $i<$file_count; $i++) {\n foreach ($file_keys as $key) {\n $file_ary[$i][$key] = $file_post[$key][$i];\n }\n }\n return $file_ary;\n}", "function imports($files = array(), &$data = array())\r\n\t{\r\n\t\t\r\n\t}", "function arrayToFile($oldList, $key, $value, $fileName, $name) {\n $oldList[\"$key\"] = $value;\n $newList = http_build_query($oldList, '', ', ');\n $newList = noAscii($newList);\n $newList = str_replace(\"=\", \"=>\", \"$newList\");\n $newList = '\"'.$newList;\n $newList = str_replace(\"=>\", '\"=>\"', $newList);\n $newList = str_replace(\", \", '\", \"', $newList);\n $arrayFile = fopen(\"$fileName\", \"w\");\n fwrite($arrayFile, \"<?php \".'$'.$name.' = array('.$newList.'\"); ?>');\n fclose($arrayFile);\n}", "function insertArray($data) {\n\t\t$ar = array();\n\t\t$str = '';\n\t\t$str1 = '';\n\t\tforeach($data as $key=>$value)\n\t\t{\n\t\t\tif(empty($str))\n\t\t\t{\n\t\t\t\t$str1 = $key;\n\t\t\t\t$str = '\"'.strip_tags(trim($value)).'\"';\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$str1 = ','.$key;\n\t\t\t\t$str .=' ,\"'.strip_tags(trim($value)).'\"';\n\t\t\t}\n\t\t}\n\t\t$ar['fields'] = $str1;\n\t\t$ar['values'] = $str;\n\t\treturn $ar;\n\t}", "public function call(array $datas);", "function _create_array_code ($data = []) {\n\t\t$code = \"array(\";\n\t\tforeach ((array)$data as $k => $v) {\n\t\t\t$code .= \"'\".$this->_put_safe_slashes($k).\"'=>\";\n\t\t\t$code .= is_array($v) ? $this->_create_array_code($v) : \"'\". $this->_put_safe_slashes($v). \"',\";\n\t\t}\n\t\t$code .= \"),\";\n\t\treturn $code;\n\t}", "function ajout_fichier(array $array){\n $json = json_encode($array);\n file_put_contents(FILE_QUESTION, $json);\n}", "private function apiGetBuild($data)\n {\n $output = array();\n for($i=0; $i<count($data); $i++){\n $output = array(\n\n );\n }\n\n return $output;\n }", "public function buildFilesSet1()\n {\n // are used as the test method arguments. If we want to use an array\n // as a test data set, we need to return a nested array\n return array(array(\n 'example/image2' =>\n (new DebianImage())->from('example/image1'),\n 'example/image1' =>\n (new DebianImage())->from('ubuntu')\n ,\n ));\n }", "function import(array $data);", "public function addData(array $arr);", "public function buildFilesSet3()\n {\n // are used as the test method arguments. If we want to use an array\n // as a test data set, we need to return a nested array\n return array(array(\n 'example/image4' =>\n (new DebianImage())->from('example/image2'),\n 'example/image2' =>\n (new DebianImage())->from('example/image1'),\n 'example/image1' =>\n (new DebianImage())->from('ubuntu'),\n 'example/image3' =>\n (new DebianImage())->from('example/image2'),\n 'example/image5' =>\n (new DebianImage())->from('debian'),\n ));\n }", "function show_content($arr)\n{\n $content = print_r($arr, TRUE);\n file_put_contents('/data1/php_var_contents.log', $content);\n}", "private static function _cookData($data) {\n\t\t$tmp = array();\n\t\tif (isset($data['name'])) $tmp['name'] = $data['name'];\n\t\tif (isset($data['link'])) $tmp['link'] = $data['link'];\n\t\tif (isset($data['img'])) $tmp['img'] = $data['img'];\n\t\tif (isset($data['sort'])) $tmp['sort'] = intval($data['sort']);\n\t\tif (isset($data['hits'])) $tmp['hits'] = intval($data['hits']);\n\t\tif (isset($data['status'])) $tmp['status'] = $data['status'];\n\t\tif (isset($data['type_id'])) $tmp['type_id'] = $data['type_id'];\n\t\tif (isset($data['descrip'])) $tmp['descrip'] = $data['descrip'];\n\t\tif (isset($data['is_recommend'])) $tmp['is_recommend'] = $data['is_recommend'];\n\t\tif (isset($data['star'])) $tmp['star'] = $data['star'];\n\t\treturn $tmp;\n\t}", "public function creating(array $data);", "function reArrayFiles(&$file_post) {\n\n $file_ary = array();\n $file_count = count($file_post['name']);\n $file_keys = array_keys($file_post);\n\n for ($i=0; $i<$file_count; $i++) {\n foreach ($file_keys as $key) {\n $file_ary[$i][$key] = $file_post[$key][$i];\n }\n }\n\n return $file_ary;\n}", "private function _data( $data=array() )\n {\n $output = array();\n\n if( is_array( $data ) )\n {\n $query = http_build_query( $data, '', '&' );\n parse_str( $query, $output );\n }\n return $output;\n }", "public function buildFilesSet2()\n {\n // are used as the test method arguments. If we want to use an array\n // as a test data set, we need to return a nested array\n return array(array(\n 'example/image4' =>\n (new DebianImage())->from('example/image2'),\n 'example/image2' =>\n (new DebianImage())->from('example/image1'),\n 'example/image1' =>\n (new DebianImage())->from('ubuntu'),\n 'example/image3' =>\n (new DebianImage())->from('example/image2'),\n 'example/image5' =>\n (new DebianImage())->from('debian'),\n ));\n }", "public function data(array $data)\n\t{\n\t\tself::$__data = array_merge(self::$__data, $data);\n\t}", "private function buildMultipartFormData(array $data, string $fileKeyName, $stream): array\n {\n $this->logger->debug('Creating multi-part form array data (complex and expensive)');\n $formData = [\n 'multipart' => [],\n ];\n\n foreach ($data as $id => $value) {\n // Always send as a string unless it's a file\n $multiPart = [\n 'name' => $id,\n 'contents' => null,\n ];\n\n if ($id === $fileKeyName) {\n $multiPart['contents'] = $stream;\n } else {\n $multiPart['contents'] = (string)$value;\n }\n\n $formData['multipart'][] = $multiPart;\n }\n\n return $formData;\n }", "function domains_add_xmlfile($files){\n $res = array();\n foreach($files as $key=>$file) $res[$key] = $this->domain_add_xmlfile($key,$file);\n return $res;\n }", "private function readParamFiles($karray) {\n $res = array();\n foreach($karray as $kid) {\n // $contents = Storage::disk('local')->get(public_path().'/'.env('PBS_KIOSK_DIR').'/kiosk'.$kid.'.params');\n //$fp = fopen(public_path().'/'.env('PBS_KIOSK_DIR').'/kiosk'.$kid.'.params','r');\n $contents = file_get_contents(public_path().'/'.env('PBS_KIOSK_DIR').'/kiosk'.$kid.'.params');\n $parsedLines = $lines = preg_split(\"/\\r?\\n|\\r/\", $contents);\n $cnt = count($parsedLines);\n\n $i=0;\n $line = '';\n // Loop untill max line or found the searched param\n while($i < $cnt && !str_starts_with( $line , 'filename=' )) {\n $line = $parsedLines[$i];\n $i++;\n }\n if(str_starts_with ( $line, 'filename=' )) {\n $lArray = explode('=', $line);\n // echo \"Kid \" . $kid . \" fn : \" .$lArray[1]; \n // $nv = array($kid => $lArray[1]);\n $res[$kid] = $lArray[1];\n } else {\n // $nv = array($kid => '');\n // $res = array_merge( $res, $nv );\n $res[$kid] = '$lArray[1]';\n }\n }\n\n return $res;\n }", "public function getFile($datas = [])\r\n {\r\n return $this->telegram(\"getFile\", $datas);\r\n }", "public function data(array $data = null);", "public function get_contents_array($file)\n {\n }", "public function get_contents_array($file)\n {\n }", "public function get_contents_array($file)\n {\n }", "public function get_contents_array($file)\n {\n }", "public function get_contents_array($file)\n {\n }", "public function createMultiple(array $data)\n {\n }", "public function asJson($content=[])\n{\n self::$stored['json'][] = $content;\n return json_encode($content);\n}", "public function create(array $data): array\n {\n\t\t$fileHandler = $this->getFileHandler('a');\n\t\t$written = fwrite($fileHandler, $data['name'].'|'.$data['link'].\"\\n\");\n\t\t$this->closeFile($fileHandler);\n\t\tif($written===false){\n\t\t\tthrow new Exception('Attempt to write to storage file failed', 501);\n\t\t}\n\t\treturn ['name'=>$data['name'], 'link'=>$data['link']];\n\t}", "function domains_add_xml($files){\n $res = array();\n foreach($files as $key=>$file) $res[$key] = $this->domain_add_xml($key,$file);\n return $res;\n }", "abstract public function generateData(array $data);", "public function setData(Array $data);", "public function cache_data( $name, array $data ){\n foreach( $data as $hash => $d ){\n // cache source file independently\n $this->store( $hash, $d['js'] );\n unset( $data[$hash]['js'] );\n } \n // cache remaining array data\n $this->store( $name, $data );\n }", "public static function formatArray($files){\n $newAry = array();\n $counter = count($files['name']);\n while($counter > 0){\n $filesNewArr = array();\n foreach($files as $file => $value){\n $i = $counter-1;\n $filesNewArr[$file] = $value[$i];\n $i--;\n } \n $newAry[] = $filesNewArr;\n $counter--;\n }\n return $newAry;\n }", "public static function appendContents($filename, array $data)\n {\n $contents = static::arrayToString($data);\n File::appendContents($filename, $contents);\n }", "function getFormData($array) {\r\n $data = array();\r\n foreach($array as $key=>$dataname){\r\n $data[$dataname] = xtc_db_input($_POST[$dataname]);\r\n }\r\n return $data;\r\n }", "public static function widget_imagedata($data){\n wfPlugin::includeonce('wf/array');\n $data = new PluginWfArray($data);\n $app_dir = wfArray::get($GLOBALS, 'sys/app_dir');\n $element = array();\n if(wfFilesystem::fileExist($app_dir.$data->get('data/filename'))){\n $exif = PluginImageExif_v1::getImageData($data->get('data/filename'));\n foreach ($exif as $key => $value) {\n $ul = wfDocument::createHtmlElementAsObject('ul');\n foreach ($value as $key2 => $value2) {\n if(is_array($value2)){\n $value2 = json_encode($value2);\n }\n $ul->set('innerHTML/', wfDocument::createHtmlElement('li', $key2.': '.$value2));\n }\n $element[] = wfDocument::createHtmlElement('h1', $key);\n $element[] = $ul->get();\n }\n wfDocument::renderElement($element);\n }else{\n echo 'Could not find file '.$data->get('data/filename');\n }\n }", "public function getData(): array;", "public function getData(): array;", "public function getData(): array;", "public function getData(): array;", "public function createArray(array $data) {\n\t\treturn array_map(array($this, 'create'), $data);\n\t}", "private static function _cookData($data) {\n\t\t$tmp = array();\n\t\tif(isset($data['out_id'])) $tmp['out_id'] = $data['out_id'];\n\t\tif(isset($data['file_id'])) $tmp['file_id'] = $data['file_id'];\n\t\tif(isset($data['label_id'])) $tmp['label_id'] = $data['label_id'];\n\t\tif(isset($data['create_time'])) $tmp['create_time'] = intval($data['create_time']);\n\t\tif(isset($data['update_time'])) $tmp['update_time'] = intval($data['update_time']);\n\t\treturn $tmp;\n\t}", "function LogArrayToFile($data = NULL){\n if($data == NULL){\n $data = JRequest::get('POST');\n }\n if( !($file = fopen( JPATH_BASE.\"/../log.txt\", \"a+\") )) { // Um diretorio acima da raiz do joomla\n echo 'Erro ao criar arquivo!'; \n } else {\n fwrite($file, date(\"Y-m-d h:i:s\"). \" | \");\n foreach($data AS $item => $value){\n $conteudo = $item . '> '.$value . ' | ';\n if( fwrite($file, $conteudo) === FALSE ){\n echo 'Erro ao escrever dados';\n }\n }\n fwrite($file, \"\\n\");\n } \n}", "public function addGlobals(array $datas): RenderTwig\n {\n\t foreach ($datas as $name => $global) {\n\t\t $this->globals[$name] = $global;\n\t }\n return $this;\n }", "public function setData(array $data = []);", "function to_entry() \n {\n $entry = array(\"entry\" => array(\"content\" => array()));\n # set file array\n $entry[\"entry\"][\"content\"][\"file\"] = array();\n foreach ($this->file_objs as $f) {\n array_push($entry[\"entry\"][\"content\"][\"file\"], $f->to_array());\n }\n # set params dict\n $entry[\"entry\"][\"content\"][\"params\"] = array();\n $entry[\"entry\"][\"content\"][\"params\"][\"name\"] = $this->name;\n $entry[\"entry\"][\"content\"][\"params\"][\"yt_id\"] = $this->yt_id;\n $entry[\"entry\"][\"content\"][\"params\"][\"tag\"] = $this->tags;\n if (! empty($this->meta_objs) ) {\n $entry[\"entry\"][\"content\"][\"params\"][\"meta\"] = array();\n foreach ($this->meta_objs as $m) {\n array_push($entry[\"entry\"][\"content\"][\"params\"][\"meta\"], $m->to_array());\n }\n }\n # set file_params dict\n $entry[\"entry\"][\"content\"][\"file_params\"] = array();\n $entry[\"entry\"][\"content\"][\"file_params\"][\"thumb_used\"] = $this->thumb_used;\n $entry[\"entry\"][\"content\"][\"file_params\"][\"update_files\"] = $this->update_files;\n # set chapters\n $entry[\"entry\"][\"content\"][\"chapter\"] = array();\n foreach ($this->chapters as $ch) {\n array_push($entry[\"entry\"][\"content\"][\"chapter\"], $ch->to_array());\n }\n # set comments\n $entry[\"entry\"][\"content\"][\"comment\"] = array();\n // foreach ($this->comments as $ch) {\n // array_push($entry[\"entry\"][\"content\"][\"comment\"], $ch->to_array());\n // }\n\n return $entry;\n }", "function buildArray($dir,$file,$onlyDir,$type,$allFiles,$files) {\n\n\t$typeFormat = FALSE;\n\tforeach ($type as $item)\n {\n \tif (strtolower($item) == substr(strtolower($file), -strlen($item)))\n\t\t\t$typeFormat = TRUE;\n\t}\n\n\tif($allFiles || $typeFormat == TRUE)\n\t{\n\t\tif(empty($onlyDir))\n\t\t\t$onlyDir = substr($dir, -strlen($dir), -1);\n\t\t$files[$dir.$file]['path'] = $dir;\n\t\t$files[$dir.$file]['file'] = $file;\n\t\t$files[$dir.$file]['size'] = fsize($dir.$file);\n\t\t$files[$dir.$file]['date'] = filemtime($dir.$file);\n\t}\n\treturn $files;\n}", "static public function storeAll(array $data)\n {\n $fotos = [];\n $foto = [];\n \n $imageNames = self::storeImage( $data['fotos'], $data['id_comercio']);\n\n foreach ($data['fotos'] as $key => $source) {\n\n\n \n $foto = self::store([\n 'nb_foto' => $imageNames[$key],\n 'tx_src' => $imageNames[$key],\n 'id_tipo_foto' => 1,\n 'id_comercio' => $data['id_comercio'],\n 'tx_observaciones' => null,\n 'id_status' => 1,\n 'id_usuario' => $data['id_usuario'],\n ]);\n\n $fotos[] = ['tx_src' => $imageNames[$key]];\n }\n\n return $fotos;\n }", "public static function store(array $data);", "public function makeArray() {\n\t\tif ( $this->file == '' ) {\n\t\t\tif ( $this->rawdata == '' ) {\n\t\t\t\techo \"No filename specified, aborting\";\n\n\t\t\t\treturn false;\n\t\t\t}\n\t\t} else {\n\t\t\tif ( ! file_exists( $this->file ) ) {\n\t\t\t\techo \"File $this->file does not exist, aborting\";\n\n\t\t\t\treturn false;\n\t\t\t} else {\n\t\t\t\t$this->rawdata = file_get_contents( $this->file );\n\t\t\t}\n\t\t}\n\n\t\tif ( $this->rawdata == '' ) {\n\t\t\techo \"No data in file, aborting\";\n\n\t\t\treturn false;\n\t\t}\n\n\t\t$this->parse2array();\n\n\t\treturn true;\n\t}", "protected function loadFilesIntoArray($files)\n\t{\n\t\t$data = array();\n\n\t\tforeach ($files as $file)\n\t\t{\n\t\t\t$data[$file] = file_get_contents($file);\n\t\t}\n\n\t\treturn $data;\n\t}", "function data_flatten( array $files, $delimiter = '/', $parent = null ) {\n\n // Initialize the results.\n $result = [];\n\n // Get the prefix.\n $prefix = (isset($parent) and $parent !== '') ? $parent.$delimiter : '';\n\n // Flatten all files to a single array level.\n foreach( $files as $key => $file ) {\n\n // Capture files, and save them.\n if( isset($file['path']) ) $result[$prefix.$key] = $file;\n\n // Otherwise, assume it's an array and continue to flatten it.\n else $result = array_merge($result, data_flatten($file, $delimiter, $prefix.$key));\n\n }\n\n // Return the result.\n return $result;\n\n}", "public function __construct(array $data = [], bool $writeAll = false);", "public function postDataArrayProvider()\n {\n\t$data_array = array(\n\t 'photo' => 'test.jpg',\n\t 'id' => 1,\n\t 'author' => 'Anonymous',\n\t 'subject' => '',\n\t 'updated' => 0,\n\t 'content' => 'Testing'\n\t);\n\treturn array(\n\t 'default' => array($data_array)\n\t);\n }", "public function fileStore($data)\n {\n $url = array();\n foreach ($data as $img) {\n $image = $img;\n $imageName = $image->getClientOriginalName();\n $image->move(storage_path('products/images'), $imageName);\n array_push($imageName,$url);\n // $imageUpload = new ImageUpload();\n // $imageUpload->filename = $imageName;\n // $imageUpload->save();\n }\n\n return $url;\n }", "public function __construct(array $datas = [])\n {\n $this->hydrate($datas);\n $this->readoptions();\n $this->generatecontent();\n }", "function Array_Get_Perfiles($perfil)\n{\n\tif($perfil=='3')\n\t{\n\t\t$perfiles = consultar(\"SELECT * FROM `tb_perfiles`\");\n\t}\n\telse\n\t{\n\t\t$perfiles = consultar(\"SELECT * FROM `tb_perfiles` WHERE id_perfiles!=3\");\n\t}\n\t$datos = array();\n\twhile ($valor = mysqli_fetch_array($perfiles)) {\n\t\t$id_perfiles = $valor['id_perfiles'];\n\t\t$nombre = $valor['nombre'];\n\t\t$descripcion = $valor['descripcion'];\n\t\t$nivel = $valor['nivel'];\n\t\t$vector = array(\n\t\t\t'id_perfiles'=>\"$id_perfiles\",\n\t\t\t'nombre' => \"$nombre\",\n\t\t\t'descripcion' => \"$descripcion\",\n\t\t\t'nivel' => \"$nivel\"\n\t\t\t);\n\t\tarray_push($datos, $vector);\n\t}\n\n\treturn $datos;\t\n\n}", "function array_to_file(array $data, $file = DEFAULT_METAFILE)\n{\n try {\n if (!$data || !is_array($data) || !count($data)) {\n return true;\n }\n $dir = ROOT_FOLDER;\n $filename = $file;\n if (!file_exists($dir)) {\n mkdir($dir, 0755, true);\n }\n $file = fopen($filename, \"w\");\n foreach ($data as $key => $value) {\n fwrite($file, (string) $key . \": \" . (string) $value . \"\\n\");\n }\n fclose($file);\n return true;\n } catch (Exception $e) {\n throw new Exception($e->getMessage(), $e->getCode());\n }\n}", "function export($array, $file){\n\t$file =fopen($file, 'w');\n\t$data = json_encode($array, FILE_USE_INCLUDE_PATH);\n\tfwrite($file, $data);\n\tfclose($file);\n}", "public static function fromData(array $data);", "public function build(): array;", "public function build(): array;", "function contents($parser, $data){\n global $current_tag, $xml_picture_key, /*$xml_name_key, $xml_size_key,*/ $xml_link_key, $counter, $featured_array;\n switch($current_tag){\n case $xml_picture_key:\n $featured_array[$counter]->picture = $data;\n break;\n /*case $xml_name_key:\n $featured_array[$counter]->name = $data;\n break;\n\t\t\tcase $xml_size_key:\n $featured_array[$counter]->size = $data;\n break;*/\n case $xml_link_key:\n $featured_array[$counter]->link = $data;\n $counter++;\n break;\n }\n }", "function json_builder($directories)\n{\n global $totalcount;\n $output = [];\n $output[\"cameras\"] = camera_mapper($directories);\n $output[\"stats\"] = [\"videos\" => $totalcount, \"directories\" => count($directories), \"generated\" => time()];\n $output = json_encode($output, JSON_UNESCAPED_SLASHES | JSON_PRETTY_PRINT);\n file_put_contents($_SERVER['DOCUMENT_ROOT'] . DIRECTORY_SEPARATOR . \"cached.json\", $output);\n return $output;\n}", "function domains_add($files){\n $res = array();\n foreach($files as $key=>$file) $res[$key] = $this->domain_add($key,$file);\n return $res;\n }", "public function create(array $data);", "public function create(array $data);", "public function create(array $data);", "public function create(array $data);", "public function create(array $data);", "public function create(array $data);", "public function create(array $data);", "public function create(array $data);", "public function create(array $data);", "public function create(array $data);", "public function create(array $data);", "public function create(array $data);", "public function create(array $data);", "public function create(array $data);", "public function create(array $data);", "public function create(array $data);", "public function create(array $data);", "public function create(array $data);", "public function setData(array $data);", "public function setData(array $data);", "public function setData(array $data);", "function load_array(&$array){ // loading template from array\n\tif (!is_array($array)) system_die('Invalid variable set (must be array)', 'Template->load_array');\n\t$this->template = $array;\n\tunset($this->result);\n\tunset($this->filename);\n}", "public function addData(array $data): array\n {\n return array_merge($data, [\n 'app' => [\n 'version' => App::getConfig('app.version')\n ],\n 'bones' => [\n 'version' => App::getBonesVersion()\n ],\n 'year' => date('Y')\n ]);\n }", "public function data($args)\n\t{\n\t\tforeach (func_get_args() as $arg)\n\t\t{\n\t\t\tif (is_array($arg))\n\t\t\t{\n\t\t\t\t$this->data = array_merge_recursive($arg, $this->data);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$this->data[] = $arg;\n\t\t\t}\n\t\t}\n\n\t\treturn $this;\n\t}" ]
[ "0.572569", "0.563453", "0.56290877", "0.56290877", "0.56248975", "0.5595201", "0.54985356", "0.5410067", "0.54024047", "0.53835887", "0.53685755", "0.5361213", "0.53497297", "0.5346931", "0.5326384", "0.5282348", "0.5267896", "0.52468663", "0.5245748", "0.52289814", "0.5215303", "0.5207598", "0.5194912", "0.518201", "0.5169912", "0.5166521", "0.5165315", "0.51519996", "0.5147029", "0.51351607", "0.51325554", "0.51249593", "0.51188236", "0.51188236", "0.51188236", "0.5118174", "0.51156896", "0.51130646", "0.51119953", "0.51096547", "0.51089174", "0.51060796", "0.5098741", "0.5092889", "0.5084019", "0.5072935", "0.5072516", "0.50677794", "0.50630623", "0.50630623", "0.50630623", "0.50630623", "0.50557315", "0.50301635", "0.5025467", "0.50235045", "0.5020795", "0.50080997", "0.5003288", "0.4989756", "0.49861687", "0.49808574", "0.49795616", "0.4978333", "0.49716017", "0.49713936", "0.49702638", "0.49630928", "0.4955946", "0.49533838", "0.4951195", "0.49501303", "0.49462754", "0.49462754", "0.49446735", "0.49420875", "0.49416304", "0.49416235", "0.49416235", "0.49416235", "0.49416235", "0.49416235", "0.49416235", "0.49416235", "0.49416235", "0.49416235", "0.49416235", "0.49416235", "0.49416235", "0.49416235", "0.49416235", "0.49416235", "0.49416235", "0.49416235", "0.49416235", "0.4933739", "0.4933739", "0.4933739", "0.4931582", "0.4927107", "0.49189544" ]
0.0
-1
/$options=array('table' => 'xxx' 'where')
public function del($options){ $sql = "delete from " .$this->modName." " .$this->parseWhere($options['where']); $mysql = new DbMysql(Config::$config); return $mysql->execute($sql); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Private function where($tableName,array $conditions,array $options = array()){\n\t\tif(empty ($options))$options = array('prepend' => true ,'join' => ' AND ');\n\t\tif(!isset($options['join'])) $options['join'] = ' AND ';\n\t\t$ops = $this->_operators;\n\t\t$schema = $this->schema[$tableName];\n\t\t$conditions = $this->addSlashesDeep($conditions);\n\t\tswitch (true) {\n\t\t\tcase empty($conditions):\n\t\t\t\treturn '';\n\t\t\tcase is_string($conditions):\n\t\t\t\treturn ($options['prepend']) ? \" WHERE {$conditions}\" : $conditions;\n\t\t\tcase !is_array($conditions):\n\t\t\t\treturn '';\n\t\t}\n\t\t$result = array();\n\n if(count($conditions) > 0 && count($schema) > 0){\n foreach ($conditions as $key => $value) {\n $schema[$key] = isset($schema[$key]) ? $schema[$key] : array();\n switch (true) {\n case strtolower($key) == 'or':\n case strtolower($key) == 'and':\n $result[] = $this->where($tableName,$value,array('prepend' => FALSE,'join' => \" {$key} \"));\n break;\n case (is_numeric($key) && is_array($value)):\n $result[] = $this->where($tableName,$value,array('prepend' => FALSE));\n break;\n case (is_numeric($key) && is_string($value)):\n $result[] = $value;\n break;\n case (is_string($key) && is_array($value) && isset($ops[key($value)])):\n foreach ($value as $op => $val) {\n $result[] = $this->_operator($tableName,$key, array($op => $val), $schema[$key]);\n }\n break;\n case (is_string($key) && is_array($value)):\n $value = join(', ', $this->value($value, $schema[$key]));\n $result[] = \"{$tableName}.{$key} IN ({$value})\";\n break;\n case (is_string($key) && is_string($value) && strpos($value,'%') !== FALSE):\n if(array_key_exists ($key,$this->schema[$tableName])){\n $result[] = \"{$tableName}.{$key} LIKE '{$value}'\";\n }\n else{\n $result[] = \"{$key} LIKE '{$value}'\";\n }\n //$result[] = \"{$tableName}.{$key} LIKE '{$value}'\";\n break;\n default:\n $value = $this->value($value, $schema[$key]);\n $result[] = $tableName.\".\".$key.\" = \".$value;\n break;\n }\n }\n }\n\n\t\tif(count($result)>1){\n\t\t\t$result = \"(\".join($options['join'], $result).\")\";\n\t\t}else{\n\t\t\t$result = join($options['join'], $result);\n\t\t}\n\t\treturn ($options['prepend'] && !empty($result)) ? \"WHERE {$result}\" : $result;\n\t}", "public function getSQL(array $options);", "public function where($table,$column,$data = \"\");", "abstract public function get($table, array $where, array $options = []): \\PDOStatement;", "function getOptions() {\n\t\t$rc = array();\n\t\t$conf = $this->config['table.'];\n\t\t$table = $conf['name'];\n\t\t\n\t\tif (is_array($conf)) {\n\t\t\t$query = $this->local_cObj->getQuery($table, $conf, TRUE);\n\t\t\treturn $this->db->selectRecords($query['SELECT'], $query['FROM'], $query['WHERE'], $query['ORDERBY']);\n\t\t}\n\t\t\n\t\t$rc = array();\n\t\t$options = $this->config['options.'];\n\t\tif (is_array($options)) {\n\t\t\tforeach ($options AS $uid => $title) {\n\t\t\t\t$rc[] = array('uid' => $uid, 'title' => $title);\n\t\t\t}\n\t\t\t$this->config['table.']['valueField'] = 'uid'; // Just in case\n\t\t}\n\t\t\n\t\treturn $rc;\n\t}", "public function table($tableName, $options);", "protected function _getTableOptions(){ }", "function admin_getter_options() {\n\treturn array(\n\t\t'wheres' => array(\n\t\t\t\"ue.admin = 'yes'\"\n\t\t)\n\t);\n}", "function adv_select($table, array $where = null, array $fields = null, $order = '', $limit = null, $offset = null);", "function options($options){\n\t\t$defaults = array(\n\t\t\t'class_header' => 'cg_header',\n\t\t\t'class_colGroup' => 'cg_colGroup',\n\t\t\t'class_row' => 'cg_row',\n\t\t\t'class_table' => 'cg_table',\n\t\t\t'empty_message' => __('No Results'),\n\t\t\t'separator' => ' ',\n\t\t\t'type' => 'table'\n\t\t);\n\t\t\n\t\t$options = array_merge($defaults, $options);\n\t\t\n\t\t$this->__settings = $options;\n\t\t\n\t\t//-- Set the directory we'll be looking for elements\n\t\t$this->elemDir = $this->__settings['type'];\n\t}", "public function tableOptions($table, $schema=null){ }", "function getQuerySettings() ;", "public function getTableWhere() {}", "function dbWhereVars() {\n\n foreach ($this->fields() as $f) {\n if ($this->$f === false) continue;\n $this->db->where($this->model.'.'.$f,$this->$f);\n }\n\n }", "public function getQuerySettings() : ?array {\n return [\n /*'table' => 'table_name',\n 'columns' => [\n 'table_column_name_1',\n 'table_column_name_2' \n ],\n 'condition' => [\n 'OR' => [\n 'table_column_name_1[>]' => 50 //[>], [>=], [!], [><], [<>] // More at https://medoo.in/api/where\n 'table_column_name_2' => 12\n ]\n ]*/\n ];\n }", "function KM_all($options=array(),$obj_type=FALSE)\n\t {\n\t $conditions=array();\n\t\t//pr($options);exit;\n\t\tif(isset($options['class'])){\n\t\t $table=$this->db->dbprefix.$options['class'];\n\t\t}\n\t\telse{\n\t\t $table=$this->table;\n\t\t}\n\t\t\n\t\tif(isset($options['limit'])){\n\t\t $offset=0; \n\t\t if(isset($options['offset'])){\n\t\t $offset=$options['offset'];\n\t\t }\n\t\t $this->db->limit($options['limit'],$offset);\n\t\t}\n\t\t\n\t\tif(isset($options['order'])){\n\t\t\t if(isset($options['order_prefix']) && $options['order_prefix']==false){\n\t\t $this->db->order_by($options['order']);\n\t\t }else{\n\t\t $this->db->order_by($table.'.'.$options['order']);\n\t\t }\n\t\t}\n\t\tif(isset($options['conditions'])){\n\t\t if(isset($options['conditions_prefix']) && $options['conditions_prefix']==false){\n\t\t $this->db->where($options['conditions']);\n\t\t }else{\n\t\t \t $this->db->where($this->_conditions($options['conditions'],$table));\n\t\t }\t\t \n\t\t}\n\t\tif(isset($options['conditions_in'])){\n\t\t\t \n\t\t if(isset($options['conditions_prefix']) && $options['conditions_prefix']==false){\n\t\t\t \n\t\t $this->db->where_in($options['conditions_in']);\n\t\t }else{ \n\t\t \t $where_in = $this->_conditions($options['conditions_in'],$table); \n\t\t\t foreach($where_in as $kwi=>$kwv)\t \n\t\t \t $this->db->where_in($kwi,$kwv);\n\t\t }\t\t \n\t\t}\n\t\tif(isset($options['search_conditions'])){\n \t\t$this->db->where($options['search_conditions'],NULL, FALSE);\n\t\t}\n\t\tif(isset($options['joins'])){\n\t\t $joins=$options['joins'];\n\t\t foreach($joins as $join){\n\t\t $type=''; \n\t\t\t if(isset($join['type']))\n\t\t $type=$join['type'];\n\t\t\t$join_table=$this->db->dbprefix($join['class']);\n\t\t\tif(isset($join['join_and_cond'])){ \n\t\t \t\t$str_join_and=$join_table.'.'.$join['primaryKey'].'='.$table.'.'.$join['foreignKey'];\n\t\t\t\tforeach($join['join_and_cond'] as $andky=>$andval){\n\t\t\t\t\t$str_join_and.= \" and \".$join['class'].'.'.$andky.\"='$andval'\" ;\t\t\t\n\t\t\t\t} \n\t\t\t\t$this->db->join($join_table,$str_join_and,$type);\t\t\t\t\n\t\t\t}\n\t\t\telse{\t\n \t$this->db->join($join_table,$join_table.'.'.$join['primaryKey'].'='.$table.'.'.$join['foreignKey'],$type);\n\t\t\t}\n\t\t\tif(isset($join['conditions'])){\n \t\t\t $this->db->where($this->_conditions($join['conditions'],$join_table));\n\t\t\t}\n\t\t }\t \t\t\n\t\t}\n\t\t\n\t\tif(isset($options['select'])){\n\t\t\n\t\t$protect_identifiers=(isset($options['protect_identifiers'])&&$options['protect_identifiers']==false)?false:true;\n\t\t\n\t\t$this->db->select($options['select'],$protect_identifiers);\n\t\t}\n\t\telse if(isset($options['fields'])){\n\t\t $fields_prefix=(isset($options['fields_prefix']))?$options['fields_prefix']:TRUE;\n\t\t \n\t\t $this->db->select($this->_fields($options['fields'],$table,$fields_prefix));\n\t\t}\n\t\tif(isset($options['groupby']))\n\t\t$this->db->group_by($options['groupby']);\n\t\t$query=$this->db->get($table);\n\t\t\n\t\tif ($query->num_rows() > 0)\n\t\t{\n\t\t if($obj_type){\n\t\t return $query->result();\n\t\t }\n\t\t else{\n\t\t return $query->result_array();\n\t\t }\t \t\t \n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn array();\n\t\t} \n\t }", "function sql($table=null)\n{\n return SQL::query($table);\n}", "public function where($arr){//ex of $arr : ['name' => 'LIKE A%','email' => '= [email protected]']\n $c = \"\";\n $x = 0;\n foreach($arr as $key => $v){//for each param, translate to SQL language\n if($x != 0){\n $c .= \" AND\";\n }\n $x++;\n $c .= \" $key $v\";\n }\n $this->params[\"WHERE\"] = $c;//adding the conditions to the query\n return $this;\n }", "function opting($opt) {\n\t$opt['table']=ascheck(@$opt['table'],'');\n\t$opt['subject']=ascheck(@$opt['subject'],array());\n\t$opt['subject_str']=ar2str(@$opt['subject'],\"_\");\n\t$opt['topic_in']=ascheck(@$opt['topic_in'],array());\n\t$opt['topic_out']=ascheck(@$opt['topic_out'],array());\n\t$opt['name']=ascheck(@$opt['name'],$opt['subject_str'].ac::$nth);\n\t$opt['title']=ascheck(@$opt['title'],$opt['name']);\n\t$opt['id']=ascheck(@$opt['id'],'');\n\t$opt['bucket']=ascheck(@$opt['bucket'],false);\n\t$opt['list']=ascheck(@$opt['list'],false);\n\t$opt['debug']=ascheck(@$opt['debug'],false);\n\t$opt['class']=ascheck(@$opt['class'],'p');\n\t$opt['modal']=ascheck(@$opt['modal'],true);\n\t$opt['scope']=ascheck(@$opt['scope'],'');\n\t$opt['prepend']=ascheck(@$opt['prepend'],'');\n\t$opt['append']=ascheck(@$opt['append'],'');\n\t$opt['order']=ascheck(@$opt['order'],'');\n\treturn $opt;\n}", "public function cpSelect($tablename,$value1=0,$value2=0) {\n /*\n * Prepare the select statement\n */\n $sql=\"SELECT * FROM $tablename\";\n if($value1!=0)\n { $key1= key($value1);\n $sql.=\" where $key1='$value1[$key1]'\";\n }\n if($value1!=0 && $value2!=0) \n {\n $key2= key($value2);\n $sql.=\" AND $key2='$value2[$key2]'\";\n }\n \n $sth = $this->dbh->prepare($sql);\n $sth->execute();\n $result = $sth->fetchAll(PDO::FETCH_ASSOC);\n return $result;\n \n}", "function assoc($table, $campos=\"*\", $where=\"\", $order=\"\", $tipo=\"\", $limite=\"\"){\n\n\t\t$sql = \"SELECT DISTINCT \";\n\n\t\tif(is_array($campos)){\n\n\t\t\tforeach ($campos as $value){\n\t\t\t\t$sql .= \"'$value' ,\";\n\t\t\t}\n\n\t\t\t$strCut = strlen($sql) -1;\n\t\t\t$sql = substr($sql,0,$strCut);\n\n\t\t}else{\n\n\t\t\t$sql .= \" $campos \";\n\n\t\t}\n\n\t\tif ( strstr($table, \"|\") ) {\n\n\t\t\t$fromTable = substr($table,0,strpos($table,\"|\"));\n\n\t\t\t$leftJoin = substr($table,strpos($table,\"|\"),strlen($table));\n\n\t\t\t$leftJoin = explode(\"|\",$leftJoin);\n\n\t\t\t$sql .= \" FROM \".$fromTable;\n\n\t\t\tforeach ($leftJoin as $ex){\n\n\t\t\t\t$leftEx = explode(\">\", $ex );\n\n\t\t\t\t@list($left_table, $on_condition) = $leftEx;\n\n\t\t\t\tif(!empty($left_table)){\n\t\t\t\t\t$sql .= \" LEFT JOIN \" . $left_table;\n\t\t\t\t}\n\t\t\t\tif(!empty($on_condition)){\n\t\t\t\t\t$sql .= \" ON \" . $on_condition;\n\t\t\t\t}\n\n\n\t\t\t}\n\n\t\t}else{\n\n\t\t\t$sql .= \" FROM $table \";\n\n\t\t}\n\n\n\t\tif(!empty($where)) $sql .= \" WHERE \";\n\n\n\t\tif(is_array($where)){\n\n\t\t\tforeach ($where as $key => $value){\n\n\t\t\t\tif( strstr($value,\"!\") ){\n\t\t\t\t\t\t$value = substr($value, 1);\n\t\t\t\t\t\tif (strtolower($value) == \"empty\"){\n\t\t\t\t\t\t\t\t$sql .= \" $key <> '' AND\";\n\t\t\t\t\t\t}else if(is_int($value)){\n\t\t\t\t\t\t\t\t$sql .= \" $key <> $value AND\";\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\t$sql .= \" $key <> '$value' AND\";\n\t\t\t\t\t\t}\n\n\t\t\t\t}elseif( strstr($value,\"!<\") ){\n\t\t\t\t\t\t$value = substr($value, 2);\n\t\t\t\t\t\tif (strtolower($value) == \"empty\"){\n\t\t\t\t\t\t\t\t$sql .= \" $key <= '' AND\";\n\t\t\t\t\t\t}else if(is_int($value)){\n\t\t\t\t\t\t\t\t$sql .= \" $key <= $value AND\";\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\t$sql .= \" $key <= '$value' AND\";\n\t\t\t\t\t\t}\n\n\t\t\t\t}elseif( strstr($value,\"!>\") ){\n\t\t\t\t\t\t$value = substr($value, 2);\n\t\t\t\t\t\tif (strtolower($value) == \"empty\"){\n\t\t\t\t\t\t\t\t$sql .= \" $key >= '' AND\";\n\t\t\t\t\t\t}else if(is_int($value)){\n\t\t\t\t\t\t\t\t$sql .= \" $key >= $value AND\";\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\t$sql .= \" $key >= '$value' AND\";\n\t\t\t\t\t\t}\n\n\n\t\t\t\t\t}else{\n\t\t\t\t\t\tif(is_int($value)){\n\t\t\t\t\t\t$sql .= \" $key LIKE $value AND\";\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t$sql .= \" $key LIKE '$value' AND\";\n\t\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t$strCut = strlen($sql)-3;\n\t\t\t$sql = substr($sql,0,$strCut);\n\n\t\t}else{\n\n\t\t\t$sql .= \" $where \";\n\n\t\t}\n\n\t\t//envia sql para total rows\n\t\t$this->sql = $sql;\n\n\t\tif(!empty($order)) $sql .= \" ORDER BY \";\n\n\n\t\tif(is_array($order)){\n\n\t\t\tforeach ($order as $value){\n\t\t\t\t$sql .= \"$value ,\";\n\t\t\t}\n\n\t\t\t$strCut = strlen($sql)-1;\n\t\t\t$sql = substr($sql,0,$strCut);\n\n\t\t}else{\n\n\t\t\t$sql .= \" $order \";\n\n\t\t}\n\n\t\tif(!empty($tipo)) $sql .= \" $tipo \";\n\n\t\tif(!empty($limite)) $sql .= \" LIMIT $limite \";\n\n\t\t$qr = mysql_query($sql) or die($sql . \" <hr> \" . mysql_error());\n\t\t$rows = mysql_num_rows($qr);\n\n\t if($rows){\n\n\t\t\twhile ($rs = mysql_fetch_assoc($qr) ) {\n\n\t\t\t\t$exFetch[] = $rs;\n\n\t\t\t}\n\n\t\t}else{\n\n\t\t\t\t$exFetch = false;\n\t\t}\n\n\t\treturn $exFetch;\n\n\t}", "function query() {\n \n $this->ensure_my_table();\n \n if ($this->options['operator'] == 'in') {\n $keys = array_keys($this->value);\n\n $this->query->add_where(0, $this->table_alias.'.id IN ('. implode(',', $keys).')' );\n }\n\n }", "function KM_find($options=array())\n\t {\n\t \n\t if(isset($options['class'])){\n\t\t $table=$this->db->dbprefix.$options['class'];\n\t\t}\n\t\telse{\n\t\t $table=$this->table;\n\t\t}\n\t\t$this->model=$this->_model_generate($table); \n\t\t\n\t\tif(isset($options['limit'])){\n\t\t if(isset($options['offset'])){\n\t\t \t$this->db->limit($options['limit'],$options['offset']);\n\t\t }else{\n\t\t \t$this->db->limit($options['limit']);\n\t\t }\n\t\t}\n\t\tif(isset($options['order'])){\n\t\t $this->db->order_by($options['order']);\n\t\t}\n\t\tif(isset($options['conditions'])){\n\t\t $tmp_keys=array_keys($options['conditions']);\n\t\t $conditions=array();\n\t\t $i=0;\n\t\t while(count($tmp_keys)>$i){\n\t\t $temp_key=$tmp_keys[$i];\n\t\t $tmp_keys[$i]=$table.'.'.$tmp_keys[$i];\n\t\t\t $conditions[$tmp_keys[$i]]=$options['conditions'][$temp_key];\n\t\t $i++;\n\t\t }\n\t\t $this->db->where($conditions);\n\t\t}\n\t\tif(isset($options['search_conditions'])){\n \t\t$this->db->where($options['search_conditions'],NULL, FALSE);\n\t\t}\n\t if(isset($options['fields'])){\n\t\t $this->db->select($this->_prefix_table_fields($table,$options,$options['fields']));\n\t\t}\n\t\telse{\n $this->db->select($this->_prefix_table_fields($table,$options));\t\t\n }\n\t\t$this->db->from($table);\n\t\tif(isset($options['joins'])){\n\t\t foreach($options['joins'] as $join){\n\t\t $type=isset($join['type'])?$join['type']:'';\n\t\t $join_table=$this->db->dbprefix($join['class']);\n\t\t $this->db->join($join_table,''.$join_table.'.'.$join['primaryKey'].'='.$table.'.'.$join['foreignKey'].'',$type);\n\t\t\t if(isset($join['conditions'])){\n \t\t\t $this->db->where($this->_conditions($join['conditions'],$join_table));\n\t\t\t }\n\t\t }\n\t\t}\n\t\t \n\t\t$query=$this->db->get();\n\t\tif ($query->num_rows() > 0)\n\t\t{\n\t\t $result=array();\n\t\t $tmp_result=$query->result_array();\n\t\t //pr($tmp_result);exit;\n\t\t $i=0;\n\t\t\twhile(count($tmp_result)>$i){\n\t\t\t\t$result[$i]=$this->_array_generation($tmp_result[$i]);\n\t\t\t $i++;\t\t\n\t\t\t}\n\t\t\tif(isset($options['joins']) && count($options['joins'])>0){\n\t\t\tforeach($options['joins'] as $hasmany_joins){\n\t\t\t\n\t\t\t if(isset($hasmany_joins['hasMany']) && $hasmany_joins['hasMany']==1){\n\t\t\t\t $hasmany_model=$this->_model_generate($this->db->dbprefix.$hasmany_joins['class']);\n\t\t\t\t\t \t\t\t$j=0;\n $temp_foreignkeys_values=array();\n\t\t\t\t\t foreach($result as $key=>$temp_value){\n\t\t\t\t\t\t\tif(in_array($temp_value[$this->model][$hasmany_joins['foreignKey']],$temp_foreignkeys_values)){\n\t\t\t\t\t\t $temp_foreignkey_key=array_search($temp_value[$this->model][$hasmany_joins['foreignKey']], $temp_foreignkeys_values);\n\t\t\t\t\t\t\t\t$result[$temp_foreignkey_key][$hasmany_model][]=$temp_value[$hasmany_model];\n\t\t\t\t\t\t\t\tunset($result[$key]);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t unset($result[$key][$hasmany_model]);\n $result[$j][$hasmany_model][]=$temp_value[$hasmany_model];\n\t\t\t\t\t\t\t $temp_foreignkeys_values[$key]=$temp_value[$this->model][$hasmany_joins['foreignKey']];\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t$j++; \n\t\t\t\t\t \n\t\t\t\t\t }\n\t\t\t\t\t \n\t\t\t\t }\n\t\t\t}\n\t\t }\t\n\t\t\t\n\t\t return array_values($result);\t\t \n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn array();\n\t\t} \n\t }", "function createSelect($_table, $_value, $_colum)\n{\n\n $_prev_par= false;\n $_query = \"SELECT * FROM $_table\";\n\n foreach ($_value as $_key => $_value)\n {\n if ($_value != \"\")\n {\n if ($_prev_par)\n {\n $_query.= \" AND \";\n }\n else\n {\n $_query.= \" WHERE \";\n }\n\n $_query.= $_colum[$_key].\" = '$_value'\";\n $_prev_par = true;\n }\n }\n $_query.=\";\";\n\n return $_query;\n}", "function get_table_options($tableClass, $labelOption = null, $searchParams = array())\n{\n $options = get_db()->getTable($tableClass)->findPairsForSelectForm($searchParams);\n $options = apply_filters(Inflector::tableize($tableClass) . '_select_options', $options);\n return label_table_options($options, $labelOption);\n}", "function SelectFactory ($options)\n{\n if ( ! is_array($options) ) return false;\n\n // Select statement clause list, in order of appearance\n\n $statement_clauses = array(); /* initialize to empty array */\n $statement_clauses[0] = array('name' => 'selectoptions', 'join' => ' ');\n $statement_clauses[1] = array('name' => 'columns', 'join' => ', ');\n $statement_clauses[2] = array('name' => 'from', 'join' => ', ');\n $statement_clauses[3] = array('name' => 'where', 'join' => ' AND ');\n $statement_clauses[4] = array('name' => 'groupby', 'join' => ', ');\n $statement_clauses[5] = array('name' => 'having', 'join' => ' AND ');\n $statement_clauses[6] = array('name' => 'orderby', 'join' => ', ');\n $statement_clauses[7] = array('name' => 'limit', 'join' => false);\n $statement_clauses[8] = array('name' => 'procedure', 'join' => false);\n $statement_clauses[9] = array('name' => 'into', 'join' => false);\n $statement_clauses[10] = array('name' => 'other', 'join' => false);\n\n $sql_statement = array();\t/* initialize the statement array receiver */\n $sql_statement[] = 'SELECT';\n\n for ($i=0; $i < count($statement_clauses); $i++) {\n if (array_key_exists($statement_clauses[$i])) {\n if ($statement_clauses[$i]['join'] && is_array($options[$statement_clauses[$i]['name']])) {\n\t$sql_statement[] = implode($statement_clauses[$i]['join'],$options[$statement_clauses[$i]['name']]);\n } else {\n\t$sql_statement[] = $options[$statement_clauses[$i]['name']];\n }\n }\n }\n\n // implode the crafted Select statement and return the string\n return implode(' ',$sql_statement);\n\n}", "function selectOptions($table,$current,$orderby=\"\",$value=\"value\",$label=\"label\",$where=\"\") {\r\n\r\n\tglobal $TESTMODE;\r\n\t\r\n\t$sql = \"SELECT $value,$label FROM $table WHERE testmode<=\".escapeValue($TESTMODE);\r\n\r\n\tif ($where != \"\") $sql .= \" AND $where\";\r\n\r\n\tif ($orderby != \"\") $sql .= \" ORDER BY $orderby\";\r\n\r\n\t$query = db_query($sql);\r\n\t\r\n\tfor ($i=0; $result = db_fetch($query,$i); $i++) {\r\n\t\r\n\t\techo \"<option value=\\\"\".$result[$value].\"\\\"\";\r\n\t\tif ($result[$value] == $current) echo \" selected\";\r\n\t\techo \">\".$result[$label].\"</option>\\n\";\r\n\t\t\r\n\t}\r\n\r\n}", "function moduleOptions() {\n $sq = new sql;\n return array();\n // name, type, list\n }", "public function table($table);", "public function table($table);", "function edit_data($where,$table){ \n return $this->db->get_where($table,$where);\n }", "public function orWhere($table,$column,$data = \"\");", "function rawSearchOptions() {\n $tab = parent::rawSearchOptions();\n\n $tab[] = [\n 'id' => '2',\n 'table' => $this->getTable(),\n 'field' => 'id',\n 'name' => __('ID'),\n 'massiveaction' => false,\n 'datatype' => 'number'\n ];\n\n $tab = array_merge($tab, Location::rawSearchOptionsToAdd());\n\n $tab[] = [\n 'id' => '16',\n 'table' => $this->getTable(),\n 'field' => 'comment',\n 'name' => __('Comments'),\n 'datatype' => 'text'\n ];\n\n $tab[] = [\n 'id' => '62',\n 'table' => 'glpi_softwarecategories',\n 'field' => 'completename',\n 'name' => __('Category'),\n 'datatype' => 'dropdown'\n ];\n\n $tab[] = [\n 'id' => '19',\n 'table' => $this->getTable(),\n 'field' => 'date_mod',\n 'name' => __('Last update'),\n 'datatype' => 'datetime',\n 'massiveaction' => false\n ];\n\n $tab[] = [\n 'id' => '121',\n 'table' => $this->getTable(),\n 'field' => 'date_creation',\n 'name' => __('Creation date'),\n 'datatype' => 'datetime',\n 'massiveaction' => false\n ];\n\n $tab[] = [\n 'id' => '23',\n 'table' => 'glpi_manufacturers',\n 'field' => 'name',\n 'name' => __('Publisher'),\n 'datatype' => 'dropdown'\n ];\n\n $tab[] = [\n 'id' => '24',\n 'table' => 'glpi_users',\n 'field' => 'name',\n 'linkfield' => 'users_id_tech',\n 'name' => __('Technician in charge of the software'),\n 'datatype' => 'dropdown',\n 'right' => 'own_ticket'\n ];\n\n $tab[] = [\n 'id' => '49',\n 'table' => 'glpi_groups',\n 'field' => 'completename',\n 'linkfield' => 'groups_id_tech',\n 'name' => __('Group in charge of the software'),\n 'condition' => ['is_assign' => 1],\n 'datatype' => 'dropdown'\n ];\n\n $tab[] = [\n 'id' => '64',\n 'table' => $this->getTable(),\n 'field' => 'template_name',\n 'name' => __('Template name'),\n 'datatype' => 'text',\n 'massiveaction' => false,\n 'nosearch' => true,\n 'nodisplay' => true,\n 'autocomplete' => true,\n ];\n\n $tab[] = [\n 'id' => '70',\n 'table' => 'glpi_users',\n 'field' => 'name',\n 'name' => __('User'),\n 'datatype' => 'dropdown',\n 'right' => 'all'\n ];\n\n $tab[] = [\n 'id' => '71',\n 'table' => 'glpi_groups',\n 'field' => 'completename',\n 'name' => __('Group'),\n 'condition' => ['is_itemgroup' => 1],\n 'datatype' => 'dropdown'\n ];\n\n $tab[] = [\n 'id' => '61',\n 'table' => $this->getTable(),\n 'field' => 'is_helpdesk_visible',\n 'name' => __('Associable to a ticket'),\n 'datatype' => 'bool'\n ];\n\n $tab[] = [\n 'id' => '63',\n 'table' => $this->getTable(),\n 'field' => 'is_valid',\n //TRANS: Indicator to know is all licenses of the software are valids\n 'name' => __('Valid licenses'),\n 'datatype' => 'bool'\n ];\n\n $tab[] = [\n 'id' => '80',\n 'table' => 'glpi_entities',\n 'field' => 'completename',\n 'name' => __('Entity'),\n 'massiveaction' => false,\n 'datatype' => 'dropdown'\n ];\n\n $newtab = [\n 'id' => '72',\n 'table' => 'glpi_items_softwareversions',\n 'field' => 'id',\n 'name' => _x('quantity', 'Number of installations'),\n 'forcegroupby' => true,\n 'usehaving' => true,\n 'datatype' => 'count',\n 'nometa' => true,\n 'massiveaction' => false,\n 'joinparams' => [\n 'jointype' => 'child',\n 'beforejoin' => [\n 'table' => 'glpi_softwareversions',\n 'joinparams' => ['jointype' => 'child'],\n ],\n 'condition' => \"AND NEWTABLE.`is_deleted_item` = 0\n AND NEWTABLE.`is_deleted` = 0\n AND NEWTABLE.`is_template_item` = 0\",\n ]\n ];\n\n if (Session::getLoginUserID()) {\n $newtab['joinparams']['condition'] .= getEntitiesRestrictRequest(' AND', 'NEWTABLE');\n }\n $tab[] = $newtab;\n\n $tab = array_merge($tab, SoftwareLicense::rawSearchOptionsToAdd());\n\n $name = _n('Version', 'Versions', Session::getPluralNumber());\n $tab[] = [\n 'id' => 'versions',\n 'name' => $name\n ];\n\n $tab[] = [\n 'id' => '5',\n 'table' => 'glpi_softwareversions',\n 'field' => 'name',\n 'name' => __('Name'),\n 'forcegroupby' => true,\n 'massiveaction' => false,\n 'displaywith' => ['softwares_id'],\n 'joinparams' => [\n 'jointype' => 'child'\n ],\n 'datatype' => 'dropdown'\n ];\n\n $tab[] = [\n 'id' => '31',\n 'table' => 'glpi_states',\n 'field' => 'completename',\n 'name' => __('Status'),\n 'datatype' => 'dropdown',\n 'forcegroupby' => true,\n 'massiveaction' => false,\n 'joinparams' => [\n 'beforejoin' => [\n 'table' => 'glpi_softwareversions',\n 'joinparams' => [\n 'jointype' => 'child'\n ]\n ]\n ]\n ];\n\n $tab[] = [\n 'id' => '170',\n 'table' => 'glpi_softwareversions',\n 'field' => 'comment',\n 'name' => __('Comments'),\n 'forcegroupby' => true,\n 'datatype' => 'text',\n 'massiveaction' => false,\n 'joinparams' => [\n 'jointype' => 'child'\n ]\n ];\n\n $tab[] = [\n 'id' => '4',\n 'table' => 'glpi_operatingsystems',\n 'field' => 'name',\n 'datatype' => 'dropdown',\n 'name' => __('Operating system'),\n 'forcegroupby' => true,\n 'joinparams' => [\n 'beforejoin' => [\n 'table' => 'glpi_softwareversions',\n 'joinparams' => [\n 'jointype' => 'child'\n ]\n ]\n ]\n ];\n\n // add objectlock search options\n $tab = array_merge($tab, ObjectLock::rawSearchOptionsToAdd(get_class($this)));\n\n $tab = array_merge($tab, Notepad::rawSearchOptionsToAdd());\n\n return $tab;\n }", "function m_tampil_soal($table, $where){\n\t\treturn $this->db->get_where($table,$where);\n\t}", "function classic_dropdown($table, $option, $key, $value, $where){\n //Lets Put Little Checks On Required Parameters\n if(!isset($table) || empty($table)){\n return false;\n }\n if(!isset($option) || empty($option)){\n return false;\n }\n if(!isset($key) || empty($key)){\n return false;\n }\n if(!isset($value) || empty($value)){\n return false;\n }\n\n $this->db->select('*');\n $this->db->from($table);\n if($where !== ''){\n $this->db->where($where);\n }\n $query = $this->db->get();\n if($query->num_rows() > 0)\n {\n $data[''] = $option;\n foreach($query->result() as $row)\n {\n $data[$row->$key] = $row->$value;\n }\n return $data;\n }\n }", "public function select($table,$array,$condtion)\n\t{\n\t\t\t$fields = array_keys($array);\n\t\t\t$values = array_values($array);\n\t\t\t$n = count($array)-1;\n\t\t\t$qry = \"SELECT * FROM $table WHERE\";\n\t\t\tfor($i=0;$i<count($array);$i++)\n\t\t\t{\n\t\t\t\t$qry.=\" $fields[$i]='$values[$i]'\" ;\n\t\t\t\tif($i<$n)\n\t\t\t\t{\n\t\t\t\t\t$qry.=\" \".$condtion;\n\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t$res = mysql_query($qry) or die(mysql_error());\n\t\t\treturn $res;\n\t}", "function getOption($table,$current,$int=1,$value=\"value\",$label=\"label\",$where=\"\") {\r\n\r\n\tif ($int)\r\n\t\t$sql = \"SELECT $label FROM $table WHERE $value=\".escapeValue($current); \r\n\telse\r\n\t\t$sql = \"SELECT $label FROM $table WHERE $value=\".escapeQuote($current); \r\n\t\t\r\n\tif ($where != \"\") $sql .= \" AND $where\";\r\n\r\n\t$query = db_query($sql);\r\n\r\n\tif (db_numrows($query) == 1) {\r\n\t\r\n\t\t$result = db_fetch($query);\r\n\t\treturn $result[$label];\r\n\t\t\r\n\t} else return \"\";\r\n\t\r\n}", "function setParamsToSaveQuery()\n {\n \n \n if($this->form->getQuery())\n {\n $stringTmp=$this->form->getQuery()->getSqlQuery();\n $stringTmp=substr($stringTmp, strpos($stringTmp,' FROM ' ));\n $stringTmp=substr($stringTmp, 0, strpos($stringTmp,' LIMIT ' ));\n $this->getUser()->setAttribute('queryToSaveWhere', $stringTmp);\n }\n \n if($this->form->getQuery()->getParams())\n {\n $stringTmp=\"\";\n $arrayTmp=$this->form->getQuery()->getParams();\n if(isset($arrayTmp['where']))\n {\n foreach($arrayTmp['where'] as $key=>$value)\n {\n $stringTmp.=\";|\".$value.\"|\";\n }\n $this->getUser()->setAttribute('queryToSaveParams', $stringTmp);\n }\n }\n return;\n }", "function getDatabaseDataWhere($table,$fields,$where,$order,$limit_start,$limit_limit) {\r\n\t\t\r\n\t\tif (!$table) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t\t$db\t\t= JFactory::getDbo();\r\n\t\t$query\t= $db->getQuery(true);\r\n\t\t\r\n\t\t$query->select('a.id');\r\n\t\t//$query->select('a.'.$key.' ,a.'.$label.'');\r\n\t\tif (is_array($fields)) {\r\n\t\t\tforeach($fields as $field) {\r\n\t\t\t\t$query->select('a.'.$field);\r\n\t\t\t}\r\n\t\t}\r\n\t\t$query->from($table.' as a');\r\n\r\n\t\tif ( is_array($where) ) {\r\n\t\t\tforeach($where as $where_key => $where_item) {\r\n\t\t\t\t$query->where('a.'.$where_key.' = \"'.$where_item.'\"' );\r\n\t\t\t}\r\n\t\t}\t\t\r\n\t\t\r\n\t\tif (is_array($order)) {\r\n\t\t\tforeach($order as $order_item) {\r\n\t\t\t\t$query->order('a.'.$order_item);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\tif ( is_int($limit_start) && is_int($limit_limit) ) { \r\n\t\t\t$db->setQuery((string)$query,$limit_start, $limit_limit);\r\n\t\t} else {\r\n\t\t\t$db->setQuery((string)$query);\r\n\t\t}\r\n\r\n\t\tif (!$db->query()) {\r\n\t\t\tJError::raiseError(500, $db->getErrorMsg());\r\n\t\t}\r\n\r\n\t\t//echo $db->getQuery();\r\n\t\treturn $db;\r\n\t}", "private function generateWhereString($array){\n\t\t$str = \" WHERE \";\n\t\tforeach($array as $k => $v){\n\t\t\t$str .= \" $k = $v\";\n\t\t}\n\t\treturn $str;\n\t}", "public function uses_table($table_name)\n\t{\n\t\tif (!is_string($table_name))\n\t\t\tprintf(__('Invalid table name to use with this option key (%s)'), $this->option_key);\n\t\t$this->table = $table_name;\n\t}", "public function getQuerySettings() {}", "function custom_conds( $conds = array()) {\n\n\t}", "public function showOption_where($table,$cols,$identifier,$identifierData) {\n\n$con = ($GLOBALS[\"___mysqli_ston\"] = mysqli_connect($this->myHost, $this->username, $this->password));\nif (!$con)\n {\n die('Could not connect: ' . ((is_object($GLOBALS[\"___mysqli_ston\"])) ? mysqli_error($GLOBALS[\"___mysqli_ston\"]) : (($___mysqli_res = mysqli_connect_error()) ? $___mysqli_res : false)));\n }\n\n((bool)mysqli_query( $con, \"USE \" . $this->database));\n\n$result = mysqli_query($GLOBALS[\"___mysqli_ston\"], \"SELECT ($cols) cols FROM $table WHERE $identifier = '$identifierData' order by cols asc \");\n\nwhile($row = mysqli_fetch_array($result))\n {\necho \"<option value='\".$row['cols'].\"'>\".$row['cols'].\"</option>\";\n }\n\n}", "public function getSearchSqlParams()\n {\n return array('fields' => '* ',\n 'table' => LOG_TABLE,\n 'title' => 'title',\n 'comment' => 'comment',\n 'date' => 'date',\n 'draft' => 'draft',\n 'group_by' => ''\n );\n }", "function getDataListWhere($table,$fields = null,$where = null,$order = null,$limit_start,$limit_limit) {\r\n\t\t\r\n\t\t$db = self::getDatabaseDataWhere($table,$fields,$where,$order,$limit_start,$limit_limit);\r\n\t\t\r\n\t\t//echo $db->getQuery();\r\n\t\treturn $db->loadAssocList();\r\n\t}", "function find($table, $where=\"1=1\", $fields=\"*\", $orderBy=\"1\"){\n\t\tActiveRecord::sql_item_sanizite($table);\n\t\tActiveRecord::sql_sanizite($fields);\n\t\tActiveRecord::sql_sanizite($orderBy);\n\t\t$q = $this->query(\"select $fields from $table where $where order by $orderBy\");\n\t\t$results = array();\n\t\twhile($row=$this->fetch_array($q)){\n\t\t\t$results[] = $row;\n\t\t}\n\t\treturn $results;\n\t}", "public function select($table_name, $fields = array(), $where = array(), $order_by = '')\r\n {\r\n }", "function edit_data($where,$table){\n return $this->db->get_where($table,$where);\n }", "public function select($table,$conditions = array()){\r\n\r\n $sql = 'SELECT *'; \r\n $sql .= ' FROM '.$table;\r\n\r\n if(is_array($conditions) && count($conditions)>0){\r\n $sql .= ' WHERE ';\r\n $i = 0;\r\n foreach($conditions as $key => $value){\r\n $pre = ($i > 0)?' AND ':'';\r\n $sql .= $pre.$key.\" = '\".$value.\"'\";\r\n $i++;\r\n }\r\n }\r\n \r\n $query = $this->db->prepare($sql);\r\n\r\n $query->execute(); \r\n \r\n $data = $query->fetchAll();\r\n\r\n return $data;\r\n }", "public function cpSearch($tablename,$value1=0,$value2=0) {\n\n /*\n * Prepare the select statement\n */\n $sql=\"SELECT * FROM $tablename\";\n if($value1!=0)\n { $key1= key($value1);\n $sql.=\" where $key1 like '%$value1[$key1]%'\";\n }\n if($value1!=0 && $value2!=0) \n {\n $key2= key($value2);\n $sql.=\" AND $key2='$value2[$key2]'\";\n }\n \n $sth = $this->dbh->prepare($sql);\n $sth->execute();\n $result = $sth->fetchAll(PDO::FETCH_ASSOC);\n return $result;\n \n}", "public function dropdown_wd_option($table, $option, $key, $value, $where)\n {\n $this->db->select('*');\n $this->db->where($where);\n $query = $this->db->get($table);\n\n if($query->num_rows() > 0)\n {\n $data[''] = $option;\n foreach($query->result() as $row)\n {\n $data[$row->$key] = $row->$value;\n }\n return $data;\n }\n }", "public function getTableOptions($tableName, $resource);", "public function table($t){\r\n\t\tif(is_array($t)){\r\n\t\t\t$tArray = $t;\r\n\t\t\t$t = $t_alias = array_shift(array_keys($tArray));\r\n\t\t\t$driver = get_called_class();\r\n\t\t\tif(($tArray[$t_alias] instanceof $driver) === true){\r\n\t\t\t\t$this->_placeholders = array_merge($this->_placeholders, $tArray[$t_alias]->queryData());\r\n\t\t\t\t$t = $tArray[$t_alias]->queryString();\r\n\t\t\t\t$t = \"({$t}) AS {$this->formatWithQuote($t_alias, 'alias')}\";\r\n\t\t\t}\r\n\t\t\t$t = (string) $t;\r\n\t\t\t$this->_table = trim($t);\r\n\t\t}else{\r\n\t\t\t$t = \\Dorsataio\\Squibble\\Resource\\Extract::fromTable((string) $t);\r\n\t\t\t$this->_table = trim($t['table']);\r\n\t\t\tif(isset($t['alias']) && !empty($t['alias'])){\r\n\t\t\t\t$this->_table = \"{$this->_table} as {$t['alias']}\";\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn $this;\r\n\t}", "function get_where($table_name,$where){\n\t\t$CI = &get_instance();\n\t\treturn $CI->db->get_where($table_name,$where)->result_array();\n\t}", "function custom_conds( $conds = array())\n\t{\n\t\t// rating_id condition\n\t\tif ( isset( $conds['id'] )) {\n\t\t\t$this->db->where( 'id', $conds['id'] );\n\t\t}\n\n\t\t// user_id condition\n\t\tif ( isset( $conds['user_id'] )) {\n\t\t\t$this->db->where( 'user_id', $conds['user_id'] );\n\t\t}\n\n\t\t// shop_id condition\n\t\tif ( isset( $conds['shop_id'] )) {\n\t\t\t$this->db->where( 'shop_id', $conds['shop_id'] );\n\t\t}\n\n\t\t// rating condition\n\t\tif ( isset( $conds['rating'] )) {\n\t\t\t$this->db->where( 'rating', $conds['rating'] );\n\t\t}\n\n\t\t// title condition\n\t\tif ( isset( $conds['title'] )) {\n\t\t\t$this->db->where( 'title', $conds['title'] );\n\t\t}\n\n\t\t// description condition\n\t\tif ( isset( $conds['description'] )) {\n\t\t\t$this->db->where( 'description', $conds['description'] );\n\t\t}\n\n\t\t$this->db->order_by( 'added_date', 'desc' );\n\t}", "function createQuery() ;", "public function foobar()\n {\n $result = $this->db->query_params(\"SELECT field FROM table WHERE something = $1 and something_else = $2\", array('foo', 'bar'));\n // use $result as usual ...\n }", "function get_all_array($db,$tblname,$options=NULL)\n{\n if (isset($options)) {\n foreach ($options as $key => $value) {\n switch ($key) {\n case 'columns':\n\tif (is_array($value)) {\n\t $columns = $value;\n\t} else {\n\t $columns[] = $value;\n\t}\n\tbreak;\n case 'sort':\n\tif (is_array($value)) {\n\t $orderparts = $value;\n\t} else {\n\t $orderparts[] = $value;\n\t}\n\tbreak;\n\t\n case 'where':\n\tif (is_array($value)) {\n\t $whereparts = $value;\n\t} else {\n\t $whereparts[] = $value;\n\t}\n\tbreak;\n\t\n default:\n\t# code...\n\t break;\n }\n }\n }\n \n $sql_a = Array(); /* initialize the sql query */\n $sql_a[] = \"SELECT\";\n $sql_a[] = (!empty($columns) ? join(\", \",$columns) : \"*\");\n $sql_a[] = \"FROM $tblname\";\n if (!empty($whereparts)) $sql_a[] = \" WHERE \".join(\" AND \",$whereparts);\n if (!empty($orderparts)) $sql_a[] = \" ORDER BY \".join(\",\",$orderparts);\n $sql_s = join(\" \",$sql_a);\n $result=$db->query($sql_s) or\n die(\"In \".__FILE__.\"@\".__LINE__.\" \".__FUNCTION__.\n\t\"Fatal error in query: $sql: (\".$db->errno.\") \".$db->error);\n $all_rows = Array();\n if ($result->num_rows > 0) {\n while ($row = $result->fetch_assoc()) {\n $all_rows[] = $row;\n }\n }\n $result->free();\n return $all_rows;\n}", "function PMA_urlParamsInEditMode($url_params)\n{\n if (isset($_REQUEST['where_clause'])) {\n $url_params['where_clause'] = trim($_REQUEST['where_clause']);\n }\n if (! empty($_REQUEST['sql_query'])) {\n $url_params['sql_query'] = $_REQUEST['sql_query'];\n }\n return $url_params;\n}", "protected function _setOptions(&$sql, array $options) {\n\t\t\n\t\t// set order by\n\t\t\n\t\tif (isset($options['orderBy']) and is_array($options['orderBy'])) {\n\t\t\t\n\t\t\t// removing spaces to prevent SQL injections\n\t\t\t$options['orderBy'][0] = str_replace(' ', '', $options['orderBy'][0]);\n\t\t\t\n\t\t\t// set column\n\t\t\t$sql.= ' ORDER BY ' . $options['orderBy'][0];\n\t\t\t\n\t\t\t// set directions\n\t\t\tif (isset($options['orderBy'][1])) {\n\t\t\t\t$options['orderBy'][1] = str_replace(' ', '', $options['orderBy'][1]);\n\t\t\t\t$sql.= ' ' . $options['orderBy'][1];\n\t\t\t}\n\t\t}\n\t\t\n\t\t// set limit\n\t\t\n\t\tif (isset($options['limitMax']) and isset($options['limitStart'])) {\n\t\t\t\n\t\t\t// ensure that these are numeric\n\t\t\t$options['limitMax'] = (integer) $options['limitMax'];\n\t\t\t$options['limitStart'] = (integer) $options['limitStart'];\n\t\t\t\n\t\t\t$sql.= ' LIMIT ' . $options['limitStart'] . ', ' . $options['limitMax'];\n\t\t\t\n\t\t} elseif (isset($options['limitMax'])) {\n\t\t\t\n\t\t\t// ensure that these are numeric\n\t\t\t$options['limitMax'] = (integer) $options['limitMax'];\n\t\t\t\n\t\t\t$sql.= ' LIMIT ' . $options['limitMax'];\n\t\t\t\n\t\t}\n\t}", "public function sectionTableWhere() {}", "public function sectionTableWhere() {}", "function get($options = array())\n\t{\n\t\t// set an array for field querys and values\n\t\t// This allows gets with operators\n\t\t// $options = array('status >' => 5)\n\t\t$option_fields = array();\n\t\tforeach($options as $key => $value)\n\t\t{\n\t\t\t$parts = explode(' ', $key, 2);\n\n\t\t\t$field = isset($parts[0]) ? $parts[0] : '';\n\t\t\t$operator = isset($parts[1]) ? $parts[1] : '';\n\n\t\t\t$option_fields[$field]['query'] = $key;\n\t\t\t$option_fields[$field]['value'] = $value;\n\t\t}\n\n// \t\t$defaults = array(\n// \t\t\t'sort_direction' => 'asc'\n// \t\t);\n// \t\t$options = $this->_default($defaults, $options);\n\t\t\n\t\t$this->_set_editable_fields($this->primary_table);\n\t\t\n\t\tforeach ($this->fields as $field)\n\t\t{\n\t\t\tif (isset($option_fields[$field]))\n\t\t\t{\n\t\t\t\t$this->db->where($option_fields[$field]['query'], $option_fields[$field]['value']);\n\t\t\t}\n\t\t}\n\n\t\tif (isset($options['limit']) && isset($options['offset']))\n\t\t{\n\t\t\t$this->db->limit($options['limit'], $options['offset']);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif (isset($options['limit']))\n\t\t\t{\n\t\t\t $this->db->limit($options['limit']);\n\t\t\t}\n\t\t}\n\n\t\tif (isset($options['sort_by']))\n\t\t{\n\t\t\t$this->db->order_by($options['sort_by'], $options['sort_direction']);\n\t\t}\n\t\t\n\t\t$query = $this->db->get($this->primary_table);\n\t\t\n\t\t// if an id was specified we know you only are retrieving a single record so we return the object\n\t\tif (isset($options[$this->primary_key]))\n\t\t{\n\t\t\treturn $query->row();\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn $query;\n\t\t}\n\t}", "public function table(string $table): Query;", "function listAll($db, $table, $options = '') {\n $query = 'SELECT * FROM ' . $table . ' ' . $options;\n\n $result = runQuery($db, $query);\n\n return $result;\n}", "public function setQueryOptions(array $options): void {\n\t\tif(!isset($options['limit'])) $options['limit'] = 20;\n\t\tif(!isset($options['offset'])) $options['offset'] = false;\n\t\tif(!isset($options['sort'])) $options['sort'] = false;\n\t\tif(!isset($options['sortDirection'])) $options['sortDirection'] = false;\n\t\tif(!isset($options['groupby'])) $options['groupby'] = '';\n\n\t\t$this->_queryOptions = $options;\n\t}", "function create_db_combo($tblname, $key_field, $value_field, $order_field, $additional_value='-Plese Select-', $param=''){\n $ci =& get_instance();\n //load databse library\n $ci->load->database();\n\n $ci->db->from($tblname);\n if($param!=''){\n $ci->db->where($param);\n }\n $ci->db->order_by($order_field);\n $result = $ci->db->get();\n\n $dd[''] = $additional_value ;\n if ($result->num_rows() > 0){\n foreach ($result->result() as $row) {\n $dd[$row->$key_field] = $row->$value_field;\n }\n }\n return $dd;\n }", "function load_option()\n {\n $op = array();\n \t// $query = $this->db->get('option');\n $query = $this->db->query('SELECT `var`,`value` FROM `option`');\n foreach ( $query->result_array() as $o )\n {\n \t$op[$o['var']] = $o['value'];\n }\n \n return $op;\n \n }", "function query($slt, $table, $where=false)\n\t{\n\t\t//echo \"<br>\";\n\t\treturn mysql_query(\"select \".$slt.\" from \".$table.\" where \".$where);\n\t}", "function PMA_getValuesForEditMode($paramArray)\n{\n $found_unique_key = false;\n list($table, $db) = $paramArray;\n if (isset($_REQUEST['where_clause'])) {\n $where_clause_array = PMA_getWhereClauseArray();\n list($whereClauses, $resultArray, $rowsArray, $found_unique_key)\n = PMA_analyzeWhereClauses($where_clause_array, $paramArray, $found_unique_key);\n return array(false, $whereClauses, $resultArray, $rowsArray, $where_clause_array, $found_unique_key);\n } else {\n list($results, $row) = PMA_loadFirstRowInEditMode($paramArray);\n return array(true, null, $results, $row, null, $found_unique_key);\n }\n}", "function getOptions()\n\t{\n\t\t\n\t\treturn $this->getAssoc(Array('id','title')/*, $cond*/);\n\t}", "public function where(array $params)\n {\n }", "public function where(array $array = array(), $operator = 'and') {\n $where = '';\n $counter = 0;\n foreach ($array as $key => $value) {\n $this->placeHolder[\":$key\"] = $value;\n if ($counter > 0) {\n $where.=\" $operator `$key`=:$key\";\n } else {\n $where.=\"`$key`=:$key\";\n }\n $counter++;\n }\n // $where = trim($where, $operator);\n $this->sql.=\" WHERE \" . $where;\n }", "public function findOneBy(array $options, $columns = ['*']);", "function getDetails($table,$condition_arr=array()) {\r\n $this->db->from($table);\r\n\t $this->db->where($condition_arr);\r\n $query=$this->db->get();\r\n return $query->result_array();\r\n\r\n\t}", "function get_table_or_where( $select_data, $where_data,$or_where_data, $table ){\n \n\t\t$this->db->select($select_data);\n\t\t$this->db->where($where_data);\n\t\t$this->db->or_where($or_where_data);\n\t\t$query = $this->db->get($table); //--- Table name = User\n\t\t$result = $query->result_array(); \n\t\treturn $result;\t\n }", "function select($table, $where = null, $params = array())\n {\n\n $defaults = array(\n 'fields' => '*',\n 'group' => NULL,\n 'order' => NULL,\n 'limit' => NULL,\n 'offset' => 0,\n 'join' => ''\n );\n\n $params = array_merge($defaults, $params);\n\n /**\n * JOIN\n */\n if (is_array($params['join'])) {\n $join = '';\n foreach ($params['join'] as $k => $v) {\n if (is_numeric($k)) {\n $join .= \" $v\";\n } else {\n if ($k[0] == '*') {\n $join .= ' left';\n $k = ltrim($k, '*');\n } else {\n $join .= ' inner';\n }\n $join .= \" join {$this->prefix}{$k} {$k} on {$v}\";\n }\n }\n } else {\n $join = $params['join'];\n }\n\n /**\n * FIELDS\n */\n if (!is_array($params['fields'])) {\n $params['fields'] = explode(\",\", $params['fields']);\n }\n\n $fields = array();\n\n foreach ($params['fields'] as $k => $v) {\n\n // Allow * and functions\n if (preg_match('/(\\*|[A-Z]+\\([^\\)]+\\)|[a-z]+\\([^\\)]+\\)|SQL_CALC_FOUND_ROWS.*)/', $v)) {\n $r = str_replace('`', '``', $v);\n } else {\n $r = \"`\" . implode('`.`', explode(\".\", str_replace('`', '``', $v))) . \"`\";\n }\n\n if (!is_numeric($k)) {\n $r .= sprintf(\" as `%s`\", str_replace('`', '``', $k));\n }\n\n //$fields[] = $r;\n $params['fields'][$k] = $r;\n }\n\n list($where, $bindings) = $this->_where($where);\n\n $sql = sprintf(/** @lang text */\n \"SELECT %s FROM `%s` %s %s %s\",\n implode(\", \", $params['fields']),\n $this->prefix . $table,\n $table,\n $join,\n !empty($where) ? 'WHERE ' . $where : '');\n\n if ($params['group']) {\n if (is_array($params['group'])) {\n throw new \\Exception('not implemented');\n } else {\n $sql .= sprintf(' GROUP BY %s', $params['group']);\n }\n }\n\n if (!empty($params['order'])) {\n if (is_array($params['order'])) {\n $params['order'] = implode(' ', $params['order']);\n }\n $sql .= sprintf(' ORDER BY %s', $params['order']);\n }\n\n if ($params['limit']) {\n $sql .= sprintf(' LIMIT %d,%d', $params['offset'], $params['limit']);\n }\n\n $query = $this->query($sql);\n\n $query->exec($bindings);\n\n return $query;\n }", "function KM_search($options=array(),$obj_type=FALSE){\n\t if(isset($options['class'])){\n\t\t $table=$this->db->dbprefix.$options['class'];\n\t\t}\n\t\telse{\n\t\t $table=$this->table;\n\t\t}\n\t $tmp_fields='';\n\t foreach($options['search_fields'] as $tmp){\n\t $tmp_fields .=$table.\".\".$tmp.\" LIKE '%\".$this->db->escape_like_str($options['keyword']).\"%' OR \";\n\t\t }\n\t //$conditions=\"MATCH (\".$fields.\") AGAINST ('\".$options['keyword'].\"*' IN BOOLEAN MODE) OR \".substr($tmp_fields,0,-4);\n\t $conditions=substr($tmp_fields,0,-4);\n\t $options['search_conditions']=$conditions;\n\t $result=$this->KM_all($options,$obj_type);\t\n\t\treturn $result;\t\t\n\t}", "function get_table_where( $select_data, $where_data, $table){\n \n\t\t$this->db->select($select_data);\n\t\t$this->db->where($where_data);\n\t\t$query = $this->db->get($table); //--- Table name = User\n\t\t$result = $query->result_array(); \n\t\treturn $result;\t\n }", "private function UseArrayOptions($arrayInfo)\n\t{\n\t\t$dsn = \"mysql:host=\" . $arrayInfo['host'].\";dbname=\".$arrayInfo['dbname'];\n\t\tparent::__construct($dsn, $arrayInfo['username'], $arrayInfo['password'], $this->options);\n\t}", "function getFields($table,$fields=\"\",$condition=\"\",$limit=\"\",$calculateRows=false,$fastHint=false);", "function getDataRowWhere($table,$fields = null,$where = null,$order = null) {\r\n\t\t\r\n\t\t$db = self::getDatabaseDataWhere($table,$fields,$where,$order);\r\n\t\t\r\n\t\t//echo $db->getQuery();\r\n\t\treturn $db->loadObject();\r\n\t}", "private function sqlstatements() {\n $this->select = array( );\n $this->insert = array( 'INSERT INTO :entity (xxx) VALUES (yyy)' );\n $this->update = array( );\n $this->delete = array( );\n }", "public function override( $options ){\n\t\tif ( isset($options['select']) ){\n\t\t\tif ( $options['select'] )\n\t\t\t\t$this->select = new Query\\Select( $options['select'] );\n\t\t\telse\n\t\t\t\t$this->select = new Query\\Select( '*' );\n\t\t}\n\n\t\tif ( isset($options['from']) ){\n\t\t\tif ( $options['from'] )\n\t\t\t\t$this->from = new Query\\From( $options['from'] );\n\t\t\telse\n\t\t\t\t$this->from = false;\n\t\t}\n\n\t\tif ( isset($options['where']) ){\n\t\t\tif ( $options['where'] )\n\t\t\t\t$this->where = new Query\\Where( $options['where'] );\n\t\t\telse\n\t\t\t\t$this->where = false;\n\t\t}\n\n\t\tif ( isset($options['limit']) ){\n\t\t\tif ( $options['limit'] )\n\t\t\t\t$this->limit = $options['limit'];\n\t\t\telse\n\t\t\t\t$this->limit = false;\n\t\t}\n\n\t\tif ( isset($options['order by']) ){\n\t\t\tif ( $options['order by'] )\n\t\t\t\t$this->orderBy = $options['order by'];\n\t\t\telse\n\t\t\t\t$this->orderBy = false;\n\t\t}\n\t\t\n\t\tif ( isset($options['group by']) ){\n\t\t\tif ( $options['group by'] )\n\t\t\t\t$this->groupBy = $options['group by'];\n\t\t\telse\n\t\t\t\t$this->groupBy = false;\n\t\t}\n\t}", "function getDataTable_Values($table_name, $where_id = \"\", $debug = FALSE)\n{\n $where_id = \"\" ? \"\" : \" where 1=1 AND \" . $where_id;\n $sql = \"SELECT * FROM {$table_name} \" . $where_id;\n if ($debug) {\n echo \"<br>\" . $sql . \"<br>\";\n }\n $res = sql($sql, $eo);\n return db_fetch_assoc($res);\n}", "function tck_admin_list_where($where) {\n if ( isset($_GET['custom_filter']) ) {\n $mode = $_GET['custom_filter'];\n \n if ( $mode == 1 ) $where .= ' AND `' . TCK_COLUMN . '` = 0';\n if ( $mode == 2 ) $where .= ' AND `' . TCK_COLUMN . '` = 1';\n }\n \n return $where;\n }", "function m_cek_jawaban($table, $where){\n\t\t$data = $this->db->get_where($table,$where);\n\t\treturn $data;\n\t}", "function createObjectFilter($opt) {\n\textract($opt);\n\n\t//make an array if we only have a singular column value\n\tif (is_array($object_filter)) $str = implode(\",\",$object_filter);\n\telse $str = $object_filter;\n\n\t$sql = \"SELECT id FROM docmgr.dm_object WHERE id IN (\".$str.\")\";\n\n\treturn $sql;\n\n}", "function build_table_search_params($index, $type, $query, $from = 0, $size = 1000) {\n $params = [];\n $params['index'] = $index;\n $params['type'] = $type;\n // sort the table by the first field by default\n //$sort_field = array_keys($field_content_pairs)[0];\n $params['body'] = [\n 'query' => $query,\n ];\n\n if (isset($_GET['order'])) {\n $sort_field = $_GET['order'];\n $sort_direction = isset($_GET['sort']) && $_GET['sort'] === 'desc' ? 'desc' : 'asc';\n $params['body']['sort'] = [\n $sort_field . \".raw\" => $sort_direction,\n ];\n }\n\n $params['from'] = $from;\n $params['size'] = $size;\n return $params;\n}", "public function query() {\n if (isset($this->value, $this->definition['trovequery'])) {\n $this->query->args['method'] = $this->definition['trovequery']['method'];\n if (is_array($this->value)) {\n $this->query->add_where($this->options['group'], $this->definition['trovequery']['arg'], implode($this->value, ','));\n }\n else {\n $this->query->add_where($this->options['group'], $this->definition['trovequery']['arg'], $this->value);\n }\n }\n }", "public function options();", "public function options();", "public function options();", "public function options();", "public function options();", "function getOptions() ;", "function getCombo( $table, $values, $titles, $where='' ) {\r\n\t\r\n\tglobal $site, $db;\r\n\t\r\n\tif ( $where == '' )\r\n\t\t$where = \"site_key='$site'\";\r\n\t\t\r\n\t$items = $db->getAll( \"select $values, $titles from $table where $where\" );\r\n\t\r\n\t$aValues = array();\r\n\t$aTitles = array();\r\n\t\r\n\tif ( is_array( $items ) && count( $items ) ) {\r\n\t\tforeach ( $items as $idx=>$item ) {\r\n\t\t\t$aValues[] = $item[$values];\r\n\t\t\t$aTitles[] = $item[$titles];\r\n\t\t}\r\n\t}\r\n\t\r\n\treturn array( $aValues, $aTitles );\r\n}", "function with (array $options);", "public function set_where(array $params) {\n $where = '';\n foreach ($params as $field_name => $field_value) {\n $where .= '`' . $field_name . '` = \\'' . $field_value . '\\' AND ';\n }\n\n $where = rtrim($where, ' AND ');\n $this->where = ' WHERE ' . $where;\n }", "abstract protected function options(): array;" ]
[ "0.6198988", "0.6081434", "0.58593273", "0.5847962", "0.58294785", "0.58288777", "0.581065", "0.5807992", "0.5788536", "0.5723299", "0.572035", "0.5690844", "0.5657299", "0.56246054", "0.56160915", "0.5613016", "0.5603739", "0.5541488", "0.54946065", "0.5479842", "0.5475485", "0.5458058", "0.5438625", "0.5436884", "0.54368055", "0.5425719", "0.54200786", "0.54125124", "0.53915125", "0.53915125", "0.5367242", "0.5364487", "0.5340324", "0.5332824", "0.5325525", "0.53061634", "0.5294999", "0.5290233", "0.5284527", "0.52816653", "0.5252919", "0.5251756", "0.5244032", "0.5237841", "0.5225225", "0.5218853", "0.5214014", "0.5207643", "0.51944935", "0.51907015", "0.5189585", "0.5177648", "0.5176335", "0.51667523", "0.51527184", "0.5150929", "0.51462847", "0.5143452", "0.5117421", "0.5116486", "0.51126367", "0.5110827", "0.5110827", "0.5108446", "0.51078606", "0.509862", "0.5098493", "0.5094143", "0.50904244", "0.50839466", "0.50770783", "0.5066483", "0.50643814", "0.50640637", "0.5053312", "0.505207", "0.5048393", "0.50475943", "0.5040503", "0.50368047", "0.5036651", "0.5036455", "0.50364083", "0.50346065", "0.5026501", "0.5025094", "0.5019866", "0.50121486", "0.50121117", "0.5008674", "0.5007198", "0.5001237", "0.5001237", "0.5001237", "0.5001237", "0.5001237", "0.5000924", "0.5000636", "0.49935612", "0.49909464", "0.49907538" ]
0.0
-1
/$where = array('col' => 'val'...)
public function parseWhere($where){ $whereStr = ''; if(is_string($where)){ $whereStr = $where; }else{ $str = array(); foreach($where as $key => $val){ $str[] = "`$key` = ".Model::parseValue($val); } $whereStr = "where ".implode(" AND ", $str); } return $whereStr; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function where(array $where);", "public function where($arr){//ex of $arr : ['name' => 'LIKE A%','email' => '= [email protected]']\n $c = \"\";\n $x = 0;\n foreach($arr as $key => $v){//for each param, translate to SQL language\n if($x != 0){\n $c .= \" AND\";\n }\n $x++;\n $c .= \" $key $v\";\n }\n $this->params[\"WHERE\"] = $c;//adding the conditions to the query\n return $this;\n }", "public function where($table,$column,$data = \"\");", "abstract public function where(array $where);", "function dbWhereVars() {\n\n foreach ($this->fields() as $f) {\n if ($this->$f === false) continue;\n $this->db->where($this->model.'.'.$f,$this->$f);\n }\n\n }", "public function where() {\r\n\t\t$args = func_get_args();\r\n\t\t$expr = array_shift($args);\r\n\t\tarray_push($this->_wheres, '(' . $this->_parameterize($expr, $args) . ')');\r\n\t\t$this->_dirty = true;\r\n\t}", "public function whereArray($wheres){\r\n\t\tforeach($wheres as $k => $v){\r\n\t\t\t$this->where(\"`$k`=?\", $v);\r\n\t\t}\r\n\t}", "public function find(array $where);", "function MyMod_Data_Fields_Sql_Where($data,$value)\n {\n $where=array();\n if (!empty($this->SqlWhere[ $data ]))\n {\n $where[ $data ]=$this->SqlWhere[ $data ];\n }\n return $where;\n }", "protected function user_where_clause() {}", "function generate_where($field,$array)\n{\n\tfor ($i=0;$i<sizeof($array);$i++)\n\t{\n\t\t$where=$where.\" \".$field.\" like \".$array[$i];\n\t\tif ($i<sizeof($array)-1)\n\t\t\t$where=$where.\" or\";\n\t}\n\tif (!isset($where))\n\t{\n\t\t$where = 0;\n\t}\n\tif (!isset($where))\n\t{\n\t\t$where=\"'0'\";\n\t}\n\treturn $where;\n}", "public function where($where=array())\n\t\t{\n\t\t\tif( is_array($where) && !empty($where)){\n\n\t\t\t\tforeach( $where as $k => $val ){\n\n\t\t\t\t\t// name = 'jack'\n\t\t\t\t\t// id > 1\n\t\t\t\t\t if( is_array($val) ){\n\n\t\t\t\t\t \t$type = $val[0];\n\n\t\t\t\t\t \tswitch($type){\n\t\t\t\t\t \t\tcase 'lt':\n\t\t\t\t\t \t\t\t$result[] = \"{$k} < {$val[1]} \";\n\t\t\t\t\t \t\t\tbreak;\n\t\t\t\t\t \t\tcase 'gt':\n\t\t\t\t\t \t\t\t$result[] = \"{$k} > {$val[1]} \";\n\t\t\t\t\t \t\t\tbreak;\n\t\t\t\t\t \t}\n\t\t\t\t\t \t\n\t\t\t\t\t }else{\n\n\t\t\t\t\t \t$result[] = \"{$k} = '{$val}'\";\n\t\t\t\t\t }\n\t\t\t\t}\n\n\t\t\t\t$this->where = 'where '.implode(' and ', $result);\n\t\t\t}\n\t\t\t\n\t\t\treturn $this;\n\t\t}", "public function where(array $params)\n {\n }", "function get_where($table_name,$where){\n\t\t$CI = &get_instance();\n\t\treturn $CI->db->get_where($table_name,$where)->result_array();\n\t}", "public function where()\n {\n $args = func_get_args();\n $count = count($args);\n \n if ($count == 1) {\n if (is_array($args[0])) {\n # This is expected to be a column => value associated array.\n # In this case, the array is stored as is.\n $this->where[] = $args[0];\n } else {\n # This is expected to be a string.\n $this->where[] = $args[0];\n }\n } elseif ($count) {\n # Case: $query->where(\"foo\", true, \"bar_baz\", $bar);\n if ($count >= 2 && is_int($count / 2) && (!is_array($args[1]) || Toolbox\\ArrayTools::isIndexed($args[1])) && is_bool(strpos($args[0], ' '))) {\n $where = [];\n foreach ($args as $key => $value) {\n $key++;\n if ($key && !($key % 2)) {\n $where[$next_key] = $value;\n } else {\n $next_key = $value;\n }\n }\n $this->where[] = $where;\n } else {\n $this->where[] = array_shift($args);\n \n # Case: $query->where('foo => :foo', ['foo' => $foo]);\n if ($count == 2 && is_array($args[0]) && !Toolbox\\ArrayTools::isIndexed($args[0]))\n $args = $args[0];\n \n if ($args)\n $this->where_params = array_merge($this->where_params, $args);\n }\n }\n return $this;\n }", "public function findBy(array $where = []);", "function map_wheres($where){\n //\n //return field to str\n return $where->to_str();\n }", "public function orWhere($table,$column,$data = \"\");", "public function get_where()\n {\n }", "public function get_where()\n {\n }", "public function where($col, $operator = self::NO_OPERATOR, $value = self::NO_VALUE);", "public function where($column, $operator, $value);", "private function where($where, &$params) {\n if (!isset($where)) {\n return false;\n }\n $rwhere = '';\n if (is_array($where)) {\n $rwhere = 'WHERE ';\n foreach ($where as $k => $v) {\n $v = trim($v);\n if (substr($v, 0, 1) == '\"' || substr($v, 0, 1) == \"'\" || substr($v, 0, 2) == 'fn') {\n $s = $v;\n } else {\n $va = ':w_' . $k;\n $params[$va] = empty($v) ? null : $v;\n $s = $va;\n }\n $rwhere .= \" `\" . $k . \"` = \" . $s . \" AND\";\n }\n $rwhere = substr($rwhere, 0, -4);\n } else {\n $rwhere = $where;\n }\n\n return $rwhere;\n }", "function getWhere($table,$col,$where,$order){\n $array=array();\n $conn=connectDB();\n $query=\"SELECT $col FROM $table WHERE $where ORDER BY $order\";\n //print($query);\n foreach ($conn->query($query)as $row){\n array_push($array,$row[$col]);\n }\n return $array;\n }", "public function where( array $value )\n {\n $this->query('where', $value);\n }", "public function makeWhere($where){// method makeWhere body start\n\t\t\n\t\t$count \t\t\t\t= 0;\n\t\t$returnWhere \t\t= \"\";\n\t\tforeach($where as $key => $val){\n\t\t\t\n\t\t\tif($count < 1){\n\t\t\t\t$returnWhere .= \"WHERE $key = '$val' \";\n\t\t\t}\n\t\t\telse{\n\t\t\t\t$returnWhere .= \"AND $key = '$val' \";\n\t\t\t}\n\t\t\t$count++;\n\t\t}\n\t\treturn $returnWhere;\n\t}", "function db_where($where, $join_and = true) {\n $where_clause = array();\n\n if (is_array($where)) {\n foreach ($where as $key => $value) {\n if (is_numeric($key)) {\n $where_clause[] = $value;\n } else {\n if (db_where_key_has_condition($key)) {\n // if has condition with it?\n // i.e array('name =' => $var) or array('age >' => $int)\n $where_clause[] = \" {$key} \\\"\".mres($value).\"\\\" \";\n } else {\n $where_clause[] = \" {$key} = \\\"\".mres($value).\"\\\" \";\n }\n }\n }\n } else {\n $where_clause[] = $where;\n }\n\n return '('.join($join_and ? ' AND ' : ' OR ', $where_clause).')';\n}", "function whereCheck($where){\n\tif ($where==null){\n\t\treturn $where;\n\t} else {\n\t\t// append the where postfix\n\t\t$where = \"WHERE $where\";\n\t\treturn $where;\n\t}\n}", "public function where() {\r\n\t\t$args = func_get_args();\r\n\t\treturn call_user_func_array(array($this, 'andWhere'), $args);\r\n\t}", "public function where(array $array = array(), $operator = 'and') {\n $where = '';\n $counter = 0;\n foreach ($array as $key => $value) {\n $this->placeHolder[\":$key\"] = $value;\n if ($counter > 0) {\n $where.=\" $operator `$key`=:$key\";\n } else {\n $where.=\"`$key`=:$key\";\n }\n $counter++;\n }\n // $where = trim($where, $operator);\n $this->sql.=\" WHERE \" . $where;\n }", "public function where($column, $value, $operator = '=')\n {\n }", "protected static function whereFormat($where){\n $whereArray = array();\n\n $operate = ' AND ';\n\n foreach ($where as $key => $set){\n if(is_string($set)){\n if(count($where) == 2){\n list($filed,$value) = $where;\n $whereArray[] = $filed . ' = ' . $value;\n }\n if(count($where) == 3){\n list($filed,$exp,$value) = $where;\n if(in_array($exp, array('=','<=','<>','>=')) && $value){\n $whereArray[] = $filed . \" $exp \" . $value;\n }\n if(in_array($exp, array('in','not in')) && $value){\n $value = implode(',', $value);\n $whereArray[] = $filed . \" $exp \" . \" ($value)\";\n }\n }\n break;\n }elseif(is_array($set)){\n if(count($set) == 2){\n list($filed,$value) = $set;\n $whereArray[] = $filed . ' = ' . $value;\n }\n if(count($set) == 3){\n list($filed,$exp,$value) = $set;\n if(in_array($exp, array('=','<=','<>','>=')) && $value){\n $whereArray[] = $filed . \" $exp \" . $value;\n }\n if(in_array($exp, array('in','not in')) && $value){\n $value = implode(',', $value);\n $whereArray[] = $filed . \" $exp \" . \" ($value)\";\n }\n }\n }\n\n }\n return implode($operate, $whereArray);\n }", "private function generateWhereString($array){\n\t\t$str = \" WHERE \";\n\t\tforeach($array as $k => $v){\n\t\t\t$str .= \" $k = $v\";\n\t\t}\n\t\treturn $str;\n\t}", "function where($callback,$strict = false){\r\n \treturn Arr::where($callback, $this, $strict);\r\n }", "public function where($field, $operator, $value);", "private function _set_where($params) {\n if (count($params) == 1) {\n if (!is_array($params[0]) && !strstr($params[0], \"'\")) {\n $this->db->where($this->primary_key, $params[0]); // 1.\n } else {\n $this->db->where($params[0]); // 2.\n }\n } elseif (count($params) == 2) {\n if (is_array($params[1])) {\n $this->db->where_in($params[0], $params[1]); // 4.\n } else {\n $this->db->where($params[0], $params[1]); // 3.\n }\n }\n }", "public function findWhere(String $column, $value, String $operator = '=');", "function get_row_where($table_name,$where){\n\t\t$CI = &get_instance();\n\t\treturn $CI->db->get_where($table_name,$where)->row_array();\n\t}", "public function where($clause, array $params);", "function array_to_where_clause($a_vars) {\n\tglobal $mysqli;\n\n\t$a_where = array();\n\tforeach($a_vars as $k=>$v) {\n\t\t\t$k = $mysqli->real_escape_string($k);\n\t\t\t$v = $mysqli->real_escape_string($v);\n\t\t\t$a_where[] = \"`$k`='$v'\";\n\t}\n\t$s_where = implode(' AND ', $a_where);\n\treturn $s_where;\n}", "public function set_where(array $params) {\n $where = '';\n foreach ($params as $field_name => $field_value) {\n $where .= '`' . $field_name . '` = \\'' . $field_value . '\\' AND ';\n }\n\n $where = rtrim($where, ' AND ');\n $this->where = ' WHERE ' . $where;\n }", "function where($sql, $params = []) {\n\t\tif (gettype($sql) == 'array') {\n\t\t\t$cols = array();\n\t\t\tforeach ($sql as $col => $val) {\n\t\t\t\t$cols[] = \"`$col` = ?\";\n\t\t\t\t$params[] = $val;\n\t\t\t}\n\t\t\t$sql = implode($cols, \" AND \");\n\t\t}\n\t\t\n\t\tisset($this->stmts['where']) ? $sql = \"AND $sql\" : $sql = \"WHERE $sql\";\n\t\treturn $this->appendStmt('where', $sql, $params);\n\t}", "public function findWhere(array $conditions);", "public function where($where_col_array = NULL, $value = NULL)\n {\n if(isset($where_col_array))\n {\n if (!is_array($where_col_array) && is_null($value)) {\n $this->_database->where(array($this->table.'.'.$this->primary => $where_col_array));\n } elseif (isset($value) && !is_array($value)) {\n $this->_database->where($where_col_array, $value);\n }\n elseif (isset($value) && is_array($value))\n {\n $this->_database->where_in($where_col_array,$value);\n }\n elseif (is_array($where_col_array)) {\n $this->_database->where($where_col_array);\n }\n }\n if($this->soft_deletes===TRUE)\n {\n $this->_where_trashed();\n }\n return $this;\n }", "protected function getWhereClause() {}", "public function findAllWhere(string $column, string $operator, $value, array $with = []);", "function where($s)\n{\n\t$this->tryModify();\n\tif(!isset($this->query['where'])) $this->query['where'] = array();\n\t$this->query['where'][] = $this->setWhereParams($s, func_get_args(), 1);\n\treturn $this;\n}", "public function where($field, $value) {\n\t$this->parseQuery->where($field, $value);\n }", "function s_m_put_get_condition($ref_id_db_arr, $ref_data){\r\n $where = \"\";\r\n for($i = 0; $i < count($ref_id_db_arr); $i++){\r\n $where .= $ref_id_db_arr[$i] . \"='\" . $ref_data[$i] . \"'' AND \";\r\n }\r\n return substr($where, 0, strlen($where) - 5);\r\n}", "public function get_where($where) {\r\n $query = $this->db->get_where('ots', $where);\r\n \r\n return $query->row_array();\r\n }", "public function cpSearch($tablename,$value1=0,$value2=0) {\n\n /*\n * Prepare the select statement\n */\n $sql=\"SELECT * FROM $tablename\";\n if($value1!=0)\n { $key1= key($value1);\n $sql.=\" where $key1 like '%$value1[$key1]%'\";\n }\n if($value1!=0 && $value2!=0) \n {\n $key2= key($value2);\n $sql.=\" AND $key2='$value2[$key2]'\";\n }\n \n $sth = $this->dbh->prepare($sql);\n $sth->execute();\n $result = $sth->fetchAll(PDO::FETCH_ASSOC);\n return $result;\n \n}", "function Select_Record_By_One_Filter($data, $table_name) {\r\n global $con;\r\n $key = array_keys($data);\r\n $value = array_values($data);\r\n $sql = \"select * from $table_name where $key[0] = '$value[0]'\";\r\n try {\r\n $stmt = $con->query($sql);\r\n return $stmt;\r\n } catch (PDOException $e) {\r\n print $e->getMessage();\r\n }\r\n}", "public function where(string $key, $value);", "public function whereall() {\n\t\t\treturn 'id=id';\n\t\t}", "public function getWhere($where, Database_Config $databaseConfig = NULL);", "public function andWhere($col, $operator = self::NO_OPERATOR, $value = self::NO_VALUE);", "public function findOneBy($column, $value, array $where = array());", "public function findOne_obj(array $where): array{\n $tableName = static::tableName();\n $attributes = array_keys($where);\n $query = implode(\"AND\", array_map(fn($attr) =>\"$attr = :$attr\", $attributes));\n $st = self::prepare(\n \"SELECT * FROM $tableName\n WHERE $query\"\n );\n foreach($where as $key => $item){\n $st->bindValue(\":$key\", $item);\n }\n $st->execute();\n \n return $st->fetchAll(\\PDO::FETCH_OBJ);\n }", "public function getWhereSQL()\n {\n return \" AND \" . $this->field_where_name . \" LIKE '%\" . $this->field_row->criteria . \"%' \";\n \n }", "function where($keys, $data) {\n\n $WHERE = array();\n\n foreach ($keys as $key) {\n $index = $key;\n $value = $data[$key];\n $WHERE[] = \"`$index` = '\" . str_replace(\"'\", \"\\'\", $value) . \"'\";\n }\n\n return implode(' AND ', $WHERE);\n}", "public function getValueAsWhereClause(): ?array;", "private function buildWhere ($array) {\n\n // Only do anything if the array contains anything\n if($array){ \n\n // Loop through the array where $key is the column name and $value are the \n // array containing the operator [0] and values [1]\n foreach($array as $key => $value){ \n\n // We set each element of the where clause to $this->where before setting it to\n // $this->show_where. If it already exists we must have already have something\n // in the where clause so set $preSql to ' AND ' otherwise set it to ' WHERE '\n $preSql = (isset($this->where)) ? ' AND ' : ' WHERE ';\n\n // As we need different ways of building the where clause elements, depending on\n // the operator ($value[0]), we run a switch statement to call the function to\n // build the correct type of element, passing in the field name ($key) and the\n // operator and criteria ($value array)\n switch($value[0]) {\n case '>':\n case '<':\n case '=':\n case '<=':\n case '>=':\n case '!=':\n case '<>':\n case 'LIKE':\n $this->where = $this->whereElementStandard ($key, $value);\n break;\n\n case 'IN':\n $this->where = $this->whereElementIn ($key, $value); \n break;\n\n case 'BETWEEN':\n $this->where = $this->whereElementBetween ($key, $value); \n break;\n case 'NULL':\n case 'NOT NULL':\n $this->where = $this->whereElementNull ($key, $value); \n break;\n\n default:\n $this->where = $this->whereElementStandard ($key, $value);\n break;\n } // End switch\n\n \n // Add the created where clause elements to $this->show_where\n $this->show_where .= $preSql.$this->where;\n } // End foreach\n } // End if $array\n }", "public function getTableWhere() {}", "public function get_Where($data,$tables){\n return $this->db->get_where($tables,$data)->result();\n }", "public function get_Where($data,$tables){\n return $this->db->get_where($tables,$data)->result();\n }", "public static function where($column, $value, $operator = '=');", "function getDataRowWhere($table,$fields = null,$where = null,$order = null) {\r\n\t\t\r\n\t\t$db = self::getDatabaseDataWhere($table,$fields,$where,$order);\r\n\t\t\r\n\t\t//echo $db->getQuery();\r\n\t\treturn $db->loadObject();\r\n\t}", "function jqGridGetWhereClause($col, $oper, $val)\n{\n\t$ops = array(\n\t\t'eq'=>'=', //equal\n\t\t'ne'=>'<>',//not equal\n\t\t'lt'=>'<', //less than\n\t\t'le'=>'<=',//less than or equal\n\t\t'gt'=>'>', //greater than\n\t\t'ge'=>'>=',//greater than or equal\n\t\t'bw'=>'LIKE', //begins with\n\t\t'bn'=>'NOT LIKE', //doesn't begin with\n\t\t'in'=>'LIKE', //is in\n\t\t'ni'=>'NOT LIKE', //is not in\n\t\t'ew'=>'LIKE', //ends with\n\t\t'en'=>'NOT LIKE', //doesn't end with\n\t\t'cn'=>'LIKE', // contains\n\t\t'nc'=>'NOT LIKE' //doesn't contain\n\t); \n\tif($oper == 'bw' || $oper == 'bn') $val .= '%';\n\tif($oper == 'ew' || $oper == 'en' ) $val = '%'.$val;\n\tif($oper == 'cn' || $oper == 'nc' || $oper == 'in' || $oper == 'ni') $val = '%'.$val.'%';\n\treturn \"$col {$ops[$oper]} '$val'\";\n}", "function tck_admin_list_where($where) {\n if ( isset($_GET['custom_filter']) ) {\n $mode = $_GET['custom_filter'];\n \n if ( $mode == 1 ) $where .= ' AND `' . TCK_COLUMN . '` = 0';\n if ( $mode == 2 ) $where .= ' AND `' . TCK_COLUMN . '` = 1';\n }\n \n return $where;\n }", "public function findOne(array $where);", "public static function val($table, $field, $where) {\n $fields = $wheres = array();\n if ( is_array( $field ) ){\n foreach ( $field as $c => $f )\n $fields[] = \"`$f`\";\n }else{\n return false;\n }\n\n if ( is_array( $where ) ){\n foreach ( $where as $c => $v ){\n if(strpos($c,'!')===false){\n $wheres[] = \"$c = '\" . addslashes( $v ) . \"'\";\n }else{\n $c = str_replace('!', '', $c);\n $wheres[] = \"$c != '\" . addslashes( $v ) . \"'\";\n }\n }\n }else{\n return false;\n }\n return self::value(\"SELECT \".implode( ', ', $fields ).\" FROM \".iPHP_DB_PREFIX_TAG.\"{$table} WHERE \" . implode( ' AND ', $wheres ) . ' LIMIT 1;' );\n }", "function get_where($data) {\n\t\t$query = $this->db->get_where('realisasi_skp',$data);\n\t\treturn $query->result();\t\t\n\t}", "static function add_condition($where=array(),$cond='',$key=NULL,$value=NULL) {\n\tif ($cond) $where['cond'][]=$cond;\n\t$args=func_get_args();\n\tfor ($i=2; $i<count($args); $i=$i+2) {\n\t\tif (isset($args[$i])) $where['value'][$args[$i]]=isset($args[$i+1])?$args[$i+1]:NULL;\n\t}\n\treturn $where;\n}", "private function _process_where_single($where){\n\t\tif((!isset($where['field'])&&!isset($where['name']))||!isset($where['operator'])){\n\t\t\t$return = '';\n\t\t}else{\n\t\t\tif(!isset($where['value'])){\n\t\t\t\t$where['value'] = '';\n\t\t\t}\n\t\t\t$field\t\t = isset($where['field'])?$where['field']:$where['name'];\n\t\t\t$operator\t = strtoupper($where['operator']);\n\t\t\t$value\t\t = $where['value'];\n\t\t\t$extra\t\t = isset($where['extra'])?$where['extra']:'';\n\t\t\t$escape\t\t = isset($where['escape'])?$where['escape']:'auto'; //this can be : auto (filter/value chooses if escape or not), true (always escapes), false (never escapes)\n\t\t\t$return\t\t = '';\n\n\t\t\t//let's create some backwards compatibility\n\t\t\tswitch($operator){\n\t\t\t\tcase 'F=':\n\t\t\t\tcase 'F>':\n\t\t\t\tcase 'F<':\n\t\t\t\tcase 'F!=':\n\t\t\t\tcase 'F>=':\n\t\t\t\tcase 'F<=':\n\t\t\t\t\t//field base\n\t\t\t\t\t$operator\t = substr($operator, 1);\n\t\t\t\t\t$escape\t\t = false;\n\t\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\t//fixing some non standard operators\n\t\t\tswitch($operator){\n\t\t\t\tcase '!=':\n\t\t\t\t\t$operator = '<>';\n\t\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\t//let's prepare the $where['value']\n\t\t\tswitch($operator){\n\t\t\t\tcase 'AGAINST':\n\t\t\t\t\t$value = '(';\n\t\t\t\t\tif(is_array($where['value'])){\n\t\t\t\t\t\t$value .= $this->_escape_field($where['value'][0], $escape);\n\t\t\t\t\t\t$value .= ' '.$where['value'][1];\n\t\t\t\t\t}else{\n\t\t\t\t\t\t$value = $this->_escape_field($where['value'], $escape);\n\t\t\t\t\t}\n\t\t\t\t\t$value .= ')';\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'BETWEEN':\n\t\t\t\t\tif(!is_array($where['value'])){\n\t\t\t\t\t\t$where['value'] = array(0, 0);\n\t\t\t\t\t}else{\n\t\t\t\t\t\tif(!isset($where['value'][0])) $where['value'][0]\t = 0;\n\t\t\t\t\t\tif(!isset($where['value'][1])) $where['value'][1]\t = 0;\n\t\t\t\t\t}\n\t\t\t\t\t$value\t = $this->_escape_field($where['value'][0], $escape).' AND '.$this->_escape_field($where['value'][1], $escape);\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'NOT IN':\n\t\t\t\tcase 'IN':\n\t\t\t\t\t$value\t = '(';\n\t\t\t\t\tif(is_array($where['value'])){\n\t\t\t\t\t\tforeach($where['value'] as $k => $v){\n\t\t\t\t\t\t\t$where['value'][$k] = $this->_escape_field($where['value'][$k], $escape);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t$value .= implode(',', $where['value']);\n\t\t\t\t\t}else{\n\t\t\t\t\t\t$value .= $this->_escape_field($where['value'], $escape);\n\t\t\t\t\t}\n\t\t\t\t\t$value .= ')';\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'IS':\n\t\t\t\tcase 'IS NOT':\n\t\t\t\t\t//exception to _escape_field because the \"NULL\" will not need to be escaped\n\t\t\t\t\t//so the default behavior is to NOT escape\n\t\t\t\t\tif($escape===false||$escape==='auto'){\n\t\t\t\t\t\t$value = $where['value'];\n\t\t\t\t\t}else{\n\t\t\t\t\t\t$value = '\"'.$this->db->real_escape_string($where['value']).'\"';\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'FIND_IN_SET':\n\t\t\t\tcase 'NOT FIND_IN_SET':\n\t\t\t\t\t$value\t = $this->_escape_field($where['value'], $escape);\n//\t\t\t\tif($escape === false){\n//\t\t\t\t\t$value = $where['value'];\n//\t\t\t\t}else{\n//\t\t\t\t\t$value = '\"'.$this->db->real_escape_string($where['value']).'\"';\n//\t\t\t\t}\n\t\t\t\t\t$return\t = $operator.'('.$value.','.$field.')';\n\t\t\t\t\tbreak;\n\t\t\t\t//all of those are falling into the default\n\t\t\t\t/*\n\t\t\t\t case 'REGEXP':\n\t\t\t\t case 'LIKE':\n\t\t\t\t case '=':\n\t\t\t\t case '!=':\n\t\t\t\t case '>':\n\t\t\t\t case '<':\n\t\t\t\t case '=>':\n\t\t\t\t case '=<':\n\t\t\t\t */\n\t\t\t\tdefault:\n\t\t\t\t\t$value\t = $this->_escape_field($where['value'], $escape);\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif($return==''){\n\t\t\t\t$return = $field.' '.$operator.' '.$value.' '.$extra;\n\t\t\t}\n\t\t}\n\t\treturn $return;\n\t}", "function MyMod_Search_Vars_Pre_Where()\n {\n $searchvars=array();\n foreach ($this->MyMod_Search_Vars() as $data)\n {\n $wheres=array();\n if ($this->MyMod_Data_Access($data)>=1)\n {\n $rdata=$this->MyMod_Search_CGI_Name($data);\n $value=$this->MyMod_Search_CGI_Value($data);\n\n if (!empty($value))\n {\n $where=$this->MyMod_Search_Var_Where($data,$value);\n if (!empty($where))\n {\n array_push($wheres,$where);\n }\n\n $searchjoined=$this->ItemData($data,\"Search_Joined\");\n\n if (is_array($searchjoined))\n {\n foreach ($searchjoined as $rdata)\n {\n if (!empty($this->ItemData[ $rdata ]))\n {\n array_push\n (\n $wheres,\n $this->MyMod_Search_Var_Where($data,$value,$rdata)\n );\n }\n }\n }\n\n $searchvars[ $data ]=\"(\".join(\" OR \",$wheres).\")\";\n }\n }\n \n }\n\n return $searchvars;\n }", "function plain_where($base) {\r\n for($i=1; $i<=$this->conditions; $i++) {\r\n ## Only create conditions for used input fields\r\n if ($GLOBALS[$base][\"input_\".$i] == \"\")\r\n continue;\r\n\r\n ## If necessary, add conjunction\r\n if ($q != \"\")\r\n $q .= sprintf(\" %s \", $GLOBALS[$base][\"conj_\".$i]);\r\n \r\n ## Handle \"like\"\r\n if ($GLOBALS[$base][\"comp_\".$i] == \"like\")\r\n $v = \"%\".$GLOBALS[$base][\"input_\".$i].\"%\";\r\n else\r\n $v = $GLOBALS[$base][\"input_\".$i];\r\n\r\n ## Create subcondition\r\n $q .= sprintf(\"%s %s '%s'\",\r\n $GLOBALS[$base][\"sel_\".$i],\r\n $GLOBALS[$base][\"comp_\".$i],\r\n $v);\r\n }\r\n \r\n if (!$q) {\r\n $q = \"1=0\";\r\n }\r\n \r\n return \"( $q )\";\r\n }", "Private function where($tableName,array $conditions,array $options = array()){\n\t\tif(empty ($options))$options = array('prepend' => true ,'join' => ' AND ');\n\t\tif(!isset($options['join'])) $options['join'] = ' AND ';\n\t\t$ops = $this->_operators;\n\t\t$schema = $this->schema[$tableName];\n\t\t$conditions = $this->addSlashesDeep($conditions);\n\t\tswitch (true) {\n\t\t\tcase empty($conditions):\n\t\t\t\treturn '';\n\t\t\tcase is_string($conditions):\n\t\t\t\treturn ($options['prepend']) ? \" WHERE {$conditions}\" : $conditions;\n\t\t\tcase !is_array($conditions):\n\t\t\t\treturn '';\n\t\t}\n\t\t$result = array();\n\n if(count($conditions) > 0 && count($schema) > 0){\n foreach ($conditions as $key => $value) {\n $schema[$key] = isset($schema[$key]) ? $schema[$key] : array();\n switch (true) {\n case strtolower($key) == 'or':\n case strtolower($key) == 'and':\n $result[] = $this->where($tableName,$value,array('prepend' => FALSE,'join' => \" {$key} \"));\n break;\n case (is_numeric($key) && is_array($value)):\n $result[] = $this->where($tableName,$value,array('prepend' => FALSE));\n break;\n case (is_numeric($key) && is_string($value)):\n $result[] = $value;\n break;\n case (is_string($key) && is_array($value) && isset($ops[key($value)])):\n foreach ($value as $op => $val) {\n $result[] = $this->_operator($tableName,$key, array($op => $val), $schema[$key]);\n }\n break;\n case (is_string($key) && is_array($value)):\n $value = join(', ', $this->value($value, $schema[$key]));\n $result[] = \"{$tableName}.{$key} IN ({$value})\";\n break;\n case (is_string($key) && is_string($value) && strpos($value,'%') !== FALSE):\n if(array_key_exists ($key,$this->schema[$tableName])){\n $result[] = \"{$tableName}.{$key} LIKE '{$value}'\";\n }\n else{\n $result[] = \"{$key} LIKE '{$value}'\";\n }\n //$result[] = \"{$tableName}.{$key} LIKE '{$value}'\";\n break;\n default:\n $value = $this->value($value, $schema[$key]);\n $result[] = $tableName.\".\".$key.\" = \".$value;\n break;\n }\n }\n }\n\n\t\tif(count($result)>1){\n\t\t\t$result = \"(\".join($options['join'], $result).\")\";\n\t\t}else{\n\t\t\t$result = join($options['join'], $result);\n\t\t}\n\t\treturn ($options['prepend'] && !empty($result)) ? \"WHERE {$result}\" : $result;\n\t}", "function start_group_where($key,$value=NULL,$escape=TRUE,$type=\"AND\")\n {\n $this->open_bracket($type); \n return parent::_where($key, $value,'',$escape); \n }", "public function where()\n {\n $args = func_get_args();\n $num_args = count($args);\n \n // Custom queries\n if ( $num_args == 2 && is_array($args[1]) )\n {\n $this->where = $args[0];\n $this->params = $args[1];\n }\n else\n {\n // AND equality condition\n if ( $num_args == 2 )\n {\n list($field, $value) = $args;\n $op = '=';\n }\n // AND with custom operation condition\n else\n {\n list($field, $op, $value) = $args;\n }\n $this->appendWhere('AND', $field, $op, $value); \n }\n return $this;\n }", "function edit_data($where,$table){ \n return $this->db->get_where($table,$where);\n }", "public function add_where( $where ) {\r\n\t\t$this->where .= $where;\r\n\t}", "function edit_data($where,$table){\n return $this->db->get_where($table,$where);\n }", "public function testPDONewWhere()\n {\n $mod = Read::Factory($this->_table, $this->_db, \"MysqlPDO\");\n\n $where = [\n \"(\",\n\n \"(\",\n ['fend_test.`db`.user_id', 14],\n ['users.user_name', 'oak'],\n ['`users`.user_id', \">=\", 0],\n \")\",\n\n \"OR\",\n\n \"(\",\n ['`user_id`', \"<=\", 10000],\n ['user_id', \"like\", '57%'],\n \")\",\n\n \")\",\n\n \"OR\",\n\n ['user_id', \"in\", [1, 2, 3, 4, 5, 6]],\n\n \"OR\",\n\n \"(\",\n ['user_id', \"not in\", ['a', 'c', 'd', 'f']],\n \" `user_name` = 'yes' \",\n \")\",\n\n ];\n $mod->where($where);\n $sql = $mod->getSql();\n self::assertEquals('SELECT * FROM users WHERE ( ( `fend_test`.`db`.`user_id` = \\'14\\' AND `users`.`user_name` = \\'oak\\' AND `users`.`user_id` >= \\'0\\' ) OR ( `user_id` <= \\'10000\\' AND `user_id` like \\'57%\\' ) ) OR `user_id` in (\\'1\\',\\'2\\',\\'3\\',\\'4\\',\\'5\\',\\'6\\') OR ( `user_id` not in (\\'a\\',\\'c\\',\\'d\\',\\'f\\') AND `user_name` = \\'yes\\' ) ', $sql);\n\n }", "private function appendWhere()\n\t{\n\t\t$whereCount = count($this->where);\n\n\t\tfor($i = 0; $i < $whereCount; $i++)\n\t\t{\n\t\t\t$where = $this->where[$i];\n\n\t\t\tif($i == 0)\n\t\t\t{\n\t\t\t\t$this->queryString .= self::WHERE;\n\t\t\t}\n\n\t\t\t$this->queryString .= $where->getCondition();\n\n\t\t\tif($i < $whereCount-1)\n\t\t\t{\n\t\t\t\t$this->queryString .= \" \" . $where->getOperator() . \" \";\n\t\t\t}\n\t\t}\n\t}", "function Select_Record_By_Two_Filter($data, $table_name) {\r\n global $con;\r\n $key = array_keys($data);\r\n $value = array_values($data);\r\n $sql = \"select * from $table_name where $key[0] = '$value[0]' AND $key[1] = '$value[1]'\";\r\n try {\r\n $stmt = $con->query($sql);\r\n return $stmt;\r\n } catch (PDOException $e) {\r\n print $e->getMessage();\r\n }\r\n}", "function m_cek_jawaban($table, $where){\n\t\t$data = $this->db->get_where($table,$where);\n\t\treturn $data;\n\t}", "public function get_where_condition($where = []) {\n\t\t\t// Init bindings params\n\t\t\t$this->bindings = [];\n\n\t\t\t// If $where is not empty\n\t\t\tif (count($where) > 0) {\n\t\t\t\t// Loop through conditions\n\t\t\t\tforeach ($where as $col => $val) {\n\t\t\t\t\t// Transform [col => val] to \"col = ?\"\n\t\t\t\t\t$where[] = \"$col = ?\";\n\t\t\t\t\t// Add the value to the bindings params\n\t\t\t\t\t$this->bindings[] = $val;\n\t\t\t\t\t// Remove the array of [col => val]\n\t\t\t\t\tunset($where[$col]);\n\t\t\t\t}\n\t\t\t\t// Transfome [\"col1 = ?\", \"col2 = ?\"] to \"col1 = ? AND col2 = ?\"\n\t\t\t\t$where = implode(' AND ', $where);\n\t\t\t\t// Add WHERE satatement before\n\t\t\t\t$where = \"WHERE $where\";\n\t\t\t\t// Return the where conditions string\n\t\t\t\treturn $where;\n\t\t\t}\n\n\t\t\t// Else\n\t\t\t// Return empty string\n\t\t\treturn '';\n\t\t}", "public function where($field, $value, $comparison = '==', $logical = 'and');", "public function Where($key, $value)\n {\n $this->where = \"WHERE $key = '$value'\";\n }", "public function testWhere() {\n\t\t$array = array(\n\t\t\tarray('a' => 1, 'b' => 'testing'),\n\t\t\tarray('a' => 2, 'b' => 'testing'),\n\t\t\tarray('a' => 3, 'b' => 'one'),\n\t\t\tarray('a' => 2, 'b' => 'two'),\n\t\t\tarray('a' => 4, 'b' => 'three'),\n\t\t);\n\t\t$result = _::where($array);\n\t\t$this->assertInternalType('array', $result);\n\t\t$this->assertCount(0, $result);\n\n\t\t// test matching a single field in an array\n\t\t$result = _::where($array, array('b' => 'testing'));\n\t\t$this->assertInternalType('array', $result);\n\t\t$this->assertCount(2, $result);\n\t\t$this->assertEquals(1, $result[0]['a']);\n\t\t$this->assertEquals('testing', $result[0]['b']);\n\t\t$this->assertEquals(2, $result[1]['a']);\n\t\t$this->assertEquals('testing', $result[1]['b']);\n\n\t\t// test finding the first element by a single field in an array\n\t\t$result = _::where($array, array('b' => 'testing'), true);\n\t\t$this->assertInternalType('array', $result);\n\t\t$this->assertCount(2, $result);\n\t\t$this->assertEquals(1, $result['a']);\n\t\t$this->assertEquals('testing', $result['b']);\n\n\t\t// test matching objects in an array\n\t\tforeach ($array as $i => $item) {\n\t\t\t$array[$i] = (object)$item;\n\t\t}\n\t\t$result = _::where($array, array('a' => 2));\n\t\t$this->assertInternalType('array', $result);\n\t\t$this->assertCount(2, $result);\n\t\t$this->assertEquals(2, $result[1]->a);\n\t\t$this->assertEquals('testing', $result[1]->b);\n\t\t$this->assertEquals(2, $result[3]->a);\n\t\t$this->assertEquals('two', $result[3]->b);\n\t}", "function _where ($identifier_array, $o = TRUE) {\n\t\t$statement = '';\n\t\tif ( !isset($identifier_array) || !$identifier_array ) {\n\t\t\treturn $statement;\n\t\t}\n\t\t$statement .= $o ? ' WHERE ' : ' ';\n\t\tforeach ($identifier_array as $query_array) {\n\t\t\t$sub_stmt = '(';\n\t\t\tif ( isset($query_array['name']) && ! is_array($query_array['value']) ) {\n\t\t\t\t$regex = isset($query_array['regex']) ? $query_array['regex'] : '@';\n\t\t\t\t$sub_stmt .= '`' . $query_array['name'] . '` ';\n\t\t\t\t$sub_stmt .= (isset($query_array['ctype']) ? $query_array['ctype'] : '=') . ' ';\n\t\t\t\t$sub_stmt .= $this->escape($query_array['value'], $regex, FALSE);\n\t\t\t} else {\n\t\t\t\t// Incoming value is an array.\n\t\t\t\t$sub_stmt .= $this->_where($query_array['value'], FALSE);\n\t\t\t}\n\t\t\t$sub_stmt .= ')';\n\t\t\t$sub_stmt .= (isset($query_array['atype']) ? (' ' . $query_array['atype']).' ' : '');\n\t\t\t$statement .= $sub_stmt;\n\t\t}\n\t\treturn $statement; \n\t}", "function getDatabaseDataWhere($table,$fields,$where,$order,$limit_start,$limit_limit) {\r\n\t\t\r\n\t\tif (!$table) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t\t$db\t\t= JFactory::getDbo();\r\n\t\t$query\t= $db->getQuery(true);\r\n\t\t\r\n\t\t$query->select('a.id');\r\n\t\t//$query->select('a.'.$key.' ,a.'.$label.'');\r\n\t\tif (is_array($fields)) {\r\n\t\t\tforeach($fields as $field) {\r\n\t\t\t\t$query->select('a.'.$field);\r\n\t\t\t}\r\n\t\t}\r\n\t\t$query->from($table.' as a');\r\n\r\n\t\tif ( is_array($where) ) {\r\n\t\t\tforeach($where as $where_key => $where_item) {\r\n\t\t\t\t$query->where('a.'.$where_key.' = \"'.$where_item.'\"' );\r\n\t\t\t}\r\n\t\t}\t\t\r\n\t\t\r\n\t\tif (is_array($order)) {\r\n\t\t\tforeach($order as $order_item) {\r\n\t\t\t\t$query->order('a.'.$order_item);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\tif ( is_int($limit_start) && is_int($limit_limit) ) { \r\n\t\t\t$db->setQuery((string)$query,$limit_start, $limit_limit);\r\n\t\t} else {\r\n\t\t\t$db->setQuery((string)$query);\r\n\t\t}\r\n\r\n\t\tif (!$db->query()) {\r\n\t\t\tJError::raiseError(500, $db->getErrorMsg());\r\n\t\t}\r\n\r\n\t\t//echo $db->getQuery();\r\n\t\treturn $db;\r\n\t}", "function where( ...$getwherekeys) { \n $whereorhaving = ($this->iswhere) ? 'WHERE' : 'HAVING';\n $this->iswhere = true;\n \n\t\tif (!empty($getwherekeys)){\n\t\t\tif (is_string($getwherekeys[0])) {\n\t\t\t\tforeach ($getwherekeys as $makearray) \n\t\t\t\t\t$wherekeys[] = explode(' ',$makearray);\t\n\t\t\t} else \n\t\t\t\t$wherekeys = $getwherekeys;\t\t\t\n\t\t} else \n\t\t\treturn '';\n\t\t\n\t\tforeach ($wherekeys as $values) {\n\t\t\t$operator[] = (isset($values[1])) ? $values[1]: '';\n\t\t\tif (!empty($values[1])){\n\t\t\t\tif (strtoupper($values[1]) == 'IN') {\n\t\t\t\t\t$wherekey[ $values[0] ] = array_slice($values,2);\n\t\t\t\t\t$combiner[] = (isset($values[3])) ? $values[3]: _AND;\n\t\t\t\t\t$extra[] = (isset($values[4])) ? $values[4]: null;\t\t\t\t\n\t\t\t\t} else {\n\t\t\t\t\t$wherekey[ (isset($values[0])) ? $values[0] : '1' ] = (isset($values[2])) ? $values[2] : '' ;\n\t\t\t\t\t$combiner[] = (isset($values[3])) ? $values[3]: _AND;\n\t\t\t\t\t$extra[] = (isset($values[4])) ? $values[4]: null;\n\t\t\t\t}\t\t\t\t\n\t\t\t} else {\n $this->setParamaters();\n\t\t\t\treturn false;\n } \n\t\t}\n \n $where='1'; \n if (! isset($wherekey['1'])) {\n $where='';\n $i=0;\n $needtoskip=false;\n foreach($wherekey as $key=>$val) {\n $iscondition = strtoupper($operator[$i]);\n\t\t\t\t$combine = $combiner[$i];\n\t\t\t\tif ( in_array(strtoupper($combine), array( 'AND', 'OR', 'NOT', 'AND NOT' )) || isset($extra[$i])) \n\t\t\t\t\t$combinewith = (isset($extra[$i])) ? $combine : strtoupper($combine);\n\t\t\t\telse \n\t\t\t\t\t$combinewith = _AND;\n if (! in_array( $iscondition, array( '<', '>', '=', '!=', '>=', '<=', '<>', 'IN', 'LIKE', 'NOT LIKE', 'BETWEEN', 'NOT BETWEEN', 'IS', 'IS NOT' ) )) {\n $this->setParamaters();\n return false;\n } else {\n if (($iscondition=='BETWEEN') || ($iscondition=='NOT BETWEEN')) {\n\t\t\t\t\t\t$value = $this->escape($combinewith);\n\t\t\t\t\t\tif (in_array(strtoupper($extra[$i]), array( 'AND', 'OR', 'NOT', 'AND NOT' ))) \n\t\t\t\t\t\t\t$mycombinewith = strtoupper($extra[$i]);\n\t\t\t\t\t\telse \n $mycombinewith = _AND;\n\t\t\t\t\t\tif ($this->getPrepare()) {\n\t\t\t\t\t\t\t$where.= \"$key \".$iscondition.' '._TAG.\" AND \"._TAG.\" $mycombinewith \";\n\t\t\t\t\t\t\t$this->setParamaters($val);\n\t\t\t\t\t\t\t$this->setParamaters($combinewith);\n\t\t\t\t\t\t} else \n\t\t\t\t\t\t\t$where.= \"$key \".$iscondition.\" '\".$this->escape($val).\"' AND '\".$value.\"' $mycombinewith \";\n\t\t\t\t\t\t$combinewith = $mycombinewith;\n\t\t\t\t\t} elseif ($iscondition=='IN') {\n\t\t\t\t\t\t$value = '';\n\t\t\t\t\t\tforeach ($val as $invalues) {\n\t\t\t\t\t\t\tif ($this->getPrepare()) {\n\t\t\t\t\t\t\t\t$value .= _TAG.', ';\n\t\t\t\t\t\t\t\t$this->setParamaters($invalues);\n\t\t\t\t\t\t\t} else \n\t\t\t\t\t\t\t\t$value .= \"'\".$this->escape($invalues).\"', \";\n\t\t\t\t\t\t}\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t$where.= \"$key \".$iscondition.\" ( \".rtrim($value, ', ').\" ) $combinewith \";\n\t\t\t\t\t} elseif(((strtolower($val)=='null') || ($iscondition=='IS') || ($iscondition=='IS NOT'))) {\n $iscondition = (($iscondition=='IS') || ($iscondition=='IS NOT')) ? $iscondition : 'IS';\n $where.= \"$key \".$iscondition.\" NULL $combinewith \";\n } elseif((($iscondition=='LIKE') || ($iscondition=='NOT LIKE')) && ! preg_match('/[_%?]/',$val)) return false;\n else {\n\t\t\t\t\t\tif ($this->getPrepare()) {\n\t\t\t\t\t\t\t$where.= \"$key \".$iscondition.' '._TAG.\" $combinewith \";\n\t\t\t\t\t\t\t$this->setParamaters($val);\n\t\t\t\t\t\t} else \n\t\t\t\t\t\t\t$where.= \"$key \".$iscondition.\" '\".$this->escape($val).\"' $combinewith \";\n\t\t\t\t\t}\n $i++;\n }\n }\n $where = rtrim($where, \" $combinewith \");\n }\n\t\t\n if (($this->getPrepare()) && !empty($this->getParamaters()) && ($where!='1'))\n\t\t\treturn \" $whereorhaving \".$where.' ';\n\t\telse\n\t\t\treturn ($where!='1') ? \" $whereorhaving \".$where.' ' : ' ' ;\n }", "private function genSqlWhereArray($where){\n //input: $where is array of arguments or conditionals\n //output: $outWhere is array of each word split up, or null if anything is invalid\n //ex input: \n // $where[0] => luminosity=3\n // $where[1] => AND\n // $where[2] => temperature = '2'\n //output:\n // $outWhere[0] => luminosity\n // $outWhere[1] => 3\n // $outWhere[2] => AND\n // $outWhere[3] => temperature\n // $outWhere[4] => 2\n if(debug){ \"sqlInteract.php/genSqlWhereArray(): \". $where . PHP_EOL;}\n if($where == 1){\n return true;\n }else {\n $point = 0;\n $outWhere = [];\n foreach($where as $ptr => $val){\n foreach(explode('=', $val) as $substr){\n switch($point%3) {\n case 0://dict check word\n $word = trim($substr, \" \\t\\n\\r\\0\\x0B`\\\"\");\n if($this->checkWord($word)){\n array_push($outWhere, $word);\n }\n else{\n return null;\n }\n break;\n case 1://= val\n array_push($outWhere,trim($substr, \" \\t\\n\\r\\0\\x0B\"));\n break;\n case 2://conditional\n $word = trim($substr, \" \\t\\n\\r\\0\\x0B\");\n if(preg_match('/(AND|OR|NOT)/i', $word)){\n array_push($outWhere, $word);\n }\n else{\n return null;\n }\n break;\n }\n $point++;\n }\n }\n return $outWhere;\n }\n \n }", "function selectData($table, $where)\n {\n $sql = \"\";\n $record = array();\n $condition = \"\";\n foreach ($where as $key => $value) {\n $condition .= $key . \"= ? and \";\n }\n $condition = substr($condition, 0, -5);\n $sql .= \"select * from $table where $condition\";\n $result = $this->conn->prepare($sql);\n $result->execute(array_values($where));\n if ($result->rowCount() > 0) {\n $row = $result->fetch(PDO::FETCH_ASSOC);\n return $row;\n } else {\n return false;\n }\n $this->conn = null;\n }", "protected function constructWhere($where)\n {\n if (is_array($where)) {\n $equals = array();\n \n foreach ($where as $column => $value) {\n $equals[] = new Equal($column, $value);\n }\n\n $this->where = new Where(new AndOperator($equals));\n } else {\n $this->where = new Where($where);\n }\n }", "abstract protected function getWhereForRow($data);", "public function where($whereData,$optionalData = null)\n {\n \t if (is_array($whereData)) {\n $dt = $whereData;\n \t }else if (is_string($whereData)){\n if ($optionalData != null) {\n $dt[$this->clean($whereData)] = $this->clean($optionalData);\n }\n }\n \n foreach ($dt as $key => $val) {\n if(!in_array($key, $this->_where)){\n $this->_where[$this->clean($key)] = $this->clean($val);\n }\n }\n \n \t return $this;\n }", "function find($table, $where=\"1=1\", $fields=\"*\", $orderBy=\"1\"){\n\t\tActiveRecord::sql_item_sanizite($table);\n\t\tActiveRecord::sql_sanizite($fields);\n\t\tActiveRecord::sql_sanizite($orderBy);\n\t\t$q = $this->query(\"select $fields from $table where $where order by $orderBy\");\n\t\t$results = array();\n\t\twhile($row=$this->fetch_array($q)){\n\t\t\t$results[] = $row;\n\t\t}\n\t\treturn $results;\n\t}", "function select($where = false){\n $query=\"SELECT * FROM \". $this->tableName ;\n $separator=\" WHERE \";\n if ($where){\n foreach ( $where as $key => $value){\n\t$query .= $separator . $key . \" = '\" . $value . \"'\";\n\t$separator = \" AND \";\n }\n }\n $query .= \";\";\n \n $results = array();\n $res = $this->dbh->query($query);\n while ($row = $res->fetch_assoc()){\n array_push($results, $row);\n }\n return $results;\n }" ]
[ "0.73803544", "0.7288186", "0.72726387", "0.7245894", "0.70699275", "0.7027171", "0.70168185", "0.68778783", "0.68465745", "0.6842525", "0.6837362", "0.670931", "0.6706195", "0.6630591", "0.6585834", "0.65833116", "0.6576636", "0.6556071", "0.6546478", "0.6546478", "0.65391624", "0.65120625", "0.6498845", "0.6484", "0.6481175", "0.6467291", "0.6438799", "0.64233387", "0.6399236", "0.6398573", "0.63767225", "0.6373639", "0.6372747", "0.6371603", "0.63679206", "0.6356453", "0.6337371", "0.6316367", "0.63017553", "0.6298953", "0.62947136", "0.6287428", "0.62841004", "0.62586796", "0.62553763", "0.62475395", "0.62456113", "0.62401146", "0.62215155", "0.62202424", "0.6219445", "0.6209179", "0.6206624", "0.6201878", "0.62018144", "0.6186488", "0.6185982", "0.6182217", "0.6178964", "0.61783594", "0.61583596", "0.6152913", "0.61288625", "0.6125498", "0.6125498", "0.61207694", "0.6114301", "0.6107048", "0.6105128", "0.6104239", "0.6095643", "0.6092911", "0.6091912", "0.6083713", "0.6076126", "0.60751396", "0.6065502", "0.6055497", "0.6044335", "0.6041646", "0.6037787", "0.60333216", "0.60297203", "0.6028479", "0.60281336", "0.60264724", "0.6024023", "0.6021254", "0.6016546", "0.60164404", "0.6015924", "0.6015472", "0.6000322", "0.5984364", "0.59819293", "0.59776634", "0.59755206", "0.5973637", "0.5957251", "0.5945608" ]
0.6422999
28
/$set = array('col' => 'val')
public function parseSet($set){ $setStr = ''; $str = array(); foreach($set as $key => $val){ $str[] = "`$key` = ".Model::parseValue($val); } $setStr = "set ".implode(",", $str); // echo $setStr."<br/>"; return $setStr; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function set($column,$value);", "protected function create_set($data = []){\n $set = '';\n foreach($data as $column => $value){\n // make sure it is in our column list before we add it to the WHERE\n if(in_array($column, $this->column_list)){\n // the first time through add the SET keyword, otherwise add a comma\n $set .= (strlen($set) == 0 ? \"SET \" : \", \") . \"$column = \\\"$value\\\"\";\n }\n }\n return $set;\n }", "private function getCreatedSet() {\n \n $new_array = array ();\n \n foreach ( $this->getSet() as $key => $value ) {\n $new_array[] = \"$key = $value\";\n }\n \n return \"SET \" . implode( \", \", $new_array );\n \n }", "public function set(array $cols) : void;", "public function getValueSet(&$arguments)\n {\n /* Get all the values */\n $this->c--;\n $word = $this->getNextWord(true);\n\n switch (true) {\n /* statement is in the form \"(col, col, ...) VALUES ( value, value, ... )\" */\n case (substr($word, 0, 1) == '('):\n {\n /* Create a parser for the column names */\n $word = substr($word, 1, strlen($word) - 2);\n $column_parser = new wordParser($word);\n\n /* get column names */\n while ($column = $column_parser->getNextWord(false, $this->whitespace . \",\")) {\n $columns[] = $column;\n }\n\n /* Get values */\n if (substr($word = strtolower($this->getNextWord(true)), 0, 6) == 'values') {\n while ($word = $this->getNextWord(true, $this->whitespace . \",\")) {\n /* Create a new parser for the values */\n $values = array();\n $word = substr($word, 1, strlen($word) - 2);\n $word = str_replace('\\\\', '\\\\\\\\', $word);\n $values_parser = new wordParser($word);\n\n while ($value = $values_parser->getNextWord(true, $this->whitespace . \",\")) {\n $values[] = $value;\n }\n\n foreach ($columns as $key => $value) {\n $arguments['values'][$value] = isset($values[$key]) ? $values[$key] : 0;\n }\n\n /* Return whatever results we got back */\n return $arguments;\n }\n } else {\n $this->throwSyntaxError($arguments);\n }\n\n break;\n }\n\n /* Statement is in the form \"SET [col = value...] */\n case (strtolower(substr($word, 0, 3)) == 'set'):\n {\n if (strtolower($word) == 'set') {\n $word = $this->getNextWord(true, $this->whitespace);\n }\n\n /* Seperate all of the column/value pairs */\n $word = substr($word, strpos($word, '(') + 1);\n $word = substr($word, 0, strrpos($word, ')'));\n $word = str_replace('\\\\', '\\\\\\\\', $word);\n $set_parser = new wordParser($word);\n\n while ($column = $set_parser->getNextWord(true, $this->whitespace . \",=\")) {\n $value = $set_parser->getNextWord(true, $this->whitespace . \",=\");\n $arguments['values'][$column] = $value;\n }\n\n break;\n }\n\n /* Syntax error */\n default:\n {\n $this->throwSyntaxError($arguments);\n\n break;\n }\n }\n }", "function set(array $grid, int $rowIndex, int $columnIndex, int $value): void {//tiene\n $grid[$rowIndex][$columnIndex] = $value; \n}", "function util_rowSetToAssocArray($rowset)\n{\n\t// We have a 2D array. We need them as a name value pair with the first element being the key.\n\t$assocArray = array();\n\tforeach ($rowset as $row)\n\t{\n\t\t$assocArray[$row[0]] = $row[1] ;\n\t}\n\treturn $assocArray ;\n}", "public static function getColsSetting(){\n\t\t$colGrid = array('1', '2', '3', '4', '5', '6');\n\t\tforeach($colGrid as $value){\n\t\t\t$data[$value] = $value;\n\t\t}\n\t\treturn $data;\n\t}", "public function setColumn($set, $val)\n\t{\n\t\t//ignore bogus data\n\t\tif (!array_key_exists($set, $this->row))\n\t\t\tthrow new InternalException(\"row $set doesn't exist\");\n\t\t$this->isChanged[$set] = true;\n\t\t$this->row[$set] = $val;\n\t}", "function set_row($keys,$sql_set) {\r\n $sql_where = '';\r\n if (count($keys) > 0) {\r\n $sql_wheres = array();\r\n foreach ($keys as $key=>$val) {\r\n if (is_array($val)) die('setrow: multi value does not supported');\r\n $sql_wheres[] = \"`$key`='\".myaddslashes($val).\"'\";\r\n }\r\n $sql_where = ' where '.join(' and ',$sql_wheres);\r\n }\r\n if (is_array($sql_set)) { # Note, if using array, I DONOT support mysql function/expression!! use string for that.\r\n $sql_sets = array();\r\n foreach ($sql_set as $key=>$val) {\r\n $sql_sets[] = '`'.$key.'` = \\''.addslashes($url).'\\'';\r\n }\r\n $sql_set = join(',',$sql_sets);\r\n }\r\n assert($sql_where != ''); # safeguard against setting all rows\r\n $sql = 'update `'.$this->db_table.'` set '.$sql_set.$sql_where;\r\n #~ echo $sql;exit;\r\n $res = mysql_query($sql) or die('<br>'.$sql.'<br>'.mysql_error()); #do to database\r\n }", "abstract protected function columns(): array;", "private function setFields()\n\t{\t\n\t\t$sql = '';\n\t\t\n\t\tforeach (array_keys($this->data) as $key)\n\t\t{\n\t\t\t$sql .= '`' . $key . '` = ? , ';\n\t\t}\n\t\t\n\t\t$sql = rtrim($sql, ', ');\n\t\t\n\t\treturn $sql;\n\t}", "private function setField()\n {\n $sql = '';\n $sql = rtrim($sql , ', ');\n\n foreach (array_keys($this->data) as $key){\n $sql .= '`' . $key . '` = ?, ';\n }\n\n $sql = rtrim($sql , ', ');\n return $sql;\n }", "public function setColumns(array $columns);", "function array_to_set_clause($a_vars) {\n\tglobal $mysqli;\n\n\t$a_set = array();\n\t$a_values = array();\n\tforeach($a_vars as $k=>$v) {\n\t\t\t$k = $mysqli->real_escape_string($k);\n\t\t\t$v = $mysqli->real_escape_string($v);\n\t\t\t$a_set[] = $k;\n\t\t\t$a_values[] = $v;\n\t}\n\t$s_set = \"(`\".implode(\"`,`\", $a_set).\"`) VALUES ('\".implode(\"','\",$a_values).\"')\";\n\treturn $s_set;\n}", "function get_values ($resultset) {\n\t\t$data = array();\n\t\tfor ($i=0; $i<mysqli_num_rows($resultset); $i++) {\n\t\t\t$row = mysqli_fetch_assoc($resultset);\n\t\t\tarray_push($data,$row);\n\t\t}\n\t\treturn $data;\n\t}", "public function getColumns(): array;", "public function resultset($bind_array=array());", "private function setFields(): string\n {\n $sql = '';\n\n foreach (array_keys($this->data) as $key) {\n $sql .= '`' . $key . '` = ? , ';\n }\n return rtrim($sql, ', ');\n }", "public function columnMaps();", "private function getFieldsOnTable()\n{\n\n $returnArray=array(); \n foreach ($this->tableStructure as $ind => $fieldArray) { \n $returnArray[$fieldArray['columnName']]=$fieldArray['columnName'];\n }\n \n return $returnArray; \n}", "public function getColumns(){\n $rows = array();\n return $rows; \n }", "function _set ($data_array, $o = TRUE) {\n\t\t$statement = $o ? ' SET ' : ' ';\n\t\t$count = count($data_array);\n\t\t$pointer = 0;\n\t\tforeach ($data_array as $column_name => $value) {\n\t\t\t$statement .= '`' . $column_name . '` = ';\n\t\t\tif ($pointer == $count - 1) {\n\t\t\t\t$statement .= $this->escape($data_array[$column_name]);\n\t\t\t} else {\n\t\t\t\t$statement .= $this->escape($data_array[$column_name]) . ', ';\n\t\t\t}\n\t\t\t$pointer ++;\n\t\t}\n\t\treturn $statement;\n\t}", "function MySqlUniqueColValues($table,$col,$where=\"\",$groupby=\"\",$orderby=\"\")\n {\n return $this->Sql_Select_Unique_Col_Values($col,$where,$orderby,$table);\n }", "function get_setlist() {\n $query = $this->db->get('settings');\n return $query->result_array();\n }", "public function findSets() {\n $select = $this->getDatabase()\n ->select()\n ->from($this->getTableName());\n\n $data = $select->fetchAll();\n\n $result = array();\n foreach ($data as $item) {\n $item['id'] = (int)$item['id'];\n\n $result[] = new Entity\\Set($item);\n }\n\n return $result;\n }", "function get($table,$col){\n $array=array();\n $conn=connectDB();\n $query=\"SELECT * FROM $table\";\n foreach ($conn->query($query)as $row){\n array_push($array,$row[$col]);\n }\n return $array;\n }", "function reportPerDBColoumn($TableName, $ColumnName, $ReportCondition = '1', $ColumnLang = '', $OrderBy = 'SetValue DESC', $SetEmpty = false)\r\n{\r\n $Columns = \"{$ColumnName} AS SetName, COUNT(*) AS SetValue\";\r\n $DataSetList = dbGetList($TableName,$Columns, $ReportCondition, 'SetName', $OrderBy, '', 'SetName');\r\n if(is_array($ColumnLang))\r\n {\r\n $DataSetList = reportSetFullTypeInfo($DataSetList, $ColumnLang, $SetEmpty);\r\n }\r\n return $DataSetList;\r\n}", "private function CreateRecordSet($rows){\n\t\t$set = array();\n\t\tforeach($rows as $row) \n\t\t\t$set[] = $row['recordID'];\n\t\treturn $set;\n\t}", "protected function _compile_set(array $values)\n {\n //print_r($values);\n $quote = array($this, 'quote_value');\n\n $set = array();\n foreach ($values as $group)\n {\n // Split the set\n list($column, $value) = $group;\n\n if (is_string($value) AND array_key_exists($value, $this->_parameters))\n {\n // Use the parameter value\n $value = $this->_parameters[$value];\n }\n\n $value = $this->quote_value(array($value, $column));\n $column = $this->quote_identifier($column);\n\n // Quote the column name\n $set[$column] = $column.' = '.$value;\n }\n\n return implode(', ', $set);\n }", "function set($keys, $data) {\n\n $SET = array();\n\n foreach ($keys as $key) {\n $index = $key;\n $value = $data[$key];\n $SET[] = \"`$index` = '\" . str_replace(\"'\", \"\\'\", $value) . \"'\";\n }\n\n return implode(', ', $SET);\n}", "public function setColumns(array $columns);", "abstract protected function getColumns(): array;", "public function testIncrementalSet()\n {\n $method = $this->builder_reflection->getMethod('sql_set');\n $method->setAccessible(TRUE);\n\n $property = $this->builder_reflection->getProperty('set');\n $property->setAccessible(TRUE);\n\n $method->invokeArgs($this->builder, array( array('column1' => 'value1')));\n $method->invokeArgs($this->builder, array( array('column2' => 'value2')));\n\n $string = 'SET column1 = value1, column2 = value2';\n\n $this->assertEquals($string, $property->getValue($this->builder));\n }", "public function getSet()\n {\n return $this->get(self::_SET);\n }", "public function applyTo($q) {\n//\t\tprivate $valuesets = array(); // QRYvalueset array (insert/update pairs)\n\n\t\tif ($this->flags & QRY::NAMED_PARAMS) {\n\t\t\t$q->option('named_params', 1);\n\t\t}\n\n\t\tforeach ($this->tablesets as $set) {\n\t\t\tfor ($i = 0; $i < $set->count(); $i++) {\n\t\t\t\t$elem = $set->findByOffset($i);\n\t\t\t\t$q->FROM($elem->asName(), $elem->asAlias());\n\t\t\t}\n\t\t}\n\n\t\tforeach ($this->fieldsets as $set) {\n\t\t\t//print_r($set);\n\t\t\tfor ($i = 0; $i < $set->count(); $i++) {\n\t\t\t\t$elem = $set->findByOffset($i);\n\t\t\t\t//print_r($elem);\n\t\t\t\t$q->SELECT($elem->asName());\n\t\t\t}\n\t\t}\n\n\t\tforeach ($this->matchsets as $j => $set) {\n\t\t\tfor ($i = 0; $i < $set->count(); $i++) {\n\t\t\t\t$elem = $set->findByOffset($i);\n\t\t\t\tif (get_class($elem) == 'QRYset') {\n\t\t\t\t\t$q->WHERE_literal($elem->toString());\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\t$left_table = $elem->getLeft()->asTable();\n\t\t\t\t$left_name = $elem->getLeft()->asName();\n\t\t\t\t$left = $elem->getLeft()->asAlias();\n\t\t\t\t$right = $elem->getRight();\n\t\t\t\t$cmp = $elem->asCmp();\n\t\t\t\t$literal = false;\n\t\t\t\t$right_ptr = NULL;\n\t\t\t\tif ($cmp == 'IN' && get_class($right) == 'QRYset') {\n\t\t\t\t\t$param_arr = $right->toArray();\n\t\t\t\t\t$dataset = $this->getSet('data', 0);\n\t\t\t\t\t$dataset_arr = $dataset->toArray();\n\t\t\t\t\t$right_ptr = array();\n\t\t\t\t\tforeach ($param_arr as $offset => $param) {\n\t\t\t\t\t\t$name = $param->asName();\n\t\t\t\t\t\tif (isset($dataset_arr[$name])) {\n\t\t\t\t\t\t\t$right_ptr[] = $dataset_arr[$name];\n\t\t\t\t\t\t} else if (isset($dataset_arr[$offset])) {\n\t\t\t\t\t\t\t$right_ptr[] = $dataset_arr[$offset];\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif ($left == $left_table . '__' . $left_name) {\n\t\t\t\t\t$left = $left_table . '.' . $left_name;\n\t\t\t\t}\n\t\t\t\t$q->WHERE_once($left, $cmp, $right_ptr, $literal);\n\t\t\t}\n\t\t}\n\t\t\n\t\tforeach ($this->ordersets as $set) {\n\t\t\tfor ($i = 0; $i < $set->count(); $i++) {\n\t\t\t\t$elem = $set->findByOffset($i);\n\t\t\t\t$q->ORDER_BY($elem->asName(), $elem->asOrder());\n\t\t\t}\n\t\t}\t\t\n\n\t\tforeach ($this->groupsets as $set) {\n\t\t\tfor ($i = 0; $i < $set->count(); $i++) {\n\t\t\t\t$elem = $set->findByOffset($i);\n\t\t\t\t$q->GROUP_BY($elem->asName());\n\t\t\t}\n\t\t}\t\t\n\t\t\n\t\t\n\t\t/* datasets */\n\t\t$matchset = $q->getSet('match', 0);\t\n\t\tforeach ($this->datasets as $j => $set) {\n\t\t\t$dataset = $q->getSet('data', $j);\t\n\t\t\tif (!$dataset) $dataset = $q->add_DATASET();\n\t\t\t$k = 0;\n\t\t\tfor ($i = 0; $i < $set->count(); $i++) {\n\t\t\t\t$match = $matchset->findByOffset($k);\n\t\t\t\tif (get_class($match) == 'QRYmatch' && $match->asCmp() == 'IN') {\t\t\t\t\t\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\t$elem = $set->findByOffset($i);\n\t\t\t\t$key = $set->keyByOffset($i);\n\t\t\t\tif (is_numeric($key)) $key = null;\n\t\t\t\t$q->add_DATA($key, $elem, $dataset); \n\t\t\t\t$k++;\n\t\t\t}\n\t\t\t//$q->DATA($arr);\n\n\t\t}\n\n\t\treturn true;\n\t}", "function get_set($params)\n\t\t{\n\t\t\tif( !is_array( $params ) )\n\t\t\t{\n\t\t\t\t$this->register_error( 'get_set() parameter invalid. Expected array in '.__FILE__.' on line '.__LINE__);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t$sql = array();\n\t\t\tforeach ( $params as $field => $val )\n\t\t\t{\n\t\t\t\tif ( $val === 'true' || $val === true )\n\t\t\t\t\t$val = 1;\n\t\t\t\tif ( $val === 'false' || $val === false )\n\t\t\t\t\t$val = 0;\n\n\t\t\t\tswitch( $val ){\n\t\t\t\t\tcase 'NOW()' :\n\t\t\t\t\tcase 'NULL' :\n\t\t\t\t\t $sql[] = \"$field = $val\";\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tdefault :\n\t\t\t\t\t\t$sql[] = \"$field = '\".$this->escape( $val ).\"'\";\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn implode( ', ' , $sql );\n\t\t}", "function get_set($params)\n\t\t{\n\t\t\tif( !is_array( $params ) )\n\t\t\t{\n\t\t\t\t$this->register_error( 'get_set() parameter invalid. Expected array in '.__FILE__.' on line '.__LINE__);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t$sql = array();\n\t\t\tforeach ( $params as $field => $val )\n\t\t\t{\n\t\t\t\tif ( $val === 'true' || $val === true )\n\t\t\t\t\t$val = 1;\n\t\t\t\tif ( $val === 'false' || $val === false )\n\t\t\t\t\t$val = 0;\n\n\t\t\t\tswitch( $val ){\n\t\t\t\t\tcase 'NOW()' :\n\t\t\t\t\tcase 'NULL' :\n\t\t\t\t\t $sql[] = \"$field = $val\";\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tdefault :\n\t\t\t\t\t\t$sql[] = \"$field = '\".$this->escape( $val ).\"'\";\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn implode( ', ' , $sql );\n\t\t}", "function toPostgresArray($set) {\n settype($set, 'array'); // can be called with a scalar or array\n $result = array();\n foreach ($set as $t) {\n if (is_array($t)) {\n $result[] = toPostgresArray($t);\n } else {\n $t = str_replace('\"', '\\\\\"', $t); // escape double quote\n if (! is_numeric($t)) // quote only non-numeric values\n $t = '\"' . $t . '\"';\n $result[] = $t;\n }\n }\n return '{' . implode(\",\", $result) . '}'; // format\n }", "function db_dispense($table,$data){\n\t$db=R::dispense($table);\n\tforeach ($data as $key => $value) {\n\t\t$db->$key=$value;\n\t}\n\tR::store( $db );\n}", "public function column(mixed $column): Collection;", "function db_get_set_statement($mysqli, $items)\n{\n\t$escape = function($item) use ($mysqli) {\n\t\treturn array('name' => $item['name'],\n\t\t 'value' => __db_escape_values($mysqli, $item['type'], $item['value']));\n\t};\n\n\t$set = function($item) {\n\t\treturn $item['name'] . '=' . $item['value'];\n\t};\n\n\t$items = array_map($escape, $items);\n\t$items = array_map($set, $items);\n\treturn implode(',', $items);\n}", "public function fetch_array($result_set){\n return mysql_fetch_array($result_set);\n \n }", "abstract protected function columns();", "protected function setFilterArray() {\n $primary_keys = getPrimaryKeys($this->table_name);\n foreach ($primary_keys as $pk) {\n if (isset($_GET[$pk])) {\n $this->filter[$pk] = Mysql::SQLValue($_GET[$pk]);\n }\n }\n }", "function dataSetContains($set, $key, $value)\n{\n\tfor ($i=0;$i<count($set);$i++)\n\t{\n\t\tif ($set[$i][$key]==$value) return true;\n\t}\n\treturn false;\n}", "public function fetchAllIndexedByCol($col);", "public function set(array $pairs)\n {\n if ($this->_type == db::INSERT) \n {\n // 把key存到 _columns 里面\n $this->columns(array_keys($pairs));\n // 把值存到 _values 里面\n $this->values($pairs);\n }\n elseif ($this->_type == db::UPDATE) \n {\n foreach ($pairs as $column => $value)\n {\n $this->_set[] = array($column, $value);\n }\n }\n\n return $this;\n }", "function resultSet2array($myrst) {\n $resultset = null;\n $row = 0;\n while ($myrow = mysql_fetch_array($myrst)) {\n $col = 0;\n foreach ($myrow as $column) {\n $resultset[$row][$col]=$myrow[$col++];\n }\n $row++;\n }\n return $resultset;\n}", "function bi_options_column($arr = array()){\r\n\t$arr_option = bi_options(array(\r\n\t\t\"chartBottomMargin\" => \"25\",\r\n\t\t\"chartTopMargin\" => \"50\",\r\n\t\t\"showLabels\" => \"1\",\r\n\t\t\"showLegend\" => \"1\",\r\n\t\t\"showValues\" => \"1\",\r\n\t\t\"exportEnabled\" => \"1\"\r\n\t));\r\n\tforeach($arr as $i => $val){\r\n\t\t$arr_option[$i] = $val;\r\n\t}\r\n\treturn $arr_option;\r\n}", "function GenerateSqlSet($data, $fields)\n{\n $sql = ' ';\n $c = 0;\n foreach($fields as $f)\n {\n $fn = $f[0]; // Field name\n $ft = $f[1]; // Field type\n if(!isset($data[$fn])) continue;\n if(is_null($data[$fn])) continue;\n $v = $data[$fn];\n if($c != 0) $sql .= ', ';\n $sql .= $fn . '=';\n if($ft == 'int') { $sql .= intval($v); }\n else if($ft == 'str') { $sql .= '\"' . SqlClean($v) . '\"'; }\n else if($ft == 'bool') { $sql .= TFstr($v); }\n else {DieWithMsg(\"databaselib.php->GenerateSQLSet\", \"Bad type: \" . $ft . \" for field \" . $fn . '.'); }\n $c++;\n }\n if($c == 0) return false;\n return $sql;\n}", "public function getCol() : array\n\t{\n\t\treturn $this->fetchAllFromColumn();\n\t}", "function resultSet($results) {\n $this->map = array();\n $numFields = $results->columnCount();\n $index = 0;\n $j = 0;\n\n while ($j < $numFields) {\n $column = $results->getColumnMeta($index);\n if (!empty($column['table'])) {\n $this->map[$index++] = array($column['table'], $column['name']);\n } else {\n if (strpos($column['name'], '__')) {\n $parts = explode('__', $column['name']);\n $this->map[$index++] = array($parts[0], $parts[1]);\n } else {\n $this->map[$index++] = array(0, $column['name']);\n }\n }\n $j++;\n }\n\n }", "public function set_columns($cols) { $this->cols = $cols + 0; }", "public function addSet($column, $value)\n {\n $this->params[$column] = $value;\n\n return $this;\n }", "public function setCol($col)\n {\n $this->col = $col;\n }", "public function factory_set( $resultset, $self = False )\n {\n $set = array();\n\n foreach ($resultset as $row) {\n $obj = $this->factory_item($row, $self);\n $obj->loaded = True;\n $set[] = $obj;\n }\n\n return $set;\n }", "function dbSetVars() {\n\n foreach ($this->fields() as $f) {\n if ($this->$f === false) continue;\n $this->db->set($f,$this->$f);\n }\n\n }", "function twentytwelve_store_store_columns( $columns ) {\n return $columns = 3;\n}", "public function set($col, $value)\n {\n return $this->setCol($col, $value);\n }", "function load_db_values($row)\n\t{\n\t\tforeach($row as $prop => $val)\n\t\t\t$this->{$prop} = $val;\n\t}", "function object_array($object){\r\n\t$table_name = $object->gettablename();\r\n\t$arr_column = $object->getcolumnnames();\r\n\t$arr_object = array();\r\n\t$arr = $object->searchbyobject(NULL, NULL, TRUE);\r\n\r\n\tswitch($table_name){\r\n\t\tcase \"itpedido_conf\": $table_name = \"itpedidoconf\";\r\n\t\t\tbreak;\r\n\t}\r\n\r\n\tif(is_array($arr)){\r\n\t\tforeach($arr as $row){\r\n\t\t\t$ob = objectbytable($table_name, NULL, $object->getconnection());\r\n\t\t\tforeach($arr_column as $column){\r\n\t\t\t\t@call_user_func(array($ob, \"set\".$column), $row[$column]);\r\n\t\t\t}\r\n\t\t\t$arr_object[] = $ob;\r\n\t\t}\r\n\t}\r\n\treturn $arr_object;\r\n}", "public static function cb89($a, $set_key){$ret=array(); foreach($a as $v){$ret[$v[$set_key]]=$v;} return $ret;}", "function create_question_set($title, $points) {\n $set = array();\n $set['title'] = $title;\n $set['points'] = $points;\n return $set;\n}", "private function _merge_column_data($result_set)\n\t{\n\t\t$data = $result_set->data;\n\t\t$columns = $result_set->columns;\n\t\t$array = array();\n\t\tforeach ($data as $key=>$row)\n\t\t{\n\t\t\t$array[$key] = array_combine($columns, $row);\n\t\t}\n\t\treturn $array;\n\t}", "public static function mset($_arg) {\n\t\tif (!is_array($_arg)) {\n\t\t\t// Invalid argument\n\t\t\ttrigger_error(self::TEXT_MSet);\n\t\t\treturn;\n\t\t}\n\t\t// Bind key-value pairs\n\t\tarray_map('self::set',array_keys($_arg),$_arg);\n\t}", "public function setFromArray(array $data)\n\t{\n\t\t//原来是array_intersect_key($data, $this->getArrayCopy()),现在取消参数列表检查,因此直接使用data\n\t\tforeach ($data as $columnName => $value) {\n\t\t\t$this[$columnName] = $value;\n\t\t}\n\n\t\treturn $this;\n\t}", "private function writeGridset(): void\n {\n $record = 0x0082; // Record identifier\n $length = 0x0002; // Bytes to follow\n\n $fGridSet = !$this->phpSheet->getPrintGridlines(); // Boolean flag\n\n $header = pack('vv', $record, $length);\n $data = pack('v', $fGridSet);\n $this->append($header . $data);\n }", "public function set()\n {\n $args = func_get_args();\n $num = func_num_args();\n if ($num == 2) {\n self::$data[$args[0]] = $args[1];\n } else {\n if (is_array($args[0])) {\n foreach ($args[0] as $k => $v) {\n self::$data[$k] = $v;\n }\n }\n }\n }", "private function _setColumns()\n {\n $this->columns = new Pike_Grid_DataSource_Columns();\n\n foreach ($this->_query->getFields() as $field) {\n $this->columns->add($field, null, $field);\n }\n }", "public function setCollection(array $value);", "public function offsetSet($key,$value) {\n\t\t$this->sets[$key] = $value;\n\t}", "function returnParameters($tableName=NULL,$setName=NULL,$columns=NULL)\r\n\t{\r\n\t\t$result = array();\r\n\t\tif ($columns)\r\n\t\t{//We are asked for specific columns. Convert columns into DBGrid structure. It will use the user defined names is tableName is given.\r\n\t\t\t$columns = fieldsToParams($columns,$tableName);\r\n\t\t\t$result['columns']=$columns;\r\n\t\t\treturn $result;\r\n\t\t}\r\n\t\tif (!isset($tableName)) return $result;\r\n\t\t$result = array_merge((array)$GLOBALS['DBGridColumnSets'][$tableName][$setName],$result);\r\n\t\tif (isset($setName) && (isset($tableName)) && ($setName!='allFields'))\r\n\t\t{\r\n//We will send all the columnSet specific settings but columnSet name is not necessary so we delete it. Also we add the titles to the columns from the allFields\r\n\t\t\tunset($result['columns']);\r\n\t\t\tforeach ($GLOBALS['DBGridColumnSets'][$tableName][$setName]['columns'] as $fieldName)\r\n\t\t\t\t$result['columns'][$fieldName] = $GLOBALS['DBGridColumnSets'][$tableName]['allFields'][$fieldName];\r\n\t\t}\r\n\t\telse//return all fields\r\n\t\t\t$result['columns'] = $GLOBALS['DBGridColumnSets'][$tableName]['allFields'];\r\n\t\treturn $result;\r\n\t}", "public function resultset(){\n\t\t$this->execute() ;\n\t\treturn $this->statement->fetchAll(PDO::FETCH_ASSOC) ;\n\t}", "function setRowDatas(&$row) {\r\n\t\t\r\n }", "public function col($col)\n {\n return call_user_func_array(array($this, 'addCol'), func_get_args());\n }", "function getColumns() {return $this->_columns;}", "private function parseSetClausule($sql)\n{\n\tpreg_match_all(\"/([a-z0-9_]+)\\s*=\\s*?([^,]+)?/i\", $sql, $found);\n\t$data = array();\n\tforeach($found[1] as $i => $key) {\n\t\t$data[$key] = trim($found[2][$i]);\n\t\tif (strcasecmp($data[$key], 'null') == 0) $data[$key] = null;\n\t\tif ($data[$key][0] == \"'\" and substr($data[$key],-1) == \"'\")\n\t\t\t$data[$key] = substr($data[$key],1,-1);\n\t}\n\treturn $data;\n}", "public function testAddingMultipleColumns()\n {\n $queryBuilder = new AugmentingQueryBuilder();\n $queryBuilder->addColumnValues(['name' => 'dave']);\n $queryBuilder->addColumnValues(['email' => '[email protected]']);\n $this->assertEquals(['name' => 'dave', 'email' => '[email protected]'], $queryBuilder->getColumnNamesToValues());\n }", "public function testAddingSingleColumn()\n {\n $queryBuilder = new AugmentingQueryBuilder();\n $queryBuilder->addColumnValues(['name' => 'dave']);\n $this->assertEquals(['name' => 'dave'], $queryBuilder->getColumnNamesToValues());\n }", "public function setParameters()\n {\n $params = array();\n $associations = array();\n foreach ($this->datatablesModel->getColumns() as $key => $data) {\n // if a function or a number is used in the data property\n // it should not be considered\n if( !preg_match('/^(([\\d]+)|(function)|(\\s*)|(^$))$/', $data['data']) ) {\n $fields = explode('.', $data['data']);\n $params[$key] = $data['data'];\n $associations[$key] = array('containsCollections' => false);\n\n if (count($fields) > 1) {\n $this->setRelatedEntityColumnInfo($associations[$key], $fields);\n } else {\n $this->setSingleFieldColumnInfo($associations[$key], $fields[0]);\n }\n }\n }\n\n $this->parameters = $params;\n // do not reindex new array, just add them\n $this->associations = $associations + $this->associations;\n }", "public function setRows(array $rows);", "function s_m_put_get_set_value($store_id_db_arr, $store_data){\r\n $result = \"\";\r\n for($i = 0; $i < count($store_id_db_arr); $i++){\r\n $result .= $store_id_db_arr[$i] . \"=\" . $store_data[$i] . \",\";\r\n }\r\n return substr($result, 0, strlen($result) - 1);\r\n}", "function _set_from_array($data, $set_heading = TRUE)\n\t{\n\t\tif ( ! is_array($data) OR count($data) == 0)\n\t\t{\n\t\t\treturn FALSE;\n\t\t}\n\n\t\t$i = 0;\n\t\tforeach ($data as $row)\n\t\t{\n\t\t\t// If a heading hasn't already been set we'll use the first row of the array as the heading\n\t\t\tif ($i == 0 AND count($data) > 1 AND count($this->heading) == 0 AND $set_heading == TRUE)\n\t\t\t{\n\t\t\t\t$this->heading = $this->_prep_args($row);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$this->rows[] = $this->_prep_args($row);\n\t\t\t}\n\n\t\t\t$i++;\n\t\t}\n\t}", "function get_col($query=null,$x=0)\n\t\t{\n\n\t\t\t$new_array = array();\n\n\t\t\t// If there is a query then perform it if not then use cached results..\n\t\t\tif ( $query )\n\t\t\t{\n\t\t\t\t$this->query($query);\n\t\t\t}\n\n\t\t\t// Extract the column values\n\t\t\tfor ( $i=0; is_array($this->last_result) && $i < count($this->last_result); $i++ )\n\t\t\t{\n\t\t\t\t$new_array[$i] = $this->get_var(null,$x,$i);\n\t\t\t}\n\n\t\t\treturn $new_array;\n\t\t}", "function encodeKeyValueSet($set)\n{\n\treset($set);\n\t$items = Array();\n\twhile (list($key, $value) = each($set))\n\t{\n\t\t$items[] = $key.\"=\".$value;\n\t}\n\treturn implode(\" AND \",$items);\n}", "function GenerateSqlSet_ParamList($param_list, $fields)\n{\n // Generate a data set.\n $data = array();\n foreach($param_list as $param_spec)\n {\n if(!isset($param_spec[\"FieldName\"])) continue;\n if(!isset($param_spec[\"Value\"])) continue;\n $fn = $param_spec[\"FieldName\"];\n $v = $param_spec[\"Value\"];\n $data[$fn] = $v;\n }\n return GenerateSqlSet($data, $fields);\n}", "function setFields($array)\r\n\t{\r\n\t\t$db = new \\Fmw\\Core\\Db();\r\n\t\t$fields = $db->getColumns($this->getTabName($this->defTab));\r\n\t\tif ($fields) {\r\n\t\t\t$colName = false;\r\n\r\n\t\t\tforeach ($fields as $field) {\r\n\t\t\t\t$colName = $field['Field'];\r\n\r\n\t\t\t\tif (isset($array[$field['Field']])) {\r\n\r\n\t\t\t\t\tif ($field['Type'] == 'text') {\r\n\t\t\t\t\t\tif (isFormatedText($field['Field'])) {\r\n\t\t\t\t\t\t\t$array[$colName] = $array[$colName];\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\t$this->$colName = $array[$colName];\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "function &columns() {\n // return by reference\n //ts('Contact Id') => 'contact_id',\n $columns = array(\n ts('Name') => 'sort_name',\n ts('Job Title') => 'job_title',\n ts('media') => 'current_employer',\n );\n return $columns;\n }", "private function UpdateSQLLazy(string $col = null,$val = null)\n {\n static $host = [];\n if( $col === null ){\n $back = $host;\n $host = [];\n return $back;\n }\n $this->SQLData[$col] = $val;\n $host[] = [$col,$val];\n }", "public function resultaSet(){\n $this->execute();\n return $this->statemet->fetchAll(PDO::FETCH_OBJ);\n }", "public function prepareFieldset();", "function data_fetch_kv($tablename, $key, $val) {\r\n\t$rows = array();\r\n\tif ($res = sql_query(\"SELECT * FROM \". $tablename)) {\r\n\t\twhile ($row = mysql_fetch_assoc($res)) {\r\n\t\t\t$rows[$row[$key]] = $row[$val];\r\n\t\t}\r\n\t}\r\n\treturn $rows;\r\n}", "public function addToInsertSQLArray();", "public function tableColumns($table,$column);", "function getWhereDistinct($table,$col,$where){\n $array=array();\n $conn=connectDB();\n $query=\"SELECT DISTINCT $col FROM $table WHERE $where\";\n //print($query);\n foreach ($conn->query($query) as $row){\n //print_r($row);\n //print_r($col);\n\n array_push($array,$row[$col]);\n }\n return $array;\n }", "public function all($cols = ['*']);", "function returnColumnSetNames($searchName)\r\n\t{\r\n\t\trequire_once('DBGrid_conf.php');\r\n\t\t$result = array();\r\n\t\tif (!isset($GLOBALS['DBGridColumnSets'][$searchName])) return '';\r\n\t\tforeach ($GLOBALS['DBGridColumnSets'][$searchName] as $setName=>$setProperties)\r\n\t\t\tif ($setName!='allFields') $result[$setName]['name'] = $setProperties['name'];\t\r\n\t\treturn $result;\r\n\t}", "public function createDataRow()\n\t{\n\t\t$row = array() ;\n\t\tforeach( $this->values as $field=>$value )\n\t\t{\n\t\t\t$row[$field] = $this->$field ;\n\t\t}\n\t\treturn $row ;\n\t}", "function getRecords($columnParameterArray){\n\t\t\t\n\t\t}" ]
[ "0.64909154", "0.60334903", "0.59754735", "0.59642744", "0.58514893", "0.58266497", "0.57646596", "0.5720277", "0.57064664", "0.5668795", "0.56210726", "0.559043", "0.5570253", "0.5541966", "0.55301577", "0.5516563", "0.546392", "0.54529035", "0.5445185", "0.54255503", "0.5404101", "0.5380828", "0.5373536", "0.53697544", "0.5365593", "0.53629327", "0.53248817", "0.5311987", "0.52945733", "0.5290683", "0.5279738", "0.52684474", "0.5262046", "0.5261114", "0.52434945", "0.5233775", "0.5230983", "0.5230983", "0.52169424", "0.51996243", "0.5194198", "0.51447374", "0.51304513", "0.5124846", "0.5122835", "0.51145333", "0.51051426", "0.5100076", "0.5096435", "0.5081295", "0.507941", "0.5077158", "0.5068177", "0.5057352", "0.50520295", "0.5049364", "0.50472116", "0.5040074", "0.5038582", "0.50265133", "0.5024002", "0.50236803", "0.5020342", "0.501554", "0.5006775", "0.4992928", "0.4977417", "0.4967379", "0.4957545", "0.4955469", "0.49523115", "0.4952185", "0.49456403", "0.49422422", "0.49417233", "0.49406877", "0.4936956", "0.49367884", "0.49364385", "0.49355158", "0.49343392", "0.49337777", "0.49270827", "0.49216834", "0.49209088", "0.49195462", "0.49107796", "0.49071804", "0.4906375", "0.49047616", "0.49025643", "0.4895789", "0.48931894", "0.48930177", "0.48887262", "0.48809937", "0.48736864", "0.48732007", "0.48684907", "0.48655444" ]
0.5984525
2
constructor name this the same as the class above
function __construct() { /* Widget settings. */ $widget_ops = array( 'classname' => 'newsletter-signup', 'description' => 'EK newsletter subscription box.' ); /* Widget control settings. */ $control_ops = array('newsletter-signup'); /* Create the widget. */ parent::WP_Widget( 'newsletter-signup', 'EK Newsletter Signup', $widget_ops, $control_ops ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function __construct(){}", "private function __construct(){}", "private function __construct(){}", "private function __construct(){}", "private function __construct(){}", "private function __construct(){}", "private function __construct(){}", "private function __construct(){}", "private function __construct(){}", "private function __construct(){}", "private function __construct(){}", "private function __construct(){}", "private function __construct(){}", "private function __construct(){}", "private function __construct(){}", "private function __construct(){}", "private function __construct(){}", "private function __construct()\t{}", "private function __construct()\r\n\t{\r\n\t\r\n\t}", "private function __construct() {\r\n\t\r\n\t}", "public function __construct() { \n\t\t\n\n\t\t}", "private function __construct() {\r\n\t\t\r\n\t}", "final private function __construct(){\r\r\n\t}", "function __construct (){\n\t\t}", "function _construct() {\n \t\n\t\t\n\t}", "public function __construct()\n\t\t{\n\t\t\t\n\t\t}", "private function __construct(){\n\t\t }", "public function __construct()\r\n\t\t{\r\n\t\t}", "public function _construct()\n\t{\n\n\t}", "final private function __construct() {\n\t\t\t}", "private function __construct()\n\t{\n\t\t\n\t}", "private function __construct(){\n \t\n }", "public function __construct()\n\t\t{\n\t\t\t//\n\t\t}", "private function __construct() {\n\t\t}", "private function __construct()\r\r\n\t{\r\r\n\t}", "public function __construct() {\n\n\t\t}", "private function __construct() { \n\t\t\n\n\t}", "private function __construct()\n\t{\n\n\t}", "function __construct()\r\n\t\t{\r\n\t\t\t\r\n\t\t}", "private function __construct()\r\n\t{\r\n\t}", "final private function __construct() {}", "final private function __construct() {}", "private function __construct( )\n {\n\t}", "function __construct() ;", "private function __construct () {}", "public function __construct()\n\t\t{\t\t\t\n\t\t}", "private function __construct () \n\t{\n\t}", "public function __construct() {\n\t\t\n\t}", "public function __construct() {\n\t\t\n\t}", "public function __construct() {\n\t\t\n\t}", "public function __construct() {\n\t\t\n\t}", "public function __construct() {\n\t\t\n\t}", "public function __construct() {\r\n\r\n\t\t}", "function __construct(){\n\t\t// nowt much...\n\t}", "private final function __construct() {}", "public function __construct()\n\t\t{\n\t\t\t# code...\n\t\t}", "function __construct(){}", "function __construct(){}", "function __construct(){}", "final private function __construct()\n\t{\n\t}", "private function __construct(){\n\t\n\t}", "function __construct()\n\t{\n\t\t\n\t\t\n\t}", "function __construct(){\n\n\t\t}", "final private function __construct() { }", "final private function __construct() { }", "final private function __construct() { }", "function __construct() {\n\n\t\t}", "private function __construct() {\r\n\t}", "private function __construct() {\r\n\t}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}" ]
[ "0.8325605", "0.8325605", "0.8325605", "0.8325605", "0.8325605", "0.8325605", "0.8325605", "0.8325605", "0.8325605", "0.8325605", "0.8325605", "0.8325605", "0.8325605", "0.8325605", "0.8325605", "0.8325605", "0.8325605", "0.8259343", "0.8252332", "0.82465786", "0.8234809", "0.82163656", "0.8207124", "0.8204652", "0.8204044", "0.81778204", "0.817593", "0.8175702", "0.81755114", "0.81616294", "0.81547606", "0.81476784", "0.8141059", "0.81344247", "0.8132716", "0.81301916", "0.8127707", "0.811996", "0.81147546", "0.8110431", "0.8110142", "0.8110142", "0.8109541", "0.8101102", "0.8096308", "0.8091261", "0.8084233", "0.80819505", "0.80819505", "0.80819505", "0.80819505", "0.80819505", "0.8081182", "0.8070081", "0.8058068", "0.80522996", "0.8048911", "0.8048911", "0.8048911", "0.80450636", "0.80447364", "0.80405456", "0.8039671", "0.803194", "0.803194", "0.803194", "0.8027996", "0.80267316", "0.80267316", "0.8025049", "0.8025049", "0.8025049", "0.8025049", "0.8025049", "0.8025049", "0.8025049", "0.8025049", "0.8025049", "0.8025049", "0.8025049", "0.8025049", "0.8025049", "0.8025049", "0.8025049", "0.8025049", "0.8025049", "0.8025049", "0.8025049", "0.8025049", "0.8025049", "0.8025049", "0.8025049", "0.8025049", "0.8025049", "0.8025049", "0.8025049", "0.8025049", "0.8025049", "0.8025049", "0.8025049", "0.8025049" ]
0.0
-1
Run the database seeds.
public function run() { $data = [ [ 'name' => 'from', 'label' => 'From', ], [ 'name' => 'to', 'label' => 'To', ], [ 'name' => 'cc', 'label' => 'Cc', ], [ 'name' => 'bcc', 'label' => 'Bcc', ], [ 'name' => 'subject', 'label' => 'Subject', ], ]; if (config('asseco-plan-router.migrations.uuid')) { foreach ($data as &$item) { $item = array_merge($item, [ 'id' => Str::uuid(), ]); } } /** @var Model $rule */ $rule = app(Rule::class); $rule::query()->upsert($data, ['name'], ['name']); }
{ "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
Filter the results by part of the boat name.
public function filterByName($name) { $name = (string) $name; if ($name !== '') { $this->query->andWhere($this->query->expr()->like('b.name', $this->query->createNamedParameter('%' . addcslashes($name, '%_\\') . '%'))); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function filter($builder, $value)\n {\n return $builder->where('vehicleName', 'LIKE', '%' . $value . '%');\n }", "public function filtering();", "public function filterByName($filter) {\n if (strlen($filter) > 0) {\n $this->calcData = array_filter($this->calcData, function($item) use ($filter) {\n if (strpos($item['name'], $filter) !== false) {\n return $item;\n }\n });\n }\n }", "protected abstract function filter();", "public function filtering(): string;", "public function filter();", "private static function _getFilter() {}", "function filter($param)\r\n\t{\r\n\r\n\t\t$this->view = false;\r\n\t\t$this->layout_name = false;\r\n\r\n\t\t$_SQL = Singleton::getInstance(SQL_DRIVER);\r\n\r\n\t\t$sql = \"SELECT `\" . $param[1] . \"` FROM `\" . $param[0] . \"` WHERE `\" . $param[1] . \"` LIKE '\" . $_SQL->sql_real_escape_string($_GET['q']) . \"%' \r\n\t\t ORDER BY `\" . $param[1] . \"` LIMIT 0,100\";\r\n\t\t$res = $_SQL->sql_query($sql);\r\n\r\n\t\twhile ( $ob = $_SQL->sql_fetch_object($res) )\r\n\t\t{\r\n\t\t\techo $ob->$param[1] . \"\\n\";\r\n\t\t}\r\n\t}", "public function getBusinessNameFilter()\n {\n return $this->business_name_filter;\n }", "public function getFilter(string $name);", "function filter($request) {\n\t\t//$model = singleton($this->modelClass);\n\t\t$context = $this->dataObject->getDefaultSearchContext();\n\t\t$value = $request->getVar('q');\n\t\t$results = $context->getResults(array(\"Name\"=>$value));\n\t\theader(\"Content-Type: text/plain\");\n\t\tforeach($results as $result) {\n\t\t\techo $result->Name . \"\\n\";\n\t\t}\t\t\n\t}", "abstract public function filters();", "public function getBedByName() {\n $term = Request::input('term', '');\n\n $results = array();\n $queries = Bed::where('name', 'LIKE', '%'.$term.'%')\n ->take(10)->get();\n foreach ($queries as $query)\n $results[] = ['id' => $query->id,\n 'value' => $query->representation()];\n return response()->json($results);\n }", "private function filterCategory()\n {\n if(empty($this->category) || $this->category === static::FILTER_CATEGORY_NONE) {\n return;\n }\n\n if($this->category === static::FILTER_CATEGORY_OTHER) {\n $this->query->andWhere(['LIKE', 'category', 'yii\\\\']);\n return;\n }\n\n $this->query->andWhere(['category' => $this->category]);\n }", "public function filters() {\n\t\treturn array(\n\t\t 'name' => array(array('trim')),\n\t\t);\n\t}", "public function filter()\n\t{\n\t\tif (isset($_GET['cty']) AND (int) $_GET['cty'])\n\t\t{\n\t\t\t$db = new Database();\n\n\t\t\t$county_id = (int) $_GET['cty'];\n\t\t\t$sql = \"SELECT AsText(geometry) as geometry\n\t\t\t\t\tFROM \".Kohana::config('database.default.table_prefix').\"county \n\t\t\t\t\tWHERE id = ?\";\n\t\t\t$query = $db->query($sql, $county_id);\n\t\t\t$geometry = FALSE;\n\t\t\tforeach ( $query as $item )\n\t\t\t{\n\t\t\t\t$geometry = $item->geometry;\n\t\t\t}\n\n\t\t\tif ($geometry)\n\t\t\t{\n\t\t\t\t$filter = \" MBRContains(GeomFromText('\".$geometry.\"'), GeomFromText(CONCAT_WS(' ','Point(',l.longitude, l.latitude,')')))\";\n\n\t\t\t\t// Finally add to filters params\n\t\t\t\tarray_push(Event::$data, $filter);\n\t\t\t}\n\t\t}\n\n\t\tif (isset($_GET['cst']) AND (int) $_GET['cst'])\n\t\t{\n\t\t\t$db = new Database();\n\n\t\t\t$constituency_id = (int) $_GET['cst'];\n\t\t\t$sql = \"SELECT AsText(geometry) as geometry\n\t\t\t\t\tFROM \".Kohana::config('database.default.table_prefix').\"constituency \n\t\t\t\t\tWHERE id = ?\";\n\t\t\t$query = $db->query($sql, $constituency_id);\n\t\t\t$geometry = FALSE;\n\t\t\tforeach ( $query as $item )\n\t\t\t{\n\t\t\t\t$geometry = $item->geometry;\n\t\t\t}\n\n\t\t\tif ($geometry)\n\t\t\t{\n\t\t\t\t$filter = \" MBRContains(GeomFromText('\".$geometry.\"'), GeomFromText(CONCAT_WS(' ','Point(',l.longitude, l.latitude,')')))\";\n\n\t\t\t\t// Finally add to filters params\n\t\t\t\tarray_push(Event::$data, $filter);\n\t\t\t}\n\t\t}\n\t}", "abstract public function getFilterName();", "public function filterExists(string $name);", "public function filter ( $name ) {\n\t\t$this->opts['filter'] = $name;\n\t\treturn $this;\n\t}", "public function search($race)\n {\n //\n return Cat::where('name', 'like', '%'.$race.'%')->get();\n }", "private function filters() {\n\n\n\t}", "public function getRemainingBedsByName() {\n $term = Request::input('term', '');\n $ids = Request::input('ids', '');\n $beds_id = ($ids ? array_map('intval', explode(',', $ids)) : []);\n\n $results = array();\n $queries = Bed::where('name', 'LIKE', '%'.$term.'%')\n ->whereNotIn('id', $beds_id)\n ->take(10)->get();\n foreach ($queries as $query)\n $results[] = ['id' => $query->id,\n 'value' => $query->name,\n 'price' => $query->price,\n 'total_persons' => $query->total_persons];\n return response()->json($results);\n }", "public function testFilterBedrooms()\n {\n $this->visit('/properties')\n ->select('#bedrooms', 1)\n ->press('Update results')\n ->see('Shack in the desert');\n $this->notSee('Five bedroom mill conversion');\n $this->notSee('Victorian townhouse');\n }", "private function filterTerm()\n {\n if(empty($this->term)) {\n return;\n }\n\n $this->query->andWhere(\n ['or',\n ['LIKE', 'message', $this->term],\n ['LIKE', 'category', $this->term],\n ]\n );\n }", "abstract protected function filterField(): string;", "public function bibleFilter($text, $partial, $books, $page) \n {\n $this->instance = new Bible();\n $this->view($this->instance->bibleFilter($text, $partial, $books, $page), 'filter', 'Filtro', $page);\n }", "public function search($name)\n {\n return Item::where('title', 'like','%' .$name. '%')->orWhere('sku', 'like','%' .$name. '%')->orWhere('ebay_item_id', 'like','%' .$name. '%')->get();\n\n \n }", "public function getFilter(): string;", "public function filterName($table)\n {\n return trim($this->db->quote($table), \"'\");\n }", "public function filter($data);", "public function getFilterArtworks($request){\n return DB::select('select * from users, personal_account_models where users.id = personal_account_models.user_id AND personal_account_models.published = 1 AND users.name Like \"%'.$request['artist'].'%\"');\n }", "public function search($breedName)\n {\n // match exact\n //return Breed::where('breed_name', $breedName)->get();\n\n return Breed::where('breed_name', 'like', '%'.$breedName.'%')->get();\n }", "function xh_fetchFilter($filter_name)\r\n\t{\r\n\t}", "function filterByCategory ($filter = null, $results = [])\n{\n $items = makeList($results);\n if ($filter == null) return $items;\n $new = [];\n foreach ($items as $key => $item) {\n $filter = strtolower($filter);\n $target = strtolower($item->category);\n if (stripos($target, $filter) > -1 ) {\n $new[] = $item;\n }\n }\n return $new;\n}", "public function filters()\n {\n return [\n 'name' => 'trim|capitalize|escape'\n ];\n }", "public function filterResult($output, $request)\n {\n $output = parent::filterResult($output);\n\n $results = $output['results'];\n\n foreach ($results as $index => $result)\n {\n if(strtolower($result['artistName']) != strtolower($this->requestSearchParam($request))){\n unset($output['results'][$index]);\n $output['resultCount']--;\n }\n }\n\n return $output;\n }", "private function filterName(string $name): string\n {\n $name = str_replace(['-', '_'], ' ', $name);\n $words = explode(' ', $name);\n $filtered = '';\n foreach ($words as $word) {\n $filtered .= ucfirst($word);\n }\n return $filtered;\n }", "function searchRecipe($text=false){\n\t\t$filter=false;\n\t\tif($text!=false){\n\t\t\t$filter=\"Name like '%$text%'\";\n\t\t}\n\t\t\n\t\treturn $this->getRecipe($filter);\n\t}", "private function filter($filter) {\n\t\tforeach ($filter as $key => $value) {\n\n\t\t\tif (array_key_exists('userID', $filter)) {\n\t\t\t\t$this -> db -> where('userID', $filter['userID']);\n\t\t\t}\n\t\t\tif (array_key_exists('catID', $filter)) {\n\t\t\t\t$this -> db -> where('catID', $filter['catID']);\n\t\t\t}\n\n\t\t\tif (array_key_exists('search', $filter)) {\n\t\t\t\t$array = explode(' ', $value);\n\t\t\t\tforeach ($array as $key => $value)\n\t\t\t\t\t$this -> db -> like('title', $value);\n\n\t\t\t}\n\t\t}\n\t}", "function filter($value) {\n return strpos('vendors', $value) === false ? true : false;\n }", "public function filters()\n {\n return [\n 'team_name' => 'trim|escape'\n ];\n }", "protected function scanFilter()\n {\n return $this->scanInput('/^:(\\w+)/', 'filter');\n }", "public function actionFilter($name = '', $phone = '', $date = '', $group = '') {\n \n //get logged-in user properties\n $currentUser = Yii::$app->user->identity;\n $userID = Yii::$app->user->id;\n $groups = $currentUser->getGroups();\n \n //escape user input \n $args = ['name', 'phone', 'date', 'group'];\n foreach($args as $arg){\n $$arg = Html::encode($$arg);\n }\n \n //remove non-number characters from the phone number\n $phone = Yii::$app->formatter->asUnmaskedNumber($phone); \n \n //build juery as a select from 'abonent' table left join 'group' table\n $query = Abonent::find()->leftJoin('group', '`abonent`.`group_id`=`group`.`id`')->where(['`abonent`.`user_id`' => $userID\n ])->andFilterWhere([\n 'like', 'concat(`abonent`.`name`, `abonent`.`patronymic`, `abonent`.`surname`)', $name\n ])->andFilterWhere([\n 'like', '`abonent`.`phone`', $phone\n ])->andFilterWhere([\n 'like', '`abonent`.`birthdate`', $date\n ])->andFilterWhere([\n 'like', '`group`.`title`', $group\n ]);\n \n \n $dataProvider = new ActiveDataProvider([\n 'query' => $query,\n 'pagination' => [\n 'pageSize' => 9,\n ],\n ]);\n \n return $this->render('index', [\n 'currentUser' => $currentUser,\n 'dataProvider' => $dataProvider,\n 'groups' => $groups,\n ]);\n }", "protected function filterName(): string\n {\n return Str::snake(class_basename($this));\n }", "public function name($value) {\n return (!$this->requestAllData($value)) ? $this->builder->where('areas.name', 'like', '%'.$value.'%') : null;\n }", "function tmpl_sort_by_character($where){\r\n\tglobal $wpdb;\t\r\n\tif(isset($_REQUEST['sortby']) && $_REQUEST['sortby']!=''){\r\n\t\t$where .= \" AND $wpdb->posts.post_title like '\".$_REQUEST['sortby'].\"%'\";\r\n\t}\r\n\treturn $where;\r\n}", "function partialNameSearch($conn, $keyword)\n {\n $query = \"SELECT DISTINCT whwp_Advert.advert_id FROM whwp_Advert \"\n . \"WHERE advert_bookname LIKE :keyword \"\n . \"ORDER BY whwp_Advert.advert_price DESC\";\n\n $conn->prepQuery($query);\n $conn->bind('keyword', \"%\".$keyword.\"%\");\n $advert = $conn->resultset();\n return $advert;\n }", "private function filterName($name)\n {\n $name = ucfirst($name);\n $name = str_replace('_', ' ', $name);\n \n return $name;\n }", "public function getFilter($name)\n {\n return $this->jade->getFilter($name);\n }", "protected function filter($rows){\n\n if(request()->has('name') && request()->get('name') !=\"\"){\n $rows = $rows->where('name',request()->get('name')) ; \n }\n return $rows;\n }", "private function _hardFilter()\n\t {\n\t\t$check = true;\n\n\t\t$blackxml = new SimpleXMLElement(file_get_contents(__DIR__ . \"/storage/blacklist.xml\"));\n\n\t\tforeach ($blackxml->patterns->pattern as $pattern)\n\t\t {\n\t\t\tif (isset($this->name) === true)\n\t\t\t {\n\t\t\t\tif (preg_match((string) $pattern, $this->name) > 0)\n\t\t\t\t {\n\t\t\t\t\t$check = false;\n\t\t\t\t\tbreak;\n\t\t\t\t } //end if\n\n\t\t\t } //end if\n\n\t\t\tif (preg_match((string) $pattern, $this->description) > 0)\n\t\t\t {\n\t\t\t\t$check = false;\n\t\t\t\tbreak;\n\t\t\t } //end if\n\n\t\t } //end foreach\n\n\t\tif ($check !== false)\n\t\t {\n\t\t\tforeach ($blackxml->words->word as $word)\n\t\t\t {\n\t\t\t\tif (isset($this->name) === true)\n\t\t\t\t {\n\t\t\t\t\tif (preg_match(\"/\" . (string) $word . \"/ui\", $this->name) > 0)\n\t\t\t\t\t {\n\t\t\t\t\t\t$check = false;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t } //end if\n\n\t\t\t\t } //end if\n\n\t\t\t } //end foreach\n\n\t\t } //end if\n\n\t\tif ($check === false)\n\t\t {\n\t\t\t$whitexml = new SimpleXMLElement(file_get_contents(__DIR__ . \"/storage/whitelist.xml\"));\n\n\t\t\tforeach ($whitexml->patterns->pattern as $pattern)\n\t\t\t {\n\t\t\t\tif (preg_match((string) $pattern, $this->description) > 0)\n\t\t\t\t {\n\t\t\t\t\t$check = true;\n\t\t\t\t\tbreak;\n\t\t\t\t } //end if\n\n\t\t\t } //end foreach\n\n\t\t } //end if\n\n\t\treturn $check;\n\t }", "function getListFilter($col,$key) {\n\t\t\tif($col == 'unit') {\n\t\t\t\tglobal $conn, $conf;\n\t\t\t\trequire_once($conf['gate_dir'].'model/m_unit.php');\n\t\t\t\t\n\t\t\t\t$row = mUnit::getData($conn,$key);\n\t\t\t\t\n\t\t\t\treturn \"u.infoleft >= \".(int)$row['infoleft'].\" and u.inforight <= \".(int)$row['inforight'];\n\t\t\t}\n\t\t\tif($col == 'bulan')\n\t\t\t\treturn \"substring(cast(cast(r.tglkpb as date) as varchar),6,2) = '$key'\";\n\t\t\tif($col == 'tahun')\n\t\t\t\treturn \"substring(cast(cast(r.tglkpb as date) as varchar),1,4) = '$key'\";\n\t\t\tif($col == 'bulankgb')\n\t\t\t\treturn \"substring(cast(cast(r.tglkgb as date) as varchar),6,2) = '$key'\";\n\t\t\tif($col == 'tahunkgb')\n\t\t\t\treturn \"substring(cast(cast(r.tglkgb as date) as varchar),1,4) = '$key'\";\n\t\t}", "function filterWith($with){\n\n $with_array = [];\n\n if(str_contains($with, 'category')){\n $with_array['category'] = true;\n }\n if(str_contains($with, 'tags')){\n $with_array['tags'] = true;\n }\n if(str_contains($with, 'ingredients')){\n $with_array['ingredients'] = true;\n }\n\n return $with_array;\n\n }", "public function filter($input);", "public function seachByName($query)\n {\n return $this->model->where('name', 'like', \"%\" . $query . \"%\");\n }", "public function search (Request $request){\n $warbands = Warband::where('name', 'LIKE', '%'.$request->search.'%')->where('active', true)->get();\n return view('warbands//index', ['warbands' => $warbands]);\n }", "public function filter(BrochureFilterRequest $request)\n {\n $input = $request->all();\n $sort_type = 'DESC';\n if ($request->has('sort_type') && $input['sort_type'] === 'a') {\n $sort_type = 'ASC';\n }\n\n $brochures = Brochure::active();\n if ($request->has('user_id')) {\n $brochures->where('provider_id', $input['user_id']);\n }\n\n return new BrochureCollection(\n $brochures->orderBy(\"created_at\", $sort_type)\n ->paginate(10)\n );\n\n }", "function FilterTitle($text) {\n\t\t\treturn ucfirst(trim($text));\n\t\t}", "public function testCategoriesAreFilteredByName()\n {\n $visibleCategory = factory(Category::class)->create();\n $notVisibleCategory = factory(Category::class)->create();\n\n $this->actingAs(factory(User::class)->states('admin')->create())\n ->get('categories?filter[categories.name]='.$visibleCategory->name)\n ->assertSuccessful()\n ->assertSee(route('categories.edit', $visibleCategory))\n ->assertDontSee(route('categories.edit', $notVisibleCategory));\n }", "public function name ($name) {\n return (!$this->requestAllData($name)) ? $this->builder->where('name', 'like', '%'.$name.'%') : null;\n }", "public function filterCheckCustomerName($name)\n {\n $modelCustomer = new QcCustomer();\n $dataCustomer = $modelCustomer->infoFromSuggestionName($name);\n if (count($dataCustomer) > 0) {\n $result = array(\n 'status' => 'exist',\n 'content' => $dataCustomer\n );\n } else {\n $result = array(\n 'status' => 'notExist',\n 'content' => \"null\"\n );\n }\n die(json_encode($result));\n }", "public function filterAnimals($data = array()) {\n\t\t$conditions = array();\n\t\tif (!empty($data['filter'])) {\n\t\t\t$filter = '%' . $data['filter'] . '%';\n\t\t\t$conditions = array(\n\t\t\t\t'OR' => array(\n\t\t\t\t\t$this->alias . '.name LIKE' => $filter,\n\t\t\t\t),\n\t\t\t);\n\t\t}\n\t\treturn $conditions;\n\t}", "public function get_titles($input) {\n $input = \"%\" . $input . \"%\";\n $stmt = $this->DB->prepare ( \"SELECT * FROM `titles` WHERE name_year LIKE :input\" );\n $stmt->bindParam ( 'input', $input );\n $stmt->execute ();\n return $stmt->fetchAll ( PDO::FETCH_ASSOC );\n\n // TODO: Complete this function so it returns all rows\n // where the parameter is found as a substring, case insensitive\n\n\n\n\n\n }", "public function removeFilter(string $name);", "function getListFilter($col,$key,$tahun='',$bulan='') {\n\t\t\tswitch($col) {\n\t\t\t\tcase 'periode': \n\t\t\t\t\treturn \"datepart(year,p.tglperolehan) = '$tahun' and datepart(month,p.tglperolehan) = '$bulan' \"; \n\t\t\t\tbreak;\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\tcase 'unit':\n\t\t\t\t\tglobal $conn, $conf;\n\t\t\t\t\trequire_once('m_unit.php');\n\t\t\t\t\t\n\t\t\t\t\t$row = mUnit::getData($conn,$key);\n\t\t\t\t\t\n\t\t\t\t\treturn \"infoleft >= \".(int)$row['infoleft'].\" and inforight <= \".(int)$row['inforight'];\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}", "public function getFilter();", "public function getFilter();", "public function getFilteredDetails();", "public static function buyerFilterSearch()\n {\n\n $buyerfilters = DB::table('intra_hp_buyer_posts')\n ->select('intra_hp_buyer_posts.*')\n ->where('is_active', 1)\n ->get();\n\n return $buyerfilters;\n\n }", "public function whereName($value) {\n return $this->addSearchParam('searchFor', $value);\n }", "function filter_method_name()\r\n\t{\r\n\t\t// TODO:\tDefine your filter method here\r\n\t}", "function getHiddenBuilderNames($branch) {\n $mongo = new Mongo();\n $mongo->tbpl->builders->ensureIndex(array('branch' => true));\n $result = $mongo->tbpl->builders->find(\n array('branch' => $_GET['branch'], 'hidden' => true),\n array('_id' => 0, 'buildername' => 1));\n $hiddenBuilderNames = array();\n foreach ($result as $builder) {\n $hiddenBuilderNames[] = $builder['buildername'];\n }\n return $hiddenBuilderNames;\n}", "public function testDoubleName()\n {\n $filter = new Name();\n\n $this->assertSame([\n 'forename' => 'Ian',\n 'surname' => 'Chadwick'\n ], $filter->filter('Ian Chadwick'));\n\n $this->assertSame([\n 'forename' => 'Dave',\n 'surname' => 'Jones'\n ], $filter->filter('dave jones'));\n }", "public function index(Request $request)\n {\n $user = auth()->user();\n $name = $request->name; \n return SubstanceResource::collection(Substance::with('drugs')->where('substances.name', 'LIKE', \"%$name%\")->limit(100)->get());\n }", "abstract public function filterFields();", "public function filter_coler($params){\n $this->db->select(\"$this->table_product.text_coler\")\n ->from($this->table_product);\n $this->db->distinct();\n if (!empty($params['keyword'])) $this->db->like(\"$this->table_product.text_coler\", $params['keyword']);\n $query = $this->db->get();//var_dump($this->db->last_query()); exit();\n return $query->result();\n }", "function getFilter() {\n\t\tif (isset($_POST['value'])){\n\t\t\tif ($_POST['value'] != \"all\"){\n\t\t\t\t$categoryName = $_POST['value'];\n\t\t\t\treturn $categoryName;\n\t\t\t}\n\t\t}\n\t\treturn 'all';\n\t}", "public function exportWhere()\n\t{\n\t\t$keys_to_export = array(\n\t\t\t'id_food',\n\t\t\t'ingredients:id_ingredient',\n\t\t\t'tags:id_tag',\n\t\t\t'id_user',\n\t\t\t'is_finished',\n 'favourite_foods:id_user',\n\t\t);\n\t\t\n\t\treturn $this->exportSubset($keys_to_export);\n\t}", "public function testItReturnsUsersFilteredByLastName()\n {\n $user1 = factory(User::class)->create([\n \"tenant_id\" => $this->user->tenant->id,\n ]);\n $tenant2 = factory(Tenant::class)->create();\n factory(User::class)->create([\n \"tenant_id\" => $tenant2,\n ]);\n \n $this->actingAs($this->user)\n ->getJson(\"api/v1/users?filter[lastname]={$user1->lastname}\")\n ->assertOk()\n ->assertJson([\n \"data\" => [\n [\n \"id\" => $user1->id,\n \"firstname\" => $user1->firstname,\n \"lastname\" => $user1->lastname,\n ],\n ],\n ]);\n }", "public function titleDetailsFilteredOpds($books);", "public function testFilterByTitle2()\n {\n $response = $this->runApp('GET', '/v1/products?q=tremblay&password=' . $this->apiPassword);\n\n $this->assertEquals(StatusCode::HTTP_OK, $response->getStatusCode());\n $sJson = '[{\"id\":\"12\",\"title\":\"tremblay.com\",\"brand\":\"dolorem\",\"price\":\"94953540.00\",\"stock\":\"4\"}]';\n $result = (array)json_decode($response->getBody())->result;\n\n $this->assertEquals(json_decode($sJson), $result);\n }", "public function filterName($name)\n {\n $rule = array(\n \"\\r\" => '',\n \"\\n\" => '',\n \"\\t\" => '',\n '\"' => \"'\",\n '<' => '[',\n '>' => ']',\n );\n $filtered = filter_var(\n $name,\n FILTER_SANITIZE_STRING,\n FILTER_FLAG_NO_ENCODE_QUOTES\n );\n return trim(strtr($filtered, $rule));\n }", "public function actionRecipesForPartialName()\n {\n $recipes = RecipeDao::findAll([\"name LIKE\" => \"%\" . SiteUtil::getUrlParameters()[2]. \"%\"] );\n echo json_encode($this->recipesToArray($recipes));\n }", "protected function _filterRequestNames($name)\n {\n return '_' !== $name[0];\n }", "public function searchByFilter() {\n // should not be searched.\n\n $criteria = new CDbCriteria;\n\n if (!empty($this->rekening1_id)) {\n $criteria->addCondition(\"rekening1_id = \" . $this->rekening1_id);\n }\n $criteria->compare('LOWER(kdrekening1)', strtolower($this->kdrekening1), true);\n $criteria->compare('LOWER(nmrekening1)', strtolower($this->nmrekening1), true);\n $criteria->compare('LOWER(nmrekeninglain1)', strtolower($this->nmrekeninglain1), true);\n// $criteria->compare('LOWER(rekening1_nb)', strtolower($this->rekening1_nb), true);\n $criteria->compare('rekening1_aktif', $this->rekening1_aktif);\n if (!empty($this->rekening2_id)) {\n $criteria->addCondition(\"rekening2_id = \" . $this->rekening2_id);\n }\n $criteria->compare('LOWER(kdrekening2)', strtolower($this->kdrekening2), true);\n $criteria->compare('LOWER(nmrekening2)', strtolower($this->nmrekening2), true);\n $criteria->compare('LOWER(nmrekeninglain2)', strtolower($this->nmrekeninglain2), true);\n// $criteria->compare('LOWER(rekening2_nb)', strtolower($this->rekening2_nb), true);\n $criteria->compare('rekening2_aktif', $this->rekening2_aktif);\n if (!empty($this->rekening3_id)) {\n $criteria->addCondition(\"rekening3_id = \" . $this->rekening3_id);\n }\n $criteria->compare('LOWER(kdrekening3)', strtolower($this->kdrekening3), true);\n $criteria->compare('LOWER(nmrekening3)', strtolower($this->nmrekening3), true);\n $criteria->compare('LOWER(nmrekeninglain3)', strtolower($this->nmrekeninglain3), true);\n// $criteria->compare('LOWER(rekening3_nb)', strtolower($this->rekening3_nb), true);\n $criteria->compare('rekening3_aktif', $this->rekening3_aktif);\n if (!empty($this->rekening4_id)) {\n $criteria->addCondition(\"rekening4_id = \" . $this->rekening4_id);\n }\n $criteria->compare('LOWER(kdrekening4)', strtolower($this->kdrekening4), true);\n $criteria->compare('LOWER(nmrekening4)', strtolower($this->nmrekening4), true);\n $criteria->compare('LOWER(nmrekeninglain4)', strtolower($this->nmrekeninglain4), true);\n// $criteria->compare('LOWER(rekening4_nb)', strtolower($this->rekening4_nb), true);\n $criteria->compare('rekening4_aktif', $this->rekening4_aktif);\n if (!empty($this->rekening5_id)) {\n $criteria->addCondition(\"rekening5_id = \" . $this->rekening5_id);\n }\n $criteria->compare('LOWER(kdrekening5)', strtolower($this->kdrekening5), true);\n $criteria->compare('LOWER(nmrekening5)', strtolower($this->nmrekening5), true);\n $criteria->compare('LOWER(nmrekeninglain5)', strtolower($this->nmrekeninglain5), true);\n// $criteria->compare('LOWER(rekening5_nb)', strtolower($this->rekening5_nb), true);\n $criteria->compare('LOWER(keterangan)', strtolower($this->keterangan), true);\n $criteria->compare('nourutrek', $this->nourutrek);\n $criteria->compare('rekening5_aktif', $this->rekening5_aktif);\n $criteria->compare('LOWER(kelompokrek)', strtolower($this->kelompokrek), true);\n $criteria->compare('sak', $this->sak);\n $criteria->compare('LOWER(create_time)', strtolower($this->create_time), true);\n $criteria->compare('LOWER(update_time)', strtolower($this->update_time), true);\n $criteria->compare('LOWER(create_loginpemakai_id)', strtolower($this->create_loginpemakai_id), true);\n $criteria->compare('LOWER(update_loginpemakai_id)', strtolower($this->update_loginpemakai_id), true);\n $criteria->compare('LOWER(create_ruangan)', strtolower($this->create_ruangan), true);\n// $condition = 'rincianobyek_id IS NOT NULL';\n// $criteria->addCondition($condition);\n $criteria->order = 'rekening1_id, rekening2_id, rekening3_id, rekening4_id, nourutrek';\n\n return new CActiveDataProvider($this, array(\n 'criteria' => $criteria,\n ));\n }", "public function searchByFilterPrint() {\n // should not be searched.\n\n $criteria = new CDbCriteria;\n\n if (!empty($this->rekening1_id)) {\n $criteria->addCondition(\"rekening1_id = \" . $this->rekening1_id);\n }\n $criteria->compare('LOWER(kdrekening1)', strtolower($this->kdrekening1), true);\n $criteria->compare('LOWER(nmrekening1)', strtolower($this->nmrekening1), true);\n $criteria->compare('LOWER(nmrekeninglain1)', strtolower($this->nmrekeninglain1), true);\n// $criteria->compare('LOWER(rekening1_nb)', strtolower($this->rekening1_nb), true);\n $criteria->compare('rekening1_aktif', $this->rekening1_aktif);\n if (!empty($this->rekening2_id)) {\n $criteria->addCondition(\"rekening2_id = \" . $this->rekening2_id);\n }\n $criteria->compare('LOWER(kdrekening2)', strtolower($this->kdrekening2), true);\n $criteria->compare('LOWER(nmrekening2)', strtolower($this->nmrekening2), true);\n $criteria->compare('LOWER(nmrekeninglain2)', strtolower($this->nmrekeninglain2), true);\n// $criteria->compare('LOWER(rekening2_nb)', strtolower($this->rekening2_nb), true);\n $criteria->compare('rekening2_aktif', $this->rekening2_aktif);\n if (!empty($this->rekening3_id)) {\n $criteria->addCondition(\"rekening3_id = \" . $this->rekening3_id);\n }\n $criteria->compare('LOWER(kdrekening3)', strtolower($this->kdrekening3), true);\n $criteria->compare('LOWER(nmrekening3)', strtolower($this->nmrekening3), true);\n $criteria->compare('LOWER(nmrekeninglain3)', strtolower($this->nmrekeninglain3), true);\n// $criteria->compare('LOWER(rekening3_nb)', strtolower($this->rekening3_nb), true);\n $criteria->compare('rekening3_aktif', $this->rekening3_aktif);\n if (!empty($this->rekening4_id)) {\n $criteria->addCondition(\"rekening4_id = \" . $this->rekening4_id);\n }\n $criteria->compare('LOWER(kdrekening4)', strtolower($this->kdrekening4), true);\n $criteria->compare('LOWER(nmrekening4)', strtolower($this->nmrekening4), true);\n $criteria->compare('LOWER(nmrekeninglain4)', strtolower($this->nmrekeninglain4), true);\n// $criteria->compare('LOWER(rekening4_nb)', strtolower($this->rekening4_nb), true);\n $criteria->compare('rekening4_aktif', $this->rekening4_aktif);\n if (!empty($this->rekening5_id)) {\n $criteria->addCondition(\"rekening5_id = \" . $this->rekening5_id);\n }\n $criteria->compare('LOWER(kdrekening5)', strtolower($this->kdrekening5), true);\n $criteria->compare('LOWER(nmrekening5)', strtolower($this->nmrekening5), true);\n $criteria->compare('LOWER(nmrekeninglain5)', strtolower($this->nmrekeninglain5), true);\n// $criteria->compare('LOWER(rekening5_nb)', strtolower($this->rekening5_nb), true);\n $criteria->compare('LOWER(keterangan)', strtolower($this->keterangan), true);\n $criteria->compare('nourutrek', $this->nourutrek);\n $criteria->compare('rekening5_aktif', $this->rekening5_aktif);\n $criteria->compare('LOWER(kelompokrek)', strtolower($this->kelompokrek), true);\n $criteria->compare('sak', $this->sak);\n $criteria->compare('LOWER(create_time)', strtolower($this->create_time), true);\n $criteria->compare('LOWER(update_time)', strtolower($this->update_time), true);\n $criteria->compare('LOWER(create_loginpemakai_id)', strtolower($this->create_loginpemakai_id), true);\n $criteria->compare('LOWER(update_loginpemakai_id)', strtolower($this->update_loginpemakai_id), true);\n $criteria->compare('LOWER(create_ruangan)', strtolower($this->create_ruangan), true);\n// $condition = 'rincianobyek_id IS NOT NULL';\n// $criteria->addCondition($condition);\n $criteria->limit = -1;\n $criteria->order = 'rekening1_id, rekening2_id, rekening3_id, rekening4_id, nourutrek';\n\n return new CActiveDataProvider($this, array(\n 'criteria' => $criteria,\n 'pagination' => false,\n ));\n }", "public function filter(Request $request)\n {\n $nameDishCat = $this->get_dish_cat();\n $nameFoodTag = $this->get_food_tag();\n\n $ks = '';\n $cat = 0;\n $prices = 10;\n $tags = [];\n\n if (isset($request->keysearch)) {\n $ks = $request->keysearch;\n }\n if (isset($request->cat)) {\n $cat = $request->cat;\n }\n if (isset($request->price)) {\n $prices = $request->price;\n }\n if (isset($request->tag)) {\n $tags = $request->tag;\n }\n $publicController = new PublicController();\n\n $rs = $publicController->search($ks, $tags, $cat, $prices, 1);\n $data = $this->convertRestaurant($rs);\n if (count($data) == 0) {\n $rs = $publicController->search('', [], 0, 10, 1);\n $data = $this->convertRestaurant($rs);\n }\n\n return view('template.restaurants', compact('data', 'nameDishCat', 'nameFoodTag'));\n }", "function getListFilter($col,$key) {\n\t\t\tswitch($col) {\n\t\t\t\tcase 'unit':\n\t\t\t\t\tglobal $conn, $conf;\n\t\t\t\t\trequire_once($conf['gate_dir'].'model/m_unit.php');\n\t\t\t\t\t\n\t\t\t\t\t$row = mUnit::getData($conn,$key);\n\t\t\t\t\t\n\t\t\t\t\treturn \"u.infoleft >= \".(int)$row['infoleft'].\" and u.inforight <= \".(int)$row['inforight'];\n\t\t\t\tcase 'jenis':\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\treturn \"jnsrate='$key'\";\n\t\t\t}\n\t\t}", "public function filters() {\n\t\treturn array(\n\t\t TRUE => array(array('trim')),\n\t\t);\n\t}", "protected function rawFilter($filter) {\n //Log::debug('query: ',$filter);\n\t\t// Build a query based on filter $filter\n\t\t$query = Pallet::query()\n ->select('Pallet.objectID', 'Pallet.Pallet_ID', 'Pallet.x', 'Pallet.y', 'Pallet.z', 'Pallet.Status')\n ->orderBy('Pallet_ID', 'asc');\n if(isset($filter['Pallet_ID']) && strlen($filter['Pallet_ID']) > 2) {\n $query->where('Pallet_ID', 'like', ltrim($filter['Pallet_ID'],'0') . '%');\n\t\t}\n\t\tif(isset($filter['Pallet_ID.prefix']) && is_array($filter['Pallet_ID.prefix'])) {\n $query->whereRaw(\"substring(Pallet_ID,1,3) in ('\".implode(\"','\", $filter['Pallet_ID.prefix']).\"')\");\n\t\t}\n if(isset($filter['Status']) && is_array($filter['Status'])) {\n $query->whereRaw(\"Status in ('\".implode(\"','\", $filter['Status']).\"')\");\n }\n elseif(isset($filter['Status']) && strlen($filter['Status']) > 3) {\n $query->where('Status', '=', $filter['Status']);\n }\n /*\n * container.parent should generate this sql request\n * select Pallet.* from Pallet join container plt on plt.objectID = Pallet.objectID where plt.parentID = 6213292055;\n */\n if(isset($filter['container.parent']) && strlen($filter['container.parent']) > 3) {\n $query\n ->join('container as plt', 'plt.objectID', '=', 'Pallet.objectID')\n ->where('plt.parentID',$filter['container.parent']);\n }\n /*\n * container.child should generate this sql request\n * select Pallet.* from Pallet join container gc on gc.parentID = Pallet.objectID where gc.objectID = 6226111054;\n */\n if(isset($filter['container.child']) && strlen($filter['container.child']) > 3) {\n $query\n ->join('container as gc', 'gc.parentID', '=', 'Pallet.objectID')\n ->where('gc.objectID',$filter['container.child']);\n }\n return $query;\n }", "public function filter(Request $request)\n {\n $fields = ['isbn', 'title', 'author', 'price', 'currency'];\n $books = Book::query();\n if ($request->has('author')) {\n $books->where('author', 'like', '%' . $request->author . '%');\n }\n if ($request->has('category')) {\n $categories = $this->resolveCategories($request);\n $books\n ->join('book_category_relations', 'books.id', '=', 'book_id')\n ->join('categories', 'categories.id', '=', 'category_id');\n // add all categories to where\n foreach($categories as $category) {\n if (is_numeric($category)) {\n $books->orWhere('categories.id', '=', $request->category);\n } else {\n $books->orWhere('categories.name', 'like', '%' . trim($request->category) . '%');\n }\n }\n }\n if ($request->has('isbn') || $request->isbn) {\n $books->where('isbn', 'like', '%' . $request->isbn . '%');\n }\n return response()->json($books->get($fields));\n }", "public function filterMembers()\n {\n return $this->team->where('id', Auth::user()->getTeam()->id)->with([\n 'members' => function ($query) {\n $query->where('slug', 'like', '%' . $this->request->get('q') . '%');\n },\n ])->first()->members;\n }", "public function scopeBoneName($query, $name)\n {\n $sb = SkeletalBone::where('name', $name)->first();\n return $query->where('sb_id', '=', $sb->id);\n }", "function nameSearch($conn, $search_term)\n {\n $query = \"SELECT DISTINCT whwp_Advert.advert_id FROM whwp_Advert \"\n . \"WHERE advert_bookname = :search_term \"\n . \"ORDER BY whwp_Advert.advert_price DESC\";\n $conn->prepQuery($query);\n $conn->bind('search_term', $search_term);\n $advert = $conn->resultset();\n return $advert;\n }", "public function filter(&$fetcher, $filter){\n\t\t// break up filter\n list($field, $value, $logic, $type) = $filter;\n\n\t\t// escape value and allow to search in\n $value = \"%\".addslashes($value).\"%\";\n\n\t\t// filter return\n\t\treturn \"`$field` $logic '$value'\";\n\t}", "public function getFilteredHobbies($tag_id)\n {\n //create a new instance of our tag model\n $tag = new Tag();\n //find $tag_id passed in. if findOrFail don't find $tag_id, it will handel error\n $hobbies = $tag::findOrFail($tag_id)->filteredHobbies()->paginate(10);\n\n $filter = $tag::find($tag_id);\n //dd($filter);\n\n //take hobbies and send them to a view. Use index.blade the old view\n return view('hobby.index', [\n //just pass over the data also as a second\n 'hobbies' => $hobbies,\n 'filter' => $filter\n \n\n ]);\n }", "static public function getGoodFilter($text){\n \t//lowercase the text (the filters are case unsensitive)\n \t$text = strtolower($text);\n \t//gather the filters\n \t$filters = self::getDoctrine()\n \t->getRepository('WPierreScafoScafoBundle:Filter')->createQueryBuilder('f')->orderBy('f.order_number', 'ASC');\n \t\n \t//see if we can find a filter that matches with the text\n \tforeach ($filters as $filter){\n \t\tif ($filter->doesFilterMatch($text)){\n \t\t\treturn $filter;\n \t\t}\n \t}\n \treturn null; \t\n }", "abstract protected function filterFieldvalue();", "public function getSbFilter()\n {\n return $this->getAdditionalParam('shortBreak', '');\n }", "function tck_admin_list_where($where) {\n if ( isset($_GET['custom_filter']) ) {\n $mode = $_GET['custom_filter'];\n \n if ( $mode == 1 ) $where .= ' AND `' . TCK_COLUMN . '` = 0';\n if ( $mode == 2 ) $where .= ' AND `' . TCK_COLUMN . '` = 1';\n }\n \n return $where;\n }" ]
[ "0.6073091", "0.5935709", "0.58008975", "0.5750423", "0.5692186", "0.5665151", "0.5646273", "0.5532532", "0.54919654", "0.5470675", "0.5428523", "0.5417336", "0.54082245", "0.5333248", "0.5302756", "0.52451515", "0.52199554", "0.51648855", "0.5154802", "0.5139016", "0.51298785", "0.5117534", "0.50938255", "0.509355", "0.5091596", "0.50449604", "0.5041986", "0.5040874", "0.5029165", "0.50268", "0.5014914", "0.5012293", "0.49981895", "0.49969038", "0.49969023", "0.49882698", "0.4983204", "0.49533373", "0.49410585", "0.49387926", "0.49305978", "0.49164307", "0.49132976", "0.49054492", "0.48986527", "0.48808953", "0.48807946", "0.4876558", "0.48639575", "0.48552948", "0.48531792", "0.48481515", "0.4842719", "0.4842097", "0.4839262", "0.48358655", "0.48307848", "0.48264778", "0.47999462", "0.47979453", "0.47960293", "0.4790493", "0.47898027", "0.47833192", "0.47640255", "0.47604376", "0.47604376", "0.47574565", "0.47284523", "0.47211018", "0.47162038", "0.47147244", "0.47124657", "0.470795", "0.47059906", "0.47020257", "0.46967518", "0.4696657", "0.46935147", "0.46922216", "0.4684786", "0.468467", "0.4684537", "0.4673099", "0.46657756", "0.46616524", "0.46607322", "0.46604654", "0.46465263", "0.46410826", "0.46369117", "0.46233857", "0.46147424", "0.46142662", "0.46120173", "0.46052954", "0.45984977", "0.45952147", "0.45913795", "0.4590589" ]
0.64674014
0
Filter the enabled/disabled boats.
public function filterByEnabled($enabled) { $this->query->andWhere($this->query->expr()->eq('b.enabled', $enabled ? 1 : 0)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function filtering();", "private function filters() {\n\n\n\t}", "abstract public function filters();", "public function filterable()\n {\n return true;\n }", "public function getFilterables()\n {\n return $this->filterables;\n }", "public function filter();", "protected function getFilterable()\n {\n return [];\n }", "public function getBans()\n {\n return $this->filter(function(PickBanEntity $pickBan) {\n if ($pickBan->isBan() === true) {\n return true;\n }\n\n return false;\n });\n }", "public function filterVisible(): self;", "public function filters(){\r\r\n\t\treturn CMap::mergeArray(parent::filters(),array(\r\r\n\t\t\t\r\r\n\t\t));\r\r\n\t}", "public function filters()\n {\n $filters = array(\n 'postOnly + delete',\n );\n\n return CMap::mergeArray($filters, parent::filters());\n }", "public function filters()\n {\n $filters = array(\n 'postOnly + delete',\n );\n\n return CMap::mergeArray($filters, parent::filters());\n }", "private function allowsFilter()\n {\n return config('dingoquerymapper.allowFilters');\n }", "protected abstract function filter();", "public function allowedFilters()\n {\n return [];\n }", "public function getFilters();", "abstract protected function getFilters();", "public function filters()\n {\n return [\n \n ];\n }", "public function isFilterable(): bool;", "public function filters() {\n return array(\"accessControl\");\n }", "public static function getAllEnabled()\n {\n $c = new Criteria();\n $c->add(ServerPeer::IS_ENABLED, true);\n return parent::doSelect($c);\n }", "public function getAllFilters();", "public function filters()\n\t{\n\t\t// Force all methods to be called as ajax\n\t\treturn array(\n\t\t\t'ajaxOnly',\n\t\t);\n\t}", "private function filter()\n {\n if ($this->allowsFilter()) {\n if ($this->hasFilters()) {\n $tmp = [];\n foreach ($this->filters as $filter) {\n // check, if it is a \"forbidden\" query parameter\n if ($this->isExcludedParameter($filter['key'])) {\n continue;\n }\n $tmp[] = $filter;\n }\n\n $this->filters = $tmp;\n\n return $this->operator->filter($this->filters);\n }\n }\n }", "public function getFilters()\n {\n return array();\n }", "protected function filter_attributes()\n\t{\n\t\t$filter = array_flip(array('type', 'split', 'align'));\n\t\t\n\t\t$attrs = $this->manager->attrs();\n\t\t\n\t\t$this->btn_attrs = array_diff_key($attrs, $filter);\n\t\t$this->manager->attrs(array_intersect_key($attrs, $filter));\n\t}", "public function filters() {\n\t\treturn array(\n\t\t\t'accessControl',\n\t\t);\n\t}", "public function filter() {\r\n\t\t$this->resource->filter();\r\n\t}", "public function Filter_Not() {\r\n\t\treturn array(\r\n\t\t\t'where' => '0'\r\n\t\t);\r\n\t}", "protected function set_filters() {\n\t\t# Ignore all items with undefined price\n\t\t$this->generator->addFilter(\n\t\t\tfunction (\n\t\t\t\tarray $sf_product\n\t\t\t) {\n\t\t\t\t$sf_product = reset( $sf_product );\n\n\t\t\t\t/** @var Product $sf_product */\n\t\t\t\treturn ! empty( $sf_product->get_price() );\n\t\t\t}\n\t\t);\n\t}", "function allow_configured_filters() {\n return TRUE;\n }", "public function filters(){\n\t\treturn array( 'accessControl' );\n\t}", "public function addActiveFilter()\n {\n return $this->addFieldToFilter('status', 1);\n }", "private function _hardFilter()\n\t {\n\t\t$check = true;\n\n\t\t$blackxml = new SimpleXMLElement(file_get_contents(__DIR__ . \"/storage/blacklist.xml\"));\n\n\t\tforeach ($blackxml->patterns->pattern as $pattern)\n\t\t {\n\t\t\tif (isset($this->name) === true)\n\t\t\t {\n\t\t\t\tif (preg_match((string) $pattern, $this->name) > 0)\n\t\t\t\t {\n\t\t\t\t\t$check = false;\n\t\t\t\t\tbreak;\n\t\t\t\t } //end if\n\n\t\t\t } //end if\n\n\t\t\tif (preg_match((string) $pattern, $this->description) > 0)\n\t\t\t {\n\t\t\t\t$check = false;\n\t\t\t\tbreak;\n\t\t\t } //end if\n\n\t\t } //end foreach\n\n\t\tif ($check !== false)\n\t\t {\n\t\t\tforeach ($blackxml->words->word as $word)\n\t\t\t {\n\t\t\t\tif (isset($this->name) === true)\n\t\t\t\t {\n\t\t\t\t\tif (preg_match(\"/\" . (string) $word . \"/ui\", $this->name) > 0)\n\t\t\t\t\t {\n\t\t\t\t\t\t$check = false;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t } //end if\n\n\t\t\t\t } //end if\n\n\t\t\t } //end foreach\n\n\t\t } //end if\n\n\t\tif ($check === false)\n\t\t {\n\t\t\t$whitexml = new SimpleXMLElement(file_get_contents(__DIR__ . \"/storage/whitelist.xml\"));\n\n\t\t\tforeach ($whitexml->patterns->pattern as $pattern)\n\t\t\t {\n\t\t\t\tif (preg_match((string) $pattern, $this->description) > 0)\n\t\t\t\t {\n\t\t\t\t\t$check = true;\n\t\t\t\t\tbreak;\n\t\t\t\t } //end if\n\n\t\t\t } //end foreach\n\n\t\t } //end if\n\n\t\treturn $check;\n\t }", "public function filters()\n\t{\n \treturn array(\n \t\t'accessControl'\n\t\t);\n\t}", "public function getAllAvaiabled(){\n \treturn $this->select()->where('IsDisabled = 0')->order(\"SubjectId ASC\");\n }", "public function queryAllActive()\n {\n $storeId=Mage::app()->getStore()->getId();\n $results = Mage::getStoreConfig('carriers', $storeId);\n foreach ($results as $key => $value) {\n if(!$value['active']){ unset($results[$key]); }\n }\n return $results;\n }", "public function getActiveConditions() {\n $conditions = self::where('active', true)->get()->toArray();\n return $conditions;\n\n }", "public function filters() {\n return array(\n 'accessControl',\n );\n }", "public function getFilters()\n {\n return array(\n new Twig_SimpleFilter('raw', 'twig_raw_filter', array('is_safe' => array('all'))),\n );\n }", "public function getFilters(): array;", "public function isFiltered() : bool;", "public function buscarBancos() {\r\n return $this->find(\"b_estatus = 'activa'\");\r\n }", "public static function deactivateAll()\n {\n foreach (self::$_activeFilters as $target => $filter) {\n $filter->deactivate();\n }\n }", "public function filters() {\n\t\treturn array(\n\t\t TRUE => array(array('trim')),\n\t\t);\n\t}", "protected function nonbillable()\n {\n return $this->builder->where('billable', false);\n }", "public function getFilter();", "public function getFilter();", "protected function getEmptyFilter()\n {\n return array('filters' => array());\n }", "public function removeAllFilters();", "public function getActiveFilters()\n {\n \t$ret = $this->getSettingValue('filters', []);\n \treturn (is_array($ret)) ? $ret : [];\n }", "public static function buyerFilterSearch()\n {\n\n $buyerfilters = DB::table('intra_hp_buyer_posts')\n ->select('intra_hp_buyer_posts.*')\n ->where('is_active', 1)\n ->get();\n\n return $buyerfilters;\n\n }", "public function getFilterableAttributes()\n {\n return $this->attributeRepository->findByField('is_filterable', 1);\n }", "function xh_listFilters()\r\n\t{\r\n\t}", "public static function retrieveAll()\n {\n if (!$_GET['a']) {\n //special case: if on the main home page, don't retrieve any filters (but leave them in the db in case user goes back to that category)\n return;\n }\n $db = DataAccess::getInstance();\n $session = geoSession::getInstance()->initSession();\n $sql = \"SELECT * FROM \" . geoTables::browsing_filters . \" WHERE `session_id` = ?\";\n $result = $db->Execute($sql, array($session));\n foreach ($result as $stored) {\n $filter = self::getFilter($stored['target']);\n if (!$filter || $stored['category'] != self::getActiveCategory()) {\n //this filter belongs to a different category. trash it and move on.\n $sql = \"DELETE FROM \" . geoTables::browsing_filters . \" WHERE `session_id` = ? AND `target` = ?\";\n $db->Execute($sql, array($session, $stored['target']));\n continue;\n }\n $type = $filter->getType();\n switch ($type) {\n case self::BOOL:\n case self::SCALAR:\n case self::PICKABLE:\n $filter->activate($stored['value_scalar']);\n break;\n case self::RANGE:\n case self::DATE_RANGE:\n $filter->activate(array('low' => $stored['value_range_low'], 'high' => $stored['value_range_high']));\n break;\n default:\n //not a defined type\n return false;\n break;\n }\n self::$_activeFilters[$stored['target']] = $filter;\n }\n }", "function kalium_get_enabled_options( $items ) {\n\t$enabled = [];\n\n\tif ( isset( $items['visible'] ) ) {\n\t\tforeach ( $items['visible'] as $item_id => $item ) {\n\t\t\tif ( $item_id == 'placebo' ) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\t$enabled[ $item_id ] = $item;\n\t\t}\n\t}\n\n\treturn $enabled;\n}", "static function get_enabledreports($not_wanted=array())\n {\n $all=static::get_all_reports();\n\n if(empty($all))\n return $all;\n\n $reports = array_filter($all,function($report) use($not_wanted)\n {\n return (!in_array($report->id,$not_wanted) and $report->status==ILP_ENABLED);\n });\n\n usort( $reports, 'ilp_report::reportSortByPosition' );\n\n return $reports;\n }", "protected function getFilterStatus()\n {\n }", "private static function _getFilter() {}", "protected function billable()\n {\n return $this->builder->where('billable', true);\n }", "public function getFilters()\n\t{\n\t\treturn array(\n\t\t\tnew \\Twig_SimpleFilter('subset', array($this, 'loop_subset'), array('needs_environment' => true)),\n\t\t\t// @deprecated 3.2.0 Uses twig's JS escape method instead of addslashes\n\t\t\tnew \\Twig_SimpleFilter('addslashes', 'addslashes'),\n\t\t);\n\t}", "public function getFilters()\n {\n return array(\n 'safe' => new Twig_Filter_Function('twig_safe_filter', array('is_escaper' => true)),\n );\n }", "public function getFilters(): array\n {\n return [];\n }", "public function testFilterBedrooms()\n {\n $this->visit('/properties')\n ->select('#bedrooms', 1)\n ->press('Update results')\n ->see('Shack in the desert');\n $this->notSee('Five bedroom mill conversion');\n $this->notSee('Victorian townhouse');\n }", "public function getEnableFieldsToBeIgnored() {}", "public function getEnabledBackends(){\n\t\t$backendMapper = $this->app['BackendMapper'];\n\t\treturn $backendMapper->getAll();\n\t}", "public function filters()\n\t{\n\t\treturn array(\n\t\t\t'amount' => array(\n\t\t\t\tarray('Num::filter_number')\n\t\t\t),\n\t\t\t'price' => array(\n\t\t\t\tarray('Num::filter_number')\n\t\t\t)\n\t\t);\n\t}", "public function getBrandCollection()\n {\n return $brandCollection = Mage::getModel('shopbrand/brand')->getCollection()\n ->addFieldToFilter('status', array('eq' => 1));\n }", "public function setFilterable(bool $filterable=true): self;", "public function activeRestrictions()\n\t{\n\t\t$return = array();\n\t\t\n\t\tif ( !$this->member->group['gbw_disable_tagging'] and $this->member->members_bitoptions['bw_disable_tagging'] )\n\t\t{\n\t\t\t$return[] = 'restriction_no_tagging';\n\t\t}\n\t\tif ( !$this->member->group['bw_disable_prefixes'] and $this->member->members_bitoptions['bw_disable_prefixes'] )\n\t\t{\n\t\t\t$return[] = 'restriction_no_prefixes';\n\t\t}\n\t\t\n\t\treturn $return;\n\t}", "public function getFilters()\n {\n return [\n 'setting' => new TwigFilter(\n 'setting',\n [$this, 'settingFilter'],\n []\n ),\n ];\n }", "public function getFilters() \n {\n return $this->filters;\n }", "public function getConditions();", "public function getConditions();", "public function getConditions();", "public function removeFilters();", "public function hasFilter(): bool;", "public function getOnboardingFilter() {\n\n return (bool) $this->onboarding_filter;\n\n }", "protected function getBooleans(){\n return array_keys( array_filter( $this->getOperatorData(),\n function($item){\n return $item['type'] === self::TYPE_BOOLEAN;\n }));\n }", "public function getConditionsHook()\n\t{\n\t\t$conditions = array();\n\t\t\n\t\t$conditions['select'] = '`bid` AS id, `cid`, `type`, `name`, `alias`, `imptotal`, `impmade`, '\n\t\t\t\t\t\t\t\t\t\t\t\t\t.'`clicks`, `imageurl`, `clickurl`, `date`, `showBanner` AS state, `checked_out`, '\n\t\t\t\t\t\t\t\t\t\t\t\t\t.'`checked_out_time`, `editor`, `custombannercode`, `catid`, `description`, '\n\t\t\t\t\t\t\t\t\t\t\t\t\t.'`sticky`, `ordering`, `publish_up`, `publish_down`, `tags`, `params`'\t;\n\t\t\n\t\t$conditions['where'] = array();\n\t\t\n\t\treturn $conditions;\n\t}", "function acf_disable_filters()\n{\n}", "public function off_canvas_applied_filters() {\n\t\t\tthe_widget( 'WC_Widget_Layered_Nav_Filters' );\n\t\t}", "public function deactivateAll(){\n $config = LiteBriteConfig::where('is_active','=',true)->update(['is_active' => false]);\n return;\n }", "public function getEnabledModules()\n {\n return array_filter($this->definitions, [$this, 'filterEnabled']);\n }", "protected function getFilter() {\n\t\t$conditions = $this->getConditions();\n\t\treturn $conditions;\n\t}", "public function enabled();", "public function enabled();", "public function enabled();", "public function enabled();", "function get_filters($init_data = true) {\n //no filters by default\n return array();\n }", "function paginationConditions() {\n // Only retrieve attributes in the current data filter scrubber\n\n $ret = array();\n\n $ret['conditions']['DataScrubberFilterAttribute.data_scrubber_filter_id'] = $this->request->params['named']['datascrubberfilter'];\n\n return $ret;\n }", "public function filtersExist();", "public function canBeDisabledAndEnabled() {}", "public function deactivate()\n {\n if (!isset(self::$_activeFilters[$this->target])) {\n //this filter isn't active...something's wrong\n return false;\n }\n\n //if there are any filters that are dependent on this one, remove them first\n foreach (self::$_activeFilters as $f) {\n if ($f->getDependency() === $this->target) {\n $f->deactivate();\n }\n }\n\n //update database\n $session = geoSession::getInstance()->initSession();\n $db = DataAccess::getInstance();\n $sql = \"DELETE FROM \" . geoTables::browsing_filters . \" WHERE `session_id` = ? AND `target` = ?\";\n $db->Execute($sql, array($session, $this->target));\n\n //remove cache var\n unset(self::$_activeFilters[$this->target]);\n\n //update table select to not use this filter\n $this->applyToQuery($db->getTableSelect(DataAccess::SELECT_BROWSE), true);\n }", "public function filterConfirmed(bool $confirmed): self;", "public function getFilters(): array {\n\n return [\n new TwigFilter(\"adminBSBButtonLink\", [$this, \"bootstrapButtonLinkFilter\"], [\"is_safe\" => [\"html\"]]),\n new TwigFilter(\"adminBSBButtonSubmit\", [$this, \"bootstrapButtonSubmitFilter\"], [\"is_safe\" => [\"html\"]]),\n ];\n }", "public function filters()\n\t{\n\t\treturn array(\n\t\t\t'accessControl', // perform access control for CRUD operations\n\t\t);\n\t}", "public function filters()\n\t{\n\t\treturn array(\n\t\t\t'accessControl', // perform access control for CRUD operations\n\t\t);\n\t}", "function f3d_payment_method_filter($available_gateways)\n{\n\tglobal $wp, $current_user;\n\n\t$isDistributor = ($current_user && $current_user->roles && in_array('distributor', $current_user->roles));\n\t$disallow = $isDistributor\n\t\t? ['paypal']\n\t\t: ['bacs'];\n\n\tforeach($available_gateways as $gateway_id => $gateway)\n\t{\n\t\tif (in_array($gateway_id, $disallow))\n\t\t{\n\t\t\tunset($available_gateways[$gateway_id]);\n\t\t}\n\t}\n\n\treturn $available_gateways;\n}", "public function getFilters(): array;" ]
[ "0.63596225", "0.6135706", "0.6025028", "0.60215056", "0.5853914", "0.5835337", "0.5805598", "0.5772712", "0.57505715", "0.57185376", "0.5702651", "0.5702651", "0.56909674", "0.56608564", "0.56291145", "0.55991143", "0.5556963", "0.5549576", "0.55153334", "0.5514187", "0.5499803", "0.5487345", "0.5470085", "0.54636484", "0.5455906", "0.5452674", "0.5450334", "0.54262525", "0.54117143", "0.5395763", "0.53952944", "0.5389154", "0.5377123", "0.537234", "0.53564113", "0.5331456", "0.5315539", "0.53144187", "0.5306676", "0.53056234", "0.53037226", "0.52764106", "0.5266203", "0.52634937", "0.52570283", "0.5249082", "0.524903", "0.524903", "0.52209234", "0.52156043", "0.5213695", "0.52016395", "0.5196973", "0.51900405", "0.51720816", "0.5171979", "0.51567215", "0.51482916", "0.5146782", "0.5145128", "0.51446784", "0.51424986", "0.5125699", "0.5123656", "0.5117485", "0.5115919", "0.51099557", "0.50999844", "0.5093523", "0.508054", "0.5078652", "0.5064166", "0.50513554", "0.50513554", "0.50513554", "0.5047538", "0.50464845", "0.50411105", "0.5040097", "0.5035347", "0.5035082", "0.5033113", "0.5021567", "0.4995726", "0.49938643", "0.49902686", "0.49902686", "0.49902686", "0.49902686", "0.49853534", "0.49809647", "0.49725053", "0.49567866", "0.49542934", "0.49497908", "0.49485236", "0.4947534", "0.4947534", "0.49464247", "0.4944308" ]
0.55017865
20
Include in the results only the boats without a length.
public function filterByWithoutLength() { $this->query->andWhere($this->query->expr()->isNull('b.length')); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function filterByWithLength()\n {\n $this->query->andWhere($this->query->expr()->isNotNull('b.length'));\n }", "protected function notbilled()\n {\n $this->builder = $this->billable();\n return $this->builder->where('billed', false);\n }", "protected function billed()\n {\n return $this->builder->where('billed', true);\n }", "public function prunable(): Builder\n {\n return static::whereDoesntHave('bookings', function (Builder $query) {\n return $query->whereState('state', CheckedOut::class);\n })\n ->where(function ($query) {\n // User has never logged in and was created more than a year ago.\n $query->whereNull('last_logged_in_at')\n ->whereDate('created_at', '<=',\n now()->subDays(config('hydrofon.prune_models_after_days.users', 365)));\n })\n ->orWhere(function ($query) {\n // User has logged in but not been active for more than a year.\n $query->whereNotNull('last_logged_in_at')\n ->whereDate('last_logged_in_at', '<=',\n now()->subDays(config('hydrofon.prune_models_after_days.users', 365)));\n });\n }", "protected function exclude_spare()\n {\n return $this->collection = $this->collection->where('is_spare', 'f');\n }", "private static function _blankWeightArray($len) {\n\t\t$out = array();\n\t\tfor($i = 0; $i < $len; $i++)\n\t\t\t$out[] = 50;\n\t\treturn $out;\n\t}", "public function ignoreLengthErrors() {\n \n $this->options .= '-l ';\n \n return $this;\n }", "public static function ignored($key, $length)\n {\n return static::make('ignored', $length)->ignore();\n }", "public function dry() {\n\t\treturn $this->empty;\n\t}", "protected function nonbillable()\n {\n return $this->builder->where('billable', false);\n }", "public function getNumberOfCombinedBathrooms()\n {\n if ($this->combined_bathroom == 0) {\n return '';\n }\n\n return Yii::t('app',\n '{n, plural, =1{# совмещенный санузел} =2{# совмещенных санузла} =3{# совмещенных санузла} =4{# совмещенных санузла} other{# совмещенных санузлов}}',\n [\n 'n' => (int)$this->combined_bathroom,\n ]);\n }", "public function filtering();", "public function skip($length) {}", "public function getDoktypeExcludeWhere() {}", "public static function getAllLands(){\n $db = Zend_Registry::get('dbAdapter');\n $query = $db->select()->distinct()\n ->from(array('o' => 'orte'), array(\n 'o.landid',\n 'o.land'\n ))\n ->where( \"LENGTH(o.land)>0\")\n ->order('o.land');\n return $db->fetchAll($query);\n }", "public function getSubawards(){\n\t\t$connection = Database::getConnection();\n\t\t$query = \"SELECT * FROM watson WHERE status!='Award -- Terminated' and shortAwardNumber!='' ORDER BY shortAwardNumber\";\n\t\t$items=\"\";\n\t\t$result_obj=$connection->query($query);\n\t\ttry{\n\t\t\twhile($result = $result_obj->fetch_array(MYSQLI_ASSOC)){\n\t\t\t\t$items[]=$result;\n\t\t\t}\n\t\t\treturn($items);\n\t\t}\n\t\tcatch(Exception $e){\n\t\t\treturn false;\n\t\t}\n\t}", "public function getRemainingBedsByName() {\n $term = Request::input('term', '');\n $ids = Request::input('ids', '');\n $beds_id = ($ids ? array_map('intval', explode(',', $ids)) : []);\n\n $results = array();\n $queries = Bed::where('name', 'LIKE', '%'.$term.'%')\n ->whereNotIn('id', $beds_id)\n ->take(10)->get();\n foreach ($queries as $query)\n $results[] = ['id' => $query->id,\n 'value' => $query->name,\n 'price' => $query->price,\n 'total_persons' => $query->total_persons];\n return response()->json($results);\n }", "public function getBuildingsWithBudgets()\n {\n $buildings_budgets = $this->find('all', [\n 'contain' => ['Budgets' =>\n function ($q) {\n return $q\n ->select(['id', 'building_id']);\n }],\n 'conditions' => ['Buildings.softland_id IS NOT NULL', 'Buildings.omit' => false]\n ]);\n $buildingsWithBudget = array();\n foreach ($buildings_budgets as $buildings_budget) {\n if (!empty($buildings_budget['budget'])) {\n $buildingsWithBudget[$buildings_budget['softland_id']]['budget_id'] = $buildings_budget['budget']['id'];\n $buildingsWithBudget[$buildings_budget['softland_id']]['active'] = $buildings_budget['active'];\n }\n }\n return $buildingsWithBudget;\n }", "public function getWearBreakdown()\n {\n $results = array();\n $wear_types = $this->createEntity('Wear')->findAll();\n foreach ($wear_types as $wear)\n {\n $results[$wear->id] = array();\n }\n $select = $this->createEntity('DeltagereWear')->getSelect();\n $select->setFrom('wearpriser')->\n setTableWhere('wearpriser.id','deltagere_wear.wearpris_id')->\n setGroupBy('wearpris_id')->\n setGroupBy('size')->\n setGroupBy('wear_id')->\n setField('wearpris_id')->\n setField('size')->\n setField('wear_id')->\n setField('SUM(antal) AS antal',false)->\n setOrder('wearpris_id','asc')->\n setOrder('size','asc');\n $DB = $this->db;\n if ($result = $DB->query($select))\n {\n foreach ($result as $row)\n {\n $results[$row['wearpris_id']][] = $row;\n }\n }\n return $results;\n \n }", "function filterRecipes(){\r\n global $allRecipes;\r\n global $allr_array;\r\n global $filteredRecipes;\r\n $matched = false;\r\n foreach ($allRecipes as $recipe){\r\n foreach ($allr_array as $allergen){\r\n if (substr_count($recipe[3], $allergen) <= 0){\r\n $matched = false;\r\n break;\r\n }\r\n $matched = true;\r\n }\r\n if ($matched){\r\n $filteredRecipes[] = $recipe;\r\n $matched = false;\r\n }\r\n $_SESSION['db_result'] = $filteredRecipes;\r\n $_SESSION['total_rows'] = sizeof($filteredRecipes);\r\n }\r\n}", "public function getNovelties( ) {\n\t $novelties = Product::where('ebook', 0)\n\t ->orderBy('created_at', 'desc')\n\t ->take(6)\n\t ->with('image')\n\t ->with('author')\n\t ->where( 'amount', '>', 0 )\n\t ->get();\n\t return $novelties;\n }", "function prune_empty ()\n {\n $this->A = array_prune_empty ($this->A);\n return $this;\n }", "public function getNumberOfBathrooms()\n {\n if ((int)($this->combined_bathroom + $this->separate_bathroom) == 0) {\n return '';\n }\n\n return Yii::t('app',\n '{n, plural, =1{# ванная комната} =2{# ванные комнаты} =3{# ванные комнаты} =4{# ванные комнаты} other{# ванныx комнат}}',\n [\n 'n' => (int)($this->combined_bathroom + $this->separate_bathroom),\n ]);\n }", "public function hideSumWhenEmpty()\n {\n return $this->withMeta(['hideSumWhenEmpty' => true]);\n }", "public function getAllBreeds(){\n\t\treturn $this->getBreedsFromGET(self::GET_STRING_ALL_BREEDS);\n\t}", "public function goalies()\n {\n return $this->filter(function($stat) {\n return ($stat->saves > 0 || $stat->goals_allowed > 0) ||\n ($stat->player && property_exists($stat->player, 'position') && $stat->player->position == 'GOALIE');\n });\n }", "public function getBorrowings();", "public function filter();", "public function putCatsOutside() {\r\n\t\t$cats_house = $this->getCatsInside();\r\n\t\t$cats_boxes = $this->getCatsInBoxes();\r\n\t\t$cats_remaining = [];\r\n\t\tforeach ($cats_house as $cat_in_house) {\r\n\t\t\tif(!in_array($cat_in_house,$cats_boxes)) {\r\n\t\t\t\t$cats_remaining[] = $cat_in_house;\r\n\t\t\t\t$key = array_search($cat_in_house,$this->_cats);\r\n\t\t\t\tunset($this->_cats[$key]);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn count($cats_remaining);\r\n\t}", "private function sql_resAllItemsFilterWiRelation()\n {\n // Don't count hits\n $bool_count = false;\n\n // Query for all filter items\n $select = $this->sql_select( $bool_count );\n $from = $this->sql_from();\n $where = $this->sql_whereAllItems();\n $groupBy = $this->curr_tableField;\n $orderBy = $this->sql_orderBy();\n $limit = $this->sql_limit();\n\n// $query = $GLOBALS['TYPO3_DB']->SELECTquery\n// (\n// $select,\n// $from,\n// $where,\n// $groupBy,\n// $orderBy,\n// $limit\n// );\n//$this->pObj->dev_var_dump( $query );\n // Execute query\n $arr_return = $this->pObj->objSqlFun->exec_SELECTquery\n (\n $select, $from, $where, $groupBy, $orderBy, $limit\n );\n // Execute query\n\n return $arr_return;\n }", "public function getIgnoreEmpty()\n\t{\n\t\treturn $this->ignoreEmpty; \n\n\t}", "public function nonEmpty();", "protected function filterShortWords()\n {\n $longer_words = array_filter($this->words, function ($e) {\n return strlen($e) > 2;\n });\n\n $this->words = array_values($longer_words);\n\n return $this;\n }", "public function getReviewsHasBadwords()\n\t{\n\t\t$pages = new CPagination();\n\t\t$pages->pageSize = 10;\n\t\t\n\t\t$criteria = new CDbCriteria;\n\t\t$criteria->together = true;\n\t\t$criteria->condition = 'has_badwords=:has_badwords';\n\t\t$criteria->params = array(\n\t\t\t':has_badwords' => self::HAS_BADWORDS,\n\t\t);\n\t\t$criteria->limit = $pages->limit;\n\t\t$criteria->offset = $pages->offset;\n\t\t\n\t\treturn new CActiveDataProvider(__CLASS__, array(\n\t\t\t'criteria' => $criteria,\n\t\t\t'pagination' => $pages,\n\t\t));\n\t}", "function get_billed_parts() {\n\t\t// exit;\n\t\t$this->job_card_model->_table = 'view_service_billing_parts';\n\n\t\t$where['jobcard_group'] = $this->input->get('jobcard_group');\n\n\t\t$rows = $this->job_card_model->find_all($where);\n\n\t\tforeach ($rows as $key => $value) {\n\t\t\t$rows[$key]->has_billed = 1;\n\t\t}\n\n\t\t$total = count($rows);\n\t\techo json_encode(array('total' => $total, 'rows' => $rows));\n\t}", "public function exceptDescription($length = 50): string\n\t{\n\t\treturn str_limit(strip_tags($this->description), $length);\n\t}", "protected abstract function filter();", "public function Filter_Not() {\r\n\t\treturn array(\r\n\t\t\t'where' => '0'\r\n\t\t);\r\n\t}", "public function hasNoLimit() {\n return $this->_has(1);\n }", "function twig_length_filter(Twig_Environment $env, $thing)\n {\n return is_scalar($thing) ? strlen($thing) : count($thing);\n }", "public function get_all_godzina_better(){\n\t\t$data=array();\n\t\t$query = $this->db->query('select * from godzina');\t\n\t\tforeach($query->result() as $row){\n\t\t\t\tarray_push($data,array(\n\t\t\t\t'id_godzina'=>$row->id_godzina,\n\t\t\t\t'godzina'=>substr($row->godzina,0,5)\n\t\t\t\t));\n\t\t\t\n\t\t}\n\t\treturn $data;\n\t}", "protected function _prepareSubset() {}", "function get_playlists_no_more_cb26()\r\n\t{\r\n\t\tglobal $db;\r\n\t\t$result = $db->select(tbl($this->playlist_tbl),\"*\",\" playlist_type='\".$this->type.\"' AND userid='\".userid().\"'\");\r\n\t\t\r\n\t\tif(count($result)>0)\r\n\t\t\treturn $result;\r\n\t\treturn false;\r\n\t}", "public function filterByMinimumLength($value)\n {\n $this->query->andWhere($this->query->expr()->andX()\n ->add($this->query->expr()->isNotNull('b.length'))\n ->add($this->query->expr()->gte('b.length', $this->query->createNamedParameter($value)))\n );\n }", "protected function querySuggestions()\n {\n $query = DB::table('rooms')->select('rooms.id','rooms.number','rooms.price','houses.name','houses.id as house_id','houses.description_house','houses.description_zone','neighborhoods.name as neighborhood');\n $query->join('houses','houses.id','=','rooms.house_id');\n $query->where('houses.status','=',1);\n $query->WhereNotIn('rooms.id',[$this->ROOM_ID_CURRENT]);\n $query->join('neighborhoods','neighborhoods.id','=','houses.neighborhood_id');\n return $query;\n }", "private function _getLeftOverGameLetters()\n\t{\n\t\t$placed_letters = new LetterCollection(implode($this->PlacedTile->find('list', array(\n\t\t\t'fields' => array(\n\t\t\t\t'PlacedTile.letter',\n\t\t\t\t'PlacedTile.letter',\n\t\t\t),\n\t\t\t'conditions' => array(\n\t\t\t\t'PlacedTile.game_id' => $this->id,\n\t\t\t),\n\t\t))));\n\t\t$rack_letters = $this->Player->getGameRackLetters($this->id);\n\t\t\n\t\t$leftover = LetterCollection::getScrabbleCollection();\n\t\t$leftover = $leftover->removeCollection($placed_letters);\n\t\t$leftover = $leftover->removeCollection($rack_letters);\n\t\treturn $leftover;\n\t}", "public function getKidsNovelties( ) {\n\t\t$novelties = Product::where('ebook', 0)\n\t\t ->orderBy('created_at', 'desc')\n\t\t\t\t\t\t\t->where('category_id', 3)\n\t\t ->with('image')\n\t\t\t\t\t\t\t->where( 'amount', '>', 0 )\n\t\t\t\t\t\t\t->get();\n\t\treturn $novelties;\n\t}", "public function hasLength(){\n return $this->_has(2);\n }", "public function getAllPossibleMorphologys()\n {\n $sb = $this->skeletalbone()->first();\n $sb_morphologys = $sb->morphologys;\n $morphologys_list = null;\n if ($sb_morphologys->count()) {\n $query = SkeletalElement::whereIn(\"sb_id\", $sb_morphologys->pluck('id'))\n ->where(\"side\", \"!=\", $this->getOppositeSide()) // not opposite side\n ->where(\"id\", \"!=\", $this->id); // not the same se (for bones that can morphology to themselves such as unseriated cervical vertebra)\n $morphologys_list = $query->latest()->get();\n }\n return $morphologys_list;\n }", "private function getWinningBids()\n {\n //if the number of bids is less than max they're all winners\n if ($this->numBids < $this->maxNumber) {\n return $this->bids;\n } else {\n return array_slice($this->bids,0,$this->maxNumber);\n }\n }", "function mt_filter_excerpt_length($length) {\n\treturn 20;\n }", "function prune ()\n {\n $this->A = array_prune ($this->A);\n return $this;\n }", "public function keepOnlyItems($count = 10)\n {\n if($count < count($this->items))\n {\n $this->items = array_slice($this->items, 0, $count);\n }\n \n return $this;\n }", "public function add_freeform($length = \\null)\n {\n }", "public function length()\r\n {\r\n return count($this->holdings);\r\n }", "function get_available_parts_nochild($part_id, $version, $relationID = \"NA\") {\n // Database connection \n $conn = database_connection();\n global $GEB_KIND_OF_PART_ID;\n global $VFAT2_TO_GEB;\n global $OPTOHYBRID_TO_GEB;\n\n // as GEB has 25 childs not only 1 ( 24 VFAT & 1 OptoHybrid ) we need to FILTER GEBs and create a specific Query for it\n if ($part_id == $GEB_KIND_OF_PART_ID) {\n // Filtering GEBs that has less than 24 VFATS childs\n if ($relationID != \"NA\" && $relationID == $VFAT2_TO_GEB) {\n $sql = \"SELECT PART_ID , SERIAL_NUMBER FROM CMS_GEM_CORE_CONSTRUCT.PARTS P1\n WHERE KIND_OF_PART_ID='\" . $part_id . \"' AND SERIAL_NUMBER LIKE '%\" . $version . \"%' AND IS_RECORD_DELETED = 'F'\n AND (select COUNT(PART_PARENT_ID) from CMS_GEM_CORE_CONSTRUCT.PHYSICAL_PARTS_TREE WHERE PART_PARENT_ID = P1.PART_ID AND RELATIONSHIP_ID ='\".$relationID.\"' ) < 24\n ORDER BY SUBSTR(SERIAL_NUMBER, -4) asc\";\n }\n // Filtering GEBs that has less than 1 OptoHybrid Child\n if ($relationID != \"NA\" && $relationID == $OPTOHYBRID_TO_GEB) {\n $sql = \"SELECT PART_ID , SERIAL_NUMBER FROM CMS_GEM_CORE_CONSTRUCT.PARTS P1\n WHERE KIND_OF_PART_ID='\" . $part_id . \"' AND SERIAL_NUMBER LIKE '%\" . $version . \"%' AND IS_RECORD_DELETED = 'F'\n AND (select COUNT(PART_PARENT_ID) from CMS_GEM_CORE_CONSTRUCT.PHYSICAL_PARTS_TREE WHERE PART_PARENT_ID = P1.PART_ID AND RELATIONSHIP_ID ='\".$relationID.\"' ) < 1\n ORDER BY SUBSTR(SERIAL_NUMBER, -4) asc\";\n }\n } \n // Other part Like Readout ( has only one GEB child ) so check will be only on confirming that \n // there is no current entry for this Readout in Tree table as a parent (i.e: can attatch child to it)\n else { \n $sql = \"SELECT SERIAL_NUMBER FROM CMS_GEM_CORE_CONSTRUCT.PARTS WHERE KIND_OF_PART_ID='\" . $part_id . \"' AND IS_RECORD_DELETED = 'F' AND SERIAL_NUMBER LIKE '%\" . $version . \"%' AND PART_ID not in (select PART_PARENT_ID from CMS_GEM_CORE_CONSTRUCT.PHYSICAL_PARTS_TREE) ORDER BY SUBSTR(SERIAL_NUMBER, -4) asc\"; //select data or insert data \n }\n\n $query = oci_parse($conn, $sql);\n //Oci_bind_by_name($query,':bind_name',$bind_para); //if needed\n $arr = oci_execute($query);\n\n $result_arr = array();\n while ($row = oci_fetch_array($query, OCI_ASSOC + OCI_RETURN_NULLS)) {\n echo '<li><a href=\"#\" class=\"availablepart\" >' . $row['SERIAL_NUMBER'] . '</a></li>';\n\n// $temp['man_id']= $row['MANUFACTURER_ID'];\n// $temp['man_name']= $row['MANUFACTURER_NAME'];\n// $result_arr[] = $temp;\n }\n return 1;\n}", "public function clearBangunanLongitudinals()\n {\n $this->collBangunanLongitudinals = null; // important to set this to null since that means it is uninitialized\n $this->collBangunanLongitudinalsPartial = null;\n\n return $this;\n }", "private function buildHaving(): void {\r\n\r\n if(count($this -> having) > 0) {\r\n\r\n $this -> query[] = 'HAVING';\r\n $this -> query[] = sprintf('(%s)', implode(' AND ', $this -> having));\r\n }\r\n }", "public function animalBreedingLimitation() {\n return $this->animal->breeding_limitation;\n }", "public function GetWasteBasket() {\n return false;\n }", "public function getMinBeds();", "public function getMissingWidth() {}", "public function getMissingWidth() {}", "public function getMissingWidth() {}", "public function getMissingWidth() {}", "public function getMissingWidth() {}", "public function testFilterBedrooms()\n {\n $this->visit('/properties')\n ->select('#bedrooms', 1)\n ->press('Update results')\n ->see('Shack in the desert');\n $this->notSee('Five bedroom mill conversion');\n $this->notSee('Victorian townhouse');\n }", "function getFilterRecordUnalloc($limit,$start,$column_name,$order,$pofno,$dor,$jobtitle,$company,$location,$grade,$salary,$posstatus,$consul){\n\t \n\t $sql = \"SELECT *,SUM(stage='288') As sum1, SUM(stage='289') As sum2, SUM(stage='291') As sum3, SUM(stage='293') As sum4, COUNT(DISTINCT cand_id) As count2, synonym.parentname As compa, a1.parentname As loca FROM pof LEFT JOIN pof_candidates ON pof.pof_id=pof_candidates.pofid LEFT JOIN synonym ON synonym.s_id=pof.client_id LEFT JOIN synonym As a1 ON a1.s_id=pof.location LEFT JOIN pof_cons ON pof.pof_id=pof_cons.pos_id WHERE pof.jobtitle LIKE '%\".$jobtitle.\"%' AND synonym.parentname LIKE '%\".$company.\"%' AND pof.grade LIKE '%\".$grade.\"%' AND pof.sal_t LIKE '%\".$salary.\"%' AND pof.pos_status LIKE '%\".$posstatus.\"%' AND pof_cons.consuls LIKE '%\".$consul.\"%' GROUP BY pof.pof_id ;\";\n\t \t\n\t $q = $this->db->query($sql);\n\t\tif($q->num_rows() > 0)\n\t\t{\n\t\t\tforeach($q->result() as $row)\n\t\t\t{\n\t\t\t\t$data[] = $row;\n\t\t\t}\n\t\t\treturn $data;\n\t\t}\n\t\t\n\t}", "public function getWoonplaats()\n {\n return $this->woonplaats;\n }", "private function getNeedlesResult(): array\n {\n $result = [];\n $end = $this->config->limit + $this->offset;\n for ($key = $this->offset; $key < $end; $key++) {\n $result[] = self::$needles[$key];\n }\n return $result;\n }", "public function clearMontacargasBateriass()\n {\n $this->collMontacargasBateriass = null; // important to set this to null since that means it is uninitialized\n $this->collMontacargasBateriassPartial = null;\n\n return $this;\n }", "function blend_mltomg( $ml_of_extracts_only_in_mix, $size_of_mix_in_gallons, $number_of_doses = 1, $method = 'drop(s)') {\n\n $teaspoon = 4.92892; // teaspoon\n $drop = .04; // drop\n\n if( $method == 'teaspoon(s)' )\n $unit = $number_of_doses * $teaspoon;\n else // make drops\n $unit = $number_of_doses * $drop;\n\n $grams_per_mix = 0.1194736842 * $ml_of_extracts_only_in_mix;\n $num_of_doses_per_mix = ( $size_of_mix_in_gallons * 3800 ) / $unit;\n $grams_per_dose = round( ( $grams_per_mix / $num_of_doses_per_mix ) * 1000, 3 );\n\n return $grams_per_dose;\n}", "public function toShorter($length)\n\t{\n\t\t$this->setMethod('to_Shorter');\n\t\t$this->setLength($length);\n\t\treturn $this;\n\t}", "protected function getEmptyFilter()\n {\n return array('filters' => array());\n }", "public function filterByMaximumLength($value)\n {\n $this->query->andWhere($this->query->expr()->andX()\n ->add($this->query->expr()->isNotNull('b.length'))\n ->add($this->query->expr()->lte('b.length', $this->query->createNamedParameter($value)))\n );\n }", "public function removeEmptyPairs(): static\n {\n return $this->removeEmptyQueryPairs();\n }", "function dry() {\n\t\treturn !$this->item;\n\t}", "public function not_having($having) \n {\n $this->sql .= \" NOT HAVING \". $this->clean($having);\n return $this;\n }", "public function getHiddens()\n {\n return $this->filterDatas(function ($data) {\n return isset($data->hidden) && $data->hidden;\n });\n }", "public function allWithoutTree()\n {\n return HandbookCategory::all();\n }", "public function clearVldBangunans()\n {\n $this->collVldBangunans = null; // important to set this to null since that means it is uninitialized\n $this->collVldBangunansPartial = null;\n\n return $this;\n }", "public function allBoons() {\n\n // retrieve all Boons\n $boonModel = new Boon();\n $boonList = $boonModel->findAllBoons(); // array of objects\n\n // Send the datas to the view\n $this->show('boons', [\n 'boonList' => $boonList\n ]);\n }", "public function skip($_count=1) {\n\t\tif ($this->dry()) {\n\t\t\ttrigger_error(self::TEXT_AxonEmpty);\n\t\t\treturn;\n\t\t}\n\t\t$this->load($this->criteria,$this->order,$this->offset+$_count);\n\t}", "public function getIgnoreEmpty()\n {\n return isset($this->ignore_empty) ? $this->ignore_empty : false;\n }", "public function getIncompleteTraining($user_id, $where = false, $having = \"countTrainer = 0 OR countPerson = 0\") {\n\n\t\t$select = $this->select()\n\t\t->from($this->_name, array('*'))\n\t\t->setIntegrityCheck(false)\n\t// ->join(array('c' => 'course'), \"$this->_name.training_title_option_id = c.id\",'training_title_option_id')\n\t\t->join(array('t' => 'training_title_option'), \"training_title_option_id = t.id\",array('training_title' => 'training_title_phrase'))\n\t\t->joinLeft(array('tl' => 'training_location'), \"$this->_name.training_location_id = tl.id\",'training_location_name')\n\t\t->joinLeft(array('to' => 'training_organizer_option'), \"$this->_name.training_organizer_option_id = to.id\", array('training_organizer_phrase'))\n\t\t->joinLeft(array('tt' => 'training_to_trainer'), \"$this->_name.id = tt.training_id\", array('countTrainer' => 'COUNT(tt.trainer_id)'))\n\t\t->joinLeft(array('pt' => 'person_to_training'), \"$this->_name.id = pt.training_id\", array('countPerson' => 'COUNT(pt.person_id)'))\n\t\t->joinLeft(array('bc' => 'person_to_training_budget_option'), \"bc.id = pt.budget_code_option_id\", array('budget_code' => 'GROUP_CONCAT(DISTINCT budget_code_phrase)'))\n\t\t->joinLeft(array('uc' => 'user'), \"$this->_name.created_by = uc.id\", array('creator' =>\"CASE WHEN uc.id IS NULL THEN 'system' ELSE CONCAT(uc.first_name, ' ', uc.last_name) END \"))\n\t\t->group(\"$this->_name.id\")\n\t//\t->where(\"($this->_name.modified_by = $user_id OR $this->_name.created_by = $user_id) AND $this->_name.is_deleted = 0\")\n\t\t->where(\"$this->_name.is_deleted = 0 AND has_known_participants = 1 \" . (($where) ? \" AND $where\" : ''))\n\t\t->order(\"$this->_name.training_start_date DESC\");\n\n\t\tif($having) {\n\t\t\t$select->having($having);\n\t\t}\n\t\treturn $this->fetchAll($select);\n\t}", "protected function billable()\n {\n return $this->builder->where('billable', true);\n }", "public function toLonger($length)\n\t{\n\t\t$this->setMethod('to_Longer');\n\t\t$this->setLength($length);\n\t\treturn $this;\n\t}", "public function cheapestOptions()\n {\n return (isset($this->quotes) && (is_array($this->quotes))) ? array_slice($this->quotes, 0, $this->totalCarriers) : [];\n }", "protected function _minLength()\n {\n $limit = $this->getMinLength();\n if ($limit !== null) {\n $i = 0;\n $_tagsArray = array();\n foreach ($this->_tagsArray as $key => $value) {\n if (strlen($value['tag']) >= $limit) {\n $_tagsArray[$value['tag']] = $value;\n }\n $i++;\n }\n $this->_tagsArray = array();\n $this->_tagsArray = $_tagsArray;\n }\n return $this->_tagsArray;\n }", "public function getEmpty();", "public function constructionBuildings()\n {\n $buildings = new Collection();\n\n if ($this->building_id) {\n return $buildings;\n }\n\n $modifiers = [\n 'level' => 1,\n 'defense_bonus' => $this->planet->defense_bonus,\n 'construction_time_bonus' => $this->planet->construction_time_bonus,\n 'construction_cost_penalty' => $this->planet->user->penalty_rate,\n ];\n\n if ($this->construction) {\n return $buildings->add(\n $this->construction->building->applyModifiers($modifiers)\n );\n }\n\n $buildings = Building::defaultOrder()->whereIn(\n 'parent_id',\n $this->planet->findNotEmptyGrids()->pluck('building_id')\n );\n\n if ($this->type == static::TYPE_RESOURCE) {\n $buildings->where('type', Building::TYPE_MINER);\n } else {\n $buildings->whereNotIn('type', [\n Building::TYPE_CENTRAL, Building::TYPE_MINER,\n ]);\n }\n\n return $buildings->get()\n ->filter(function (Building $building) {\n if ($building->limit) {\n $count = $this->planet->grids()\n ->where('building_id', $building->id)\n ->count();\n\n $count += $this->planet->constructions()\n ->where('constructions.building_id', $building->id)\n ->count();\n\n return $building->limit > $count;\n }\n\n return true;\n })\n ->transform(function (Building $building) use ($modifiers) {\n return $building->applyModifiers($modifiers);\n })->values();\n }", "protected function compileHavings(Builder $builder, $havings): string\n {\n $sql = implode(' ', array_map([$this, 'compileHaving'], $havings));\n\n return 'having '.$this->removeStatementBoolean($sql);\n }", "public function get_bagsize()\n {\n $this->db->select('s.*,eb.bag_type,ebl.bag_layout');\n $this->db->from($this->table.' s');\n $this->db->join('ecom_baglayout as ebl','s.bag_layout = ebl.id','left');\n $this->db->join('ecom_bagtype as eb','s.bag_type = eb.id','left');\n $this->db->order_by('bag_size','asc');\n $this->db->where(array('s.status' => 1));\n return $this->db->get()->result();\n }", "public function all($type = null)\n {\n return array_filter(\n $this->bag,\n /** @var BuilderInterface $builder */\n function (BuilderInterface $builder) use ($type) {\n return $type === null || $builder->getType() == $type;\n }\n );\n }", "public static function filler(...$length)\n {\n $length = Arr::wrap($length);\n return static::make('filler', array_sum($length))->ignore();\n }", "public function getGramsOfCarbs()\n\t{\n\t\treturn $this->carbohydrates;\n\t}", "function BuyableCalculatedExcludedFrom(){\n\t\tif($this->owner InstanceOf ProductVariation) {\n\t\t\tif($product = $this->owner->Product()) {\n\t\t\t\treturn $product->ExcludedFrom();\n\t\t\t}\n\t\t}\n\t\treturn $this->owner->ExcludedFrom();\n\t}", "public function hasIgnoredefense(){\r\n return $this->_has(34);\r\n }", "public function getMissingDistrict() {\n $findspots = $this->getAdapter();\n $select = $findspots->select()\n ->from($this->_name,array('id','county','parish'))\n ->where('county IS NOT NULL')\n ->where('parish IS NOT NULL')\n ->where('district IS NULL')\n ->limit(5000);\n return $findspots->fetchAll($select);\n }", "public function getBobotKriteria()\n {\n $query =$this->db->query(\"SELECT * FROM tb_kriteria ORDER BY id_kriteria\");\n \n $criteria = array();\n foreach ($query->result_array() as $row) {\n \n $criteria[$row['id_kriteria']] = $row['weight'];\n\n }\n \n return $criteria;\n }" ]
[ "0.7014429", "0.5278815", "0.5187863", "0.50470454", "0.50388557", "0.4918369", "0.48931602", "0.48479065", "0.48432633", "0.47818652", "0.47742674", "0.47298694", "0.47029838", "0.46926188", "0.4689669", "0.46764213", "0.46739402", "0.46683168", "0.4661202", "0.46375296", "0.46343267", "0.46323434", "0.46286467", "0.46187165", "0.46152195", "0.460784", "0.4603868", "0.45906562", "0.45706525", "0.4570279", "0.4512675", "0.45068282", "0.45046526", "0.45027202", "0.44924524", "0.44551647", "0.44520265", "0.4451578", "0.44455543", "0.44284073", "0.44213068", "0.44175687", "0.44136024", "0.441156", "0.4409345", "0.44088256", "0.44061312", "0.43912512", "0.43891117", "0.4385128", "0.4383885", "0.43661964", "0.43604994", "0.4360342", "0.43588874", "0.43583304", "0.43450987", "0.4336915", "0.43349516", "0.4334175", "0.43271935", "0.43253568", "0.43253568", "0.43253568", "0.43253568", "0.43253568", "0.43236402", "0.4321152", "0.43041396", "0.4291106", "0.42900273", "0.4288262", "0.42880768", "0.42813385", "0.4281188", "0.42772177", "0.4275269", "0.42571846", "0.4255094", "0.42533624", "0.42471173", "0.42439565", "0.42424205", "0.424136", "0.42363045", "0.42346647", "0.42264462", "0.4214178", "0.42121303", "0.4212094", "0.42109835", "0.42060715", "0.41965014", "0.41957366", "0.41951373", "0.4193337", "0.41914287", "0.4189304", "0.41845635", "0.41845208" ]
0.69222325
1
Include in the results only the boats with a length.
public function filterByWithLength() { $this->query->andWhere($this->query->expr()->isNotNull('b.length')); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function filterByWithoutLength()\n {\n $this->query->andWhere($this->query->expr()->isNull('b.length'));\n }", "function mt_filter_excerpt_length($length) {\n\treturn 20;\n }", "public function hasLength(){\n return $this->_has(2);\n }", "public function setLength($length)\n {\n $this->length = $length;\n return $this;\n }", "public function setLength($length)\n {\n $this->length = $length;\n return $this;\n }", "public function setLength($length)\n\t\t{\n\t\t\t$this->length = $length;\n\t\t\treturn $this;\n\t\t}", "public function toShorter($length)\n\t{\n\t\t$this->setMethod('to_Shorter');\n\t\t$this->setLength($length);\n\t\treturn $this;\n\t}", "public function setLength($length)\n {\n $this->length = $length;\n\n return $this;\n }", "function medigroup_mikado_excerpt_length($length) {\n\n if(medigroup_mikado_options()->getOptionValue('number_of_chars') !== '') {\n return esc_attr(medigroup_mikado_options()->getOptionValue('number_of_chars'));\n } else {\n return 45;\n }\n }", "public function setLength($length)\n {\n $this->Length = $length;\n return $this;\n }", "public function limit($length)\n {\n $this->randomStringLength = $length;\n return $this;\n }", "public function filterByMaximumLength($value)\n {\n $this->query->andWhere($this->query->expr()->andX()\n ->add($this->query->expr()->isNotNull('b.length'))\n ->add($this->query->expr()->lte('b.length', $this->query->createNamedParameter($value)))\n );\n }", "public function toLonger($length)\n\t{\n\t\t$this->setMethod('to_Longer');\n\t\t$this->setLength($length);\n\t\treturn $this;\n\t}", "function voyage_mikado_excerpt_length($length) {\n\n if(voyage_mikado_options()->getOptionValue('number_of_chars') !== '') {\n return esc_attr(voyage_mikado_options()->getOptionValue('number_of_chars'));\n } else {\n return 45;\n }\n }", "function filterRecipes(){\r\n global $allRecipes;\r\n global $allr_array;\r\n global $filteredRecipes;\r\n $matched = false;\r\n foreach ($allRecipes as $recipe){\r\n foreach ($allr_array as $allergen){\r\n if (substr_count($recipe[3], $allergen) <= 0){\r\n $matched = false;\r\n break;\r\n }\r\n $matched = true;\r\n }\r\n if ($matched){\r\n $filteredRecipes[] = $recipe;\r\n $matched = false;\r\n }\r\n $_SESSION['db_result'] = $filteredRecipes;\r\n $_SESSION['total_rows'] = sizeof($filteredRecipes);\r\n }\r\n}", "public function filterByMinimumLength($value)\n {\n $this->query->andWhere($this->query->expr()->andX()\n ->add($this->query->expr()->isNotNull('b.length'))\n ->add($this->query->expr()->gte('b.length', $this->query->createNamedParameter($value)))\n );\n }", "protected function billed()\n {\n return $this->builder->where('billed', true);\n }", "function twig_length_filter(Twig_Environment $env, $thing)\n {\n return is_scalar($thing) ? strlen($thing) : count($thing);\n }", "public function LimitFilterResultLength($filter, $length)\r\n\t{\r\n\t\treturn $filter . \" limit 0,$length\";\r\n\t}", "public function excerpt($length = 300);", "public function length()\r\n {\r\n return count($this->holdings);\r\n }", "function isacustom_excerpt_length($length) {\n global $post;\n if ($post->post_type == 'post')\n return 48;\n else if ($post->post_type == 'clases_yoga')\n return 24;\n else\n return 48;\n\t}", "function mobject_excerpt_length( $length ) {\n\tif ( is_admin() ) {\n\t\treturn $length;\n\t}\n\t$display_options = get_customizer_settings()[ WPM_PREFIX . 'collection_style' ];\n\tif ( $display_options['excerpt_max_length'] ) {\n\t\treturn $display_options['excerpt_max_length'];\n\t}\n\treturn $length;\n}", "public function length($length = null)\n {\n // TODO: Implement length() method.\n }", "function uwmadison_excerpt_length( $length ) {\n\t\treturn 40;\n\t}", "public function excerpt($length)\n {\n return \\Str::limit(strip_tags($this->bodyHtml()), $length, '...');\n }", "public function add_freeform($length = \\null)\n {\n }", "public static function filler(...$length)\n {\n $length = Arr::wrap($length);\n return static::make('filler', array_sum($length))->ignore();\n }", "public function setLength($length);", "function set_length($length) {\n $this->length = $length;\n }", "public function excerpt_length($length) {\n\t\tglobal $wpv_loop_vars;\n\n\t\tif(isset($wpv_loop_vars) && $wpv_loop_vars['news'])\n\t\t\treturn 15;\n\n\t\treturn $length;\n\t}", "abstract public function getLength();", "public static function size_filter($filtered_posts = array())\n {\n // OMG - NO! The price filter in core WC selects ALL products that match the\n // price range, then uses the list to filter out the products selected in \n // the main loop. Let's select everything - twice - then throw half of it away.\n // We will give it a go though...\n\n global $wpdb;\n\n // All three dimensions must be provided to filter at all, though they don't all have\n // to be set.\n // TODO: we don't really need this limitation.\n\n if (isset($_GET['length']) && isset($_GET['width']) && isset($_GET['height'])) {\n $length = floatval($_GET['length']);\n $width = floatval($_GET['width']);\n $height = floatval($_GET['height']);\n\n $query_join_sql = array();\n $meta_value_index = 3;\n\n $query_select_sql = 'SELECT DISTINCT ID, post_parent, post_type FROM %1$s';\n $query_where_sql = '\n WHERE post_type IN ( \"product\", \"product_variation\" )\n AND post_status = \"publish\"\n ';\n\n // For each of the three dimensions, do a join to narrow down the search.\n\n foreach(array('_length' => $length, '_width' => $width, '_height' => $height) as $meta_key => $meta_value) {\n if (!empty($meta_value)) {\n $query_join_sql[] = '\n INNER JOIN %2$s AS meta_data'.$meta_value_index.'\n ON ID = meta_data'.$meta_value_index.'.post_id\n AND meta_data'.$meta_value_index.'.meta_key IN (\"' . implode( '\",\"', apply_filters( 'woocommerce_length_filter_meta_keys', array( $meta_key ) ) ) . '\")\n AND meta_data'.$meta_value_index.'.meta_value = %'.$meta_value_index.'$s\n ';\n }\n $meta_value_index++;\n }\n\n // Only perform the select if there is at least one dimension.\n\n if (!empty($query_join_sql)) {\n $query_sql = $query_select_sql . implode(' ', $query_join_sql) . $query_where_sql;\n\n $matched_products_query = apply_filters(\n 'woocommerce_size_filter_results',\n $wpdb->get_results(\n $wpdb->prepare(\n $query_sql,\n $wpdb->posts,\n $wpdb->postmeta,\n $length,\n $width,\n $height\n ),\n OBJECT_K\n ),\n $length,\n $width,\n $height\n );\n\n $matched_products = array();\n if ( $matched_products_query ) {\n foreach ( $matched_products_query as $product ) {\n if ( $product->post_type == 'product' ) {\n $matched_products[] = $product->ID;\n }\n if ( $product->post_parent > 0 && ! in_array( $product->post_parent, $matched_products ) ) {\n $matched_products[] = $product->post_parent;\n }\n }\n }\n\n // Filter the id's\n if ( 0 === sizeof( $filtered_posts ) ) {\n $filtered_posts = $matched_products;\n } else {\n $filtered_posts = array_intersect( $filtered_posts, $matched_products );\n }\n }\n }\n\n return (array)$filtered_posts;\n }", "function twig_length_filter(Twig_Environment $env, $thing)\n {\n return is_scalar($thing) ? mb_strlen($thing, $env->getCharset()) : count($thing);\n }", "public function length($length, $error) {\n if ($this->_exist) {\n array_push($this->_constraints, ['type' => self::LENGTH, 'value' => $length, 'message' => $error]);\n }\n\n return $this;\n }", "public function getNumberOfCombinedBathrooms()\n {\n if ($this->combined_bathroom == 0) {\n return '';\n }\n\n return Yii::t('app',\n '{n, plural, =1{# совмещенный санузел} =2{# совмещенных санузла} =3{# совмещенных санузла} =4{# совмещенных санузла} other{# совмещенных санузлов}}',\n [\n 'n' => (int)$this->combined_bathroom,\n ]);\n }", "public function getNumberOfBathrooms()\n {\n if ((int)($this->combined_bathroom + $this->separate_bathroom) == 0) {\n return '';\n }\n\n return Yii::t('app',\n '{n, plural, =1{# ванная комната} =2{# ванные комнаты} =3{# ванные комнаты} =4{# ванные комнаты} other{# ванныx комнат}}',\n [\n 'n' => (int)($this->combined_bathroom + $this->separate_bathroom),\n ]);\n }", "function funcs_cutLength($string, $length, $word_length = null,$act_length = null){\n\t$string = (!is_null($string))?trim($string):'';\n\t//do not check the size of the string if we already know it\n\tif (is_null($act_length))$act_length=strlen($string);\n\tif (!is_null($word_length) && !empty($string)){\n\t\t//in the future use this instead of calling this whole function\n\t\t$string = wordwrap($string,$word_length,\"\\n\",1);\n\t}\n\tif (!is_null($length) && $act_length>$length && $length>4){\n\t\t$string = substr($string,0,$length-3).'...';\n\t}\n\treturn $string;\n}", "public function setBaseLength($baseLength) {\n $this->baseLength = $baseLength;\n return $this;\n }", "function setMinLength($length) {\n\n $this->field['minlength'] = $length;\n return $this;\n\n }", "private static function _blankWeightArray($len) {\n\t\t$out = array();\n\t\tfor($i = 0; $i < $len; $i++)\n\t\t\t$out[] = 50;\n\t\treturn $out;\n\t}", "public function build($length, $charset);", "public function __construct($length)\n {\n $this->length = $length;\n }", "public function processLengths() {}", "function be_excerpt_length( $length ) { \n\t\n\t$length = '40'; \n\t\n\treturn $length;\n\t \n\t}", "public function getSample($length)\n {\n $reservoir = [];\n $i = 0;\n\n foreach ($this->iterator as $item) {\n if ($i < $length) {\n $reservoir[$i] = $item;\n } else {\n $random = (int)mt_rand(0, $i);\n if ($random < $length) {\n $reservoir[$random] = $item;\n }\n }\n\n $i++;\n }\n return implode('', $reservoir);\n }", "public function getTotalLength();", "public function getTotalLength();", "public function getLength();", "public function getValidCombinedWords($wordLength)\n {\n $this->loadList($wordLength);\n $validWords = array();\n foreach ($this->getWordList() as $length => $words) {\n if ($length > $wordLength - $length) {\n break;\n }\n\n $validWords += $this->createValidWordsForList(\n $words, $wordLength - $length);\n }\n\n return $validWords;\n }", "public function length();", "public function length();", "function get_billed_parts() {\n\t\t// exit;\n\t\t$this->job_card_model->_table = 'view_service_billing_parts';\n\n\t\t$where['jobcard_group'] = $this->input->get('jobcard_group');\n\n\t\t$rows = $this->job_card_model->find_all($where);\n\n\t\tforeach ($rows as $key => $value) {\n\t\t\t$rows[$key]->has_billed = 1;\n\t\t}\n\n\t\t$total = count($rows);\n\t\techo json_encode(array('total' => $total, 'rows' => $rows));\n\t}", "public static function ignored($key, $length)\n {\n return static::make('ignored', $length)->ignore();\n }", "public function getBuildingsWithBudgets()\n {\n $buildings_budgets = $this->find('all', [\n 'contain' => ['Budgets' =>\n function ($q) {\n return $q\n ->select(['id', 'building_id']);\n }],\n 'conditions' => ['Buildings.softland_id IS NOT NULL', 'Buildings.omit' => false]\n ]);\n $buildingsWithBudget = array();\n foreach ($buildings_budgets as $buildings_budget) {\n if (!empty($buildings_budget['budget'])) {\n $buildingsWithBudget[$buildings_budget['softland_id']]['budget_id'] = $buildings_budget['budget']['id'];\n $buildingsWithBudget[$buildings_budget['softland_id']]['active'] = $buildings_budget['active'];\n }\n }\n return $buildingsWithBudget;\n }", "function ClumpFinding($genome, $kmer, $Length, $times)\n{\n\t$kmers = explode(' ', FrequentWords($genome, $kmer));\n\tif ($kmers)\n\t{\n\t\t$solution = array();\n\t\t// Check each one of them\n\t\t$_strlen = strlen($genome);\n\t\t//ddd($kmers);\n\t\tforeach ($kmers as $_item)\n\t\t{\n\t\t\t//echo strpos($genome, $_item).'<br>';\n\t\t\t//echo $_strlen.'<br>';\n\t\t\t//die();\n\t\t\t// Is it a solution?\n\t\t\tfor ($i = strpos($genome, $_item); $i <= $_strlen; $i++)\n\t\t\t{\n\t\t\t\t// echo $i.'<br>';\n\t\t\t\t//die('ffg');\n\t\t\t\t$_text = substr($genome, $i, $Length);\n\t\t\t\t//echo $_text.'<br>';\n\t\t\t\tif (PatternCount($_text, $_item) >= $times)\n\t\t\t\t{\n\t\t\t\t\t$solution[] = $_item;\n\t\t\t\t\t//ddd($solution);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn implode(' ', $solution);\n\t}\n\treturn '';\n}", "function studiare_custom_excerpt_length( $length ) {\n\treturn 30;\n}", "public function loadList($length)\n {\n $fileData = file($this->getWordListFile(), FILE_IGNORE_NEW_LINES);\n foreach ($fileData as $word) {\n if (strlen($word) < $length && !empty($word)) {\n $this->wordList[strlen($word)][$word] = true;\n } elseif (strlen($word) == $length) {\n $this->validWords[$word] = true;\n }\n }\n }", "public function setMaxLength($length)\n {\n $this->max_length = $length;\n return $this;\n }", "public function expand(int $len): bool {}", "public function get_bagsize()\n {\n $this->db->select('s.*,eb.bag_type,ebl.bag_layout');\n $this->db->from($this->table.' s');\n $this->db->join('ecom_baglayout as ebl','s.bag_layout = ebl.id','left');\n $this->db->join('ecom_bagtype as eb','s.bag_type = eb.id','left');\n $this->db->order_by('bag_size','asc');\n $this->db->where(array('s.status' => 1));\n return $this->db->get()->result();\n }", "function cheffism_custom_excerpt_length( $length ) {\n return 50;\n}", "public function setLength($length) {\r\n $this->length = $length;\r\n }", "function gallo_excerpt( $length ) {\n\treturn 30;\n}", "function rocked_excerpt_length( $length ) {\n\t$excerpt = get_theme_mod('exc_lenght', '55');\n\treturn $excerpt;\n}", "public function setCompleteLength($var)\n {\n GPBUtil::checkInt64($var);\n $this->complete_length = $var;\n\n return $this;\n }", "function setBlockLength($length)\n {\n return;\n }", "public function setLength($length)\n {\n $this->length = $length;\n }", "public function setLength($length)\n {\n $this->length = $length;\n }", "static public function change_excerpt_length($length)\n\t{\n\t\treturn 12;\n\t}", "public function getWearBreakdown()\n {\n $results = array();\n $wear_types = $this->createEntity('Wear')->findAll();\n foreach ($wear_types as $wear)\n {\n $results[$wear->id] = array();\n }\n $select = $this->createEntity('DeltagereWear')->getSelect();\n $select->setFrom('wearpriser')->\n setTableWhere('wearpriser.id','deltagere_wear.wearpris_id')->\n setGroupBy('wearpris_id')->\n setGroupBy('size')->\n setGroupBy('wear_id')->\n setField('wearpris_id')->\n setField('size')->\n setField('wear_id')->\n setField('SUM(antal) AS antal',false)->\n setOrder('wearpris_id','asc')->\n setOrder('size','asc');\n $DB = $this->db;\n if ($result = $DB->query($select))\n {\n foreach ($result as $row)\n {\n $results[$row['wearpris_id']][] = $row;\n }\n }\n return $results;\n \n }", "private function buildSize() {\n return '&size=' . $this->mappingOptions->size;\n }", "function tn_custom_excerpt_length( $length ) {\r\n\t\treturn 15;\r\n\t\t}", "public function getRows ($length='all') {\n\n // We return multiple results unless $length equals anything other than 'all'\n if($length!=='all') {\n\n // $length does not equal 'all' so return just the first record [0]\n return $this->_results[0];\n\n } else {\n\n // $length does equal 'all' so return all records\n return $this->_results;\n }\n\n\n }", "public function ignoreLengthErrors() {\n \n $this->options .= '-l ';\n \n return $this;\n }", "public function getLength() {}", "public function getLength() {}", "public function getLength() {}", "public function getLength() {}", "protected function compileHavings(Builder $builder, $havings): string\n {\n $sql = implode(' ', array_map([$this, 'compileHaving'], $havings));\n\n return 'having '.$this->removeStatementBoolean($sql);\n }", "public function getBorrowings();", "public function setLength($var)\n {\n GPBUtil::checkInt64($var);\n $this->length = $var;\n\n return $this;\n }", "public function constructionBuildings()\n {\n $buildings = new Collection();\n\n if ($this->building_id) {\n return $buildings;\n }\n\n $modifiers = [\n 'level' => 1,\n 'defense_bonus' => $this->planet->defense_bonus,\n 'construction_time_bonus' => $this->planet->construction_time_bonus,\n 'construction_cost_penalty' => $this->planet->user->penalty_rate,\n ];\n\n if ($this->construction) {\n return $buildings->add(\n $this->construction->building->applyModifiers($modifiers)\n );\n }\n\n $buildings = Building::defaultOrder()->whereIn(\n 'parent_id',\n $this->planet->findNotEmptyGrids()->pluck('building_id')\n );\n\n if ($this->type == static::TYPE_RESOURCE) {\n $buildings->where('type', Building::TYPE_MINER);\n } else {\n $buildings->whereNotIn('type', [\n Building::TYPE_CENTRAL, Building::TYPE_MINER,\n ]);\n }\n\n return $buildings->get()\n ->filter(function (Building $building) {\n if ($building->limit) {\n $count = $this->planet->grids()\n ->where('building_id', $building->id)\n ->count();\n\n $count += $this->planet->constructions()\n ->where('constructions.building_id', $building->id)\n ->count();\n\n return $building->limit > $count;\n }\n\n return true;\n })\n ->transform(function (Building $building) use ($modifiers) {\n return $building->applyModifiers($modifiers);\n })->values();\n }", "protected function filterShortWords()\n {\n $longer_words = array_filter($this->words, function ($e) {\n return strlen($e) > 2;\n });\n\n $this->words = array_values($longer_words);\n\n return $this;\n }", "public function excerpt($length = 600): string\n {\n return str_limit(strip_tags($this->description), $length);\n }", "public function goalies()\n {\n return $this->filter(function($stat) {\n return ($stat->saves > 0 || $stat->goals_allowed > 0) ||\n ($stat->player && property_exists($stat->player, 'position') && $stat->player->position == 'GOALIE');\n });\n }", "function lengthFilter($value)\n{\n return strlen($value) > 1;\n}", "function getBody_length($id){\n\t$crud = new CRUD();\n\t$crud->connect();\n\n\t$crud->sql(\"select * from pigs_tbl where pig_id='{$id}'\");\n\t$r = $crud->getResult();\n\tforeach($r as $rs){\n\t\treturn $rs['body_length'];\n\n\t}\n\t$crud->disconnect();\n}", "public function skip($length) {}", "public function getTotalLength() {}", "public function getTotalLength() {}", "public function truncate($length) {\n\t\t\tif ($this->info->type == 'string') {\n\t\t\t\t$strlen = strlen($this->value);\n\t\t\t\tif ($strlen > $length) {\n\t\t\t\t\t$value = substr($this->value, 0, $length);\n\t\t\t\t\t// TODO add logging\n\t\t\t\t\treturn static::factory($this->name, $value);\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn $this;\n\t\t}", "public static function setLength ($length){\n\t\tself::$_length = $length;\n\t}", "function setMaxLength($length) {\n\n $this->field['maxlength'] = $length;\n return $this;\n\n }", "private function buildHaving(): void {\r\n\r\n if(count($this -> having) > 0) {\r\n\r\n $this -> query[] = 'HAVING';\r\n $this -> query[] = sprintf('(%s)', implode(' AND ', $this -> having));\r\n }\r\n }", "function darksnow_excerpt_length( $length ) {\n\treturn 40;\n}", "public function set_bodylength($bodylength) {\n if ($bodylength < 0.5 || $bodylength > 2.75) {\n echo \"Bij deze lengte kunnen we geen BMI berekenen omdat het geen betekenis heeft\";\n } else {\n $this->bodylength = $bodylength;\n }\n }", "public static function getAllLands(){\n $db = Zend_Registry::get('dbAdapter');\n $query = $db->select()->distinct()\n ->from(array('o' => 'orte'), array(\n 'o.landid',\n 'o.land'\n ))\n ->where( \"LENGTH(o.land)>0\")\n ->order('o.land');\n return $db->fetchAll($query);\n }", "public function getAllBreeds(){\n\t\treturn $this->getBreedsFromGET(self::GET_STRING_ALL_BREEDS);\n\t}", "function leafbase_custom_excerpt_length( $length ) {\n\n return 40;\n\n}" ]
[ "0.5822987", "0.5197118", "0.51970273", "0.51788896", "0.51788896", "0.51726323", "0.5154719", "0.514515", "0.51411724", "0.51280284", "0.5121146", "0.51168287", "0.51014787", "0.50806004", "0.50761193", "0.5058604", "0.49362087", "0.4923544", "0.4884077", "0.48740026", "0.48296404", "0.48056284", "0.4799142", "0.47752863", "0.47698197", "0.47530428", "0.4731526", "0.4724549", "0.47167137", "0.47056425", "0.4692465", "0.468302", "0.46716845", "0.46686918", "0.4664231", "0.46633196", "0.4637979", "0.46209708", "0.46196806", "0.4618491", "0.46158946", "0.46122918", "0.45986587", "0.45938608", "0.45909572", "0.45875585", "0.4576079", "0.4576079", "0.45756122", "0.45747262", "0.45656955", "0.45656955", "0.45614615", "0.4554752", "0.4550772", "0.4541814", "0.45383433", "0.45381242", "0.45340768", "0.4532731", "0.45266566", "0.45258462", "0.4516247", "0.45159808", "0.45095918", "0.4504023", "0.4495685", "0.44949433", "0.44949433", "0.44868585", "0.44794706", "0.4477708", "0.4477083", "0.44725236", "0.446813", "0.4465014", "0.44636482", "0.44636482", "0.44636482", "0.44584724", "0.44568044", "0.44540086", "0.4453938", "0.445213", "0.44372353", "0.4434312", "0.44342703", "0.44308963", "0.44304228", "0.44253233", "0.4424781", "0.44210848", "0.44069868", "0.4405069", "0.44033056", "0.44020376", "0.4400499", "0.43960994", "0.43914774", "0.4386934" ]
0.70307046
0
Include in the results only the boats with aspecified minimum length.
public function filterByMinimumLength($value) { $this->query->andWhere($this->query->expr()->andX() ->add($this->query->expr()->isNotNull('b.length')) ->add($this->query->expr()->gte('b.length', $this->query->createNamedParameter($value))) ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function filterByWithLength()\n {\n $this->query->andWhere($this->query->expr()->isNotNull('b.length'));\n }", "protected function _minLength()\n {\n $limit = $this->getMinLength();\n if ($limit !== null) {\n $i = 0;\n $_tagsArray = array();\n foreach ($this->_tagsArray as $key => $value) {\n if (strlen($value['tag']) >= $limit) {\n $_tagsArray[$value['tag']] = $value;\n }\n $i++;\n }\n $this->_tagsArray = array();\n $this->_tagsArray = $_tagsArray;\n }\n return $this->_tagsArray;\n }", "public function setMinLength($minLength)\n {\n $this->minLength = $minLength;\n return $this;\n }", "public function setMinLength($minLength)\n {\n $this->_minLength = $minLength;\n return $this;\n }", "public function getMinBaths();", "function setMinLength($length) {\n\n $this->field['minlength'] = $length;\n return $this;\n\n }", "public function getMinBeds();", "public function filterByWithoutLength()\n {\n $this->query->andWhere($this->query->expr()->isNull('b.length'));\n }", "public function getSearchMinimumLength()\n\t\t{\n\t\t\treturn $this->_search_min_length;\n\t\t}", "public function getMinLength()\n {\n return $this->minLength;\n }", "public function getMinLength()\n {\n return $this->_minLength;\n }", "function getMinWidths() {\n\t\t$widths = explode(',', $this->MinWidth);\n\t\tsort($widths);\n\n\t\treturn $widths;\n\t}", "public function getMinimumLength()\n {\n return $this->minimumLength;\n }", "public function GetMustHaveMinLength () {\n\t\treturn $this->mustHaveMinLength;\n\t}", "public function setMinimumLength($length)\n {\n $this->minimumLength = $length;\n }", "function assertLength()\n {\n if (empty($this->value))\n if (!$this->mandatory)\n return $this ;\n\n if (empty($this->attribMap['data-min']))\n return $this ; // no min specified\n\n $this->min = $ths->attribMap['data-min'];\n if (is_numeric($this->min))\n {\n if (strlen($this->value) < $this->min)\n {\n throw new Exception($this->min . __(\" or more characters expected in\") . \" $this->name: $this->value\");\n }\n }\n return $this ;\n }", "public function lengthMin($lengthMin, $error) {\n if ($this->_exist) {\n array_push($this->_constraints, ['type' => self::LENGTHMIN, 'value' => $lengthMin, 'message' => $error]);\n }\n\n return $this;\n }", "function min_length($array){\n\t$message = [];\n\tforeach($array as $field=>$minimum){\n\t\t$length = strlen(trim($_POST[$field]));\n\t\tif($length < $minimum){\n\t\t\t$message[$field] = readable_name($field).\" must be at least \".$minimum.\" characters. \";\n\t\t}\n\t}\n\treturn $message;\n}", "final public function searchMinLength():int\n {\n return $this->col()->searchMinLength();\n }", "public function setMinLength($minLength) {\n if (!is_integer($minLength) || $minLength < 0) {\n throw new \\InvalidArgumentException('Minimal length must be numeric and greather or equal to zero. Get: \"' . $minLength . '\"');\n }\n $this->minLength = $minLength;\n return $this;\n }", "function setMinWidth($width) {\n $this->field['min_width'] = $width;\n\n return $this;\n }", "function testMinlen(){\n\t\t#mdx:minlen\n\t\tParam::get('description')->filters()->minlen(10, \"Description must be at least %d characters long!\");\n\n\t\t$error = Param::get('description')->process(['description'=>'Test'])->error;\n\t\t#/mdx var_dump($error)\n\n\t\t$this->assertContains('at least 10', $error);\n\n\t}", "public function minLength($value) {\n return $this->setProperty('minLength', $value);\n }", "public function filterByMaximumLength($value)\n {\n $this->query->andWhere($this->query->expr()->andX()\n ->add($this->query->expr()->isNotNull('b.length'))\n ->add($this->query->expr()->lte('b.length', $this->query->createNamedParameter($value)))\n );\n }", "public function belongsToMealWithMinimumSideItems()\n {\n $minimum_required_sideitems = 2;\n $grouped_side_items = DB::table('meal_mealitems')\n ->where('is_main', 0)\n ->get()\n ->groupBy('meal_id');\n\n foreach ($grouped_side_items as $side_items){\n if ($side_items->where('meal_item_id', $this->id)->count() > 0\n && count($side_items) <= $minimum_required_sideitems\n ){\n return true;\n }\n }\n\n return false;\n }", "public function getLengthMin()\n {\n return $this->lengthMin;\n }", "public function min($value)\n {\n return $this->with('Length', [$value, 0]);\n }", "function _isEligibleMinimumQuantity()\r\n {\r\n $item = $this->find('first', array(\r\n 'conditions' => array(\r\n 'Item.id' => $this->data[$this->name]['item_id'],\r\n ) ,\r\n 'fields' => array(\r\n 'Item.buy_min_quantity_per_user',\r\n 'Item.item_user_count',\r\n 'Item.max_limit'\r\n ) ,\r\n 'recursive' => -1\r\n ));\r\n if ($item['Item']['buy_min_quantity_per_user'] > 1) {\r\n $items_count = $this->_countUserBoughtItems();\r\n $boughtTotal = (!empty($items_count[0]['total_count']) ? $items_count[0]['total_count'] : 0) +$this->data[$this->name]['quantity'];\r\n $min = $item['Item']['buy_min_quantity_per_user'];\r\n if (!empty($item['Item']['max_limit']) && $min >= $item['Item']['max_limit']-$item['Item']['item_user_count']) {\r\n $min = $item['Item']['max_limit']-$item['Item']['item_user_count'];\r\n }\r\n if ($boughtTotal >= $min) {\r\n return true;\r\n }\r\n return false;\r\n } else {\r\n return true;\r\n }\r\n }", "public function setMinPostalCodeLength(int $minPostalCodeLength): self\n {\n $this->options['minPostalCodeLength'] = $minPostalCodeLength;\n return $this;\n }", "protected function min($length, $field_name, $data)\n {\n if (strlen($data) >= $length) {\n return true;\n } else {\n $this->errors[$field_name][] = \"minimum {$length} char\";\n }\n// $this->errors[$field_name][] = \"minimum {$length} char\";\n// return empty(strlen($data) >= $length) ? false : true;\n }", "public function getMinSize()\r\n {\r\n return $this->min_size;\r\n }", "public function setMinimumWordLength($minimum)\n {\n return $this->setOption('minimumwordlength', $minimum);\n }", "public function setLengthMin($lengthMin)\n {\n $this->lengthMin = \\RandData\\Checker::int(\n $lengthMin,\n self::LENGTH_MIN_MIN,\n self::LENGTH_MIN_MAX,\n \"lengthMin\"\n );\n }", "public function testCanReturnRoomsWithMinimumSpecifiedAmount()\n {\n $response = $this->get('api/rooms?price_from=169');\n $data = json_decode($response->content(), true);\n $response->assertStatus(200);\n $this->assertEquals(count($data['data']), 4);\n $this->assertEquals($data['data'][0]['totalPrice'], '169.00');\n }", "public function testFilterMinimumPrice()\n {\n $this->visit('/properties')\n ->type('4500000', '#minPrice')\n ->press('Update results')\n ->see('Victorian townhouse');\n $this->notSee('Five bedroom mill conversion');\n $this->notSee('Shack in the desert');\n }", "function getSongsMin() {\n\t$sql = q(\"SELECT * FROM lib_songs\");\n\treturn getSqlArrayMin($sql);\n}", "protected function _prepareSubset() {}", "public function getMinItems()\n {\n return isset($this->min_items) ? $this->min_items : 0;\n }", "public function minimum_requirements() {\n\t\treturn array(\n\t\t\tarray( $this, 'check_minimum_requirements' ),\n\t\t);\n\t}", "public function hasMin() {\n return $this->_has(2);\n }", "protected static function _minLength() {\n if (self::$_ruleValue) {\n if (self::$_ruleValue > strlen(trim(self::$_elementValue))) {\n self::setErrorMessage(\"Enter at least \" . self::$_ruleValue . \" charachters \");\n self::setInvalidFlag(true);\n } else {\n self::setInvalidFlag(false);\n }\n }\n }", "public function setMinSize(int $min_size)\r\n {\r\n $this->min_size = $min_size;\r\n\r\n return $this;\r\n }", "private function min_length($field, $value, $min_length) {\n $length = strlen($value);\n \n // Throw error is field length does not meet minimum\n if ($length < $min_length) {\n $this->errors[$field][] = self::ERROR_MIN_LENGTH;\n }\n }", "public function minSize(bool|int|string $minSize = ''): self\n {\n $this->minSize = $minSize;\n $this->attributes['min-size'] = $minSize;\n\n return $this;\n }", "public function getMinNbChilds()\n {\n return $this->getOption('min', 0);\n }", "public function cheapestOptions()\n {\n return (isset($this->quotes) && (is_array($this->quotes))) ? array_slice($this->quotes, 0, $this->totalCarriers) : [];\n }", "function wet_sample_article_constraints_min_title_length($event, $step, &$rs, &$constraints)\n{\n\t$constraints['wet_titlelength'] = new wet_LengthConstraint($rs['Title'], array('min' => 5, 'message' => 'title_too_short'));\n}", "function _compareItemAndBuyMinLimt()\r\n {\r\n if (empty($this->data[$this->name]['max_limit']) || $this->data[$this->name]['max_limit'] >= $this->data[$this->name]['buy_min_quantity_per_user']) {\r\n return true;\r\n }\r\n return false;\r\n }", "public function findPersonWithMinChild()\n { \n $frere = $this->simblings()->filter(function ($item) {\n return $item->nombre_enfant_dirrect < 5;\n });\n $x = $frere->sortBy('nombre_enfant_dirrect');\n return $x->first();\n\n // return $frere->min('nombre_enfant_dirrect');\n }", "function _related_min_size($object, $model, $size = 0)\r\n\t{\r\n\t\treturn ($this->_count_related($model, $object) < $size) ? FALSE : TRUE;\r\n\t}", "public function getMinConfs()\n {\n return $this->min_confs;\n }", "public function minLength(int $length, array $keys): self{\n foreach ($keys as $key){\n $key = $this->getParam($key);\n if(strlen($key) < $length){\n $this->setError($key, __FUNCTION__ , [$length]);\n }\n }\n return $this;\n }", "function testMinlenRunOnlyIfNotEmpty(){\n\t\t#mdx:minlen2\n\t\tParam::get('description')->filters()->minlen(10, \"Description must be at least %d characters long!\");\n\n\t\t$error = Param::get('description')->process(['description'=>''])->error;\n\t\t#/mdx var_dump($error)\n\n\t\t$this->assertNull($error);\n\n\t}", "function _min_size($field, $size)\r\n\t{\r\n\t\treturn ($this->{$field} < $size) ? FALSE : TRUE;\r\n\t}", "public function minSize(string $minSize)\n {\n return $this->set('min_size', $minSize);\n }", "public function GetMinSize ();", "public function minLength($length, $msg, $longmsg = '') {\n\t\t$this->addRule(new MinLengthValidationRule($length, $msg, $longmsg));\n\t\treturn $this;\n\t}", "public function setMinOccupancy($minOccupancy)\n {\n $this->minOccupancy = $minOccupancy;\n return $this;\n }", "public static function minimum($parameters=null) {}", "public function getLowerBounds()\n {\n return $this->lower_bounds;\n }", "public function filterByAlphaMinLength($alphaMinLength = null, $comparison = null)\n {\n if (is_array($alphaMinLength)) {\n $useMinMax = false;\n if (isset($alphaMinLength['min'])) {\n $this->addUsingAlias(QueryParametersTableMap::COL_QRP_ALPHAMINLENGTH, $alphaMinLength['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($alphaMinLength['max'])) {\n $this->addUsingAlias(QueryParametersTableMap::COL_QRP_ALPHAMINLENGTH, $alphaMinLength['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(QueryParametersTableMap::COL_QRP_ALPHAMINLENGTH, $alphaMinLength, $comparison);\n }", "function minimumBribes($q)\n{\n $stepsCount = 0;\n $bribesCounts = [];\n $arrayLength = sizeOf($q)-1;\n $swapCntPerRound = 0;\n for ($i = 0; $i < $arrayLength; $i++) {\n if ($q[$i] > $q[$i+1]) {\n if (!isset($bribesCounts[$q[$i]])) {\n $bribesCounts[$q[$i]] = 0;\n }\n\n $bribesCounts[$q[$i]]++;\n\n if ($bribesCounts[$q[$i]] > 2) {\n //echo 'Too chaotic', PHP_EOL;\n return \"Too chaotic\";\n }\n\n $stepsCount++;\n $swapCntPerRound++;\n list($q[$i+1], $q[$i]) = [$q[$i], $q[$i+1]];\n }\n\n if ($i == $arrayLength-1 && $swapCntPerRound > 0) {\n $i = -1;\n $swapCntPerRound = 0;\n }\n }\n\n //echo array_sum($bribesCounts), PHP_EOL;\n return array_sum($bribesCounts);\n}", "public function getProductsMinPrice()\n {\n return $this->filterData['min'] ?? '';\n }", "public function minSize($size): Rule\n {\n $this->params['min_size'] = $size;\n\n return $this;\n }", "public function testLengthIs191ByDefault()\n {\n $this->assertEquals(191, (new StringField('some_string'))->getLength());\n }", "public function ignoreLengthErrors() {\n \n $this->options .= '-l ';\n \n return $this;\n }", "public function GetMinCount ();", "protected function filterShortWords()\n {\n $longer_words = array_filter($this->words, function ($e) {\n return strlen($e) > 2;\n });\n\n $this->words = array_values($longer_words);\n\n return $this;\n }", "public function clipLower(float $min) : self\n {\n $b = [];\n\n foreach ($this->a as $rowA) {\n $rowB = [];\n\n foreach ($rowA as $valueA) {\n if ($valueA < $min) {\n $rowB[] = $min;\n\n continue;\n }\n\n $rowB[] = $valueA;\n }\n\n $b[] = $rowB;\n }\n\n return self::quick($b);\n }", "public function minLength($field, $length) {\n\t\t$length = intval($length);\n\t\t$postData = $_POST[$field['name']];\n\t\t\n\t\tif ( ! is_string($postData))\n\t\t\tstrval($postData);\n\t\t\t\n\t\tif (strlen($postData) < intval($length)) {\n\t\t\t$this->_errors[$field['name']]['param'] = $length;\n\t\t\treturn FALSE;\n\t\t}\n\t\t\n\t\treturn TRUE;\n\t}", "function leastBricks($wall=[]) { \r\n foreach ($wall as $key => $value) {\r\n for ($i = 0; $i < count($value) - 1; $i++) {\r\n\t\t//the maximum coincidence of the sums of bricks, means the maximum total boundary line\r\n $arr[] = array_sum(array_slice($value, 0, $i + 1));\r\n }\r\n }\r\n\t//the difference of all horizontal lines of bricks and the maximum coincident line will give an our solutuion\r\n return count($wall) - max(array_count_values($arr));\r\n}", "public function getLowQuantity()\n {\n return Item::whereColumn('minimum_quantity', '>', 'current_quantity')->get();\n }", "public function testValidationBytesLowerBounds()\n {\n $random = new Random($this->getValidator());\n\n $random->setBytes($this::MIN_BYTES - 1);\n\n $random->validate();\n }", "public function increaseLength($minLength = 100) {}", "public function increaseLength($minLength = 100) {}", "protected function billed()\n {\n return $this->builder->where('billed', true);\n }", "public function getMinisters() {\n return $this->parseData($this->sql['min']);\n }", "public function getMinMessage()\n {\n return $this->getOption('min_message', 'Please add at least %min% number '\n .'of objects.');\n }", "public function getMaxBaths();", "public function min_limit(){ \n\t\t$total_hrs = $this->data['HrPermission']['no_hrs'];\n\t\t$total_hrs = explode(':', $total_hrs);\t\t\t\n\t\tif($total_hrs[0] == '00' && $total_hrs[1] < 30){\n\t\t\treturn false;\t\n\t\t}else{\n\t\t\treturn true;\n\t\t}\n\t\t\n\t}", "public function add_freeform($length = \\null)\n {\n }", "public function minSize($key)\n {\n\n if (! isset(static::$cols[$key])) {\n Error::report('asked for wrong Validation data: '.$key.' in '.get_class($this));\n\n return null;\n }\n\n return static::$cols[$key][self::COL_MIN];\n\n }", "public function setMinBaths($minBaths);", "function cmp_len($a, $b){ \n\t return (strlen($a['name']) < strlen($b['name']));\n\t}", "function get_billed_parts() {\n\t\t// exit;\n\t\t$this->job_card_model->_table = 'view_service_billing_parts';\n\n\t\t$where['jobcard_group'] = $this->input->get('jobcard_group');\n\n\t\t$rows = $this->job_card_model->find_all($where);\n\n\t\tforeach ($rows as $key => $value) {\n\t\t\t$rows[$key]->has_billed = 1;\n\t\t}\n\n\t\t$total = count($rows);\n\t\techo json_encode(array('total' => $total, 'rows' => $rows));\n\t}", "public function getMinimumQuantity()\n {\n return $this->minimumQuantity;\n }", "public function getMinimumQuantity()\n {\n return $this->minimumQuantity;\n }", "function setMin($min) {\n $this->field['min'] = (int) $min;\n\n return $this;\n }", "public function setMinimum($minimum)\n {\n $this->minimum = $minimum;\n return $this;\n }", "public function getMinimumAmount()\n\t{\n\t\treturn ['amount' => 99.00, 'currency' => 'EUR'];\n\t}", "function fetchAllMinimumItemCurrentStock()\r{\r $link = parent::connectToDB();\r\t$query=\"select stock.item_id,item.minimum_quantity,item.name_brand,category.name,sum(stock.current_stock) from item,category,stock where stock.item_id=item.item_id and item.category_id=category.category_id group by stock.item_id having sum(stock.current_stock)<(item.minimum_quantity)\";\r\t$result8 = mysqli_query($link, $query);\r\t$r=mysqli_num_rows($result8);\t\rif($r!=0)\r{\rreturn $result8;\r}\relse\r{\rreturn false;\r}\r}", "public function testMagicCallWithArguments()\n {\n $constraints = $this->uut->minLength(6)->getConstraints();\n foreach ($constraints as $constraint) {\n if (!($constraint instanceof MinLengthConstraint)) {\n continue;\n }\n\n $this->assertEquals(6, $constraint->getMinLength());\n return;\n }\n\n $this->fail('no MinLengthConstraint found');\n }", "public function getMinArea();", "public static function setPasswordMinLength($length){\n Configuration::where('id', 1)\n ->update(['password_min_length' => $length]);\n }", "public function hasMaxHands(){\n return $this->_has(12);\n }", "public function hasMinlv(){\n return $this->_has(3);\n }", "public function lengthMin(string|int|float $message): self\n {\n return $this->addMessage(new LengthMin($message));\n }", "public function minSize($value) {\n return $this->setProperty('minSize', $value);\n }", "function _char_limit($str, $length, $minword = 3)\n {\n $sub = '';\n $len = 0;\n \n foreach (explode(' ', $str) as $word)\n {\n $part = (($sub != '') ? ' ' : '') . $word;\n $sub .= $part;\n $len += strlen($part);\n \n if (strlen($word) > $minword && strlen($sub) >= $length)\n {\n break;\n }\n }\n \n return $sub . (($len < strlen($str)) ? '...' : '');\n\n }", "public function SetMinSize ($minSize);" ]
[ "0.6248223", "0.60291255", "0.5796283", "0.57558316", "0.5704004", "0.5693799", "0.55407465", "0.5491371", "0.5423561", "0.53483576", "0.53409755", "0.5324454", "0.52407306", "0.52402985", "0.5203074", "0.5164571", "0.51616764", "0.51487964", "0.514811", "0.5124312", "0.5093455", "0.5074098", "0.5062405", "0.5053801", "0.5042081", "0.50152874", "0.5001595", "0.4970124", "0.49330187", "0.4924715", "0.48883688", "0.48869556", "0.48769423", "0.48763448", "0.48757017", "0.486423", "0.4836921", "0.48332903", "0.48101947", "0.48017192", "0.47914922", "0.47854573", "0.4780775", "0.47772282", "0.4767878", "0.4720806", "0.47009784", "0.4691311", "0.46858805", "0.46780747", "0.46639854", "0.4659577", "0.4656761", "0.46443895", "0.4627415", "0.46273232", "0.46188536", "0.46091256", "0.46079215", "0.4606881", "0.4605027", "0.4590269", "0.45757923", "0.45737436", "0.45574877", "0.45545805", "0.45514494", "0.45495644", "0.45351544", "0.45290896", "0.45265654", "0.4515911", "0.45103478", "0.450648", "0.45061874", "0.45048517", "0.44999936", "0.44948947", "0.4493468", "0.4491882", "0.4482672", "0.4481659", "0.448027", "0.44716442", "0.4462359", "0.44609067", "0.44609067", "0.4460825", "0.44556195", "0.44529375", "0.44468394", "0.44451386", "0.44448805", "0.44445908", "0.44376916", "0.44356525", "0.4428457", "0.44263914", "0.44248313", "0.44196594" ]
0.62623054
0
Include in the results only the boats with aspecified minimum length.
public function filterByMaximumLength($value) { $this->query->andWhere($this->query->expr()->andX() ->add($this->query->expr()->isNotNull('b.length')) ->add($this->query->expr()->lte('b.length', $this->query->createNamedParameter($value))) ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function filterByMinimumLength($value)\n {\n $this->query->andWhere($this->query->expr()->andX()\n ->add($this->query->expr()->isNotNull('b.length'))\n ->add($this->query->expr()->gte('b.length', $this->query->createNamedParameter($value)))\n );\n }", "public function filterByWithLength()\n {\n $this->query->andWhere($this->query->expr()->isNotNull('b.length'));\n }", "protected function _minLength()\n {\n $limit = $this->getMinLength();\n if ($limit !== null) {\n $i = 0;\n $_tagsArray = array();\n foreach ($this->_tagsArray as $key => $value) {\n if (strlen($value['tag']) >= $limit) {\n $_tagsArray[$value['tag']] = $value;\n }\n $i++;\n }\n $this->_tagsArray = array();\n $this->_tagsArray = $_tagsArray;\n }\n return $this->_tagsArray;\n }", "public function setMinLength($minLength)\n {\n $this->minLength = $minLength;\n return $this;\n }", "public function setMinLength($minLength)\n {\n $this->_minLength = $minLength;\n return $this;\n }", "public function getMinBaths();", "function setMinLength($length) {\n\n $this->field['minlength'] = $length;\n return $this;\n\n }", "public function getMinBeds();", "public function filterByWithoutLength()\n {\n $this->query->andWhere($this->query->expr()->isNull('b.length'));\n }", "public function getSearchMinimumLength()\n\t\t{\n\t\t\treturn $this->_search_min_length;\n\t\t}", "public function getMinLength()\n {\n return $this->minLength;\n }", "public function getMinLength()\n {\n return $this->_minLength;\n }", "function getMinWidths() {\n\t\t$widths = explode(',', $this->MinWidth);\n\t\tsort($widths);\n\n\t\treturn $widths;\n\t}", "public function GetMustHaveMinLength () {\n\t\treturn $this->mustHaveMinLength;\n\t}", "public function getMinimumLength()\n {\n return $this->minimumLength;\n }", "public function setMinimumLength($length)\n {\n $this->minimumLength = $length;\n }", "function assertLength()\n {\n if (empty($this->value))\n if (!$this->mandatory)\n return $this ;\n\n if (empty($this->attribMap['data-min']))\n return $this ; // no min specified\n\n $this->min = $ths->attribMap['data-min'];\n if (is_numeric($this->min))\n {\n if (strlen($this->value) < $this->min)\n {\n throw new Exception($this->min . __(\" or more characters expected in\") . \" $this->name: $this->value\");\n }\n }\n return $this ;\n }", "public function lengthMin($lengthMin, $error) {\n if ($this->_exist) {\n array_push($this->_constraints, ['type' => self::LENGTHMIN, 'value' => $lengthMin, 'message' => $error]);\n }\n\n return $this;\n }", "function min_length($array){\n\t$message = [];\n\tforeach($array as $field=>$minimum){\n\t\t$length = strlen(trim($_POST[$field]));\n\t\tif($length < $minimum){\n\t\t\t$message[$field] = readable_name($field).\" must be at least \".$minimum.\" characters. \";\n\t\t}\n\t}\n\treturn $message;\n}", "final public function searchMinLength():int\n {\n return $this->col()->searchMinLength();\n }", "public function setMinLength($minLength) {\n if (!is_integer($minLength) || $minLength < 0) {\n throw new \\InvalidArgumentException('Minimal length must be numeric and greather or equal to zero. Get: \"' . $minLength . '\"');\n }\n $this->minLength = $minLength;\n return $this;\n }", "function setMinWidth($width) {\n $this->field['min_width'] = $width;\n\n return $this;\n }", "function testMinlen(){\n\t\t#mdx:minlen\n\t\tParam::get('description')->filters()->minlen(10, \"Description must be at least %d characters long!\");\n\n\t\t$error = Param::get('description')->process(['description'=>'Test'])->error;\n\t\t#/mdx var_dump($error)\n\n\t\t$this->assertContains('at least 10', $error);\n\n\t}", "public function minLength($value) {\n return $this->setProperty('minLength', $value);\n }", "public function belongsToMealWithMinimumSideItems()\n {\n $minimum_required_sideitems = 2;\n $grouped_side_items = DB::table('meal_mealitems')\n ->where('is_main', 0)\n ->get()\n ->groupBy('meal_id');\n\n foreach ($grouped_side_items as $side_items){\n if ($side_items->where('meal_item_id', $this->id)->count() > 0\n && count($side_items) <= $minimum_required_sideitems\n ){\n return true;\n }\n }\n\n return false;\n }", "public function getLengthMin()\n {\n return $this->lengthMin;\n }", "public function min($value)\n {\n return $this->with('Length', [$value, 0]);\n }", "function _isEligibleMinimumQuantity()\r\n {\r\n $item = $this->find('first', array(\r\n 'conditions' => array(\r\n 'Item.id' => $this->data[$this->name]['item_id'],\r\n ) ,\r\n 'fields' => array(\r\n 'Item.buy_min_quantity_per_user',\r\n 'Item.item_user_count',\r\n 'Item.max_limit'\r\n ) ,\r\n 'recursive' => -1\r\n ));\r\n if ($item['Item']['buy_min_quantity_per_user'] > 1) {\r\n $items_count = $this->_countUserBoughtItems();\r\n $boughtTotal = (!empty($items_count[0]['total_count']) ? $items_count[0]['total_count'] : 0) +$this->data[$this->name]['quantity'];\r\n $min = $item['Item']['buy_min_quantity_per_user'];\r\n if (!empty($item['Item']['max_limit']) && $min >= $item['Item']['max_limit']-$item['Item']['item_user_count']) {\r\n $min = $item['Item']['max_limit']-$item['Item']['item_user_count'];\r\n }\r\n if ($boughtTotal >= $min) {\r\n return true;\r\n }\r\n return false;\r\n } else {\r\n return true;\r\n }\r\n }", "public function setMinPostalCodeLength(int $minPostalCodeLength): self\n {\n $this->options['minPostalCodeLength'] = $minPostalCodeLength;\n return $this;\n }", "protected function min($length, $field_name, $data)\n {\n if (strlen($data) >= $length) {\n return true;\n } else {\n $this->errors[$field_name][] = \"minimum {$length} char\";\n }\n// $this->errors[$field_name][] = \"minimum {$length} char\";\n// return empty(strlen($data) >= $length) ? false : true;\n }", "public function setMinimumWordLength($minimum)\n {\n return $this->setOption('minimumwordlength', $minimum);\n }", "public function getMinSize()\r\n {\r\n return $this->min_size;\r\n }", "public function setLengthMin($lengthMin)\n {\n $this->lengthMin = \\RandData\\Checker::int(\n $lengthMin,\n self::LENGTH_MIN_MIN,\n self::LENGTH_MIN_MAX,\n \"lengthMin\"\n );\n }", "public function testCanReturnRoomsWithMinimumSpecifiedAmount()\n {\n $response = $this->get('api/rooms?price_from=169');\n $data = json_decode($response->content(), true);\n $response->assertStatus(200);\n $this->assertEquals(count($data['data']), 4);\n $this->assertEquals($data['data'][0]['totalPrice'], '169.00');\n }", "public function testFilterMinimumPrice()\n {\n $this->visit('/properties')\n ->type('4500000', '#minPrice')\n ->press('Update results')\n ->see('Victorian townhouse');\n $this->notSee('Five bedroom mill conversion');\n $this->notSee('Shack in the desert');\n }", "function getSongsMin() {\n\t$sql = q(\"SELECT * FROM lib_songs\");\n\treturn getSqlArrayMin($sql);\n}", "protected function _prepareSubset() {}", "public function getMinItems()\n {\n return isset($this->min_items) ? $this->min_items : 0;\n }", "public function minimum_requirements() {\n\t\treturn array(\n\t\t\tarray( $this, 'check_minimum_requirements' ),\n\t\t);\n\t}", "public function hasMin() {\n return $this->_has(2);\n }", "protected static function _minLength() {\n if (self::$_ruleValue) {\n if (self::$_ruleValue > strlen(trim(self::$_elementValue))) {\n self::setErrorMessage(\"Enter at least \" . self::$_ruleValue . \" charachters \");\n self::setInvalidFlag(true);\n } else {\n self::setInvalidFlag(false);\n }\n }\n }", "public function setMinSize(int $min_size)\r\n {\r\n $this->min_size = $min_size;\r\n\r\n return $this;\r\n }", "private function min_length($field, $value, $min_length) {\n $length = strlen($value);\n \n // Throw error is field length does not meet minimum\n if ($length < $min_length) {\n $this->errors[$field][] = self::ERROR_MIN_LENGTH;\n }\n }", "public function minSize(bool|int|string $minSize = ''): self\n {\n $this->minSize = $minSize;\n $this->attributes['min-size'] = $minSize;\n\n return $this;\n }", "public function getMinNbChilds()\n {\n return $this->getOption('min', 0);\n }", "public function cheapestOptions()\n {\n return (isset($this->quotes) && (is_array($this->quotes))) ? array_slice($this->quotes, 0, $this->totalCarriers) : [];\n }", "function wet_sample_article_constraints_min_title_length($event, $step, &$rs, &$constraints)\n{\n\t$constraints['wet_titlelength'] = new wet_LengthConstraint($rs['Title'], array('min' => 5, 'message' => 'title_too_short'));\n}", "function _compareItemAndBuyMinLimt()\r\n {\r\n if (empty($this->data[$this->name]['max_limit']) || $this->data[$this->name]['max_limit'] >= $this->data[$this->name]['buy_min_quantity_per_user']) {\r\n return true;\r\n }\r\n return false;\r\n }", "public function findPersonWithMinChild()\n { \n $frere = $this->simblings()->filter(function ($item) {\n return $item->nombre_enfant_dirrect < 5;\n });\n $x = $frere->sortBy('nombre_enfant_dirrect');\n return $x->first();\n\n // return $frere->min('nombre_enfant_dirrect');\n }", "function _related_min_size($object, $model, $size = 0)\r\n\t{\r\n\t\treturn ($this->_count_related($model, $object) < $size) ? FALSE : TRUE;\r\n\t}", "public function getMinConfs()\n {\n return $this->min_confs;\n }", "public function minLength(int $length, array $keys): self{\n foreach ($keys as $key){\n $key = $this->getParam($key);\n if(strlen($key) < $length){\n $this->setError($key, __FUNCTION__ , [$length]);\n }\n }\n return $this;\n }", "function testMinlenRunOnlyIfNotEmpty(){\n\t\t#mdx:minlen2\n\t\tParam::get('description')->filters()->minlen(10, \"Description must be at least %d characters long!\");\n\n\t\t$error = Param::get('description')->process(['description'=>''])->error;\n\t\t#/mdx var_dump($error)\n\n\t\t$this->assertNull($error);\n\n\t}", "function _min_size($field, $size)\r\n\t{\r\n\t\treturn ($this->{$field} < $size) ? FALSE : TRUE;\r\n\t}", "public function minSize(string $minSize)\n {\n return $this->set('min_size', $minSize);\n }", "public function GetMinSize ();", "public function minLength($length, $msg, $longmsg = '') {\n\t\t$this->addRule(new MinLengthValidationRule($length, $msg, $longmsg));\n\t\treturn $this;\n\t}", "public function setMinOccupancy($minOccupancy)\n {\n $this->minOccupancy = $minOccupancy;\n return $this;\n }", "public static function minimum($parameters=null) {}", "public function getLowerBounds()\n {\n return $this->lower_bounds;\n }", "public function filterByAlphaMinLength($alphaMinLength = null, $comparison = null)\n {\n if (is_array($alphaMinLength)) {\n $useMinMax = false;\n if (isset($alphaMinLength['min'])) {\n $this->addUsingAlias(QueryParametersTableMap::COL_QRP_ALPHAMINLENGTH, $alphaMinLength['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($alphaMinLength['max'])) {\n $this->addUsingAlias(QueryParametersTableMap::COL_QRP_ALPHAMINLENGTH, $alphaMinLength['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(QueryParametersTableMap::COL_QRP_ALPHAMINLENGTH, $alphaMinLength, $comparison);\n }", "function minimumBribes($q)\n{\n $stepsCount = 0;\n $bribesCounts = [];\n $arrayLength = sizeOf($q)-1;\n $swapCntPerRound = 0;\n for ($i = 0; $i < $arrayLength; $i++) {\n if ($q[$i] > $q[$i+1]) {\n if (!isset($bribesCounts[$q[$i]])) {\n $bribesCounts[$q[$i]] = 0;\n }\n\n $bribesCounts[$q[$i]]++;\n\n if ($bribesCounts[$q[$i]] > 2) {\n //echo 'Too chaotic', PHP_EOL;\n return \"Too chaotic\";\n }\n\n $stepsCount++;\n $swapCntPerRound++;\n list($q[$i+1], $q[$i]) = [$q[$i], $q[$i+1]];\n }\n\n if ($i == $arrayLength-1 && $swapCntPerRound > 0) {\n $i = -1;\n $swapCntPerRound = 0;\n }\n }\n\n //echo array_sum($bribesCounts), PHP_EOL;\n return array_sum($bribesCounts);\n}", "public function minSize($size): Rule\n {\n $this->params['min_size'] = $size;\n\n return $this;\n }", "public function getProductsMinPrice()\n {\n return $this->filterData['min'] ?? '';\n }", "public function testLengthIs191ByDefault()\n {\n $this->assertEquals(191, (new StringField('some_string'))->getLength());\n }", "public function ignoreLengthErrors() {\n \n $this->options .= '-l ';\n \n return $this;\n }", "protected function filterShortWords()\n {\n $longer_words = array_filter($this->words, function ($e) {\n return strlen($e) > 2;\n });\n\n $this->words = array_values($longer_words);\n\n return $this;\n }", "public function GetMinCount ();", "public function clipLower(float $min) : self\n {\n $b = [];\n\n foreach ($this->a as $rowA) {\n $rowB = [];\n\n foreach ($rowA as $valueA) {\n if ($valueA < $min) {\n $rowB[] = $min;\n\n continue;\n }\n\n $rowB[] = $valueA;\n }\n\n $b[] = $rowB;\n }\n\n return self::quick($b);\n }", "public function minLength($field, $length) {\n\t\t$length = intval($length);\n\t\t$postData = $_POST[$field['name']];\n\t\t\n\t\tif ( ! is_string($postData))\n\t\t\tstrval($postData);\n\t\t\t\n\t\tif (strlen($postData) < intval($length)) {\n\t\t\t$this->_errors[$field['name']]['param'] = $length;\n\t\t\treturn FALSE;\n\t\t}\n\t\t\n\t\treturn TRUE;\n\t}", "function leastBricks($wall=[]) { \r\n foreach ($wall as $key => $value) {\r\n for ($i = 0; $i < count($value) - 1; $i++) {\r\n\t\t//the maximum coincidence of the sums of bricks, means the maximum total boundary line\r\n $arr[] = array_sum(array_slice($value, 0, $i + 1));\r\n }\r\n }\r\n\t//the difference of all horizontal lines of bricks and the maximum coincident line will give an our solutuion\r\n return count($wall) - max(array_count_values($arr));\r\n}", "public function getLowQuantity()\n {\n return Item::whereColumn('minimum_quantity', '>', 'current_quantity')->get();\n }", "public function testValidationBytesLowerBounds()\n {\n $random = new Random($this->getValidator());\n\n $random->setBytes($this::MIN_BYTES - 1);\n\n $random->validate();\n }", "public function increaseLength($minLength = 100) {}", "public function increaseLength($minLength = 100) {}", "protected function billed()\n {\n return $this->builder->where('billed', true);\n }", "public function getMinisters() {\n return $this->parseData($this->sql['min']);\n }", "public function getMinMessage()\n {\n return $this->getOption('min_message', 'Please add at least %min% number '\n .'of objects.');\n }", "public function getMaxBaths();", "public function min_limit(){ \n\t\t$total_hrs = $this->data['HrPermission']['no_hrs'];\n\t\t$total_hrs = explode(':', $total_hrs);\t\t\t\n\t\tif($total_hrs[0] == '00' && $total_hrs[1] < 30){\n\t\t\treturn false;\t\n\t\t}else{\n\t\t\treturn true;\n\t\t}\n\t\t\n\t}", "public function add_freeform($length = \\null)\n {\n }", "public function minSize($key)\n {\n\n if (! isset(static::$cols[$key])) {\n Error::report('asked for wrong Validation data: '.$key.' in '.get_class($this));\n\n return null;\n }\n\n return static::$cols[$key][self::COL_MIN];\n\n }", "public function setMinBaths($minBaths);", "function cmp_len($a, $b){ \n\t return (strlen($a['name']) < strlen($b['name']));\n\t}", "function get_billed_parts() {\n\t\t// exit;\n\t\t$this->job_card_model->_table = 'view_service_billing_parts';\n\n\t\t$where['jobcard_group'] = $this->input->get('jobcard_group');\n\n\t\t$rows = $this->job_card_model->find_all($where);\n\n\t\tforeach ($rows as $key => $value) {\n\t\t\t$rows[$key]->has_billed = 1;\n\t\t}\n\n\t\t$total = count($rows);\n\t\techo json_encode(array('total' => $total, 'rows' => $rows));\n\t}", "function setMin($min) {\n $this->field['min'] = (int) $min;\n\n return $this;\n }", "public function getMinimumQuantity()\n {\n return $this->minimumQuantity;\n }", "public function getMinimumQuantity()\n {\n return $this->minimumQuantity;\n }", "public function setMinimum($minimum)\n {\n $this->minimum = $minimum;\n return $this;\n }", "public function getMinimumAmount()\n\t{\n\t\treturn ['amount' => 99.00, 'currency' => 'EUR'];\n\t}", "public static function setPasswordMinLength($length){\n Configuration::where('id', 1)\n ->update(['password_min_length' => $length]);\n }", "public function testMagicCallWithArguments()\n {\n $constraints = $this->uut->minLength(6)->getConstraints();\n foreach ($constraints as $constraint) {\n if (!($constraint instanceof MinLengthConstraint)) {\n continue;\n }\n\n $this->assertEquals(6, $constraint->getMinLength());\n return;\n }\n\n $this->fail('no MinLengthConstraint found');\n }", "function fetchAllMinimumItemCurrentStock()\r{\r $link = parent::connectToDB();\r\t$query=\"select stock.item_id,item.minimum_quantity,item.name_brand,category.name,sum(stock.current_stock) from item,category,stock where stock.item_id=item.item_id and item.category_id=category.category_id group by stock.item_id having sum(stock.current_stock)<(item.minimum_quantity)\";\r\t$result8 = mysqli_query($link, $query);\r\t$r=mysqli_num_rows($result8);\t\rif($r!=0)\r{\rreturn $result8;\r}\relse\r{\rreturn false;\r}\r}", "public function getMinArea();", "public function hasMaxHands(){\n return $this->_has(12);\n }", "public function hasMinlv(){\n return $this->_has(3);\n }", "public function lengthMin(string|int|float $message): self\n {\n return $this->addMessage(new LengthMin($message));\n }", "public function minSize($value) {\n return $this->setProperty('minSize', $value);\n }", "function _char_limit($str, $length, $minword = 3)\n {\n $sub = '';\n $len = 0;\n \n foreach (explode(' ', $str) as $word)\n {\n $part = (($sub != '') ? ' ' : '') . $word;\n $sub .= $part;\n $len += strlen($part);\n \n if (strlen($word) > $minword && strlen($sub) >= $length)\n {\n break;\n }\n }\n \n return $sub . (($len < strlen($str)) ? '...' : '');\n\n }", "public function SetMinSize ($minSize);" ]
[ "0.6262605", "0.62500036", "0.60292035", "0.57972914", "0.575685", "0.570302", "0.5696039", "0.5540739", "0.549326", "0.54228485", "0.53487134", "0.5341322", "0.532419", "0.5241277", "0.5240775", "0.52042615", "0.51663685", "0.5161965", "0.5149443", "0.5148315", "0.51247525", "0.50949705", "0.5075376", "0.50632983", "0.50410366", "0.50156516", "0.500237", "0.4968302", "0.49339333", "0.4926393", "0.48873216", "0.48870295", "0.4877514", "0.48762953", "0.48750094", "0.4863277", "0.4835776", "0.48317578", "0.48098174", "0.48008364", "0.47929084", "0.47850838", "0.47818083", "0.47772932", "0.47667393", "0.47206414", "0.4702344", "0.46904036", "0.46855837", "0.46769148", "0.46624577", "0.4660528", "0.4658848", "0.46451765", "0.46264088", "0.4626402", "0.46204102", "0.46084887", "0.46076488", "0.46057832", "0.46049404", "0.45888716", "0.45742804", "0.45737967", "0.45595792", "0.45565993", "0.4550389", "0.45487875", "0.45344234", "0.4531112", "0.45254284", "0.45145398", "0.4511161", "0.45066708", "0.45063767", "0.45040122", "0.44982964", "0.44938844", "0.44934377", "0.44918695", "0.44844058", "0.44811064", "0.44802067", "0.44727013", "0.44610593", "0.44607592", "0.4458609", "0.4458609", "0.4455131", "0.4452152", "0.4446317", "0.44454926", "0.44447538", "0.44444072", "0.44372672", "0.44350782", "0.44289982", "0.44256884", "0.4425248", "0.44191036" ]
0.5054787
24
In case host does not respond to request within 24hrs request status automatically changed
public function __construct($id = 0) { $id = FatUtility::convertToType($id, FatUtility::VAR_INT); parent::__construct(static::DB_TBL, static::DB_TBL_PREFIX . 'id', $id); //$this->objMainTableRecord->setSensitiveFields(array()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "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 }", "private function isAliveRequest() : bool {\n return\n $_SERVER['REQUEST_METHOD'] === \"GET\"\n &&\n $_SERVER['DOCUMENT_URI'] === '/status';\n }", "public function ping(){\n http_response_code(200);\n ob_end_flush();\n }", "function wp_refresh_heartbeat_nonces($response)\n {\n }", "public function setStatus()\r\n\t{\r\n\t\t$this->getHostStatus();\r\n\t}", "private function updateStatus()\n {\n $this->setStatus(\n socket_get_status(pfsockopen($this->uri, $this->port))\n );\n }", "private function setHostStatus(): void\n {\n $this->host_status = $this->getHostStatus();\n }", "public function update_requests() {\n\t\tif (!isset($_POST['time']) || !isset($_POST['hash'])) exit('0');\n\n\t\t// If the response is invalid return a zero response\n\t\t$received = $_POST['time'] . '|' . $_POST['hash'];\n\t\t$expected = $this->time_marker(hash('crc32', $this->required_delay), $_POST['time']);\n\t\tif ($received !== $expected) exit('0');\n\n\t\t// If response if premature return a zero response\n\t\t$now = time();\n\t\t$earliest = absint($_POST['time']) + $this->required_delay;\n\t\tif ($now < $earliest) exit('0');\n\n\t\t// Seems ok ... respond with new hash\n\t\t$response = hash('md5', $_POST['hash'] . $this->base_key);\n\t\texit($response);\n\t}", "private function detectServerRepair()\n {\n $h = date(\"H\", time());\n if ($h == \"03\") {\n Log::write(\"Server Repair Time,\", 2, \"spider\");\n sleep(3600);\n }\n }", "private function callStatus() {\n try {\n $this->status = $this->client->request('GET', $this->url->full_url, [\n 'allow_redirects' => false\n ]);\n } catch (\\Exception $ex) {\n $this->status = $ex->getResponse();\n }\n }", "public function refreshTaskStatus(){\n\n $webCronResult = $this->webCronResults()->orderBy('code', 'desc')->first();\n\n if ($webCronResult) {\n\n if ($webCronResult->code >= 300) {\n // bad status\n $this->status = 0 ;\n }else{\n // good status\n $this->status = 2 ;\n };\n\n $this->save();\n\n };\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 reload() {\r\n\r\n \t\t$timestamp = (int) (microtime(true) * 1000);\r\n\r\n \t\t// if the value is empty\r\n \t\tif ($this->NEXT_REQUEST_TIMESTAMP > $timestamp) {\r\n \t\t\treturn;\r\n \t\t}\r\n\r\n \t\t$this->load();\r\n \t}", "function wp_ajax_health_check_loopback_requests()\n {\n }", "static public function IsRequestTimeoutReached() {\n return (time() - $_SERVER[\"REQUEST_TIME\"]) >= self::GetExpectedConnectionTimeout();\n }", "protected function ping()\n {\n return parent::request('', Request::GET);\n }", "public function isExpired() {}", "public function handleExpired()\n {\n $expired = $this->clients->getExpired(AlphaRPC::CLIENT_PING);\n foreach ($expired as $client) {\n $this->reply($client, new TimeoutResponse());\n }\n }", "public function update_status();", "public function serverDownShouldModerate(){\r\n\t\t$args = array (\r\n\t\t\t'k' => $this->accountID,\r\n\t\t\t'pwd' => $this->privateKey,\r\n\t\t\t'lofi' => $this->languageOrFrameworkID,\r\n\t\t\t'lofv' => $this->languageOrFrameworkVersion\r\n\t\t);\r\n\t\t$xmlresponse = $this->postData($this->baseURL,\"/checkStatus\",$this->useSSL,$args);\r\n\t\t$retVal = false;\r\n\t\tif ($xmlresponse){\r\n\t\t\t$doc = DOMDocument::loadXML($xmlresponse);\r\n\t\t\tif ($doc){\r\n\t\t\t\t$isRunningResponse = $doc->getElementsByTagName('isRunning');\r\n\t\t\t\tif (!($isRunningResponse && $isRunningResponse->item(0))){\r\n\t\t\t\t\t$retVal = true;\r\n\t\t\t\t}else{\r\n\t\t\t\t\t$retVal = !($this->strToBoolean($isRunningResponse->item(0)->nodeValue));\r\n\t\t\t\t\tif (!$retVal){\r\n\t\t\t\t\t\t$secondsSinceLastDowntime = $doc->getElementsByTagName('SecondsSinceLastDowntime')->item(0)->nodeValue;\r\n\t\t\t\t\t\t$secondsSinceLastRestart = $doc->getElementsByTagName('SecondsSinceLastRestart')->item(0)->nodeValue;\r\n\t\t\t\t\t\tif ($this->timeToCompleteForm > $secondsSinceLastRestart && $this->timeToCompleteForm < $secondsSinceLastDowntime){\r\n\t\t\t\t\t\t\t$retVal = true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}else{\r\n\t\t\t\t$retVal = true;\r\n\t\t\t}\r\n\t\t}else{\r\n\t\t\t$retVal = true;\r\n\t\t}\r\n\t\treturn $retVal;\r\n\t}", "public static function munim_schedule_status_update() {\n\t\tif ( ! wp_next_scheduled( 'munim_update_estimate_status' ) ) {\n\t\t\twp_schedule_event( time(), 'daily', 'munim_update_estimate_status' );\n\t\t}\n\t}", "function wpsbc_action_get_serial_status() {\r\n\r\n\tif( ! current_user_can( 'manage_options' ) )\r\n\t\treturn;\r\n\r\n\t$serial_key = get_option( 'wpsbc_serial_key', '' );\r\n\r\n\tif( empty( $serial_key ) )\r\n\t\treturn;\r\n\r\n\t// Check to see if the notice should be shown\r\n\t$transient = get_transient( 'wpsbc_serial_status' );\r\n\r\n\tif( false !== $transient )\r\n\t\treturn;\r\n\r\n\t// Make the call to the website for the serial key status\r\n\t$response = wp_remote_get( add_query_arg( array( 'request' => 'get_serial_status', 'serial_key' => $serial_key ), 'https://www.wpsimplebookingcalendar.com/u/' ), array( 'timeout' => 30 ) );\r\n\r\n\tif( is_wp_error( $response ) )\r\n\t\treturn;\r\n\r\n\t// Set transient to make sure not to do checks next time\r\n\tset_transient( 'wpsbc_serial_status', (int)$response['body'], 36 * HOUR_IN_SECONDS );\r\n\r\n}", "private function checkApiRequestsLimit()\n {\n $tempTime = time() - $this->startTime;\n if($this->apiRequestsCount >= $this->apiRequestsLimit && $tempTime < $this->apiTimeLimit) {\n usleep(($this->apiTimeLimit - $tempTime)*1000000);\n $this->apiRequestsCount = 1;\n $this->startTime = time();\n } else {\n $this->apiRequestsCount++;\n }\n }", "protected function heartbeat() {\n\t\techo '{\"status\":\"alive\"}'; \n\t}", "function proxy_set($host,$status,$timex=0){\n\tglobal $DB_proxypool;\n\t$time_current=date('Y-m-d H:i:s');\n\t$sql=\"update proxypool set status='$status',timex='$timex' ,updatetime='$time_current' where host='$host'\";\n\t//echo $sql.\"\\n\";\n\t$DB_proxypool->query($sql);\n\n}", "protected static function set_status()\n {\n }", "abstract protected function isExpired();", "protected abstract function doHealthcheck();", "public function checkisOnCurrentHostInvalidHosts() {}", "public function isExpiring() {\n return $this->expiration - time() < 22 * 24 * 3600;\n }", "function checkServers() {\n\n global $wpdb;\n $table_name = $wpdb->prefix . \"blink_servers\";\n $sql = \"SELECT *, UNIX_TIMESTAMP(now()) now FROM $table_name\";\n $servers = $wpdb->get_results($sql,ARRAY_A);\n\n // delete orphaned links from trashed posts\n $blink_links = $wpdb->prefix . \"blink_links\";\n $delete_sql = \"DELETE bl FROM $blink_links bl, $wpdb->posts p WHERE bl.pid = p.id AND p.post_status != 'publish' AND p.post_parent = 0\";\n $wpdb->query($delete_sql);\n\n // check server's status\n if (count($servers)>0) {\n foreach ($servers as $server) {\n //\t\t\t\tif(!$server['last_update']){\n //\t\t\t\t\t// unregistered\n //\t\t\t\t\t$this->regServer($server);\n //\t\t\t\t} elseif (!$server['last_successful_update']) {\n //\t\t\t\t\t// pending approval (14400 == 4hr)\n //\t\t\t\t\t$time_diff = (int)$server['now'] - (int)$server['last_update'];\n //if($time_diff > 0 ){\t$this->updateServer($server);}\n //\t\t\t\t} elseif ($server['last_update'] > $server['last_successful_update']){\n //echo 'failed';\n //\t\t\t\t\t// failed_update (3600 == 1hr)\n //\t\t\t\t\t$time_diff = (int)$server['now'] - (int)$server['last_update'];\n //if($time_diff > 0 ){\n //echo 'check 3';\n //\t\t\t\t\t\t$this->updateServer($server);\n //\t\t\t\t\t}\n //\t\t\t\t} elseif ($server['last_update'] == $server['last_successful_update']){\n //\t\t\t\t\t// successful update (601200 == 1wk)\n //\t\t\t\t\t$time_diff = (int)$server['now'] - (int)$server['last_update'];\n //if($time_diff > 0 ){\n //echo 'check 4';\n $this->updateServer($server);\n //\t\t\t\t\t}\n //\t\t\t\t}\n }\n }\n }", "protected function calculateStatus(): int\n {\n return 200;\n }", "function http_send_status($status) {}", "function get_host_status($host_data)\n{\n global $API_version;\n global $CGM_version;\n\n $arr = array ('command'=>'version','parameter'=>'');\n $version_arr = send_request_to_host($arr, $host_data);\n\n if ($version_arr)\n {\n if ($version_arr['STATUS'][0]['STATUS'] == 'S')\n {\n $API_version = $version_arr['VERSION'][0]['API'];\n $CGM_version = $version_arr['VERSION'][0]['CGMiner'];\n \n if ($API_version >= 1.0)\n return true;\n }\n }\n return false;\n}", "public function changestatusAction()\n {\n $user_params=$this->_request->getParams();\n $automail=new Ep_Message_AutoEmails();\n $ftvrequest_obj = new Ep_Ftv_FtvRequests();\n $ftvcontacts_obj = new Ep_Ftv_FtvContacts();\n $ftvpausetime_obj = new Ep_Ftv_FtvPauseTime();\n\n if($user_params['status'] == 'closed')\n $data = array(\"status\"=>$user_params['status'], \"cancelled_at\"=>date('Y-m-d H:i:s'));////////updating\n elseif($user_params['status'] == 'done')\n $data = array(\"status\"=>$user_params['status'], \"closed_at\"=>date('Y-m-d H:i:s'));////////updating\n else\n $data = array(\"status\"=>$user_params['status'], \"closed_at\"=>NULL, \"cancelled_at\"=>NULL);////////updating\n $query = \"identifier= '\".$user_params['requestId'].\"'\";\n $requestdetails = $ftvrequest_obj->requestDetailsById($user_params['requestId']);\n $contactId = $requestdetails[0]['request_by'];\n $contactdetails = $ftvcontacts_obj->getFtvContactDetails($contactId);\n $contactName = $contactdetails[0]['first_name'].\" \".$contactdetails[0]['last_name'];\n $parameters['ftvobject'] = $requestdetails[0]['request_object'];\n $parameters['ftvcontactName'] = $contactName;\n $ftvrequest_obj->updateFtvRequests($data,$query);\n ////making the time resume if its in pause////\n $inpause = $ftvpausetime_obj->inPause($user_params['requestId']);\n if($inpause == 'yes')\n {\n $data = array(\"resume_at\"=>date('Y-m-d H:i:s'));////////updating\n $query = \"ftvrequest_id = '\".$user_params['requestId'].\"' AND resume_at IS NULL \";\n $ftvpausetime_obj->updateFtvPauseTime($data,$query);\n }\n if($user_params['status'] == 'done')\n {\n if($this->adminLogin->userId != '110823103540627' ) ///when not johny head of BO user for FTV changed\n {\n $parameters['ftvrequestlink'] = \"/ftvchaine/ftvch-requests?submenuId=ML11-SL6\";\n $parameters['ftvType'] = \"chaine\";\n $automail->messageToEPMail('110823103540627',114,$parameters);// to johny\n $parameters['ftvrequestlink'] = \"http://ep-test.edit-place.com/ftvchaine/index\";\n $automail->sendFtvChaineContactsPersonalEmail($contactId,114,$parameters); // to client contact\n }\n else // in case jhony change the status\n {\n $parameters['ftvrequestlink'] = \"http://ep-test.edit-place.com/ftvchaine/index\";\n $automail->sendFtvChaineContactsPersonalEmail($contactId,114,$parameters); // to client contact\n }\n }\n\n }", "public function respon(){\n //update 'status'\n }", "function wp_change_request_timeout($time) {\n return 10; //new number of seconds\n}", "public function isExpired();", "public function isExpired();", "public function isExpired();", "public function isExpired();", "public function isExpired();", "public function isExpired();", "public function isExpired();", "public function isPending(): bool;", "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 }", "protected function updateRequestTime()\n {\n $this->requestTimestamp = microtime(true);\n }", "public function isPending()\r\n {\r\n return $this->status >= 0 && $this->status < 100;\r\n }", "protected function handleSessionLifeTimeExpired() {}", "protected function handleSessionLifeTimeExpired() {}", "function failed($reason) {\n // Status for ELB, will cause ELB to remove instance.\n header(\"HTTP/1.0 503 Service unavailable: failed $reason check\");\n // Status for the humans.\n print \"Server is DOWN<br>\\n\";\n echo \"Failed: $reason\";\n exit;\n}", "function internalError() {\n\t\t$this->status = $this->STATUS_INTERNAL_ERROR;\n\t\t$this->noCache();\n\t}", "public function isOperational();", "function wp_schedule_https_detection()\n {\n }", "public function getIsAlive() {\n $response = RiiakUtils::httpRequest('GET', RiiakUtils::buildUrl($this) . '/ping');\n return ($response != NULL) && ($response['body'] == 'OK');\n }", "public function heartBeat(): void\n {\n $this->amqp->checkHeartBeat();\n }", "function awaiting_trigger_check() {\n\t\tif(intval(get_query_var('lepress-teacher-awaiting')) == 1) {\n\t\t\t//WP default header is 404, have to override it\n\t\t\theader(\"HTTP/1.0 200 OK\");\n\t\t\tif(isSet($_GET['w'])) {\n\t\t\t\techo $this->getAwaitingBubble($_GET['w']);\n\t\t\t}\n\t\t\texit;\n\t\t}\n \t}", "public function updateStatusOnNewDay() {\n // Update advs\n UIAdv::where('last_update_time', '<', Carbon::now()->subDays(1))->where('status', '=', 1)->update([\n 'last_update_time' => Carbon::now(),\n 'status' => 0\n ]);\n\n // Update advgroups\n UIAdvGroup::where('last_update_time', '<', Carbon::now()->subDays(1))->where('status', '=', 1)->update([\n 'last_update_time' => Carbon::now(),\n 'status' => 0\n ]);\n\n // Update campaign\n UICampaign::where('last_update_time', '<', Carbon::now()->subDays(1))->where('status', '=', 1)->update([\n 'last_update_time' => Carbon::now(),\n 'status' => 0\n ]);\n\n // Update project\n UIProject::where('last_update_time', '<', Carbon::now()->subDays(1))->where('status', '=', 1)->update([\n 'last_update_time' => Carbon::now(),\n 'status' => 0\n ]);\n }", "public function isExpired(): bool;", "public function requestStatus(Request $request) {\n\t\t$services = Service::findOrFail($request -> submit);\n\n\t\t$services -> update(['status' => $request -> status]);\n\n\t\t$user = User::where('id', '=', $services -> user_id) -> get() -> first();\n\n\t\tif (isset($services -> status)) {\n\n\t\t\tMail::send('auth/emails.statusChange', ['services' => $services], function($m) use ($services, $user) {\n\n\t\t\t\t$m -> from('[email protected]', 'Team AfterCares');\n\n\t\t\t\t$m -> to($user -> email, $user -> name) -> subject('Change in status of request');\n\t\t\t});\n\n\t\t\treturn back() -> withInput();\n\t\t}\n\n\t}", "function wp_ajax_health_check_background_updates()\n {\n }", "private function checkCache(\\Request\\Module $request)\n\t{\n\t\tif ($this->cache === true && isset($this->expires)) {\n\t\t\t$registry = $this->cacheRegistry();\n\t\t\t$cached = $registry->get(\"response\", \"cache\", $request->params());\n\t\t\t\n\t\t\tif ($cached && !$cached->isExpired()) {\n\t\t\t\t$this->_send($cached->contents(), $request);\n\t\t\t\texit;\n\t\t\t}\n\t\t}\n\t}", "function bump_request_timeout() {\n\t\treturn 60;\n\t}", "abstract public function getStatus();", "public function isPermanent(): bool\n {\n return $this->expired_at->format('Y-m-d H:i:s') === '2038-01-01 00:00:00';\n }", "public function getStatus($host);", "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 }", "public function cron(){\n\t\t$query = 'SELECT `dr`.`device_id` FROM `device_registration` AS `dr` WHERE `http_client` = true;';\n\n\t\tif(!$this->morseduino -> _query($devices, $query, FALSE)){\n\t\t\ttrigger_error('', E_USER_NOTICE);\n\t\t\treturn FALSE;\n\t\t}\n\t\tunset($query);\n\n\t\tforeach($devices as $dkey => $dvalue){\n\t\t\t$this->_idle_check($dvalue['device_id']);\n\t\t}\n\t\tunset($devices);\n\t\tunset($dkey);\n\t\tunset($dvalue);\n\n\t\treturn TRUE;\n\t}", "function update_status() {\r\n global $order, $db;\r\n\r\n if ( ($this->enabled == true) && ((int)MODULE_PAYMENT_NOCHEX_ZONE > 0) ) {\r\n $check_flag = false;\r\n $check_query = $db->Execute(\"select zone_id from \" . TABLE_ZONES_TO_GEO_ZONES . \" where geo_zone_id = '\" . MODULE_PAYMENT_NOCHEX_ZONE . \"' and zone_country_id = '\" . $order->billing['country']['id'] . \"' order by zone_id\");\r\n while (!$check_query->EOF) {\r\n if ($check_query->fields['zone_id'] < 1) {\r\n $check_flag = true;\r\n break;\r\n } elseif ($check_query->fields['zone_id'] == $order->billing['zone_id']) {\r\n $check_flag = true;\r\n break;\r\n }\r\n $check_query->MoveNext();\r\n }\r\n\r\n if ($check_flag == false) {\r\n $this->enabled = false;\r\n }\r\n }\r\n }", "function awaiting_trigger_check() {\n\t\tif(intval(get_query_var('lepress-student-awaiting')) == 1) {\n\t\t\t//WP default header is 404, have to override it\n\t\t\theader(\"HTTP/1.0 200 OK\");\n\t\t\tif(isSet($_GET['w'])) {\n\t\t\t\techo $this->getAwaitingBubble($_GET['w']);\n\t\t\t}\n\t\t\texit;\n\t\t}\n \t}", "public function test_refreshMessageTimeout() {\n\n }", "function tep_set_banner_status($banners_id, $status, $site_id) {\n if ($status == '1') {\n return tep_db_query(\"update \" . TABLE_BANNERS . \" set status = '1',\n expires_impressions = NULL, expires_date = NULL, date_status_change = NULL\n where banners_id = '\" . $banners_id . \"' and site_id ='\".$site_id.\"'\");\n } elseif ($status == '0') {\n return tep_db_query(\"update \" . TABLE_BANNERS . \" set status = '0', date_status_change = now() where banners_id = '\" . $banners_id . \"' and site_id ='\".$site_id.\"'\");\n } else {\n return -1;\n }\n}", "public function getServeWhileStale()\n {\n return isset($this->serve_while_stale) ? $this->serve_while_stale : 0;\n }", "private function maybe_ping_ud() {\n\n /**\n * May be dismiss notice from UD server\n */\n if( !empty( $_REQUEST[ 'dismiss_ud_notice' ] ) ) {\n $notices = get_option( 'dismissed_ud_notices' );\n if( !is_array( $notices ) ) {\n $notices = array();\n }\n array_push( $notices, $_REQUEST[ 'dismiss_ud_notice' ] );\n $notices = array_unique( $notices );\n update_option( 'dismissed_ud_notices', $notices );\n if( !empty( $_SERVER[ 'HTTP_REFERER' ] ) ) {\n wp_redirect( $_SERVER[ 'HTTP_REFERER' ] );\n } else {\n wp_redirect( admin_url( 'index.php' ) );\n }\n exit;\n }\n\n $cache = true;\n\n $option = sanitize_key( 'ud_ping_' . sanitize_key( $this->slug ) );\n $response = get_option( $option );\n\n if (\n false === $response ||\n empty( $response ) ||\n empty( $response[ 'time' ] ) ||\n ( time() - $response[ 'time' ] ) >= DAY_IN_SECONDS\n ) {\n\n $cache = false;\n\n $detected_products = array();\n\n foreach( $this->get_detected_plugins() as $product ) {\n $detected_products[ $product[ 'product_id' ] ] = array(\n 'version' => $product[ 'product_version' ],\n 'status' => $product[ 'product_status' ],\n 'product_id' => $product[ 'product_id' ],\n );\n }\n\n $response = $this->api->ping( array(\n 'product_id' => $this->slug,\n 'version' => $this->args[ 'version' ],\n 'detected_products' => base64_encode( json_encode( $detected_products ) ),\n ) );\n\n if ( false !== $response && empty( $response[ 'error' ] ) ) {\n update_option( 'ud_ping_' . sanitize_key( $this->slug ), array(\n 'time' => time(),\n 'data' => $response\n ) );\n }\n\n } else {\n if( empty( $response[ 'data' ] ) ) {\n return;\n }\n $response = $response[ 'data' ];\n }\n\n if ( false !== $response && empty( $response[ 'error' ] ) ) {\n\n /**\n * Here we can take care about response.\n *\n * @param string $this->slug ( product_id )\n * @param array $response\n * @param bool $cache got from cache or not\n */\n $this->ping_response = apply_filters( 'ud::ping::response', $response, $this->slug, $cache );\n\n /**\n * Render Admin Notice from UD server.\n */\n if( !empty( $this->ping_response[ 'message' ] ) ) {\n global $_ud_ping_notices;\n\n if( !isset( $_ud_ping_notices ) || !is_array( $_ud_ping_notices ) ) {\n $_ud_ping_notices = array();\n }\n\n $notice = $this->ping_response[ 'message' ];\n\n /** Determine if user has permissions to see plugin notices */\n if ( ! function_exists( 'wp_get_current_user' ) ) {\n require_once( ABSPATH . 'wp-includes/pluggable.php' );\n }\n if( !current_user_can( 'activate_plugins' ) ) {\n return;\n }\n\n /** Determine if notice dismissed */\n $dismissed = get_option( 'dismissed_ud_notices' );\n $dismissed = is_array( $dismissed ) ? $dismissed : array();\n if( in_array( md5( $notice ), $dismissed ) ) {\n return;\n }\n\n if( in_array( $notice, $_ud_ping_notices ) ) {\n return;\n }\n\n array_push( $_ud_ping_notices, $this->ping_response[ 'message' ] );\n\n if( !has_action( 'admin_notices', array( __CLASS__, 'ping_admin_notices' ) ) ) {\n add_action( 'admin_notices', array( __CLASS__, 'ping_admin_notices' ) );\n add_filter( 'ud::ping::response::admin_notice::icon', array( $this, 'get_admin_notice_icon' ) );\n }\n\n }\n\n }\n\n }", "private function manageStatus()\n {\n $this->updateStatus();\n $this->checkStatus();\n }", "private function requestCallback()\n {\n $type = 'warning';\n $message = \\esc_html__('Nothing to see here.', 'wp-rest-api-cache');\n\n if (! empty($_REQUEST[self::NONCE_NAME]) &&\n \\wp_verify_nonce($_REQUEST[self::NONCE_NAME], 'rest_cache_options') !== false\n ) {\n if (! empty($_GET['rest_cache_empty']) &&\n \\filter_var($_GET['rest_cache_empty'], FILTER_VALIDATE_INT) === 1\n ) {\n if ($this->wpCacheFlush()) {\n $type = 'updated';\n $message = \\esc_html__('The cache has been successfully cleared', 'wp-rest-api-cache');\n } else {\n $type = 'error';\n $message = \\esc_html__('The cache is already empty', 'wp-rest-api-cache');\n }\n /**\n * Action hook when the cache is flushed.\n *\n * @param string $message The message set.\n * @param string $type The settings error code.\n * @param \\WP_User The current user.\n */\n \\do_action(self::ACTION_REQUEST_FLUSH_CACHE, $message, $type, \\wp_get_current_user());\n } elseif (! empty($_POST[self::OPTION_KEY])) {\n if ($this->updateOptions($_POST[self::OPTION_KEY])) {\n $type = 'updated';\n $message = \\esc_html__('The cache time has been updated', 'wp-rest-api-cache');\n } else {\n $type = 'error';\n $message = \\esc_html__('The cache time has not been updated', 'wp-rest-api-cache');\n }\n }\n \\add_settings_error('wp-rest-api-notice', \\esc_attr('settings_updated'), $message, $type);\n }\n }", "function ticketbud_server_connectivity_ok() {\n\t// skip the check on WPMU because the status page is hidden\n\tglobal $ticketbud_unused_api_key;\n\tif ( $ticketbud_unused_api_key )\n\t\treturn true;\n\t$servers = ticketbud_get_server_connectivity();\n\treturn !( empty($servers) || !count($servers) || count( array_filter($servers) ) < count($servers) );\n}", "public function is_expired()\n {\n }", "protected function status()\n {\n }", "public function isPending()\n {\n return true;\n }", "function wp_ajax_nopriv_heartbeat()\n {\n }", "private function checkExpirated() {\n\n }", "public function updateStatusRequest()\n { \n $now = Mage::getSingleton('core/date')->gmtDate(); \n $items = Mage::getModel('qquoteadv/qqadvcustomer')->getCollection();\n $items->addFieldToFilter('status', Ophirah_Qquoteadv_Model_Status::STATUS_REQUEST);\n $items->getSelect()->group('store_id');\n if($items->getSize() >0 ){\n $data = $items->getData();\n\n foreach($data as $unit) { \n $storeId = $unit['store_id'];\n $day = Mage::getStoreConfig('qquoteadv/general/expirtime_proposal', (int)$storeId); \n \n $now = Mage::getSingleton('core/date')->gmtDate(); \n $collection = Mage::getModel('qquoteadv/qqadvcustomer')->getCollection();\n $collection->addFieldToFilter('status', Ophirah_Qquoteadv_Model_Status::STATUS_REQUEST);\n $collection->getSelect()\n ->where('created_at<INTERVAL -' . $day . ' DAY + \\'' . $now . '\\'');\n $collection->load(); \n\n foreach ($collection as $item) { \n $item->setStatus(Ophirah_Qquoteadv_Model_Status::STATUS_REQUEST_EXPIRED);\n $item->save(); \n }\n }\n }\n }", "public static function is_expired()\n { \n $conf = $GLOBALS['CONF'];\n \n if (!$conf)\n { \n $conf = new Ossim_conf();\n $GLOBALS['CONF'] = $conf;\n }\n \n $expired_timeout = intval($conf->get_conf('session_timeout')) * 60;\n \n if ($expired_timeout != 0)\n { \n $time = gmdate('U');\n \n if (isset($_SESSION['_expiration_time']) && intval($_SESSION['_expiration_time']) + $expired_timeout < $time) \n {\n $ossim_link = $conf->get_conf('ossim_link');\n $login_location = preg_replace(\"/(\\/)+/\",\"/\",$ossim_link . '/session/login.php?action=logout'); \n \n header(\"Location: $login_location\");\n }\n \n //Only update if not exists bypass => header ajax responses\n if (intval(GET('bypassexpirationupdate')) != 1 && intval(POST('bypassexpirationupdate')) != 1) \n {\n $_SESSION['_expiration_time'] = $time;\n \n Session_activity::update($_SESSION['_expiration_time']);\n }\n }\n }", "function fa_status_expired(){\n\tglobal $fa_pro;\n\treturn $fa_pro->get_status_expired();\n}", "function get_privileged_status($host_data)\n{\n global $API_version;\n global $CGM_version;\n\n if ($API_version >= 1.2 )\n {\n $arr = array ('command'=>'privileged','parameter'=>'');\n $response = send_request_to_host($arr, $host_data);\n\n if ($response['STATUS'][0]['STATUS'] == 'S')\n return true;\n }\n else \n return true;\n\n return false;\n}", "public function ping()\r\n {\r\n $ch = curl_init();\r\n curl_setopt($ch, CURLOPT_URL, \"http://\".WEMO_IP.\":\".WEMO_PORT);\r\n curl_setopt($ch, CURLOPT_NOBODY, true);\r\n curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);\r\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);\r\n curl_setopt($ch, CURLOPT_VERBOSE, false);\r\n curl_setopt($ch, CURLOPT_TIMEOUT, 5);\r\n $result = curl_exec($ch);\r\n $httpcode = curl_getinfo($ch, CURLINFO_HTTP_CODE);\r\n curl_close($ch);\r\n if($httpcode >= 200 && $httpcode <500){\r\n return true;\r\n } else {\r\n return false;\r\n }\r\n }", "public function updateFailed();", "function update_status()\n\t{\n\t\t$data = filter_forwarded_data($this);\n\t\t\n\t\tif(!empty($data['t']) && !empty($data['list'])) $response = $this->_tender->update_status($data['t'], explode('--',$data['list']));\n\t\t\n\t\t# all good\n\t\tif(!empty($response) && $response['boolean']){\n\t\t\t$data['msg'] = 'The Invitation for Bids/Quotations status has been updated.';\n\t\t\t$data['area'] = 'refresh_list_msg';\n\t\t} \n\t\t# there was an error\n\t\telse {\n\t\t\t$data['msg'] = (!empty($data['t']) && !empty($data['list']))? 'ERROR: There was an error updating the Invitation for Bids/Quotations status.': 'ERROR: This action can not be resolved';\n\t\t\t$data['area'] = 'basic_msg';\n\t\t}\n\t\t\n\t\t$this->load->view('addons/basic_addons', $data);\n\t}", "public function checkApiIsUp() {\n\t\t$result = $this->useCfCURLQuery( \"https://socket.bittrex.com/signalr/ping\" );\n\t\tif ( $result ) {\n\t\t\treturn true;\n\t\t}\n\n\t\treturn false;\n\t}", "private function isRateLimitReached()\n {\n if (!$this->getRateLimit()) {\n throw new InstagramThrottleException('400 Bad Request : You have reached Instagram API Rate Limit', 400);\n }\n }", "static function process_scheduler(){\n\t\treturn self::process_offline_leads();\n\t}", "public function request_manager( )\n\t{\n\t\t$last_request = $this->php_session->get('last_request');\n\t\t//5 second interval\n\t\tif( $last_request+5 >= time() )\n\t\t{\n\t\t\t$req_count = $this->php_session->get('request_count');\n\t\t\t$req_count += 1;\n\t\t\t$this->php_session->set('request_count' , $req_count);\n\t\t\tif( $req_count >= 20 )\n\t\t\t\t$this->error('Too many HTTP requests from your session.');\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$this->php_session->set('request_count' , 0 );\n\t\t}\n\t\t$this->php_session->set('last_request' , time( ) );\n\t\t\t\n\t}", "public function call_cache_status(){\n \n \n /**\n * Load Cache EndPoint URL from plugin options to make a request\n */\n $arvan_url = Redux::get_option( $this->opt_name, 'arvan-cache-endpoint-url');\n $domain = Redux::get_option( $this->opt_name, 'arvan-domain');\n $full_url = $arvan_url . $domain . '/caching';\n /**\n * Load API-Key from plugin options\n */\n $arvan_api_key = Redux::get_option( $this->opt_name, 'arvan-api-key');\n \n \n /**\n * Make a request to server\n */\n $response = wp_remote_get( $full_url , array(\n \n \n 'headers' => array('Authorization' => $arvan_api_key),\n \n )\n );\n\n\n if ( is_wp_error( $response ) ) {\n \n $error_message = $response->get_error_message();\n return \"Something went wrong: $error_message\";\n \n } else {\n \n if(!isset($response['body']))\n return;\n\n /**\n * Get cache status from JSON response\n */\n $response_object = json_decode($response['body']);\n $cache_status = $response_object->data->cache_status;\n \n /**\n * Save the remote cache status to plugin options\n */\n Redux::set_option( $this->opt_name, 'arvan-cache-status', $cache_status);\n \n }\n \n }", "protected function validNotExpiredTimestamp()\n {\n if ((abs($this->request->get('timestamp') - time())) > self::TIMEOUT) {\n throw new VanillaInvalidRequestException('The timestamp is invalid.');\n }\n }", "public function expire() {\n logit_r($this, 'expire'); \n $status = ($this->status == UserLoginReq::STATUS_NOTIFIED) ? UserLoginReq::STATUS_PAST_GRACE : UserLoginReq::STATUS_EXPIRED;\n logit_r($status, 'status');\n $this->status = $status;\n $this->save(true);\n }", "public function test_background_updates()\n {\n }", "private function updateOperation() {\n sleep(1);\n }", "public function update_availability()\n\t{\n\t\tdate_default_timezone_set(\"Asia/Kolkata\");\n\t\t$res=date('Y-m-d H:i', time());\n\t\techo $res;\n\t\t$data=$this->Setting_model->check_end(); \n\t\tforeach($data as $key)\n\t\t{ $id=$key->id;\n\t\t\t$user_id= $key->user_id;\n\t\t\t//echo $id; echo $user_id;\n\t\t\t$date_time=$key->dates .' '.$key->end_time;\n\t\t\tif($res==$date_time)\n\t\t\t{\n\t\t\t\t//echo \"yess\";\n\t\t\t \t$this->Setting_model->update_time($id,$user_id);\n\t\t\t}\n\t\t}\n\t}", "private function send_status()\n {\n switch ($this->_status) \n {\n case 100: $text = 'Continue'; break;\n case 101: $text = 'Switching Protocols'; break;\n case 200: $text = 'OK'; break;\n case 201: $text = 'Created'; break;\n case 202: $text = 'Accepted'; break;\n case 203: $text = 'Non-Authoritative Information'; break;\n case 204: $text = 'No Content'; break;\n case 205: $text = 'Reset Content'; break;\n case 206: $text = 'Partial Content'; break;\n case 300: $text = 'Multiple Choices'; break;\n case 301: $text = 'Moved Permanently'; break;\n case 302: $text = 'Moved Temporarily'; break;\n case 303: $text = 'See Other'; break;\n case 304: $text = 'Not Modified'; break;\n case 305: $text = 'Use Proxy'; break;\n case 400: $text = 'Bad Request'; break;\n case 401: $text = 'Unauthorized'; break;\n case 402: $text = 'Payment Required'; break;\n case 403: $text = 'Forbidden'; break;\n case 404: $text = 'Not Found'; break;\n case 405: $text = 'Method Not Allowed'; break;\n case 406: $text = 'Not Acceptable'; break;\n case 407: $text = 'Proxy Authentication Required'; break;\n case 408: $text = 'Request Time-out'; break;\n case 409: $text = 'Conflict'; break;\n case 410: $text = 'Gone'; break;\n case 411: $text = 'Length Required'; break;\n case 412: $text = 'Precondition Failed'; break;\n case 413: $text = 'Request Entity Too Large'; break;\n case 414: $text = 'Request-URI Too Large'; break;\n case 415: $text = 'Unsupported Media Type'; break;\n case 500: $text = 'Internal Server Error'; break;\n case 501: $text = 'Not Implemented'; break;\n case 502: $text = 'Bad Gateway'; break;\n case 503: $text = 'Service Unavailable'; break;\n case 504: $text = 'Gateway Time-out'; break;\n case 505: $text = 'HTTP Version not supported'; break;\n default:\n exit('Unknown http status code \"' . htmlentities($this->_status) . '\"');\n break;\n }\n\n $protocol = (isset($_SERVER['SERVER_PROTOCOL']) ? $_SERVER['SERVER_PROTOCOL'] : 'HTTP/1.0');\n\n header($protocol . ' ' . $this->_status . ' ' . $text);\n }", "public function updateStatusStart()\n {\n $this->resetStatuses();\n $this->pubDirectory->touch($this->getRelativeFilePath(self::IMPORT_STATUS_BUSY));\n }" ]
[ "0.6363375", "0.60546505", "0.5959685", "0.5930018", "0.5883651", "0.5880172", "0.58501047", "0.58417004", "0.581112", "0.57586026", "0.57556576", "0.571434", "0.5667751", "0.5661533", "0.56077623", "0.5595695", "0.5535822", "0.5535685", "0.55131984", "0.5510996", "0.5505398", "0.5467214", "0.54646015", "0.54342026", "0.543334", "0.5419101", "0.54106325", "0.5389651", "0.53856546", "0.53825456", "0.5363938", "0.5330687", "0.5327048", "0.5308699", "0.5296627", "0.5293116", "0.52907425", "0.5288021", "0.5288021", "0.5288021", "0.5288021", "0.5288021", "0.5288021", "0.5288021", "0.528403", "0.526831", "0.5260675", "0.5254261", "0.52509844", "0.52509844", "0.52491844", "0.5241279", "0.5238654", "0.5238369", "0.5233693", "0.523328", "0.5232818", "0.52273273", "0.5226828", "0.52228445", "0.5215405", "0.5214019", "0.52125806", "0.52117455", "0.5197306", "0.5197029", "0.518387", "0.51649135", "0.5162278", "0.5153519", "0.5139971", "0.5139779", "0.5138025", "0.51345307", "0.5134136", "0.5130876", "0.513006", "0.5128523", "0.51252127", "0.51230145", "0.5117555", "0.51123506", "0.5111643", "0.511064", "0.50996095", "0.5091414", "0.5091013", "0.5089299", "0.5088639", "0.508794", "0.50877845", "0.50842285", "0.50750196", "0.50697196", "0.5052906", "0.50490445", "0.50479877", "0.5036341", "0.5030862", "0.5030182", "0.50300455" ]
0.0
-1
/SQL to add 3 star booking to DB
function book3 () { $name = $email = $phone = ""; $people = $_POST["people3"]; $tempin3 = $_POST["checkin3"]; $tempout3 = $_POST["checkout3"]; $checkin3 = strtotime($_POST["checkin3"]); $checkout3 = strtotime($_POST["checkout3"]); $date = $checkout3 - $checkin3; $datediff = number_format(round($date /(60 * 60 * 24))); if ($datediff == 0) $datediff = 1; $totalcost = $datediff*$_POST["people3"]*9800; $conn = mysqli_connect('localhost:3308','root', '','hotelmanagement'); if(isset($_SESSION['name']) && isset($_SESSION['email']) && isset($_SESSION['phone'])) { $name = $_SESSION['name']; $phone = $_SESSION['phone']; $email = $_SESSION['email']; $sql = "INSERT INTO booking (name, email, contactno, checkin, checkout, roomtype, days, people, cost) VALUES ( '$name', '$email', '$phone', '$tempin3', '$tempout3', 'Regular - 3 Star', '$datediff', '$people', '$totalcost')"; } else { $name = $_SESSION['nameSC']; $phone = $_SESSION['phoneSC']; $email = $_SESSION['emailSC']; $sql = "INSERT INTO booking (name, email, contactno, checkin, checkout, roomtype, days, people, cost) VALUES ('$name', '$email', '$phone', '$tempin3', '$tempout3', 'Regular - 3 Star', '$datediff', '$people', '$totalcost')"; } if (mysqli_query($conn, $sql)) { echo "<script type = 'text/javascript'>alert('Booking confirmed! Payment will be processed at the Hotel. Thank you for choosing Four Seasons!'); window.location='CustomerDisplayPage.php';</script>"; $name = $phone = $email = ""; } else { echo "Error: " . $sql . "<br>" . mysqli_error($conn); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function bookcar($c_id,$d_id,$u_id,$date)\n{\n\t$sql=\"insert into ride_details(u_id,d_id,c_id,booking_date,dep_date)values($u_id,$d_id,$c_id,'$date','\".date(\"Y-m-d\").\"')\";\n\t$GLOBALS['db']->exec($sql);\n\t$sql=\"update care_detail set status=1 where c_id=$c_id\";\n\t$GLOBALS['db']->exec($sql);\n\t$sql=\"update driver_detail set status=1 where d_id=$d_id\";\n\t$GLOBALS['db']->exec($sql);\n\n}", "public function addBooking()\r\n {\r\n $loggedin = isset($_SESSION['user']);\r\n if(! $loggedin)\r\n {\r\n return redirect('');\r\n }\r\n $user = $_SESSION['user']->account_no;\r\n\r\n $showtime = $_POST['showtime'];\r\n $num_seats = $_POST['num_seats'];\r\n\r\n App::get('database')->insert('booking', compact('user', 'showtime', \"num_seats\"));\r\n\r\n redirect('');\r\n }", "public function addBooking() {\n // get data\n $this->getdata();\n \n // validate data\n if (!isset($this->data['cnp']) || empty($this->data['cnp'])) {\n exit('Please provide a CNP');\n } elseif(!$this->userExists()) {\n exit('No user found with provided CNP');\n } elseif(!$this->isClient()) {\n exit('Incorrect user role');\n }\n if (!isset($this->data['program']) || empty($this->data['program'])) {\n exit('Please provide a program');\n } elseif (!$this->programExists($this->data['program'])) {\n exit('Program does not exist');\n } else {\n // check if program is not due\n $program = $this->getProgram($this->data['program']);\n if (strtotime($program->start_date) <= time()) {\n exit('Program is due');\n }\n // check if date range is available, seats not taken and not already booked\n if (!$this->isBooked() && $this->isAvailable($program) && $this->hasSeats($program)) {\n // insert booking to database\n $statement = 'INSERT INTO booking (user_id, program_id) VALUES (:user_id, :program_id);';\n try {\n $statement = $this->db->prepare($statement);\n $statement->execute(array(\n 'user_id' => $this->getUser($this->data['cnp']),\n 'program_id' => $this->data['program']\n ));\n echo 'Succesfully added booking';\n } catch (\\PDOException $e) {\n exit($e->getMessage());\n } \n }\n }\n }", "function add_student_availability($term, $day, $hour, $type) {\n //this assumes that the primary key is being insterted automatically using a counter\n $query = 'INSERT into student_avail(term_id, weekday, hour, type) VALUES($1,$2,$3,$4)';\n\n return pg_query_params($CONNECTION, $query, array($term, $day, $hour, $type));\n }", "function wpbs_insert_booking($data)\n{\n\n return wp_booking_system()->db['bookings']->insert($data);\n\n}", "function add_update_booking_items(){\t\n \t\t$house=$this->input->post('house2');\n\t\t$panjang=$this->input->post('panjang');\n\t\t$lebar=$this->input->post('lebar');\n\t\t$tinggi=$this->input->post('tinggi');\n\t\t$volume=$panjang*$lebar*$tinggi;\n\t\t\n\t\t$items=array(\n\t\t'HouseNo' =>$house,\n\t\t'NoPack'=>$this->input->post('pack'),\n\t\t'Length'=>$this->input->post('panjang'),\n\t\t'Width'=>$this->input->post('lebar'),\n\t\t'Height'=>$this->input->post('tinggi'),\n\t\t'Volume'=>$volume,\n\t\t'Date'=>date('Y-m-d H:i:s')\n\t\t);\t\t\n\t\t $this->model_app->insert('booking_items',$items);\n\t\t \n\tredirect('transaction/edit_outgoing_house/'.$house);\n }", "public function addBooking($data)\n\t{\n\t\t$this->db->insert($this->pro->prifix.$this->pro->booking,$data);\n\t\treturn $this->db->insert_id();\n\t\t\n\t}", "private function saveRepeatYearly(){\n Loader::db()->Execute(\"INSERT INTO SchedulizerEventRepeat (eventID) VALUES(?)\", array(\n $this->eventObj->getEventID()\n ));\n }", "public function createSacksWeight()\n {\n \n \t$shift = $finished = $cols = \"\";\n\t\t\n $shift = trim($_POST[\"shift\"]);\n $shift = stripslashes($shift);\n $shift = htmlspecialchars($shift);\n\t\t\n\t\t$finished = trim($_POST[\"finished\"]);\n $finished = stripslashes($finished);\n $finished = htmlspecialchars($finished);\n\t\n\t\t$cols = trim($_POST[\"cols\"]);\n $cols = stripslashes($cols);\n $cols = htmlspecialchars($cols);\n\t\t\n //DATE\n $date = date(\"Y-m-d\");\n if($shift == 2)\n {\n $date = date(\"Y-m-d\", time() - 60 * 60 * 24);\n }\n if(!empty($_POST['date']))\n {\n $myDateTime = DateTime::createFromFormat('d/m/Y', $_POST['date']);\n $newDateString = $myDateTime->format('Y-m-d');\n $date = $newDateString;\n }\n\t\t\n\t\t$totalnet = $totalSacks = $number = 0;\n\t\t\n\t\t$sacks = \"INSERT INTO `injection_sacks_weight`\n(`injection_sacks_weight_id`,`date_sacks`,`shift`,`number`,`weight`,`user_id`,`finishproduct`,`cols`)\nVALUES\";\n\t\tforeach ($_POST as $k=>$v)\n\t\t{\n\t\t\tif (substr( $k, 0, 3 ) === \"wt_\" and !empty($v)){\n\t\t\t\t$i = explode(\"_\",$k)[1];\n\t\t\t\t\n\t\t\t\t$no = trim($_POST[\"no_\".$i]);\n\t\t\t\t$number = $number + $no;\n\t\t\t\t$totalSacks = $totalSacks + $no;\n\t\t\t\t$totalnet = $totalnet + $v;\n\t\t\t\t$sacks = $sacks. \" (NULL, '\". $date.\"', \". $shift .\", \". $no .\", \". $v .\", \". $_SESSION['Userid'] .\", \". $finished .\", \". $cols .\") ,\";\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\t$update = \"\";\n\t\t\n\t\t\n\t\t$sql = \"SELECT `injection_sacks_production_id`, SUM(`sacks`) as total, SUM(used) as used\nFROM `injection_sacks_production`\nWHERE `status_production` = 0 AND cols= \". $cols.\" AND finishproduct = \". $finished .\"\n\";\n\t\t\n if($stmt = $this->_db->prepare($sql))\n {\n $stmt->execute();\n while($row = $stmt->fetch())\n {\n\t\t\t\tif(!is_null($row['injection_sacks_production_id']))\n\t\t\t\t{\n\t\t\t\t\t$TOTAL = $row['total'] - $row['used'];\n\t\t\t\t\tif($TOTAL<$number)\n\t\t\t\t\t{\n\t\t\t\t\t\techo '<strong>ERROR</strong> The sacks were not added to the production. Because there is not enought injection sacks production in stock. <br> There are <strong>'. $TOTAL .'</strong> kgs in stock, and you need <strong>'. $number .'</strong> sacks. Please try again after submit the sacks for the production.';\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t {\n\t\t\t\t\t\techo '<strong>ERROR</strong> The sack was not added to the production. ecause there is not enought injection sacks production in stock. <br> Please try again after submit the sacks for the production.';\n\t\t\t\t\t\treturn false;\n\t\t\t\t }\n }\n\t\t}\n\t\t\n\t\t$sql = \"SELECT `injection_sacks_production_id`, `sacks`, used\n\t\t\t\tFROM `injection_sacks_production`\n\t\t\t\tWHERE `status_production` = 0 AND cols= \". $cols.\" AND finishproduct = \". $finished .\"\n\t\t\t\tORDER BY `date_production` DESC, `injection_sacks_production_id`\n\t\t\t\tLIMIT 10;\";\n\t\t\n if($stmt = $this->_db->prepare($sql))\n {\n $stmt->execute();\n while($row = $stmt->fetch())\n {\n\t\t\t\tif(!is_null($row['injection_sacks_production_id']))\n\t\t\t\t{\n\t\t\t\t\t$TOTAL = $row['sacks'] - $row['used'];\n\t\t\t\t\tif(($TOTAL > $number) and ($number > 0))\n\t\t\t\t\t{\n\t\t\t\t\t\tif($number + $row['used'] == $row['sacks'])\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t$update = $update . \"\n\t\t\t\t\t\tUPDATE `injection_sacks_production` SET\n `used` = `used`+\". $number .\", `status_production` = 1\n\t\t\t\t\t\tWHERE `injection_sacks_production_id` = \". $row['injection_sacks_production_id'].\"; \";\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t$update = $update . \"\n\t\t\t\t\t\tUPDATE `injection_sacks_production` SET\n `used` = `used`+\". $number .\", `status_production` = 0\n\t\t\t\t\t\tWHERE `injection_sacks_production_id` = \". $row['injection_sacks_production_id'].\"; \";\n\t\t\t\t\t\t}\n\t\t\t\t\t\t$number = 0;\n\t\t\t\t\t\t$stmt->closeCursor();\n\t\t\t\t\t}\n\t\t\t\t\telse if(($TOTAL <= $number) and ($number > 0))\n\t\t\t\t\t{\n\t\t\t\t\t\t$update = $update . \"\n\t\t\t\t\t\tUPDATE `injection_sacks_production` SET\n `used` = `used`+\". $TOTAL .\", `status_production` = 1\n\t\t\t\t\t\tWHERE `injection_sacks_production_id` = \". $row['injection_sacks_production_id'].\";\";\n\t\t\t\t\t\t$number = $number - $TOTAL;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t {\n\t\t\t\t\t\techo '<strong>ERROR 3</strong> The sack was not added to the production. ecause there is not enought injection sacks production in stock. <br> Please try again after submit the sacks for the production.';\n\t\t\t\t\t\treturn false;\n\t\t\t\t }\n }\n\t\t\n\t\t\t\t\t\n\t\t\t$transfer = \" INSERT INTO `stock_materials_transfers`(`stock_materials_transfers_id`,`machine_from`,`machine_to`,`material_id`,`date_required`,`bags_required`,`bags_approved`,`bags_issued`,`bags_receipt`,`user_id_required`,`user_id_approved`,`user_id_issued`,`user_id_receipt`,`status_transfer`,`remarks_approved`,`remarks_issued`)VALUES(NULL,6,12, '\". $finished .\"','\". $date .\"',\". $totalSacks . \",\". $totalSacks . \",\". $totalSacks . \",NULL,\". $_SESSION['Userid'] . \",\". $_SESSION['Userid'] . \",\". $_SESSION['Userid'] . \",NULL,2,'Total Weight of Sacks = \". $totalnet .\"',NULL);\";\n\t\t\t\n\t\t\t$sql = substr($sacks,0,strlen($sacks)-2). \"; \". $update . $transfer ;\n\t\t\t\n\t\t\ttry { \n\t\t\t\t$this->_db->setAttribute( PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION );\n\t\t\t\t$stmt = $this->_db->prepare($sql);\n\t\t\t\t$stmt->execute();\n\t\t\t\t$stmt->closeCursor();\n\t\t\t\t\n\t\t\t\techo '<strong>SUCCESS!</strong> The sacks were successfully added to the database for the shift: <strong>'. $this->giveShiftname($shift) .'</strong>';\n\t\t\t\treturn TRUE;\n\t\t\t\t\t\n\t\t\t}\n\t\t\tcatch (PDOException $e) {\n\t\t\t\techo '<strong>ERROR</strong> Could not insert the sacks into the database. Please try again.<br>'. $e->getMessage();\n\t\t\t\treturn FALSE;\n\t\t\t}\n\t\t\t}\n\t\t}", "public function AddReservation($Room_id,$cust_id,$B_date,$E_date)\n{\n$DB=new DBManager();\n\n$DBegin=date_create($B_date);\n$DEnd=date_create($E_date);\n\n$diff=date_diff($DBegin,$DEnd);\n$interval = $DBegin->diff($DEnd);\n$intervalDays=$interval->days;\n\n\n$sql1=\"INSERT INTO reservation(cust_id,dateBegin,DateEnd,Room_id,period) VALUES ('$cust_id','$B_date','$E_date','$Room_id','$intervalDays')\";\n$resSel=$DB->AddDB($sql1);\n\n$sql2=\"UPDATE room SET status=1 WHERE id='$Room_id'\";\n$resUP=$DB->updateDB($sql2);\n\nif($resUP == \"Updated\")\n{\n return \" ***** Congratulations , You Reserved Room Successfully ***** \";\n}\nelse return \"problem\";\n\n}", "function addAlterRate($design_no, $particulars,$particular_rate)\n\t\n\t{\n\t\t/*$stock_id\t\t\t =\tmysql_real_escape_string(trim($stock_id));*/\n\t\t$design_no\t \t\t =\ttrim($design_no);\n\t\t$particulars\t\t\t \t\t= mysql_real_escape_string(trim($particulars));\n\t\t$particular_rate\t\t\t =\tmysql_real_escape_string(trim($particular_rate));\n\t\t\n\t\t//satement to insert in stock table\n\t\t$insert\t\t= \"INSERT INTO alter_rate\n\t\t\t\t\t\t(design_no, particulars, particular_rate, added_on)\n\t\t\t\t\t\t\t\n\t\t\t\t\t\tVALUES\n\t\t\t\t\t\t('$design_no', '$particulars', '$particular_rate', \n\t\t\t\t\t\t\tnow())\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\";\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t//execute quary\n\t\t$query\t\t= mysql_query($insert);\n\t\t//echo $insert.mysql_error();exit;\n\t\t//get the product id\n\t\t$arate_id\t= mysql_insert_id();\n\t\t\n\t\t//return primary key\n\t\treturn $arate_id;\n\n\t}", "public function addBooking($booking){\n \n }", "function add_seatarr($text)\n {\n $query=$this->db2->query(\"INSERT INTO seats_arrangement VALUES ('','$text')\");\n if($query)\n return 1;\n else\n return 0;\n }", "function insertNewBooking($bookingnum, $custid, $pkgId) {\n $query = \"INSERT INTO `bookings` (BookingDate, BookingNo, TravelerCount, CustomerId, PackageId) VALUES ('\".date(\"Y-m-d H:i:s\").\"', '$bookingnum', '1', '$custid', '$pkgId')\";\n $result = Database::insertQuery($query); \n if ($result) {\n return true;\n } else {\n return false;\n }\n }", "function add_day() {\n\t\t\t$date = new DateTime($this->entry_date);\n\t\t\t\n\t\t\t$qry = sprintf(\"INSERT INTO %s (tkr_id, entry_date, open, high, low, close, volume, adj_close) \n\t\t\t\t\tVALUES (%d,'%s',%8.2f,%8.2f,%8.2f,%8.2f,%d,%8.2f)\",\n\t\t\t\t\tmysql_real_escape_string(HISTORICAL_TBL), $this->tkr_id, mysql_real_escape_string($date->format('Y-m-d')),\n\t\t\t\t\t$this->open, $this->high, $this->low, $this->close, $this->vol, $this->adj_close);\n\t\t\tmysql_query($qry) or die(mysql_error());\n\t\t\t}", "public static function addPendingBooking($data, $user, $apartment) {\n\t\t\t\n\t\t\t//if a pending booking exists for the same $user and $apartment, it will be deleted\n\t\t\tself::removePending($user, $apartment);\n\t\t\t//add new pending booking with related services\n\t\t\t$booking = new Booking();\n\t\t\t$booking->reference = (string)Str::uuid();\n\t\t\t$booking->status = 'pending';\n\t\t\t\n\t\t\t$booking->user_booking_id = $user->id;\n\t\t\t$booking->user_booking_nickname = $user->nickname;\n\t\t\t$booking->user_booking_fullname = $user->fullname();\n\t\t\t$booking->user_booking_address = $user->customer->streetAddress;\n\t\t\t$booking->user_booking_full_locality = $user->fullLocality();\n\t\t\t$booking->user_booking_email = $user->email;\n\t\t\t\n\t\t\t$booking->apartment_id = $apartment->id;\n\t\t\t$booking->apartment_slug = $apartment->slug;\n\t\t\t$booking->apartment_title = $apartment->title;\n\t\t\t$booking->apartment_owner_id = $apartment->user->id;\n\t\t\t$booking->apartment_owner_nickname = $apartment->user->nickname;\n\t\t\t$booking->apartment_owner_fullname = $apartment->user->fullname();\n\t\t\t$booking->apartment_owner_address = $apartment->user->customer->streetAddress;\n\t\t\t$booking->apartment_owner_full_locality = $apartment->user->fullLocality();\n\t\t\t$booking->apartment_owner_email = $apartment->user->email;\n\t\t\t$booking->apartment_image = $apartment->main_image;\n\t\t\t\n\t\t\t$booking->check_in = Carbon::createFromFormat('d-m-Y', $data['check_in']);\n\t\t\t$booking->check_out = Carbon::createFromFormat('d-m-Y', $data['check_out']);\n\t\t\t\n\t\t\t$booking->special_requests = $data['special_requests'];\n\t\t\t$booking->apartment_price_per_night = $apartment->calcCurrentPrice();\n\t\t\t$booking->save();\n\t\t\tif (array_key_exists('upgrades', $data)) {\n\t\t\t\tforeach ($data['upgrades'] as $upgrade) {\n\t\t\t\t\t$service = Service::findBySlug($upgrade);\n\t\t\t\t\tBookedService::create(\n\t\t\t\t\t [\n\t\t\t\t\t\t'booking_id' => $booking->id,\n\t\t\t\t\t\t'name' => $service->name,\n\t\t\t\t\t\t'slug' => $service->slug,\n\t\t\t\t\t\t'price_per_night' => $apartment->upgrades()->where('service_id', $service->id)->first()->price_per_night\n\t\t\t\t\t ]\n\t\t\t\t\t);\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn $booking;\n\t\t}", "function add_update_booking_charges(){\t\n \t\t$house=$this->input->post('house3');\n\t\t\n\t\t$items=array(\n\t\t'HouseNo' =>$house,\n\t\t'ChargeName'=>$this->input->post('charge'),\n\t\t'Unit'=>$this->input->post('txtunit'),\n\t\t'Qty'=>$this->input->post('qty'),\n\t\t'Description'=>$this->input->post('desc'),\n\t\t'Date'=>date('Y-m-d H:i:s')\n\t\t);\t\t\n\t\t $this->model_app->insert('booking_charges',$items);\n\t\t \n\tredirect('transaction/edit_outgoing_house/'.$house);\n }", "private function storeToDB() {\r\n\t\tDBQuery::getInstance() -> insert('INSERT INTO `CalculatedDailyNeeds`' . DBUtils2::buildMultipleInsertOnDuplikateKeyUpdate($this -> aArticleData));\r\n\t}", "function book5 () {\n $name = $email = $phone = \"\";\n $people = $_POST[\"people5\"];\n $tempin5 = $_POST[\"checkin5\"];\n $tempout5 = $_POST[\"checkout5\"];\n $checkin5 = strtotime($_POST[\"checkin5\"]);\n $checkout5 = strtotime($_POST[\"checkout5\"]);\n $date = $checkout5 - $checkin5;\n $datediff = number_format(round($date /(60 * 60 * 24)));\n if ($datediff == 0)\n $datediff = 1;\n $totalcost = $datediff*$_POST[\"people5\"]*19400;\n\n $conn = mysqli_connect('localhost:3308','root', '','hotelmanagement');\n if(isset($_SESSION['name']) && isset($_SESSION['email']) && isset($_SESSION['phone'])) {\n $name = $_SESSION['name'];\n $phone = $_SESSION['phone'];\n $email = $_SESSION['email'];\n $sql = \"INSERT INTO booking (name, email, contactno, checkin, checkout, roomtype, days, people, cost) VALUES ('$name', '$email', '$phone', '$tempin5', '$tempout5', 'Luxury - 5 Star', '$datediff', '$people', '$totalcost')\";\n }\n else {\n $name = $_SESSION['nameSC'];\n $phone = $_SESSION['phoneSC'];\n $email = $_SESSION['emailSC'];\n $sql = \"INSERT INTO booking (name, email, contactno, checkin, checkout, roomtype, days, people, cost) VALUES ('$name', '$email', '$phone', '$tempin5', '$tempout5', 'Luxury - 5 Star', '$datediff', '$people', '$totalcost')\";\n }\n if (mysqli_query($conn, $sql)) {\n echo \"<script type = 'text/javascript'>alert('Booking confirmed! Payment will be processed at the Hotel. Thank you for choosing Four Seasons!');\n window.location='CustomerDisplayPage.php';</script>\";\n } \n else {\n echo \"Error: \" . $sql . \"<br>\" . mysqli_error($conn);\n }\n }", "public function bookRide()\n {\n try\n {\n if(\\Session::has('userId'))\n {\n $param=$this->request->all();\n $rideid=$param['ride'];\n $cost_seat=$param['cost_seat'];\n $seat=$param['No_seats'];\n $totalCost=$cost_seat*$seat;\n $tax=round(0.1*$totalCost);\n $totalFinal=$totalCost+$tax;\n $findride=DB::table('rides')->where('id',$rideid)->get();\n\n if(count($findride)>0)\n {\n //remain select origin n destination according to ride type(daily,return date);\n if($findride[0]->available_seat>=$seat)\n {\n $daily=0;\n if($findride[0]->isDaily==1)\n {\n $cost_seat=0;\n $totalCost=$cost_seat*$seat;\n $tax=27.5;\n $totalFinal=$totalCost+$tax;\n $daily=1;\n }\n //check wallet amount enough in book rider account\n $walletRecord=DB::table('payment_wallete')->where('userId',session('userId'))->get();\n if(count($walletRecord)>0)\n {\n if($walletRecord[0]->amount>$totalFinal)\n {\n //you can book this ride \n //insert data in ride booking\n DB::beginTransaction();\n $insertData=array(\"offer_userId\"=>$findride[0]->userId,\"book_userId\"=>session('userId'),\"rideId\"=>$rideid,\"source\"=>$findride[0]->departureOriginal,\"destination\"=>$findride[0]->arrivalOriginal,\"no_of_seats\"=>$seat,\"cost_per_seat\"=>$totalCost,\"paymentType\"=>\"wallet\");\n $status=DB::table('ride_booking')->insert($insertData);\n if($status>0)\n {\n //tax amount add in admin account\n $insertAdminWallet=array(\"rideId\"=>$rideid,\"userId\"=>session('userId'),\"amount\"=>$tax,\"bookType\"=>\"book\",\"isDaily\"=>$daily);\n DB::table('admin_wallet')->insert($insertAdminWallet);\n\n //wallet amount transfer from rider account to offerrider account\n $rdd=DB::table('payment_wallete')->where('userId',session('userId'))->get();\n DB::table('payment_wallete')->where('userId',session('userId'))->update(['amount'=>$rdd[0]->amount-$totalFinal]);\n\n //check wallet amount exists for offer rider\n $che=DB::table('payment_wallete')->where('userId',$findride[0]->userId)->get();\n if(count($che)>0)\n {\n //update wallet amount... amount add in offer userid account\n DB::table('payment_wallete')->where('userId',$findride[0]->userId)->update(['amount'=>$che[0]->amount+$totalCost]);\n }\n else\n {\n //insert amount in offer userid account\n DB::table('payment_wallete')->insert(['userId'=>$findride[0]->userId,'amount'=>$totalCost]);\n }\n //minus available seat of a ride\n $st=DB::table('rides')->where('id',$rideid)->update(['available_seat'=>$findride[0]->available_seat-$seat]);\n if($st)\n {\n //send booked email\n //GET DETAILS OF OFFERED PERSON\n $offerPersonDetail=DB::table('users')->where('id',$findride[0]->userId)->get();\n //GET RIDE DETAILS\n //$offerRideDetail=DB::table('rides')->where('id',$bookRideArray['offerid'])->get();\n //GET DETAILS OF BOOKED PERSON\n $bookedPersonDetail=DB::table('users')->where('id',session('userId'))->get();\n\n if(count($offerPersonDetail)>0)\n {\n $dd['username']=$offerPersonDetail[0]->username;\n $dd['email']=$offerPersonDetail[0]->email; \n\n }\n if(count($findride)>0)\n {\n $dd['date']=date(\"d-m-Y\",strtotime($findride[0]->departure_date));\n $dd['time']=date(\"H:i:s\",strtotime($findride[0]->departure_date));\n $dd['source']=$findride[0]->departureOriginal;\n $dd['destination']=$findride[0]->arrivalOriginal;\n $dd['seat']=$seat;\n if($findride[0]->isDaily==0)\n {\n $dd['amount']=$totalCost;\n }\n }\n if(count($bookedPersonDetail)>0)\n {\n $dd['bookedname']=$bookedPersonDetail[0]->username;\n $dd['bookedemail']=$bookedPersonDetail[0]->email;\n }\n if(isset($dd['email']))\n {\n if($dd['email']!=\"\")\n {\n $this->send_ride_email($dd['email'],$dd);\n //send sms\n if($offerPersonDetail[0]->phone_no!=\"\" && $offerPersonDetail[0]->phone_no>0)\n {\n $offermsg='Your offer is been booked by '.$dd['bookedname'].'. Source :'.$dd['source'].'. Destination :'.$dd['destination'].'. Passenger email :'.$dd['bookedemail'].', Seats book :'.$dd['seat'];\n if(isset($dd['amount']))\n {\n $offermsg.=' , Amount earn: '.$dd['amount'].' Rs , ';\n }\n $offermsg.='Time :'.$dd['time'].' , Date :'.$dd['date'];\n \n $ph=$offerPersonDetail[0]->phone_no;\n \\Queue::push(function($job) use($ph,$offermsg){\n HelperController::send_offer_sms($ph,$offermsg);\n $job->delete();\n }); \n }\n }\n }\n if(isset($dd['bookedemail']))\n {\n if($dd['bookedemail']!=\"\")\n {\n $this->send_book_ride_email($dd['bookedemail'],$dd);\n if($bookedPersonDetail[0]->phone_no!=\"\" && $bookedPersonDetail[0]->phone_no>0)\n {\n $bookedmsg='Your ride has been successfully booked.';\n $bookedmsg.=' Source :'.$dd['source'];\n $bookedmsg.=' . Destination :'.$dd['destination'];\n $bookedmsg.=' . Owner email :'.$dd['email'];\n $bookedmsg.=' , Seats book :'.$dd['seat'];\n $bookedmsg.=' , Time :'.$dd['time'];\n $bookedmsg.=' , Date :'.$dd['date'];\n $ph=$bookedPersonDetail[0]->phone_no;\n \\Queue::push(function($job) use($ph,$bookedmsg){\n HelperController::send_offer_sms($ph,$bookedmsg);\n $job->delete();\n }); \n }\n }\n }\n //ends\n //send default sms to user who has book this ride same as email\n $msg='Dear '.$dd['bookedname'].' ,<br>Your ride has been successfully booked.below are the offer details.<br/>';\n $msg.='Source :'.$dd['source'].'<br>';\n $msg.='Destination :'.$dd['destination'].'<br>';\n $msg.='Owner email :'.$dd['email'].'<br>';\n $msg.='Seats book :'.$dd['seat'].'<br>';\n $msg.='Time :'.$dd['time'].'<br>';\n $msg.='Date :'.$dd['date'].'<br><br>';\n $msg.='Enjoy your ride<br><br>';\n $msg.='Thank you';\n \n DB::table('user_chat_messages')->insert(['fromUserId'=>$findride[0]->userId,\"toUserId\"=>session('userId'),\"message\"=>$msg,\"ip\"=>$this->ip]);\n\n $this->request->session()->flash('status', 'Your ride has been booked successfully');\n DB::commit();\n $response['message'] = \"success\";\n $response['status'] = true;\n $response['erromessage']= array();\n return response($response,200); \n }\n else\n {\n //error\n DB::rollBack();\n $response['data'] = array();\n $response['message'] = \"Please try again\";\n $response['erromessage']=array();\n $response['status'] = false;\n return response($response,400);\n }\n }\n else\n {\n //error\n DB::rollBack();\n $response['data'] = array();\n $response['message'] = \"Please try again\";\n $response['erromessage']=array();\n $response['status'] = false;\n return response($response,400);\n }\n }\n else\n {\n //don't have enough balance in your wallet to book this ride..\n $response['data'] = array();\n $response['message'] = \"you don't have enough balance in your wallet to book this ride.\";\n $response['erromessage']=array();\n $response['status'] = false;\n return response($response,400);\n }\n }\n else\n {\n //don't have enough balance in your wallet to book this ride..\n $response['data'] = array();\n $response['message'] = \"you don't have enough balance in your wallet to book this ride.\";\n $response['erromessage']=array();\n $response['status'] = false;\n return response($response,400);\n }\n }\n else\n {\n //seat is not available\n $response['data'] = array();\n $response['message'] = \"your requested seat is not available\";\n $response['erromessage']=array();\n $response['status'] = false;\n return response($response,400);\n }\n }\n else\n {\n //ride not found error\n $response['data'] = array();\n $response['message'] = \"Please try again\";\n $response['erromessage']=array();\n $response['status'] = false;\n return response($response,400);\n }\n }\n else\n {\n $response['data'] = array();\n $response['message'] = \"Please try again\";\n $response['erromessage']=array();\n $response['status'] = false;\n return response($response,400); \n }\n }\n catch(Exception $e) \n {\n //return redirect()->back()->withErrors(['error'=>true])->withInput();\n \\Log::error('bookRide function error: ' . $e->getMessage());\n $response['data'] = array();\n $response['message'] = \"Please try again\";\n $response['erromessage']=array();\n $response['status'] = false;\n return response($response,400);\n //return Response::json(array('error'=>true), 400);\n }\n }", "function Avi_Add(){\n\t\t\n\t\t//when click on button\n\t\tif(isset($_POST['avibtn'])){\n\t\t\t\n\t\t\t// for table insert values\n\t\t\t$values = \"'\".$_POST['monstart'].\" - \".$_POST['monend'].\"','\".$_POST['tustart'].\" - \".$_POST['tuend'].\"','\".$_POST['wedstart'].\" - \".$_POST['wedend'].\"','\".$_POST['thustart'].\" - \".$_POST['thuend'].\"','\".$_POST['fristart'].\" - \".$_POST['friend'].\"','\".$_POST['satstart'].\" - \".$_POST['satend'].\"','\".$_POST['sunstart'].\" - \".$_POST['sunend'].\"','\".$_POST['doctor'].\"',NOW()\";\n\t\t\t\n\t\t\t//Add Avialibalility into table\n\t\t\t$this->Add('availability',$values,'Availability?m');\n\t\t\t\n\t\n\t\t} // ifisset close\n\t\t\n\t}", "function addPlayer($name, $last, $rating, $usatt, $idclub, $date, $email){\n $query = \"INSERT INTO aquigaza_fsutt_local.players\n\t(`name`, `last`, `rating`, `usatt_rat`, `fk_club`, `startdate`, `email`)\n\tVALUES\t('\".escapeString($name).\"','\".escapeString($last).\"','\".escapeString($rating).\"',\".escapeString($usatt).\n\t\t\t\",\".escapeString($idclub).\",'\".escapeString($date).\"','\".escapeString($email).\"')\";\n $resource = runQuery($query);\n}", "public function numbersAction() {\n global $CFG;\n\n $br = new bookingRecord();\n $gump = $this->getGump();\n\n // check the session is still around\n if ($br->expired()) {\n $this->redirect($this->url('booking/expired'));\n }\n \n // get fares\n $fares = \\ORM::for_table('fares')->find_one(1);\n\n // choices\n $adultchoices = $this->fill(1, $CFG->select_limit);\n $childrenchoices = $this->fill(0, $CFG->select_limit);\n $childrenchoices[0] = 'None';\n $infantchoices = $this->fill(0, $CFG->select_limit);\n $infantchoices[0] = 'None';\n\n // form submitted?\n $errors = [];\n if ($request = $this->getRequest()) {\n if (!empty($request['cancel'])) {\n $this->redirect($this->Url('booking/start'));\n }\n\n $lim = $CFG->select_limit;;\n $gump->validation_rules(array(\n 'adults' => \"required|numeric|min_numeric,1|max_numeric,$lim\",\n 'children' => \"required|numeric|min_numeric,0|max_numeric,$lim\",\n 'infants' => \"required|numeric|min_numeric,0|max_numeric,$lim\",\n ));\n if ($data = $gump->run($request)) {\n $adults = $data['adults'];\n $children = $data['children'];\n $infants = $data['infants'];\n $partysize = $adults + $children;\n if ($partysize > $CFG->select_limit) {\n $errors[] = 'The total party size may not be greater than ' . $CFG->select_limit;\n } else {\n $br->setAdults($adults);\n $br->setChildren($children);\n $br->setInfants($infants);\n $br->save();\n $this->redirect($this->Url('booking/date'));\n }\n }\n }\n \n // Form\n $form = new \\stdClass;\n $form->adults = $this->form->select('adults',\n 'Number of adults - £'.number_format($fares->adult/100, 2).' each',\n $br->getAdults(),\n $adultchoices,\n '',\n 8);\n $form->children = $this->form->select('children',\n 'Number of children - £'.number_format($fares->child/100, 2).' each <small class=\"santa-subtext\">(18 months to 15 years)</small>',\n $br->getChildren(),\n $childrenchoices,\n '',\n 8);\n $form->infants = $this->form->select('infants',\n 'Number of infants <small class=\"santa-subtext\">(17 months and under)</small>',\n $br->getInfants(),\n $infantchoices,\n '',\n 8);\n $form->buttons = $this->form->buttons('Next', 'Back', true);\n\n $this->View('booking_numbers', array(\n 'br' => $br,\n 'form' => $form,\n 'adultchoices' => $adultchoices,\n 'childrenchoices' => $childrenchoices,\n 'infantchoices' => $infantchoices,\n 'fares' => $fares,\n 'errors' => $gump->errors(),\n ));\n }", "function insert_slot($id,$date,$month,$year,$slot_schedule){\n\t\t$database=new Database();\n\t\t$sql=\"INSERT INTO `schedule`(`id`, `date`, `month`, `year`, `slot_schedule`, `counselor_id`) VALUES (NULL,'$date','$month','$year','$slot_schedule','$id')\";\n\t\t$stmt=$database->connect()->prepare($sql);\n\t\t$stmt->execute();\n\t}", "public static function book($cltId, $cltName, $phone, $tipId, $srvId, $ctrId, $date, $time, $dura,\n $type, $price, $curr, $disc, $fact, $qty, $total, $masterId, $matresId, $descr, $cmpCltId, $cmpMsgId = null)\n {//insert into com_srv_book\n //(client_id,centre_id,master_id,matres_id,srv_id,tip_id,book_date,book_time,book_dura,book_type_id,total)\n // values (46,1141,,,14623,14367,'2015-07-15',690,,B,10\n $capacity = self::getCapacity($ctrId, $srvId);\n //echo \"Here $capacity<be>\\n\";\n if ($capacity)\n {\n $bookCount = self::bookCount($date, $time, $dura);\n $left = $capacity - ($bookCount + $qty);\n if ($left < 0)\n return $left; // Negative result means overbooking\n }\n if ($cmpMsgId)\n {\n $cmpClt = WDsc::createCmpClt($cltId, null, $cmpMsgId, $price);\n $cmpCltId = $cmpClt['cmp_clnt_id'];\n }\n if ($ctrId == WCentre::id())\n {\n $taxPrc = WCentre::taxPrc();\n $comPrc = WCentre::comPrc();\n }\n else\n {\n $ctrData = DB::getDB()->queryPairs(WCentre::TABLE_CENTRE, 'tax_prc,com_prc', 'id=' . $ctrId);\n $taxPrc = Util::intval($ctrData['tax_prc']);\n $comPrc = Util::intval($ctrData['com_prc']);\n }\n $values = array\n (\n 'creator_id' => DB::int(WClient::id()),\n 'domain_id' => DB::intn(WDomain::id()),\n 'home' => DB::str(Base::home()),\n 'client_id' => DB::intn($cltId),\n 'client_name' => DB::str($cltName),\n 'phone' => DB::str($phone),\n 'number' => DB::strn(Util::pureNumber($phone)),\n 'centre_id' => DB::intn($ctrId),\n 'master_id' => DB::intn($masterId),\n 'matres_id' => DB::intn($matresId),\n 'srv_id' => DB::intn($srvId),\n 'tip_id' => DB::intn($tipId),\n 'currency_id' => DB::str($curr),\n 'book_date' => DB::daten($date),\n 'book_time' => DB::intn($time),\n 'book_dura' => DB::intn($dura),\n 'book_type_id' => DB::strn($type),\n 'price' => DB::money($price),\n 'disc' => DB::intn($disc),\n 'fact' => DB::money($fact),\n 'qty' => DB::intn($qty),\n 'total' => DB::money($total),\n 'ctr_tax_prc' => max(array(0, min(array(99, intval($taxPrc))))),\n 'ctr_com_prc' => max(array(0, min(array(99, intval($comPrc))))),\n 'descr' => DB::str($descr),\n 'cmp_clnt_id' => DB::intn($cmpCltId)\n );\n if ($type == 'B')\n {\n $values['status'] = DB::str('a');\n }\n if (WDomain::local())\n {\n $values['status'] = DB::str('a');\n $values['answered'] = 'current_timestamp';\n }\n //exit(print_r($values, true));\n $db = DB::getAdminDB();\n if (!$db->insertValues(WPurchase::TABLE_BOOK, $values))\n return null;\n return $db->insert_id;\n }", "public function actionBooking() {\n $model = new Reservation();\n $check_in_date = Yii::$app->request->post('check_in');\n $check_out_date = Yii::$app->request->post('check_out');\n $rate_plan = Yii::$app->request->post('rate_plan_id');\n $total_amount = Yii::$app->request->post('total_amount');\n\n return $this->render('create', [\n 'check_in_date'=>$check_in_date,\n 'check_out_date'=>$check_out_date,\n 'rate_plan'=>$rate_plan,\n 'total_amount'=>$total_amount,\n 'model'=>$model,\n ]);\n\n }", "function updateTicket() {\n if (isset($_POST)) {\n\t$type[0] = $_POST['typeC'];\n $type[1] = $_POST['typeA'];\n $type[2] = $_POST['typeF'];\n $num[0] = intval($_POST['TicketNumC']);\n $num[1] = intval($_POST['TicketNumA']);\n $num[2] = intval($_POST['TicketNumF']);\n //$num = $_POST['TicketNum'];\n }\n \n // start connect db\n $conn = dbConnect(); \n if ($conn) {\n\n//Part one select data from tickettype\n for($i = 0 ; $i <=2 ; $i++){\n if($num[$i] == 0){\n continue;\n }\n$sql = \"SELECT * FROM EMM_ZOO.TICKETGATE_TYPE WHERE TICKETGATE_TYPE = '$type[$i]';\";\n\n \n$stmt = db2_prepare($conn, $sql);\n$result = db2_execute($stmt);\nwhile ($row = db2_fetch_assoc($stmt)) {\n $ticket_price = $row['TICKETGATETYPE_PRICE'];\n $ticket_type = $row['TICKETGATE_TYPE'];\n $ticket_id = intval($row['TICKETGATETYPE_ID']);\n //printf (\"%-5d %-16s %-32d\\n\", \n // $ticket_price, $ticket_type, $ticket_id);\n}\n$insert = \"INSERT INTO EMM_ZOO.TICKETGATE_TRANSACTION (TICKETGATE_ID, TICKETGATETYPE_ID, TICKETGATE_DATE, TICKETGATE_NUM, TICKETGATE_PRICE) VALUES (DEFAULT, $ticket_id, CURRENT DATE, $num[$i]\".\",\". $ticket_price*$num[$i] .\");\";\n //echo $insert; \n$rc = db2_exec($conn, $insert); // ตรงนี้ error ยังไม่เสร็จ\n \n \nif ($rc) {\n // echo \"Insert successfully!!\";\necho \"<script>alert('$num[$i] $type[$i] ticket has sole in price \".($ticket_price*$num[$i]).\"');window.location='GateTricket.php';</script>\";\n}\n\nelse { // If statement is error why see the code\n\t die('Critical error:' . db2_stmt_error($stmt));\n}\n\n// finish all query statement \ndb2_free_stmt($stmt);\n}\ndb2_close($conn);\n}\nelse {\n echo db2_conn_errormsg($conn);\n} \n}", "public function run()\n {\n DB::table('bookings')->insert([\n [\n 'date' => '2020-01-10 00:00:00',\n 'timeslot' => '10:00',\n 'name_of_guest' => 'Norman Pedersen',\n 'phone_no' => '12345678',\n 'email' => '[email protected]',\n 'no_of_guests' => rand(1,25),\n 'interval_id' => rand(1,3),\n 'location_id' => rand(1,2),\n 'business_id' => rand(1,2),\n 'service_id' => rand(1,3),\n ],\n [\n 'date' => '2020-01-12 00:00:00',\n 'timeslot' => '15:00',\n 'name_of_guest' => 'Fie laursen',\n 'phone_no' => '12345678',\n 'email' => '[email protected]',\n 'no_of_guests' => rand(1,25),\n 'interval_id' => rand(1,3),\n 'location_id' => rand(1,2),\n 'business_id' => rand(1,2),\n 'service_id' => rand(1,3),\n ],\n [\n 'date' => '2020-01-09 00:00:00',\n 'timeslot' => '18:00',\n 'name_of_guest' => 'Henrik Mogensen',\n 'phone_no' => '12345678',\n 'email' => '[email protected]',\n 'no_of_guests' => rand(1,25),\n 'interval_id' => rand(1,3),\n 'location_id' => rand(1,2),\n 'business_id' => rand(1,2),\n 'service_id' => rand(1,3),\n ],\n [\n 'date' => '2020-01-09 00:00:00',\n 'timeslot' => '13:00',\n 'name_of_guest' => 'Niels Christiansen',\n 'phone_no' => '12345678',\n 'email' => '[email protected]',\n 'no_of_guests' => rand(1,25),\n 'interval_id' => rand(1,3),\n 'location_id' => rand(1,2),\n 'business_id' => rand(1,2),\n 'service_id' => rand(1,3),\n ],\n [\n 'date' => '2020-01-06 00:00:00',\n 'timeslot' => '16:00',\n 'name_of_guest' => 'Julie petersen',\n 'phone_no' => '12345678',\n 'email' => '[email protected]',\n 'no_of_guests' => rand(1,25),\n 'interval_id' => rand(1,3),\n 'location_id' => rand(1,2),\n 'business_id' => rand(1,2),\n 'service_id' => rand(1,3),\n ],\n [\n 'date' => '2020-01-04 00:00:00',\n 'timeslot' => '17:00',\n 'name_of_guest' => 'Frederikke Mortensen',\n 'phone_no' => '12345678',\n 'email' => '[email protected]',\n 'no_of_guests' => rand(1,25),\n 'interval_id' => rand(1,3),\n 'location_id' => rand(1,2),\n 'business_id' => rand(1,2),\n 'service_id' => rand(1,3),\n ],\n [\n 'date' => '2020-01-08 00:00:00',\n 'timeslot' => '14:00',\n 'name_of_guest' => 'Line Mikkelsen',\n 'phone_no' => '12345678',\n 'email' => '[email protected]',\n 'no_of_guests' => rand(1,25),\n 'interval_id' => rand(1,3),\n 'location_id' => rand(1,2),\n 'business_id' => rand(1,2),\n 'service_id' => rand(1,3),\n ],\n [\n 'date' => '2020-01-08 00:00:00',\n 'timeslot' => '11:00',\n 'name_of_guest' => 'Test McTest',\n 'phone_no' => '12345678',\n 'email' => '[email protected]',\n 'no_of_guests' => rand(1,25),\n 'interval_id' => rand(1,3),\n 'location_id' => rand(1,2),\n 'business_id' => rand(1,2),\n 'service_id' => rand(1,3),\n ],\n [\n 'date' => '2020-01-07 00:00:00',\n 'timeslot' => '10:00',\n 'name_of_guest' => 'Åge Larsen',\n 'phone_no' => '12345678',\n 'email' => '[email protected]',\n 'no_of_guests' => rand(1,25),\n 'interval_id' => rand(1,3),\n 'location_id' => rand(1,2),\n 'business_id' => rand(1,2),\n 'service_id' => rand(1,3),\n ],\n [\n 'date' => '2020-01-11 00:00:00',\n 'timeslot' => '12:00',\n 'name_of_guest' => 'Børge',\n 'phone_no' => '12345678',\n 'email' => '[email protected]',\n 'no_of_guests' => rand(1,25),\n 'interval_id' => rand(1,3),\n 'location_id' => rand(1,2),\n 'business_id' => rand(1,2),\n 'service_id' => rand(1,3),\n ],\n\n [\n 'date' => '2020-01-14 00:00:00',\n 'timeslot' => '10:00',\n 'name_of_guest' => 'Norman Pedersen',\n 'phone_no' => '12345678',\n 'email' => '[email protected]',\n 'no_of_guests' => rand(1,25),\n 'interval_id' => rand(1,3),\n 'location_id' => rand(1,2),\n 'business_id' => rand(1,2),\n 'service_id' => rand(1,3),\n ],\n [\n 'date' => '2020-01-19 00:00:00',\n 'timeslot' => '15:00',\n 'name_of_guest' => 'Fie laursen',\n 'phone_no' => '12345678',\n 'email' => '[email protected]',\n 'no_of_guests' => rand(1,25),\n 'interval_id' => rand(1,3),\n 'location_id' => rand(1,2),\n 'business_id' => rand(1,2),\n 'service_id' => rand(1,3),\n ],\n [\n 'date' => '2020-01-17 00:00:00',\n 'timeslot' => '18:00',\n 'name_of_guest' => 'Henrik Mogensen',\n 'phone_no' => '12345678',\n 'email' => '[email protected]',\n 'no_of_guests' => rand(1,25),\n 'interval_id' => rand(1,3),\n 'location_id' => rand(1,2),\n 'business_id' => rand(1,2),\n 'service_id' => rand(1,3),\n ],\n [\n 'date' => '2020-01-18 00:00:00',\n 'timeslot' => '13:00',\n 'name_of_guest' => 'Niels Christiansen',\n 'phone_no' => '12345678',\n 'email' => '[email protected]',\n 'no_of_guests' => rand(1,25),\n 'interval_id' => rand(1,3),\n 'location_id' => rand(1,2),\n 'business_id' => rand(1,2),\n 'service_id' => rand(1,3),\n ],\n [\n 'date' => '2020-01-16 00:00:00',\n 'timeslot' => '16:00',\n 'name_of_guest' => 'Julie petersen',\n 'phone_no' => '12345678',\n 'email' => '[email protected]',\n 'no_of_guests' => rand(1,25),\n 'interval_id' => rand(1,3),\n 'location_id' => rand(1,2),\n 'business_id' => rand(1,2),\n 'service_id' => rand(1,3),\n ],\n [\n 'date' => '2020-01-13 00:00:00',\n 'timeslot' => '17:00',\n 'name_of_guest' => 'Frederikke Mortensen',\n 'phone_no' => '12345678',\n 'email' => '[email protected]',\n 'no_of_guests' => rand(1,25),\n 'interval_id' => rand(1,3),\n 'location_id' => rand(1,2),\n 'business_id' => rand(1,2),\n 'service_id' => rand(1,3),\n ],\n [\n 'date' => '2020-01-15 00:00:00',\n 'timeslot' => '14:00',\n 'name_of_guest' => 'Line Mikkelsen',\n 'phone_no' => '12345678',\n 'email' => '[email protected]',\n 'no_of_guests' => rand(1,25),\n 'interval_id' => rand(1,3),\n 'location_id' => rand(1,2),\n 'business_id' => rand(1,2),\n 'service_id' => rand(1,3),\n ],\n [\n 'date' => '2020-01-15 00:00:00',\n 'timeslot' => '11:00',\n 'name_of_guest' => 'Test McTest',\n 'phone_no' => '12345678',\n 'email' => '[email protected]',\n 'no_of_guests' => rand(1,25),\n 'interval_id' => rand(1,3),\n 'location_id' => rand(1,2),\n 'business_id' => rand(1,2),\n 'service_id' => rand(1,3),\n ],\n [\n 'date' => '2020-01-14 00:00:00',\n 'timeslot' => '10:00',\n 'name_of_guest' => 'Åge Larsen',\n 'phone_no' => '12345678',\n 'email' => '[email protected]',\n 'no_of_guests' => rand(1,25),\n 'interval_id' => rand(1,3),\n 'location_id' => rand(1,2),\n 'business_id' => rand(1,2),\n 'service_id' => rand(1,3),\n ],\n [\n 'date' => '2020-01-18 00:00:00',\n 'timeslot' => '12:00',\n 'name_of_guest' => 'Børge',\n 'phone_no' => '12345678',\n 'email' => '[email protected]',\n 'no_of_guests' => rand(1,25),\n 'interval_id' => rand(1,3),\n 'location_id' => rand(1,2),\n 'business_id' => rand(1,2),\n 'service_id' => rand(1,3),\n ],\n\n\n [\n 'date' => '2020-01-20 00:00:00',\n 'timeslot' => '10:00',\n 'name_of_guest' => 'Norman Pedersen',\n 'phone_no' => '12345678',\n 'email' => '[email protected]',\n 'no_of_guests' => rand(1,25),\n 'interval_id' => rand(1,3),\n 'location_id' => rand(1,2),\n 'business_id' => rand(1,2),\n 'service_id' => rand(1,3),\n ],\n [\n 'date' => '2020-01-21 00:00:00',\n 'timeslot' => '15:00',\n 'name_of_guest' => 'Fie laursen',\n 'phone_no' => '12345678',\n 'email' => '[email protected]',\n 'no_of_guests' => rand(1,25),\n 'interval_id' => rand(1,3),\n 'location_id' => rand(1,2),\n 'business_id' => rand(1,2),\n 'service_id' => rand(1,3),\n ],\n [\n 'date' => '2020-01-22 00:00:00',\n 'timeslot' => '18:00',\n 'name_of_guest' => 'Henrik Mogensen',\n 'phone_no' => '12345678',\n 'email' => '[email protected]',\n 'no_of_guests' => rand(1,25),\n 'interval_id' => rand(1,3),\n 'location_id' => rand(1,2),\n 'business_id' => rand(1,2),\n 'service_id' => rand(1,3),\n ],\n [\n 'date' => '2020-01-23 00:00:00',\n 'timeslot' => '13:00',\n 'name_of_guest' => 'Niels Christiansen',\n 'phone_no' => '12345678',\n 'email' => '[email protected]',\n 'no_of_guests' => rand(1,25),\n 'interval_id' => rand(1,3),\n 'location_id' => rand(1,2),\n 'business_id' => rand(1,2),\n 'service_id' => rand(1,3),\n ],\n [\n 'date' => '2020-01-24 00:00:00',\n 'timeslot' => '16:00',\n 'name_of_guest' => 'Julie petersen',\n 'phone_no' => '12345678',\n 'email' => '[email protected]',\n 'no_of_guests' => rand(1,25),\n 'interval_id' => rand(1,3),\n 'location_id' => rand(1,2),\n 'business_id' => rand(1,2),\n 'service_id' => rand(1,3),\n ],\n [\n 'date' => '2020-01-25 00:00:00',\n 'timeslot' => '17:00',\n 'name_of_guest' => 'Frederikke Mortensen',\n 'phone_no' => '12345678',\n 'email' => '[email protected]',\n 'no_of_guests' => rand(1,25),\n 'interval_id' => rand(1,3),\n 'location_id' => rand(1,2),\n 'business_id' => rand(1,2),\n 'service_id' => rand(1,3),\n ],\n [\n 'date' => '2020-01-26 00:00:00',\n 'timeslot' => '14:00',\n 'name_of_guest' => 'Line Mikkelsen',\n 'phone_no' => '12345678',\n 'email' => '[email protected]',\n 'no_of_guests' => rand(1,25),\n 'interval_id' => rand(1,3),\n 'location_id' => rand(1,2),\n 'business_id' => rand(1,2),\n 'service_id' => rand(1,3),\n ],\n [\n 'date' => '2020-01-20 00:00:00',\n 'timeslot' => '11:00',\n 'name_of_guest' => 'Test McTest',\n 'phone_no' => '12345678',\n 'email' => '[email protected]',\n 'no_of_guests' => rand(1,25),\n 'interval_id' => rand(1,3),\n 'location_id' => rand(1,2),\n 'business_id' => rand(1,2),\n 'service_id' => rand(1,3),\n ],\n [\n 'date' => '2020-01-21 00:00:00',\n 'timeslot' => '10:00',\n 'name_of_guest' => 'Åge Larsen',\n 'phone_no' => '12345678',\n 'email' => '[email protected]',\n 'no_of_guests' => rand(1,25),\n 'interval_id' => rand(1,3),\n 'location_id' => rand(1,2),\n 'business_id' => rand(1,2),\n 'service_id' => rand(1,3),\n ],\n [\n 'date' => '2020-01-22 00:00:00',\n 'timeslot' => '12:00',\n 'name_of_guest' => 'Børge',\n 'phone_no' => '12345678',\n 'email' => '[email protected]',\n 'no_of_guests' => rand(1,25),\n 'interval_id' => rand(1,3),\n 'location_id' => rand(1,2),\n 'business_id' => rand(1,2),\n 'service_id' => rand(1,3),\n ],\n ]);\n }", "public function addSaleBooking($data = array(), $items = array(), $payment = array(), $si_return = array(), $booking = array())\n {\n $data['created_at'] = date('Y-m-d H:i:s');\n $data['updated_at'] = date('Y-m-d H:i:s');\n\n if ($this->db->insert('sales', $data)) {\n $sale_id = $this->db->insert_id();\n if ($this->site->getReference('so') == $data['reference_no']) {\n $this->site->updateReference('so');\n }\n if ($data['sale_status'] == 'reserved') {\n foreach ($booking as $k => $v) {\n $_cekstok_wh = $this->getWarehouseProductCompany($v['warehouse_id'], $v['product_id']);\n $_whstok_bk = ($_cekstok_wh->quantity_booking + $v['quantity_booking']);\n if ($this->db->update('warehouses_products', ['quantity_booking' => $_whstok_bk], ['warehouse_id' => $v['warehouse_id'], 'product_id' => $v['product_id'], 'company_id' => $this->session->userdata('company_id')])) {\n $_cekstok_prod = $this->site->getProductByID($v['product_id']);\n $_prodstok_bk = ($_cekstok_prod->quantity_booking + $v['quantity_booking']);\n if (!$this->db->update('products', ['quantity_booking' => $_prodstok_bk], ['id' => $v['product_id']])) {\n throw new \\Exception(lang(\"failed_update_stock_prod\"));\n }\n } else {\n throw new \\Exception(lang(\"failed_update_stock\"));\n }\n // $get_wh = $this->db->select('quantity_booking')->get_where('warehouses_products',$where_wh)->row();\n // $up_wh = ['quantity_booking' => $get_wh->quantity_booking + $v['quantity_booking']];\n // $this->db->update('warehouses_products', $up_wh, $where_wh);\n // $where_prod = ['id' => $v['product_id']];\n // $get_prod = $this->db->select('quantity_booking')->get_where('products',$where_prod)->row();\n // $up_prod = ['quantity_booking' => $get_prod->quantity_booking + $v['quantity_booking']];\n // $this->db->update('products', $up_prod, $where_prod);\n\n $booking[$k]['sale_id'] = $sale_id;\n }\n if (!$this->db->insert_batch('sale_booking_items', $booking)) {\n throw new \\Exception(lang(\"failed_insert_sale_booking_items_reserved\"));\n }\n } else {\n foreach ($booking as $k => $v) {\n $booking[$k]['sale_id'] = $sale_id;\n $booking[$k]['quantity_booking'] = 0;\n }\n if (!$this->db->insert_batch('sale_booking_items', $booking)) {\n throw new \\Exception(lang(\"failed_insert_sale_booking_items\"));\n }\n }\n\n foreach ($items as $item) {\n $item['sale_id'] = $sale_id;\n if (!$this->db->insert('sale_items', $item)) {\n throw new \\Exception(lang(\"failed_insert_sale_items\"));\n }\n $sale_item_id = $this->db->insert_id();\n /* \n karena booking hanya pencatatan, maka fungsi costing dipindah ke add delivery \n */\n }\n\n if ($data['payment_status'] == 'partial' || $data['payment_status'] == 'paid' && !empty($payment)) {\n if (empty($payment['reference_no'])) {\n $payment['reference_no'] = $this->site->getReference('pay');\n }\n $payment['sale_id'] = $sale_id;\n if ($payment['paid_by'] == 'gift_card') {\n if (!$this->db->update('gift_cards', ['balance' => $payment['gc_balance']], ['card_no' => $payment['cc_no']])) {\n throw new \\Exception(lang(\"failed_update_gift_cards\"));\n }\n unset($payment['gc_balance']);\n if (!$this->db->insert('payments', $payment)) {\n throw new \\Exception(lang(\"failed_insert_payment\"));\n }\n } else {\n if ($payment['paid_by'] == 'deposit') {\n $customer = $this->site->getCompanyByID($data['customer_id']);\n if (!$this->db->update('companies', array('updated_at' => date('Y-m-d H:i:s'), 'deposit_amount' => ($customer->deposit_amount - $payment['amount'])), array('id' => $customer->id))) {\n throw new \\Exception(lang(\"failed_update_deposit_amount\"));\n }\n }\n $this->db->insert('payments', $payment);\n }\n if ($this->site->getReference('pay') == $payment['reference_no']) {\n $this->site->updateReference('pay');\n }\n $this->site->syncSalePayments($sale_id);\n }\n $this->sma->update_award_points($data['grand_total'], $data['customer_id'], $data['created_by']);\n return $sale_id;\n }\n\n return false;\n }", "function map_add_booking ($entry, &$column, $start_first_slot, $start_last_slot)\n{\n // Enters the contents of the booking found in $entry into $column, which is\n // a column of the map of the bookings being prepared ready for display.\n //\n // $column the column of the map that is being prepared (see below)\n // $entry a booking from the database\n // $start_first_slot the start of the first slot of the booking day (Unix timestamp)\n // $start_last_slot the start of the last slot of the booking day (Unix timestamp)\n \n // $entry is expected to have the following keys, when present:\n // room_id\n // start_time\n // end_time\n // name\n // repeat_id\n // id\n // type\n // description\n // create_by\n // status\n \n // $column is a column of the map of the screen that will be displayed\n // It looks like:\n // $column[s][n][id]\n // [is_repeat]\n // [is_multiday_start] a boolean indicating if the booking stretches\n // beyond the day start\n // [is_multiday_end] a boolean indicating if the booking stretches\n // beyond the day end\n // [color]\n // [data]\n // [long_descr]\n // [create_by]\n // [room_id]\n // [start_time]\n // [slots]\n // [status]\n \n // s is the number of nominal seconds (ie ignoring DST changes] since the\n // start of the calendar day which has the start of the booking day\n \n // slots records the duration of the booking in number of time slots.\n // Used to calculate how high to make the block used for clipping\n // overflow descriptions.\n\n // Fill in the map for this meeting. Start at the meeting start time,\n // or the day start time, whichever is later. End one slot before the\n // meeting end time (since the next slot is for meetings which start then),\n // or at the last slot in the day, whichever is earlier.\n // Time is of the format HHMM without leading zeros.\n //\n // [n] exists because it's possible that there may be multiple bookings\n // in the same time slot. Normally this won't be the case. However it\n // can arise legitimately if you increase the resolution, or shift the \n // displayed day. For example if you previously had a resolution of 1800 \n // seconds you might have a booking (A) for 1000-1130 and another (B) for 1130-1230.\n // If you then increase the resolution to 3600 seconds, these two bookings \n // will both occupy the 1100-1200 time slot. [n] starts at 0. For\n // the example above the map for the room would look like this\n //\n // 0 1\n // 1000 A\n // 1100 A B\n // 1200 B\n //\n // Adjust the starting and ending times so that bookings which don't\n // start or end at a recognized time still appear.\n \n global $resolution;\n global $is_private_field;\n \n $user = getUserName();\n if (is_private_event($entry['status'] & STATUS_PRIVATE) &&\n !getWritable($entry['create_by'], $user, $entry['room_id']))\n {\n $entry['status'] |= STATUS_PRIVATE; // Set the private bit\n if ($is_private_field['entry.name'])\n {\n $entry['name'] = \"[\".get_vocab('unavailable').\"]\";\n }\n if ($is_private_field['entry.description'])\n {\n $entry['description'] = \"[\".get_vocab('unavailable').\"]\";\n }\n if (!empty($is_private_field['entry.type']))\n {\n $entry['type'] = 'private_type';\n }\n }\n else\n {\n $entry['status'] &= ~STATUS_PRIVATE; // Clear the private bit\n }\n\n $is_multiday_start = ($entry['start_time'] < $start_first_slot);\n $is_multiday_end = ($entry['end_time'] > ($start_last_slot + $resolution));\n \n $start_t = max(round_t_down($entry['start_time'], $resolution, $start_first_slot), $start_first_slot);\n $end_t = min(round_t_up($entry['end_time'], $resolution, $start_first_slot) - $resolution, $start_last_slot);\n \n // calculate the times used for indexing - we index by nominal seconds since the start\n // of the calendar day which has the start of the booking day\n $start_s = nominal_seconds($start_t);\n $end_s = nominal_seconds($end_t);\n \n for ($s = $start_s; $s <= $end_s; $s += $resolution)\n { \n // find the first free index (in case there are multiple bookings in a timeslot)\n $n = 0;\n while (!empty($column[$s][$n][\"id\"]))\n {\n $n++;\n }\n \n // fill in the id, type and start time\n $column[$s][$n][\"id\"] = $entry['id'];\n $column[$s][$n][\"is_repeat\"] = isset($entry['repeat_id']);\n $column[$s][$n][\"is_multiday_start\"] = $is_multiday_start;\n $column[$s][$n][\"is_multiday_end\"] = $is_multiday_end;\n $column[$s][$n][\"status\"] = $entry['status'];\n $column[$s][$n][\"color\"] = $entry['type'];\n $column[$s][$n][\"start_time\"] = hour_min($start_s);\n $column[$s][$n][\"slots\"] = NULL; // to avoid undefined index NOTICE errors\n // if it's a multiple booking also fill in the name and description\n if ($n > 0)\n {\n $column[$s][$n][\"data\"] = $entry['name'];\n $column[$s][$n][\"long_descr\"] = $entry['description'];\n $column[$s][$n][\"create_by\"] = $entry['create_by'];\n $column[$s][$n][\"room_id\"] = $entry['room_id'];\n }\n // otherwise just leave them blank (we'll fill in the first whole slot later)\n // use NULL rather than '' just in case the value really is ''\n else\n {\n $column[$s][$n][\"data\"] = NULL;\n $column[$s][$n][\"long_descr\"] = NULL;\n $column[$s][$n][\"create_by\"] = NULL;\n $column[$s][$n][\"room_id\"] = NULL;\n }\n } // end for\n \n \n // Show the name of the booker, the description and the number of complete\n // slots in the first complete slot that the booking happens in, or at the \n // start of the day if it started before today.\n\n // Find the number of time slots that the booking occupies, and the index\n // of the first slot that this booking has entirely to itself\n // We need to adjust the start and end times for DST transitions as the display\n // ignores DST\n $n_slots = intval((($end_t - $start_t) - cross_dst($start_t, $end_t))/$resolution) + 1;\n $first_slot = $start_s;\n \n // If the last time slot is already occupied, we have a multiple\n // booking in the last slot, so decrement the number of slots that\n // we will display for this booking\n if (isset($column[$end_s][1][\"id\"]))\n {\n $n_slots--;\n // If we're only the second booking to land on this time slot\n // then we'll have to adjust the information held for the first booking\n // (unless it's just one slot long in the first place, when it \n // doesn't matter as it will now be part of a multiple booking).\n // If we are the third booking or more, then it will have already\n // been adjusted.\n if (!isset($column[$end_s][2][\"id\"]))\n {\n if ($column[$end_s][0][\"slots\"] > 1)\n {\n // Move the name and description into the new first slot and decrement the number of slots\n $column[$end_s + $resolution][0][\"data\"] = $column[$end_s][0][\"data\"];\n $column[$end_s + $resolution][0][\"long_descr\"] = $column[$end_s][0][\"long_descr\"];\n $column[$end_s + $resolution][0][\"create_by\"] = $column[$end_s][0][\"create_by\"];\n $column[$end_s + $resolution][0][\"room_id\"] = $column[$end_s][0][\"room_id\"];\n $column[$end_s + $resolution][0][\"slots\"] = $column[$end_s][0][\"slots\"] - 1;\n }\n }\n }\n \n // and if the first time slot is already occupied, decrement\n // again, adjust the first slot for this booking\n if (isset($column[$start_s][1][\"id\"]))\n {\n $n_slots--;\n $first_slot += $resolution;\n // If we're only the second booking to land on this time slot\n // then we'll have to adjust the information held for the first booking\n if (!isset($column[$start_s][2][\"id\"]))\n {\n // Find the first slot ($s) of the first booking\n $first_booking_id = $column[$start_s][0][\"id\"];\n $r = $start_s;\n // If you've got to the first slot of the day then that must be the\n // first slot of the first booking\n while ($r > $start_first_slot)\n {\n // Otherwise, step back one slot.\n $r -= $resolution;\n // If that slot contains the first booking, then step back again\n if (isset($column[$r]))\n {\n foreach ($column[$r] as $booking)\n {\n if ($booking[\"id\"] == $first_booking_id)\n {\n continue 2; // next iteration of the while loop\n }\n }\n }\n // If not, then we've stepped back one slot past the start of\n // the first booking, so step forward again and finish\n $r += $resolution;\n break;\n } // end while\n \n // Now we've found the time ($r) of the first slot of the first booking\n // we need to find its index ($i)\n foreach ($column[$r] as $i => $booking)\n {\n if ($booking[\"id\"] == $first_booking_id)\n {\n break;\n }\n }\n\n // Finally decrement the slot count for the first booking\n // no need to worry about count going < 1: the multiple booking display\n // does not use the slot count.\n $column[$r][$i][\"slots\"]--;\n // and put the name and description in the multiply booked slot\n $column[$start_s][0][\"data\"] = $column[$r][$i][\"data\"];\n $column[$start_s][0][\"long_descr\"] = $column[$r][$i][\"long_descr\"];\n $column[$start_s][0][\"create_by\"] = $column[$r][$i][\"create_by\"];\n $column[$start_s][0][\"room_id\"] = $column[$r][$i][\"room_id\"];\n }\n }\n \n // now we've got all the information we can enter it in the first complete\n // slot for the booking (provided it's not a multiple booking slot)\n if (!isset($column[$first_slot][1][\"id\"]))\n {\n $column[$first_slot][0][\"data\"] = $entry['name'];\n $column[$first_slot][0][\"long_descr\"] = $entry['description'];\n $column[$first_slot][0][\"create_by\"] = $entry['create_by']; \n $column[$first_slot][0][\"room_id\"] = $entry['room_id']; \n $column[$first_slot][0][\"slots\"] = $n_slots;\n }\n\n}", "function interpersonal($cit1,$cit2,$action)\n\t{\n\t\t$sql = \"INSERT INTO relationship (cit1,cit2,value) VALUES ({$cit1}, {$cit2}, 1) ON DUPLICATE KEY UPDATE weight = weight+{$action}\";\n\t\ttry { $this->db->exec($sql);}catch(PDOException $e) { echo $e->getMessage();}\n\t\t\n\t}", "public function bookingaddtocart($productid,$quantity,$userid,$dat,$day,$slot,$slotno) { \n \n\t \n\t\t\n\t\t\n\t\t $objectManager = \\Magento\\Framework\\App\\ObjectManager::getInstance(); // Instance of object manager\n\t $helper = $objectManager->get('Webkul\\Marketplace\\Helper\\Data');\n\t\t //$helper->setCurrentStore(4);\n\t\t $helper->setCurrentStore(1);\n\t $datvalue=str_replace(\"-\",\"/\",$dat);\t\n\t\t \n\t\t $store=$this->storeManager->getStore();\n $websiteId = $this->storeManager->getStore()->getWebsiteId();\n $customer=$this->customerFactory->create();\n //$customer->setWebsiteId($websiteId);\n //$customer->loadByEmail($orderData['email']);// load customet by email address\n\t\t$customer->load($userid);\n\t\t $customer->getId();\n\t\t $customer->getEntityId();\n\t\t $customer= $this->customerRepository->getById($customer->getEntityId());\n\t\t \n\t\t \n\t\t $objectManager = \\Magento\\Framework\\App\\ObjectManager::getInstance();\n\t\t $resource = $objectManager->get('Magento\\Framework\\App\\ResourceConnection');\n\t\t $connection = $resource->getConnection(); \n\t\t //$quote_sql = \"Select * FROM quote where customer_id=$userid and store_id=4 and is_active=1 order by entity_id ASC limit 1\";\n\t \n\t\t\t$quote_sql = \"Select * FROM quote where customer_id=$userid and store_id=1 and is_active=1 order by entity_id ASC limit 1\";\n\t \n\t\t\t$result_result = $connection->fetchAll($quote_sql);\n\t\t //print_r($result_result); \n\t\t\t\tif(!empty($result_result))\n\t\t\t\t{\n\t\t\t\t\t $quoteId=$result_result[0]['entity_id'];\n\t\t\t\t\t //$quote_sql = \"delete from quote where customer_id=$userid and store_id=4 and entity_id=$quoteId \";\n\t\t\t\t\t\t\t\t\t $quote_sql = \"delete from quote where customer_id=$userid and store_id=1 and entity_id=$quoteId \";\n\t\t\t\t\t\t\t\t\t\t$connection->rawQuery($quote_sql);\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t $quote=$this->quote->create(); \n\t\t\t\t\t\t\t\t\t\t$objectManager = \\Magento\\Framework\\App\\ObjectManager::getInstance();\n\t\t\t\t\t\t\t\t\t\t $productdetails = $objectManager->create('Magento\\Catalog\\Model\\Product')->load($productid);\n\t\t\t\t\t\t\t\t\t\t$checkoutSession =$objectManager->get('Magento\\Checkout\\Model\\Session');\n\t\t\t\t\t\t\t\t\t\t$checkoutSession->setQuoteId($quote->getId());\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t$this->cart->addProduct($productdetails, array('qty' =>1));\n\t\t\t\t\t\t\t\t\t\t$this->cart->save();\n\t\t\t\t\t\t\t\t\t\t$quote = $this->cart->getQuote();\n\t\t\t\t\t\t\t\t\t\t//$quote->setCustomerId ($this->_currentCustomer->getCustomerId ());\n\t\t\t\t\t\t\t\t\t\t$quote->setCustomerId ($userid);\n\t\t\t\t\t\t\t\t\t\t// Configure quote \n\t\t\t\t\t\t\t\t\t\t//$quote->setInventoryProcessed (false);\n\t\t\t\t\t\t\t\t\t\t//$quote->collectTotals ();\n\n\t\t\t\t\t\t\t\t\t\t// Update changes\n\t\t\t\t\t\t\t\t\t\t $quote->setStore($store); //set store for which you create quote\n\t\t\t\t\t\t\t\t\t\t// if you have allready buyer id then you can load customer directly \n\t\t\t\t\t\t\t\t\t\t//$customer= $this->customerRepository->getById($customer->getEntityId());\n\t\t\t\t\t\t\t\t\t\t$quote->setCurrency();\n\t\t\t\t\t\t\t\t\t\t$quote->assignCustomer($customer); \n\t\t\t\t\t\t\t\t\t\t$quote->collectTotals()->save();\n\t\t\t\t\t\t\t\t\t\t$quote_id=$quote->getId();\n\t\t\t\t\t\t\t\t\t\t$quoteItems = $quote->getAllVisibleItems(); \n\t\t\t\t\t\t\t\t\t\tforeach ($quoteItems as $item)\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t$quoteItem_id = $item->getId();\n\t\t\t\t\t\t\t\t\t\t//$quote_sql = \"update quote_item set booking_date='10/10/2016',booking_day='Monday',booking_slot_time='9:0-12:0',booking_slot_count='1' where item_id='$quoteItem_id' and quote_id='$quote_id'\";\n\t\t\t\t\t\t\t\t\t\t$quote_sql = \"update quote_item set booking_date='$datvalue',booking_day='$day',booking_slot_time='$slot',booking_slot_count='$slotno' where item_id='$quoteItem_id' and quote_id='$quote_id'\";\n\t\t\t\t\t\t\t\t\t\t$connection->rawQuery($quote_sql);\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t \n\t\t\t\t\t $quote=$this->quote->create(); \n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t$objectManager = \\Magento\\Framework\\App\\ObjectManager::getInstance();\n\t\t\t\t\t\t\t\t\t\t $productdetails = $objectManager->create('Magento\\Catalog\\Model\\Product')->load($productid);\n\t\t\t\t\t\t\t\t\t\t$checkoutSession =$objectManager->get('Magento\\Checkout\\Model\\Session');\n\t\t\t\t\t\t\t\t\t\t$checkoutSession->setQuoteId($quote->getId());\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t$this->cart->addProduct($productdetails, array('qty' =>1));\n\t\t\t\t\t\t\t\t\t\t$this->cart->save();\n\t\t\t\t\t\t\t\t\t\t$quote = $this->cart->getQuote();\n\t\t\t\t\t\t\t\t\t\t//$quote->setCustomerId ($this->_currentCustomer->getCustomerId ());\n\t\t\t\t\t\t\t\t\t\t$quote->setCustomerId ($userid);\n\t\t\t\t\t\t\t\t\t\t// Configure quote \n\t\t\t\t\t\t\t\t\t\t//$quote->setInventoryProcessed (false);\n\t\t\t\t\t\t\t\t\t\t//$quote->collectTotals ();\n\n\t\t\t\t\t\t\t\t\t\t// Update changes\n\t\t\t\t\t\t\t\t\t\t $quote->setStore($store); //set store for which you create quote\n\t\t\t\t\t\t\t\t\t\t// if you have allready buyer id then you can load customer directly \n\t\t\t\t\t\t\t\t\t\t//$customer= $this->customerRepository->getById($customer->getEntityId());\n\t\t\t\t\t\t\t\t\t\t$quote->setCurrency();\n\t\t\t\t\t\t\t\t\t\t$quote->assignCustomer($customer); \n\t\t\t\t\t\t\t\t\t\t$quote->collectTotals()->save();\n\t\t\t\t\t\t\t\t\t\t$quote_id=$quote->getId();\n\t\t\t\t\t\t\t\t\t\t$quoteItems = $quote->getAllVisibleItems(); \n\t\t\t\t\t\t\t\t\t\tforeach ($quoteItems as $item)\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t$quoteItem_id = $item->getId();\n\t\t\t\t\t\t\t\t\t\t//$quote_sql = \"update quote_item set booking_date='10/10/2016',booking_day='Monday',booking_slot_time='9:0-12:0',booking_slot_count='1' where item_id='$quoteItem_id' and quote_id='$quote_id'\";\n\t\t\t\t\t\t\t\t\t\t$quote_sql = \"update quote_item set booking_date='$datvalue',booking_day='$day',booking_slot_time='$slot',booking_slot_count='$slotno' where item_id='$quoteItem_id' and quote_id='$quote_id'\";\n\t\t\t\t\t\t\t\t\t\t$connection->rawQuery($quote_sql);\n\t\t\t\t\t\t\t\t\t\t} \n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t} \n \n\t\t\n \n\t\tif($quote->getId())\n\t\t {\n\t\t\n\t\t\t$result='success';\n\t\t \n\t\t }\n\t\t else\n\t\t {\n\t\t\n\t\t$result='error';\n\t\t }\n return $result;\n\t\t\n\t\t\n\t\t\n\t\t\n \n\t }", "function insertReservedSeats(mysqli $mysqli, $seatIds, $reservationId)\n{\n foreach ($seatIds as $seatId) {\n $reservedSeatQuery = \"INSERT INTO reserved_seats VALUES ($reservationId, $seatId);\";\n $result = $mysqli->query($reservedSeatQuery);\n }\n return $result;\n}", "public function addPigWeight($pid, $pweight, $remarks)\r\n\t\t{\r\n\t\t\t$link = $this->connect();\r\n\t\t\tdate_default_timezone_set(\"Asia/Manila\");\r\n\t\t\t$d = date(\"Y-m-d\");\r\n\t\t\t$t = date(\"h:i:s\");\r\n\t\t\t$query = \"INSERT INTO weight_record(record_date,record_time,weight,pig_id,remarks) \r\n\t\t\t\t\tVALUES ('\" . $d . \"','\" . $t . \"','\" . $pweight . \"','\" . $pid . \"','\" . $remarks . \"')\";\r\n\t\t\t$this->userTransactionEdit($user,0,\"weight\",0,$pweight,1,$pid);\r\n\t\t\t$result = mysqli_query($link, $query);\r\n\t\t}", "function insert_purchase_request($db, $buyer_id, $seller_id, $bookid)\n{\n\t/* Create the query */\n\t$sql = 'INSERT INTO purchase_requests (buyer_id, seller_id, bookid, date_time) \n\t\t\t\t\tVALUES (:buyer_id, :seller_id, :bookid, NOW())';\n\n\t/* Execute the query */\n\t$st = $db->prepare($sql);\n\t$st->execute(array(':buyer_id' =>$buyer_id, ':seller_id'=> $seller_id,\n\t\t\t\t\t\t\t\t\t\t ':bookid'=> $bookid));\n}", "public function run()\n {\n // booking_status: \n // 1 -> customer waiting photographer\n // 2 -> photographer accepted\n // 3 -> customer cancel\n // 4 -> photographer cancel\n\n\n DB::table('booking')->insert([\n\n [\n 'id_customer' => 2,\n 'id_photographer' => 17,\n 'id_combo' => 3,\n 'id_voucher'=> 1,\n 'start_time' => '2021-03-07',\n 'time_booking' => 1,\n 'price' => 1300000,\n 'booking_status' => 2,\n 'is_finish' => true,\n 'booking_address' => 'Shop quần áo số 34 Nam Từ Liêm, Hà Nội',\n 'created_at' => '2021-03-05 15:22:00',\n 'updated_at' => '2021-03-05 15:22:00',\n ],\n [\n 'id_customer' => 5 ,\n 'id_photographer' => 19,\n 'id_combo' => 12,\n 'id_voucher' => 2,\n 'start_time' => '2021-03-08',\n 'time_booking' => 1,\n 'price' => 500000,\n 'booking_status' => 2,\n 'is_finish' => true,\n 'booking_address' => '',\n 'created_at' => '2021-03-05 19:00:00',\n 'updated_at' => '2021-03-05 19:00:00',\n ],\n [\n 'id_customer' => 6,\n 'id_photographer' => 18,\n 'id_combo' => 10,\n 'id_voucher' => 2,\n 'start_time' => '2021-03-11',\n 'time_booking' => 1,\n 'price' => 450000,\n 'booking_status' => 2,\n 'is_finish' => true,\n 'booking_address' => 'Cong Vien Gia Dinh, Go Vap',\n 'created_at' => '2021-03-07 05:00:00',\n 'updated_at' => '2021-03-07 05:00:00'\n ],\n [\n 'id_customer' => 4,\n 'id_photographer' => 22,\n 'id_combo' => 27,\n 'id_voucher' => 2,\n 'start_time' => '2021-03-11',\n 'time_booking' => 1,\n\n 'price' => 450000,\n 'booking_status' => 2,\n 'is_finish' => true,\n 'booking_address' => '',\n 'created_at' => '2021-03-07 11:00:00',\n 'updated_at' => '2021-03-07 11:00:00'\n ],\n [\n 'id_customer' => 7,\n 'id_photographer' => 18,\n 'id_combo' => 6,\n 'id_voucher' => 2,\n 'start_time' => '2021-03-10',\n 'time_booking' => 1,\n\n 'price' => 450000,\n 'booking_status' => 3,\n 'is_finish' => false,\n 'booking_address' => '',\n 'created_at' => '2021-03-08 09:00:00',\n 'updated_at' => '2021-03-08 09:00:00'\n ],\n [\n 'id_customer' => 9,\n 'id_photographer' => 28,\n 'id_combo' => 59,\n 'id_voucher' => 2,\n 'start_time' => '2021-03-15',\n 'time_booking' => 1,\n\n 'price' => 5000000,\n 'booking_status' => 2,\n 'is_finish' => true,\n 'booking_address' => '35 Duy Tan, Son Tra, DN',\n 'created_at' => '2021-03-10 11:00:00',\n 'updated_at' => '2021-03-10 11:00:00'\n ],\n [\n 'id_customer' => 8,\n 'id_photographer' => 31,\n 'id_combo' => 75,\n 'id_voucher' => 2,\n 'start_time' => '2021-03-13',\n 'time_booking' => 1,\n\n 'price' => 450000,\n 'booking_status' => 2,\n 'is_finish' => true,\n 'booking_address' => 'Saigon Centre quận 1, HCM',\n 'created_at' => '2021-03-10 11:30:00',\n 'updated_at' => '2021-03-10 11:30:00'\n ],\n [\n 'id_customer' => 10,\n 'id_photographer' => 30,\n 'id_combo' => 66,\n 'id_voucher' => 2,\n 'start_time' => '2021-03-15',\n 'time_booking' => 1,\n\n 'price' => 450000,\n 'booking_status' => 3,\n 'is_finish' => false,\n 'booking_address' => 'No address',\n 'created_at' => '2021-03-12 11:23:10',\n 'updated_at' => '2021-03-12 11:23:10'\n ],\n [\n 'id_customer' => 16,\n 'id_photographer' => 29,\n 'id_combo' => 61,\n 'id_voucher' => 2,\n 'start_time' => '2021-03-18',\n 'time_booking' => 1,\n 'price' => 450000,\n 'booking_status' => 2,\n 'is_finish' => true,\n 'booking_address' => 'Cong vien Gia Dinh',\n 'created_at' => '2021-03-15 05:00:00',\n 'updated_at' => '2021-03-15 12:00:00'\n ],\n [\n 'id_customer' => 17,\n 'id_photographer' => 27,\n 'id_combo' => 55,\n 'id_voucher' => 2,\n 'start_time' => '2021-03-17',\n 'time_booking' => 1,\n 'price' => 450000,\n 'booking_status' => 3,\n 'is_finish' => false,\n 'booking_address' => 'Cong vien Hoang Van Thu',\n 'created_at' => '2021-03-15 09:30:00',\n 'updated_at' => '2021-03-15 09:30:00'\n ],\n\n [\n 'id_customer' => 15,\n 'id_photographer' => 23,\n 'id_combo' => 31,\n 'id_voucher' => 2,\n 'start_time' => '2021-03-22',\n 'time_booking' => 1,\n 'price' => 450000,\n 'booking_status' => 2,\n 'is_finish' => true,\n 'booking_address' => 'Da Lat',\n 'created_at' => '2021-03-20 11:00:00',\n 'updated_at' => '2021-03-20 11:00:00'\n ],\n [\n 'id_customer' => 14,\n 'id_photographer' => 22,\n 'id_combo' => 26,\n 'id_voucher' => 2,\n 'start_time' => '2021-03-23',\n 'time_booking' => 1,\n 'price' => 450000,\n 'booking_status' => 2,\n 'is_finish' => true,\n 'booking_address' => 'Bien Vung Tau',\n 'created_at' => '2021-03-20 15:00:00',\n 'updated_at' => '2021-03-20 15:00:00'\n ],\n [\n 'id_customer' => 13,\n 'id_photographer' => 18,\n 'id_combo' => 9,\n 'id_voucher' => 2,\n 'start_time' => '2021-03-28',\n 'time_booking' => 1,\n 'price' => 450000,\n 'booking_status' => 2,\n 'is_finish' => true,\n 'booking_address' => 'Truong Chinh, Tan Binh, HCM',\n 'created_at' => '2021-03-25 12:00:00',\n 'updated_at' => '2021-03-25 12:00:00'\n ],\n [\n 'id_customer' => 12,\n 'id_photographer' => 21,\n 'id_combo' => 23,\n 'id_voucher' => 2,\n 'start_time' => '2021-03-31',\n 'time_booking' => 1,\n 'price' => 450000,\n 'booking_status' => 2,\n 'is_finish' => true,\n 'booking_address' => 'Studio 31 Nguyen Luong Bang, Ho Chi Minh',\n 'created_at' => '2021-03-27 09:22:00',\n 'updated_at' => '2021-03-27 09:22:00'\n ],\n [\n 'id_customer' => 11,\n 'id_photographer' => 23,\n 'id_combo' => 32,\n 'id_voucher' => 2,\n 'start_time' => '2021-04-02',\n 'time_booking' => 1,\n 'price' => 450000,\n 'booking_status' => 2,\n 'is_finish' => true,\n 'booking_address' => 'Cong Vien',\n 'created_at' => '2021-03-31 08:00:00',\n 'updated_at' => '2021-03-31 08:00:00'\n ],\n\n [\n 'id_customer' => 6,\n 'id_photographer' => 25,\n 'id_combo' => 43,\n 'id_voucher' => 2,\n 'start_time' => '2021-04-07',\n 'time_booking' => 1,\n 'price' => 450000,\n 'booking_status' => 2,\n 'is_finish' => true,\n 'booking_address' => 'Etown Cong Hoa',\n 'created_at' => '2021-04-05 12:00:00',\n 'updated_at' => '2021-04-05 12:00:00'\n ],\n\n [\n 'id_customer' => 4,\n 'id_photographer' => 26,\n 'id_combo' => 50,\n 'id_voucher' => 2,\n 'start_time' => '2021-04-13',\n 'time_booking' => 1,\n 'price' => 450000,\n 'booking_status' => 2,\n 'is_finish' => true,\n 'booking_address' => 'Sabeco',\n 'created_at' => '2021-04-10 19:00:00',\n 'updated_at' => '2021-04-10 19:00:00'\n ],\n [\n 'id_customer' => 7,\n 'id_photographer' => 27,\n 'id_combo' => 51,\n 'id_voucher' => 2,\n 'start_time' => '2021-04-18',\n 'time_booking' => 1,\n 'price' => 450000,\n 'booking_status' => 2,\n 'is_finish' => true,\n 'booking_address' => 'Cau vuot Hoa Cam',\n 'created_at' => '2021-04-15 13:05:00',\n 'updated_at' => '2021-04-15 13:05:00'\n ],\n [\n 'id_customer' => 5,\n 'id_photographer' => 28,\n 'id_combo' => 57,\n 'id_voucher' => 2,\n 'start_time' => '2021-04-23',\n 'time_booking' => 1,\n 'price' => 450000,\n 'booking_status' => 2,\n 'is_finish' => true,\n 'booking_address' => 'TPHCM',\n 'created_at' => '2021-04-19 13:00:00',\n 'updated_at' => '2021-04-19 13:00:00'\n ],\n [\n 'id_customer' => 3,\n 'id_photographer' => 29,\n 'id_combo' => 62,\n 'id_voucher' => 2,\n 'start_time' => '2021-04-26',\n 'time_booking' => 1,\n 'price' => 450000,\n 'booking_status' => 3,\n 'is_finish' => false,\n 'booking_address' => 'DN',\n 'created_at' => '2021-04-23 11:00:00',\n 'updated_at' => '2021-04-23 11:00:00'\n ],\n [\n 'id_customer' => 9,\n 'id_photographer' => 30,\n 'id_combo' => 70,\n 'id_voucher' => 2,\n 'start_time' => '2021-04-25',\n 'time_booking' => 1,\n 'price' => 450000,\n 'booking_status' => 2,\n 'is_finish' => true,\n 'booking_address' => 'Cong Vien',\n 'created_at' => '2021-04-23 13:00:00',\n 'updated_at' => '2021-04-23 13:00:00'\n ],\n [\n 'id_customer' => 11,\n 'id_photographer' => 22,\n 'id_combo' => 3,\n 'id_voucher' => 2,\n 'start_time' => '2021-04-27',\n 'time_booking' => 1,\n 'price' => 450000,\n 'booking_status' => 4,\n 'is_finish' => false,\n 'booking_address' => 'DN',\n 'created_at' => '2021-04-25 13:00:00',\n 'updated_at' => '2021-04-25 13:00:00'\n ],\n\n ]);\n }", "public function addRatings()\n {\n }", "function add_update_om_items(){\t\n \t\t$house=$this->input->post('house2');\n\t\t$panjang=$this->input->post('panjang');\n\t\t$lebar=$this->input->post('lebar');\n\t\t$tinggi=$this->input->post('tinggi');\n\t\t$volume=$panjang*$lebar*$tinggi;\n\t\t\n\t\t$items=array(\n\t\t'HouseNo' =>$house,\n\t\t'NoPack'=>$this->input->post('pack'),\n\t\t'Length'=>$this->input->post('panjang'),\n\t\t'Width'=>$this->input->post('lebar'),\n\t\t'Height'=>$this->input->post('tinggi'),\n\t\t'Volume'=>$volume,\n\t\t'Date'=>date('Y-m-d H:i:s')\n\t\t);\t\t\n\t\t $this->model_app->insert('booking_items',$items);\n\t\t \n\tredirect('transaction/edit_outgoing_master/'.$house);\n }", "function CreateTravelRate() {\r\n $conn = conn();\r\n $sql = \"INSERT INTO `travelrates`(`TravelCode`, `TravelAmount`, `Modified`, `ModifiedBy`) \r\n VALUES ('$this->TravCode','$this->TravRate',NOW(),'$this->ModifiedBy')\";\r\n if ($conn->exec($sql)) {\r\n return 1;\r\n } else {\r\n return 0;\r\n }\r\n $conn = NULL;\r\n }", "function store(){\n\n date_default_timezone_set( 'Asia/Manila' );\n\n $buffer = '2 Hours';\n\n //INITIAL CHECKS\n if( $_POST['startTime'] < date( 'H:i:s', strtotime( '8:00 am' ) ) || $_POST['startTime'] > date( 'H:i:s', strtotime( '5:00 pm' ) ) ){\n redirect( route( 'reservations?alert=1' ) );\n return false;\n }\n\n $request_start = date( 'Y-m-d H:i:s', strtotime( $_POST['reservation_startdate'].\" \".$_POST['startTime'] ) );\n $duration = where( 'reservation_categories', \"reservation_category = '{$_POST['reservation']}'\")[0]['reservation_duration'];\n\n //Get and Set End of Requested event\n $request_end = date_add(\n date_create( $request_start ),\n date_interval_create_from_date_string( $duration ));\n\n $request_end = date_format( $request_end, 'Y-m-d H:i:s' );\n //END\n\n //Get and Set request date with buffer\n $request_buffered = date_sub(\n date_create( $request_start ),\n date_interval_create_from_date_string( $buffer )\n );\n\n $request_buffered = date_format( $request_buffered, 'Y-m-d H:i:s' );\n //END\n\n\n //First line of defense in checking whether there is already an existing reservation\n $first_check = where( 'reservations', \"'{$request_buffered}' < reservation_enddate AND reservation_enddate < '{$request_end}'\" );\n\n if( !empty( $first_check )){\n\n redirect( route( 'dashboard/reservation/create?alert=1' ) );\n return false;\n\n }\n\n //Last line of defense to check an existing reservation\n $second_check = where( 'reservations', \"'{$request_buffered}' < reservation_startdate AND reservation_startdate < '{$request_end}'\" );\n\n if( !empty( $second_check ) ){\n\n redirect( route( 'dashboard/reservation/create?alert=1' ) );\n return false;\n }\n\n\n\n $data = [\n\n 'reserver_name' => $_POST['reserver_name'],\n 'reserver_contact' => $_POST['reserver_contact'],\n 'reservation' => $_POST['reservation'],\n 'reservation_startdate' => $request_start,\n 'reservation_enddate' => $request_end,\n 'facilitator' => $_POST['facilitator'],\n 'approved_by' => $_POST['approved_by'],\n 'approved_date' => date( 'Y-m-d H:i:s' ),\n 'reservation_status' => 'Approved',\n 'created_at' => date('Y-m-d H:i:s'),\n 'updated_at' => date('Y-m-d H:i:s'),\n\n\n ];\n\n\n insert('reservations', $data );\n\n //START SMS\n $settings = get( 'settings', 1);\n\n if( !insert('reservations', $data ) ){\n redirect( route( 'reservations?alert=2' ) );\n }\n\n $number = $_POST['reserver_contact'];\n $message = $settings[0]['approved_message'];\n $apicode = $settings[0]['sms_key'];\n\n //Notify admin\n itexmo( $number, $message, $apicode );\n\n redirect( route( 'dashboard/reservation' ) );\n return true;\n}", "public function update_ratting_data() {\n\t\tglobal $wpdb;\n\t\t$sso = new Top_Ratter_SSO ();\n\t\t// get the ratting data from sso class\n\t\t$journal_records=$sso->esi_api_gather_ratted_isk_amount();\n\t\t\n\t\tif ($journal_records == null) {\n\t\t echo'<p>Problem with API :(</p>';\n\t\t\treturn;\n\t\t}\n\t\tif($journal_records=='no_officer_token'){\n\t\t echo'<p>There is no officer token, inform officers. Pretty please?</p>';\n\t\t return;\n\t\t}\n\n\t\t$bounties_array = $this->filter_ratting_data ( $journal_records);\n\t\t$structures_array = $this->filter_ratting_data ( $journal_records,true);\n\t\t\n\t\t/*\n\t\t * Bounties akka ratting data to be inserted.\n\t\t */\n\t\tif($bounties_array){\n\t\t \n\t\t $this->insert_new_characters_in_database($bounties_array);\n\t\t \n\t\t $bounties_to_insert=null;\n\t\t \n\t\t $sql_max_ref_id=\"SELECT MAX(`ref_id`) AS ref_id FROM `\" . $wpdb->prefix . \"tr_ratting_data`\";\n\t\t $max_ref_id=$wpdb->get_row($sql_max_ref_id,ARRAY_A); \n\t\t \n\t\t if($max_ref_id['ref_id']!==NULL){\n\t\t foreach($bounties_array as $bounty_record){\n\t\t // select only those that is not in the db\n\t\t if($bounty_record['ref_id']>(float)$max_ref_id['ref_id']){\n\t\t //this is new record that is not in the db yet\n\t\t $bounties_to_insert[]=$bounty_record;\n\t\t } \n\t\t }\n\t\t }else{\n // insert all since nothing in db\n\t\t $bounties_to_insert=$bounties_array;\n\t\t }\n\t\t \n\t\t if($bounties_to_insert){\n\t\t $sql=\"INSERT INTO `\" . $wpdb->prefix . \"tr_ratting_data`(`owner_id`, `date_acquired`, `amount`, `system_id`, `npc_kills`, `ref_id`) VALUES\";\n\t\t $count=count($bounties_to_insert);\n\t\t $i=1;\n\t\t foreach($bounties_to_insert as $record){\n\t\t $system_id=0;\n\t\t if($record['extra_info']['system_id']){\n\t\t $system_id=$record['extra_info']['system_id'];\n\t\t }\n\t\t $sql.='(\"'.$record['second_party_id'].'\",\"'.$record['date'].'\",\"'.$record['tax'].'\",\"'.$system_id.'\",\"'.$record['npc_kills'].'\",\"'.$record['ref_id'].'\")';\n\t\t \n\t\t if($i==$count){\n\t\t $sql.='';\n\t\t }else{\n\t\t $sql.=',';\n\t\t }\n\t\t $i++;\n\t\t }\n\t\t $sql.=';';\n\t\t $wpdb->query($sql);\n\t\t } \n\t\t}\n\t\t\n\t\t/*\n\t\t * Structures data insert starts here\n\t\t */\n\t\tif($structures_array){\n\t\t $sql=\"INSERT INTO `\" . $wpdb->prefix . \"tr_structures_income`(`ref_id`, `date_acquired`, `amount`, `ref_type`) VALUES\";\n\t\t $count=count($structures_array);\n\t\t $i=1;\n\t\t foreach($structures_array as $record){\n\t\t \n\t\t $sql.='(\"'.$record['ref_id'].'\",\"'.$record['date'].'\",\"'.$record['amount'].'\",\"'.$record['ref_type'].'\")';\n\t\t \n\t\t if($i==$count){\n\t\t $sql.='';\n\t\t }else{\n\t\t $sql.=',';\n\t\t }\n\t\t $i++;\n\t\t }\n\t\t $sql.=';';\n\t\t $wpdb->query($sql); \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}", "public static function insert(){\n $dayOfWeek = $_REQUEST[\"dayOfWeek\"];\n $startTime = $_REQUEST[\"startTime\"];\n $endTime = $_REQUEST[\"endTime\"];\n \n $result = DB::dataManipulation(\"INSERT INTO timeslots (dayOfWeek, startTime, endTime)\n VALUES ('$dayOfWeek','$startTime','$endTime')\");\n return $result;\n }", "public function run()\n {\n DB::table('plans')->insert(array(\n \n array('name' => 'Monthly',\n 'price' => 3500),\n\n array('name' => 'Yearly',\n 'price' => 19700)\n ));\n }", "function addNewSYTerm()\n\t{\n require 'b_ConnectionString.php';\n\n\t\t$capturedSchoolYearData = $_POST['sendSchoolYearData'];\n\t\tfor ($counter = 1 ; $counter <= 4 ; $counter++)\n\t\t{\n\t\t\t$query = \n\t\t\t\t\"INSERT INTO syterms (schoolYear, termNumber, isActive) \n\t\t\t\tVALUES ('$capturedSchoolYearData', '\" . $counter . \"', '0');\";\n\n\t\t\tmysqli_query($mySQL_ConStr, $query);\n\t\t}\n\n\t\tautoSetActiveSYTerm();\n\t}", "function addBusSeats(int $noOfSeats, $isUsable, $isPremium, String $busId, String $seatName)\n\t{\n\t\ttry {\n\t\t\tfor ($i = 1; $i <= $noOfSeats; $i++) {\n\n\t\t\t\t$sql = \"INSERT INTO bus_seat(isUsable,isPremium,busId, seatName) VALUES($isUsable, $isPremium,'$busId','$seatName$i')\";\n\t\t\t\tif (!$this->conn->query($sql)) {\n\t\t\t\t\tthrow new Exception($this->conn->error);\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t} catch (Exception $e) {\n\t\t\treturn $e->getMessage();\n\t\t}\n\t}", "public function run()\n {\n $reservation1 = new Reservation();\n $reservation1->total_price = 150;\n $reservation1->start_date = '2019-11-14';\n $reservation1->end_date = '2019-11-16';\n $reservation1->user_id = 1;\n $reservation1->room_id = 2;\n $reservation1->save();\n\n $reservation2 = new Reservation();\n $reservation2->total_price = 2071.5;\n $reservation2->start_date = '2019-12-14';\n $reservation2->end_date = '2020-01-20';\n $reservation2->user_id = 1;\n $reservation2->room_id = 1;\n $reservation2->save();\n\n $reservation3 = new Reservation();\n $reservation3->total_price = 13020;\n $reservation3->start_date = '2019-12-19';\n $reservation3->end_date = '2020-01-28';\n $reservation3->user_id = 1;\n $reservation3->room_id = 5;\n $reservation3->save();\n }", "static function addReview($bookingId, $hotelId, $rating, $comment)\n {\n $db = DB::getConnection();\n try {\n $st = $db->prepare('INSERT INTO projekt_reviews(id_booking, id_user, name_user, id_hotel, name_hotel, rating, comment) VALUES (:id_booking, :id_user, :name_user, :id_hotel, :name_hotel, :rating, :comment)');\n $st->execute(array('id_booking' => $bookingId, 'id_user' => $_SESSION['user']->getId(), 'name_user' => $_SESSION['user']->getName(), 'id_hotel' => $hotelId, 'name_hotel' => Hotel::find($hotelId)->getName(), 'rating' => $rating, 'comment' => $comment));\n } catch (PDOException $e) {\n exit(\"PDO error [insert projekt_users]: \" . $e->getMessage());\n }\n try {\n echo $rating;\n $st = $db->prepare('UPDATE projekt_hotels SET rating = (rating * number_of_comments + :rating)/(number_of_comments + 1), number_of_comments = number_of_comments + 1 WHERE id = :id_hotel');\n $st->execute(array('id_hotel' => $hotelId, 'rating' => $rating));\n } catch (PDOException $e) {\n exit(\"PDO error [UPDATE projekt_hotels]: \" . $e->getMessage());\n }\n }", "public function wkauto_auctionbids_insertbids($data,$user){\n\n\t\t$date = new DateTime('2014-06-1', new DateTimeZone($this->config->get('wkproduct_auction_timezone_set')));\n\t\t$zone = $date->format('P');\n\t\t$query = \"SELECT CONVERT_TZ(NOW(), @@session.time_zone, '$zone') as time;\";\n\t\t$data_time = $this->db->query($query)->row;\n\t\t\n\t\t$time = date(\"Y-m-d H:i:s\", strtotime($data_time['time']));\n\t\t\n\t\t$userExist = $this->db->query(\"SELECT user_id,product_id FROM \".DB_PREFIX.\"wk_automatic_auctionbids WHERE user_id = '\".$data['user'].\"' AND product_id='\".$data['product_id'].\"' AND winner = 0 \" )->row;\n\n $sql=$this->db->query(\"SELECT MAX(wab.user_bid) id,wa.min,wa.max,wa.product_id FROM \" . DB_PREFIX . \"wkauction wa LEFT JOIN \". DB_PREFIX . \"wk_automatic_auctionbids wab ON (wa.id=wab.auction_id) WHERE wa.id = '\" . (int)$data['auction'] . \"' AND wab.winner = 0 AND wab.start_date<='\".$time.\"' AND wab.end_date>='\".$time.\"' \")->row;\n\n $normal_max_bid=$this->db->query(\"SELECT MAX(wab.user_bid) id,wa.min,wa.max,wa.product_id FROM \" . DB_PREFIX . \"wkauction wa LEFT JOIN \". DB_PREFIX . \"wkauctionbids wab ON (wa.id=wab.auction_id) WHERE wa.id = '\" . (int)$data['auction'] . \"' AND wab.winner = 0 AND wab.start_date<='\".$time.\"' AND wab.end_date>='\".$time.\"' \")->row;\n\n $range = $this->db->query(\"SELECT min,max FROM \".DB_PREFIX.\"wkauction WHERE id='\".$data['auction'].\"' \")->row;\n\n if($data['amount']>=$range['max'] || $data['amount']<=$range['min']){\n\t\t\t return 'not done';\n\t\t\t}\n\n\t\t\tif(isset($normal_max_bid['product_id'])){\n\t\t\t\t if(count($normal_max_bid)!=0 && $data['amount']<=$normal_max_bid['id']){\n\t\t\t\t return 'not_min_auction'; //only for checking not messages\n\t\t\t\t }\n\n }\n\n if(isset($sql['product_id'])){\n\n\t\t\t\t if(count($sql)!=0 && $data['amount']<=$sql['id']){\n\t\t\t\t return 'not'; //only for checking not messages\n\t\t\t\t }\n }\n \n\t if($userExist) {\n\t \t\t$sql = \"UPDATE \" . DB_PREFIX . \"wk_automatic_auctionbids SET winner='0',sold='0',auction_id = '\" . (int)$data['auction']. \"', user_id = '\" .(int)$user.\"', product_id = '\" .(int)$data['product_id'].\"', start_date = '\" .$this->db->escape($data['start_date']). \"', end_date = '\" .$this->db->escape($data['end_date']).\"', date = '\".$time.\"', user_bid = '\" .(double)$data['amount'].\"' WHERE user_id = '\".$userExist['user_id'].\"' AND product_id = '\".$userExist['product_id'].\"' AND winner = 0 \";\n\t \t\n\t \t$query=$this->db->query($sql);\n\t }else{\n\t \t\t$sql = \"INSERT INTO \" . DB_PREFIX . \"wk_automatic_auctionbids SET winner='0',sold='0',auction_id = '\" . (int)$data['auction']. \"', user_id = '\" .(int)$user.\"', product_id = '\" .(int)$data['product_id'].\"', start_date = '\" .$this->db->escape($data['start_date']). \"', end_date = '\" .$this->db->escape($data['end_date']).\"', date = '\".$time.\"', user_bid = '\" .(double)$data['amount'].\"'\";\n\t \t\t\n\t \t$query=$this->db->query($sql);\n\t }\n return 'done'; //only for checking not mesaages\n\t}", "function galaxy_add_spy($galaxy, $system, $row, $planet, $timestamp, $report, $phalanx, $gate) {\n\tglobal $db, $user_data, $server_config;\n\n\t$spy_added = array();\n\t$request = \"insert into \".TABLE_SPY.\" (spy_galaxy, spy_system, spy_row, sender_id, datadate, rawdata)\".\n\t\" values ('$galaxy', '$system', '$row', \".$user_data[\"user_id\"].\", '$timestamp', '\".mysql_real_escape_string($report).\"')\";\n\tif ($db->sql_query($request, false)) {\n\t\t$request = \"select spy_id from \".TABLE_SPY;\n\t\t$request .= \" where active = '1'\";\n\t\t$request .= \" and spy_galaxy = '\".$galaxy.\"'\";\n\t\t$request .= \" and spy_system = '\".$system.\"'\";\n\t\t$request .= \" and spy_row = '\".$row.\"'\";\n\t\t$request .= \" order by datadate\";\n\t\t$result = $db->sql_query($request);\n\t\tif ($db->sql_numrows($result) > $server_config[\"max_spyreport\"]) {\n\t\t\t$nb = $db->sql_numrows($result) ;\n\t\t\twhile ($nb > $server_config[\"max_spyreport\"]) {\n\t\t\t\tlist($spy_id) = $db->sql_fetch_row($result);\n\t\t\t\t$request = \"update \".TABLE_SPY.\" set active = '0' where spy_id = \".$spy_id;\n\t\t\t\t$db->sql_query($request);\n\t\t\t\t$nb--;\n\t\t\t}\n\t\t}\n\n\t\t$spy_added[] = \"galaxy=$galaxy&system=$system&row=$row\";\n\n\t\t$moon = false;\n\t\tif ((strcasecmp($planet, \"lune\") == 0 || strpos($planet, \" (Lune)\") != 0 ) && !preg_match(\"#Mine#\", $report) && !preg_match(\"#deutérium#\", $report)) { // http://www.ogsteam.fr/forums/viewtopic.php?pid=27284#p27284\n\t\t\t$moon = true;\n\t\t}\n\n\t\t$request = \"select last_update, last_update_moon from \".TABLE_UNIVERSE.\" where galaxy = $galaxy and system = $system and row = $row\";\n\t\t$result = $db->sql_query($request);\n\t\tlist($last_update, $last_update_moon) = $db->sql_fetch_row($result);\n\n\t\tif ($timestamp > $last_update) {\n\t\t\t/*//Incompatible MySQL 4.0\n\t\t\t$request = \"insert into \".TABLE_UNIVERSE.\" (galaxy, system, row, name, last_update, last_update_user_id)\".\n\t\t\t\" values ('\".$galaxy.\"', \".$system.\", '\".$row.\"', '\".$planet.\"', \".$timestamp.\", \".$user_data[\"user_id\"].\")\".\n\t\t\t\" on duplicate key update name = '\".$planet.\"', last_update = '\".$timestamp.\"', last_update_user_id = \".$user_data[\"user_id\"];*/\n\n\t\t\t$request = \"update \".TABLE_UNIVERSE.\" set last_update = '\".$timestamp.\"', last_update_user_id = \".$user_data[\"user_id\"];\n\t\t\tif (!$moon) $request .= \", name = '\".mysql_real_escape_string($planet).\"'\";\n\t\t\t$request .= \" where galaxy = '\".$galaxy.\"' and system = \".$system.\" and row = '\".$row.\"'\";\n\t\t\t$db->sql_query($request);\n\n\t\t\tif ($db->sql_affectedrows() == 0) {\n\t\t\t\t$request = \"insert ignore into \".TABLE_UNIVERSE.\" (galaxy, system, row, name, last_update, last_update_user_id)\";\n\t\t\t\t$request .= \" values ('\".$galaxy.\"', \".$system.\", '\".$row.\"', '\".mysql_real_escape_string($planet).\"', \".$timestamp.\", \".$user_data[\"user_id\"].\")\";\n\t\t\t\t$db->sql_query($request);\n\t\t\t}\n\t\t}\n\n\t\tif ($timestamp > $last_update_moon && $moon) {\n\t\t\t$request = \"update \".TABLE_UNIVERSE.\" set moon = '1', last_update_moon = \".$timestamp.\", phalanx = \".$phalanx.\", gate = '\".$gate.\"' where galaxy = '\".$galaxy.\"' and system = \".$system.\" and row = '\".$row.\"'\";\n\t\t\t$db->sql_query($request);\n\t\t}\n\n\t\treturn true;\n\t}\n\treturn false;\n}", "public function store(Request $request)\n {\n\n//dd($request);\n if ($request->checkin) {\n $str = trim($request->no, \",\");\n\n $ids = explode(\",\", $str);\n $intArray = array_map(\n function ($value) {\n return (int)$value;\n },\n $ids\n\n );\n\n\n foreach ($intArray as $key => $value) {\n $stockins = Stockin::create(['equipment_id' => $intArray[$key], 'quantity' => $request->checkin[$key], 'previousQuantity' => $request->checkinoriginalQuantity[$key], 'total' => $request->checkinoriginalQuantity[$key] + $request->checkin[$key]]);\n Equipment::where('id', $intArray[$key])->update(['updated_at' => Carbon::now(), 'status' => 1, 'outOfStock' => 0, 'stockin_id' => $stockins->id]);\n\n }\n\n\n }\n\n if ($request->reservationTime) {\n $str = trim($request->reservationTime, \" - \");\n $reservationtimeId = explode(\" - \", $str);\n $reservationtimeArray = array_map(\n function ($value) {\n return $value;\n },\n $reservationtimeId\n );\n\n $reservation = new Reservation([\n 'start_time' => $reservationtimeArray[0],\n 'end_time' => $reservationtimeArray[1]\n ]);\n }\n if (User::find($request->input('name'))) {\n $users = User::find($request->input('name'));\n\n $borrow = new Borrow([\n 'user_id' => Auth::user()->id,\n 'borrowedby_id' => $users->id,\n 'location_id' => $request->location_id,\n\n ]);\n\n\n if ($request->originalQuantity) {\n foreach ($request->originalQuantity as $key => $value) {\n\n\n if (array_key_exists($key, $request->quantity) && array_key_exists($key, $request->originalQuantity) && array_key_exists($key, $request->borrows))\n\n\n if (!($request->originalQuantity[$key] - $request->quantity[$key] <= 0)) {\n\n Equipment::where('id', $request->borrows[$key])->update(['status' => 1, 'consumable' => 1]);\n\n }\n if ($request->originalQuantity[$key] - $request->quantity[$key] == 0) {\n Equipment::where('id', $request->borrows[$key])->update(['outOfStock' => 1, 'status' => 0]);\n }\n $StockinString = Equipment::findOrfail($request->borrows[$key])->stockin_id;\n $StockinId = explode(\",\", $StockinString);\n $stockinsArray = array_map(\n function ($value) {\n return $value;\n },\n $StockinId\n );\n\n if ($request->originalQuantity[$key] - $request->quantity[$key] >= 1) {\n\n\n $stockins = Stockin::create(['equipment_id' => $request->borrows[$key], 'quantity' => $request->quantity[$key], 'previousQuantity' => $request->originalQuantity[$key], 'total' => $request->originalQuantity[$key] - $request->quantity[$key], 'deduction' => $request->quantity[$key]]);\n\n\n Equipment::where('id', $request->borrows[$key])->update(['updated_at' => Carbon::now(), 'status' => 1, 'outOfStock' => 0, 'stockin_id' => $stockins->id]);\n } else {\n $stockins = Stockin::create(['equipment_id' => $request->borrows[$key], 'quantity' => $request->quantity[$key], 'previousQuantity' => $request->originalQuantity[$key], 'total' => $request->originalQuantity[$key] - $request->quantity[$key], 'deduction' => $request->quantity[$key]]);\n Equipment::where('id', $request->borrows[$key])->update(['updated_at' => Carbon::now(), 'status' => 0, 'outOfStock' => 1, 'stockin_id' => $stockins->id]);\n\n }\n\n }\n\n } else {\n\n if ($request->non) {\n $borrow->status = 0;\n foreach ($request->non as $key => $value) {\n NonConsumable::create(['quantity' => -1, 'item' => $request->non[$key], 'status' => 0,]);\n foreach ($request->non as $id) {\n Equipment::where('id', $id)->update(['status' => 0, 'nonconsumable_id' => $request->non[$key], 'consumable' => 0, 'hasBorrow' => 1]);\n }\n }\n } else {\n if ($request->reservationNo) {\n $reservationString = trim($request->reservationNo, \",\");\n $reservationId = explode(\",\", $reservationString);\n\n $reservationArray = array_map(\n function ($value) {\n return $value;\n },\n $reservationId\n );\n foreach ($reservationArray as $key => $value) {\n NonConsumable::create(['quantity' => -1, 'item' => $reservationArray[$key], 'status' => 0,]);\n foreach ($reservationArray as $id) {\n Equipment::where('id', $id)->update(['status' => 0, 'nonconsumable_id' => -2, 'consumable' => 0, 'hasReservation' => 1, 'reservation_id' => $reservationArray[$key]]);\n }\n\n }\n }\n\n\n }\n\n }\n if ($request->reservationTime) {\n $reservation->save();\n }\n $borrow->save();\n\n if ($request->originalQuantity) {\n $borrow->equipments()->sync($request->borrows, false);\n $borrow->names()->sync([$request->input('name')], false);\n $borrow->stockins()->sync($stockinsArray, false);\n session()->flash('success', 'Borrowed successfully save!');\n return Redirect::route('admin.borrow.index');\n } elseif ($request->reservationNo) {\n $reservation->equipments()->sync($reservationArray, false);\n return Redirect::route('admin.borrow.index');\n } else {\n session()->flash('nonconsumables', 'Successful');\n $borrow->equipments()->sync($request->non, false);\n return Redirect::route('admin.borrow.index');\n }\n\n } else {\n $this->validate($request, ['item' => 'required',\n 'description' => 'required',\n 'status' => 'required',\n 'category_id' => 'required',]);\n $input = $request->all();\n\n $user = Auth::user();\n if ($file = $request->file('photo_id')) {\n $name = time() . $file->getClientOriginalName();\n $file->move('images', $name);\n $photo = Photo::create(['file' => $name]);\n $input['photo_id'] = $photo->id;\n }\n if ($request->consumable == 0) {\n $input['consumable'] = 0;\n $input['hasQuantity'] = 0;\n $input['hasBorrow'] = 0;\n }\n\n if ($request->nonconsumable_id) {\n\n $quantity = $request->nonconsumable_id;\n $nonconsumable = NonConsumable::create(['quantity' => $quantity]);\n $input['nonconsumable_id'] = $nonconsumable->id;\n\n } else {\n session()->flash('borrows', 'The Equipment was successfully save!');\n }\n $user->equipment()->create($input);\n session()->flash('success', 'The Equipment was successfully save!');\n\n return Redirect::route('admin.equipment.index');\n\n }\n\n\n }", "function saveRating($db, $user_pk, $item_pk, $rating) {\r\n\r\n $prefix = DB_TABLENAME_PREFIX;\r\n $sql = <<< EOD\r\nINSERT INTO {$prefix}rating (item_pk, user_pk, rating)\r\nVALUES (:item_pk, :user_pk, :rating)\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('user_pk', $user_pk, PDO::PARAM_INT);\r\n $query->bindValue('rating', $rating);\r\n\r\n $ok = $query->execute();\r\n\r\n return $ok;\r\n\r\n }", "function AddNewFishes($LakeReproductionGame, $PondReproductionGame, $idGame)\n{\n $dbh = ConnectDB();\n $req = $dbh->query(\"UPDATE fishermenland.game SET LakeFishesGame = FLOOR((LakeFishesGame/2))*$LakeReproductionGame+LakeFishesGame WHERE idGame = '$idGame'\");\n $req = $dbh->query(\"UPDATE fishermenland.place SET PondFishesPlace = FLOOR((PondFishesPlace/2))*$PondReproductionGame+PondFishesPlace\");\n}", "public function setcreatecompetence(){\n\n\n\n\n global $conn;\n\n\n $stmt = $conn->prepare(\"insert into competences(`competence`,`end`) value (?,?)\");\n $stmt->bind_param(\"ss\",$this->competence,$this->end);\n $stmt->execute();\n $stmt->close();\n\n\n\n\n\n }", "function addMeetingToDB(){\n /* need the following $link command to use the escape_string function */\n\n //since the add sql statement might be quite large dependind on the application\n // configuration, we will do it in parts.\n //-----------------------------------------------------------------------------------------------------\n // start with required fields, we know we check for mtgDate, mtgType and mtgTitle\n //-----------------------------------------------------------------------------------------------------\n $link = mysql_connect(DB_HOST, DB_USER, DB_PASSWORD)\n OR die(mysql_error());\n \n //we are going to check our values:\n $fDate = $_POST['mtgDate'];\n $time = strtotime($fDate);\n $mtgDate = date('Y-m-d',$time);\n \n $mtgType = $_POST['rdoMtgType'];\n $mtgTitle = $_POST['mtgTitle'];\n \n $mtgFac = $_POST['mtgCoordinator'];\n $mtgAttendance = $_POST['mtgAttendance'];\n $mtgDonations = $_POST['mtgDonations'];\n $mtgWorshipFac = $_POST['mtgWorship'];\n $mtgAudioVisualFac = $_POST['mtgAV'];\n $mtgSetupFac = $_POST['mtgSetup'];\n $mtgTransportationFac = $_POST['mtgTransportation'];\n $mtgGreeter1Fac = $_POST['mtgGreeter1'];\n $mtgGreeter2Fac = $_POST['mtgGreeter2'];\n $mtgResourcesFac = $_POST['mtgResources'];\n \n $mtgMenu = $_POST['mtgMenu'];\n $mtgMealCnt = $_POST['mtgMealCnt'];\n $mtgMealFac = $_POST['mtgMealFac'];\n \n $mtgReader1Fac = $_POST['mtgReader1'];\n $mtgReader2Fac = $_POST['mtgReader2'];\n $mtgAnnouncementsFac = $_POST['mtgAnnouncements'];\n $mtgTeachingFac = $_POST['mtgTeaching'];\n $mtgChips1Fac = $_POST['mtgChips1'];\n $mtgChips2Fac = $_POST['mtgChips2'];\n $mtgNewcomers1Fac = $_POST['mtgNewcomers1'];\n $mtgNewcomers2Fac = $_POST['mtgNewcomers2'];\n $mtgSerenityFac = $_POST['mtgSerenity'];\n \n $mtgNurseryCnt = $_POST['mtgNursery'];\n $mtgNurseryFac = $_POST['mtgNurseryFac'];\n $mtgChildrenCnt = $_POST['mtgChildren'];\n $mtgChildrenFac = $_POST['mtgChildrenFac'];\n $mtgYouthCnt = $_POST['mtgYouth'];\n $mtgYouthFac = $_POST['mtgYouthFac'];\n \n $mtgCafeFac = $_POST['mtgCafe'];\n $mtgTearDownFac = $_POST['mtgTearDown'];\n $mtgSecurityFac = $_POST['mtgSecurity'];\n \n $mtgNotes = $_POST['mtgNotes'];\n \n\n \n \n \n // ????????????????????????????????????????????????????\n // need to check if a similar meeting is already loaded\n // ????????????????????????????????????????????????????\n// define('DB_HOST', 'localhost');\n// define('DB_USER', 'dcolombo_muat');\n// define('DB_PASSWORD', 'MR0mans1212!');\n// define('DB_NAME', 'dcolombo_muat');\n $connection = new mysqli(DB_HOST, DB_USER, DB_PASSWORD, DB_NAME);\n // Check connection\n if ($connection->connect_error) {\n die(\"Connection failed: \" . $connection->connect_error);\n }\n $dbID = 0;\n $stmt = $connection->prepare(\"Select ID, MtgDate, MtgType, MtgTitle FROM meetings WHERE MtgDate = ? AND MtgType = ? AND MtgTitle = ?\");\n $stmt->bind_param(\"sss\", $mtgDate, $mtgType, $mtgTitle);\n $stmt->execute();\n $stmt->store_result();\n if ($stmt->num_rows > 0){\n //echo \"already entered\";\n $stmt->bind_result($ID, $dbDate, $dbType, $dbTitle);\n while($stmt->fetch()){\n $mtgID = $ID;\n }\n $stmt->free_result();\n $stmt->close();\n $connection->close();\n destination(307, \"error.php?ErrorCode=3001&ErrorMsg=\\\"That%20meeting%20already%20exists\\\"&ID=$mtgID\");\n }\n\n// // get the basic values from the form, theses are not required... these are all dropdowns\n// echo \"mtgID:\" . $mtg->getMtgID() . \"<br/>\";\n// echo \"mtgDate:\" . $mtg->getMtgDate() . \"<br/>\";\n// echo \"mtgTitle:\" . $mtg->getMtgTitle() . \"<br/>\";\n// echo \"mtgFac:\" . $mtg->getMtgFac() . \"<br/>\";\n// echo \"mtgAttendance:\" . $mtg->getMtgAttendance() . \"<br/>\";\n// echo \"Donations:\" . $mtg->getDonations() . \"<br/>\";\n// echo \"WorshipFac:\" . $mtg->getWorshipFac() . \"<br/>\";\n// echo \"AudioVisualFac:\" . $mtg->getAudioVisualFac() . \"<br/>\";\n// echo \"SetupFac:\" . $mtg->getSetupFac() . \"<br/>\";\n// echo \"TransportationFac:\" . $mtg->getTransportationFac() . \"<br/>\";\n// echo \"Greeter1Fac:\" . $mtg->getGreeter1Fac() . \"<br/>\";\n// echo \"Greeter2Fac:\" . $mtg->getGreeter2Fac() . \"<br/>\";\n// echo \"ResourcesFac:\" . $mtg->getResourcesFac() . \"<br/>\";\n// echo \"Menu:\" . $mtg->getTransportationFac() . \"<br/>\";\n// echo \"MealCnt:\" . $mtg->getMealCnt() . \"<br/>\";\n// echo \"MealFac:\" . $mtg->getMealFac() . \"<br/>\";\n// echo \"Reader1Fac:\" . $mtg->getReader1Fac() . \"<br/>\";\n// echo \"Reader2Fac:\" . $mtg->getReader2Fac() . \"<br/>\";\n// echo \"AnnouncementsFac:\" . $mtg->getAnnouncementsFac() . \"<br/>\";\n// echo \"TeachingFac:\" . $mtg->getTeachingFac() . \"<br/>\";\n// echo \"Chips1Fac:\" . $mtg->getChips1Fac() . \"<br/>\";\n// echo \"Chips2Fac:\" . $mtg->getChips2Fac() . \"<br/>\";\n// echo \"Newcomers1Fac:\" . $mtg->getNewcomers1Fac() . \"<br/>\";\n// echo \"Newcomers2Fac:\" . $mtg->getNewcomers2Fac() . \"<br/>\";\n// echo \"SerenityFac:\" . $mtg->getSerenityFac() . \"<br/>\";\n// echo \"NurseryCnt:\" . $mtg->getNurseryCnt() . \"<br/>\";\n// echo \"NurseryFac:\" . $mtg->getNurseryFac() . \"<br/>\";\n// echo \"ChildrenCnt:\" . $mtg->getChildrenFac() . \"<br/>\";\n// echo \"ChildrenFac:\" . $mtg->getChildrenFac() . \"<br/>\";\n// echo \"YouthCnt:\" . $mtg->getYouthCnt() . \"<br/>\";\n// echo \"YouthFac:\" . $mtg->getYouthFac() . \"<br/>\";\n// echo \"CafeFac:\" . $mtg->getCafeFac() . \"<br/>\";\n// echo \"TearDownFac:\" . $mtg->getTearDownFac() . \"<br/>\";\n// echo \"SecurityFac:\" . $mtg->getSecurityFac() . \"<br/>\";\n// echo \"Notes:\" . $mtg->getNotes() . \"<br/>\";\n \n// exit();\n //--------------------------------------------------------------\n // no record found, proceed to add the entry\n //--------------------------------------------------------------\n $stmt->close();\n\n// $connection = new mysqli(DB_HOST, DB_USER, DB_PASSWORD, DB_NAME);\n $stmt = $connection->prepare(\"INSERT INTO `meetings` ( `MtgDate`, `MtgType`, `MtgTitle`) VALUES ( ?, ?, ?)\");\n $stmt->bind_param(\"sss\", $mtgDate, $mtgType, $mtgTitle );\n $stmt->execute();\n $stmt->close();\n// echo \"We have saved it and now retreived the ID ($ID)\";\n// echo \"mtgDate() = \" . $mtgDate . \"<br/>\";\n// echo \"mtgType() = \" . $mtgType . \"<br/>\";\n// echo \"mtgTitle() = \" . $mtgTitle . \"<br/>\";\n// echo \"========================================<br/>\";\n //--------------------------------------------------------------\n // get the ID just created with the insert\n //--------------------------------------------------------------\n// $stmt = $connection->prepare(\"Select ID FROM meetings WHERE MtgDate = ? AND MtgType = ? AND MtgTitle = ?\");\n// $stmt->bind_param(\"sss\", $mtgDate, $mtgType, $mtgTitle);\n// $stmt->execute();\n// $stmt->bind_result($ID);\n $sql = \"SELECT ID FROM meetings WHERE MtgDate = '\";\n $sql .= $mtgDate . \"' AND MtgType = '\";\n $sql .= $mtgType . \" AND MtgTitle = '\";\n $sql .= $mtgTitle . \"'\";\n \n echo \"sql: $sql<br/>\";\n echo \"mtgDate: $mtgDate<br/>\";\n echo \"mtgType: $mtgType<br/>\";\n echo \"mtgTitle: $mtgTitle<br/>\";\n echo \">>ID: $ID<<<br/>\";\n $mtgID = $ID;\n \n $stmt->fetch();\n $stmt->close();\n //----------------------------------------------------------\n //now add (update) in sections \n //----------------------------------------------------------\n $sql = \"UPDATE meetings SET MtgFac = ?, MtgAttendance = ?, Donations = ?, MtgWorship = ?, AudioVisualFac = ?, \";\n $sql .= \"SetupFac = ?, TransportationFac = ?, Greeter1Fac = ?, Greeter2Fac = ?, ResourcesFac = ? WHERE ID = ?\";\n $stmt = $connection->prepare($sql);\n $stmt->bind_param(\"iidiiiiiiii\",\n $mtgFac,\n $mtgAttendance,\n $mtgDonations,\n $mtgWorshipFac,\n $mtgAudioVisualFac,\n $mtgSetupFac,\n $mtgTransportationFac,\n $mtgGreeterFac1,\n $mtgGreeterFac2,\n $mtgResourcesFac,\n $mtgID);\n $stmt->execute();\n $stmt->close();\n\n// echo \"mtgID:\" . $mtgMtgID . \"<br/>\";\n// echo \"mtgDate:\" . $mtgDate . \"<br/>\";\n// echo \"mtgTitle:\" . $mtgTitle . \"<br/>\";\n// echo \"mtgFac:\" . $mtgFac . \"<br/>\";\n// echo \"mtgAttendance:\" . $mtgAttendance . \"<br/>\";\n// echo \"Donations:\" . $mtgDonations . \"<br/>\";\n// echo \"WorshipFac:\" . $mtgWorshipFac . \"<br/>\";\n// echo \"AudioVisualFac:\" . $mtgAudioVisualFac . \"<br/>\";\n// echo \"SetupFac:\" . $mtgSetupFac . \"<br/>\";\n// echo \"TransportationFac:\" . $mtgTransportationFac . \"<br/>\";\n// echo \"Greeter1Fac:\" . $mtgGreeter1Fac . \"<br/>\";\n// echo \"Greeter2Fac:\" . $mtgGreeter2Fac . \"<br/>\";\n// echo \"ResourcesFac:\" . $mtgResourcesFac . \"<br/>\";\n// exit();\n \n $sql = \"UPDATE meetings SET MealCnt = ?, MealFac = ?, Reader1Fac = ?, Reader2Fac = ?, AnnouncementsFac = ?, \";\n $sql .= \"TeachingFac = ?, Chips1Fac = ?, Chips2Fac = ?, SerenityFac = ? WHERE ID = ?\";\n $stmt = $connection->prepare($sql);\n $stmt->bind_param(\"iiiiiiiiii\",\n $mtgMealCnt,\n $mtgMealFac,\n $mtgReaderFac1,\n $mtgReaderFac2,\n $mtgAnnouncementsFac,\n $mtgTeachingFac,\n $mtgChipsFac1,\n $mtgChipsFac2,\n $mtgSerenityFac,\n $mtgID);\n $stmt->execute();\n $stmt->close();\n \n $sql = \"UPDATE meetings SET Newcomers1Fac = ?, Newcomers2Fac = ?, NurseryCnt = ?, NurseryFac = ?, \";\n $sql .= \"ChildrenCnt = ?, ChildrenFac = ?, YouthCnt = ?, YouthFac = ? WHERE ID = ?\";\n $stmt = $connection->prepare($sql);\n $stmt->bind_param(\"iiiiiiiii\",\n $mtgNewcomersFac1,\n $mtgNewcomersFac2,\n $mtgNurseryCnt,\n $mtgNurseryFac,\n $mtgChildrenCnt,\n $mtgChildrenFac,\n $mtgYouthCnt,\n $mtgYouthFac,\n $mtgMtgID);\n $stmt->execute();\n $stmt->close();\n \n $sql = \"UPDATE meetings SET CafeFac = ?, TearDownFac = ?, SecurityFac = ?, Menu = ?, \";\n $sql .= \"MtgNotes = ? WHERE ID = ?\";\n $stmt = $connection->prepare($sql);\n $stmt->bind_param(\"iiissi\",\n $mtgCafeFac,\n $mtgTearDownFac,\n $mtgSecurityFac,\n mysql_real_escape_string($mtgMenu),\n mysql_real_escape_string($mtgotes),\n $mtgMtgID);\n $stmt->execute();\n $stmt->close();\n $connection->close();\n \n destination(307, \"meetings.php\");\n\n}", "public function star($trip_id) {\n $data = Array(\n \"trip_id\" => $trip_id,\n \"user_id\" => $this->user->user_id,\n );\n\n DB::instance(DB_NAME)->insert(\"users_trips\", $data);\n\n Router::redirect(\"/trips\");\n }", "public function store(submitRequest $request)\n\t{\n\t\t$user = Auth::user();\n\t\t$data = $request->all();\n\t\t$posting = Posting::findOrFail($data['posting_id']);\n\t\t$title = $posting->title;\n\t\tif($posting->locked){\n\t\t\treturn redirect('errors/firstComeFirstServer');\n\t\t}\n\t\t$property = Property::findOrFail($posting->property_id);\n\t\tif($property->property_type == 'apartment' && $posting->lock == false){\n\t\t\t$apartments = ApartmentProperty::where('posting_id','=',$posting->id)->first();\n\t\t\tDB::table('apartment_postings')->where('posting_id', $apartments->posting_id)\n\t\t\t->increment('filled');\n\t\t\tif($apartments->filled+1 == $apartments->total){\n\t\t\t\t$posting->locked = true;\n\t\t\t\t$posting->save();\n\t\t\t}\n\n\t\t}else{\n\t\t\t$posting->locked = true;\n\t\t\t$posting->save();\n\t\t}\n\t\t$sum = $posting->price * 2;\n\t\t$booking = BookRequest::create(['user_id'=>$user->id,\n\t\t\t\t\t\t\t\t'user_email'=>$user->email,\n\t\t\t\t\t\t\t\t'property_id'=>$posting->property_id,\n\t\t\t\t\t\t\t\t'posting_id'=>$data['posting_id'],\n\t\t\t\t\t\t\t\t'status'=>0,\n\t\t\t\t\t\t\t\t'rent'=>$posting->price\n\t\t\t\t\t\t\t\t]);\n\n\t\t\n\n\t\t$addons_all = Addon::All();\n\t\t\n\t\t$addons = null;\n\t\tforeach($addons_all as $addon){\n\t\t\tif($data[$addon->id.'_count']>0){\n\t\t\t\t$addons[$addon->id] = array('id'=>$addon->id, \n\t\t\t\t\t\t\t\t\t\t\t'title'=>$addon->title, \n\t\t\t\t\t\t\t\t\t\t\t'price'=>$addon->price, \n\t\t\t\t\t\t\t\t\t\t\t'pid'=>$addon->product_number, \n\t\t\t\t\t\t\t\t\t\t\t'quant'=>$data[$addon->id.'_count']);\n\t\t\t\t$sun = $sum+($addon->price*$data[$addon->id.'_count']);\n\t\t\t\tDB::table('carts')->insert(['request_id'=>$booking->id,\n\t\t\t\t\t\t\t\t\t\t 'item_name'=>$addons[$addon->id]['title'],\n\t\t\t\t\t\t\t\t\t\t 'product_number'=>$addons[$addon->id]['pid'],\n\t\t\t\t\t\t\t\t\t\t 'quantity'=>$data[$addon->id.'_count'],\n\t\t\t\t\t\t\t\t\t\t 'item_price'=>$addon->price]);\n\n\t\t\t}\n\t\t}\n\n\t\t$outdata['total'] = $sum;\n\t\t$outdata['title'] = $title;\n\t\t$outdata['addons'] = $addons;\n\t\t$outdata['booking'] = $booking;\n\t\t$outdata['user'] = $user;\n\n\n\n\t\t\n\t\tMail::send('emails.requestSent',['outdata'=>$outdata], \n\t\t\n\t\tfunction($message) use($outdata)\n\t\t{\n\t\t $message->to('[email protected]', 'test')->subject('yotsdf');\n\t\t});\t\n\n\t\tMail::send('emails.userRequested',['outdata'=>$outdata], \n\t\tfunction($message) use($outdata)\n\t\t{\n\t\t $message->to('[email protected]', $outdata['user']->email);\n\t\t});\t\n\t\treturn redirect('/properties');\n\n\t}", "public function insert_earning($user,$amount,$stylist){\n $date=date(\"Y-m-d\");\n $result=$this->db->insert('earning_table',array('user_id'=>$user,'amount'=>$amount,'stylist'=>$stylist,'date_served'=>$date,'status_earnings'=>\"paid\"));\n return $result;\n}", "public function storeReserve(){\n\t\t$reservation = array(\n\t\t\t'id_user' => $this->input->post('userId', TRUE),\n\t\t\t'checkin' => $this->input->post('checkin', TRUE),\n\t\t\t'checkout' => $this->input->post('checkout', TRUE),\n\t\t\t'comments_reserve' => $this->input->post('comments', TRUE),\n\t\t\t'roomQty' => $this->input->post('roomQty', TRUE),\n\t\t\t'total_amount' => $this->input->post('total_amount', TRUE)\n\t\t);\n\t\t$rooms = $this->input->post('roomQty', TRUE);\n\t\t$roomType = $this->input->post('roomType', TRUE);\n\t\t\n\t\t//Step 1 = store reserve main info\n\t\tif($this->db->insert('reservation', $reservation)){\n\t\t\tfor ($i=0; $i < $rooms; $i++) {\n\t\t\t\tif ($i == 0) {\n\t\t\t\t\t$reserveId = $this->db->insert_id();\n\t\t\t\t}\n\t\t\t\t$checkinArray = explode(\"-\", $reservation['checkin']);\n\t\t\t\t$checkoutArray = explode(\"-\", $reservation['checkout']);\n\t\t\t\t//formato era 2012-02-05 y se cambia a 02/05/2012\n\t\t\t\t$checkinFormatted = strtotime($checkinArray[1].\"/\".$checkinArray[2].\"/\".$checkinArray[0]);\n\t\t\t\t$checkoutFormatted = strtotime($checkoutArray[1].\"/\".$checkoutArray[2].\"/\".$checkoutArray[0]);\n\t\t\t\t$reserveNights = $this->getVacationDays($checkinFormatted, $checkoutFormatted);\n\t\t\t\t//elimina la ultima noche en el arreglo de fechas\n\t\t\t\tarray_pop($reserveNights);\n\n\t\t\t\tforeach ($reserveNights as $key => $date) {\n\t\t\t\t\t$reserveDetails[$key] = array(\n\t\t\t\t\t\t'date_reservation' => $date,\n\t\t\t\t\t\t'reservation_id' => $reserveId,\n\t\t\t\t\t\t'cat_room_id' => $roomType,\n\t\t\t\t\t\t'reservation_status' => 1\n\t\t\t\t\t);\n\t\t\t\t}\n\t\t\t\tif ($this->storeReserveDetails($reserveDetails)){\n\t\t\t\t\t$success = TRUE;\n\t\t\t\t}else{\n\t\t\t\t\treturn array(\n\t\t\t\t\t\t'status' => 0,\n\t\t\t\t\t\t'msg' => 'Reservation could not be completed, try again'\n\t\t\t\t\t);\n\t\t\t\t}\n\t\t\t}\t\t\n\t\t}else{\n\t\t\treturn array(\n\t\t\t\t'status' => 0,\n\t\t\t\t'msg' => 'Reservation could not be completed'\n\t\t\t);\n\t\t}\n\t\tif ($success == TRUE){\n\t\t\treturn array(\n\t\t\t\t'status' \t\t=> 1,\n\t\t\t\t'msg' \t\t\t=> 'Reservation complete!',\n\t\t\t\t'reservationId'\t=> $reserveId\n\t\t\t);\n\t\t}\n\t}", "public function insertnewrequirementrate()\n\t{\n\t\t$equipmentid =\tstr_replace(\"'\",'',$this->input->post('require_name'));\n\t\t$facilityid = str_replace(\"'\",'',$this->input->post('facility'));\n\t\t$uniid = str_replace(\"'\",'',$this->input->post('unit'));\n\t\t$price = str_replace(\"'\",'',$this->input->post('price'));\n\t\t$itemavailabe = str_replace(\"'\",'',$this->input->post('requirement_available'));\n\t\t$result = $this->admin_model->insertnewraterequirement($equipmentid,$facilityid,$uniid,$price,$itemavailabe);\n\t\t$this->session->set_flashdata('newrequirementrate',$result);\n\t\tredirect(site_url('admin/requirements'),'refresh');\n\n\t}", "public function store(TicketBook $request)\n {\n // dd($request->all());\n // Check selected seats are available\n $schedule = Schedule::find($request->schedule_id);\n $bookingdate = $request->booking_date;\n $from_sort = Stop::where([\n ['route_id',$request->route],\n ['terminal_id',$request->from_stop]\n ])->get()->first()->sort_order;\n $to_sort = Stop::where([\n ['route_id',$request->route],\n ['terminal_id',$request->to_stop]\n ])->get()->first()->sort_order;\n\n if (isset($request->seat)) {\n /*$checkSeats = $schedule->seats()->where([\n ['to_sort', '>', $from_sort],\n ['from_sort', '<=', $from_sort],\n ])->whereHas('ticket', function ($query) use ($bookingdate) {\n return $query->whereDate('booking_for', $bookingdate);\n })->whereIn('seat', array_keys($request->seat))->get()->toArray();*/\n\n //dd(array_keys($request->seat));\n $checkSeats = TicketSeat::where([\n ['to_sort', '>', $from_sort],\n ['from_sort', '<=', $from_sort],\n ])\n ->whereHas('ticket', function ($query) use ($schedule, $bookingdate) {\n return $query->where('schedule_id', $schedule->id)\n ->whereDate('booking_for', $bookingdate);\n })->whereIn('seat', array_keys($request->seat))->get()->toArray();\n\n //dd($checkSeats);\n\n $bookedseats = $this->toSelect($checkSeats, 'seat');\n if (count($bookedseats) > 0) {\n Session::flash('seat_error', 'Seat\\'s(' . implode(',', $bookedseats) . ') not available');\n return redirect()->back()->withInput();\n }\n }\n\n // set ticket data\n $ticket = new Ticket();\n $ticket->p_phone = $request->p_phone;\n $ticket->p_name = $request->p_name;\n $ticket->p_cnic = $request->p_cnic;\n $ticket->total_seats = $request->total_seats;\n $ticket->seat_numbers = $request->seat_numbers;\n //$ticket->remarks = $request->remarks;\n $ticket->from_city_id =Terminal::find($request->from_stop)->city_id;\n $ticket->to_city_id = Terminal::find($request->to_stop)->city_id;;\n $ticket->from_stop = $request->from_stop;\n $ticket->to_stop = $request->to_stop;\n $ticket->fare = $request->fare;\n $ticket->total_fare = $request->fare * $request->total_seats;\n $ticket->discount = $request->discount;\n //$ticket->bus_id = $schedule->bus_id;\n $ticket->route_id = $schedule->route_id;\n $ticket->schedule_id = $schedule->id;\n $ticket->btype_id = 2;\n $ticket->paid = $request->paid ? 1 : 0;\n $ticket->booking_for = $request->booking_date . ' ' . date('H:m:i', strtotime($schedule->depart_time));\n $ticket->from_sort = $from_sort;\n $ticket->to_sort = $to_sort;\n\n // dd($ticket->toArray());\n\n // Get customer id if CNIC is exiting otherwise create new customer\n $customer = Customer::updateOrCreate(['cnic' => $request->p_cnic], [\n 'name' => $request->p_name,\n 'phone' => $request->p_phone\n ]);\n $ticket->customer_id = $customer->id;\n\n if ($ticket->save()) {\n\n $customer->booking_count = $customer->booking_count + 1;\n $customer->save();\n\n if (is_array($request->seat)) {\n // $schedule->avail_seats -= count($request->seat);\n // $schedule->save();\n\n $seats = array();\n foreach ($request->seat as $seat_no => $gendor) {\n $seat['seat'] = $seat_no;\n $seat['gender'] = $gendor;\n $seat['type'] = $ticket->btype_id;\n $seat['from_sort'] = $from_sort;\n $seat['to_sort'] = $to_sort;\n $seats[] = new TicketSeat($seat);\n }\n $ticket->seats()->saveMany($seats);\n }\n $msg = $ticket->paid ? 'Ticket added successfully' : 'Seat(s) booked successfully.\\nBooking ID: '.$ticket->id;\n Session::flash('flash_success', $msg);\n if (!$ticket->paid)\n return redirect()->back()->withInput([\n 'booking_date' => $request->booking_date,\n 'route' => $request->route ,\n 'from_stop' => $request->from_stop ,\n 'to_stop' => $request->to_stop ,\n 'route_id' => $request->route_id ,\n 'schedule_id' => $request->schedule_id ,\n ]);\n else\n return redirect()->route('admin.ticket.show', $ticket->id);\n }\n }", "public function updateSQL() {\n $query = \"UPDATE TempRota SET e_id = %s WHERE shift_name = '%s' AND rdate = '%s'\";\n $q = \"\";\n if ($this->eid == \"-1\")\n $q = sprintf($query, \"NULL\", $this->shift_name, $this->rdate);\n else {\n $q = sprintf($query, $this->eid, $this->shift_name, $this->rdate);\n\n $quick_query = \"UPDATE Employees \"\n .\"SET fair_hours = fair_hours + (SELECT TIME_TO_SEC(TIMEDIFF(end_time, start_time))/3600 FROM ShiftType WHERE shift_name = '%s') \" \n .\"WHERE e_id = %s\";\n QFunc::getQuery(sprintf($quick_query, $this->shift_name, $this->eid));\n }\n QFunc::getQuery($q);\n }", "public function run()\n {\n\n $offeringCount = 10;\n for ($i = 1; $i<$offeringCount; $i++){\n \\Illuminate\\Support\\Facades\\DB::table('offering')->insert([\n 'title' =>'Offering-' . $i,\n 'quantity' => 100,\n 'price' => rand ( 10 , 100),\n ]);\n }\n }", "public function run()\n {\n DB::table('payouts')->delete();\n\n DB::table('payouts')->insert([\n array('id' => '1','reservation_id' => '10001','space_id' => '10011','spots' => '','correlation_id' => '','user_id' => '10001','user_type' => 'host','account' => '','amount' => '95841','currency_code' => 'INR','status' => 'Future','penalty_id' => '0','penalty_amount' => '0','created_at' => '2019-10-21 12:46:12','updated_at' => '2019-10-21 12:46:12'),\n array('id' => '3','reservation_id' => '10007','space_id' => '10004','spots' => '','correlation_id' => '','user_id' => '10004','user_type' => 'host','account' => '','amount' => '52540','currency_code' => 'INR','status' => 'Future','penalty_id' => '0','penalty_amount' => '0','created_at' => '2019-10-21 14:53:25','updated_at' => '2019-10-21 14:53:25'),\n array('id' => '4','reservation_id' => '10005','space_id' => '10004','spots' => '','correlation_id' => '','user_id' => '10003','user_type' => 'guest','account' => '','amount' => '9940','currency_code' => 'INR','status' => 'Future','penalty_id' => '0','penalty_amount' => '0','created_at' => '2019-10-21 15:08:32','updated_at' => '2019-10-21 15:08:32'),\n array('id' => '5','reservation_id' => '10010','space_id' => '10009','spots' => '','correlation_id' => '3N2Z2RWUW6XY2','user_id' => '10002','user_type' => 'host','account' => '[email protected]','amount' => '323','currency_code' => 'EUR','status' => 'Completed','penalty_id' => '0','penalty_amount' => '0','created_at' => '2019-10-21 16:14:51','updated_at' => '2019-10-21 17:53:30'),\n array('id' => '6','reservation_id' => '10011','space_id' => '10019','spots' => '','correlation_id' => 'B4QQK26JSDTNE','user_id' => '10006','user_type' => 'host','account' => '[email protected]','amount' => '404','currency_code' => 'EUR','status' => 'Completed','penalty_id' => '0','penalty_amount' => '0','created_at' => '2019-10-21 16:21:49','updated_at' => '2019-10-21 17:54:33'),\n array('id' => '8','reservation_id' => '10012','space_id' => '10004','spots' => '','correlation_id' => '','user_id' => '10001','user_type' => 'guest','account' => '','amount' => '5680','currency_code' => 'INR','status' => 'Future','penalty_id' => '0','penalty_amount' => '0','created_at' => '2019-10-21 16:25:53','updated_at' => '2019-10-21 16:25:53'),\n array('id' => '10','reservation_id' => '10013','space_id' => '10004','spots' => '','correlation_id' => '','user_id' => '10002','user_type' => 'guest','account' => '','amount' => '5680','currency_code' => 'INR','status' => 'Future','penalty_id' => '0','penalty_amount' => '0','created_at' => '2019-10-22 10:35:13','updated_at' => '2019-10-22 10:35:13'),\n array('id' => '11','reservation_id' => '10014','space_id' => '10005','spots' => '','correlation_id' => '','user_id' => '10004','user_type' => 'host','account' => '','amount' => '21298','currency_code' => 'INR','status' => 'Future','penalty_id' => '0','penalty_amount' => '0','created_at' => '2019-10-22 10:36:54','updated_at' => '2019-10-22 10:36:54'),\n array('id' => '12','reservation_id' => '10015','space_id' => '10009','spots' => '','correlation_id' => '','user_id' => '10002','user_type' => 'host','account' => '','amount' => '270','currency_code' => 'USD','status' => 'Future','penalty_id' => '0','penalty_amount' => '0','created_at' => '2019-10-22 10:51:28','updated_at' => '2019-10-22 10:51:28'),\n array('id' => '13','reservation_id' => '10016','space_id' => '10005','spots' => '','correlation_id' => '','user_id' => '10004','user_type' => 'host','account' => '','amount' => '63894','currency_code' => 'INR','status' => 'Future','penalty_id' => '0','penalty_amount' => '0','created_at' => '2019-10-22 11:04:34','updated_at' => '2019-10-22 11:04:34'),\n array('id' => '14','reservation_id' => '10017','space_id' => '10012','spots' => '','correlation_id' => '','user_id' => '10001','user_type' => 'host','account' => '','amount' => '8874','currency_code' => 'INR','status' => 'Future','penalty_id' => '0','penalty_amount' => '0','created_at' => '2019-10-22 11:26:14','updated_at' => '2019-10-22 11:26:14'),\n array('id' => '15','reservation_id' => '10018','space_id' => '10004','spots' => '','correlation_id' => 'FNHK447XUA96N','user_id' => '10004','user_type' => 'host','account' => '[email protected]','amount' => '74','currency_code' => 'EUR','status' => 'Completed','penalty_id' => '0','penalty_amount' => '0','created_at' => '2019-10-22 11:26:59','updated_at' => '2019-10-22 12:54:38'),\n array('id' => '16','reservation_id' => '10019','space_id' => '10015','spots' => '','correlation_id' => '','user_id' => '10003','user_type' => 'host','account' => '','amount' => '360','currency_code' => 'USD','status' => 'Future','penalty_id' => '0','penalty_amount' => '0','created_at' => '2019-10-22 11:28:22','updated_at' => '2019-10-22 11:28:22'),\n array('id' => '17','reservation_id' => '10020','space_id' => '10018','spots' => '','correlation_id' => '','user_id' => '10002','user_type' => 'host','account' => '','amount' => '580','currency_code' => 'USD','status' => 'Future','penalty_id' => '0','penalty_amount' => '0','created_at' => '2019-10-22 11:28:58','updated_at' => '2019-10-22 11:28:58'),\n array('id' => '18','reservation_id' => '10021','space_id' => '10009','spots' => '','correlation_id' => '','user_id' => '10002','user_type' => 'host','account' => '','amount' => '44723','currency_code' => 'INR','status' => 'Future','penalty_id' => '0','penalty_amount' => '0','created_at' => '2019-10-22 11:31:59','updated_at' => '2019-10-22 11:31:59'),\n array('id' => '19','reservation_id' => '10022','space_id' => '10011','spots' => '','correlation_id' => '','user_id' => '10001','user_type' => 'host','account' => '','amount' => '159735','currency_code' => 'INR','status' => 'Future','penalty_id' => '0','penalty_amount' => '0','created_at' => '2019-10-22 11:32:30','updated_at' => '2019-10-22 11:32:30'),\n array('id' => '20','reservation_id' => '10023','space_id' => '10005','spots' => '','correlation_id' => '2J93DW6EQY7MS','user_id' => '10004','user_type' => 'host','account' => '[email protected]','amount' => '540','currency_code' => 'EUR','status' => 'Completed','penalty_id' => '0','penalty_amount' => '0','created_at' => '2019-10-22 11:35:44','updated_at' => '2019-10-22 12:54:32'),\n array('id' => '21','reservation_id' => '10024','space_id' => '10013','spots' => '','correlation_id' => '','user_id' => '10003','user_type' => 'host','account' => '','amount' => '21298','currency_code' => 'INR','status' => 'Future','penalty_id' => '0','penalty_amount' => '0','created_at' => '2019-10-22 11:37:16','updated_at' => '2019-10-22 11:37:16'),\n ]);\n }", "function bookticket()\n\n { \n $d=date('d/m/y');\n $stime=$this->input->post('tm');\n //echo $stime;exit();\n //$rdate=$this->input->post('sdate')\n //echo $stime;exit();\n $tdate=date('m/d/Y');\n $query=\"select m.Movieid from movie_tb m left join movie_time_tbl t on t.T_Id=m.Stime where m.Sdate='$d'\";\n $res=$this->db->query($query);\n //echo $this->db->last_query();\n $result=$res->row();\n $mov=$result->Movieid;\n //echo $mov;exit();\n $data = array(\n 'User_name'=>'admin',\n 'Movie_id'=>$mov,\n 'Ticket_cost'=>$this->input->post('tcost'),\n\n 'Reservation_date'=>$tdate,\n\n 'Reservation_Time'=>$stime,\n\n 'Status'=>'Success'\n );\n $this->db->insert('book_ticket',$data);\n $b_id=$this->db->insert_id();\n // echo $b_id;exit();\n $a=$this->input->post('a1');\n // var_dump($a);exit;\n for($i=0;$i<sizeof($a);$i++) \n { \n $data=array(\n 'B_Id'=>$b_id,\n 'Seat_Id'=>$a[$i],\n 'Status'=>'Admin holded'\n );\n \n $this->db->insert('booking_tbl',$data);\n }\n $d=date('m/d/y');\n//$query=\"select b1.B_Id,s1.Seat_Name,b1.User_name,b1.Ticket_cost,b1.Reservation_date,l.Language as lang,l.Language,m1.Movie,t1.S_time from book_ticket b1 left join booking_tbl b2 on b2.B_Id=b1.B_Id left join movie_tbl1 m1 on m1.Movie_id=b1.Movie_id left join languages l on l.l_id=m1.Language left join seat_tbl s1 on s1.S_id=b2.Seat_Id left join movie_tb m2 on m2.Movieid=m1.Movie_id left join movie_time_tbl t1 on t1.T_Id=m2.Stime where b1.B_Id='$b_id'\";\n$query=\"select m1.Movie,l1.Language,b1.B_Id,s1.Seat_Name,b1.User_name,b1.Ticket_cost,b1.Reservation_date,b1.Reservation_Time from book_ticket b1 left join booking_tbl b2 on b1.B_Id=b2.B_Id left join seat_tbl s1 on s1.S_id=b2.Seat_Id left join movie_tbl1 m1 on m1.Movie_id=b1.Movie_id left join languages l1 on l1.l_id=m1.Language where b1.B_Id='$b_id'\";\n$qry=$this->db->query($query);\n//echo $this->db->last_query();exit();\n\nreturn $qry->result();\n\n\n//echo $this->db->last_query();exit();\n }", "public function savePerHotel()\n {\n $seats_not_released = ($_POST['total_seats'] - $_POST['total_released_seats']);\n\n $data = array(\n 'total_seats_booked' => $_POST['total_seats_booked'],\n 'total_seats_remaining' => $_POST['total_seats_remaining'],\n 'release_seats_in_percent' => $_POST['release_seats_in_percent'],\n 'seats_available_after_release' => $_POST['total_released_seats'],\n 'seats_not_released' => $seats_not_released\n );\n\n $save = $this->db->where('hostel_id', $_POST['hostel_id'])->update(tablename('seats_available'), $data);\n\n\n // save release bed nos\n $bed_nos = $this->Seatmodel->get_result_data('hostel_rooms_seats',array('hostel_id'=> $_POST['hostel_id'],'is_active'=>'1','block'=>'0'));\n\n //echo \"<pre>\"; print_r($bed_nos); die;\n\n $save_bed_no = 0;\n\n \n if(!empty($bed_nos)){\n foreach ($bed_nos as $value) {\n \n $exp_beds = explode(', ', $value->beds_nos);\n if($_POST['total_seats_remaining']!=$_POST['total_released_seats']){\n \n if($value->no_of_seats < $_POST['total_released_seats']){ // less \n if($save_bed_no==0){\n $save_bed_no += $value->no_of_seats; \n $this->db->where('id', $value->id)->update(tablename('hostel_rooms_seats'), array('release_beds_nos'=>$value->beds_nos)); \n }else{\n\n $get_beds = array();\n $rest_bed = $_POST['total_released_seats'] - $save_bed_no;\n if($rest_bed <= $value->no_of_seats){\n for ($i=0; $i < $rest_bed; $i++) { \n array_push($get_beds, $exp_beds[$i]);\n }\n $save_bed_no += count($get_beds); \n $this->db->where('id', $value->id)->update(tablename('hostel_rooms_seats'), array('release_beds_nos'=>implode(\", \", $get_beds)));\n break;\n }else{\n for ($i=0; $i < $value->no_of_seats; $i++) { \n array_push($get_beds, $exp_beds[$i]);\n }\n $save_bed_no += count($get_beds); \n $this->db->where('id', $value->id)->update(tablename('hostel_rooms_seats'), array('release_beds_nos'=>implode(\", \", $get_beds)));\n }\n\n\n\n\n }\n\n } else if($value->no_of_seats >= $_POST['total_released_seats']){ // greater\n \n $this->db->where('hostel_id', $_POST['hostel_id'])->update(tablename('hostel_rooms_seats'), array('release_beds_nos'=>'')); \n\n $get_beds = array();\n for ($i=0; $i < $_POST['total_released_seats']; $i++) { \n array_push($get_beds, $exp_beds[$i]);\n }\n $save_bed_no += count($get_beds); \n //echo \"<pre>\"; print_r($get_beds); die;\n $this->db->where('id', $value->id)->update(tablename('hostel_rooms_seats'), array('release_beds_nos'=>implode(\", \", $get_beds))); \n break;\n } \n\n\n }else{\n $this->db->where('id', $value->id)->update(tablename('hostel_rooms_seats'), array('release_beds_nos'=>$value->beds_nos)); \n } \n }\n }\n \n echo $save; exit();\n }", "public function store(Request $request)\n {\n $user_id =$request->input('user_id');\n $x=0;\n $pickup_time = $request->input('pickup_time');\n $return_time = $request->input('return_time');\n $count = $request->input('count');\n $description = $request->input('description');\n $destination = $request->input('destination'); \n $created_at = now(); $updated_at = now();\n \n $bookings = DB::table('bookings')->where('user_id',$user_id)->get();\n \n $rules = array('pickup_time'=>'date|required',\n 'return_time'=>'after:pickup_time|date|required',\n 'count'=>'numeric|min:1',\n 'description'=>'string|min:10',\n 'destination'=>'string|min:5');\n $validator = Validator::make($request->all(),$rules);\n if($validator->fails()){\n return $validator->errors()->toArray();\n }\n \n else{\n $bookingArray = array();\n foreach ($bookings as $data) {\n $x++; \n if(\n $data->user_id == $user_id &&$data->pickup_time ==$pickup_time &&$data->return_time ==$return_time\n && $data->count ==$count &&$data->destination ==$destination){\n return \"DUPLICATE\";\n if(App::getLocale()=='fa'){\n $bookingArray[$x]= \"رزرویشن با این مشخصات انجام گردیده است.\";\n }else{\n $bookingArray[$x]= \"This booking has already been taken\";\n }\n \n }\n }\n \n try{\n \n DB::statement(DB::raw(\"INSERT INTO bookings (booking_id,pickup_time,return_time,count,description,destination\n ,user_id,created_at,updated_at)\n values (\n DEFAULT,'$pickup_time','$return_time',$count,'$description','$destination',$user_id,now(),now()\n )\n \"));\n if(App::getLocale()=='fa'){\n return \"رزرو شما موفقانه ثبت گردید\";\n }\n return \"ُSuccessfully your booking saved\";\n }catch(QueryException $e){\n return $e->getMessage();\n }\n }\n\n }", "public function run()\n {\n DB::table('bids')->insert([\n [\n 'id_event' => '1',\n 'name' => 'Сергей',\n 'email' => '[email protected]',\n 'price' => '200'\n ],[\n 'id_event' => '1',\n 'name' => 'Владимир',\n 'email' => '[email protected]',\n 'price' => '1000'\n ],[\n 'id_event' => '3',\n 'name' => 'Николай',\n 'email' => '[email protected]',\n 'price' => '200'\n ],[\n 'id_event' => '3',\n 'name' => 'Василий',\n 'email' => '[email protected]',\n 'price' => '200'\n ],[\n 'id_event' => '3',\n 'name' => 'Дмитрий',\n 'email' => '[email protected]',\n 'price' => '200'\n ],[\n 'id_event' => '3',\n 'name' => 'Анатолий',\n 'email' => '[email protected]',\n 'price' => '200'\n ],[\n 'id_event' => '3',\n 'name' => 'Андрей',\n 'email' => '[email protected]',\n 'price' => '200'\n ],[\n 'id_event' => '3',\n 'name' => 'Сергей',\n 'email' => '[email protected]',\n 'price' => '200'\n ],[\n 'id_event' => '3',\n 'name' => 'Сергей',\n 'email' => '[email protected]',\n 'price' => '200'\n ],[\n 'id_event' => '3',\n 'name' => 'Сергей',\n 'email' => '[email protected]',\n 'price' => '200'\n ],[\n 'id_event' => '1',\n 'name' => 'Сергей',\n 'email' => '[email protected]',\n 'price' => '200'\n ],[\n 'id_event' => '3',\n 'name' => 'Сергей',\n 'email' => '[email protected]',\n 'price' => '200'\n ],[\n 'id_event' => '2',\n 'name' => 'Сергей',\n 'email' => '[email protected]',\n 'price' => '200'\n ],[\n 'id_event' => '3',\n 'name' => 'Сергей',\n 'email' => '[email protected]',\n 'price' => '200'\n ],[\n 'id_event' => '1',\n 'name' => 'Сергей',\n 'email' => '[email protected]',\n 'price' => '200'\n ],[\n 'id_event' => '3',\n 'name' => 'Сергей',\n 'email' => '[email protected]',\n 'price' => '200'\n ],[\n 'id_event' => '3',\n 'name' => 'Сергей',\n 'email' => '[email protected]',\n 'price' => '200'\n ],[\n 'id_event' => '3',\n 'name' => 'Сергей',\n 'email' => '[email protected]',\n 'price' => '200'\n ]\n ]);\n }", "public function insert_reserve_online($ref, $id_ocupacion, $id_customer, $adults_qty, $children_qty, $interm_id, $qty_nights, $HS_nights, $LS_nights, $price_per_night, $priceHS, $amount_commision, $sub_total_rent, $ITBIS, $services_amount, $deposit, $general_amount, $status, $reserve_comment, $online){\n $query=\"INSERT INTO `\".DB_PREFIX.\"reserves` ( `id`,\n \t\t\t\t\t\t\t\t\t\t\t\t`ref`,\n\t\t\t\t\t\t\t\t\t\t\t\t\t`id_occupancy`,\n\t\t\t\t\t\t\t\t\t\t\t\t\t`id_client`,\n\t\t\t\t\t\t\t\t\t\t\t\t\t`adults`,\n\t\t\t\t\t\t\t\t\t\t\t\t\t`children`,\n\t\t\t\t\t\t\t\t\t\t\t\t\t`id_interm`,\n\t\t\t\t\t\t\t\t\t\t\t\t\t`qty_nights`,\n\t\t\t\t\t\t\t\t\t\t\t\t\t`nightsHS`,\n\t\t\t\t\t\t\t\t\t\t\t\t\t`nightsLS`,\n\t\t\t\t\t\t\t\t\t\t\t\t\t`price_per_night`,\n\t\t\t\t\t\t\t\t\t\t\t\t\t`priceHS`,\n\t\t\t\t\t\t\t\t\t\t\t\t\t`commision`,\n\t\t\t\t\t\t\t\t\t\t\t\t\t`amount`,\n\t\t\t\t\t\t\t\t\t\t\t\t\t`tax`,\n\t\t\t\t\t\t\t\t\t\t\t\t\t`services_amount`,\n\t\t\t\t\t\t\t\t\t\t\t\t\t`deposit`,\n\t\t\t\t\t\t\t\t\t\t\t\t\t`total`,\n\t\t\t\t\t\t\t\t\t\t\t\t\t`status`,\n\t\t\t\t\t\t\t\t\t\t\t\t\t`comment`,\n\t\t\t\t\t\t\t\t\t\t\t\t\t`online`)\n \t\t\t\t\tVALUES ( NULL ,'\".$this->link->myesc($ref).\"','\".$this->link->myesc($id_ocupacion).\"','\".$this->link->myesc($id_customer).\"','\".$this->link->myesc($adults_qty).\"','\".$this->link->myesc($children_qty).\"','\".$this->link->myesc($interm_id).\"','\".$this->link->myesc($qty_nights).\"','\".$this->link->myesc($HS_nights).\"','\".$this->link->myesc($LS_nights).\"','\".$this->link->myesc($price_per_night).\"','\".$this->link->myesc($priceHS).\"','\".$this->link->myesc($amount_commision).\"','\".$this->link->myesc($sub_total_rent).\"','\".$this->link->myesc($ITBIS).\"','\".$this->link->myesc($services_amount).\"','\".$this->link->myesc($deposit).\"','\".$this->link->myesc($general_amount).\"','\".$this->link->myesc($status).\"','\".$this->link->myesc($reserve_comment).\"','\".$this->link->myesc($online).\"')\";\n /*NOTE: HERE IT IS IMPORTANTE THAT THE BOOKING CAN INSERT COMMENT IN CASE THAT THE ONLINE CLIENT IS INSTERETED IN BUYING INFO*/\n $result = $this->link->execute($query);\n return $result;\n\t}", "function add_student($student_name, $student_grade, $letter_grade) {\n global $db;\n $query = 'INSERT INTO students\n (student_name, student_grade, letter_grade)\n VALUES\n (:student_name, :student_grade, :letter_grade)';\n $statement = $db->prepare($query);\n $statement->bindValue(':student_name', $student_name);\n $statement->bindValue(':student_grade', $student_grade);\n $statement->bindValue(':letter_grade', $letter_grade);\n $statement->execute();\n $statement->closeCursor();\n }", "function addRating($param, $sqlConnection)\r\n{ \r\n\t$uid = intval($param['userID']);\r\n\t$aid = intval($param['albumID']);\r\n\t$rating = floatval($param['rating']);\r\n\t$sqlSuccess = get_sql_results($result, $sqlConnection,\r\n\t\t\t\"INSERT INTO Rates (userID, albumID, rating) \".\r\n\t\t\t\"VALUES ($uid,$aid,$rating)\");\r\n\treturn $sqlSuccess;\r\n}", "public static function generateBalances()\n {\n foreach(Workshop::all() as $workshop)\n {\n $balance = 0;\n foreach ($workshop->users as $member) {\n if ($member->isActive() && !$member->hasToPayKKTNetreg())\n {\n $balance += config('custom.kkt') *\n ($member->isResident() ? config('custom.workshop_balance_resident') : config('custom.workshop_balance_extern') ) /\n $member->workshops->count();\n }\n }\n self::updateOrInsert(\n ['semester_id' => Semester::current()->id, 'workshop_id' => $workshop->id],\n ['allocated_balance' => $balance]\n );\n }\n }", "private function saveRepeatDaily(){\n Loader::db()->Execute(\"INSERT INTO SchedulizerEventRepeat (eventID) VALUES(?)\", array(\n $this->eventObj->getEventID()\n ));\n }", "public function run()\n {\n \n\n \\DB::table('reservations')->delete();\n \n \\DB::table('reservations')->insert(array (\n 0 => \n array (\n 'id' => 1,\n 'userID' => 1,\n 'carID' => 1,\n 'pickupLocation' => 1,\n 'returnLocation' => 2,\n 'pickupDate' => '2016-12-18 13:57:10',\n 'returnDate' => '2016-12-19 15:00:00',\n 'extras' => '\"[3]\"',\n 'price' => 200,\n 'isPending' => 1,\n 'isPaid' => 1,\n 'isCompleted' => 1,\n 'created_at' => '2016-12-18 12:56:57',\n 'updated_at' => '2016-12-18 12:57:10',\n ),\n 1 => \n array (\n 'id' => 2,\n 'userID' => 1,\n 'carID' => 1,\n 'pickupLocation' => 1,\n 'returnLocation' => 1,\n 'pickupDate' => '2016-12-19 14:00:00',\n 'returnDate' => '2016-12-30 15:00:00',\n 'extras' => '\"[2,3]\"',\n 'price' => 2050,\n 'isPending' => NULL,\n 'isPaid' => NULL,\n 'isCompleted' => NULL,\n 'created_at' => '2016-12-18 12:57:34',\n 'updated_at' => '2016-12-18 12:57:34',\n ),\n ));\n \n \n }", "public function select_book($data){\n $query=$this->db->query('UPDATE `swap_reqs` SET `received_book`=\"'.$data['b_UID'].'\", `swap_status`=\"To be approved\" WHERE swap_UID = \"'.$data['swap_UID'].'\" ');\n }", "function rentBook($isbn, $student, $con) \r\n\t{\r\n\t\tmysqli_query($con,\"\r\n\t\t\tUPDATE booksdb\r\n\t\t\tSET rented = rented - 1\r\n\t\t\tWHERE isbn13 like '%{$isbn}%;'\r\n\t\t\");\r\n\t\t// Add user and student id functionality here\r\n\t\t// Also required updation of the rent date\r\n\t}", "public function insert($roomId, $userId, $checkInDate, $checkOutDate) \n {\n $this->getPdo()->beginTransaction();\n\n //Step 2, get room info \n $parameters = [\n ':room_id' => $roomId,\n ];\n $roomInfo = $this->fetch('SELECT * FROM room WHERE room_id = :room_id', $parameters);\n \n $price = $roomInfo['price'];\n\n // Step 3, Calculate final price (from dates)\n $checkInDateTime = new DateTime($checkInDate);\n $checkOutDateTime = new DateTime($checkOutDate);\n $daysDiff = $checkOutDateTime->diff($checkInDateTime)->days;\n $totalPrice = $price * $daysDiff;\n\n // Step 4, Book room \n $parameters = [\n ':room_id' => $roomId,\n ':user_id' => $userId,\n ':total_price' => $totalPrice,\n ':check_in_date' => $checkInDate,\n ':check_out_date' => $checkOutDate,\n ];\n \n $this->execute('INSERT INTO booking (room_id, user_id, total_price, check_in_date, check_out_date) \n VALUES (:room_id, :user_id, :total_price, :check_in_date, :check_out_date)', $parameters);\n \n // Step 5, commit \n return $this->getPdo()->commit();\n }", "public function insert_reserve_long($ref, $id_ocupacion, $id_customer, $adults_qty, $children_qty, $interm_id, $qty_nights, $HS_nights, $LS_nights, $price_per_night, $priceHS, $amount_commision, $sub_total_rent, $ITBIS, $services_amount, $deposit, $general_amount, $status, $pago_qty,$pagos_monto,$price_long,$extra_nigths){\n $query=\"INSERT INTO `\".DB_PREFIX.\"reserves` ( `id`,\n \t\t\t\t\t\t\t\t\t\t\t\t`ref`,\n\t\t\t\t\t\t\t\t\t\t\t\t\t`id_occupancy`,\n\t\t\t\t\t\t\t\t\t\t\t\t\t`id_client`,\n\t\t\t\t\t\t\t\t\t\t\t\t\t`adults`,\n\t\t\t\t\t\t\t\t\t\t\t\t\t`children`,\n\t\t\t\t\t\t\t\t\t\t\t\t\t`id_interm`,\n\t\t\t\t\t\t\t\t\t\t\t\t\t`qty_nights`,\n\t\t\t\t\t\t\t\t\t\t\t\t\t`nightsHS`,\n\t\t\t\t\t\t\t\t\t\t\t\t\t`nightsLS`,\n\t\t\t\t\t\t\t\t\t\t\t\t\t`price_per_night`,\n\t\t\t\t\t\t\t\t\t\t\t\t\t`priceHS`,\n\t\t\t\t\t\t\t\t\t\t\t\t\t`commision`,\n\t\t\t\t\t\t\t\t\t\t\t\t\t`amount`,\n\t\t\t\t\t\t\t\t\t\t\t\t\t`tax`,\n\t\t\t\t\t\t\t\t\t\t\t\t\t`services_amount`,\n\t\t\t\t\t\t\t\t\t\t\t\t\t`deposit`,\n\t\t\t\t\t\t\t\t\t\t\t\t\t`total`,\n\t\t\t\t\t\t\t\t\t\t\t\t\t`status`,\n\t\t\t\t\t\t\t\t\t\t\t\t\t`pagos_qty`,\n\t\t\t\t\t\t\t\t\t\t\t\t\t`pagos_monto`,\n\t\t\t\t\t\t\t\t\t\t\t\t\t`price_long`,\n\t\t\t\t\t\t\t\t\t\t\t\t\t`extra_nights`)\n \t\t\t\t\tVALUES ( NULL ,'\".$this->link->myesc($ref).\"','\".$this->link->myesc($id_ocupacion).\"','\".$this->link->myesc($id_customer).\"','\".$this->link->myesc($adults_qty).\"','\".$this->link->myesc($children_qty).\"','\".$this->link->myesc($interm_id).\"','\".$this->link->myesc($qty_nights).\"','\".$this->link->myesc($HS_nights).\"','\".$this->link->myesc($LS_nights).\"','\".$this->link->myesc($price_per_night).\"','\".$this->link->myesc($priceHS).\"','\".$this->link->myesc($amount_commision).\"','\".$this->link->myesc($sub_total_rent).\"','\".$this->link->myesc($ITBIS).\"','\".$this->link->myesc($services_amount).\"','\".$this->link->myesc($deposit).\"','\".$this->link->myesc($general_amount).\"','\".$this->link->myesc($status).\"','\".$this->link->myesc($pago_qty).\"','\".$this->link->myesc($pagos_monto).\"','\".$this->link->myesc($price_long).\"','\".$this->link->myesc($extra_nigths).\"')\";\n\n $result = $this->link->execute($query);\n return $result;\n\t}", "public function run()\n {\n $booking_methods = [\n [ \n 'name' => 'Paypal',\n 'created_at' => now(),\n 'updated_at' => now()\n ],\n\n [\n 'name' => 'Credit Card',\n 'created_at' => now(),\n 'updated_at' => now()\n\n ],\n ];\n\n BookingMethod::insert($booking_methods);\n }", "public function add() {\n $mysqli = Database::getMYSQLI();\n \n $stmt = $mysqli->prepare(\"\n INSERT INTO reviews (persons_id, lessons_id, title, review, date_submitted, rating)\n VALUES (?,?,?,?,?,?)\");\n \n $stmt->bind_param('iisssi', $this->personsID, $this->lessonsID, $this->title, \n $this->review, $this->dateSubmitted, $this->rating);\n \n $stmt->execute();\n $stmt->close();\n $mysqli->close();\n }", "public static function insert_res($prix_reservation,$type_reservation, $nombre_place_reserver, $num_classe)\n {\n $alphanum = \"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ\";\n $bobop = substr(str_shuffle($alphanum), 0, 6);\n $ref_res = $bobop . 'FA';\n \n while (App\\Reservation::where('reference_reservation', '=', $ref_res)->exists()) { \n $bobop = substr(str_shuffle($alphanum), 0, 6);\n $ref_res = $bobop . 'FA';\n }\n //ici pour remplir la table reservation\n // $reservation = new Reservation();\n // $ref_res = $reservation->reference_reservation;\n // while ($ref_res!= $res)\n // {\n Reservation::insert([\n \"reference_reservation\"=>$ref_res,\n \"date_reservation\" => now(),\n \"prix_reservation\" => $prix_reservation,\n \"type_reservation\" => $type_reservation,\n // \"etat_reservation\"=>'1',\n \"nombre_place_reserver\" => $nombre_place_reserver,\n \"num_classe\" => $num_classe,\n ]);\n }", "function book_offer() {\n\n $collectorId = $_SESSION['demo']['user_id'];\n $offerId = $_GET['offerId'];\n //$date = date('d/m/y');\n //$time =date('h:m:s');\n //$insert = mysql_query(\"INSERT INTO stock(offer_ID, collector_ID,collection_date,amount, remark, status) VALUES(d','$collectorId','$date','$time')\") or die ('Unable to add booking'.mysql_error());\n $check = mysql_query(\"SELECT status from offer WHERE offer_ID='$offerId'\");\n if ($check) {\n if (mysql_result($check, 0, 'status') == \"available\") {\n if (mysql_query(\"UPDATE offer SET status ='booked', collector_id='$collectorId' WHERE offer_ID ='$offerId'\") )\n return 1;\n else\n return -1;\n }\n else\n return -1;\n } else {\n return -1;\n }\n}", "function addBook($userid,$bookid,$num=1){\n \t\n \t\n \t$res=$this->fetchAll(\"userid=$userid AND bookid=$bookid\")->toArray();\n \t\n \t\n\n//======means the client has bought this kind of products before\n\t \tif (count($res)>0) { \t\t\t\t\n\t \t\t$data=array(\n\t \t\t\t'nums'=>$res[0]['nums']+1\n\t \t\t);\n\t \t\t$where=\"userid=$userid AND bookid=$bookid\";\n\t \t\t$this->update($data, $where);\n\t \t\treturn true;\n\t \t}else{\n//========means the client buy this kind of products first time\n\t\t \t$date=time();\n\t\t \t$data=array(\n\t\t \t\t\t'userid'=>$userid,\n\t\t \t\t\t'bookid'=>$bookid,\n\t\t \t\t\t'nums'=>$num, \n\t\t \t\t\t'date'=>$date\n\t\t \t);\n\t\t \t\n\t\t \tif ($this->insert($data)>0) {\n\t\t \t\t\n\t\t \t\treturn true;\n\t\t \t}else{\n\t\t \t\treturn false;\n\t\t \t}\n\t \t}\n \t\n }", "function addarform() {\n $newlogin = new userlogin;\n $newlogin->dbconnect();\n $sql = \"start transaction\";\n $result = mysql_query($sql);\n $sql = \"select nxtnum from seqnum where tablename = 'arform' for update\";\n //echo \"$sql\";\n $result = mysql_query($sql);\n if(!$result)\n {\n //header(\"Location:errorMessage.php?validate=Inv1\");\n die(\"Seqnum access failed..Please report to Sysadmin. \" . mysql_error());\n }\n $myrow = mysql_fetch_row($result);\n $seqnum = $myrow[0];\n $objid = $seqnum +1;\n //$ar3num=$seqnum -22 +1;\n //echo$seqnum.\"---------***\".$objid.\"------\";\n $prefix = \"AR3A\";\n //$suffix = \"/12-13\";\n //$suffix = \"/14-15\";\n // $suffix = \"/15-16\";\n $suffix = \"/16-17\";\n $ar3num=$seqnum - 168 +1;\n\n\n\t$strrecnum=sprintf(\"%d\",$ar3num);\n $ar3anum=$prefix.$strrecnum.$suffix;\n \n $exchange_rate = $this->exchange_rate?$this->exchange_rate:0.0;\n $gross_weight = $this->gross_weight?$this->gross_weight:0.0;\n $tot_payableamt = $this->tot_payableamt?$this->tot_payableamt:0.0;\n $tot_amt_rs = $this->tot_amt_rs?$this->tot_amt_rs:0.0;\n $tot_amt = $this->tot_amt?$this->tot_amt:0.0;\n $tot_qty = $this->tot_qty?$this->tot_qty:0;\n $ar3adate= $this->ar3adate?\"'\" . $this->ar3adate . \"'\":'0000-00-00';\n //$ar3anum = \"'\" . $this->ar3anum . \"'\";\n $link2invoice =$this->link2invoice;\n $fob_words = \"'\" . $this->fob_words . \"'\";\n $duty_inwords = \"'\" . $this->duty_inwords . \"'\";\n $nopackage = \"'\" . $this->nopackage . \"'\";\n $link2ship = $this->link2ship;\n $vatsubtotal= $this->vatsubtotal ? $this->vatsubtotal : 0;\n\n $sql = \"select * from arform where recnum = $objid\";\n //echo $sql;\n $result = mysql_query($sql);\n if (!(mysql_fetch_row($result))) {\n $sql = \"INSERT INTO\n arform\n (\n recnum,\n\t\t\t\t\t\t\tlink2invoice,\n\t\t\t\t\t\t\tar3anum,\n\t\t\t\t\t\t\tar3adate,\n\t\t\t\t\t\t\texchangerate,\n\t\t\t\t\t\t\tvalueinwords,\n\t\t\t\t\t dutyinwords,\n totalrupees,\n totalusd,\n totqty,\n numpkgs,\n grosswt,\n total_payableamt,\n create_date,\n\t\t\t\t\t\t\tlink2ship,\n vatsubtotal\n )\n VALUES\n (\n $objid,\n \t\t\t\t\t\t\t$link2invoice,\n\t\t\t\t\t\t\t'$ar3anum',\n\t\t\t\t\t\t\t$ar3adate,\n $exchange_rate,\n\t\t\t\t\t $fob_words,\n $duty_inwords,\n $tot_amt_rs,\n $tot_amt,\n $tot_qty,\n $nopackage,\n $gross_weight,\n\t\t\t\t\t\t\t$tot_payableamt,\n now(),\n\t\t\t\t\t\t\t $link2ship,\n $vatsubtotal\n )\";\n //echo \"\\n\" . $sql;\n $result = mysql_query($sql);\n // Test to make sure query worked\n if(!$result)\n {\n //header(\"Location:errorMessage.php?validate=Inv2\");\n die(\"Insert to arform didn't work..Please report to Sysadmin. \" . mysql_error());\n }\n }\n else {\n //header(\"Location:errorMessage.php?validate=Inv3\");\n die(\"AR3A\" . $objid . \" already exists. \");\n }\n\n $sql = \"update seqnum set nxtnum = $objid where tablename = 'arform'\";\n // echo $sql;\n $result = mysql_query($sql);\n // Test to make sure query worked\n if(!$result)\n {\n //header(\"Location:errorMessage.php?validate=Inv4\");\n die(\"Seqnum insert query didn't work..Please report to Sysadmin. \" . mysql_error());\n }\n return $objid;\n }", "public function run()\n {\n \n\n \\DB::table('event_booking')->delete();\n \n \\DB::table('event_booking')->insert(array (\n 0 => \n array (\n 'id' => 1,\n 'event_id' => 3950,\n 'package_id' => 203,\n 'order_id' => 0,\n 'total' => '0.00',\n 'item_price' => '0.00',\n 'status' => 'MANUAL',\n 'created_at' => '2017-10-31 09:10:39',\n 'updated_at' => '2017-10-31 09:10:39',\n 'firstname' => 'Ella',\n 'lastname' => 'Payne',\n 'email' => '[email protected]',\n 'activity_id' => 88,\n 'person_id' => 379,\n 'package_group' => 'JGConkJ7TxMLomQtQKj6e3JQgmRy3tqGp59LZDM22yPgMkVZjcxbwy3K0bQkggvXw0IXm2ZIjV8kyE1kA6BSBapsjQRQ8gRUbIAP',\n ),\n 1 => \n array (\n 'id' => 2,\n 'event_id' => 3951,\n 'package_id' => 203,\n 'order_id' => 0,\n 'total' => '0.00',\n 'item_price' => '0.00',\n 'status' => 'MANUAL',\n 'created_at' => '2017-10-31 09:10:39',\n 'updated_at' => '2017-10-31 09:10:39',\n 'firstname' => 'Ella',\n 'lastname' => 'Payne',\n 'email' => '[email protected]',\n 'activity_id' => 88,\n 'person_id' => 379,\n 'package_group' => 'JGConkJ7TxMLomQtQKj6e3JQgmRy3tqGp59LZDM22yPgMkVZjcxbwy3K0bQkggvXw0IXm2ZIjV8kyE1kA6BSBapsjQRQ8gRUbIAP',\n ),\n 2 => \n array (\n 'id' => 3,\n 'event_id' => 3952,\n 'package_id' => 203,\n 'order_id' => 0,\n 'total' => '0.00',\n 'item_price' => '0.00',\n 'status' => 'MANUAL',\n 'created_at' => '2017-10-31 09:10:39',\n 'updated_at' => '2017-10-31 09:10:39',\n 'firstname' => 'Ella',\n 'lastname' => 'Payne',\n 'email' => '[email protected]',\n 'activity_id' => 88,\n 'person_id' => 379,\n 'package_group' => 'JGConkJ7TxMLomQtQKj6e3JQgmRy3tqGp59LZDM22yPgMkVZjcxbwy3K0bQkggvXw0IXm2ZIjV8kyE1kA6BSBapsjQRQ8gRUbIAP',\n ),\n 3 => \n array (\n 'id' => 4,\n 'event_id' => 3953,\n 'package_id' => 203,\n 'order_id' => 0,\n 'total' => '0.00',\n 'item_price' => '0.00',\n 'status' => 'MANUAL',\n 'created_at' => '2017-10-31 09:10:39',\n 'updated_at' => '2017-10-31 09:10:39',\n 'firstname' => 'Ella',\n 'lastname' => 'Payne',\n 'email' => '[email protected]',\n 'activity_id' => 88,\n 'person_id' => 379,\n 'package_group' => 'JGConkJ7TxMLomQtQKj6e3JQgmRy3tqGp59LZDM22yPgMkVZjcxbwy3K0bQkggvXw0IXm2ZIjV8kyE1kA6BSBapsjQRQ8gRUbIAP',\n ),\n 4 => \n array (\n 'id' => 5,\n 'event_id' => 3954,\n 'package_id' => 203,\n 'order_id' => 0,\n 'total' => '0.00',\n 'item_price' => '0.00',\n 'status' => 'MANUAL',\n 'created_at' => '2017-10-31 09:10:39',\n 'updated_at' => '2017-10-31 09:10:39',\n 'firstname' => 'Ella',\n 'lastname' => 'Payne',\n 'email' => '[email protected]',\n 'activity_id' => 88,\n 'person_id' => 379,\n 'package_group' => 'JGConkJ7TxMLomQtQKj6e3JQgmRy3tqGp59LZDM22yPgMkVZjcxbwy3K0bQkggvXw0IXm2ZIjV8kyE1kA6BSBapsjQRQ8gRUbIAP',\n ),\n 5 => \n array (\n 'id' => 6,\n 'event_id' => 3955,\n 'package_id' => 203,\n 'order_id' => 0,\n 'total' => '0.00',\n 'item_price' => '0.00',\n 'status' => 'MANUAL',\n 'created_at' => '2017-10-31 09:10:39',\n 'updated_at' => '2017-10-31 09:10:39',\n 'firstname' => 'Ella',\n 'lastname' => 'Payne',\n 'email' => '[email protected]',\n 'activity_id' => 88,\n 'person_id' => 379,\n 'package_group' => 'JGConkJ7TxMLomQtQKj6e3JQgmRy3tqGp59LZDM22yPgMkVZjcxbwy3K0bQkggvXw0IXm2ZIjV8kyE1kA6BSBapsjQRQ8gRUbIAP',\n ),\n 6 => \n array (\n 'id' => 7,\n 'event_id' => 3956,\n 'package_id' => 203,\n 'order_id' => 0,\n 'total' => '0.00',\n 'item_price' => '0.00',\n 'status' => 'MANUAL',\n 'created_at' => '2017-10-31 09:10:39',\n 'updated_at' => '2017-10-31 09:10:39',\n 'firstname' => 'Ella',\n 'lastname' => 'Payne',\n 'email' => '[email protected]',\n 'activity_id' => 88,\n 'person_id' => 379,\n 'package_group' => 'JGConkJ7TxMLomQtQKj6e3JQgmRy3tqGp59LZDM22yPgMkVZjcxbwy3K0bQkggvXw0IXm2ZIjV8kyE1kA6BSBapsjQRQ8gRUbIAP',\n ),\n 7 => \n array (\n 'id' => 8,\n 'event_id' => 3957,\n 'package_id' => 203,\n 'order_id' => 0,\n 'total' => '0.00',\n 'item_price' => '0.00',\n 'status' => 'MANUAL',\n 'created_at' => '2017-10-31 09:10:39',\n 'updated_at' => '2017-10-31 09:10:39',\n 'firstname' => 'Ella',\n 'lastname' => 'Payne',\n 'email' => '[email protected]',\n 'activity_id' => 88,\n 'person_id' => 379,\n 'package_group' => 'JGConkJ7TxMLomQtQKj6e3JQgmRy3tqGp59LZDM22yPgMkVZjcxbwy3K0bQkggvXw0IXm2ZIjV8kyE1kA6BSBapsjQRQ8gRUbIAP',\n ),\n 8 => \n array (\n 'id' => 9,\n 'event_id' => 3958,\n 'package_id' => 203,\n 'order_id' => 0,\n 'total' => '0.00',\n 'item_price' => '0.00',\n 'status' => 'MANUAL',\n 'created_at' => '2017-10-31 09:10:39',\n 'updated_at' => '2017-10-31 09:10:39',\n 'firstname' => 'Ella',\n 'lastname' => 'Payne',\n 'email' => '[email protected]',\n 'activity_id' => 88,\n 'person_id' => 379,\n 'package_group' => 'JGConkJ7TxMLomQtQKj6e3JQgmRy3tqGp59LZDM22yPgMkVZjcxbwy3K0bQkggvXw0IXm2ZIjV8kyE1kA6BSBapsjQRQ8gRUbIAP',\n ),\n 9 => \n array (\n 'id' => 10,\n 'event_id' => 3950,\n 'package_id' => 203,\n 'order_id' => 0,\n 'total' => '0.00',\n 'item_price' => '0.00',\n 'status' => 'MANUAL',\n 'created_at' => '2017-10-31 09:10:40',\n 'updated_at' => '2017-10-31 09:10:40',\n 'firstname' => 'Ben',\n 'lastname' => 'Payne',\n 'email' => '[email protected]',\n 'activity_id' => 88,\n 'person_id' => 384,\n 'package_group' => 'wuXe6kOVgwxiDEUnrDWuA3veNHdPcfWScq6SuTjOUZpMOT8nNEabgw2XI1zT5E6bz1WurfTjT3FJlZPTEoOt9gQMtlhkfCQlfmFR',\n ),\n 10 => \n array (\n 'id' => 11,\n 'event_id' => 3951,\n 'package_id' => 203,\n 'order_id' => 0,\n 'total' => '0.00',\n 'item_price' => '0.00',\n 'status' => 'MANUAL',\n 'created_at' => '2017-10-31 09:10:40',\n 'updated_at' => '2017-10-31 09:10:40',\n 'firstname' => 'Ben',\n 'lastname' => 'Payne',\n 'email' => '[email protected]',\n 'activity_id' => 88,\n 'person_id' => 384,\n 'package_group' => 'wuXe6kOVgwxiDEUnrDWuA3veNHdPcfWScq6SuTjOUZpMOT8nNEabgw2XI1zT5E6bz1WurfTjT3FJlZPTEoOt9gQMtlhkfCQlfmFR',\n ),\n 11 => \n array (\n 'id' => 12,\n 'event_id' => 3952,\n 'package_id' => 203,\n 'order_id' => 0,\n 'total' => '0.00',\n 'item_price' => '0.00',\n 'status' => 'MANUAL',\n 'created_at' => '2017-10-31 09:10:40',\n 'updated_at' => '2017-10-31 09:10:40',\n 'firstname' => 'Ben',\n 'lastname' => 'Payne',\n 'email' => '[email protected]',\n 'activity_id' => 88,\n 'person_id' => 384,\n 'package_group' => 'wuXe6kOVgwxiDEUnrDWuA3veNHdPcfWScq6SuTjOUZpMOT8nNEabgw2XI1zT5E6bz1WurfTjT3FJlZPTEoOt9gQMtlhkfCQlfmFR',\n ),\n 12 => \n array (\n 'id' => 13,\n 'event_id' => 3953,\n 'package_id' => 203,\n 'order_id' => 0,\n 'total' => '0.00',\n 'item_price' => '0.00',\n 'status' => 'MANUAL',\n 'created_at' => '2017-10-31 09:10:40',\n 'updated_at' => '2017-10-31 09:10:40',\n 'firstname' => 'Ben',\n 'lastname' => 'Payne',\n 'email' => '[email protected]',\n 'activity_id' => 88,\n 'person_id' => 384,\n 'package_group' => 'wuXe6kOVgwxiDEUnrDWuA3veNHdPcfWScq6SuTjOUZpMOT8nNEabgw2XI1zT5E6bz1WurfTjT3FJlZPTEoOt9gQMtlhkfCQlfmFR',\n ),\n 13 => \n array (\n 'id' => 14,\n 'event_id' => 3954,\n 'package_id' => 203,\n 'order_id' => 0,\n 'total' => '0.00',\n 'item_price' => '0.00',\n 'status' => 'MANUAL',\n 'created_at' => '2017-10-31 09:10:40',\n 'updated_at' => '2017-10-31 09:10:40',\n 'firstname' => 'Ben',\n 'lastname' => 'Payne',\n 'email' => '[email protected]',\n 'activity_id' => 88,\n 'person_id' => 384,\n 'package_group' => 'wuXe6kOVgwxiDEUnrDWuA3veNHdPcfWScq6SuTjOUZpMOT8nNEabgw2XI1zT5E6bz1WurfTjT3FJlZPTEoOt9gQMtlhkfCQlfmFR',\n ),\n 14 => \n array (\n 'id' => 15,\n 'event_id' => 3955,\n 'package_id' => 203,\n 'order_id' => 0,\n 'total' => '0.00',\n 'item_price' => '0.00',\n 'status' => 'MANUAL',\n 'created_at' => '2017-10-31 09:10:40',\n 'updated_at' => '2017-10-31 09:10:40',\n 'firstname' => 'Ben',\n 'lastname' => 'Payne',\n 'email' => '[email protected]',\n 'activity_id' => 88,\n 'person_id' => 384,\n 'package_group' => 'wuXe6kOVgwxiDEUnrDWuA3veNHdPcfWScq6SuTjOUZpMOT8nNEabgw2XI1zT5E6bz1WurfTjT3FJlZPTEoOt9gQMtlhkfCQlfmFR',\n ),\n 15 => \n array (\n 'id' => 16,\n 'event_id' => 3956,\n 'package_id' => 203,\n 'order_id' => 0,\n 'total' => '0.00',\n 'item_price' => '0.00',\n 'status' => 'MANUAL',\n 'created_at' => '2017-10-31 09:10:40',\n 'updated_at' => '2017-10-31 09:10:40',\n 'firstname' => 'Ben',\n 'lastname' => 'Payne',\n 'email' => '[email protected]',\n 'activity_id' => 88,\n 'person_id' => 384,\n 'package_group' => 'wuXe6kOVgwxiDEUnrDWuA3veNHdPcfWScq6SuTjOUZpMOT8nNEabgw2XI1zT5E6bz1WurfTjT3FJlZPTEoOt9gQMtlhkfCQlfmFR',\n ),\n 16 => \n array (\n 'id' => 17,\n 'event_id' => 3957,\n 'package_id' => 203,\n 'order_id' => 0,\n 'total' => '0.00',\n 'item_price' => '0.00',\n 'status' => 'MANUAL',\n 'created_at' => '2017-10-31 09:10:40',\n 'updated_at' => '2017-10-31 09:10:40',\n 'firstname' => 'Ben',\n 'lastname' => 'Payne',\n 'email' => '[email protected]',\n 'activity_id' => 88,\n 'person_id' => 384,\n 'package_group' => 'wuXe6kOVgwxiDEUnrDWuA3veNHdPcfWScq6SuTjOUZpMOT8nNEabgw2XI1zT5E6bz1WurfTjT3FJlZPTEoOt9gQMtlhkfCQlfmFR',\n ),\n 17 => \n array (\n 'id' => 18,\n 'event_id' => 3958,\n 'package_id' => 203,\n 'order_id' => 0,\n 'total' => '0.00',\n 'item_price' => '0.00',\n 'status' => 'MANUAL',\n 'created_at' => '2017-10-31 09:10:40',\n 'updated_at' => '2017-10-31 09:10:40',\n 'firstname' => 'Ben',\n 'lastname' => 'Payne',\n 'email' => '[email protected]',\n 'activity_id' => 88,\n 'person_id' => 384,\n 'package_group' => 'wuXe6kOVgwxiDEUnrDWuA3veNHdPcfWScq6SuTjOUZpMOT8nNEabgw2XI1zT5E6bz1WurfTjT3FJlZPTEoOt9gQMtlhkfCQlfmFR',\n ),\n 18 => \n array (\n 'id' => 19,\n 'event_id' => 3950,\n 'package_id' => 203,\n 'order_id' => 0,\n 'total' => '0.00',\n 'item_price' => '0.00',\n 'status' => 'MANUAL',\n 'created_at' => '2017-10-31 09:10:40',\n 'updated_at' => '2017-10-31 09:10:40',\n 'firstname' => 'Another Child',\n 'lastname' => 'Payne',\n 'email' => '[email protected]',\n 'activity_id' => 88,\n 'person_id' => 385,\n 'package_group' => 'D2Lz5xARawQff7rqd4q77FVoKWx0XpbAFZDW3d9PpJ6FG8YiSJ6nc647sswYlz18YE00k5fkLZ0rkyrQh9xDMqKbyGMtS7mr2PRG',\n ),\n 19 => \n array (\n 'id' => 20,\n 'event_id' => 3951,\n 'package_id' => 203,\n 'order_id' => 0,\n 'total' => '0.00',\n 'item_price' => '0.00',\n 'status' => 'MANUAL',\n 'created_at' => '2017-10-31 09:10:40',\n 'updated_at' => '2017-10-31 09:10:40',\n 'firstname' => 'Another Child',\n 'lastname' => 'Payne',\n 'email' => '[email protected]',\n 'activity_id' => 88,\n 'person_id' => 385,\n 'package_group' => 'D2Lz5xARawQff7rqd4q77FVoKWx0XpbAFZDW3d9PpJ6FG8YiSJ6nc647sswYlz18YE00k5fkLZ0rkyrQh9xDMqKbyGMtS7mr2PRG',\n ),\n 20 => \n array (\n 'id' => 21,\n 'event_id' => 3952,\n 'package_id' => 203,\n 'order_id' => 0,\n 'total' => '0.00',\n 'item_price' => '0.00',\n 'status' => 'MANUAL',\n 'created_at' => '2017-10-31 09:10:40',\n 'updated_at' => '2017-10-31 09:10:40',\n 'firstname' => 'Another Child',\n 'lastname' => 'Payne',\n 'email' => '[email protected]',\n 'activity_id' => 88,\n 'person_id' => 385,\n 'package_group' => 'D2Lz5xARawQff7rqd4q77FVoKWx0XpbAFZDW3d9PpJ6FG8YiSJ6nc647sswYlz18YE00k5fkLZ0rkyrQh9xDMqKbyGMtS7mr2PRG',\n ),\n 21 => \n array (\n 'id' => 22,\n 'event_id' => 3953,\n 'package_id' => 203,\n 'order_id' => 0,\n 'total' => '0.00',\n 'item_price' => '0.00',\n 'status' => 'MANUAL',\n 'created_at' => '2017-10-31 09:10:40',\n 'updated_at' => '2017-10-31 09:10:40',\n 'firstname' => 'Another Child',\n 'lastname' => 'Payne',\n 'email' => '[email protected]',\n 'activity_id' => 88,\n 'person_id' => 385,\n 'package_group' => 'D2Lz5xARawQff7rqd4q77FVoKWx0XpbAFZDW3d9PpJ6FG8YiSJ6nc647sswYlz18YE00k5fkLZ0rkyrQh9xDMqKbyGMtS7mr2PRG',\n ),\n 22 => \n array (\n 'id' => 23,\n 'event_id' => 3954,\n 'package_id' => 203,\n 'order_id' => 0,\n 'total' => '0.00',\n 'item_price' => '0.00',\n 'status' => 'MANUAL',\n 'created_at' => '2017-10-31 09:10:40',\n 'updated_at' => '2017-10-31 09:10:40',\n 'firstname' => 'Another Child',\n 'lastname' => 'Payne',\n 'email' => '[email protected]',\n 'activity_id' => 88,\n 'person_id' => 385,\n 'package_group' => 'D2Lz5xARawQff7rqd4q77FVoKWx0XpbAFZDW3d9PpJ6FG8YiSJ6nc647sswYlz18YE00k5fkLZ0rkyrQh9xDMqKbyGMtS7mr2PRG',\n ),\n 23 => \n array (\n 'id' => 24,\n 'event_id' => 3955,\n 'package_id' => 203,\n 'order_id' => 0,\n 'total' => '0.00',\n 'item_price' => '0.00',\n 'status' => 'MANUAL',\n 'created_at' => '2017-10-31 09:10:40',\n 'updated_at' => '2017-10-31 09:10:40',\n 'firstname' => 'Another Child',\n 'lastname' => 'Payne',\n 'email' => '[email protected]',\n 'activity_id' => 88,\n 'person_id' => 385,\n 'package_group' => 'D2Lz5xARawQff7rqd4q77FVoKWx0XpbAFZDW3d9PpJ6FG8YiSJ6nc647sswYlz18YE00k5fkLZ0rkyrQh9xDMqKbyGMtS7mr2PRG',\n ),\n 24 => \n array (\n 'id' => 25,\n 'event_id' => 3956,\n 'package_id' => 203,\n 'order_id' => 0,\n 'total' => '0.00',\n 'item_price' => '0.00',\n 'status' => 'MANUAL',\n 'created_at' => '2017-10-31 09:10:40',\n 'updated_at' => '2017-10-31 09:10:40',\n 'firstname' => 'Another Child',\n 'lastname' => 'Payne',\n 'email' => '[email protected]',\n 'activity_id' => 88,\n 'person_id' => 385,\n 'package_group' => 'D2Lz5xARawQff7rqd4q77FVoKWx0XpbAFZDW3d9PpJ6FG8YiSJ6nc647sswYlz18YE00k5fkLZ0rkyrQh9xDMqKbyGMtS7mr2PRG',\n ),\n 25 => \n array (\n 'id' => 26,\n 'event_id' => 3957,\n 'package_id' => 203,\n 'order_id' => 0,\n 'total' => '0.00',\n 'item_price' => '0.00',\n 'status' => 'MANUAL',\n 'created_at' => '2017-10-31 09:10:40',\n 'updated_at' => '2017-10-31 09:10:40',\n 'firstname' => 'Another Child',\n 'lastname' => 'Payne',\n 'email' => '[email protected]',\n 'activity_id' => 88,\n 'person_id' => 385,\n 'package_group' => 'D2Lz5xARawQff7rqd4q77FVoKWx0XpbAFZDW3d9PpJ6FG8YiSJ6nc647sswYlz18YE00k5fkLZ0rkyrQh9xDMqKbyGMtS7mr2PRG',\n ),\n 26 => \n array (\n 'id' => 27,\n 'event_id' => 3958,\n 'package_id' => 203,\n 'order_id' => 0,\n 'total' => '0.00',\n 'item_price' => '0.00',\n 'status' => 'MANUAL',\n 'created_at' => '2017-10-31 09:10:40',\n 'updated_at' => '2017-10-31 09:10:40',\n 'firstname' => 'Another Child',\n 'lastname' => 'Payne',\n 'email' => '[email protected]',\n 'activity_id' => 88,\n 'person_id' => 385,\n 'package_group' => 'D2Lz5xARawQff7rqd4q77FVoKWx0XpbAFZDW3d9PpJ6FG8YiSJ6nc647sswYlz18YE00k5fkLZ0rkyrQh9xDMqKbyGMtS7mr2PRG',\n ),\n 27 => \n array (\n 'id' => 28,\n 'event_id' => 3950,\n 'package_id' => 203,\n 'order_id' => 0,\n 'total' => '0.00',\n 'item_price' => '0.00',\n 'status' => 'MANUAL',\n 'created_at' => '2017-10-31 09:10:41',\n 'updated_at' => '2017-10-31 09:10:41',\n 'firstname' => 'Nathan',\n 'lastname' => 'Smith',\n 'email' => '[email protected]',\n 'activity_id' => 88,\n 'person_id' => 386,\n 'package_group' => 'Ujpy2kwdSCdDyBHgf7lYm1nOMDraizNwlDc9YZKWRuoX6C2jl5tgayTesFM5OSHfCAYf30dYvSlUXDj9K84lo9I1wuavf6FOnbmC',\n ),\n 28 => \n array (\n 'id' => 29,\n 'event_id' => 3951,\n 'package_id' => 203,\n 'order_id' => 0,\n 'total' => '0.00',\n 'item_price' => '0.00',\n 'status' => 'MANUAL',\n 'created_at' => '2017-10-31 09:10:41',\n 'updated_at' => '2017-10-31 09:10:41',\n 'firstname' => 'Nathan',\n 'lastname' => 'Smith',\n 'email' => '[email protected]',\n 'activity_id' => 88,\n 'person_id' => 386,\n 'package_group' => 'Ujpy2kwdSCdDyBHgf7lYm1nOMDraizNwlDc9YZKWRuoX6C2jl5tgayTesFM5OSHfCAYf30dYvSlUXDj9K84lo9I1wuavf6FOnbmC',\n ),\n 29 => \n array (\n 'id' => 30,\n 'event_id' => 3952,\n 'package_id' => 203,\n 'order_id' => 0,\n 'total' => '0.00',\n 'item_price' => '0.00',\n 'status' => 'MANUAL',\n 'created_at' => '2017-10-31 09:10:41',\n 'updated_at' => '2017-10-31 09:10:41',\n 'firstname' => 'Nathan',\n 'lastname' => 'Smith',\n 'email' => '[email protected]',\n 'activity_id' => 88,\n 'person_id' => 386,\n 'package_group' => 'Ujpy2kwdSCdDyBHgf7lYm1nOMDraizNwlDc9YZKWRuoX6C2jl5tgayTesFM5OSHfCAYf30dYvSlUXDj9K84lo9I1wuavf6FOnbmC',\n ),\n 30 => \n array (\n 'id' => 31,\n 'event_id' => 3953,\n 'package_id' => 203,\n 'order_id' => 0,\n 'total' => '0.00',\n 'item_price' => '0.00',\n 'status' => 'MANUAL',\n 'created_at' => '2017-10-31 09:10:41',\n 'updated_at' => '2017-10-31 09:10:41',\n 'firstname' => 'Nathan',\n 'lastname' => 'Smith',\n 'email' => '[email protected]',\n 'activity_id' => 88,\n 'person_id' => 386,\n 'package_group' => 'Ujpy2kwdSCdDyBHgf7lYm1nOMDraizNwlDc9YZKWRuoX6C2jl5tgayTesFM5OSHfCAYf30dYvSlUXDj9K84lo9I1wuavf6FOnbmC',\n ),\n 31 => \n array (\n 'id' => 32,\n 'event_id' => 3954,\n 'package_id' => 203,\n 'order_id' => 0,\n 'total' => '0.00',\n 'item_price' => '0.00',\n 'status' => 'MANUAL',\n 'created_at' => '2017-10-31 09:10:41',\n 'updated_at' => '2017-10-31 09:10:41',\n 'firstname' => 'Nathan',\n 'lastname' => 'Smith',\n 'email' => '[email protected]',\n 'activity_id' => 88,\n 'person_id' => 386,\n 'package_group' => 'Ujpy2kwdSCdDyBHgf7lYm1nOMDraizNwlDc9YZKWRuoX6C2jl5tgayTesFM5OSHfCAYf30dYvSlUXDj9K84lo9I1wuavf6FOnbmC',\n ),\n 32 => \n array (\n 'id' => 33,\n 'event_id' => 3955,\n 'package_id' => 203,\n 'order_id' => 0,\n 'total' => '0.00',\n 'item_price' => '0.00',\n 'status' => 'MANUAL',\n 'created_at' => '2017-10-31 09:10:41',\n 'updated_at' => '2017-10-31 09:10:41',\n 'firstname' => 'Nathan',\n 'lastname' => 'Smith',\n 'email' => '[email protected]',\n 'activity_id' => 88,\n 'person_id' => 386,\n 'package_group' => 'Ujpy2kwdSCdDyBHgf7lYm1nOMDraizNwlDc9YZKWRuoX6C2jl5tgayTesFM5OSHfCAYf30dYvSlUXDj9K84lo9I1wuavf6FOnbmC',\n ),\n 33 => \n array (\n 'id' => 34,\n 'event_id' => 3956,\n 'package_id' => 203,\n 'order_id' => 0,\n 'total' => '0.00',\n 'item_price' => '0.00',\n 'status' => 'MANUAL',\n 'created_at' => '2017-10-31 09:10:41',\n 'updated_at' => '2017-10-31 09:10:41',\n 'firstname' => 'Nathan',\n 'lastname' => 'Smith',\n 'email' => '[email protected]',\n 'activity_id' => 88,\n 'person_id' => 386,\n 'package_group' => 'Ujpy2kwdSCdDyBHgf7lYm1nOMDraizNwlDc9YZKWRuoX6C2jl5tgayTesFM5OSHfCAYf30dYvSlUXDj9K84lo9I1wuavf6FOnbmC',\n ),\n 34 => \n array (\n 'id' => 35,\n 'event_id' => 3957,\n 'package_id' => 203,\n 'order_id' => 0,\n 'total' => '0.00',\n 'item_price' => '0.00',\n 'status' => 'MANUAL',\n 'created_at' => '2017-10-31 09:10:41',\n 'updated_at' => '2017-10-31 09:10:41',\n 'firstname' => 'Nathan',\n 'lastname' => 'Smith',\n 'email' => '[email protected]',\n 'activity_id' => 88,\n 'person_id' => 386,\n 'package_group' => 'Ujpy2kwdSCdDyBHgf7lYm1nOMDraizNwlDc9YZKWRuoX6C2jl5tgayTesFM5OSHfCAYf30dYvSlUXDj9K84lo9I1wuavf6FOnbmC',\n ),\n 35 => \n array (\n 'id' => 36,\n 'event_id' => 3958,\n 'package_id' => 203,\n 'order_id' => 0,\n 'total' => '0.00',\n 'item_price' => '0.00',\n 'status' => 'MANUAL',\n 'created_at' => '2017-10-31 09:10:41',\n 'updated_at' => '2017-10-31 09:10:41',\n 'firstname' => 'Nathan',\n 'lastname' => 'Smith',\n 'email' => '[email protected]',\n 'activity_id' => 88,\n 'person_id' => 386,\n 'package_group' => 'Ujpy2kwdSCdDyBHgf7lYm1nOMDraizNwlDc9YZKWRuoX6C2jl5tgayTesFM5OSHfCAYf30dYvSlUXDj9K84lo9I1wuavf6FOnbmC',\n ),\n 36 => \n array (\n 'id' => 37,\n 'event_id' => 3950,\n 'package_id' => 203,\n 'order_id' => 0,\n 'total' => '0.00',\n 'item_price' => '0.00',\n 'status' => 'MANUAL',\n 'created_at' => '2017-10-31 09:10:41',\n 'updated_at' => '2017-10-31 09:10:41',\n 'firstname' => 'Leigh',\n 'lastname' => 'Smith',\n 'email' => '[email protected]',\n 'activity_id' => 88,\n 'person_id' => 387,\n 'package_group' => 'BKQJxqx1YHfsQIFncTieI9qSBk8rWHBwtTs7m48rmb2AvM3vlHYinNJ7skHikv1bDOoGiyhmbbjgGfNjut5vSlNfKclcG6Wb1Z78',\n ),\n 37 => \n array (\n 'id' => 38,\n 'event_id' => 3951,\n 'package_id' => 203,\n 'order_id' => 0,\n 'total' => '0.00',\n 'item_price' => '0.00',\n 'status' => 'MANUAL',\n 'created_at' => '2017-10-31 09:10:41',\n 'updated_at' => '2017-10-31 09:10:41',\n 'firstname' => 'Leigh',\n 'lastname' => 'Smith',\n 'email' => '[email protected]',\n 'activity_id' => 88,\n 'person_id' => 387,\n 'package_group' => 'BKQJxqx1YHfsQIFncTieI9qSBk8rWHBwtTs7m48rmb2AvM3vlHYinNJ7skHikv1bDOoGiyhmbbjgGfNjut5vSlNfKclcG6Wb1Z78',\n ),\n 38 => \n array (\n 'id' => 39,\n 'event_id' => 3952,\n 'package_id' => 203,\n 'order_id' => 0,\n 'total' => '0.00',\n 'item_price' => '0.00',\n 'status' => 'MANUAL',\n 'created_at' => '2017-10-31 09:10:41',\n 'updated_at' => '2017-10-31 09:10:41',\n 'firstname' => 'Leigh',\n 'lastname' => 'Smith',\n 'email' => '[email protected]',\n 'activity_id' => 88,\n 'person_id' => 387,\n 'package_group' => 'BKQJxqx1YHfsQIFncTieI9qSBk8rWHBwtTs7m48rmb2AvM3vlHYinNJ7skHikv1bDOoGiyhmbbjgGfNjut5vSlNfKclcG6Wb1Z78',\n ),\n 39 => \n array (\n 'id' => 40,\n 'event_id' => 3953,\n 'package_id' => 203,\n 'order_id' => 0,\n 'total' => '0.00',\n 'item_price' => '0.00',\n 'status' => 'MANUAL',\n 'created_at' => '2017-10-31 09:10:41',\n 'updated_at' => '2017-10-31 09:10:41',\n 'firstname' => 'Leigh',\n 'lastname' => 'Smith',\n 'email' => '[email protected]',\n 'activity_id' => 88,\n 'person_id' => 387,\n 'package_group' => 'BKQJxqx1YHfsQIFncTieI9qSBk8rWHBwtTs7m48rmb2AvM3vlHYinNJ7skHikv1bDOoGiyhmbbjgGfNjut5vSlNfKclcG6Wb1Z78',\n ),\n 40 => \n array (\n 'id' => 41,\n 'event_id' => 3954,\n 'package_id' => 203,\n 'order_id' => 0,\n 'total' => '0.00',\n 'item_price' => '0.00',\n 'status' => 'MANUAL',\n 'created_at' => '2017-10-31 09:10:41',\n 'updated_at' => '2017-10-31 09:10:41',\n 'firstname' => 'Leigh',\n 'lastname' => 'Smith',\n 'email' => '[email protected]',\n 'activity_id' => 88,\n 'person_id' => 387,\n 'package_group' => 'BKQJxqx1YHfsQIFncTieI9qSBk8rWHBwtTs7m48rmb2AvM3vlHYinNJ7skHikv1bDOoGiyhmbbjgGfNjut5vSlNfKclcG6Wb1Z78',\n ),\n 41 => \n array (\n 'id' => 42,\n 'event_id' => 3955,\n 'package_id' => 203,\n 'order_id' => 0,\n 'total' => '0.00',\n 'item_price' => '0.00',\n 'status' => 'MANUAL',\n 'created_at' => '2017-10-31 09:10:41',\n 'updated_at' => '2017-10-31 09:10:41',\n 'firstname' => 'Leigh',\n 'lastname' => 'Smith',\n 'email' => '[email protected]',\n 'activity_id' => 88,\n 'person_id' => 387,\n 'package_group' => 'BKQJxqx1YHfsQIFncTieI9qSBk8rWHBwtTs7m48rmb2AvM3vlHYinNJ7skHikv1bDOoGiyhmbbjgGfNjut5vSlNfKclcG6Wb1Z78',\n ),\n 42 => \n array (\n 'id' => 43,\n 'event_id' => 3956,\n 'package_id' => 203,\n 'order_id' => 0,\n 'total' => '0.00',\n 'item_price' => '0.00',\n 'status' => 'MANUAL',\n 'created_at' => '2017-10-31 09:10:41',\n 'updated_at' => '2017-10-31 09:10:41',\n 'firstname' => 'Leigh',\n 'lastname' => 'Smith',\n 'email' => '[email protected]',\n 'activity_id' => 88,\n 'person_id' => 387,\n 'package_group' => 'BKQJxqx1YHfsQIFncTieI9qSBk8rWHBwtTs7m48rmb2AvM3vlHYinNJ7skHikv1bDOoGiyhmbbjgGfNjut5vSlNfKclcG6Wb1Z78',\n ),\n 43 => \n array (\n 'id' => 44,\n 'event_id' => 3957,\n 'package_id' => 203,\n 'order_id' => 0,\n 'total' => '0.00',\n 'item_price' => '0.00',\n 'status' => 'MANUAL',\n 'created_at' => '2017-10-31 09:10:41',\n 'updated_at' => '2017-10-31 09:10:41',\n 'firstname' => 'Leigh',\n 'lastname' => 'Smith',\n 'email' => '[email protected]',\n 'activity_id' => 88,\n 'person_id' => 387,\n 'package_group' => 'BKQJxqx1YHfsQIFncTieI9qSBk8rWHBwtTs7m48rmb2AvM3vlHYinNJ7skHikv1bDOoGiyhmbbjgGfNjut5vSlNfKclcG6Wb1Z78',\n ),\n 44 => \n array (\n 'id' => 45,\n 'event_id' => 3958,\n 'package_id' => 203,\n 'order_id' => 0,\n 'total' => '0.00',\n 'item_price' => '0.00',\n 'status' => 'MANUAL',\n 'created_at' => '2017-10-31 09:10:41',\n 'updated_at' => '2017-10-31 09:10:41',\n 'firstname' => 'Leigh',\n 'lastname' => 'Smith',\n 'email' => '[email protected]',\n 'activity_id' => 88,\n 'person_id' => 387,\n 'package_group' => 'BKQJxqx1YHfsQIFncTieI9qSBk8rWHBwtTs7m48rmb2AvM3vlHYinNJ7skHikv1bDOoGiyhmbbjgGfNjut5vSlNfKclcG6Wb1Z78',\n ),\n 45 => \n array (\n 'id' => 46,\n 'event_id' => 3990,\n 'package_id' => 205,\n 'order_id' => 0,\n 'total' => '0.00',\n 'item_price' => '0.00',\n 'status' => 'REFUNDED',\n 'created_at' => '2017-10-31 09:22:29',\n 'updated_at' => '2017-10-31 09:22:29',\n 'firstname' => 'Domi',\n 'lastname' => 'Sharp',\n 'email' => '[email protected]',\n 'activity_id' => 91,\n 'person_id' => 389,\n 'package_group' => 'InybRoIGwO85FvJNJEpeSk0csocLVYEaKoeon9tc3Y8jzFVvdXHzwwhxNylOngMILj7dMWagwEYyHQ9R97tRFpcDoGB50NBljExq',\n ),\n 46 => \n array (\n 'id' => 47,\n 'event_id' => 3991,\n 'package_id' => 205,\n 'order_id' => 0,\n 'total' => '0.00',\n 'item_price' => '0.00',\n 'status' => 'REFUNDED',\n 'created_at' => '2017-10-31 09:22:29',\n 'updated_at' => '2017-10-31 09:22:29',\n 'firstname' => 'Domi',\n 'lastname' => 'Sharp',\n 'email' => '[email protected]',\n 'activity_id' => 91,\n 'person_id' => 389,\n 'package_group' => 'InybRoIGwO85FvJNJEpeSk0csocLVYEaKoeon9tc3Y8jzFVvdXHzwwhxNylOngMILj7dMWagwEYyHQ9R97tRFpcDoGB50NBljExq',\n ),\n 47 => \n array (\n 'id' => 48,\n 'event_id' => 3992,\n 'package_id' => 205,\n 'order_id' => 0,\n 'total' => '0.00',\n 'item_price' => '0.00',\n 'status' => 'REFUNDED',\n 'created_at' => '2017-10-31 09:22:29',\n 'updated_at' => '2017-10-31 09:22:29',\n 'firstname' => 'Domi',\n 'lastname' => 'Sharp',\n 'email' => '[email protected]',\n 'activity_id' => 91,\n 'person_id' => 389,\n 'package_group' => 'InybRoIGwO85FvJNJEpeSk0csocLVYEaKoeon9tc3Y8jzFVvdXHzwwhxNylOngMILj7dMWagwEYyHQ9R97tRFpcDoGB50NBljExq',\n ),\n 48 => \n array (\n 'id' => 49,\n 'event_id' => 3993,\n 'package_id' => 205,\n 'order_id' => 0,\n 'total' => '0.00',\n 'item_price' => '0.00',\n 'status' => 'REFUNDED',\n 'created_at' => '2017-10-31 09:22:29',\n 'updated_at' => '2017-10-31 09:22:29',\n 'firstname' => 'Domi',\n 'lastname' => 'Sharp',\n 'email' => '[email protected]',\n 'activity_id' => 91,\n 'person_id' => 389,\n 'package_group' => 'InybRoIGwO85FvJNJEpeSk0csocLVYEaKoeon9tc3Y8jzFVvdXHzwwhxNylOngMILj7dMWagwEYyHQ9R97tRFpcDoGB50NBljExq',\n ),\n 49 => \n array (\n 'id' => 50,\n 'event_id' => 3994,\n 'package_id' => 205,\n 'order_id' => 0,\n 'total' => '0.00',\n 'item_price' => '0.00',\n 'status' => 'REFUNDED',\n 'created_at' => '2017-10-31 09:22:29',\n 'updated_at' => '2017-10-31 09:22:29',\n 'firstname' => 'Domi',\n 'lastname' => 'Sharp',\n 'email' => '[email protected]',\n 'activity_id' => 91,\n 'person_id' => 389,\n 'package_group' => 'InybRoIGwO85FvJNJEpeSk0csocLVYEaKoeon9tc3Y8jzFVvdXHzwwhxNylOngMILj7dMWagwEYyHQ9R97tRFpcDoGB50NBljExq',\n ),\n 50 => \n array (\n 'id' => 51,\n 'event_id' => 3995,\n 'package_id' => 205,\n 'order_id' => 0,\n 'total' => '0.00',\n 'item_price' => '0.00',\n 'status' => 'REFUNDED',\n 'created_at' => '2017-10-31 09:22:29',\n 'updated_at' => '2017-10-31 09:22:29',\n 'firstname' => 'Domi',\n 'lastname' => 'Sharp',\n 'email' => '[email protected]',\n 'activity_id' => 91,\n 'person_id' => 389,\n 'package_group' => 'InybRoIGwO85FvJNJEpeSk0csocLVYEaKoeon9tc3Y8jzFVvdXHzwwhxNylOngMILj7dMWagwEYyHQ9R97tRFpcDoGB50NBljExq',\n ),\n 51 => \n array (\n 'id' => 52,\n 'event_id' => 3996,\n 'package_id' => 205,\n 'order_id' => 0,\n 'total' => '0.00',\n 'item_price' => '0.00',\n 'status' => 'REFUNDED',\n 'created_at' => '2017-10-31 09:22:29',\n 'updated_at' => '2017-10-31 09:22:29',\n 'firstname' => 'Domi',\n 'lastname' => 'Sharp',\n 'email' => '[email protected]',\n 'activity_id' => 91,\n 'person_id' => 389,\n 'package_group' => 'InybRoIGwO85FvJNJEpeSk0csocLVYEaKoeon9tc3Y8jzFVvdXHzwwhxNylOngMILj7dMWagwEYyHQ9R97tRFpcDoGB50NBljExq',\n ),\n 52 => \n array (\n 'id' => 53,\n 'event_id' => 3997,\n 'package_id' => 205,\n 'order_id' => 0,\n 'total' => '0.00',\n 'item_price' => '0.00',\n 'status' => 'REFUNDED',\n 'created_at' => '2017-10-31 09:22:29',\n 'updated_at' => '2017-10-31 09:22:29',\n 'firstname' => 'Domi',\n 'lastname' => 'Sharp',\n 'email' => '[email protected]',\n 'activity_id' => 91,\n 'person_id' => 389,\n 'package_group' => 'InybRoIGwO85FvJNJEpeSk0csocLVYEaKoeon9tc3Y8jzFVvdXHzwwhxNylOngMILj7dMWagwEYyHQ9R97tRFpcDoGB50NBljExq',\n ),\n 53 => \n array (\n 'id' => 54,\n 'event_id' => 3998,\n 'package_id' => 205,\n 'order_id' => 0,\n 'total' => '0.00',\n 'item_price' => '0.00',\n 'status' => 'REFUNDED',\n 'created_at' => '2017-10-31 09:22:29',\n 'updated_at' => '2017-10-31 09:22:29',\n 'firstname' => 'Domi',\n 'lastname' => 'Sharp',\n 'email' => '[email protected]',\n 'activity_id' => 91,\n 'person_id' => 389,\n 'package_group' => 'InybRoIGwO85FvJNJEpeSk0csocLVYEaKoeon9tc3Y8jzFVvdXHzwwhxNylOngMILj7dMWagwEYyHQ9R97tRFpcDoGB50NBljExq',\n ),\n 54 => \n array (\n 'id' => 73,\n 'event_id' => 3981,\n 'package_id' => 204,\n 'order_id' => 174,\n 'total' => '300.00',\n 'item_price' => '300.00',\n 'status' => 'REFUNDED',\n 'created_at' => '2017-11-02 13:36:29',\n 'updated_at' => '2017-11-02 13:37:59',\n 'firstname' => '',\n 'lastname' => '',\n 'email' => '',\n 'activity_id' => 91,\n 'person_id' => 391,\n 'package_group' => '',\n ),\n 55 => \n array (\n 'id' => 74,\n 'event_id' => 3982,\n 'package_id' => 204,\n 'order_id' => 174,\n 'total' => '0.00',\n 'item_price' => '0.00',\n 'status' => 'REFUNDED',\n 'created_at' => '2017-11-02 13:36:29',\n 'updated_at' => '2017-11-02 13:37:59',\n 'firstname' => '',\n 'lastname' => '',\n 'email' => '',\n 'activity_id' => 91,\n 'person_id' => 391,\n 'package_group' => '',\n ),\n 56 => \n array (\n 'id' => 75,\n 'event_id' => 3983,\n 'package_id' => 204,\n 'order_id' => 174,\n 'total' => '0.00',\n 'item_price' => '0.00',\n 'status' => 'REFUNDED',\n 'created_at' => '2017-11-02 13:36:29',\n 'updated_at' => '2017-11-02 13:37:59',\n 'firstname' => '',\n 'lastname' => '',\n 'email' => '',\n 'activity_id' => 91,\n 'person_id' => 391,\n 'package_group' => '',\n ),\n 57 => \n array (\n 'id' => 76,\n 'event_id' => 3984,\n 'package_id' => 204,\n 'order_id' => 174,\n 'total' => '0.00',\n 'item_price' => '0.00',\n 'status' => 'REFUNDED',\n 'created_at' => '2017-11-02 13:36:29',\n 'updated_at' => '2017-11-02 13:37:59',\n 'firstname' => '',\n 'lastname' => '',\n 'email' => '',\n 'activity_id' => 91,\n 'person_id' => 391,\n 'package_group' => '',\n ),\n 58 => \n array (\n 'id' => 77,\n 'event_id' => 3985,\n 'package_id' => 204,\n 'order_id' => 174,\n 'total' => '0.00',\n 'item_price' => '0.00',\n 'status' => 'REFUNDED',\n 'created_at' => '2017-11-02 13:36:29',\n 'updated_at' => '2017-11-02 13:37:59',\n 'firstname' => '',\n 'lastname' => '',\n 'email' => '',\n 'activity_id' => 91,\n 'person_id' => 391,\n 'package_group' => '',\n ),\n 59 => \n array (\n 'id' => 78,\n 'event_id' => 3986,\n 'package_id' => 204,\n 'order_id' => 174,\n 'total' => '0.00',\n 'item_price' => '0.00',\n 'status' => 'REFUNDED',\n 'created_at' => '2017-11-02 13:36:29',\n 'updated_at' => '2017-11-02 13:37:59',\n 'firstname' => '',\n 'lastname' => '',\n 'email' => '',\n 'activity_id' => 91,\n 'person_id' => 391,\n 'package_group' => '',\n ),\n 60 => \n array (\n 'id' => 79,\n 'event_id' => 3987,\n 'package_id' => 204,\n 'order_id' => 174,\n 'total' => '0.00',\n 'item_price' => '0.00',\n 'status' => 'REFUNDED',\n 'created_at' => '2017-11-02 13:36:29',\n 'updated_at' => '2017-11-02 13:37:59',\n 'firstname' => '',\n 'lastname' => '',\n 'email' => '',\n 'activity_id' => 91,\n 'person_id' => 391,\n 'package_group' => '',\n ),\n 61 => \n array (\n 'id' => 80,\n 'event_id' => 3988,\n 'package_id' => 204,\n 'order_id' => 174,\n 'total' => '0.00',\n 'item_price' => '0.00',\n 'status' => 'REFUNDED',\n 'created_at' => '2017-11-02 13:36:29',\n 'updated_at' => '2017-11-02 13:37:59',\n 'firstname' => '',\n 'lastname' => '',\n 'email' => '',\n 'activity_id' => 91,\n 'person_id' => 391,\n 'package_group' => '',\n ),\n 62 => \n array (\n 'id' => 81,\n 'event_id' => 3989,\n 'package_id' => 204,\n 'order_id' => 174,\n 'total' => '0.00',\n 'item_price' => '0.00',\n 'status' => 'REFUNDED',\n 'created_at' => '2017-11-02 13:36:29',\n 'updated_at' => '2017-11-02 13:37:59',\n 'firstname' => '',\n 'lastname' => '',\n 'email' => '',\n 'activity_id' => 91,\n 'person_id' => 391,\n 'package_group' => '',\n ),\n 63 => \n array (\n 'id' => 128,\n 'event_id' => 4395,\n 'package_id' => 0,\n 'order_id' => 182,\n 'total' => '1.00',\n 'item_price' => '1.00',\n 'status' => 'PAID',\n 'created_at' => '2017-11-03 10:00:03',\n 'updated_at' => '2017-11-03 10:00:22',\n 'firstname' => '',\n 'lastname' => '',\n 'email' => '',\n 'activity_id' => 94,\n 'person_id' => 405,\n 'package_group' => '',\n ),\n 64 => \n array (\n 'id' => 197,\n 'event_id' => 4458,\n 'package_id' => 0,\n 'order_id' => 185,\n 'total' => '1.00',\n 'item_price' => '1.00',\n 'status' => 'REFUNDED',\n 'created_at' => '2017-11-03 13:23:37',\n 'updated_at' => '2017-11-03 13:24:37',\n 'firstname' => '',\n 'lastname' => '',\n 'email' => '',\n 'activity_id' => 95,\n 'person_id' => 408,\n 'package_group' => '',\n ),\n 65 => \n array (\n 'id' => 198,\n 'event_id' => 4458,\n 'package_id' => 0,\n 'order_id' => 185,\n 'total' => '1.00',\n 'item_price' => '1.00',\n 'status' => 'REFUNDED',\n 'created_at' => '2017-11-03 13:23:37',\n 'updated_at' => '2017-11-03 13:24:37',\n 'firstname' => '',\n 'lastname' => '',\n 'email' => '',\n 'activity_id' => 95,\n 'person_id' => 409,\n 'package_group' => '',\n ),\n 66 => \n array (\n 'id' => 199,\n 'event_id' => 4458,\n 'package_id' => 0,\n 'order_id' => 0,\n 'total' => '0.00',\n 'item_price' => '0.00',\n 'status' => 'REFUNDED',\n 'created_at' => '2017-11-03 14:46:36',\n 'updated_at' => '2017-11-03 14:46:36',\n 'firstname' => 'Lucy ',\n 'lastname' => 'Sharp',\n 'email' => '[email protected]',\n 'activity_id' => 95,\n 'person_id' => 390,\n 'package_group' => '',\n ),\n 67 => \n array (\n 'id' => 205,\n 'event_id' => 4409,\n 'package_id' => 0,\n 'order_id' => 190,\n 'total' => '1.00',\n 'item_price' => '1.00',\n 'status' => 'REFUNDED',\n 'created_at' => '2017-11-06 08:44:20',\n 'updated_at' => '2017-11-06 08:44:41',\n 'firstname' => '',\n 'lastname' => '',\n 'email' => '',\n 'activity_id' => 95,\n 'person_id' => 410,\n 'package_group' => '',\n ),\n 68 => \n array (\n 'id' => 206,\n 'event_id' => 4409,\n 'package_id' => 0,\n 'order_id' => 190,\n 'total' => '1.00',\n 'item_price' => '1.00',\n 'status' => 'REFUNDED',\n 'created_at' => '2017-11-06 08:44:20',\n 'updated_at' => '2017-11-06 08:44:41',\n 'firstname' => '',\n 'lastname' => '',\n 'email' => '',\n 'activity_id' => 95,\n 'person_id' => 411,\n 'package_group' => '',\n ),\n 69 => \n array (\n 'id' => 209,\n 'event_id' => 4458,\n 'package_id' => 0,\n 'order_id' => 192,\n 'total' => '1.00',\n 'item_price' => '1.00',\n 'status' => 'REFUNDED',\n 'created_at' => '2017-11-06 12:35:24',\n 'updated_at' => '2017-11-06 12:36:18',\n 'firstname' => '',\n 'lastname' => '',\n 'email' => '',\n 'activity_id' => 95,\n 'person_id' => 412,\n 'package_group' => '',\n ),\n ));\n \n \n }", "public function store(Request $request)\n {\n //\n $validator = Validator::make($request->all(), [\n 'trip_id' => 'required',\n // 'start_location_id' => 'required',\n // 'end_location_id' => 'required',\n 'vehicle_id' => 'required',\n 'seat_id' => 'required',\n \n ]);\n\n if($validator->fails()) {\n return $this->formatInputErrorResponse($validator->errors());\n }\n\n $trip = Trip::where('id',$request->trip_id)->first();\n \n // dd($trip);\n if(!$trip){\n return $this->notFoundResponse('The selected trip does not exist');\n }\n\n $bookingData = [\n 'trip_id' => $request->trip_id,\n 'customer_name' => $request->customer_name,\n 'start_location_id' => $trip->start_location_id,\n 'end_location_id' => $trip->end_location_id,\n 'vehicle_id' => $request->vehicle_id,\n 'seat_id' => $request->seat_id,\n 'ticket_code' => $this->generateTicket(),\n ];\n\n $booking = Booking::create($bookingData);\n\n // update seat availability\n $seat = Seat::find($request->seat_id);\n $seat->status = false;\n $seat->save();\n\n return $this->formatCreatedResponse('Booking successful', $booking);\n\n }", "public function insert_data_reservasi($data)\n\t {\n\t\t$this->db->insert('tbb_reservasi', $data); \n\t }", "public function store(Request $request)\n {\n $validasi = $request->validate([\n 'cat' => 'required',\n 'in' => 'required|date_format:d-m-Y',\n 'out' => 'required|date_format:d-m-Y'\n ]);\n\n $datetime1 = new DateTime($request->in);\n $datetime2 = new DateTime($request->out);\n $interval = $datetime1->diff($datetime2)->d;\n if ($interval != 10) {\n return back()->with('status_error_custom', 'Minimum/Maximum 10 days in Onawa')->withInput();\n }\n DB::beginTransaction();\n try {\n Boarding::create([\n 'inputter_id' => Auth::user()->id,\n 'owner_id' => $request->owner,\n 'cat_id' => $request->cat,\n 'freegrooming_used' => 'n',\n 'in' => date('Y-m-d',strtotime($request->in)),\n 'out' => date('Y-m-d',strtotime($request->out)),\n ]);\n \n $totalFreeGrooming = FreeGrooming::where('owner_id', $request->owner)->first()->total;\n $updatedTotal = $totalFreeGrooming + floor($interval / 10);\n FreeGrooming::where('owner_id', $request->owner)->update(['total' => $updatedTotal]);\n DB::commit();\n return redirect(route('grooming.addBycat', ['cat' => $request->cat]))->with('status_success', 'Success Add Boarding, Bonus ' . floor($interval / 10) . ' Free Grooming ( ' . $updatedTotal . ' )');\n } catch (\\Exception $e) {\n DB::rollback();\n // dd($e);\n return back()->with('status_error_custom', 'Failed Add Boarding')->withInput();\n }\n }", "function processReservation($fname,$lname,$sourcelist,$destlist,$flight,$sdate){\n $connection = initDB();\n $query2;\n \n //Update Guest Table\n $query2 = \"SELECT * FROM Guest WHERE FirstName='\".$fname.\"' AND LastName='\".$lname.\"'\";\n $result2 = mysql_query($query2);\n //or die (\"Query Failed \".mysql_error());\n\n $registeredGuest = false;\n $guestID;\n\n while($row2 = mysql_fetch_array($result2)){ \n $guestID = $row2['GID'];\n $registeredGuest = true; \n }\n //Guest ID not available. First time flyer.\n if(! $registeredGuest){ \n //Update Guest table.\n //Get last Guest ID\n $query2 = \"SELECT MAX(GID) FROM Guest\";\n $result2 = mysql_query($query2);\n //or die (\"Query Failed \".mysql_error());\n $row2 = mysql_fetch_array($result2);\n $MGID = $row2[0];\n \n $guestID = $MGID + 1;\n \n $query2 = \"INSERT INTO Guest Values('\".$guestID.\"','\".$fname.\"','\".$lname.\"')\";\n $result2 = mysql_query($query2);\n //or die (\"Query Failed \".mysql_error()); \n } \n \n //Get the flight ID\n $query = \"SELECT * FROM Flights WHERE FName='\".$flight.\"'\";\n $result = mysql_query($query);\n //or die (\"Query Failed \".mysql_error());\n $row2 = mysql_fetch_array($result); \n $FID = $row2['FID']; \n \n //Update schedule table \n $query2 = \"SELECT MAX(SID) FROM Schedule\";\n $result2 = mysql_query($query2);\n //or die (\"Query Failed \".mysql_error());\n $row2 = mysql_fetch_array($result2);\n $MSID = $row2[0];\n //echo \"MAX GID \".$MGID;\n $SID = $MSID + 1; \n //Before updating the schedule and itinerary table\n //check duplicate itinerary.\n\n $query2 = \"SELECT * FROM Schedule WHERE GID='\".$guestID.\"' AND FID='\".$FID.\"' AND Date='\".$sdate.\"'\";\n $result2 = mysql_query($query2);\n //or die (\"Query Failed \".mysql_error());\n\n $duplicateItinerary = false;\n $guestID;\n\n while($row2 = mysql_fetch_array($result2)){ \n $duplicateItinerary = true; \n }\n\n if($duplicateItinerary){\n //Duplicate itineraries not allowed.\n return -1;\n } \n\n\n $query2 = \"INSERT INTO Schedule Values('\".$SID.\"','\".$guestID.\"','\".$FID.\"','\".$sdate.\"')\";\n $result2 = mysql_query($query2);\n //or die (\"Query Failed \".mysql_error());\n \n //Finally update the Itinerary Table \n $query2 = \"SELECT MAX(IID) FROM Itinerary\";\n $result2 = mysql_query($query2);\n // or die (\"Query Failed \".mysql_error());\n $row2 = mysql_fetch_array($result2);\n $MIID = $row2[0]; \n $IID = $MIID + 1;\n\n $query2 = \"INSERT INTO Itinerary Values('\".$IID.\"','\".$guestID.\"','\".$FID.\"','\".$SID.\"')\";\n $result2 = mysql_query($query2);\n //or die (\"Query Failed \".mysql_error());\n\n closeDB($connection);\n return $IID;\n}", "public function run()\n {\n DB::table('courses')->insert([\n 'name' => 'Provisoire',\n 'price'=>100\n ]);\n\n DB::table('courses')->insert([\n 'name' => 'Driving license',\n 'price'=>140\n ]);\n }", "public function run()\n {\n DB::table('bookshelves')->insert([\n 'user_id' => 1,\n 'longitude' => -3.9823859,\n 'latitude' => 51.6075778,\n 'pickup_times' => '[1,2,3]',\n 'delivery' => 2,\n ]);\n DB::table('bookshelves')->insert([\n 'user_id' => 2,\n 'longitude' => -3.8518577,\n 'latitude' => 51.7197665,\n 'pickup_times' => '[25,45,12,44,13,2,0,5]',\n 'delivery' => 1, \n ]);\n DB::table('bookshelves')->insert([\n 'user_id' => 3,\n 'longitude' => -4.8518577,\n 'latitude' => 58.7197665,\n 'delivery' => 1, \n ]);\n }", "function bookRooms($roomID,$title,$userID,$startDate, $endDate,$otherUsers){\n\n $result = $this->canBookRoom($startDate,$endDate,$roomID);\n if ($result == \"FALSE\")\n {\n $response['status'] = 'failure';\n $response['code'] = 'This room is already Booked on these time slots';\n return $response;\n }\n $add_data = array(\"roomID\"=>$roomID,\"title\"=>$title,\"startDate\"=>$startDate,\"endDate\"=>$endDate,\"userID\"=>$userID);\n if ($this->db->insert('bookings', $add_data)) {\n $insert_id = $this->db->insert_id();\n for ($i = 0 ; $i < count($otherUsers); $i++)\n {\n $obj = $otherUsers[$i];\n\n $data = array(\"bookingID\"=>$insert_id,\"userID\"=>$obj);\n $this->db->insert('booking_invitations', $data);\n\n\n }\n $response['status'] = 'success';\n $response['code']=\"Meeting Created Successfuly\";\n }\n else\n {\n $response['status'] = 'failure';\n $response['code'] = 'database failure';\n }\n return $response;\n\n }", "function confirmseatdetails()\n {\n \n $b_id=$this->input->post('bid');\n $qry=\"update booking_tbl set Status='Booked' where Booking_id='$b_id'\";\n $qry=$this->db->query($qry);\n \n\n }", "public function addNewGig() {\n $user = $this->db->getUser('username', $_POST['username']); \n $begin_date = $_POST['begin_date'];\n $begin_time = $_POST['begin_time'];\n $begin = strtotime($begin_date . ' ' . $begin_time);\n \n $end_date = $_POST['end_date'];\n $end_time = $_POST['end_time'];\n $end = strtotime($end_date . ' ' . $end_time);\n \n $arr = array(\n 'user_id' => $user->get('id'),\n 'name' => $_POST['name'],\n 'begin' => $begin,\n 'end' => $end,\n 'location'=> $_POST['location'],\n );\n $location_id = $this->db->getLocationID($arr['location']);\n $arr['location_id'] = $location_id;\n $gig = new Gig($arr);\n $gig->save($this->db);\n header('Location: ' . route('gigs'));\n }", "public function create(Request $request)\n {\n $sw = \"create\";\n $start = null;\n $end = null;\n $from_date = null;\n $user = Auth::user();\n $englishDates = [];\n for ($i = 1; $i <= 30; $i++) {\n $englishDates[] = Carbon::now()->addDays($i - 1)->format('Y-m-d');\n }\n $slotsOfTheUser = Slot::where(function($query) use($user){\n $query->where('athlete_id_1', $user->id)\n ->orWhere('athlete_id_2', $user->id)\n ->orWhere('athlete_id_3', $user->id);\n })->whereIn('date',$englishDates)->get();\n if ($request->getMethod() == 'POST') {\n dd('create');\n\n if ($request->input('time')) {\n $arr = explode('-', $request->input('time'));\n $start = trim($arr[0]);\n $end = trim($arr[1]);\n } else {\n $request->session()->flash(\"msg_error\", \"لطفا زمان موردنظر خود را انتخاب کنید.\");\n return redirect()->back();\n }\n\n if ($request->input('date')) {\n $from_date = $this->jalaliToGregorian($request->input('date'));\n } else {\n $request->session()->flash(\"msg_error\", \"لطفا تاریخ موردنظر خود را انتخاب کنید.\");\n return redirect()->back();\n }\n if (count($slotsOfTheUser) >= 2) {\n $request->session()->flash(\"msg_error\", \"در ماه بیش تر از ۲ روز مجاز به وقت گرفتن نیستید!\");\n return redirect()->back();\n }\n $found = Slot::where('start', $start)\n ->where('end', $end)\n ->where('date', $from_date)\n ->first();\n if ($found) {\n $firstAthlete = $found->athlete_id_1;\n $secondAthlete = $found->athlete_id_2;\n $thirdAthlete = $found->athlete_id_3;\n $athletes = [$firstAthlete, $secondAthlete, $thirdAthlete];\n if (empty(array_filter($athletes))) {\n $found->start = $start;\n $found->end = $end;\n $found->date = $from_date;\n $found->athlete_id_1 = Auth::user()->id;\n try {\n $found->save();\n $request->session()->flash(\"msg_success\", \"با موفقیت ثبت شدید.\");\n return redirect()->back()->with([\n 'sw' => $sw\n ]);;\n } catch (Exception $e) {\n dd($e);\n }\n } else if (!empty(array_filter($athletes))) {\n if (!$firstAthlete) {\n $found->athlete_id_1 = $user->id;\n $found->save();\n $request->session()->flash(\"msg_success\", \"با موفقیت ثبت شدید.\");\n return redirect()->back()->with([\n 'sw' => $sw\n ]);;\n } else {\n if (!$secondAthlete) {\n $found->athlete_id_2 = $user->id;\n $found->save();\n $request->session()->flash(\"msg_success\", \"با موفقیت ثبت شدید.\");\n return redirect()->back()->with([\n 'sw' => $sw\n ]);;\n }\n if (!$thirdAthlete) {\n $found->athlete_id_3 = $user->id;\n $found->save();\n $request->session()->flash(\"msg_success\", \"با موفقیت ثبت شدید.\");\n return redirect()->back()->with([\n 'sw' => $sw\n ]);;\n }\n }\n } else if ($firstAthlete != 0 && $secondAthlete == 0) {\n $found->athlete_id_2 = Auth::user()->id;\n try {\n if ($firstAthlete != $found->athlete_id_2) {\n $found->save();\n $request->session()->flash(\"msg_success\", \"با موفقیت ثبت شدید.\");\n return redirect()->back()->with([\n 'sw' => $sw\n ]);;\n }\n } catch (Exception $e) {\n dd($e);\n }\n } else if ($firstAthlete != 0 && $secondAthlete != 0 && $thirdAthlete == 0) {\n $found->athlete_id_3 = Auth::user()->id;\n try {\n if ($firstAthlete != $found->athlete_id_3 && $secondAthlete != $found->athlete_id_3) {\n $found->save();\n $request->session()->flash(\"msg_success\", \"با موفقیت ثبت شدید.\");\n return redirect()->back()->with([\n 'sw' => $sw\n ]);;\n }\n } catch (Exception $e) {\n dd($e);\n }\n } else if ($firstAthlete != 0 && $secondAthlete != 0 && $thirdAthlete != 0) {\n $request->session()->flash(\"msg_error\", \"در این تایم نوبت ها پر شده است.\");\n return redirect()->back()->with([\n 'sw' => $sw\n ]);;\n }\n } else {\n $slot = new Slot;\n $slot->start = $start;\n $slot->end = $end;\n $slot->date = $from_date;\n $slot->athlete_id_1 = Auth::user()->id;\n try {\n $slot->save();\n $request->session()->flash(\"msg_success\", \"با موفقیت ثبت شدید.\");\n return redirect()->back()->with([\n 'sw' => $sw\n ]);;\n } catch (Exception $e) {\n dd($e);\n }\n }\n\n\n }\n }", "function add_update_om_charges(){\t\n \t\t$house=$this->input->post('house3');\n\t\t\n\t\t$items=array(\n\t\t'HouseNo' =>$house,\n\t\t'ChargeName'=>$this->input->post('charge'),\n\t\t'Unit'=>$this->input->post('txtunit'),\n\t\t'Qty'=>$this->input->post('qty'),\n\t\t'Description'=>$this->input->post('desc'),\n\t\t'Date'=>date('Y-m-d H:i:s')\n\t\t);\t\t\n\t\t $this->model_app->insert('booking_charges',$items);\n\t\t \n\tredirect('transaction/edit_outgoing_master/'.$house);\n }", "public function saveBooking() {\n $connection = Yii::app()->db;\n $loginUserID = Yii::app()->user->id;\n $transaction = $connection->beginTransaction();\n try {\n $created_date = date('Y-m-d H:i:s');\n $sql = \"INSERT INTO `booking` (\n `yatrik_name`,\n `address`,\n `city`,\n `pincode`,\n `mobile_no`,\n `email`,\n `arrival_date`,\n `departure_date`,\n `receipt_no`,\n `deposit_amount`,\n `actual_amount`,\n `notes`,\n `created_date`,\n `created_by`,\n `updated_date`,\n `updated_by`\n )\n VALUES\n (\n :yatrik_name,\n :address,\n :city,\n :pincode,\n :mobile_no,\n :email,\n :arrival_date,\n :departure_date,\n :receipt_no,\n :deposit_amount,\n :actual_amount,\n :notes,\n :created_date,\n :created_by,\n :updated_date,\n :updated_by\n )\";\n $command = $connection->createCommand($sql);\n $command->bindParam(\":yatrik_name\", $this->yatrik_name, PDO::PARAM_STR);\n $command->bindParam(':address', $this->address, PDO::PARAM_STR);\n $command->bindParam(':city', $this->city, PDO::PARAM_STR);\n $command->bindParam(':pincode', $this->pincode, PDO::PARAM_INT);\n $command->bindParam(':mobile_no', $this->mobile_no, PDO::PARAM_INT);\n $command->bindParam(':email', $this->email, PDO::PARAM_STR);\n $command->bindParam(':arrival_date', $this->arrival_date, PDO::PARAM_STR);\n $command->bindParam(':departure_date', $this->departure_date, PDO::PARAM_STR);\n $command->bindParam(':receipt_no', $this->receipt_no, PDO::PARAM_STR);\n $command->bindParam(':deposit_amount', $this->deposit_amount, PDO::PARAM_INT);\n $command->bindParam(':actual_amount', $this->actual_amount, PDO::PARAM_INT);\n $command->bindParam(':notes', $this->notes, PDO::PARAM_STR);\n $command->bindParam(':created_date', $created_date, PDO::PARAM_STR);\n $command->bindParam(':created_by', $loginUserID, PDO::PARAM_INT);\n $command->bindParam(':updated_date', $created_date, PDO::PARAM_STR);\n $command->bindParam(':updated_by', $loginUserID, PDO::PARAM_INT);\n $command->execute();\n\n $booking_id = $connection->getLastInsertID();\n $this->id = $booking_id;\n\n $sql = \"INSERT INTO `booking_details` (\n `booking_id`,\n `room_id`,\n `number_count`,\n `room_price`\n )\n VALUES\n (\n :booking_id,\n :room_id,\n :number_count,\n :room_price\n )\";\n $command = $connection->createCommand($sql);\n\n foreach ($this->rooms as $key => $room) {\n $roomObj = Rooms::model()->findByPk($room);\n $command->bindValues(array(\n 'booking_id' => $booking_id,\n 'room_id' => $room,\n 'number_count' => $this->noOfRooms[$key],\n 'room_price' => $roomObj->room_price\n ));\n $command->execute();\n }\n $transaction->commit();\n\n $this->sendMail();\n\n Yii::app()->user->setFlash('success', \"Booking is successfully done.\");\n return $booking_id;\n } catch (Exception $e) // an exception is raised if a query fails\n {\n $transaction->rollback();\n return false;\n }\n }", "public function run()\n {\n\n Schema::disableForeignKeyConstraints();\n \\DB::table('bookings')->truncate();\n Schema::enableForeignKeyConstraints();\n\n\n\n Schema::disableForeignKeyConstraints();\n $date = Carbon::now()->subDay();\n\n for($i = 0; $i < 365; $i++){\n $date = $date->addDay();\n Booking::create([\n \"reservation_date\" => $date\n ]);\n }\n\n Schema::enableForeignKeyConstraints();\n }", "function addGrade(){\n $categoryId = Slim::getInstance()->request()->post('categoryId');\n $gradeName = Slim::getInstance()->request()->post('gradeName');\n $percentage = Slim::getInstance()->request()->post('percentage');\n try {\n $insertGrade = \"INSERT INTO grades(categoryId, gradeName, percentage) VALUE(:categoryId, :gradeName, :percentage)\";\n $db = getConnection();\n $stmt = $db->prepare($insertGrade);\n $stmt->bindParam(\"categoryId\", $categoryId);\n $stmt->bindParam(\"gradeName\", $gradeName);\n $stmt->bindParam(\"percentage\", $percentage);\n $stmt->execute();\n $db = null;\n\n } catch(PDOException $e) {\n echo '{\"error\":{\"text\":'. $e->getMessage() .'}}'; \n } \n}", "function addToGrocery($userid, $ingredient, $qty, $units){\n\t if(($userid != NULL) &&($ingredient != NULL) && ($qty != NULL)&& ($units != NULL))\n\t { \n\t if($qty <= 0)\n\t\t return;\n\t\t $count= @mysql_query(\"SELECT COUNT(*) as count FROM GroceryList WHERE (UserID = '$userid' AND IngredientName = '$ingredient' AND Units ='$units')\");\n\t\t $countdata = mysql_fetch_assoc($count);\n\t\t if($countdata['count'] >= 1)\n\t\t\t @mysql_query(\"UPDATE GroceryList SET Quantity = Quantity + '$qty' WHERE (UserID ='$userid' AND IngredientName = '$ingredient' AND Units ='$units')\");\n\t\t else\n\t\t @mysql_query(\"INSERT INTO GroceryList VALUES ('$userid','$ingredient','$qty','$units')\");\n\t\t}\n\t}", "public function addFuel() {\n global $REQUEST_DATA;\n global $sessionHandler;\n $userId=$sessionHandler->getSessionVariable('UserId');\n\n $query=\"INSERT INTO\n fuel\n SET\n busId=\".$REQUEST_DATA['busId'].\",\n staffId=\".$REQUEST_DATA['staffId'].\",\n dated='\".$REQUEST_DATA['dated'].\"',\n litres='\".trim(add_slashes($REQUEST_DATA['litres'])).\"',\n amount='\".trim(add_slashes($REQUEST_DATA['amount'])).\"',\n lastMilege='\".trim(add_slashes($REQUEST_DATA['lastMilege'])).\"',\n currentMilege='\".trim(add_slashes($REQUEST_DATA['currentMilege'])).\"',\n addedOnDate='\".date('Y-m-d').\"',\n addByUserId=\".$userId;\n return SystemDatabaseManager::getInstance()->executeUpdate($query);\n }" ]
[ "0.5776205", "0.57294786", "0.5673574", "0.5599588", "0.53921026", "0.5341037", "0.53089756", "0.52920175", "0.5280862", "0.5274961", "0.52593917", "0.5254279", "0.5247083", "0.5188687", "0.51764506", "0.5164153", "0.5151694", "0.51419646", "0.5132998", "0.5131082", "0.5129891", "0.511108", "0.5062888", "0.50387275", "0.50371265", "0.50310665", "0.50263834", "0.50192887", "0.5017621", "0.5009521", "0.49742147", "0.49740303", "0.4967068", "0.4966506", "0.49664247", "0.49404874", "0.49398282", "0.49329743", "0.49323344", "0.49254334", "0.4923666", "0.4907133", "0.48937973", "0.48891476", "0.4870572", "0.4866872", "0.4865257", "0.4862751", "0.4858611", "0.4856207", "0.48528418", "0.48505852", "0.48462442", "0.48427922", "0.4838433", "0.48350692", "0.48340017", "0.48307082", "0.48268694", "0.4822299", "0.48188666", "0.48155954", "0.4812449", "0.48087966", "0.48075214", "0.47989285", "0.47932407", "0.47922885", "0.47906372", "0.47853425", "0.47824198", "0.47819817", "0.4781102", "0.47778934", "0.47762394", "0.47756687", "0.47702467", "0.47668207", "0.47667488", "0.47659662", "0.4764254", "0.47637907", "0.4759341", "0.47587606", "0.47577637", "0.475656", "0.47560453", "0.47524014", "0.47522882", "0.47519547", "0.47498265", "0.47498", "0.47472095", "0.47412765", "0.47384438", "0.47364417", "0.47361106", "0.47339872", "0.47339782", "0.47319254" ]
0.5157213
16
/SQL to add 5 star booking to DB
function book5 () { $name = $email = $phone = ""; $people = $_POST["people5"]; $tempin5 = $_POST["checkin5"]; $tempout5 = $_POST["checkout5"]; $checkin5 = strtotime($_POST["checkin5"]); $checkout5 = strtotime($_POST["checkout5"]); $date = $checkout5 - $checkin5; $datediff = number_format(round($date /(60 * 60 * 24))); if ($datediff == 0) $datediff = 1; $totalcost = $datediff*$_POST["people5"]*19400; $conn = mysqli_connect('localhost:3308','root', '','hotelmanagement'); if(isset($_SESSION['name']) && isset($_SESSION['email']) && isset($_SESSION['phone'])) { $name = $_SESSION['name']; $phone = $_SESSION['phone']; $email = $_SESSION['email']; $sql = "INSERT INTO booking (name, email, contactno, checkin, checkout, roomtype, days, people, cost) VALUES ('$name', '$email', '$phone', '$tempin5', '$tempout5', 'Luxury - 5 Star', '$datediff', '$people', '$totalcost')"; } else { $name = $_SESSION['nameSC']; $phone = $_SESSION['phoneSC']; $email = $_SESSION['emailSC']; $sql = "INSERT INTO booking (name, email, contactno, checkin, checkout, roomtype, days, people, cost) VALUES ('$name', '$email', '$phone', '$tempin5', '$tempout5', 'Luxury - 5 Star', '$datediff', '$people', '$totalcost')"; } if (mysqli_query($conn, $sql)) { echo "<script type = 'text/javascript'>alert('Booking confirmed! Payment will be processed at the Hotel. Thank you for choosing Four Seasons!'); window.location='CustomerDisplayPage.php';</script>"; } else { echo "Error: " . $sql . "<br>" . mysqli_error($conn); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function addBooking()\r\n {\r\n $loggedin = isset($_SESSION['user']);\r\n if(! $loggedin)\r\n {\r\n return redirect('');\r\n }\r\n $user = $_SESSION['user']->account_no;\r\n\r\n $showtime = $_POST['showtime'];\r\n $num_seats = $_POST['num_seats'];\r\n\r\n App::get('database')->insert('booking', compact('user', 'showtime', \"num_seats\"));\r\n\r\n redirect('');\r\n }", "public function createSacksWeight()\n {\n \n \t$shift = $finished = $cols = \"\";\n\t\t\n $shift = trim($_POST[\"shift\"]);\n $shift = stripslashes($shift);\n $shift = htmlspecialchars($shift);\n\t\t\n\t\t$finished = trim($_POST[\"finished\"]);\n $finished = stripslashes($finished);\n $finished = htmlspecialchars($finished);\n\t\n\t\t$cols = trim($_POST[\"cols\"]);\n $cols = stripslashes($cols);\n $cols = htmlspecialchars($cols);\n\t\t\n //DATE\n $date = date(\"Y-m-d\");\n if($shift == 2)\n {\n $date = date(\"Y-m-d\", time() - 60 * 60 * 24);\n }\n if(!empty($_POST['date']))\n {\n $myDateTime = DateTime::createFromFormat('d/m/Y', $_POST['date']);\n $newDateString = $myDateTime->format('Y-m-d');\n $date = $newDateString;\n }\n\t\t\n\t\t$totalnet = $totalSacks = $number = 0;\n\t\t\n\t\t$sacks = \"INSERT INTO `injection_sacks_weight`\n(`injection_sacks_weight_id`,`date_sacks`,`shift`,`number`,`weight`,`user_id`,`finishproduct`,`cols`)\nVALUES\";\n\t\tforeach ($_POST as $k=>$v)\n\t\t{\n\t\t\tif (substr( $k, 0, 3 ) === \"wt_\" and !empty($v)){\n\t\t\t\t$i = explode(\"_\",$k)[1];\n\t\t\t\t\n\t\t\t\t$no = trim($_POST[\"no_\".$i]);\n\t\t\t\t$number = $number + $no;\n\t\t\t\t$totalSacks = $totalSacks + $no;\n\t\t\t\t$totalnet = $totalnet + $v;\n\t\t\t\t$sacks = $sacks. \" (NULL, '\". $date.\"', \". $shift .\", \". $no .\", \". $v .\", \". $_SESSION['Userid'] .\", \". $finished .\", \". $cols .\") ,\";\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\t$update = \"\";\n\t\t\n\t\t\n\t\t$sql = \"SELECT `injection_sacks_production_id`, SUM(`sacks`) as total, SUM(used) as used\nFROM `injection_sacks_production`\nWHERE `status_production` = 0 AND cols= \". $cols.\" AND finishproduct = \". $finished .\"\n\";\n\t\t\n if($stmt = $this->_db->prepare($sql))\n {\n $stmt->execute();\n while($row = $stmt->fetch())\n {\n\t\t\t\tif(!is_null($row['injection_sacks_production_id']))\n\t\t\t\t{\n\t\t\t\t\t$TOTAL = $row['total'] - $row['used'];\n\t\t\t\t\tif($TOTAL<$number)\n\t\t\t\t\t{\n\t\t\t\t\t\techo '<strong>ERROR</strong> The sacks were not added to the production. Because there is not enought injection sacks production in stock. <br> There are <strong>'. $TOTAL .'</strong> kgs in stock, and you need <strong>'. $number .'</strong> sacks. Please try again after submit the sacks for the production.';\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t {\n\t\t\t\t\t\techo '<strong>ERROR</strong> The sack was not added to the production. ecause there is not enought injection sacks production in stock. <br> Please try again after submit the sacks for the production.';\n\t\t\t\t\t\treturn false;\n\t\t\t\t }\n }\n\t\t}\n\t\t\n\t\t$sql = \"SELECT `injection_sacks_production_id`, `sacks`, used\n\t\t\t\tFROM `injection_sacks_production`\n\t\t\t\tWHERE `status_production` = 0 AND cols= \". $cols.\" AND finishproduct = \". $finished .\"\n\t\t\t\tORDER BY `date_production` DESC, `injection_sacks_production_id`\n\t\t\t\tLIMIT 10;\";\n\t\t\n if($stmt = $this->_db->prepare($sql))\n {\n $stmt->execute();\n while($row = $stmt->fetch())\n {\n\t\t\t\tif(!is_null($row['injection_sacks_production_id']))\n\t\t\t\t{\n\t\t\t\t\t$TOTAL = $row['sacks'] - $row['used'];\n\t\t\t\t\tif(($TOTAL > $number) and ($number > 0))\n\t\t\t\t\t{\n\t\t\t\t\t\tif($number + $row['used'] == $row['sacks'])\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t$update = $update . \"\n\t\t\t\t\t\tUPDATE `injection_sacks_production` SET\n `used` = `used`+\". $number .\", `status_production` = 1\n\t\t\t\t\t\tWHERE `injection_sacks_production_id` = \". $row['injection_sacks_production_id'].\"; \";\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t$update = $update . \"\n\t\t\t\t\t\tUPDATE `injection_sacks_production` SET\n `used` = `used`+\". $number .\", `status_production` = 0\n\t\t\t\t\t\tWHERE `injection_sacks_production_id` = \". $row['injection_sacks_production_id'].\"; \";\n\t\t\t\t\t\t}\n\t\t\t\t\t\t$number = 0;\n\t\t\t\t\t\t$stmt->closeCursor();\n\t\t\t\t\t}\n\t\t\t\t\telse if(($TOTAL <= $number) and ($number > 0))\n\t\t\t\t\t{\n\t\t\t\t\t\t$update = $update . \"\n\t\t\t\t\t\tUPDATE `injection_sacks_production` SET\n `used` = `used`+\". $TOTAL .\", `status_production` = 1\n\t\t\t\t\t\tWHERE `injection_sacks_production_id` = \". $row['injection_sacks_production_id'].\";\";\n\t\t\t\t\t\t$number = $number - $TOTAL;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t {\n\t\t\t\t\t\techo '<strong>ERROR 3</strong> The sack was not added to the production. ecause there is not enought injection sacks production in stock. <br> Please try again after submit the sacks for the production.';\n\t\t\t\t\t\treturn false;\n\t\t\t\t }\n }\n\t\t\n\t\t\t\t\t\n\t\t\t$transfer = \" INSERT INTO `stock_materials_transfers`(`stock_materials_transfers_id`,`machine_from`,`machine_to`,`material_id`,`date_required`,`bags_required`,`bags_approved`,`bags_issued`,`bags_receipt`,`user_id_required`,`user_id_approved`,`user_id_issued`,`user_id_receipt`,`status_transfer`,`remarks_approved`,`remarks_issued`)VALUES(NULL,6,12, '\". $finished .\"','\". $date .\"',\". $totalSacks . \",\". $totalSacks . \",\". $totalSacks . \",NULL,\". $_SESSION['Userid'] . \",\". $_SESSION['Userid'] . \",\". $_SESSION['Userid'] . \",NULL,2,'Total Weight of Sacks = \". $totalnet .\"',NULL);\";\n\t\t\t\n\t\t\t$sql = substr($sacks,0,strlen($sacks)-2). \"; \". $update . $transfer ;\n\t\t\t\n\t\t\ttry { \n\t\t\t\t$this->_db->setAttribute( PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION );\n\t\t\t\t$stmt = $this->_db->prepare($sql);\n\t\t\t\t$stmt->execute();\n\t\t\t\t$stmt->closeCursor();\n\t\t\t\t\n\t\t\t\techo '<strong>SUCCESS!</strong> The sacks were successfully added to the database for the shift: <strong>'. $this->giveShiftname($shift) .'</strong>';\n\t\t\t\treturn TRUE;\n\t\t\t\t\t\n\t\t\t}\n\t\t\tcatch (PDOException $e) {\n\t\t\t\techo '<strong>ERROR</strong> Could not insert the sacks into the database. Please try again.<br>'. $e->getMessage();\n\t\t\t\treturn FALSE;\n\t\t\t}\n\t\t\t}\n\t\t}", "function rateThisAnswer($connection,$answerIdToShare,$starValue,$userId,$usertype){\n $ratedOn = date('Y-m-d H:i:s');\n $query = \"INSERT INTO forum_answer_rating SET ans_id='$answerIdToShare',ans_rate='$starValue',rated_by='$userId',usertype='$usertype',rated_on='$ratedOn' \";\n $rated = $connection->query($query);\n return $rated;\n }", "public function numbersAction() {\n global $CFG;\n\n $br = new bookingRecord();\n $gump = $this->getGump();\n\n // check the session is still around\n if ($br->expired()) {\n $this->redirect($this->url('booking/expired'));\n }\n \n // get fares\n $fares = \\ORM::for_table('fares')->find_one(1);\n\n // choices\n $adultchoices = $this->fill(1, $CFG->select_limit);\n $childrenchoices = $this->fill(0, $CFG->select_limit);\n $childrenchoices[0] = 'None';\n $infantchoices = $this->fill(0, $CFG->select_limit);\n $infantchoices[0] = 'None';\n\n // form submitted?\n $errors = [];\n if ($request = $this->getRequest()) {\n if (!empty($request['cancel'])) {\n $this->redirect($this->Url('booking/start'));\n }\n\n $lim = $CFG->select_limit;;\n $gump->validation_rules(array(\n 'adults' => \"required|numeric|min_numeric,1|max_numeric,$lim\",\n 'children' => \"required|numeric|min_numeric,0|max_numeric,$lim\",\n 'infants' => \"required|numeric|min_numeric,0|max_numeric,$lim\",\n ));\n if ($data = $gump->run($request)) {\n $adults = $data['adults'];\n $children = $data['children'];\n $infants = $data['infants'];\n $partysize = $adults + $children;\n if ($partysize > $CFG->select_limit) {\n $errors[] = 'The total party size may not be greater than ' . $CFG->select_limit;\n } else {\n $br->setAdults($adults);\n $br->setChildren($children);\n $br->setInfants($infants);\n $br->save();\n $this->redirect($this->Url('booking/date'));\n }\n }\n }\n \n // Form\n $form = new \\stdClass;\n $form->adults = $this->form->select('adults',\n 'Number of adults - £'.number_format($fares->adult/100, 2).' each',\n $br->getAdults(),\n $adultchoices,\n '',\n 8);\n $form->children = $this->form->select('children',\n 'Number of children - £'.number_format($fares->child/100, 2).' each <small class=\"santa-subtext\">(18 months to 15 years)</small>',\n $br->getChildren(),\n $childrenchoices,\n '',\n 8);\n $form->infants = $this->form->select('infants',\n 'Number of infants <small class=\"santa-subtext\">(17 months and under)</small>',\n $br->getInfants(),\n $infantchoices,\n '',\n 8);\n $form->buttons = $this->form->buttons('Next', 'Back', true);\n\n $this->View('booking_numbers', array(\n 'br' => $br,\n 'form' => $form,\n 'adultchoices' => $adultchoices,\n 'childrenchoices' => $childrenchoices,\n 'infantchoices' => $infantchoices,\n 'fares' => $fares,\n 'errors' => $gump->errors(),\n ));\n }", "public function addRatings()\n {\n }", "public function run()\n {\n\n $offeringCount = 10;\n for ($i = 1; $i<$offeringCount; $i++){\n \\Illuminate\\Support\\Facades\\DB::table('offering')->insert([\n 'title' =>'Offering-' . $i,\n 'quantity' => 100,\n 'price' => rand ( 10 , 100),\n ]);\n }\n }", "function bookcar($c_id,$d_id,$u_id,$date)\n{\n\t$sql=\"insert into ride_details(u_id,d_id,c_id,booking_date,dep_date)values($u_id,$d_id,$c_id,'$date','\".date(\"Y-m-d\").\"')\";\n\t$GLOBALS['db']->exec($sql);\n\t$sql=\"update care_detail set status=1 where c_id=$c_id\";\n\t$GLOBALS['db']->exec($sql);\n\t$sql=\"update driver_detail set status=1 where d_id=$d_id\";\n\t$GLOBALS['db']->exec($sql);\n\n}", "public function star($trip_id) {\n $data = Array(\n \"trip_id\" => $trip_id,\n \"user_id\" => $this->user->user_id,\n );\n\n DB::instance(DB_NAME)->insert(\"users_trips\", $data);\n\n Router::redirect(\"/trips\");\n }", "public function addBooking() {\n // get data\n $this->getdata();\n \n // validate data\n if (!isset($this->data['cnp']) || empty($this->data['cnp'])) {\n exit('Please provide a CNP');\n } elseif(!$this->userExists()) {\n exit('No user found with provided CNP');\n } elseif(!$this->isClient()) {\n exit('Incorrect user role');\n }\n if (!isset($this->data['program']) || empty($this->data['program'])) {\n exit('Please provide a program');\n } elseif (!$this->programExists($this->data['program'])) {\n exit('Program does not exist');\n } else {\n // check if program is not due\n $program = $this->getProgram($this->data['program']);\n if (strtotime($program->start_date) <= time()) {\n exit('Program is due');\n }\n // check if date range is available, seats not taken and not already booked\n if (!$this->isBooked() && $this->isAvailable($program) && $this->hasSeats($program)) {\n // insert booking to database\n $statement = 'INSERT INTO booking (user_id, program_id) VALUES (:user_id, :program_id);';\n try {\n $statement = $this->db->prepare($statement);\n $statement->execute(array(\n 'user_id' => $this->getUser($this->data['cnp']),\n 'program_id' => $this->data['program']\n ));\n echo 'Succesfully added booking';\n } catch (\\PDOException $e) {\n exit($e->getMessage());\n } \n }\n }\n }", "function add_student_availability($term, $day, $hour, $type) {\n //this assumes that the primary key is being insterted automatically using a counter\n $query = 'INSERT into student_avail(term_id, weekday, hour, type) VALUES($1,$2,$3,$4)';\n\n return pg_query_params($CONNECTION, $query, array($term, $day, $hour, $type));\n }", "public function update_ratting_data() {\n\t\tglobal $wpdb;\n\t\t$sso = new Top_Ratter_SSO ();\n\t\t// get the ratting data from sso class\n\t\t$journal_records=$sso->esi_api_gather_ratted_isk_amount();\n\t\t\n\t\tif ($journal_records == null) {\n\t\t echo'<p>Problem with API :(</p>';\n\t\t\treturn;\n\t\t}\n\t\tif($journal_records=='no_officer_token'){\n\t\t echo'<p>There is no officer token, inform officers. Pretty please?</p>';\n\t\t return;\n\t\t}\n\n\t\t$bounties_array = $this->filter_ratting_data ( $journal_records);\n\t\t$structures_array = $this->filter_ratting_data ( $journal_records,true);\n\t\t\n\t\t/*\n\t\t * Bounties akka ratting data to be inserted.\n\t\t */\n\t\tif($bounties_array){\n\t\t \n\t\t $this->insert_new_characters_in_database($bounties_array);\n\t\t \n\t\t $bounties_to_insert=null;\n\t\t \n\t\t $sql_max_ref_id=\"SELECT MAX(`ref_id`) AS ref_id FROM `\" . $wpdb->prefix . \"tr_ratting_data`\";\n\t\t $max_ref_id=$wpdb->get_row($sql_max_ref_id,ARRAY_A); \n\t\t \n\t\t if($max_ref_id['ref_id']!==NULL){\n\t\t foreach($bounties_array as $bounty_record){\n\t\t // select only those that is not in the db\n\t\t if($bounty_record['ref_id']>(float)$max_ref_id['ref_id']){\n\t\t //this is new record that is not in the db yet\n\t\t $bounties_to_insert[]=$bounty_record;\n\t\t } \n\t\t }\n\t\t }else{\n // insert all since nothing in db\n\t\t $bounties_to_insert=$bounties_array;\n\t\t }\n\t\t \n\t\t if($bounties_to_insert){\n\t\t $sql=\"INSERT INTO `\" . $wpdb->prefix . \"tr_ratting_data`(`owner_id`, `date_acquired`, `amount`, `system_id`, `npc_kills`, `ref_id`) VALUES\";\n\t\t $count=count($bounties_to_insert);\n\t\t $i=1;\n\t\t foreach($bounties_to_insert as $record){\n\t\t $system_id=0;\n\t\t if($record['extra_info']['system_id']){\n\t\t $system_id=$record['extra_info']['system_id'];\n\t\t }\n\t\t $sql.='(\"'.$record['second_party_id'].'\",\"'.$record['date'].'\",\"'.$record['tax'].'\",\"'.$system_id.'\",\"'.$record['npc_kills'].'\",\"'.$record['ref_id'].'\")';\n\t\t \n\t\t if($i==$count){\n\t\t $sql.='';\n\t\t }else{\n\t\t $sql.=',';\n\t\t }\n\t\t $i++;\n\t\t }\n\t\t $sql.=';';\n\t\t $wpdb->query($sql);\n\t\t } \n\t\t}\n\t\t\n\t\t/*\n\t\t * Structures data insert starts here\n\t\t */\n\t\tif($structures_array){\n\t\t $sql=\"INSERT INTO `\" . $wpdb->prefix . \"tr_structures_income`(`ref_id`, `date_acquired`, `amount`, `ref_type`) VALUES\";\n\t\t $count=count($structures_array);\n\t\t $i=1;\n\t\t foreach($structures_array as $record){\n\t\t \n\t\t $sql.='(\"'.$record['ref_id'].'\",\"'.$record['date'].'\",\"'.$record['amount'].'\",\"'.$record['ref_type'].'\")';\n\t\t \n\t\t if($i==$count){\n\t\t $sql.='';\n\t\t }else{\n\t\t $sql.=',';\n\t\t }\n\t\t $i++;\n\t\t }\n\t\t $sql.=';';\n\t\t $wpdb->query($sql); \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}", "function getStarRating($rating){\r\n $statement = \"\";\r\n for($int= 0;$int<$rating;$int++){\r\n $statement .= \"<span class='fa fa-star checked' style='font-size:12px'></span>\";\r\n }\r\n return $statement;\r\n }", "function getStarRating($rating){\r\n $statement = \"\";\r\n for($int= 0;$int<$rating;$int++){\r\n $statement .= \"<span class='fa fa-star checked' style='font-size:12px'></span>\";\r\n }\r\n return $statement;\r\n }", "function add_day() {\n\t\t\t$date = new DateTime($this->entry_date);\n\t\t\t\n\t\t\t$qry = sprintf(\"INSERT INTO %s (tkr_id, entry_date, open, high, low, close, volume, adj_close) \n\t\t\t\t\tVALUES (%d,'%s',%8.2f,%8.2f,%8.2f,%8.2f,%d,%8.2f)\",\n\t\t\t\t\tmysql_real_escape_string(HISTORICAL_TBL), $this->tkr_id, mysql_real_escape_string($date->format('Y-m-d')),\n\t\t\t\t\t$this->open, $this->high, $this->low, $this->close, $this->vol, $this->adj_close);\n\t\t\tmysql_query($qry) or die(mysql_error());\n\t\t\t}", "public function bookRide()\n {\n try\n {\n if(\\Session::has('userId'))\n {\n $param=$this->request->all();\n $rideid=$param['ride'];\n $cost_seat=$param['cost_seat'];\n $seat=$param['No_seats'];\n $totalCost=$cost_seat*$seat;\n $tax=round(0.1*$totalCost);\n $totalFinal=$totalCost+$tax;\n $findride=DB::table('rides')->where('id',$rideid)->get();\n\n if(count($findride)>0)\n {\n //remain select origin n destination according to ride type(daily,return date);\n if($findride[0]->available_seat>=$seat)\n {\n $daily=0;\n if($findride[0]->isDaily==1)\n {\n $cost_seat=0;\n $totalCost=$cost_seat*$seat;\n $tax=27.5;\n $totalFinal=$totalCost+$tax;\n $daily=1;\n }\n //check wallet amount enough in book rider account\n $walletRecord=DB::table('payment_wallete')->where('userId',session('userId'))->get();\n if(count($walletRecord)>0)\n {\n if($walletRecord[0]->amount>$totalFinal)\n {\n //you can book this ride \n //insert data in ride booking\n DB::beginTransaction();\n $insertData=array(\"offer_userId\"=>$findride[0]->userId,\"book_userId\"=>session('userId'),\"rideId\"=>$rideid,\"source\"=>$findride[0]->departureOriginal,\"destination\"=>$findride[0]->arrivalOriginal,\"no_of_seats\"=>$seat,\"cost_per_seat\"=>$totalCost,\"paymentType\"=>\"wallet\");\n $status=DB::table('ride_booking')->insert($insertData);\n if($status>0)\n {\n //tax amount add in admin account\n $insertAdminWallet=array(\"rideId\"=>$rideid,\"userId\"=>session('userId'),\"amount\"=>$tax,\"bookType\"=>\"book\",\"isDaily\"=>$daily);\n DB::table('admin_wallet')->insert($insertAdminWallet);\n\n //wallet amount transfer from rider account to offerrider account\n $rdd=DB::table('payment_wallete')->where('userId',session('userId'))->get();\n DB::table('payment_wallete')->where('userId',session('userId'))->update(['amount'=>$rdd[0]->amount-$totalFinal]);\n\n //check wallet amount exists for offer rider\n $che=DB::table('payment_wallete')->where('userId',$findride[0]->userId)->get();\n if(count($che)>0)\n {\n //update wallet amount... amount add in offer userid account\n DB::table('payment_wallete')->where('userId',$findride[0]->userId)->update(['amount'=>$che[0]->amount+$totalCost]);\n }\n else\n {\n //insert amount in offer userid account\n DB::table('payment_wallete')->insert(['userId'=>$findride[0]->userId,'amount'=>$totalCost]);\n }\n //minus available seat of a ride\n $st=DB::table('rides')->where('id',$rideid)->update(['available_seat'=>$findride[0]->available_seat-$seat]);\n if($st)\n {\n //send booked email\n //GET DETAILS OF OFFERED PERSON\n $offerPersonDetail=DB::table('users')->where('id',$findride[0]->userId)->get();\n //GET RIDE DETAILS\n //$offerRideDetail=DB::table('rides')->where('id',$bookRideArray['offerid'])->get();\n //GET DETAILS OF BOOKED PERSON\n $bookedPersonDetail=DB::table('users')->where('id',session('userId'))->get();\n\n if(count($offerPersonDetail)>0)\n {\n $dd['username']=$offerPersonDetail[0]->username;\n $dd['email']=$offerPersonDetail[0]->email; \n\n }\n if(count($findride)>0)\n {\n $dd['date']=date(\"d-m-Y\",strtotime($findride[0]->departure_date));\n $dd['time']=date(\"H:i:s\",strtotime($findride[0]->departure_date));\n $dd['source']=$findride[0]->departureOriginal;\n $dd['destination']=$findride[0]->arrivalOriginal;\n $dd['seat']=$seat;\n if($findride[0]->isDaily==0)\n {\n $dd['amount']=$totalCost;\n }\n }\n if(count($bookedPersonDetail)>0)\n {\n $dd['bookedname']=$bookedPersonDetail[0]->username;\n $dd['bookedemail']=$bookedPersonDetail[0]->email;\n }\n if(isset($dd['email']))\n {\n if($dd['email']!=\"\")\n {\n $this->send_ride_email($dd['email'],$dd);\n //send sms\n if($offerPersonDetail[0]->phone_no!=\"\" && $offerPersonDetail[0]->phone_no>0)\n {\n $offermsg='Your offer is been booked by '.$dd['bookedname'].'. Source :'.$dd['source'].'. Destination :'.$dd['destination'].'. Passenger email :'.$dd['bookedemail'].', Seats book :'.$dd['seat'];\n if(isset($dd['amount']))\n {\n $offermsg.=' , Amount earn: '.$dd['amount'].' Rs , ';\n }\n $offermsg.='Time :'.$dd['time'].' , Date :'.$dd['date'];\n \n $ph=$offerPersonDetail[0]->phone_no;\n \\Queue::push(function($job) use($ph,$offermsg){\n HelperController::send_offer_sms($ph,$offermsg);\n $job->delete();\n }); \n }\n }\n }\n if(isset($dd['bookedemail']))\n {\n if($dd['bookedemail']!=\"\")\n {\n $this->send_book_ride_email($dd['bookedemail'],$dd);\n if($bookedPersonDetail[0]->phone_no!=\"\" && $bookedPersonDetail[0]->phone_no>0)\n {\n $bookedmsg='Your ride has been successfully booked.';\n $bookedmsg.=' Source :'.$dd['source'];\n $bookedmsg.=' . Destination :'.$dd['destination'];\n $bookedmsg.=' . Owner email :'.$dd['email'];\n $bookedmsg.=' , Seats book :'.$dd['seat'];\n $bookedmsg.=' , Time :'.$dd['time'];\n $bookedmsg.=' , Date :'.$dd['date'];\n $ph=$bookedPersonDetail[0]->phone_no;\n \\Queue::push(function($job) use($ph,$bookedmsg){\n HelperController::send_offer_sms($ph,$bookedmsg);\n $job->delete();\n }); \n }\n }\n }\n //ends\n //send default sms to user who has book this ride same as email\n $msg='Dear '.$dd['bookedname'].' ,<br>Your ride has been successfully booked.below are the offer details.<br/>';\n $msg.='Source :'.$dd['source'].'<br>';\n $msg.='Destination :'.$dd['destination'].'<br>';\n $msg.='Owner email :'.$dd['email'].'<br>';\n $msg.='Seats book :'.$dd['seat'].'<br>';\n $msg.='Time :'.$dd['time'].'<br>';\n $msg.='Date :'.$dd['date'].'<br><br>';\n $msg.='Enjoy your ride<br><br>';\n $msg.='Thank you';\n \n DB::table('user_chat_messages')->insert(['fromUserId'=>$findride[0]->userId,\"toUserId\"=>session('userId'),\"message\"=>$msg,\"ip\"=>$this->ip]);\n\n $this->request->session()->flash('status', 'Your ride has been booked successfully');\n DB::commit();\n $response['message'] = \"success\";\n $response['status'] = true;\n $response['erromessage']= array();\n return response($response,200); \n }\n else\n {\n //error\n DB::rollBack();\n $response['data'] = array();\n $response['message'] = \"Please try again\";\n $response['erromessage']=array();\n $response['status'] = false;\n return response($response,400);\n }\n }\n else\n {\n //error\n DB::rollBack();\n $response['data'] = array();\n $response['message'] = \"Please try again\";\n $response['erromessage']=array();\n $response['status'] = false;\n return response($response,400);\n }\n }\n else\n {\n //don't have enough balance in your wallet to book this ride..\n $response['data'] = array();\n $response['message'] = \"you don't have enough balance in your wallet to book this ride.\";\n $response['erromessage']=array();\n $response['status'] = false;\n return response($response,400);\n }\n }\n else\n {\n //don't have enough balance in your wallet to book this ride..\n $response['data'] = array();\n $response['message'] = \"you don't have enough balance in your wallet to book this ride.\";\n $response['erromessage']=array();\n $response['status'] = false;\n return response($response,400);\n }\n }\n else\n {\n //seat is not available\n $response['data'] = array();\n $response['message'] = \"your requested seat is not available\";\n $response['erromessage']=array();\n $response['status'] = false;\n return response($response,400);\n }\n }\n else\n {\n //ride not found error\n $response['data'] = array();\n $response['message'] = \"Please try again\";\n $response['erromessage']=array();\n $response['status'] = false;\n return response($response,400);\n }\n }\n else\n {\n $response['data'] = array();\n $response['message'] = \"Please try again\";\n $response['erromessage']=array();\n $response['status'] = false;\n return response($response,400); \n }\n }\n catch(Exception $e) \n {\n //return redirect()->back()->withErrors(['error'=>true])->withInput();\n \\Log::error('bookRide function error: ' . $e->getMessage());\n $response['data'] = array();\n $response['message'] = \"Please try again\";\n $response['erromessage']=array();\n $response['status'] = false;\n return response($response,400);\n //return Response::json(array('error'=>true), 400);\n }\n }", "function addBusSeats(int $noOfSeats, $isUsable, $isPremium, String $busId, String $seatName)\n\t{\n\t\ttry {\n\t\t\tfor ($i = 1; $i <= $noOfSeats; $i++) {\n\n\t\t\t\t$sql = \"INSERT INTO bus_seat(isUsable,isPremium,busId, seatName) VALUES($isUsable, $isPremium,'$busId','$seatName$i')\";\n\t\t\t\tif (!$this->conn->query($sql)) {\n\t\t\t\t\tthrow new Exception($this->conn->error);\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t} catch (Exception $e) {\n\t\t\treturn $e->getMessage();\n\t\t}\n\t}", "public function run()\n {\n DB::table('bookings')->insert([\n [\n 'date' => '2020-01-10 00:00:00',\n 'timeslot' => '10:00',\n 'name_of_guest' => 'Norman Pedersen',\n 'phone_no' => '12345678',\n 'email' => '[email protected]',\n 'no_of_guests' => rand(1,25),\n 'interval_id' => rand(1,3),\n 'location_id' => rand(1,2),\n 'business_id' => rand(1,2),\n 'service_id' => rand(1,3),\n ],\n [\n 'date' => '2020-01-12 00:00:00',\n 'timeslot' => '15:00',\n 'name_of_guest' => 'Fie laursen',\n 'phone_no' => '12345678',\n 'email' => '[email protected]',\n 'no_of_guests' => rand(1,25),\n 'interval_id' => rand(1,3),\n 'location_id' => rand(1,2),\n 'business_id' => rand(1,2),\n 'service_id' => rand(1,3),\n ],\n [\n 'date' => '2020-01-09 00:00:00',\n 'timeslot' => '18:00',\n 'name_of_guest' => 'Henrik Mogensen',\n 'phone_no' => '12345678',\n 'email' => '[email protected]',\n 'no_of_guests' => rand(1,25),\n 'interval_id' => rand(1,3),\n 'location_id' => rand(1,2),\n 'business_id' => rand(1,2),\n 'service_id' => rand(1,3),\n ],\n [\n 'date' => '2020-01-09 00:00:00',\n 'timeslot' => '13:00',\n 'name_of_guest' => 'Niels Christiansen',\n 'phone_no' => '12345678',\n 'email' => '[email protected]',\n 'no_of_guests' => rand(1,25),\n 'interval_id' => rand(1,3),\n 'location_id' => rand(1,2),\n 'business_id' => rand(1,2),\n 'service_id' => rand(1,3),\n ],\n [\n 'date' => '2020-01-06 00:00:00',\n 'timeslot' => '16:00',\n 'name_of_guest' => 'Julie petersen',\n 'phone_no' => '12345678',\n 'email' => '[email protected]',\n 'no_of_guests' => rand(1,25),\n 'interval_id' => rand(1,3),\n 'location_id' => rand(1,2),\n 'business_id' => rand(1,2),\n 'service_id' => rand(1,3),\n ],\n [\n 'date' => '2020-01-04 00:00:00',\n 'timeslot' => '17:00',\n 'name_of_guest' => 'Frederikke Mortensen',\n 'phone_no' => '12345678',\n 'email' => '[email protected]',\n 'no_of_guests' => rand(1,25),\n 'interval_id' => rand(1,3),\n 'location_id' => rand(1,2),\n 'business_id' => rand(1,2),\n 'service_id' => rand(1,3),\n ],\n [\n 'date' => '2020-01-08 00:00:00',\n 'timeslot' => '14:00',\n 'name_of_guest' => 'Line Mikkelsen',\n 'phone_no' => '12345678',\n 'email' => '[email protected]',\n 'no_of_guests' => rand(1,25),\n 'interval_id' => rand(1,3),\n 'location_id' => rand(1,2),\n 'business_id' => rand(1,2),\n 'service_id' => rand(1,3),\n ],\n [\n 'date' => '2020-01-08 00:00:00',\n 'timeslot' => '11:00',\n 'name_of_guest' => 'Test McTest',\n 'phone_no' => '12345678',\n 'email' => '[email protected]',\n 'no_of_guests' => rand(1,25),\n 'interval_id' => rand(1,3),\n 'location_id' => rand(1,2),\n 'business_id' => rand(1,2),\n 'service_id' => rand(1,3),\n ],\n [\n 'date' => '2020-01-07 00:00:00',\n 'timeslot' => '10:00',\n 'name_of_guest' => 'Åge Larsen',\n 'phone_no' => '12345678',\n 'email' => '[email protected]',\n 'no_of_guests' => rand(1,25),\n 'interval_id' => rand(1,3),\n 'location_id' => rand(1,2),\n 'business_id' => rand(1,2),\n 'service_id' => rand(1,3),\n ],\n [\n 'date' => '2020-01-11 00:00:00',\n 'timeslot' => '12:00',\n 'name_of_guest' => 'Børge',\n 'phone_no' => '12345678',\n 'email' => '[email protected]',\n 'no_of_guests' => rand(1,25),\n 'interval_id' => rand(1,3),\n 'location_id' => rand(1,2),\n 'business_id' => rand(1,2),\n 'service_id' => rand(1,3),\n ],\n\n [\n 'date' => '2020-01-14 00:00:00',\n 'timeslot' => '10:00',\n 'name_of_guest' => 'Norman Pedersen',\n 'phone_no' => '12345678',\n 'email' => '[email protected]',\n 'no_of_guests' => rand(1,25),\n 'interval_id' => rand(1,3),\n 'location_id' => rand(1,2),\n 'business_id' => rand(1,2),\n 'service_id' => rand(1,3),\n ],\n [\n 'date' => '2020-01-19 00:00:00',\n 'timeslot' => '15:00',\n 'name_of_guest' => 'Fie laursen',\n 'phone_no' => '12345678',\n 'email' => '[email protected]',\n 'no_of_guests' => rand(1,25),\n 'interval_id' => rand(1,3),\n 'location_id' => rand(1,2),\n 'business_id' => rand(1,2),\n 'service_id' => rand(1,3),\n ],\n [\n 'date' => '2020-01-17 00:00:00',\n 'timeslot' => '18:00',\n 'name_of_guest' => 'Henrik Mogensen',\n 'phone_no' => '12345678',\n 'email' => '[email protected]',\n 'no_of_guests' => rand(1,25),\n 'interval_id' => rand(1,3),\n 'location_id' => rand(1,2),\n 'business_id' => rand(1,2),\n 'service_id' => rand(1,3),\n ],\n [\n 'date' => '2020-01-18 00:00:00',\n 'timeslot' => '13:00',\n 'name_of_guest' => 'Niels Christiansen',\n 'phone_no' => '12345678',\n 'email' => '[email protected]',\n 'no_of_guests' => rand(1,25),\n 'interval_id' => rand(1,3),\n 'location_id' => rand(1,2),\n 'business_id' => rand(1,2),\n 'service_id' => rand(1,3),\n ],\n [\n 'date' => '2020-01-16 00:00:00',\n 'timeslot' => '16:00',\n 'name_of_guest' => 'Julie petersen',\n 'phone_no' => '12345678',\n 'email' => '[email protected]',\n 'no_of_guests' => rand(1,25),\n 'interval_id' => rand(1,3),\n 'location_id' => rand(1,2),\n 'business_id' => rand(1,2),\n 'service_id' => rand(1,3),\n ],\n [\n 'date' => '2020-01-13 00:00:00',\n 'timeslot' => '17:00',\n 'name_of_guest' => 'Frederikke Mortensen',\n 'phone_no' => '12345678',\n 'email' => '[email protected]',\n 'no_of_guests' => rand(1,25),\n 'interval_id' => rand(1,3),\n 'location_id' => rand(1,2),\n 'business_id' => rand(1,2),\n 'service_id' => rand(1,3),\n ],\n [\n 'date' => '2020-01-15 00:00:00',\n 'timeslot' => '14:00',\n 'name_of_guest' => 'Line Mikkelsen',\n 'phone_no' => '12345678',\n 'email' => '[email protected]',\n 'no_of_guests' => rand(1,25),\n 'interval_id' => rand(1,3),\n 'location_id' => rand(1,2),\n 'business_id' => rand(1,2),\n 'service_id' => rand(1,3),\n ],\n [\n 'date' => '2020-01-15 00:00:00',\n 'timeslot' => '11:00',\n 'name_of_guest' => 'Test McTest',\n 'phone_no' => '12345678',\n 'email' => '[email protected]',\n 'no_of_guests' => rand(1,25),\n 'interval_id' => rand(1,3),\n 'location_id' => rand(1,2),\n 'business_id' => rand(1,2),\n 'service_id' => rand(1,3),\n ],\n [\n 'date' => '2020-01-14 00:00:00',\n 'timeslot' => '10:00',\n 'name_of_guest' => 'Åge Larsen',\n 'phone_no' => '12345678',\n 'email' => '[email protected]',\n 'no_of_guests' => rand(1,25),\n 'interval_id' => rand(1,3),\n 'location_id' => rand(1,2),\n 'business_id' => rand(1,2),\n 'service_id' => rand(1,3),\n ],\n [\n 'date' => '2020-01-18 00:00:00',\n 'timeslot' => '12:00',\n 'name_of_guest' => 'Børge',\n 'phone_no' => '12345678',\n 'email' => '[email protected]',\n 'no_of_guests' => rand(1,25),\n 'interval_id' => rand(1,3),\n 'location_id' => rand(1,2),\n 'business_id' => rand(1,2),\n 'service_id' => rand(1,3),\n ],\n\n\n [\n 'date' => '2020-01-20 00:00:00',\n 'timeslot' => '10:00',\n 'name_of_guest' => 'Norman Pedersen',\n 'phone_no' => '12345678',\n 'email' => '[email protected]',\n 'no_of_guests' => rand(1,25),\n 'interval_id' => rand(1,3),\n 'location_id' => rand(1,2),\n 'business_id' => rand(1,2),\n 'service_id' => rand(1,3),\n ],\n [\n 'date' => '2020-01-21 00:00:00',\n 'timeslot' => '15:00',\n 'name_of_guest' => 'Fie laursen',\n 'phone_no' => '12345678',\n 'email' => '[email protected]',\n 'no_of_guests' => rand(1,25),\n 'interval_id' => rand(1,3),\n 'location_id' => rand(1,2),\n 'business_id' => rand(1,2),\n 'service_id' => rand(1,3),\n ],\n [\n 'date' => '2020-01-22 00:00:00',\n 'timeslot' => '18:00',\n 'name_of_guest' => 'Henrik Mogensen',\n 'phone_no' => '12345678',\n 'email' => '[email protected]',\n 'no_of_guests' => rand(1,25),\n 'interval_id' => rand(1,3),\n 'location_id' => rand(1,2),\n 'business_id' => rand(1,2),\n 'service_id' => rand(1,3),\n ],\n [\n 'date' => '2020-01-23 00:00:00',\n 'timeslot' => '13:00',\n 'name_of_guest' => 'Niels Christiansen',\n 'phone_no' => '12345678',\n 'email' => '[email protected]',\n 'no_of_guests' => rand(1,25),\n 'interval_id' => rand(1,3),\n 'location_id' => rand(1,2),\n 'business_id' => rand(1,2),\n 'service_id' => rand(1,3),\n ],\n [\n 'date' => '2020-01-24 00:00:00',\n 'timeslot' => '16:00',\n 'name_of_guest' => 'Julie petersen',\n 'phone_no' => '12345678',\n 'email' => '[email protected]',\n 'no_of_guests' => rand(1,25),\n 'interval_id' => rand(1,3),\n 'location_id' => rand(1,2),\n 'business_id' => rand(1,2),\n 'service_id' => rand(1,3),\n ],\n [\n 'date' => '2020-01-25 00:00:00',\n 'timeslot' => '17:00',\n 'name_of_guest' => 'Frederikke Mortensen',\n 'phone_no' => '12345678',\n 'email' => '[email protected]',\n 'no_of_guests' => rand(1,25),\n 'interval_id' => rand(1,3),\n 'location_id' => rand(1,2),\n 'business_id' => rand(1,2),\n 'service_id' => rand(1,3),\n ],\n [\n 'date' => '2020-01-26 00:00:00',\n 'timeslot' => '14:00',\n 'name_of_guest' => 'Line Mikkelsen',\n 'phone_no' => '12345678',\n 'email' => '[email protected]',\n 'no_of_guests' => rand(1,25),\n 'interval_id' => rand(1,3),\n 'location_id' => rand(1,2),\n 'business_id' => rand(1,2),\n 'service_id' => rand(1,3),\n ],\n [\n 'date' => '2020-01-20 00:00:00',\n 'timeslot' => '11:00',\n 'name_of_guest' => 'Test McTest',\n 'phone_no' => '12345678',\n 'email' => '[email protected]',\n 'no_of_guests' => rand(1,25),\n 'interval_id' => rand(1,3),\n 'location_id' => rand(1,2),\n 'business_id' => rand(1,2),\n 'service_id' => rand(1,3),\n ],\n [\n 'date' => '2020-01-21 00:00:00',\n 'timeslot' => '10:00',\n 'name_of_guest' => 'Åge Larsen',\n 'phone_no' => '12345678',\n 'email' => '[email protected]',\n 'no_of_guests' => rand(1,25),\n 'interval_id' => rand(1,3),\n 'location_id' => rand(1,2),\n 'business_id' => rand(1,2),\n 'service_id' => rand(1,3),\n ],\n [\n 'date' => '2020-01-22 00:00:00',\n 'timeslot' => '12:00',\n 'name_of_guest' => 'Børge',\n 'phone_no' => '12345678',\n 'email' => '[email protected]',\n 'no_of_guests' => rand(1,25),\n 'interval_id' => rand(1,3),\n 'location_id' => rand(1,2),\n 'business_id' => rand(1,2),\n 'service_id' => rand(1,3),\n ],\n ]);\n }", "public function addStarbar( $starbar, $request ) {\n\t\t$starbarUserMap = new Starbar_UserMap();\n\t\t$starbarUserMap->user_id = $this->user_id;\n\t\t$starbarUserMap->starbar_id = $starbar->id;\n\t\t$starbarUserMap->active = 1;\n\t\t$starbarUserMap->save();\n\t\t$insertStatus = $starbarUserMap->wasInserted();\n\t\tif($insertStatus)\n\t\t\tGame_Transaction::run($this->user_id, Economy::getIdforStarbar($starbar->id), 'STARBAR_OPT_IN');\n\n\t\t$this->starbar_id = $starbar->id;\n\t\t$this->visibility = \"open\";\n\t\t$this->save();\n\n\t\treturn $insertStatus;\n\t}", "public function noReservationsAvailableCase5($reservation)\n\t{\n\t\t$newDateFrom = new DateTime();\n\t\t$newDateFrom = DateTime::createFromFormat('Y-m-d',$this->_dateOverlapFromObj->format('Y-m-d'));\n\t\t$newDateFrom->add(new DateInterval('P1D'));\n\n\t\t\n\t\t\n\t\t$reservation = new Reservation();\n\t\t$reservation->setAttributes(array(\n\t\t\t\t'roomid' => 1,\n\t\t\t\t'datefrom' => $newDateFrom->format('Y-m-d'),\n\t\t\t\t'numberofnights'=> $this->_numberofnights + 1,\n\t\t\t\t));\n\t\t\n\t\t$this->assertFalse($reservation->save()); \n\t}", "public function addBooking($booking){\n \n }", "public function seatReservation(Request $request)\n {\n $seat_id = $request->seat_id;\n $user_id = $request->user_id;\n $passenger_id = $request->passenger_id;\n\n $seat = Seat::find($seat_id);\n\n //To obtain the open reservation of the user\n $reservation = Reservation::where([\n ['user_id', $user_id],\n ['closed', false],\n ])->first();\n\n\n if($seat->status == 0){\n\n $seat->status = 1;\n $seat->passenger_id = $passenger_id;\n $reservation->seats()->attach($seat_id,['closed' => false]);\n $seat->save();\n\n $current_balance = floatval(preg_replace('/[^\\d\\.]/', '', $reservation->current_balance));\n $seat_price = floatval(preg_replace('/[^\\d\\.]/', '', $seat->price));\n $current_balance += $seat_price;\n $reservation->current_balance = money_format('%i',$current_balance);\n $reservation->save();\n\n return \"The seat was reserved successfully\";\n }\n else{\n return \"the seat is no longer available\";\n }\n }", "static function addReview($bookingId, $hotelId, $rating, $comment)\n {\n $db = DB::getConnection();\n try {\n $st = $db->prepare('INSERT INTO projekt_reviews(id_booking, id_user, name_user, id_hotel, name_hotel, rating, comment) VALUES (:id_booking, :id_user, :name_user, :id_hotel, :name_hotel, :rating, :comment)');\n $st->execute(array('id_booking' => $bookingId, 'id_user' => $_SESSION['user']->getId(), 'name_user' => $_SESSION['user']->getName(), 'id_hotel' => $hotelId, 'name_hotel' => Hotel::find($hotelId)->getName(), 'rating' => $rating, 'comment' => $comment));\n } catch (PDOException $e) {\n exit(\"PDO error [insert projekt_users]: \" . $e->getMessage());\n }\n try {\n echo $rating;\n $st = $db->prepare('UPDATE projekt_hotels SET rating = (rating * number_of_comments + :rating)/(number_of_comments + 1), number_of_comments = number_of_comments + 1 WHERE id = :id_hotel');\n $st->execute(array('id_hotel' => $hotelId, 'rating' => $rating));\n } catch (PDOException $e) {\n exit(\"PDO error [UPDATE projekt_hotels]: \" . $e->getMessage());\n }\n }", "public function run()\n {\n $faker = Faker::create();\n\n for ($i = 1; $i <= 10; $i++) { \n DB::table('bookings')->insert([\n 'room_id' => $faker->randomDigitNotNull,\n 'date_start' => $faker->date($format = 'Y-m-d', $max = 'now'),\n 'date_end' => $faker->date($format = 'Y-m-d', $max = 'now'),\n 'customer_id' => $i,\n 'created_at' => '2019-06-23 12:00:00'\n ]);\n }\n }", "public function addSlots( $value){\n return $this->_add(5, $value);\n }", "public function store(Request $request)\n {\n //Gets number of seats\n $seats = $request->roomsize;\n\n //generate seats in the room\n for($i = 1; $i <= $seats; $i++ ){\n Seats::create([\n 'seat_nr' => $i,\n 'occupied' => rand(0, 1),\n ])->save();\n }\n //Show success and return room \n return redirect('/');\n\n }", "public function run()\n {\n $equipment = Equipment::find(1);\n $equipClass = $equipment->EquipmentClassList()->first();\n\n for($i = 0; $i < 10; $i++){\n\n $downAt = date(\"H:i\", strtotime(rand(7, 13).\":00\"));\n $upAt = Carbon::parse($downAt)->addMinute(rand(100,300))->format(\"H:i\");\n\n $time_diff = date_diff( date_create($downAt), date_create($upAt) );\n $downTime = round(($time_diff->h * 60 + $time_diff->i) / 60, 2) ;\n $parkTime = 12 - $downTime;\n\n if( date('H', strtotime($downAt)) >= 7 && date('H', strtotime($downAt)) < 9 )\n $start_of_shift = \"DM\";\n else\n $start_of_shift = \"AV\";\n\n $date = Carbon::now()->sub( (10-$i), 'day')->format('Y-m-d');\n\n DB::table('equip_update_logs')->insert([\n 'date' => $date,\n 'shift' => 'Day',\n 'smu' => '123456789',\n 'unit' => $equipment->unit,\n 'equipment_class' => $equipClass->billing_rate.' '.$equipClass->equipment_class_name,\n 'summary' => $equipClass->billing_rate,\n 'parked_hrs' => $parkTime,\n 'down_hrs' => $downTime,\n 'down_at' => $downAt,\n 'up_at' => $upAt,\n 'start_of_shift_status' => $start_of_shift,\n 'current_status' => 'AV',\n 'equipment_id' => $equipment->id,\n 'user_id' => 1,\n 'created_at' => Carbon::parse($date)\n ]);\n\n $i++;\n\n $date = Carbon::now()->sub( (10-$i), 'day')->format('Y-m-d');\n DB::table('equip_update_logs')->insert([\n 'date' => $date,\n 'shift' => 'Day',\n 'smu' => '1234567',\n 'unit' => $equipment->unit,\n 'equipment_class' => $equipClass->billing_rate.' '.$equipClass->equipment_class_name,\n 'summary' => $equipClass->billing_rate,\n 'down_at' => $downAt,\n 'start_of_shift_status' => \"DM\",\n 'current_status' => 'DM',\n 'equipment_id' => $equipment->id,\n 'user_id' => 1,\n 'created_at' => Carbon::parse($date),\n 'est_date_of_repair' => $date = Carbon::now()->add( ($i+3), 'day')->format('Y-m-d')\n ]);\n\n }\n }", "public static function generateBalances()\n {\n foreach(Workshop::all() as $workshop)\n {\n $balance = 0;\n foreach ($workshop->users as $member) {\n if ($member->isActive() && !$member->hasToPayKKTNetreg())\n {\n $balance += config('custom.kkt') *\n ($member->isResident() ? config('custom.workshop_balance_resident') : config('custom.workshop_balance_extern') ) /\n $member->workshops->count();\n }\n }\n self::updateOrInsert(\n ['semester_id' => Semester::current()->id, 'workshop_id' => $workshop->id],\n ['allocated_balance' => $balance]\n );\n }\n }", "public function actionBooking() {\n $model = new Reservation();\n $check_in_date = Yii::$app->request->post('check_in');\n $check_out_date = Yii::$app->request->post('check_out');\n $rate_plan = Yii::$app->request->post('rate_plan_id');\n $total_amount = Yii::$app->request->post('total_amount');\n\n return $this->render('create', [\n 'check_in_date'=>$check_in_date,\n 'check_out_date'=>$check_out_date,\n 'rate_plan'=>$rate_plan,\n 'total_amount'=>$total_amount,\n 'model'=>$model,\n ]);\n\n }", "function add_update_booking_items(){\t\n \t\t$house=$this->input->post('house2');\n\t\t$panjang=$this->input->post('panjang');\n\t\t$lebar=$this->input->post('lebar');\n\t\t$tinggi=$this->input->post('tinggi');\n\t\t$volume=$panjang*$lebar*$tinggi;\n\t\t\n\t\t$items=array(\n\t\t'HouseNo' =>$house,\n\t\t'NoPack'=>$this->input->post('pack'),\n\t\t'Length'=>$this->input->post('panjang'),\n\t\t'Width'=>$this->input->post('lebar'),\n\t\t'Height'=>$this->input->post('tinggi'),\n\t\t'Volume'=>$volume,\n\t\t'Date'=>date('Y-m-d H:i:s')\n\t\t);\t\t\n\t\t $this->model_app->insert('booking_items',$items);\n\t\t \n\tredirect('transaction/edit_outgoing_house/'.$house);\n }", "public function add_review_rating(Request $request){\n $data = $request->all();\n\n return BookReview::create($data);\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 run()\n {\n \t$ratings = App\\Rating::select('user_id')->distinct()->get();\n foreach ($ratings as $rating) {\n\t\t\t\t // echo $rating->user_id;\n\t\t\t\t DB::table('users')->insert([\n\t\t\t 'id' => $rating->user_id,\n\t\t\t 'name' => 'mluser'.$rating->user_id\n\t\t\t // 'ratings' => $ratings,\n\t\t\t // 'created_at' => $time\n\t\t\t ]);\n\t\t\t\t}\n }", "public function run()\n {\n //\n $date_format = 'Y-m-d H:i:s';\n for ($i = 0; $i < 5; $i++) {\n DB::table('rooms')->insert([\n 'room_name' => Lorem::word(),\n 'room_capacity' => 10 + ($i * 5),\n 'created_at' => date($date_format),\n 'updated_at' => date($date_format)\n ]);\n }\n }", "function CreateTravelRate() {\r\n $conn = conn();\r\n $sql = \"INSERT INTO `travelrates`(`TravelCode`, `TravelAmount`, `Modified`, `ModifiedBy`) \r\n VALUES ('$this->TravCode','$this->TravRate',NOW(),'$this->ModifiedBy')\";\r\n if ($conn->exec($sql)) {\r\n return 1;\r\n } else {\r\n return 0;\r\n }\r\n $conn = NULL;\r\n }", "public function run()\n {\n DB::table('bays')->insert([\n 'bay_code' => Str::random(5),\n 'status' => 'occupied'\n ]);\n\n DB::table('bays')->insert([\n 'bay_code' => Str::random(5),\n 'status' => 'available'\n ]);\n\n DB::table('bays')->insert([\n 'bay_code' => Str::random(5),\n 'status' => 'available'\n ]);\n }", "public function run()\n {\n $booking_methods = [\n [ \n 'name' => 'Paypal',\n 'created_at' => now(),\n 'updated_at' => now()\n ],\n\n [\n 'name' => 'Credit Card',\n 'created_at' => now(),\n 'updated_at' => now()\n\n ],\n ];\n\n BookingMethod::insert($booking_methods);\n }", "public function run()\n {\n $faker = Faker\\Factory::create();\n for ($i = 20; $i <= 30; $i++) {\n \\DB::table('reservations')->insert([\n 'date' => $faker->date('Y-m-d'),\n 'address_id' => $i,\n 'paid' => $faker->numerify('#####'),\n 'created_at' => $faker->date('Y-m-d')\n ]);\n }\n }", "public function run()\n {\n $param = [\n 'user_id' => 2,\n 'shop_id' => 9,\n 'table_id' => 8,\n 'date_time' => '2021-07-30 20:00:00',\n 'number_of_people'=> 5,\n 'created_at' => '2021-07-29 20:00:00',\n 'updated_at' => '2021-07-29 20:00:00',\n\n ];\n DB::table('reservations')->insert($param);\n\n $param = [\n 'user_id' => 2,\n 'shop_id' => 9,\n 'table_id' => 9,\n 'date_time' => '2021-07-30 20:00:00',\n 'number_of_people'=> 6,\n 'created_at' => '2021-07-29 20:00:00',\n 'updated_at' => '2021-07-29 20:00:00',\n ];\n DB::table('reservations')->insert($param);\n }", "public function run()\n {\n\n $faker = Factory::create('pl_PL'); //pl_PL spowoduje ze dane bd polskie\n\n for($i =1; $i<=4; $i++)\n {\n DB::table('reservations')->insert([\n\n //w rental_day_in pojawia sie jakies daty 10 dni wstecz od teraz\n 'rental_day_in' => $faker->dateTimeBetween('-10 days', 'now'),\n 'rental_day_out' => $faker->dateTimeBetween('now', '+10 days'),\n 'status' => $faker->boolean(50),\n 'user_id' => $faker->numberBetween(2,10),\n 'city_id' => $faker->numberBetween(1,2),\n 'car_id' => $faker->numberBetween(1,10),\n\n ]);\n }\n }", "public function run()\n {\n for ($i = 1; $i <= 5; $i++) {\n DB::table('shops')->insert([\n 'owner_id' => $i,\n 'name' => \"店名$i\",\n 'information' => \"ここに店名{$i}の情報が入ります。ここに店名{$i}の情報が入ります。ここに店名{$i}の情報が入ります。ここに店名{$i}の情報が入ります。\",\n 'filename' => \"sample{$i}.jpg\",\n 'is_selling' => true,\n ]);\n }\n }", "function wpbs_insert_booking($data)\n{\n\n return wp_booking_system()->db['bookings']->insert($data);\n\n}", "public function run()\n {\n\n Schema::disableForeignKeyConstraints();\n \\DB::table('bookings')->truncate();\n Schema::enableForeignKeyConstraints();\n\n\n\n Schema::disableForeignKeyConstraints();\n $date = Carbon::now()->subDay();\n\n for($i = 0; $i < 365; $i++){\n $date = $date->addDay();\n Booking::create([\n \"reservation_date\" => $date\n ]);\n }\n\n Schema::enableForeignKeyConstraints();\n }", "public static function generateBalances()\n {\n foreach(Workshop::all() as $workshop)\n {\n $balance = 0;\n foreach ($workshop->users as $member) {\n if ($member->isActive() && !$member->hasToPayKKTNetreg())\n {\n $balance += config('custom.kkt') *\n ($member->isResident() ? config('custom.workshop_balance_resident') : config('custom.workshop_balance_extern') ) /\n $member->workshops->count();\n }\n }\n DB::table('workshop_balances')\n ->updateOrInsert(\n ['semester_id' => Semester::current()->id, 'workshop_id' => $workshop->id],\n ['allocated_balance' => $balance]\n );\n }\n }", "public function run()\n {\n DB::table('billings')->insert([\n 'bil_id' => (string) Uuid::generate(4),\n 'desc' => 'asdasda',\n 'booking_id_foreign' => 'asdasdasd'\n ]);\n\n // INSERT into billings (\n // billings.desc,\n // bil_amt,\n // booking_id_foreign\n // )\n \n // SELECT \n // 'MONTHLY RENT',\n // long_term_rent,\n // booking_id\n // FROM bookings INNER JOIN rooms\n // ON bookings.room_id_foreign=rooms.room_id\n // where bookings.booking_status = 'ACTIVE' and booking_term = 'LONG TERM'\n }", "public function bookings(Request $request) \n {\n $bookings = [];\n\t $slots = slots($request->input('start_time'), $request->input('end_time'));\n\n\t for($x = 0; $x < count($slots); $x++)\n {\n\t\t array_push($bookings, [\"lab_id\" => $request->input('lab_id'),\n\t\t\t \t\t \"date\" => $request->input('date'),\n\t\t\t \t\t \"start_time\" => substr($slots[$x],0,5),\n\t\t\t\t\t \"end_time\" => substr($slots[$x],6,5),\n\t\t\t \t\t \"purpose\" => $request->input('purpose'),\n\t\t\t\t\t\t\t\t\t\t\"module\" => $request->input('module')\n\t\t\t\t\t\t\t\t\t]\n\t\t\t);\n\n \n }\n return $bookings;\n }", "function bidsAction()\r\n {\r\n $db = $this->zmax_context->db;\r\n $this->view->setFile(\"content\", \"bids.xml\");\r\n $this->view->set_block(\"content\", \"PAPER\", \"PAPERS\");\r\n $this->view->set_block(\"PAPER\", \"SECTION\", \"SECTIONS\");\r\n $this->view->set_block(\"content\", \"GROUPS_LINKS\", \"LINKS\");\r\n $this->view->set_var(\"size_rating\", Config::SIZE_RATING);\r\n\r\n // Initialize the current interval\r\n if (!isSet($_REQUEST['iMin'])) {\r\n $iMinCur = 1; $iMaxCur = Config::SIZE_RATING;\r\n }\r\n else {\r\n $iMinCur = $_REQUEST['iMin']; $iMaxCur = $_REQUEST['iMax'];\r\n }\r\n\r\n $this->view->set_var(\"IMIN_CUR\", $iMinCur);\r\n $this->view->set_var(\"IMAX_CUR\", $iMaxCur);\r\n\r\n // If rates have been submitted: insert/update in the DB\r\n if (isSet($_POST['rates'])) {\r\n foreach ($_POST['rates'] as $idPaper => $rate) {\r\n if ($rate != Config::UNKNOWN_RATING) {\r\n $this->user->addBid ($idPaper, $rate);\r\n }\r\n $this->view->message = $this->texts->reviewer->ack_rating;\r\n }\r\n }\r\n else {\r\n // Print the main message\r\n $this->view->message = $this->texts->reviewer->rating_message;\r\n }\r\n $this->view->assign (\"bids_message\", \"message\");\r\n \r\n // Get the list of ratings\r\n $rateLabels = $db->fetchPairs (\"SELECT * FROM RateLabel\");\r\n $rateLabels = array_merge (array(Config::UNKNOWN_RATING => \"?\"), $rateLabels);\r\n\r\n $form = new Formulaire ( \"POST\", \"RatePapers.php\");\r\n\r\n /* Select the papers */\r\n $paperTbl = new Paper();\r\n $papers = $paperTbl->fetchAll(\"1=1\", \"id\");\r\n\r\n $i = 0;\r\n foreach ($papers as $paper) {\r\n // Choose the CSS class\r\n $this->view->css_class = Config::CssClass($i++);\r\n\r\n // Only show the current group\r\n if ($iMinCur <= $i and $i <= $iMaxCur) {\r\n // Instantiate paper variables\r\n $paper->putInView($this->view);\r\n\r\n // Get the current bid\r\n $bid = $paper->getBid($this->user->id);\r\n \r\n // Show the selection list\r\n $this->view->list_bids = Zmax_View_Phplib::selectField (\"rates[$paper->id]\", $rateLabels,\r\n $bid);\r\n\r\n /* Instantiate the entities in PAPER_. Put the result in PAPERS */\r\n $this->view->append(\"PAPERS\", \"PAPER\");\r\n }\r\n if ($i > $iMaxCur) break;\r\n }\r\n\r\n // Create the groups\r\n $nbPapers = Config::countAllPapers();\r\n $nb_groups = $nbPapers / Config::SIZE_RATING + 1;\r\n for ($i=1; $i <= $nb_groups; $i++) {\r\n $iMin = (($i-1) * Config::SIZE_RATING) + 1;\r\n if ($iMin >= $iMinCur and $iMin <= $iMaxCur) {\r\n $link = \"<font color=red>$i</font>\";\r\n }\r\n else {\r\n $link =$i;\r\n }\r\n $this->view->LINK = $link;\r\n\r\n $this->view->IMIN_VALUE = $iMin;\r\n $this->view->IMAX_VALUE = $iMin + Config::SIZE_RATING -1;\r\n $this->view->append(\"LINKS\", \"GROUPS_LINKS\");\r\n }\r\n\r\n echo $this->view->render(\"layout\");\r\n }", "public function viewreatingprogressber($productId){\n\t\t$count5star=0;\n\t\t$count4star=0;\n\t\t$count3star=0;\n\t\t$count2star=0;\n\t\t$count1star=0;\n\t\t$this->db->where('ProductId', $productId);\n\t\t$this->db->select('Rate');\n\t\t$this->db->from('tbl_review');\n\t\t$query=$this->db->get();\n\t\t$row=$query->result();\n\t\tforeach ($query->result() as $key) {\n\t\t\tswitch ($key->Rate) {\n\t\t\t\tcase '5':\n\t\t\t\t$count5star++;\n\t\t\t\tbreak;\n\t\t\t\tcase '4':\n\t\t\t\t$count4star++;\n\t\t\t\tbreak;\n\t\t\t\tcase '3':\n\t\t\t\t$count3star++;\n\t\t\t\tbreak;\n\t\t\t\tcase '2':\n\t\t\t\t$count2star++;\n\t\t\t\tbreak;\n\t\t\t\tcase '1':\n\t\t\t\t$count1star++;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t$totalstar=$count5star+$count4star+$count3star+$count2star+$count1star;\n\t\tif($totalstar!=0){\n\t\t\techo \"<h5>READER'S RATINGS</h5></br>\";\n\t\t\t$stardatawidth5=(($count5star/$totalstar)*100);\n\t\t\tif($count5star==0)\n\t\t\t{\n\t\t\t\techo \"<div id='myBar' class='five-star'>\".$count5star.\" &#9734;&#9734;&#9734;&#9734;&#9734;</div>\";\n\t\t\t}\n\t\t\tif($count5star>0)\n\t\t\t{\n\t\t\t\techo \"<div id='myBar' class='four-star' style='width:\".round($stardatawidth5).\"%'>\".$count5star.\" &#9734;&#9734;&#9734;&#9734;&#9734;</div>\";\n\t\t\t}\n\t\t\tif($count4star==0)\n\t\t\t{\n\t\t\t\techo \"<div id='myBar' class='five-star'>\".$count4star.\" &#9734;&#9734;&#9734;&#9734;</div>\";\n\t\t\t}\n\t\t\tif ($count4star>0) {\n\t\t\t\t$stardatawidth4=(($count4star/$totalstar)*100);\n\t\t\t\techo \"<div id='myBar' class='four-star' style='width:\".round($stardatawidth4).\"%'>\".$count4star.\" &#9734;&#9734;&#9734;&#9734;;</div>\";\n\t\t\t}\n\n\t\t\tif($count3star==0)\n\t\t\t{\n\t\t\t\techo \"<div id='myBar' class='three-star'>\".$count3star.\" &#9734;&#9734;&#9734;</div>\";\n\t\t\t}\n\t\t\tif($count3star>0)\n\t\t\t{\n\t\t\t\t$stardatawidth3=(($count3star/$totalstar)*100);\n\t\t\t\techo \"<div id='myBar' class='three-star' style='width:\".round($stardatawidth3).\"%'>\".$count3star.\" &#9734;&#9734;&#9734;;</div>\";\n\t\t\t}\n\t\t\tif($count2star==0)\n\t\t\t{\n\t\t\t\techo \"<div id='myBar' class='two-star'>\".$count2star.\" &#9734;&#9734;</div>\";\n\t\t\t}\n\t\t\tif($count2star>0)\n\t\t\t{\n\t\t\t\t$stardatawidth2=(($count2star/$totalstar)*100);\n\t\t\t\techo \"<div id='myBar' class='two-star' style='width:\".round($stardatawidth2).\"%'>\".$count2star.\" &#9734;&#9734;</div>\";\n\t\t\t}\n\t\t\tif($count1star==0)\n\t\t\t{\n\t\t\t\techo \"<div id='myBar' class='one-star'>\".$count1star.\" &#9734;</div>\";\n\t\t\t}\n\t\t\tif($count1star>00)\n\t\t\t{\n\t\t\t\t$stardatawidth1=(($count1star/$totalstar)*100);\n\t\t\t\techo \"<div id='myBar' class='one-star' style='width:\".round($stardatawidth1).\"%'>\".$count1star.\" &#9734;</div>\";\n\t\t\t}\n\t\t}\n\t}", "public function store(Request $request)\n {\n $validasi = $request->validate([\n 'cat' => 'required',\n 'in' => 'required|date_format:d-m-Y',\n 'out' => 'required|date_format:d-m-Y'\n ]);\n\n $datetime1 = new DateTime($request->in);\n $datetime2 = new DateTime($request->out);\n $interval = $datetime1->diff($datetime2)->d;\n if ($interval != 10) {\n return back()->with('status_error_custom', 'Minimum/Maximum 10 days in Onawa')->withInput();\n }\n DB::beginTransaction();\n try {\n Boarding::create([\n 'inputter_id' => Auth::user()->id,\n 'owner_id' => $request->owner,\n 'cat_id' => $request->cat,\n 'freegrooming_used' => 'n',\n 'in' => date('Y-m-d',strtotime($request->in)),\n 'out' => date('Y-m-d',strtotime($request->out)),\n ]);\n \n $totalFreeGrooming = FreeGrooming::where('owner_id', $request->owner)->first()->total;\n $updatedTotal = $totalFreeGrooming + floor($interval / 10);\n FreeGrooming::where('owner_id', $request->owner)->update(['total' => $updatedTotal]);\n DB::commit();\n return redirect(route('grooming.addBycat', ['cat' => $request->cat]))->with('status_success', 'Success Add Boarding, Bonus ' . floor($interval / 10) . ' Free Grooming ( ' . $updatedTotal . ' )');\n } catch (\\Exception $e) {\n DB::rollback();\n // dd($e);\n return back()->with('status_error_custom', 'Failed Add Boarding')->withInput();\n }\n }", "public function savePerHotel()\n {\n $seats_not_released = ($_POST['total_seats'] - $_POST['total_released_seats']);\n\n $data = array(\n 'total_seats_booked' => $_POST['total_seats_booked'],\n 'total_seats_remaining' => $_POST['total_seats_remaining'],\n 'release_seats_in_percent' => $_POST['release_seats_in_percent'],\n 'seats_available_after_release' => $_POST['total_released_seats'],\n 'seats_not_released' => $seats_not_released\n );\n\n $save = $this->db->where('hostel_id', $_POST['hostel_id'])->update(tablename('seats_available'), $data);\n\n\n // save release bed nos\n $bed_nos = $this->Seatmodel->get_result_data('hostel_rooms_seats',array('hostel_id'=> $_POST['hostel_id'],'is_active'=>'1','block'=>'0'));\n\n //echo \"<pre>\"; print_r($bed_nos); die;\n\n $save_bed_no = 0;\n\n \n if(!empty($bed_nos)){\n foreach ($bed_nos as $value) {\n \n $exp_beds = explode(', ', $value->beds_nos);\n if($_POST['total_seats_remaining']!=$_POST['total_released_seats']){\n \n if($value->no_of_seats < $_POST['total_released_seats']){ // less \n if($save_bed_no==0){\n $save_bed_no += $value->no_of_seats; \n $this->db->where('id', $value->id)->update(tablename('hostel_rooms_seats'), array('release_beds_nos'=>$value->beds_nos)); \n }else{\n\n $get_beds = array();\n $rest_bed = $_POST['total_released_seats'] - $save_bed_no;\n if($rest_bed <= $value->no_of_seats){\n for ($i=0; $i < $rest_bed; $i++) { \n array_push($get_beds, $exp_beds[$i]);\n }\n $save_bed_no += count($get_beds); \n $this->db->where('id', $value->id)->update(tablename('hostel_rooms_seats'), array('release_beds_nos'=>implode(\", \", $get_beds)));\n break;\n }else{\n for ($i=0; $i < $value->no_of_seats; $i++) { \n array_push($get_beds, $exp_beds[$i]);\n }\n $save_bed_no += count($get_beds); \n $this->db->where('id', $value->id)->update(tablename('hostel_rooms_seats'), array('release_beds_nos'=>implode(\", \", $get_beds)));\n }\n\n\n\n\n }\n\n } else if($value->no_of_seats >= $_POST['total_released_seats']){ // greater\n \n $this->db->where('hostel_id', $_POST['hostel_id'])->update(tablename('hostel_rooms_seats'), array('release_beds_nos'=>'')); \n\n $get_beds = array();\n for ($i=0; $i < $_POST['total_released_seats']; $i++) { \n array_push($get_beds, $exp_beds[$i]);\n }\n $save_bed_no += count($get_beds); \n //echo \"<pre>\"; print_r($get_beds); die;\n $this->db->where('id', $value->id)->update(tablename('hostel_rooms_seats'), array('release_beds_nos'=>implode(\", \", $get_beds))); \n break;\n } \n\n\n }else{\n $this->db->where('id', $value->id)->update(tablename('hostel_rooms_seats'), array('release_beds_nos'=>$value->beds_nos)); \n } \n }\n }\n \n echo $save; exit();\n }", "public function AddReservation($Room_id,$cust_id,$B_date,$E_date)\n{\n$DB=new DBManager();\n\n$DBegin=date_create($B_date);\n$DEnd=date_create($E_date);\n\n$diff=date_diff($DBegin,$DEnd);\n$interval = $DBegin->diff($DEnd);\n$intervalDays=$interval->days;\n\n\n$sql1=\"INSERT INTO reservation(cust_id,dateBegin,DateEnd,Room_id,period) VALUES ('$cust_id','$B_date','$E_date','$Room_id','$intervalDays')\";\n$resSel=$DB->AddDB($sql1);\n\n$sql2=\"UPDATE room SET status=1 WHERE id='$Room_id'\";\n$resUP=$DB->updateDB($sql2);\n\nif($resUP == \"Updated\")\n{\n return \" ***** Congratulations , You Reserved Room Successfully ***** \";\n}\nelse return \"problem\";\n\n}", "function addRating($param, $sqlConnection)\r\n{ \r\n\t$uid = intval($param['userID']);\r\n\t$aid = intval($param['albumID']);\r\n\t$rating = floatval($param['rating']);\r\n\t$sqlSuccess = get_sql_results($result, $sqlConnection,\r\n\t\t\t\"INSERT INTO Rates (userID, albumID, rating) \".\r\n\t\t\t\"VALUES ($uid,$aid,$rating)\");\r\n\treturn $sqlSuccess;\r\n}", "public function starred(){\n $this->template->head = View::instance(\"v_index_head\");\n $this->template->content = View::instance('v_trips_starred');\n $this->template->title = \"Starred Trips\";\n\n $q = \"SELECT trips.trip_id AS trip_id,\n trips.created, trips.title, trips.description,\n trips.coverimg,\n users_trips.trip_id AS starred_id,\n users_trips.user_id,\n users.last_name,\n users.first_name\n FROM users_trips\n INNER JOIN trips\n ON trips.trip_id = users_trips.trip_id \n AND users_trips.user_id = \".$this->user->user_id.\n \" INNER JOIN users\n ON users_trips.user_id = users.user_id\n ORDER BY trips.created DESC\";\n $starred = DB::instance(DB_NAME)->select_rows($q);\n $this->template->content->starred = $starred;\n\n echo $this->template;\n }", "private function storeToDB() {\r\n\t\tDBQuery::getInstance() -> insert('INSERT INTO `CalculatedDailyNeeds`' . DBUtils2::buildMultipleInsertOnDuplikateKeyUpdate($this -> aArticleData));\r\n\t}", "public function run()\n {\n $data = [\n [\n 'from' => '0',\n 'to' => '99',\n 'bid' => '5'\n ],\n [\n 'from' => '100',\n 'to' => '499',\n 'bid' => '25'\n ],\n [\n 'from' => '500',\n 'to' => '999',\n 'bid' => '75'\n ],\n [\n 'from' => '1000',\n 'to' => '4999',\n 'bid' => '125'\n ],\n [\n 'from' => '5000',\n 'to' => '9999',\n 'bid' => '200'\n ],\n ];\n\n DB::table('bid_rangs')->insert($data);\n }", "private function saveRepeatYearly(){\n Loader::db()->Execute(\"INSERT INTO SchedulizerEventRepeat (eventID) VALUES(?)\", array(\n $this->eventObj->getEventID()\n ));\n }", "function insert_rate_teacher($user_id,$teacher_id,$rate_value)\r\n\t{\r\n\t\tmysql_query(\"INSERT INTO `lr`.`rating_table` (`rating_id`, `user_id`, `teacher_id`, `rate_value`) VALUES (NULL, '$user_id', '$teacher_id', '$rate_value') \");\r\n\t}", "public function run()\n {\n DB::table('bookshelves')->insert([\n 'user_id' => 1,\n 'longitude' => -3.9823859,\n 'latitude' => 51.6075778,\n 'pickup_times' => '[1,2,3]',\n 'delivery' => 2,\n ]);\n DB::table('bookshelves')->insert([\n 'user_id' => 2,\n 'longitude' => -3.8518577,\n 'latitude' => 51.7197665,\n 'pickup_times' => '[25,45,12,44,13,2,0,5]',\n 'delivery' => 1, \n ]);\n DB::table('bookshelves')->insert([\n 'user_id' => 3,\n 'longitude' => -4.8518577,\n 'latitude' => 58.7197665,\n 'delivery' => 1, \n ]);\n }", "function insertReservedSeats(mysqli $mysqli, $seatIds, $reservationId)\n{\n foreach ($seatIds as $seatId) {\n $reservedSeatQuery = \"INSERT INTO reserved_seats VALUES ($reservationId, $seatId);\";\n $result = $mysqli->query($reservedSeatQuery);\n }\n return $result;\n}", "public function run()\n {\n DB::table('reservations')->insert([\n 'fechaLlegada' => '10/03/2018',\n 'fechaSalida' => '20/03/2018',\n 'cantidad' => '100',\n 'user_id' => '2',\n 'id_flight' => '1'\n ]);\n\n DB::table('reservations')->insert([\n 'fechaLlegada' => '10/03/2018',\n 'fechaSalida' => '30/03/2018',\n 'cantidad' => '30',\n 'user_id' => '1',\n 'id_flight' => '2'\n ]);\n\n DB::table('reservations')->insert([\n 'fechaLlegada' => '05/02/2018',\n 'fechaSalida' => '20/02/2018',\n 'cantidad' => '55',\n 'user_id' => '3',\n 'id_flight' => '3'\n ]);\n }", "public function run()\n {\n $price=150;\n for($i=1;$i<=20;$i++){\n PlanSpot::create([\n 'plan_id'=>1,\n 'spot_no' =>$i,\n 'price'=> $price\n ]);\n $price= $price-5;\n }\n }", "public function run()\n {\n DB::table('bidding')->insert([\n 'SellerName'=>'dwd',\n 'photo'=> 'wd',\n 'name'=> 'ds',\n 'startPrice'=> 12,\n 'noOfBid'=> 2,\n 'currentBid'=> 3,\n 'bidDeadline'=>'2015-2-1 01:02:03'\n ]);\n }", "public function run()\n {\n\n\n\n $rating = new willvincent\\Rateable\\Rating;\n $rating->rating = mt_rand(1, 5);\n $rating->user_id = mt_rand(2, 100);\n\n $user->ratings()->save($rating);\n \n }", "public function run()\n {\n DB::table('reviews')->insert([\n 'product_id' => '1',\n 'user_name' => 'name',\n 'email' => str_random(10).'@gmail.com',\n 'text' => str_random(20),\n 'star' => 1,\n ]);\n DB::table('reviews')->insert([\n 'product_id' => '1',\n 'user_name' => 'name',\n 'email' => str_random(10).'@gmail.com',\n 'text' => str_random(20),\n 'star' => 2,\n ]);\n }", "public static function addShift($request)\n {\t\n\t\t$getDate = UserShifts::where('date',$request['date'])->get();\n\t\tif(count($getDate) > 0) {\n\t\t\tforeach($getDate as $gd) {\n\t\t\t\tif($gd->date == $request['date'] && $gd->user_id == $request['user_id']) {\n\t\t\t\t\t$update = DB::table('user_shifts')\n\t\t\t\t\t->where(['user_id' => $request['user_id'], 'date' => $request['date']])\n\t\t\t\t\t->update(array('shift' => $request['shift'],'ps_color' => $request['ps_color'],'ps_desc' => $request['ps_desc']));\n\t\t\t\t\treturn $update;\n\t\t\t\t} else {\n\t\t\t\t$shift = UserShifts::create([\n\t\t\t\t\t'shift' => $request['shift'],\n\t\t\t\t\t'ps_color' => $request['ps_color'],\n\t\t\t\t\t'ps_desc' => $request['ps_desc'],\n\t\t\t\t\t'date' => $request['date'],\n\t\t\t\t\t'user_id' => $request['user_id'],\n\t\t\t\t\t'shift_type_id' => 5,\n\t\t\t\t\t'loc_id'=>0\n\t\t\t\t]);\n\t\t\t\treturn $shift;\n\t\t\t\t}\n\t\t\t}\n\t\t}else{\n\t\t$shift = UserShifts::create([\n 'shift' => $request['shift'],\n\t\t\t'ps_color' => $request['ps_color'],\n\t\t\t'ps_desc' => $request['ps_desc'],\n 'date' => $request['date'],\n 'user_id' => $request['user_id'],\n\t\t\t'shift_type_id' => 5,\n\t\t\t'loc_id'=>0\n ]);\n\t\treturn $shift;\n\t\t}\n }", "public function run()\n {\n DB::table('bids')->insert([\n [\n 'id_event' => '1',\n 'name' => 'Сергей',\n 'email' => '[email protected]',\n 'price' => '200'\n ],[\n 'id_event' => '1',\n 'name' => 'Владимир',\n 'email' => '[email protected]',\n 'price' => '1000'\n ],[\n 'id_event' => '3',\n 'name' => 'Николай',\n 'email' => '[email protected]',\n 'price' => '200'\n ],[\n 'id_event' => '3',\n 'name' => 'Василий',\n 'email' => '[email protected]',\n 'price' => '200'\n ],[\n 'id_event' => '3',\n 'name' => 'Дмитрий',\n 'email' => '[email protected]',\n 'price' => '200'\n ],[\n 'id_event' => '3',\n 'name' => 'Анатолий',\n 'email' => '[email protected]',\n 'price' => '200'\n ],[\n 'id_event' => '3',\n 'name' => 'Андрей',\n 'email' => '[email protected]',\n 'price' => '200'\n ],[\n 'id_event' => '3',\n 'name' => 'Сергей',\n 'email' => '[email protected]',\n 'price' => '200'\n ],[\n 'id_event' => '3',\n 'name' => 'Сергей',\n 'email' => '[email protected]',\n 'price' => '200'\n ],[\n 'id_event' => '3',\n 'name' => 'Сергей',\n 'email' => '[email protected]',\n 'price' => '200'\n ],[\n 'id_event' => '1',\n 'name' => 'Сергей',\n 'email' => '[email protected]',\n 'price' => '200'\n ],[\n 'id_event' => '3',\n 'name' => 'Сергей',\n 'email' => '[email protected]',\n 'price' => '200'\n ],[\n 'id_event' => '2',\n 'name' => 'Сергей',\n 'email' => '[email protected]',\n 'price' => '200'\n ],[\n 'id_event' => '3',\n 'name' => 'Сергей',\n 'email' => '[email protected]',\n 'price' => '200'\n ],[\n 'id_event' => '1',\n 'name' => 'Сергей',\n 'email' => '[email protected]',\n 'price' => '200'\n ],[\n 'id_event' => '3',\n 'name' => 'Сергей',\n 'email' => '[email protected]',\n 'price' => '200'\n ],[\n 'id_event' => '3',\n 'name' => 'Сергей',\n 'email' => '[email protected]',\n 'price' => '200'\n ],[\n 'id_event' => '3',\n 'name' => 'Сергей',\n 'email' => '[email protected]',\n 'price' => '200'\n ]\n ]);\n }", "public function run()\n {\n $faker = Faker\\Factory::create();\n\n foreach(range(1, 15) as $index) {\n DB::table('players')->insert([\n 'name' => $faker->name,\n 'rating' => mt_rand(1200, 2890),\n ]);\n }\n\n }", "function date_star($pseudo){\n\t\tglobal $bdd;\n\n\t\t$req = $bdd->query(\"UPDATE `utilisateur` SET `date_star` = CURRENT_TIMESTAMP WHERE `pseudo` = '$pseudo'\");\n\t\t\n\t\t$req->closeCursor();\n\t}", "function rating_sql($field, $val)\n{\n if (!is_numeric($val) || (($val < 0) || ($val > 5))) {\n return false;\n }\n if (!$val) {\n return false;\n }\n $s = $val - 0.5;\n $e = $val + 0.49;\n if ($s < 0.51) {\n $s = 0.1;\n }\n if ($e > 5) {\n $e = 5;\n }\n return \"(($field >= $s) AND ($field <= $e))\";\n}", "public function run()\n {\n DB::table('reservations')->insert([\n 'client_id' => 1,\n 'storage_spot_id' => 1,\n 'type_vehicle' => 2,\n 'from_when' => date_create(),\n 'until_when' => date_create(),\n 'agenda_from' => date_create(),\n 'agenda_until' => date_create()\n ]);\n }", "public function run()\n {\n $reservation_ids = DB::table('reservations')->pluck('id')->toArray();\n \n DB::table('payments')->insert([\n 'reservation_id' => $reservation_ids[array_rand($reservation_ids)],\n 'amount' => rand(0,1000),\n 'payment_date' => new DateTime(),\n ]);\n }", "private function saveRepeatDaily(){\n Loader::db()->Execute(\"INSERT INTO SchedulizerEventRepeat (eventID) VALUES(?)\", array(\n $this->eventObj->getEventID()\n ));\n }", "public function run()\n {\n DB::table('plans')->insert(array(\n \n array('name' => 'Monthly',\n 'price' => 3500),\n\n array('name' => 'Yearly',\n 'price' => 19700)\n ));\n }", "function Avi_Add(){\n\t\t\n\t\t//when click on button\n\t\tif(isset($_POST['avibtn'])){\n\t\t\t\n\t\t\t// for table insert values\n\t\t\t$values = \"'\".$_POST['monstart'].\" - \".$_POST['monend'].\"','\".$_POST['tustart'].\" - \".$_POST['tuend'].\"','\".$_POST['wedstart'].\" - \".$_POST['wedend'].\"','\".$_POST['thustart'].\" - \".$_POST['thuend'].\"','\".$_POST['fristart'].\" - \".$_POST['friend'].\"','\".$_POST['satstart'].\" - \".$_POST['satend'].\"','\".$_POST['sunstart'].\" - \".$_POST['sunend'].\"','\".$_POST['doctor'].\"',NOW()\";\n\t\t\t\n\t\t\t//Add Avialibalility into table\n\t\t\t$this->Add('availability',$values,'Availability?m');\n\t\t\t\n\t\n\t\t} // ifisset close\n\t\t\n\t}", "public function UpdateBookingQty($qty = 0)\n\t{\n\t\t$sql = 'UPDATE coursetickets SET tbooked=tbooked ' . ($qty >= 0 ? '+ ' : '- ') . abs($qty) . ' WHERE tid='. (int)$this->id;\t\n\t\t\t\t\n\t\tif ($result = $this->db->Query($sql))\n\t\t{\n\t\t\tif ($this->db->AffectedRows())\n\t\t\t{\n\t\t\t\t$this->Get($this->id);\n\t\t\t\t\n\t\t\t\tif (!$this->IsBookable())\n\t\t\t\t{\t$this->UpdateStatus('sold_out');\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public function run()\n {\n $reservation1 = new Reservation();\n $reservation1->total_price = 150;\n $reservation1->start_date = '2019-11-14';\n $reservation1->end_date = '2019-11-16';\n $reservation1->user_id = 1;\n $reservation1->room_id = 2;\n $reservation1->save();\n\n $reservation2 = new Reservation();\n $reservation2->total_price = 2071.5;\n $reservation2->start_date = '2019-12-14';\n $reservation2->end_date = '2020-01-20';\n $reservation2->user_id = 1;\n $reservation2->room_id = 1;\n $reservation2->save();\n\n $reservation3 = new Reservation();\n $reservation3->total_price = 13020;\n $reservation3->start_date = '2019-12-19';\n $reservation3->end_date = '2020-01-28';\n $reservation3->user_id = 1;\n $reservation3->room_id = 5;\n $reservation3->save();\n }", "public function run() {\n for ($i=1; $i < 41 ; $i++) {\n $nomor = str_pad($i, 6, '0', STR_PAD_LEFT);\n DB::table('m_hotel')->insert([\n 'code' => 'TJH'.$nomor,\n 'name' => 'Hotel Percobaan'.$nomor,\n 'email' => 'hotel@percobaan'.$nomor.'.com',\n 'phone' => '080989999',\n 'star_rate' => '3',\n 'address' => 'Jl. Coba Coba'.$nomor,\n 'lat' => '+1',\n 'long' => '-1',\n 'area' => '1',\n ]);\n }\n }", "function AddTour($idGame)\n{\n $dbh = ConnectDB();\n $req = $dbh->query(\"UPDATE fishermenland.game SET TourGame = TourGame + '1' WHERE idGame = '$idGame'\");\n}", "function add_update_booking_charges(){\t\n \t\t$house=$this->input->post('house3');\n\t\t\n\t\t$items=array(\n\t\t'HouseNo' =>$house,\n\t\t'ChargeName'=>$this->input->post('charge'),\n\t\t'Unit'=>$this->input->post('txtunit'),\n\t\t'Qty'=>$this->input->post('qty'),\n\t\t'Description'=>$this->input->post('desc'),\n\t\t'Date'=>date('Y-m-d H:i:s')\n\t\t);\t\t\n\t\t $this->model_app->insert('booking_charges',$items);\n\t\t \n\tredirect('transaction/edit_outgoing_house/'.$house);\n }", "function insertNewBooking($bookingnum, $custid, $pkgId) {\n $query = \"INSERT INTO `bookings` (BookingDate, BookingNo, TravelerCount, CustomerId, PackageId) VALUES ('\".date(\"Y-m-d H:i:s\").\"', '$bookingnum', '1', '$custid', '$pkgId')\";\n $result = Database::insertQuery($query); \n if ($result) {\n return true;\n } else {\n return false;\n }\n }", "public function run()\n {\n DB::table('payouts')->delete();\n\n DB::table('payouts')->insert([\n array('id' => '1','reservation_id' => '10001','space_id' => '10011','spots' => '','correlation_id' => '','user_id' => '10001','user_type' => 'host','account' => '','amount' => '95841','currency_code' => 'INR','status' => 'Future','penalty_id' => '0','penalty_amount' => '0','created_at' => '2019-10-21 12:46:12','updated_at' => '2019-10-21 12:46:12'),\n array('id' => '3','reservation_id' => '10007','space_id' => '10004','spots' => '','correlation_id' => '','user_id' => '10004','user_type' => 'host','account' => '','amount' => '52540','currency_code' => 'INR','status' => 'Future','penalty_id' => '0','penalty_amount' => '0','created_at' => '2019-10-21 14:53:25','updated_at' => '2019-10-21 14:53:25'),\n array('id' => '4','reservation_id' => '10005','space_id' => '10004','spots' => '','correlation_id' => '','user_id' => '10003','user_type' => 'guest','account' => '','amount' => '9940','currency_code' => 'INR','status' => 'Future','penalty_id' => '0','penalty_amount' => '0','created_at' => '2019-10-21 15:08:32','updated_at' => '2019-10-21 15:08:32'),\n array('id' => '5','reservation_id' => '10010','space_id' => '10009','spots' => '','correlation_id' => '3N2Z2RWUW6XY2','user_id' => '10002','user_type' => 'host','account' => '[email protected]','amount' => '323','currency_code' => 'EUR','status' => 'Completed','penalty_id' => '0','penalty_amount' => '0','created_at' => '2019-10-21 16:14:51','updated_at' => '2019-10-21 17:53:30'),\n array('id' => '6','reservation_id' => '10011','space_id' => '10019','spots' => '','correlation_id' => 'B4QQK26JSDTNE','user_id' => '10006','user_type' => 'host','account' => '[email protected]','amount' => '404','currency_code' => 'EUR','status' => 'Completed','penalty_id' => '0','penalty_amount' => '0','created_at' => '2019-10-21 16:21:49','updated_at' => '2019-10-21 17:54:33'),\n array('id' => '8','reservation_id' => '10012','space_id' => '10004','spots' => '','correlation_id' => '','user_id' => '10001','user_type' => 'guest','account' => '','amount' => '5680','currency_code' => 'INR','status' => 'Future','penalty_id' => '0','penalty_amount' => '0','created_at' => '2019-10-21 16:25:53','updated_at' => '2019-10-21 16:25:53'),\n array('id' => '10','reservation_id' => '10013','space_id' => '10004','spots' => '','correlation_id' => '','user_id' => '10002','user_type' => 'guest','account' => '','amount' => '5680','currency_code' => 'INR','status' => 'Future','penalty_id' => '0','penalty_amount' => '0','created_at' => '2019-10-22 10:35:13','updated_at' => '2019-10-22 10:35:13'),\n array('id' => '11','reservation_id' => '10014','space_id' => '10005','spots' => '','correlation_id' => '','user_id' => '10004','user_type' => 'host','account' => '','amount' => '21298','currency_code' => 'INR','status' => 'Future','penalty_id' => '0','penalty_amount' => '0','created_at' => '2019-10-22 10:36:54','updated_at' => '2019-10-22 10:36:54'),\n array('id' => '12','reservation_id' => '10015','space_id' => '10009','spots' => '','correlation_id' => '','user_id' => '10002','user_type' => 'host','account' => '','amount' => '270','currency_code' => 'USD','status' => 'Future','penalty_id' => '0','penalty_amount' => '0','created_at' => '2019-10-22 10:51:28','updated_at' => '2019-10-22 10:51:28'),\n array('id' => '13','reservation_id' => '10016','space_id' => '10005','spots' => '','correlation_id' => '','user_id' => '10004','user_type' => 'host','account' => '','amount' => '63894','currency_code' => 'INR','status' => 'Future','penalty_id' => '0','penalty_amount' => '0','created_at' => '2019-10-22 11:04:34','updated_at' => '2019-10-22 11:04:34'),\n array('id' => '14','reservation_id' => '10017','space_id' => '10012','spots' => '','correlation_id' => '','user_id' => '10001','user_type' => 'host','account' => '','amount' => '8874','currency_code' => 'INR','status' => 'Future','penalty_id' => '0','penalty_amount' => '0','created_at' => '2019-10-22 11:26:14','updated_at' => '2019-10-22 11:26:14'),\n array('id' => '15','reservation_id' => '10018','space_id' => '10004','spots' => '','correlation_id' => 'FNHK447XUA96N','user_id' => '10004','user_type' => 'host','account' => '[email protected]','amount' => '74','currency_code' => 'EUR','status' => 'Completed','penalty_id' => '0','penalty_amount' => '0','created_at' => '2019-10-22 11:26:59','updated_at' => '2019-10-22 12:54:38'),\n array('id' => '16','reservation_id' => '10019','space_id' => '10015','spots' => '','correlation_id' => '','user_id' => '10003','user_type' => 'host','account' => '','amount' => '360','currency_code' => 'USD','status' => 'Future','penalty_id' => '0','penalty_amount' => '0','created_at' => '2019-10-22 11:28:22','updated_at' => '2019-10-22 11:28:22'),\n array('id' => '17','reservation_id' => '10020','space_id' => '10018','spots' => '','correlation_id' => '','user_id' => '10002','user_type' => 'host','account' => '','amount' => '580','currency_code' => 'USD','status' => 'Future','penalty_id' => '0','penalty_amount' => '0','created_at' => '2019-10-22 11:28:58','updated_at' => '2019-10-22 11:28:58'),\n array('id' => '18','reservation_id' => '10021','space_id' => '10009','spots' => '','correlation_id' => '','user_id' => '10002','user_type' => 'host','account' => '','amount' => '44723','currency_code' => 'INR','status' => 'Future','penalty_id' => '0','penalty_amount' => '0','created_at' => '2019-10-22 11:31:59','updated_at' => '2019-10-22 11:31:59'),\n array('id' => '19','reservation_id' => '10022','space_id' => '10011','spots' => '','correlation_id' => '','user_id' => '10001','user_type' => 'host','account' => '','amount' => '159735','currency_code' => 'INR','status' => 'Future','penalty_id' => '0','penalty_amount' => '0','created_at' => '2019-10-22 11:32:30','updated_at' => '2019-10-22 11:32:30'),\n array('id' => '20','reservation_id' => '10023','space_id' => '10005','spots' => '','correlation_id' => '2J93DW6EQY7MS','user_id' => '10004','user_type' => 'host','account' => '[email protected]','amount' => '540','currency_code' => 'EUR','status' => 'Completed','penalty_id' => '0','penalty_amount' => '0','created_at' => '2019-10-22 11:35:44','updated_at' => '2019-10-22 12:54:32'),\n array('id' => '21','reservation_id' => '10024','space_id' => '10013','spots' => '','correlation_id' => '','user_id' => '10003','user_type' => 'host','account' => '','amount' => '21298','currency_code' => 'INR','status' => 'Future','penalty_id' => '0','penalty_amount' => '0','created_at' => '2019-10-22 11:37:16','updated_at' => '2019-10-22 11:37:16'),\n ]);\n }", "public function addFuel() {\n global $REQUEST_DATA;\n global $sessionHandler;\n $userId=$sessionHandler->getSessionVariable('UserId');\n\n $query=\"INSERT INTO\n fuel\n SET\n busId=\".$REQUEST_DATA['busId'].\",\n staffId=\".$REQUEST_DATA['staffId'].\",\n dated='\".$REQUEST_DATA['dated'].\"',\n litres='\".trim(add_slashes($REQUEST_DATA['litres'])).\"',\n amount='\".trim(add_slashes($REQUEST_DATA['amount'])).\"',\n lastMilege='\".trim(add_slashes($REQUEST_DATA['lastMilege'])).\"',\n currentMilege='\".trim(add_slashes($REQUEST_DATA['currentMilege'])).\"',\n addedOnDate='\".date('Y-m-d').\"',\n addByUserId=\".$userId;\n return SystemDatabaseManager::getInstance()->executeUpdate($query);\n }", "public function run()\n {\n for ($i=0; $i<=49; $i++)\n {\n $rating = new DataSetWisata();\n $rating->rating = rand(1, 5);\n $rating->wisata_id = $i+1;\n $rating->save();\n }\n }", "public function updateRating(){\r\n\t\t$mysqli = \\Database::Instance()->get();\r\n\r\n\t\t$rating = $this->rating;\r\n\r\n\t\t$stmt = $mysqli->prepare(\"SELECT SUM(`stars`)/COUNT(`stars`) AS `rating` FROM `ratings` WHERE `hotspot` = ?\");\r\n\t\t$stmt->bind_param(\"i\",$this->id);\r\n\t\tif($stmt->execute()){\r\n\t\t\t$result = $stmt->get_result();\r\n\r\n\t\t\tif($result->num_rows){\r\n\t\t\t\t$row = $result->fetch_assoc();\r\n\r\n\t\t\t\t$rating = (double)$row[\"rating\"];\r\n\t\t\t}\r\n\t\t}\r\n\t\t$stmt->close();\r\n\r\n\t\t$stmt = $mysqli->prepare(\"UPDATE `hotspots` SET `rating` = ? WHERE `id` = ?\");\r\n\t\t$stmt->bind_param(\"di\",$rating,$this->id);\r\n\t\t$stmt->execute();\r\n\t\t$stmt->close();\r\n\r\n\t\t$this->rating = $rating;\r\n\t\t$this->saveToCache();\r\n\t}", "function addAlterRate($design_no, $particulars,$particular_rate)\n\t\n\t{\n\t\t/*$stock_id\t\t\t =\tmysql_real_escape_string(trim($stock_id));*/\n\t\t$design_no\t \t\t =\ttrim($design_no);\n\t\t$particulars\t\t\t \t\t= mysql_real_escape_string(trim($particulars));\n\t\t$particular_rate\t\t\t =\tmysql_real_escape_string(trim($particular_rate));\n\t\t\n\t\t//satement to insert in stock table\n\t\t$insert\t\t= \"INSERT INTO alter_rate\n\t\t\t\t\t\t(design_no, particulars, particular_rate, added_on)\n\t\t\t\t\t\t\t\n\t\t\t\t\t\tVALUES\n\t\t\t\t\t\t('$design_no', '$particulars', '$particular_rate', \n\t\t\t\t\t\t\tnow())\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\";\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t//execute quary\n\t\t$query\t\t= mysql_query($insert);\n\t\t//echo $insert.mysql_error();exit;\n\t\t//get the product id\n\t\t$arate_id\t= mysql_insert_id();\n\t\t\n\t\t//return primary key\n\t\treturn $arate_id;\n\n\t}", "public function run()\n {\n DB::table('Users_Likes')->insert([\n 'uid' => 'MdPBtM5T3wgzPDolMriYZDzTamr2',\n 'shop_id' => 1\n ]);\n DB::table('Users_Likes')->insert([\n 'uid' => 'MdPBtM5T3wgzPDolMriYZDzTamr2',\n 'shop_id' => 4\n ]);\n }", "public function run()\n {\n DB::table('reservation_statuses')->insert(\n [\n [\n 'reservation_status_name' => 'Normaal',\n 'reservation_status_credit_cost' => 10,\n ],\n [\n 'reservation_status_name' => 'Niet Gekomen',\n 'reservation_status_credit_cost' => 10,\n ],\n [\n 'reservation_status_name' => 'Afgezegd',\n 'reservation_status_credit_cost' => 0,\n ],\n [\n 'reservation_status_name' => 'Ziekte',\n 'reservation_status_credit_cost' => 5,\n ],\n [\n 'reservation_status_name' => 'Te laat',\n 'reservation_status_credit_cost' => 10,\n ],\n [\n 'reservation_status_name' => 'Gratis',\n 'reservation_status_credit_cost' => 0,\n ],\n [\n 'reservation_status_name' => 'Factuur',\n 'reservation_status_credit_cost' => 10,\n ],\n ]);\n }", "public function run()\n {\n\n for($x = 0; $x < 10; $x++){\n DB::table('grocery_items')->insert([\n 'name' => str_random(10),\n 'inCart' => 0,\n 'bought' => 0\n ]);\n }\n\n }", "public function addStudentIntoEventTable(){\n // Take form details into variables \n // Avoid sql injections \n $name = $_POST[\"ename\"];\n $collegeName = $_POST[\"ecname\"];\n //$mobile = $_POST[\"emobile\"];\n $mobile = isset($_POST['emobile']) ? $_POST['emobile'] :NULL;\n //$email = $_POST[\"eemail\"];\n $email = isset($_POST['eemail']) ? $_POST['eemail'] :NULL;\n //$cost = 500;//$_POST[\"ecost\"];\n $event1 = isset($_POST['event1']) ? $_POST['event1'] :0;\n $event2 = isset($_POST['event2']) ? $_POST['event2'] :0;\n $event3 = isset($_POST['event3']) ? $_POST['event3'] :0;\n $event4 = isset($_POST['event4']) ? $_POST['event4'] :0;\n $event5 = isset($_POST['event5']) ? $_POST['event5'] :0;\n $event6 = isset($_POST['event6']) ? $_POST['event6'] :0;\n $event7 = isset($_POST['event7']) ? $_POST['event7'] :0;\n $event8 = isset($_POST['event8']) ? $_POST['event8'] :0;\n $note = isset($_POST['enote']) ? $_POST['enote'] :NULL;\n \n if($event5 == 1){\n if($note == NULL){\n $event5 = 1;\n } else{\n $event5 = 2;\n }\n }\n \n\n // Write logic to calculate cost of the events \n $cost = $this->calculateEventCost($event1 , $event2 , $event3 , $event4 , $event5 , $event6 , $event7 , $event8 );\n // Logic ends here of calculating cost \n $paid = isset($_POST['egcost']) ? $_POST['egcost'] :NULL;\n\n if ($this->databaseConnection()) {\n $query_to_add_in_db = $this->db_connection->prepare('INSERT INTO \n events (ename , emobile , eemail , ecost ,ecollege , note,event1 , event2 ,event3 ,event4\n ,event5 ,event6 , event7 ,event8 , egcost ,regtime) \n VALUES (:ename , :emobile , :eemail , :ecost , :ecollege ,:note,\n :event1 , :event2 ,:event3 ,:event4\n ,:event5 ,:event6 , :event7 ,:event8 , :paid,now())');\n $query_to_add_in_db->bindValue(':ename' , $name , PDO::PARAM_STR);\n $query_to_add_in_db->bindValue(':emobile' , $mobile , PDO::PARAM_INT);\n $query_to_add_in_db->bindValue(':eemail' , $email , PDO::PARAM_STR);\n $query_to_add_in_db->bindValue(':ecost' , $cost , PDO::PARAM_INT);\n // Adding new parameters \n $query_to_add_in_db->bindValue(':ecollege' , $collegeName , PDO::PARAM_STR);\n $query_to_add_in_db->bindValue(':note' , $note , PDO::PARAM_STR);\n $query_to_add_in_db->bindValue(':event1' , $event1 , PDO::PARAM_STR);\n $query_to_add_in_db->bindValue(':event2' , $event2 , PDO::PARAM_STR);\n $query_to_add_in_db->bindValue(':event3' , $event3 , PDO::PARAM_STR);\n $query_to_add_in_db->bindValue(':event4' , $event4 , PDO::PARAM_STR);\n $query_to_add_in_db->bindValue(':event5' , $event5 , PDO::PARAM_STR);\n $query_to_add_in_db->bindValue(':event6' , $event6 , PDO::PARAM_STR);\n $query_to_add_in_db->bindValue(':event7' , $event7 , PDO::PARAM_STR);\n $query_to_add_in_db->bindValue(':event8' , $event8 , PDO::PARAM_STR);\n // Add paid money \n $query_to_add_in_db->bindValue(':paid' , $paid , PDO::PARAM_STR);\n $query_to_add_in_db->execute(); \n // Return something to display that we are done with adding user \n // Send message to user after adding into databse\n /*\n $message = \"You have been registered successfully in Polaris2k16\";\n $subject = \"Polaris2k16 Notifications\";\n $this->sendSms($mobile, $message);\n $this->sendEmail($email , $message , $subject);\n */ \n } \n }", "public function addReview(Request $request)\n {\n $userid = session('userid');\n $hotelid = $request->input('hotelid');\n\n // chỉ cho phép người dùng thêm review khi người đó đã từng đặt phòng khách sạn\n $booking = Book::getBook($userid, $hotelid);\n if (empty($booking))\n {\n $result['success'] = false;\n return json_encode($result);\n }\n\n $review = $request->input('review');\n $date = date('Y-m-d');\n $location = $request->input('location');\n $room = $request->input('room');\n $service = $request->input('service');\n $cleaness = $request->input('cleaness');\n $value = $request->input('value');\n $comfort = $request->input('comfort');\n $equipment = $request->input('equipment');\n $hotel = $request->input('hotel');\n $meal = $request->input('meal');\n $avg_rating = number_format(($location + $room + $service + $cleaness + $value +$comfort + $equipment + $hotel + $meal) / 9, 1);\n // them review\n Review::addReview($userid, $hotelid, $review, $date, $location, $room, $service, $cleaness, $value, $comfort, $equipment, $hotel, $meal, $avg_rating);\n\n // cap nhat khach san\n $ht = Hotel::find($hotelid);\n $old_number_rate = $ht->number_of_rate;\n $old_rate = $ht->rate;\n $new_rate = number_format(($old_rate * $old_number_rate + $avg_rating) / ($old_number_rate + 1), 1);\n $ht->rate = $new_rate;\n $ht->number_of_rate = $old_number_rate + 1;\n $ht->save();\n\n $result['success'] = true;\n return Response::json($result);\n }", "public function run()\n {\n $faker = Faker::create();\n foreach (range(1,6) as $index) {\n DB::table('transactions')->insert([\n 'user_id' => $faker->numberBetween($min = 0, $max = 10),\n 'room_number' => $faker->numberBetween($min = 0, $max = 10),\n 'rent_started' => $faker->dateTimeBetween($startDate = '-11 months', $endDate = '-5 months', $timezone = date_default_timezone_get()),\n 'rent_ended' => $faker->dateTimeBetween($startDate = '-4 months', $endDate = '-1 day', $timezone = date_default_timezone_get())\n ]);\n }\n }", "function addPlayer($name, $last, $rating, $usatt, $idclub, $date, $email){\n $query = \"INSERT INTO aquigaza_fsutt_local.players\n\t(`name`, `last`, `rating`, `usatt_rat`, `fk_club`, `startdate`, `email`)\n\tVALUES\t('\".escapeString($name).\"','\".escapeString($last).\"','\".escapeString($rating).\"',\".escapeString($usatt).\n\t\t\t\",\".escapeString($idclub).\",'\".escapeString($date).\"','\".escapeString($email).\"')\";\n $resource = runQuery($query);\n}", "public function run()\n {\n // booking_status: \n // 1 -> customer waiting photographer\n // 2 -> photographer accepted\n // 3 -> customer cancel\n // 4 -> photographer cancel\n\n\n DB::table('booking')->insert([\n\n [\n 'id_customer' => 2,\n 'id_photographer' => 17,\n 'id_combo' => 3,\n 'id_voucher'=> 1,\n 'start_time' => '2021-03-07',\n 'time_booking' => 1,\n 'price' => 1300000,\n 'booking_status' => 2,\n 'is_finish' => true,\n 'booking_address' => 'Shop quần áo số 34 Nam Từ Liêm, Hà Nội',\n 'created_at' => '2021-03-05 15:22:00',\n 'updated_at' => '2021-03-05 15:22:00',\n ],\n [\n 'id_customer' => 5 ,\n 'id_photographer' => 19,\n 'id_combo' => 12,\n 'id_voucher' => 2,\n 'start_time' => '2021-03-08',\n 'time_booking' => 1,\n 'price' => 500000,\n 'booking_status' => 2,\n 'is_finish' => true,\n 'booking_address' => '',\n 'created_at' => '2021-03-05 19:00:00',\n 'updated_at' => '2021-03-05 19:00:00',\n ],\n [\n 'id_customer' => 6,\n 'id_photographer' => 18,\n 'id_combo' => 10,\n 'id_voucher' => 2,\n 'start_time' => '2021-03-11',\n 'time_booking' => 1,\n 'price' => 450000,\n 'booking_status' => 2,\n 'is_finish' => true,\n 'booking_address' => 'Cong Vien Gia Dinh, Go Vap',\n 'created_at' => '2021-03-07 05:00:00',\n 'updated_at' => '2021-03-07 05:00:00'\n ],\n [\n 'id_customer' => 4,\n 'id_photographer' => 22,\n 'id_combo' => 27,\n 'id_voucher' => 2,\n 'start_time' => '2021-03-11',\n 'time_booking' => 1,\n\n 'price' => 450000,\n 'booking_status' => 2,\n 'is_finish' => true,\n 'booking_address' => '',\n 'created_at' => '2021-03-07 11:00:00',\n 'updated_at' => '2021-03-07 11:00:00'\n ],\n [\n 'id_customer' => 7,\n 'id_photographer' => 18,\n 'id_combo' => 6,\n 'id_voucher' => 2,\n 'start_time' => '2021-03-10',\n 'time_booking' => 1,\n\n 'price' => 450000,\n 'booking_status' => 3,\n 'is_finish' => false,\n 'booking_address' => '',\n 'created_at' => '2021-03-08 09:00:00',\n 'updated_at' => '2021-03-08 09:00:00'\n ],\n [\n 'id_customer' => 9,\n 'id_photographer' => 28,\n 'id_combo' => 59,\n 'id_voucher' => 2,\n 'start_time' => '2021-03-15',\n 'time_booking' => 1,\n\n 'price' => 5000000,\n 'booking_status' => 2,\n 'is_finish' => true,\n 'booking_address' => '35 Duy Tan, Son Tra, DN',\n 'created_at' => '2021-03-10 11:00:00',\n 'updated_at' => '2021-03-10 11:00:00'\n ],\n [\n 'id_customer' => 8,\n 'id_photographer' => 31,\n 'id_combo' => 75,\n 'id_voucher' => 2,\n 'start_time' => '2021-03-13',\n 'time_booking' => 1,\n\n 'price' => 450000,\n 'booking_status' => 2,\n 'is_finish' => true,\n 'booking_address' => 'Saigon Centre quận 1, HCM',\n 'created_at' => '2021-03-10 11:30:00',\n 'updated_at' => '2021-03-10 11:30:00'\n ],\n [\n 'id_customer' => 10,\n 'id_photographer' => 30,\n 'id_combo' => 66,\n 'id_voucher' => 2,\n 'start_time' => '2021-03-15',\n 'time_booking' => 1,\n\n 'price' => 450000,\n 'booking_status' => 3,\n 'is_finish' => false,\n 'booking_address' => 'No address',\n 'created_at' => '2021-03-12 11:23:10',\n 'updated_at' => '2021-03-12 11:23:10'\n ],\n [\n 'id_customer' => 16,\n 'id_photographer' => 29,\n 'id_combo' => 61,\n 'id_voucher' => 2,\n 'start_time' => '2021-03-18',\n 'time_booking' => 1,\n 'price' => 450000,\n 'booking_status' => 2,\n 'is_finish' => true,\n 'booking_address' => 'Cong vien Gia Dinh',\n 'created_at' => '2021-03-15 05:00:00',\n 'updated_at' => '2021-03-15 12:00:00'\n ],\n [\n 'id_customer' => 17,\n 'id_photographer' => 27,\n 'id_combo' => 55,\n 'id_voucher' => 2,\n 'start_time' => '2021-03-17',\n 'time_booking' => 1,\n 'price' => 450000,\n 'booking_status' => 3,\n 'is_finish' => false,\n 'booking_address' => 'Cong vien Hoang Van Thu',\n 'created_at' => '2021-03-15 09:30:00',\n 'updated_at' => '2021-03-15 09:30:00'\n ],\n\n [\n 'id_customer' => 15,\n 'id_photographer' => 23,\n 'id_combo' => 31,\n 'id_voucher' => 2,\n 'start_time' => '2021-03-22',\n 'time_booking' => 1,\n 'price' => 450000,\n 'booking_status' => 2,\n 'is_finish' => true,\n 'booking_address' => 'Da Lat',\n 'created_at' => '2021-03-20 11:00:00',\n 'updated_at' => '2021-03-20 11:00:00'\n ],\n [\n 'id_customer' => 14,\n 'id_photographer' => 22,\n 'id_combo' => 26,\n 'id_voucher' => 2,\n 'start_time' => '2021-03-23',\n 'time_booking' => 1,\n 'price' => 450000,\n 'booking_status' => 2,\n 'is_finish' => true,\n 'booking_address' => 'Bien Vung Tau',\n 'created_at' => '2021-03-20 15:00:00',\n 'updated_at' => '2021-03-20 15:00:00'\n ],\n [\n 'id_customer' => 13,\n 'id_photographer' => 18,\n 'id_combo' => 9,\n 'id_voucher' => 2,\n 'start_time' => '2021-03-28',\n 'time_booking' => 1,\n 'price' => 450000,\n 'booking_status' => 2,\n 'is_finish' => true,\n 'booking_address' => 'Truong Chinh, Tan Binh, HCM',\n 'created_at' => '2021-03-25 12:00:00',\n 'updated_at' => '2021-03-25 12:00:00'\n ],\n [\n 'id_customer' => 12,\n 'id_photographer' => 21,\n 'id_combo' => 23,\n 'id_voucher' => 2,\n 'start_time' => '2021-03-31',\n 'time_booking' => 1,\n 'price' => 450000,\n 'booking_status' => 2,\n 'is_finish' => true,\n 'booking_address' => 'Studio 31 Nguyen Luong Bang, Ho Chi Minh',\n 'created_at' => '2021-03-27 09:22:00',\n 'updated_at' => '2021-03-27 09:22:00'\n ],\n [\n 'id_customer' => 11,\n 'id_photographer' => 23,\n 'id_combo' => 32,\n 'id_voucher' => 2,\n 'start_time' => '2021-04-02',\n 'time_booking' => 1,\n 'price' => 450000,\n 'booking_status' => 2,\n 'is_finish' => true,\n 'booking_address' => 'Cong Vien',\n 'created_at' => '2021-03-31 08:00:00',\n 'updated_at' => '2021-03-31 08:00:00'\n ],\n\n [\n 'id_customer' => 6,\n 'id_photographer' => 25,\n 'id_combo' => 43,\n 'id_voucher' => 2,\n 'start_time' => '2021-04-07',\n 'time_booking' => 1,\n 'price' => 450000,\n 'booking_status' => 2,\n 'is_finish' => true,\n 'booking_address' => 'Etown Cong Hoa',\n 'created_at' => '2021-04-05 12:00:00',\n 'updated_at' => '2021-04-05 12:00:00'\n ],\n\n [\n 'id_customer' => 4,\n 'id_photographer' => 26,\n 'id_combo' => 50,\n 'id_voucher' => 2,\n 'start_time' => '2021-04-13',\n 'time_booking' => 1,\n 'price' => 450000,\n 'booking_status' => 2,\n 'is_finish' => true,\n 'booking_address' => 'Sabeco',\n 'created_at' => '2021-04-10 19:00:00',\n 'updated_at' => '2021-04-10 19:00:00'\n ],\n [\n 'id_customer' => 7,\n 'id_photographer' => 27,\n 'id_combo' => 51,\n 'id_voucher' => 2,\n 'start_time' => '2021-04-18',\n 'time_booking' => 1,\n 'price' => 450000,\n 'booking_status' => 2,\n 'is_finish' => true,\n 'booking_address' => 'Cau vuot Hoa Cam',\n 'created_at' => '2021-04-15 13:05:00',\n 'updated_at' => '2021-04-15 13:05:00'\n ],\n [\n 'id_customer' => 5,\n 'id_photographer' => 28,\n 'id_combo' => 57,\n 'id_voucher' => 2,\n 'start_time' => '2021-04-23',\n 'time_booking' => 1,\n 'price' => 450000,\n 'booking_status' => 2,\n 'is_finish' => true,\n 'booking_address' => 'TPHCM',\n 'created_at' => '2021-04-19 13:00:00',\n 'updated_at' => '2021-04-19 13:00:00'\n ],\n [\n 'id_customer' => 3,\n 'id_photographer' => 29,\n 'id_combo' => 62,\n 'id_voucher' => 2,\n 'start_time' => '2021-04-26',\n 'time_booking' => 1,\n 'price' => 450000,\n 'booking_status' => 3,\n 'is_finish' => false,\n 'booking_address' => 'DN',\n 'created_at' => '2021-04-23 11:00:00',\n 'updated_at' => '2021-04-23 11:00:00'\n ],\n [\n 'id_customer' => 9,\n 'id_photographer' => 30,\n 'id_combo' => 70,\n 'id_voucher' => 2,\n 'start_time' => '2021-04-25',\n 'time_booking' => 1,\n 'price' => 450000,\n 'booking_status' => 2,\n 'is_finish' => true,\n 'booking_address' => 'Cong Vien',\n 'created_at' => '2021-04-23 13:00:00',\n 'updated_at' => '2021-04-23 13:00:00'\n ],\n [\n 'id_customer' => 11,\n 'id_photographer' => 22,\n 'id_combo' => 3,\n 'id_voucher' => 2,\n 'start_time' => '2021-04-27',\n 'time_booking' => 1,\n 'price' => 450000,\n 'booking_status' => 4,\n 'is_finish' => false,\n 'booking_address' => 'DN',\n 'created_at' => '2021-04-25 13:00:00',\n 'updated_at' => '2021-04-25 13:00:00'\n ],\n\n ]);\n }", "function rentBook($isbn, $student, $con) \r\n\t{\r\n\t\tmysqli_query($con,\"\r\n\t\t\tUPDATE booksdb\r\n\t\t\tSET rented = rented - 1\r\n\t\t\tWHERE isbn13 like '%{$isbn}%;'\r\n\t\t\");\r\n\t\t// Add user and student id functionality here\r\n\t\t// Also required updation of the rent date\r\n\t}", "function tfnm_star_rating( $rating ){\n\t$image_name = floor( $rating );\n\t$decimal = $rating - $image_name;\n\n\tif( $decimal >= .5 ){\n\t\t$image_name .= '_half';\n\t}\n\n\treturn plugin_dir_url( dirname( __FILE__ ) ) . 'public/images/yelp_stars/web_and_ios/regular/regular_' . $image_name . '.png';\n}", "function book_offer() {\n\n $collectorId = $_SESSION['demo']['user_id'];\n $offerId = $_GET['offerId'];\n //$date = date('d/m/y');\n //$time =date('h:m:s');\n //$insert = mysql_query(\"INSERT INTO stock(offer_ID, collector_ID,collection_date,amount, remark, status) VALUES(d','$collectorId','$date','$time')\") or die ('Unable to add booking'.mysql_error());\n $check = mysql_query(\"SELECT status from offer WHERE offer_ID='$offerId'\");\n if ($check) {\n if (mysql_result($check, 0, 'status') == \"available\") {\n if (mysql_query(\"UPDATE offer SET status ='booked', collector_id='$collectorId' WHERE offer_ID ='$offerId'\") )\n return 1;\n else\n return -1;\n }\n else\n return -1;\n } else {\n return -1;\n }\n}", "public function run()\n {\n DB::table('user_seats')->insert([\n 'seat_map_id' => 1,\n 'user_id' => 1,\n 'X' => 1000,\n 'Y' => 5000,\n ]);\n DB::table('user_seats')->insert([\n 'seat_map_id' => 1,\n 'user_id' => 2,\n 'X' => 5000,\n 'Y' => 5000,\n ]);\n DB::table('user_seats')->insert([\n 'seat_map_id' => 1,\n 'user_id' => 3,\n 'X' => 9000,\n 'Y' => 5000,\n ]);\n }", "public function run()\n {\n DB::table('maxi_card_epin')->updateOrInsert(\n [\n 'id' => 1\n ],\n [\n 'name' => \"Maxicard 1TL\",\n 'description' => \"Maxicard 1TL\",\n 'price' => 1,\n 'silk' => 1,\n 'created_at' => Carbon::now(),\n 'updated_at' => Carbon::now(),\n ]);\n\n DB::table('maxi_card_epin')->updateOrInsert(\n [\n 'id' => 2\n ],\n [\n 'name' => \"Maxicard 10TL\",\n 'description' => \"Maxicard 10TL\",\n 'price' => 10,\n 'silk' => 10,\n 'created_at' => Carbon::now(),\n 'updated_at' => Carbon::now(),\n ]);\n\n DB::table('maxi_card_epin')->updateOrInsert(\n [\n 'id' => 3\n ],\n [\n 'name' => \"Maxicard 25TL\",\n 'description' => \"Maxicard 25TL\",\n 'price' => 25,\n 'silk' => 25,\n 'created_at' => Carbon::now(),\n 'updated_at' => Carbon::now(),\n ]);\n\n DB::table('maxi_card_epin')->updateOrInsert(\n [\n 'id' => 4\n ],\n [\n 'name' => \"Maxicard 50TL\",\n 'description' => \"Maxicard 50TL\",\n 'price' => 50,\n 'silk' => 50,\n 'created_at' => Carbon::now(),\n 'updated_at' => Carbon::now(),\n ]);\n\n DB::table('maxi_card_epin')->updateOrInsert(\n [\n 'id' => 5\n ],\n [\n 'name' => \"Maxicard 75TL\",\n 'description' => \"Maxicard 75TL\",\n 'price' => 75,\n 'silk' => 75,\n 'created_at' => Carbon::now(),\n 'updated_at' => Carbon::now(),\n ]);\n\n DB::table('maxi_card_epin')->updateOrInsert(\n [\n 'id' => 6\n ],\n [\n 'name' => \"Maxicard 100TL\",\n 'description' => \"Maxicard 100TL\",\n 'price' => 100,\n 'silk' => 100,\n 'created_at' => Carbon::now(),\n 'updated_at' => Carbon::now(),\n ]);\n\n DB::table('maxi_card_epin')->updateOrInsert(\n [\n 'id' => 7\n ],\n [\n 'name' => \"Maxicard 250TL\",\n 'description' => \"Maxicard 250TL\",\n 'price' => 250,\n 'silk' => 250,\n 'created_at' => Carbon::now(),\n 'updated_at' => Carbon::now(),\n ]);\n\n DB::table('maxi_card_epin')->updateOrInsert(\n [\n 'id' => 8\n ],\n [\n 'name' => \"Maxicard 500TL\",\n 'description' => \"Maxicard 500TL\",\n 'price' => 500,\n 'silk' => 500,\n 'created_at' => Carbon::now(),\n 'updated_at' => Carbon::now(),\n ]);\n\n DB::table('maxi_card_epin')->updateOrInsert(\n [\n 'id' => 9\n ],\n [\n 'name' => \"Maxicard 1000TL\",\n 'description' => \"Maxicard 1000TL\",\n 'price' => 1000,\n 'silk' => 1000,\n 'created_at' => Carbon::now(),\n 'updated_at' => Carbon::now(),\n ]);\n }", "public function run()\n {\n DB::table('courses')->insert([\n 'name' => 'Provisoire',\n 'price'=>100\n ]);\n\n DB::table('courses')->insert([\n 'name' => 'Driving license',\n 'price'=>140\n ]);\n }", "function addLoginStrikes()\n\t{\n\t\t$currentAttempts = $this->getLoginStrikes();\n\t\t\n\t\tif($currentAttempts == false) //This is the first strike, so insert in DB\n\t\t{\n\t\t\t$this->DB->database_insert('activity',\n\t\t\t\t\t\t array('activity_ip' => $_SERVER['REMOTE_ADDR'],\n\t\t\t\t\t\t\t'activity_type' => 'logins',\n\t\t\t\t\t\t\t'activity_strikes' => 1));\n\t\t}\n\t\telse //Update current strike count otherwise\n\t\t{\n\t\t\t$currentAttempts++;\n\t\t\t$time = get_timestamp(); //Time strike occurred. Offset against time required for user to wait\n\t\t\t$this->DB->database_update('activity', array('activity_strikes' => $currentAttempts, 'activity_time' => $time),\n\t\t\t\t\t\t array('activity_type' => 'logins',\n\t\t\t\t\t\t\t 'activity_ip' => $_SERVER['REMOTE_ADDR']));\n\t\t\t\n\t\t}\n\t}", "function addReview($db_connection)\n\t\t\t{\n\t\t\t\t$userid = getUserID($db_connection);\n\t\t\t\t$currentDate = date(\"Y-m-d\");\n\t\t\t\tif(userHasScored($db_connection,$_POST['movieid']))\n\t\t\t\t{\n\t\t\t\t\t$query = \"UPDATE score_and_reviews SET score_data = {$_POST['rating']}, review = '{$_POST['review']}', review_date = '$currentDate' WHERE userid = $userid\";\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t$query = \"INSERT INTO score_and_reviews(userid, movieid, score_data, review_date, review) VALUES ($userid,{$_POST['movieid']},{$_POST['rating']},'$currentDate','{$_POST['review']}')\";\n\n\t\t\t\t}\n\t\t\t\t$result = mysqli_query($db_connection,$query);\n\t\t\t}" ]
[ "0.5687405", "0.5525846", "0.5485494", "0.5461473", "0.5448458", "0.53806823", "0.5315855", "0.51946", "0.5186232", "0.5185592", "0.51807785", "0.51612085", "0.51612085", "0.5160836", "0.5136923", "0.51299113", "0.5105312", "0.5084231", "0.5070966", "0.50571555", "0.5052779", "0.505121", "0.50392675", "0.5025025", "0.5023509", "0.5021638", "0.50155586", "0.5010998", "0.5007831", "0.5005088", "0.5004782", "0.50047433", "0.4990104", "0.49873435", "0.49835017", "0.49774668", "0.49739724", "0.49732274", "0.49690443", "0.49687353", "0.4968561", "0.49625736", "0.49541244", "0.49345195", "0.49334568", "0.49324796", "0.49263978", "0.49216765", "0.4920178", "0.49179423", "0.49096146", "0.4909104", "0.4908249", "0.49048457", "0.48930827", "0.48929116", "0.48888654", "0.48881668", "0.4883342", "0.48767155", "0.48719558", "0.48703915", "0.48674843", "0.48649344", "0.485407", "0.48534295", "0.4841287", "0.48323852", "0.4831593", "0.48310196", "0.4830664", "0.48294646", "0.48269686", "0.48261037", "0.48242518", "0.48189747", "0.4811662", "0.48112902", "0.4809662", "0.4804769", "0.48014632", "0.4798786", "0.47950283", "0.47815317", "0.47780547", "0.47765052", "0.47728094", "0.47702947", "0.47693706", "0.4765513", "0.47638002", "0.4758498", "0.47547013", "0.47521976", "0.47488523", "0.4746563", "0.47430316", "0.47422165", "0.47408596", "0.47399455" ]
0.5406656
5
Process an incoming server request. Processes an incoming server request in order to produce a response. If unable to produce the response itself, it may delegate to the provided request handler to do so.
public function process(Request $request, Response $response, RequestHandlerInterface $handler);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function process(\n ServerRequestInterface $request,\n RequestHandlerInterface $handler\n );", "public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface\n {\n return $handler->handle($request);\n }", "public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface\n {\n return $handler->handle($request);\n }", "public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface\n {\n $response = $handler->handle($request);\n\n return $response;\n }", "public function process(\n ServerRequestInterface $request, \n RequestHandlerInterface $handler\n ): ResponseInterface {\n return call_user_func($this->callable, $request, $handler);\n }", "public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface\n {\n $time = microtime(true);\n $response = $handler->handle($request);\n\n $logger = di()->get(LoggerFactory::class)->get('request');\n\n /** @var Request $request */\n $request = di()->get(RequestInterface::class);\n $result = $response->getBody()->getContents();\n\n // 日志\n $time = microtime(true) - $time;\n $debug = 'URL: ' . $request->getUri() . PHP_EOL;\n $debug .= 'TIME: ' . $time . PHP_EOL;\n $debug .= 'PARAMS: ' . $request->getBody()->getContents() . PHP_EOL;\n $debug .= 'RESPONSE: ' . $result . PHP_EOL;\n\n if ($time > 1) {\n $logger->error($debug);\n } else {\n $logger->info($debug);\n }\n\n return $response;\n }", "public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface\n {\n if (!$result = $request->getAttribute(Result::class)) {\n return $handler->handle($request);\n }\n $middleware = $this->resolver->resolve($result->getHandler());\n return $middleware->process($request, $handler);\n }", "public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface\n {\n $request = $request->withAttribute('normalizedParams', NormalizedParams::createFromRequest($request));\n return $handler->handle($request);\n }", "public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface\n {\n $path = rtrim($request->getUri()->getPath(), '/');\n $request = $request->withUri($request->getUri()->withPath($path ?: '/'));\n\n $request = $this->eventDispatcher->dispatch(new PreRouteDispatch($request))->getRequest();\n $route = $this->routerDispatcher->dispatch($request);\n if (count($route->getAttributes())) {\n foreach ($route->getAttributes() as $key => $value) {\n $request = $request->withAttribute($key, $value);\n }\n }\n $event = $this->eventDispatcher->dispatch(new PostRouteDispatch($route, $request));\n $request = $event->getRequest();\n $request = $request->withAttribute(\\Polus\\Router\\RouterMiddleware::ATTRIBUTE_KEY, $event->getRoute());\n\n return $handler->handle($request);\n }", "public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface\n {\n try {\n $response = $handler->handle($request);\n } catch (\\Throwable $exception) {\n $response = $this->getErrorResponse($request, $exception);\n }\n\n return $response;\n }", "public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface\n {\n ob_start();\n //$level = ob_get_level();\n try {\n $response = $handler->handle($request);\n if ($this->isError($response->getStatusCode())) {\n $exception = new HttpErrorException($response->getReasonPhrase(), $response->getStatusCode());\n return $this->handleError($request, $exception);\n }\n return $response;\n } catch (HttpErrorException $exception) {\n return $this->handleError($request, $exception);\n } catch (Throwable $exception) {\n if (!$this->catchExceptions) {\n\n throw $exception;\n }\n\n return $this->handleError($request, HttpErrorException::create(500, [], $exception));\n } finally {\n// while (ob_get_level() >= $level) {\n// ob_end_clean();\n// }\n }\n }", "public function process(ServerRequestInterface $serverRequest, RequestHandlerInterface $handler): ResponseInterface\n {\n $clientAcceptJsonResponse = (strpos($serverRequest->getHeaderLine('Accept'), 'application/json') !== false);\n\n //~ If client does not accept an json response, do no try catch error with error controller linked\n //~ to *this* handler\n if (!$clientAcceptJsonResponse) {\n return $handler->handle($serverRequest);\n }\n\n try {\n $response = $handler->handle($serverRequest);\n } catch (\\Exception $exception) {\n $response = $this->getErrorResponse($serverRequest, $exception);\n }\n\n return $response;\n }", "public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface\n {\n $span = $this->buildSpan($request);\n\n defer(function () {\n try {\n $this->tracer->flush();\n } catch (Throwable $exception) {\n if (ApplicationContext::hasContainer() && ApplicationContext::getContainer()->has(StdoutLoggerInterface::class)) {\n ApplicationContext::getContainer()\n ->get(StdoutLoggerInterface::class)\n ->error($exception->getMessage());\n }\n }\n });\n try {\n $response = $handler->handle($request);\n $span->setTag($this->spanTagManager->get('response', 'status_code'), $response->getStatusCode());\n $span->setTag('otel.status_code', 'OK');\n } catch (Throwable $exception) {\n $this->switchManager->isEnabled('exception') && $this->appendExceptionToSpan($span, $exception);\n if ($exception instanceof HttpException) {\n $span->setTag($this->spanTagManager->get('response', 'status_code'), $exception->getStatusCode());\n }\n throw $exception;\n } finally {\n $span->finish();\n }\n\n return $response;\n }", "public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface\n {\n try {\n\n return (new RequestHandlerWithMiddlewareQueue($handler, $this->middleware))->handle($request);\n\n }\n\n catch (BaseMiddlewareTypeException $e) {\n\n throw new MiddlewareTypeException($e->value());\n\n }\n }", "public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface\n {\n if ($request->hasHeader('Accept-Encoding')) {\n $accept = $request->getHeaderLine('Accept-Encoding');\n $encoding = $this->negotiateHeader($accept, new EncodingNegotiator(), $this->encodings);\n\n if ($encoding === null) {\n return $handler->handle($request->withoutHeader('Accept-Encoding'));\n }\n\n return $handler->handle($request->withHeader('Accept-Encoding', $encoding));\n }\n\n return $handler->handle($request);\n }", "public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface\n {\n $this->uri = $request->getUri();\n $this->app->getContainer()->get('view')->loadExtension($this);\n return $handler->handle($request);\n }", "public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface\n {\n $uri = $request->getUri();\n $host = $uri->getHost();\n if ($this->www) {\n if (self::wwwCanBeAdded($host)) {\n $host = sprintf('www.%s', $host);\n }\n } elseif (strpos($host, 'www.') === 0) {\n $host = substr($host, 4);\n }\n\n if ($uri->getHost() !== $host) {\n /*\n return Utils\\Factory::createResponse(301)\n ->withHeader('Location', (string) $uri->withHost($host));*/\n\n // TODO : passer une responseFactory en paramétre dans le constructeur\n $response = new Response();\n\n return $response\n ->withStatus(301)\n ->withHeader('Location', (string) $uri->withHost($host));\n }\n\n return $handler->handle($request);\n }", "public function handle(\n ServerRequestInterface $request,\n ResponseInterface $response,\n callable $next = null\n ) : ResponseInterface;", "public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface\n {\n $message = $this->has('message') ? $this->get('message') : 'Hi';\n \n return new \\Zend\\Diactoros\\Response\\TextResponse($message);\n }", "public function handle(ServerRequestInterface $request);", "public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface\n {\n return $this->encrypt($handler->handle($this->decrypt($request)));\n }", "public function process(Request $request, Handler $handler): Response\n {\n try {\n return $handler->handle($request);\n } catch (Throwable $e) {\n return $this->errorHandler->handle($e);\n }\n }", "public function process(\n ServerRequestInterface $request,\n RequestHandlerInterface $handler\n ): ResponseInterface {\n $token = $request->getAttribute(\"token\", false);\n\n if ($token) {\n $token[\"data\"] = (array) $token[\"data\"];\n $request = $request->withAttribute(\"token\", $token);\n }\n\n return $handler->handle($request);\n }", "public function process_request() {\n if(!empty($this->POST)) {\n return $this->handlePOST();\n } else {\n return $this->handleGET();\n }\n }", "public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface\n {\n //Calling penal\n $responsePenal = $this->penalSearcherHandler->doSearch($request);\n\n //Calling CJF\n $responseCjf = $this->cjfSearcherHandler->doSearch($request);\n\n //Merging Data\n $responseData = [];\n $penalData = json_decode($responsePenal->getBody()->getContents(), true);\n $cjfData = json_decode($responseCjf->getBody()->getContents(), true);\n $responseData['results'] = array_merge($penalData['results'], $cjfData['results']);\n $responseData['index'] = (count($cjfData['results']) > 0) ? \"cjf\" : \"penal\";\n $response = new JsonResponse($responseData);\n\n return $response;\n }", "abstract public function handle(ServerRequestInterface $request): ResponseInterface;", "public function handle(ServerRequestInterface $request, $handler, array $vars): ?ResponseInterface;", "public function process(ServerRequestInterface $request, RequestHandlerInterface $delegate)\n {\n if (Tinebase_Core::isLogLevel(Zend_Log::DEBUG)) Tinebase_Core::getLogger()->debug(__METHOD__ . '::'\n . __LINE__ . ' processing...');\n\n $dispatcher = $this->_getDispatcher();\n\n $uri = $request->getUri()->getPath();\n\n // remove trailing slashes - FastRoute is not handling uris with them correctly it seems\n $uri = preg_replace('/\\/+$/', '', $uri);\n\n // if the tine20 server is located in a subdir, we need to remove the server path from the uri\n $serverPath = Tinebase_Core::getUrl('path');\n $uri = preg_replace('/^' . preg_quote($serverPath, '/') . '/', '', $uri);\n\n if (Tinebase_Core::isLogLevel(Zend_Log::DEBUG)) Tinebase_Core::getLogger()->debug(__METHOD__ . '::'\n . __LINE__ . ' FastRoute dispatching on method: ' . $request->getMethod() . ' and uri: '\n . $uri);\n\n $routeInfo = $dispatcher->dispatch($request->getMethod(), $uri);\n switch ($routeInfo[0]) {\n case FastRoute\\Dispatcher::NOT_FOUND:\n if (Tinebase_Core::isLogLevel(Zend_Log::INFO)) Tinebase_Core::getLogger()->info(__METHOD__ . '::'\n . __LINE__ . ' returning 404 not found');\n\n // 404 not found\n return new Response('php://memory', 404);\n case FastRoute\\Dispatcher::METHOD_NOT_ALLOWED:\n if (Tinebase_Core::isLogLevel(Zend_Log::INFO)) Tinebase_Core::getLogger()->info(__METHOD__ . '::'\n . __LINE__ . ' returning 405 method not allowed');\n\n //$allowedMethods = $routeInfo[1];\n // 405 method not allowed\n return new Response('php://memory', 405);\n case FastRoute\\Dispatcher::FOUND:\n if (Tinebase_Core::isLogLevel(Zend_Log::DEBUG)) Tinebase_Core::getLogger()->debug(__METHOD__ . '::'\n . __LINE__ . ' FastRoute dispatching result: ' . print_r($routeInfo, true));\n\n $handler = Tinebase_Expressive_RouteHandler::fromArray($routeInfo[1]);\n $handler->setVars($routeInfo[2]);\n return $delegate->handle($request->withAttribute(Tinebase_Expressive_Const::ROUTE_HANDLER, $handler));\n break;\n default:\n throw new Tinebase_Exception_UnexpectedValue('fast route dispatcher returned unexpected route info');\n }\n\n // in case you ever want to call $delegate->process without add the Tinebase_Expressive_Const::ROUTE_HANDLER\n // then do it like this: $delegate->process($request->withoutAttribute(Tinebase_Expressive_Const::ROUTE_HANDLER)\n }", "public function process(\n ServerRequestInterface $request,\n RequestHandlerInterface $handler\n ): ResponseInterface {\n $locale = $this->getLocale($request);\n\n $this->locale->setLocale($locale);\n $this->locale->setFallbackLocale(self::FALLBACK_LOCALE);\n\n return $handler->handle($request);\n }", "public function handle(ServerRequestInterface $request): ResponseInterface\n {\n if ($this->response === null) {\n $this->response = ArkWebResponse::makeResponse(200);\n }\n\n if(!is_array($this->handleCallable)){\n $actualCallable=$this->handleCallable;\n }else {\n $className=$this->handleCallable[0];\n $actualCallable = [new $className,$this->handleCallable[1]];\n }\n if (!is_callable($actualCallable)) {\n $this->response->setStatus('500', 'No handler given');\n } else {\n $this->response = call_user_func_array($this->handleCallable, [$request, $this->response]);\n }\n return $this->response;\n }", "public function process(Aloi_Serphlet_Application_HttpRequest $request, Aloi_Serphlet_Application_HttpResponse $response) {\r\n\r\n\t\ttry {\r\n\t\t\t// Identify the path component we will use to select a mapping\r\n\t\t\t$path = $this->processPath($request, $response);\r\n\t\t\tif (is_null($path)) {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tif (self::$log->isDebugEnabled()) {\r\n\t\t\t\tself::$log->debug('Processing a \"' . $request->getMethod() . '\" for path \"' . $path . '\"');\r\n\t\t\t}\r\n\r\n\t\t\t// Select a Locale for the current user if requested\r\n\t\t\t$this->processLocale($request, $response);\r\n\r\n\t\t\t// Set the content type and no-caching headers if requested\r\n\t\t\t$this->processContent($request, $response);\r\n\t\t\t$this->processNoCache($request, $response);\r\n\r\n\t\t\t// General purpose preprocessing hook\r\n\t\t\tif (!$this->processPreprocess($request, $response)) {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\r\n\t\t\t//Identify the mapping for this request\r\n\t\t\t$mapping = $this->processMapping($request, $response, $path);\r\n\t\t\tif (is_null($mapping)) {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\r\n\t\t\t// Check for any role required to perform this action\r\n\t\t\tif (!$this->processRoles($request, $response, $mapping)) {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\r\n\t\t\t// Process any ActionForm bean related to this request\r\n\t\t\t$form = $this->processActionForm($request, $response, $mapping);\r\n\t\t\t$this->processPopulate($request, $response, $form, $mapping);\r\n\t\t\tif (!$this->processValidate($request, $response, $form, $mapping)) {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\r\n\t\t\t// Process a forward or include specified by this mapping\r\n\t\t\tif (!$this->processForward($request, $response, $mapping)) {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tif (!$this->processInclude($request, $response, $mapping)) {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\r\n\t\t\t// Create or acquire the Action instance to process this request\r\n\t\t\t$action = $this->processActionCreate($request, $response, $mapping);\r\n\t\t\tif (is_null($action)) {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\r\n\t\t\t// Call the Action instance itself\r\n\t\t\t$forward = $this->processActionPerform($request, $response, $action, $form, $mapping);\r\n\r\n\t\t\t// Process the returned ActionForward instance\r\n\t\t\t$this->processForwardConfig($request, $response, $forward);\r\n\t\t} catch (ServletException $e) {\r\n\t\t\tthrow $e;\r\n\t\t}\r\n\t}", "public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface\n {\n globalContainer()->setIsolatedContainer(new IsolatedContainer);\n\n $trackingContext = TrackingContext::fromRequest(\n transactionId: $request->getHeaderLine('x-transaction-id') ? Identity::fromString($request->getHeaderLine('x-transaction-id')) : Identity::create()\n );\n\n configureScope(function (\\Sentry\\State\\Scope $scope) use ($trackingContext): void {\n $scope->setTag('transaction_id', $trackingContext->transactionId()->toString());\n $scope->setTag('version.commit', env('COMMIT', '0.0.0'));\n $scope->setTag('version.tag', env('TAG_VERSION', '0.0.0'));\n $scope->setTag('version.release', env('RELEASE_VERSION', '0.0.0'));\n });\n\n // Make it Accesible in local isolated container\n container()->instance(TrackingContext::NAME, $trackingContext);\n\n return $handler->handle($request);\n }", "public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface\n {\n $data = [\n 'id' => $request->getAttribute('id'),\n 'data' => $request->getParsedBody(),\n ];\n\n $createCommand = $this->commandBus->create(UpdateCommand::class, $data);\n $commandResult = $this->commandBus->dispatch($createCommand);\n\n if (!$commandResult->isSuccessful()) {\n return new ApiErrorResponse('execution_error', $commandResult->messages());\n }\n\n return new ApiSuccessResponse(['id' => $data['id']]);\n }", "public function handle(ServerRequestInterface $request): ResponseInterface\n {\n if (0 === \\count($this->middlewares)) {\n return $this->defaultHandler->handle($request);\n }\n\n $middleware = $this->popMiddleware();\n\n if ($middleware instanceof MiddlewareInterface) {\n return $middleware->process($request, $this);\n }\n\n if (\\is_callable($middleware)) {\n return $middleware($request, $this->defaultHandler);\n }\n }", "public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface\n {\n if (!(new UsersUrl())->checkActionOnRequest('socialLogin', $request)) {\n return $handler->handle($request);\n }\n\n $service = (new ServiceFactory())->createFromRequest($request);\n if (!$service->isGetUserStep($request)) {\n return (new Response())\n ->withLocation($service->getAuthorizationUrl($request));\n }\n $request = $request->withAttribute(SocialAuthenticator::SOCIAL_SERVICE_ATTRIBUTE, $service);\n\n return $this->goNext($request, $handler);\n }", "public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface\n {\n $response = $handler->handle($request);\n\n $this->builder->compile();\n\n return $this->builder->injectCSPHeader($response, $this->legacy);\n }", "public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface\n {\n $ids = explode(',', (string) $request->getAttribute('ids'));\n\n $cards = $this->cardRepository->findById($ids);\n if (!$cards) {\n return $this->createError('No cards found in database for any of the ids: ' . implode(', ', $ids));\n }\n\n return $handler->handle($request->withAttribute('cards', $cards));\n }", "public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface\n {\n /** @var SessionInterface $session */\n $session = $request->getAttribute(SessionMiddleware::SESSION_ATTRIBUTE);\n /** @var array $serverParams */\n $serverParams = $request->getServerParams();\n\n $this->shibboleth($session, $serverParams);\n\n if ($session->has('user')) {\n $user = $this->userRepository->getOneById($session->get('user'));\n\n if ($user && $user->canLogin()) {\n User::setCurrent($user);\n }\n\n // If we were supposed to be logged in, but the user is not available anymore, that means the user\n // was forcibly logged out (likely deleted), so we clear his entire session\n if (!User::getCurrent()) {\n $session->clear();\n }\n }\n\n return $handler->handle($request);\n }", "abstract public function handle_request();", "public function handle(ServerRequestInterface $Request): ResponseInterface\n {\n // Last middleware in the queue has called on the request handler.\n if (0 === count($this->middleware_arr)) {\n return $this->DefaultRequestHandler->handle($Request);\n }\n\n $Middleware = array_shift($this->middleware_arr);\n new Event($this, '_before_middleware_process', [$Middleware] );\n $Response = $Middleware->process($Request, $this);\n new Event($this, '_after_middleware_process', [$Middleware] );\n return $Response;\n }", "public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface\n {\n try {\n switch ($request->getAttribute('type')) {\n case 'random':\n $password = $this->generateRandom(\n max(min((int)$request->getAttribute('length', 0), 256), 0),\n (array)$request->getAttribute('pattern', [])\n );\n break;\n case 'dictionary':\n $password = $this->generateDictionary(\n max(min((int)$request->getAttribute('words', 0), 16), 0),\n (bool)$request->getAttribute('camel', false),\n (bool)$request->getAttribute('space', false)\n );\n break;\n default:\n return $this->helper->create(422, ['message' => 'Der ausgewählte Modus ist nicht verfügbar.']);\n }\n if (!$password) {\n return $this->helper->create(\n 422,\n ['message' => 'Die aktuellen Einstellungen haben die Passworterstellung unterbunden.']\n );\n }\n return $this->helper->create(200, ['password' => $password]);\n } catch (\\Exception $e) {\n return $this->helper->create(\n 501,\n [\n 'message' => 'Bei der Zufallsgenerierung ist leider ein Fehler aufgetreten.',\n ]\n );\n }\n }", "public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface\n {\n if ($request->getAttribute('encrypted')) {\n $body = $request->getBody()->getContents();\n if (false !== $data = base64_decode($body)) {\n $stream = new Stream('php://memory', 'a+');\n $stream->write($data);\n $request = $request->withBody($stream);\n } else {\n return new JsonExceptionResponse(new DecryptionException());\n }\n }\n return $handler->handle($request);\n }", "public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface\n {\n if ($this->isInstagramAuthentificationRedirect($request)) {\n $this->tokenRepository = GeneralUtility::makeInstance(TokenRepository::class);\n $this->instagramRepository = GeneralUtility::makeInstance(InstagramRepository::class);\n $code = $request->getQueryParams()['code'];\n $tokenRecord = $this->tokenRepository->findLatestEmptyToken();\n $result = $this->instagramRepository->getLongLiveTokenResult(\n $tokenRecord['app_id'],\n $tokenRecord['app_secret'],\n $tokenRecord['app_return_url'],\n $code\n );\n $this->tokenRepository->updateToken(\n $tokenRecord['username'],\n $result['access_token'],\n $result['expires_in'],\n $result['user_id']\n );\n return new RedirectResponse('/', 301);\n }\n return $handler->handle($request);\n }", "public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface\n {\n $token = $request->getHeaderLine('authorization');\n if (empty($token)) {\n $token = $request->getParsedBody()['authorization'] ?? null;\n }\n\n if(!empty($token)) {\n $tokenExpire = false;\n try {\n $message = TokenGenerator::verifyToken($token, config('jwt_key', ''));\n } catch (ExpiredException $e) {\n $tokenExpire = true;\n $message = [];\n } catch (\\Throwable $e) {\n $message = [];\n }\n\n $request = $request->withAttribute('token_expire', $tokenExpire);\n $request = $request->withAttribute('user_id', $message['user_id'] ?? null);\n $request = $request->withAttribute('message', $message);\n\n Context::set(ServerRequestInterface::class, $request);\n }\n return $handler->handle($request);\n }", "public function handleRequest(ServerRequestInterface $request, ResponseInterface $response)\n {\n $this->emit(self::EVENT_REQUEST_RECEIVED, $request);\n\n $response = $this->getRouter()->dispatch(\n $request,\n $response\n );\n\n $this->emit(self::EVENT_RESPONSE_CREATED, $request, $response);\n\n return $response;\n }", "public function process(ServerRequestInterface $request, RequestHandlerInterface $handler) : ResponseInterface\n {\n $factory = $this->factory ? : new SessionFactory();\n $session = $factory->newInstance($request->getCookieParams());\n\n if ($this->name !== null) {\n $session->setName($this->name);\n }\n\n if ($this->config !== null) {\n $session->setSavePath($this->config['save_path']);\n $session->setCookieParams($this->config['cookie']);\n }\n\n $request = $request->withAttribute($this->attribute, $session);\n\n return $handler->handle($request);\n }", "public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface\n {\n $attribute = $request->getAttribute($this->options[self::OPT_ATTRIBUTE_TOKEN]);\n $path = $request->getUri()->getPath();\n $pos = strpos($path, $this->bundleRoute);\n\n if (is_null($attribute) || !isset($attribute['sub']) || ($pos === false || $pos > 0)) {\n return $handler->handle($request);\n }\n\n // If the subject is the OPA agent user, we provide the bundle\n if ($attribute['sub'] === $this->options[self::OPT_AGENT_USER]) {\n $bundleFile = $this->getBundle($request);\n $stream = $this->streamFactory->createStream($bundleFile);\n $response = $this->responseFactory->createResponse(200)\n ->withHeader('Content-Type', 'application/gzip')\n ->withBody($stream);\n return $response;\n }\n\n return $handler->handle($request);\n }", "public function handle(ServerRequestInterface $request): ResponseInterface\n {\n if (!empty($this->default) && empty($this->middlewares[$this->offset])) {\n $handler = App::getBean($this->default);\n } else {\n $handler = $this->middlewares[$this->offset];\n \\is_string($handler) && $handler = App::getBean($handler);\n }\n\n if (!$handler instanceof MiddlewareInterface) {\n throw new \\InvalidArgumentException('Invalid Handler. It must be an instance of MiddlewareInterface');\n }\n\n return $handler->process($request, $this->next());\n }", "public function handleRequest($request)\n {\n list ($route, $params) = $request->resolve();\n $this->requestedRoute = $route;\n $result = $this->runAction($route, $params);\n\n if ($result instanceof Response) {\n return $result;\n } elseif ($result instanceof Looper){\n $result->loop();\n\n $response = $this->getResponse();\n $response->exitStatus = 0;\n\n return $response;\n } else {\n $response = $this->getResponse();\n $response->exitStatus = $result;\n\n return $response;\n }\n }", "public function process(ServerRequestInterface $request): ResponseInterface\n {\n /** @var Middleware $middleware */\n $middleware = current($this->middlewares);\n next($this->middlewares);\n\n // return $middleware->process($request, $this);\n try {\n $response = $middleware->process($request, $this);\n } catch (Throwable $error) {\n // next lines\n }\n if (!isset($response)) {\n $response = App::response();\n }\n\n if (isset($error) && $response instanceof Response) {\n $response->setError($error);\n }\n return $response;\n }", "protected abstract function handleRequest();", "public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface\n {\n $token = $this->prepareToken($request);\n\n // CSRF issues must be handled by the CsrfProtection middleware.\n $response = $handler->handle($request->withAttribute(static::ATTRIBUTE, $token));\n\n // Attach/Refresh the token cookie for the \"next\" request call.\n $cookie = $this->createCookie($token);\n\n return $response->withAddedHeader('Set-Cookie', (string) $cookie); // TODO : créer une méthode return $this->withCsrfTokenCookie($response, $token):ResponseInterface qui se charge d'attacher le cookie à la réponse et à retourner le nouvel objet $response actualisé.\n }", "abstract public function handleRequest($request);", "public function handle(ServerRequestInterface $request): ResponseInterface {\n $dispatcher = null;\n if ($this->container->has(DispatcherInterface::class)) {\n /** @noinspection PhpUnhandledExceptionInspection */\n $dispatcher = $this->container->get(DispatcherInterface::class);\n } else {\n $dispatcher = new DefaultDispatcher(\n $this->rootNode,\n $this->actions,\n $this->pathExtractor,\n $this->logger\n );\n }\n\n $this->logger->debug(\n '{tag} Created dispatcher, calling dispatch with supplied request.',\n ['tag' => self::LOG_TAG]\n );\n\n return $dispatcher->dispatch(\n $request->getMethod(),\n $request->getUri()->getPath()\n )->handle($request);\n }", "public function handle(ServerRequestInterface $request): ResponseInterface\n {\n $body = $request->getParsedBody();\n\n $method = strtoupper($body[self::METHOD_INPUT_KEY] ?? $request->getMethod());\n\n $request = $request->withMethod($method);\n\n return ($this->factory)()->match($request)->handle($request);\n }", "public function process(ServerRequestInterface $request, RequestHandlerInterface $next): ResponseInterface\n {\n // identify object requests and set request attributes\n $request = static::matchRequest($request);\n\n // check only the request attributes relevant for object request\n $allowed = array_flip($this->attributes);\n $attribs = array_intersect_key($request->getAttributes(), $allowed);\n\n // pass the request along to the next handler and return its response\n if (empty($attribs['object'])) {\n $response = $next->handle($request);\n return $response;\n }\n\n // handle the object request here and return our response\n\n // @checkme keep track of the current base uri if filtered in router\n static::setBaseUri($request);\n // set current module to 'object' for Xaraya controller - used e.g. in xarMod::getName() in DD list\n static::prepareController('object', static::$baseUri);\n\n // add remaining query params to request attributes\n $params = array_merge($attribs, $request->getQueryParams());\n // add body params to query params (if any) - limited to POST requests here\n if ($request->getMethod() === 'POST') {\n $input = $request->getParsedBody();\n if (!empty($input) && is_array($input)) {\n $params = array_merge($params, $input);\n }\n }\n\n // @checkme pass along buildUri() as link function to DD\n $params['linktype'] = 'other';\n $params['linkfunc'] = [static::class, 'buildUri'];\n\n $response = $this->run($params);\n\n // clean up routes for object requests in response output\n //$response = static::cleanResponse($response, $this->getResponseFactory());\n\n return $response;\n }", "public function processRequest() {\r\n switch($this->requestMethod) {\r\n case 'GET':\r\n if($this->id) {\r\n $response = $this->get($this->id);\r\n }\r\n else {\r\n $response = $this->getAll();\r\n }\r\n break;\r\n case 'POST':\r\n $response = $this->create();\r\n break;\r\n case 'PUT':\r\n $response = $this->update($this->id);\r\n break;\r\n case 'DELETE':\r\n $response = $this->delete($this->id);\r\n break;\r\n case 'OPTIONS':\r\n break;\r\n default:\r\n $response = $this->notFoundResponse();\r\n break;\r\n }\r\n\r\n header($response['status_code_header']);\r\n\r\n // If there is a body then echo it\r\n if($response['body']) {\r\n echo $response['body'];\r\n }\r\n }", "public function onRequest(ServerRequestInterface $request): ResponseInterface\n {\n return $this->handle($request);\n }", "public function handle(ServerRequestInterface $request)\n {\n $router = $this->app->get(RouterInterface::class);\n $response = $router->route($request);\n\n if (! headers_sent()) {\n\n // Status\n header(sprintf(\n 'HTTP/%s %s %s',\n $response->getProtocolVersion(),\n $response->getStatusCode(),\n $response->getReasonPhrase()\n ));\n\n // Headers\n foreach ($response->getHeaders() as $name => $values) {\n foreach ($values as $value) {\n header(sprintf('%s: %s', $name, $value), false);\n }\n }\n }\n\n echo $response->getBody()->getContents();\n }", "function handleRequest (&$request, &$context) {\n\n\t\t/* cycle through our process callback queue. using each() vs.\n\t\t * foreach, etc. so we may add elements to the callback array\n\t\t * later. probably primarily used for conditional callbacks. */\n\t\treset ($this->_processCallbacks);\n\t\twhile ($c = each ($this->_processCallbacks)) {\n\n\t\t\t// test for a successful view dispatch\n\t\t\tif ($this->_processProcess ($this->_processCallbacks[$c['key']],\n\t\t\t $request,\n\t\t\t $context))\n\t\t\t\treturn;\n\t\t}\n\n\t\t// if no view has been found yet attempt our default\n\t\tif ($this->defaultViewExists ())\n\t\t\t$this->renderDefaultView ($request, $context);\n\t}", "public abstract function processRequest();", "abstract public function processRequest();", "protected function goNext(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface\n {\n try {\n return $handler->handle($request);\n } catch (SocialAuthenticationException $exception) {\n return $this->onAuthenticationException($request, $exception);\n }\n }", "public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface\n {\n // invalid characters, and many other things, but to implement all these the way Laravel does in\n // form requests for example would take quite a lot of time - so let's keep it simple with only exists()\n\n $requiredKeys = [\n 'name',\n 'email',\n 'state'\n ];\n\n $json = $request->getParsedBody();\n\n $missingParamsDiff = array_diff($requiredKeys, array_keys($json));\n $extraParamsDiff = array_diff(array_keys($json), $requiredKeys);\n\n if ($request->getMethod() === 'POST' and count($missingParamsDiff) > 0) {\n throw new BadRequestException(\n 'The following keys are missing from the request: '\n . implode(', ', $missingParamsDiff)\n );\n }\n\n if (count($extraParamsDiff) > 0) {\n throw new BadRequestException(\n 'Too many keys have been provided, please use only the following keys: '\n . implode(', ', $requiredKeys)\n );\n }\n\n $validStateOptions = ['active', 'unsubscribed', 'junk', 'bounced', 'unconfirmed'];\n if (!empty($state) and !in_array($json['state'], $validStateOptions)) {\n throw new BadRequestException(\n 'Invalid state parameter value, valid options are: '\n . implode(', ', $validStateOptions)\n );\n }\n\n // Sanity check for emails. There will be another one for the domain before we create the record\n if (!empty($json['email'])) {\n $email = $json['email'];\n if (filter_var($email, FILTER_VALIDATE_EMAIL) === false) {\n throw new BadRequestException(\n 'The provided email is invalid'\n );\n }\n }\n\n return $handler->handle($request);\n }", "final public function handle(Request $request)\n {\n $response = $this->process($request);\n if (($response === null) && ($this->successor !== null)) {\n $response = $this->successor->handle($request);\n }\n\n return $response;\n }", "public function handle(ServerRequestInterface $request): ResponseInterface\n {\n $response = $this->getMiddlewarePipe()->handle($request);\n return $response;\n }", "public function __invoke(ServerRequestInterface $request, ResponseInterface $response, callable $next);", "public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface\n {\n $this->textColor = $request->getAttribute('textColor', $this->textColor);\n $this->backgroundColor = $request->getAttribute('backgroundColor', $this->backgroundColor);\n $cards = $request->getAttribute('cards');\n //w(count($cards));\n $title = 'DILPS ' . date('c', time());\n $presentation = $this->export($cards, $title);\n\n // Write to disk\n $tempFile = tempnam('data/tmp/', 'pptx');\n $writer = new PowerPoint2007($presentation);\n $writer->save($tempFile);\n\n $headers = [\n 'content-type' => 'application/vnd.openxmlformats-officedocument.presentationml.presentation',\n 'content-length' => filesize($tempFile),\n 'content-disposition' => 'inline; filename=\"' . $title . '.pptx\"',\n ];\n $stream = new TemporaryFile($tempFile);\n $response = new Response($stream, 200, $headers);\n\n return $response;\n }", "public function process(\n ServerRequestInterface $request,\n DelegateInterface $frame\n );", "public function process(ServerRequestInterface $request)\n {\n }", "public function handle(ServerRequestInterface $request): ResponseInterface\n {\n $response = $this->getMiddlewarePipe()->handle($request);\n\n return $response;\n }", "public function handle(): void\n {\n $globals = $_SERVER;\n //$SlimPsrRequest = ServerRequestFactory::createFromGlobals();\n //it doesnt matters if the Request is of different class - no need to create Guzaba\\Http\\Request\n $PsrRequest = ServerRequestFactory::createFromGlobals();\n //the only thing that needs to be fixed is the update the parsedBody if it is NOT POST & form-fata or url-encoded\n\n\n //$GuzabaPsrRequest =\n\n //TODO - this may be reworked to reroute to a new route (provided in the constructor) instead of providing the actual response in the constructor\n $DefaultResponse = $this->DefaultResponse;\n //TODO - fix the below\n// if ($PsrRequest->getContentType() === ContentType::TYPE_JSON) {\n// $DefaultResponse->getBody()->rewind();\n// $structure = ['message' => $DefaultResponse->getBody()->getContents()];\n// $json_string = json_encode($structure, JSON_UNESCAPED_SLASHES);\n// $StreamBody = new Stream(null, $json_string);\n// $DefaultResponse = $DefaultResponse->\n// withBody($StreamBody)->\n// withHeader('Content-Type', ContentType::TYPES_MAP[ContentType::TYPE_JSON]['mime'])->\n// withHeader('Content-Length', (string) strlen($json_string));\n// }\n\n $FallbackHandler = new RequestHandler($DefaultResponse);//this will produce 404\n $QueueRequestHandler = new QueueRequestHandler($FallbackHandler);//the default response prototype is a 404 message\n foreach ($this->middlewares as $Middleware) {\n $QueueRequestHandler->add_middleware($Middleware);\n }\n $PsrResponse = $QueueRequestHandler->handle($PsrRequest);\n $this->emit($PsrResponse);\n\n }", "abstract protected function process(Request $request);", "public function processRequest() {\n $this->server->service($GLOBALS['HTTP_RAW_POST_DATA']);\n }", "public function handle($request)\n {\n $this->setRouter($this->app->compose('Cygnite\\Base\\Router\\Router', $request), $request);\n\n try {\n $response = $this->sendRequestThroughRouter($request);\n /*\n * Check whether return value is a instance of Response,\n * otherwise we will try to fetch the response form container,\n * create a response and return to the browser.\n *\n */\n if (!$response instanceof ResponseInterface && !is_array($response)) {\n $r = $this->app->has('response') ? $this->app->get('response') : '';\n $response = Response::make($r);\n }\n } catch (\\Exception $e) {\n $this->handleException($e);\n } catch (Throwable $e) {\n $this->handleException($e);\n }\n\n return $response;\n }", "public function handle(string $query, ServerRequestInterface $request);", "public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface\n {\n $user = $this->auth->getUser();\n if (is_null($user)) {\n throw new ForbiddenException();\n }\n return $handler->handle($request->withAttribute('user', $user));\n }", "public function onRequest(Client $client, ServerRequestInterface $request, ResponseInterface $response): ResponseInterface\n {\n return $this->handle($request);\n }", "public function processRequest()\n\t\t{\n\t\t\t$request_method = strtolower($_SERVER['REQUEST_METHOD']);\n\t\t\tswitch ($request_method)\n\t\t\t{\n\t\t\t\tcase 'get':\n\t\t\t\t\t$data = $_GET['url'];\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'post':\n\t\t\t\t\t$data = $_GET['url'];\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\t$request_parts = explode('/', $data);\n\t\t\t$controller = $request_parts[0];\n\t\t\tswitch ($controller)\n\t\t\t{\n\t\t\t\tcase 'ad':\n\t\t\t\t\tprocessAdRequest(substr($data, strlen('ad')+1));\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'category':\n\t\t\t\t\tprocessCategoryRequest(substr($data, strlen('category')+1));\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'user':\n\t\t\t\t\tprocessUserRequest(substr($data, strlen('user')+1));\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\techo \"Invalid Request!\";\n\t\t\t\t\tbreak;\n\t\t\t}\n\n\t\t}", "public function processRequest(ServerRequestInterface $request, ResponseInterface $response)\n {\n $this->requestFactory->registerCurrentRequest($request);\n $this->objectManager->reassignRequest();\n\n return $this->dispatch($this->requestFactory->getRequest(), $response);\n }", "public function dispatch(ServerRequestInterface $request): ResponseInterface\n {\n $response = (new MiddlewareHandler($this->populateMiddleware($this->route->getMiddleware()), $this))->handle($request);\n \n\n if (!empty($this->route->getAfter())) {\n foreach ($this->route->getAfter() as $callback) {\n $this->call($callback, $request, $this->route->getArguments($request), $response);\n }\n }\n\n return $response;\n }", "public function process(ServerRequestInterface $httpRequest, RequestHandlerInterface $next): ResponseInterface\n {\n $widgetContext = $this->extractWidgetContext($httpRequest);\n if ($widgetContext === null) {\n return $next->handle($httpRequest);\n }\n\n $actionRequest = $this->actionRequestFactory->createActionRequest($httpRequest, ['__widgetContext' => $widgetContext]);\n $actionRequest->setControllerObjectName($widgetContext->getControllerObjectName());\n $this->securityContext->setRequest($actionRequest);\n\n $actionResponse = new ActionResponse();\n\n $this->dispatcher->dispatch($actionRequest, $actionResponse);\n\n return $actionResponse->buildHttpResponse();\n }", "private function _handleMethod($serverRequest) {\n\t\t$this->_verifyAllowedMethod($serverRequest->getMethod());\n\t\t\n\t\tswitch ($serverRequest->getMethod()) {\n\t\t\tcase 'GET':\n\t\t\t\treturn $this->_get($serverRequest);\n\t\t\tcase 'HEAD':\n\t\t\t\treturn $this->_head($serverRequest);\n\t\t\tcase 'POST':\n\t\t\t\treturn $this->_post($serverRequest);\n\t\t\tcase 'PUT':\n\t\t\t\treturn $this->_put($serverRequest);\n\t\t\tcase 'DELETE':\n\t\t\t\treturn $this->_delete();\n\t\t\tcase 'OPTIONS':\n\t\t\t\treturn $this->_options($serverRequest);\n\t\t\tdefault:\n\t\t\t\treturn new Response(501);\n\t\t}\n\t}", "public function processRequest();", "public function handle(Request $request, Response $response) {\n\t\t$handler = $this->getHandler($request);\n\n\t\tif (null == $handler) {\n\t\t\t$response->setStatusCode(404);\n\t\t\t$response->setContent('Doh, wrong url.');\n\t\t\treturn $response;\n\t\t}\n\n\t\t// something for simple DI\n\t\t$handler->setContainer($this);\n\n\t\t$handler->processHttp($request, $response);\n\t\treturn $response;\n\t}", "public function handleRequest();", "public function handleRequest();", "public function handleRequest();", "public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface\n {\n $this->includeLegend = (bool) $request->getAttribute('includeLegend', $this->includeLegend);\n $this->maxHeight = (int) $request->getAttribute('maxHeight', $this->maxHeight);\n $cards = $request->getAttribute('cards');\n\n // Write to disk\n $tempFile = tempnam('data/tmp/', 'zip');\n $title = 'DILPS ' . date('c', time());\n $this->export($cards, $tempFile);\n\n $headers = [\n 'content-type' => 'application/zip',\n 'content-length' => filesize($tempFile),\n 'content-disposition' => 'inline; filename=\"' . $title . '.zip\"',\n ];\n $stream = new TemporaryFile($tempFile);\n $response = new Response($stream, 200, $headers);\n\n return $response;\n }", "public function processRequest(ServerRequestInterface $request, ResponseInterface $response)\n {\n return $this->dispatcher->processRequest($request, $response);\n }", "public function handleRequest() {\n // Make sure the action parameter exists\n $this->requireParam('action');\n\n // Call the correct handler based on the action\n switch($this->requestBody['action']) {\n\n case 'checkoutLocker':\n $this->handleCheckoutLocker();\n\t\t\t\tbreak;\n\n\t\t\tcase 'remindLocker':\n $this->handleRemindLocker();\n\t\t\t\tbreak;\n\n\t\t\tcase 'returnLocker':\n $this->handleReturnLocker();\n\t\t\t\tbreak;\n\n default:\n $this->respond(new Response(Response::BAD_REQUEST, 'Invalid action on Locker resource'));\n }\n }", "public function handle($request);", "abstract public function handleRequest(Request $request);", "protected function _handle()\n {\n return $this\n ->_addData('post', $_POST)\n ->_addData('get', $_GET)\n ->_addData('server', $_SERVER)\n ->_handleRequestRoute();\n }", "function handleRequest() ;", "public function processRequest(): ResponseInterface\n {\n $routes = $this->bs->routes();\n $request = new Request($this->bs->globals());\n $routingEngine = new RoutingEngine($routes);\n $result = $routingEngine->resolve(\n $request->method(),\n $request->uri()\n );\n if($result === null) {\n return new TextResponse(\"404 page not found\");\n }\n $requestHandler = new RequestHandler(\n $this,\n $request,\n $this->bs->middlewares(),\n $result\n );\n $response = $requestHandler->handleRequest();\n return $response;\n }", "public static function process_http_request()\n {\n }", "public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface\n {\n try {\n $group = $this->repo->getGroup($request->getAttribute('id'));\n return $this->helper->create(200, $group);\n } catch (RepoException $e) {\n return $this->helper->create($e->getCode(), ['message' => $e->getMessage()]);\n }\n }", "public function __invoke(\n RequestInterface $request,\n ResponseInterface $response,\n DelegateInterface $next = null\n )/*# : ResponseInterface */ {\n return $this->process($request, $response, $next);\n }", "protected function handle(\n Action $action,\n ServerRequestInterface $request,\n ResponseInterface $response\n ) {\n /** @var DomainInterface $domain */\n $domain = $this->resolve($action->getDomainClassName());\n /** @var InputInterface $input */\n $input = $this->resolve($action->getInputClassName());\n /** @var ResponderInterface $responder */\n $responder = $this->resolve($action->getResponderClassName());\n $payload = $this->payload($domain, $input, $request);\n $response = $this->response($responder, $request, $response, $payload);\n\n return $response;\n }" ]
[ "0.78518313", "0.7815523", "0.7815523", "0.7807829", "0.770576", "0.73984116", "0.7376643", "0.73752916", "0.73495823", "0.73490715", "0.7059428", "0.7042327", "0.6922202", "0.69030356", "0.6824123", "0.6822053", "0.67798895", "0.66922975", "0.66911954", "0.66202915", "0.6594084", "0.65759176", "0.65573835", "0.65493417", "0.65378386", "0.6507969", "0.6457724", "0.64397293", "0.6421686", "0.6361166", "0.63396305", "0.63284343", "0.63128006", "0.6263434", "0.6242876", "0.6232732", "0.6230638", "0.621425", "0.6201969", "0.6201501", "0.6170469", "0.6145034", "0.61351854", "0.6133759", "0.6107077", "0.6097988", "0.6093707", "0.60925925", "0.60744953", "0.6072366", "0.6064818", "0.60645735", "0.6025645", "0.6015141", "0.6006465", "0.60031927", "0.5964866", "0.5938527", "0.5929648", "0.59027106", "0.58855224", "0.58853793", "0.58786327", "0.5872779", "0.58601177", "0.58586943", "0.58583236", "0.58242697", "0.5824066", "0.5815166", "0.58103806", "0.57987326", "0.5795932", "0.5788845", "0.5773803", "0.57596445", "0.57564723", "0.57338816", "0.5733603", "0.5722724", "0.5722054", "0.57063127", "0.5704381", "0.5687732", "0.56812936", "0.5674204", "0.5674204", "0.5674204", "0.5659565", "0.56404084", "0.5638885", "0.5605776", "0.55984694", "0.5597024", "0.55829316", "0.55824304", "0.55714864", "0.55509806", "0.55236053", "0.5521733" ]
0.7452153
5
Sends GET request to the provided URL and stores received HTML
public function visit(string $url) : self { $this->html = $this->client->get($url); return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function fetchHTML($url) {\n\t\t$contents = '';\n\t\t\n\t\tini_set('user_agent', 'User-Agent: ' . self::$agent_name);\n\t\t\n\t\tif(($fp = @fopen($url, 'r'))) {\n\t\t\twhile($data = fread($fp, 1024)) $contents .= $data;\n\t\t\t\n\t\t\tfclose($fp);\n\t\t} elseif($url_info = parse_url($url)) {\n\t\t\t$port = isset($url_info['port']) ? $url_info['port'] : 80;\n\t\t\t\n\t\t\tif($url_info['scheme'] == 'https') {\n\t\t\t\t$fp = fsockopen('ssl://' . $url_info['host'], 443, $errno, $errstr, 30);\n\t\t\t} else {\n\t\t\t\t$fp = fsockopen($url_info['host'], $port, $errno, $errstr, 30);\n\t\t\t}\n\t\t\t\n\t\t\tif(!$fp) {\n\t\t\t\techo \"$errstr ($errno)\\r\\n\";\n\t\t\t} else {\n\t\t\t\t$out = 'HEAD ' . (isset($url_info['path']) ? $url_info['path'] : '/') .\n\t\t\t\t\t(isset($url_info['query']) ? '?' . $url_info['query']: '') .\n\t\t\t\t\t\" HTTP/1.1\\r\\n\";\n\t\t\t\t\n\t\t\t\t$out .= 'Host: ' . $url_info['host'] . \"\\r\\n\";\n\t\t\t\t$out .= 'User-Agent: ' . self::$agent_name . \"\\r\\n\";\n\t\t\t\t$out .= \"Connection: Close\\r\\n\\r\\n\";\n\t\t\t\t\n\t\t\t\tfwrite($fp, $out);\n\t\t\t\t\n\t\t\t\twhile(!feof($fp)) $contents .= fgets($fp, 128);\n\t\t\t\t\n\t\t\t\tfclose($fp);\n\t\t\t\t\n\t\t\t\tlist($headers, $content) = explode(\"\\r\\n\\r\\n\", $contents, 2);\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn $contents;\n\t}", "public function connectAndGetHTML($url)\r\n\t{\r\n\t\t$this->setURL($url);\r\n\r\n\t\t$html = $this->executeRequest();\r\n\r\n\t\treturn $html;\r\n\t}", "public function get($url);", "public function urlGetContent($aURL){\n\t\t$tmp=file_get_contents($aURL);\n\t\t$this->regHtml=$tmp;\n\t}", "protected function get_html_from_url($url){\r\n\t\t$ch = curl_init();\r\n\t\tcurl_setopt($ch, CURLOPT_URL, $url); \r\n\t\t// curl_setopt($ch, CURLOPT_HEADER, false); \r\n\t\tcurl_setopt($ch, CURLOPT_HTTPHEADER, array(\r\n \t\t'Content-Type: text/html; charset=UTF-8',\r\n \t\t'Accept-Language: en-US,en;q=0.5'\r\n \t));\r\n\t\tcurl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); //echo if 0 \r\n\t\t$html = curl_exec($ch);\r\n\t\tcurl_close($ch);\r\n\t\treturn $html;\r\n\t\r\n\t}", "function get_content($request_url)\n{\n $output_type = strtolower(getRequestParam(\"type\", \"html\"));\n\n // 如果 URL 参数不正确,则跳转到首页\n if (!preg_match('/^http:\\/\\//i', $request_url) ||\n !filter_var($request_url, FILTER_VALIDATE_URL, FILTER_FLAG_SCHEME_REQUIRED)) {\n include 'template/index.html';\n exit;\n }\n\n $request_url_hash = md5($request_url);\n $request_url_cache_file = sprintf(DIR_CACHE.\"/%s.url\", $request_url_hash);\n\n // 缓存请求数据,避免重复请求\n if (file_exists($request_url_cache_file) && \n (time() - filemtime($request_url_cache_file) < CACHE_TIME)) {\n\n $source = file_get_contents($request_url_cache_file);\n } else {\n\n $handle = curl_init();\n curl_setopt_array($handle, array(\n CURLOPT_USERAGENT => USER_AGENT,\n CURLOPT_FOLLOWLOCATION => true,\n CURLOPT_HEADER => false,\n CURLOPT_HTTPGET => true,\n CURLOPT_RETURNTRANSFER => true,\n CURLOPT_TIMEOUT => 30,\n CURLOPT_URL => $request_url\n ));\n\n $source = curl_exec($handle);\n curl_close($handle);\n\n // Write request data into cache file.\n @file_put_contents($request_url_cache_file, $source);\n }\n\n // 判断编码\n //if (!$charset = mb_detect_encoding($source)) {\n //}\n preg_match(\"/charset=([\\w|\\-]+);?/\", $source, $match);\n $charset = isset($match[1]) ? $match[1] : 'utf-8';\n\n /**\n * 获取 HTML 内容后,解析主体内容\n */\n $Readability = new Readability($source, $charset);\n $Data = $Readability->getContent();\n\n switch($output_type) {\n case 'json':\n header(\"Content-type: text/json;charset=utf-8\");\n $Data['url'] = $request_url;\n echo json_encode($Data);\n break;\n\n case 'html': default:\n header(\"Content-type: text/html;charset=utf-8\");\n $title = $Data['title'];\n $content = $Data['content'];\n\n return array(\"title\"=>$title,\"content\"=>$content);\n // include 'template/reader.html';\n }\n}", "function fetch($url){\n curl_setopt($this-> ch,CURLOPT_URL, $url);\n curl_setopt($this-> ch,CURLOPT_COOKIE, \"./cookie.txt\"); \n curl_setopt($this-> ch,CURLOPT_FOLLOWLOCATION, true);\n return $this-> html = curl_exec($this-> ch);\n }", "function httpGET($url = '/', $headers = '') {\n $this->ensureOpened(__FUNCTION__);\n ($headers = trim($headers)) === '' or $headers .= \"\\r\\n\";\n\n // Note: in HTTP/1.1 Connection defaults to Keep Alive which will keep\n // the connection hanging unless you send 'Connection: close'. Its output\n // also changes due to chunked transfer encoding.\n $headers = \"GET $url HTTP/1.0\\r\\n\".\n $headers.\"\\r\\n\";\n\n $this->write($headers);\n return $this->readAll();\n }", "function get_remote_html($url) {\r\n\r\n\t$ch = curl_init($url);\r\n\tcurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\r\n\tcurl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);\r\n\tcurl_setopt($ch, CURLOPT_VERBOSE, true); \r\n\tcurl_setopt($ch, CURLOPT_HEADER, true);\r\n\r\n\t$response = curl_exec($ch);\r\n\r\n\tlist($header, $body) = explode(\"\\r\\n\\r\\n\", $response, 2);\r\n\r\n\treturn array( 'header' => $header, 'body' => $body );\r\n\r\n}", "public function get()\n {\n \n $res = $this->server->get($this->url_key);\n if ($res === false) {\n curl_setopt($this->curl, CURLOPT_URL, $this->url);\n curl_setopt($this->curl, CURLOPT_RETURNTRANSFER, true);\n curl_setopt($this->curl, CURLOPT_FILETIME, true);\n curl_setopt($this->curl, CURLOPT_AUTOREFERER, true);\n curl_setopt($this->curl, CURLOPT_FOLLOWLOCATION, true);\n curl_setopt($this->curl, CURLOPT_MAXREDIRS, 6);\n curl_setopt($this->curl, CURLOPT_USERAGENT, \"Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_2; en-us) AppleWebKit/531.21.8 (KHTML, like Gecko) Version/4.0.4 Safari/531.21.10\");\n \n $html = curl_exec($this->curl);\n // print_r(htmlentities($body));\n curl_close($this->curl);\n \n $tidy_config = array(\n 'clean' => true,\n 'output-html'=>true,\n 'wrap' => 78,\n 'quiet'=>1\n );\n\n $tidy = new tidy;\n $tidy->parseString($html, $tidy_config);\n $tidy->cleanRepair();\n\n $html = $tidy->html()->value;\n\n // Buffer DOM errors rather than emitting them as warnings\n $oldSetting = libxml_use_internal_errors(true);\n\n $dom = new DOMDocument();\n $dom->loadHTML($html);\n \n $xpath = new DOMXPath($dom);\n $titles = $xpath->evaluate('//*[name()=\"title\"]');\n $title = $titles->item(0)->nodeValue;\n \n // Clear any existing errors from previous operations\n libxml_clear_errors();\n\n // Revert error buffering to its previous setting\n libxml_use_internal_errors($oldSetting);\n \n \n $res = array('title'=>$title);\n \n $res = json_encode($res);\n $this->server->add($this->url_key, $res, MEMCACHE_COMPRESSED, self::CACHE_LIMIT);\n }\n\n \n return json_decode($res, TRUE);\n }", "public function get($url) {\n $request = $this->getRequest($url, HttpRequest::METH_GET);\n try {\n // this could be parametrized using optional options interface\n $options = array(\n 'useragent' => \"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; InfoPath.1; MS-RTC LM 8)\",\n 'connecttimeout' => 120, // timeout in seconds on connect \n 'timeout' => 120, // timeout in seconds on response \n 'redirect' => 5, // stop after 5 redirects\n 'compress' => true, // allow compression or not\n 'referer' => \"https://www.google.com/#output=search&sclient=psy-ab&q=jachty&fp=1\",\n );\n $request->setOptions($options);\n $request->send();\n } catch (Exception $e) {\n throw new Exception('Loading failed with exception', $request->getResponseCode(), $e);\n }\n $code = $request->getResponseCode();\n $body = $request->getResponseBody();\n\n // make sure we did not fail\n if ($code >= 500) {\n throw new Exception('Error response code recieved: ' . $body, $code);\n } elseif ($code >= 400) {\n throw new Exception('Permanent failure' . $body, $code);\n } elseif (trim($body) == '') {\n throw new Exception('Empty response', $code);\n }\n\n return $body;\n }", "protected function getCurrentHTML($url) {\n\t\treturn file_get_contents($url);\n\t}", "function get($url) {\n $_url = $url;\n $this->_start($_url);\n\n try {\n // Remove the slashes that get added here: See http://mantis.digipowers.com/view.php?id=1974\n $_POST = $this->_strip_deep2($_POST);\n // Enable output buffering\n ob_start();\n require_once($this->cakePath . DIRECTORY_SEPARATOR . 'index.php');\n $html = ob_get_clean();\n\n // Commit any $_SESSION changes\n session_write_close();\n\n $result = $this->_finish($html);\n } catch (exception $e) {\n // Unusual HTTP response codes, such as hard 404's, will throw exceptions. Show the details if we're in WP_DEBUG\n $result = $this->_defaultContentArray;\n if (WP_DEBUG) {\n $result['body'] = sprintf(\"<div style='border:1px solid #999;padding:10px;background:#eee'><p style='color:red;font-weight:bold'>%s</p> \n <p>URL: %s</p> \n <p>File: %s:%s</p> \n <pre>%s</pre></div>\", $e->getMessage(), $_url, $e->getFile(), $e->getLine(), $e->getTraceAsString());\n } else {\n // http://wordpress.stackexchange.com/questions/73738/how-do-i-programmatically-generate-a-404\n add_action('wp', function () {\n global $wp_query;\n $wp_query->set_404();\n header(\"HTTP/1.0 404 Not Found\");\n // Didn't see this way documented but it seems to do the trick\n $wp_query->post_count = 0;\n });\n }\n }\n return $result;\n }", "public static function Get($url)\r\n {\r\n return self::doRequest('GET', $url);\r\n }", "public function request($url);", "function getPage($url){\n //use curl since we need to set a cookie\n $c = curl_init($url);\n curl_setopt($c, CURLOPT_VERBOSE, 1);\n curl_setopt($c, CURLOPT_COOKIE, $this->cookie);\n curl_setopt($c, CURLOPT_RETURNTRANSFER, 1);\n $page = curl_exec($c);\n curl_close($c);\n $c = null;\n $html = str_get_html($page); //simplehtmldom method\n return $html;\n }", "protected function loadHtml()\n {\n $this->html = $this->fsio->get($this->page->getTarget());\n }", "public function fetch($url);", "protected function handleGET() {\n /* ... Do the stuff ... */\n\n return $this->render('default.html', array());\n }", "public function Get( $sUrl );", "private function sendGetRequest($url)\n {\n // Send the request and process the response\n $guzzleResponse = $this->client->request('GET', $url);\n $this->lastResponse = new SmartwaiverResponse($guzzleResponse);\n }", "function getHTML($url,$timeout)\n{\n $ch = curl_init($url); // initialize curl with given url\n curl_setopt($ch, CURLOPT_USERAGENT, $_SERVER[\"HTTP_USER_AGENT\"]); // set useragent\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); // write the response to a variable\n curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true); // follow redirects if any\n curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $timeout); // max. seconds to execute\n curl_setopt($ch, CURLOPT_FAILONERROR, 1); // stop when it encounters an error\n return @curl_exec($ch);\n}", "function get_web_page( $url ) {\n\n $user_agent='Mozilla/5.0 (Windows NT 6.1; rv:8.0) Gecko/20100101 Firefox/8.0';\n $options = array(\n CURLOPT_CUSTOMREQUEST =>\"GET\", //set request type post or get\n CURLOPT_POST =>false, //set to GET\n CURLOPT_USERAGENT => $user_agent, //set user agent\n CURLOPT_COOKIEFILE =>\"cookie.txt\", //set cookie file\n CURLOPT_COOKIEJAR =>\"cookie.txt\", //set cookie jar\n CURLOPT_RETURNTRANSFER => true, // return web page\n CURLOPT_HEADER => false, // don't return headers\n CURLOPT_FOLLOWLOCATION => true, // follow redirects\n CURLOPT_ENCODING => \"\", // handle all encodings\n CURLOPT_AUTOREFERER => true, // set referer on redirect\n CURLOPT_CONNECTTIMEOUT => 120, // timeout on connect\n CURLOPT_TIMEOUT => 120, // timeout on response\n CURLOPT_MAXREDIRS => 10, // stop after 10 redirects\n );\n\n $ch = curl_init( $url );\n curl_setopt_array( $ch, $options );\n\t\tcurl_setopt($curl, CURLOPT_HTTPHEADER, array(\n\t\t\t\"Accept-Charset\" => \"ISO-8859-1,utf-8;q=0.7,*;q=0.7\",\n\t\t\t\"Keep-Alive\" => \"115\",\n\t\t\t\"Connection\" => \"keep-alive\",\n\t\t\t\"X-Requested-With\" => \"XMLHttpRequest\"\n\t\t));\n $content = curl_exec( $ch );\n $err = curl_errno( $ch );\n $errmsg = curl_error( $ch );\n $header = curl_getinfo( $ch );\n curl_close( $ch );\n $header['errno'] = $err;\n $header['errmsg'] = $errmsg;\n $header['content'] = $content;\n return $header;\n }", "function fetchPage($url)\r\n\t{\r\n\t\t$url_parsed = parse_url($url);\r\n\t\t$host = $url_parsed[\"host\"];\r\n\t\t$port = $url_parsed[\"port\"];\r\n\t\tif ($port==0)\r\n\t\t\t$port = 80;\r\n\t\t$path = $url_parsed[\"path\"];\r\n\r\n\t\tif (empty($path))\r\n\t\t$path=\"/\";\r\n\r\n\t\t//add on any query string\r\n\t\tif ($url_parsed[\"query\"] != \"\")\r\n\t\t\t$path .= \"?\".$url_parsed[\"query\"];\r\n\r\n\t\t//open the socket and send our HTTP request\r\n\t\t$fp = fsockopen($host, $port, $errno, $errstr, 30);\r\n\t\tif ($fp)\r\n\t\t{\r\n\t\t\t$out = \"GET $path HTTP/1.0\\r\\nHost: $host\\r\\n\\r\\n\";\r\n\t\t\tfwrite($fp, $out);\r\n\r\n\t\t\twhile (!feof($fp))\r\n\t\t\t{\r\n\t\t\t\t$output=fgets($fp, 255);\r\n\t\t\t\t$content.=$output;\r\n\r\n\t\t\t\t//determine whether we have reached the end of the header section\r\n\t\t\t\tif (!isset($header))\tif($output==\"\\n\" || $output == \"\\r\\n\" || $output == \"\\n\\l\")\r\n\t\t\t\t{\r\n\t\t\t \t$header = $content;\r\n\t\t\t\t\t$content = '';\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tfclose($fp);\r\n\r\n\t\t\treturn array(\"headers\" => $this->getHeaders($header), \"content\" => $content);\r\n\t\t}\r\n\t\telse\r\n\t\t\treturn array(\"error\" => \"Unable to open a connection\");\r\n\t}", "protected function getPageFile()\n\t{\n\t\t// empty the html property (although it's probably empty anyway if we're here)\n\t\t$this->html = '';\n\n\t\t// get the data\n\t\t$this->html = file_get_contents($this->url);\n\t}", "public function getWebContent($url) {\r\n\t\tsleep(rand(3,7));\r\n\t\tif(function_exists('curl_init')) {\r\n\t\t\t$ch = curl_init();\r\n\t\t\t$userAgent = \"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.1.4322)\";\r\n\t\t\tcurl_setopt($ch, CURLOPT_USERAGENT, $userAgent);\r\n\t\t\tcurl_setopt($ch, CURLOPT_URL, $url);\r\n\t\t\tcurl_setopt($ch, CURLOPT_HEADER, 1);\r\n\t\t\tcurl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);\r\n\t\t\tcurl_setopt($ch, CURLOPT_TIMEOUT, 300);\r\n\t\t\tcurl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);\r\n\t\t\t$contents = curl_exec($ch);\r\n\t\t\tcurl_close($ch);\r\n\t\t} else {\r\n\t\t\t$contents = file_get_contents($url);\r\n\t\t}\r\n\t\t\r\n\t\treturn $contents;\r\n\t}", "function getsrc($url)\n{\n $c = curl_init();\n $user_agent = \"Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/34.0.1847.116 Safari/537.36\";\n curl_setopt($c, CURLOPT_URL, $url);\n curl_setopt($c, CURLOPT_USERAGENT, $user_agent);\n curl_setopt($c, CURLOPT_POST, 0);\n curl_setopt($c, CURLOPT_RETURNTRANSFER, true);\n curl_setopt($c, CURLOPT_FRESH_CONNECT, true);\n $html = curl_exec($c);\n\tcurl_close($c);\n \n return $html;\n}", "protected function requestPage($url)\n {\n $req = $this->buildRequest($url);\n if (!$req->sendRequest()) {\n if ($this->config->throwHttpExceptions) {\n throw new Exception\\Http(\"Failed to connect to server when requesting url [$url]\");\n } else {\n return '';\n }\n }\n\n if (200 == $req->getStatus()) {\n return $req->getResponseBody();\n } elseif ($redirectUrl = $req->getRedirect()) {\n return $this->requestPage($redirectUrl);\n } else {\n if ($this->config->throwHttpExceptions) {\n $exception = new Exception\\Http(\"Failed to retrieve url [$url]. Status code [{$req->getStatus()}]\");\n $exception->HTTPStatusCode = $req->getStatus();\n throw $exception;\n } else {\n return '';\n }\n }\n }", "public function get($url, $query = array(), $headers = array());", "protected function fetchUrl($url) {\n if ($this->config['retrMethod'] == 'curl') {\n $ch = curl_init();\n\n curl_setopt($ch, CURLOPT_URL, $url);\n curl_setopt($ch, CURLOPT_HEADER, false);\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n\n $html = curl_exec($ch);\n curl_close($ch);\n\n if (function_exists('utf8_decode')) {\n $html = utf8_decode($html);\n }\n } else {\n $html = file_get_contents($url);\n }\n\n return $html;\n }", "public static function fileGetHtml($url) {\n\n\t\t$pathToSimpleHtmlDom = app_path('/Lib/Vendor/simple_html_dom.php');\n\t\trequire_once $pathToSimpleHtmlDom;\n\n\t\treturn file_get_html($url);\n\t}", "public function get($url, $params);", "public function run() {\n\t\t$result = array();\n\t\t\n\t\t// This could take a while to run, so set no time limit\n\t\tset_time_limit(0);\n\t\t\n\t\t// This is used for ob_flush to work\n\t\tif(ob_get_length() === false && $this->showMessages) ob_start();\n\t\t\n\t\t$html = $this->fetchHTML($this->url);\n\n\t\tif(!$html) {\n\t\t\tif($this->showMessages) echo \"$this->url doesn't appear to exist.\\r\\n\";\n\t\t}\n\n\t\t$links = $this->extractLinks($html, $this->url);\n\t\t\n\t\t// HTML stored in memory is no longer required, discard it\n\t\tunset($html);\n\t\n\t\tif($this->showMessages) echo \"Getting HTML from {$this->url}\\r\\n\";\n\n\t\tif(empty($links)) {\n\t\t\tif($this->showMessages) {\n\t\t\t\techo \"$this->url doesn't appear to have any links.\\r\\n\";\n\t\t\t}\n\t\t}\n\t\t\n\t\t// We only need unique links, so take any duplicates and discard them\n\t\t$links = array_values(array_unique($links));\n\t\t$linkCount = count($links);\n\t\t\n\t\tif($this->showMessages) echo \"Found {$linkCount} links on {$this->url}\\r\\n\";\n\n\t\tif($this->showMessages) {\n\t\t\tflush();\n\t\t\tob_flush();\n\t\t}\n\n\t\t// Each unique link needs to be checked to see what status code is returned\n\t\tfor($i = 0; isset($links[$i]) && !connection_aborted(); ++$i) {\n\t\t\t\t\n\t\t\t// First, we need to check the URL exists, before we can get the status\n\t\t\tif($this->urlExists(html_entity_decode($links[$i]))) {\n\t\t\t\t// Get the headers for the link\n\t\t\t\t$headers = $this->fetchHeaders(html_entity_decode($links[$i]));\n\t\n\t\t\t\t// Get the status code from the headers\n\t\t\t\t$status = $this->extractStatusCode($headers);\n\t\t\t\t\n\t\t\t\t// Build the results (link, code, status)\n\t\t\t\t$result[$i]['Link'] = $links[$i];\n\t\t\t\t$result[$i]['Code'] = $status[0];\n\t\t\t\t$result[$i]['Status'] = $status[1];\n\t\t\t\t\n\t\t\t} else {\n\t\t\t\t// URL doesn't exist, result is a 404.\n\t\t\t\t$result[$i]['Link'] = $links[$i];\n\t\t\t\t$result[$i]['Code'] = '404';\n\t\t\t\t$result[$i]['Status'] = 'Page not found';\n\t\t\t}\n\n\t\t\tif($this->showMessages) {\n\t\t\t\tflush();\n\t\t\t\tob_flush();\n\t\t\t}\n\t\t}\n\n\t\tif($this->showMessages) {\n\t\t\tob_end_flush();\n\t\t}\n\n\t\treturn $result;\n\t}", "function get_url_content($request)\n\t\t{\n\t\t\treturn file_get_contents($request);\n\t\t}", "function Get( $url )\r\n\t{\r\n\t\tif( $this->debug & DBGTRACE ) echo \"Get( $url )\\n\";\r\n\t\t$this->responseHeaders = $this->responseBody = \"\";\r\n\t\t$uri = $this->makeUri( $url );\r\n\t\t\r\n\t\tif( $this->sendCommand( \"GET $uri HTTP/$this->protocolVersion\" ) )\r\n\t\t\t$this->processReply();\r\n\t\treturn $this->reply;\r\n\t}", "function get_url_content($request)\n\t\t{\n\t\t$ch = curl_init($request);\n\t\tcurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n\t\treturn curl_exec($ch);\n\t\t}", "function getPageContent($url) {\r\n // create curl variable\r\n $curl = curl_init(); \r\n // set the url\r\n curl_setopt($curl, CURLOPT_URL, $url);\r\n // return the transfer as a resource\r\n curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);\r\n // $output contains the output string\r\n $output = curl_exec($curl);\r\n // close curl resource to free up system memory\r\n curl_close($curl);\r\n // return the output of the curl\r\n return $output;\r\n}", "private function GET($url,$params=false){\n return $this->Request($url,$params,HTTP_GET);\n }", "function hsend_get(&$app, &$c) {\n\t\t$app->logger->debug(sprintf('%s::%s', __CLASS__, __FUNCTION__));\n\n\t\t$this->_http->setMethod(HTTP_REQUEST_METHOD_GET);\n\n\t\t$this->_http->setURL($c->param('app.view_http.request.uri'));\n\n\t\t$this->_set_basic_auth($app, $c);\n\n\t\t$this->_load_get_params($app, $c);\n\n\t\t$this->_load_headers($app, $c);\n\n\t\t$this->_http->sendRequest();\n\n\t\t$this->_handler_response($app, $c);\n\n\t\treturn $app->status->handled;\n\t}", "private function send($url, $method = 'GET') //sends data array(param=>val,...) to the page $url in post/get method and returns the reply string\n {\n $options = array(\n \"http\" => array(\n \"Accept-language: en\\r\\n\",\n \"method\" => $method,\n \"header\" => \"\\r\\nUser-agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.11 (KHTML, like Gecko) Chrome/23.0.1271.97 Safari/537.11\"\n )\n );\n $context = stream_context_create($options);\n $page = file_get_contents($url, true, $context);\n \n return $page;\n }", "public function get ($url, $headers = null, $options = null);", "private function GET() {\n global $_GET;\n $getData = array();\n foreach($_GET as $key => $value) {\n $getData[$key] = $value;\n }\n $this -> response[\"response\"] = $getData;\n return;\n }", "private function getUrl($url)\n\t{\n\t\t$page = file_get_contents($url);\n\t\t\n\t\treturn $page;\t\t\t\n\t}", "public function content_from_url() {\n \n // Verify if session exists and if the user is admin\n $this->if_session_exists($this->user_role,0);\n \n if ( $this->input->post() ) {\n \n // Add form validation\n $this->form_validation->set_rules('url', 'Url', 'trim|required');\n \n // Get the url\n $url = $this->input->post('url');\n \n if ( $this->form_validation->run() != false ) {\n\n echo json_encode( get_site($url) );\n \n }\n \n }\n \n }", "function get($url, $options = array()) {\n\t\treturn $this->request($url, $options);\n\t}", "public function completeRequest($url) {\n\t\t//thanks to: http://www.hashbangcode.com/blog/quickest-way-download-web-page-php\n\t\t // create curl resource \n $ch = curl_init(); \n\n // set url \n curl_setopt($ch, CURLOPT_URL, $url); \n\n //return the transfer as a string \n curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); \n\n // $output contains the output string \n $output = curl_exec($ch); \n\t\t\n // close curl resource to free up system resources \n curl_close($ch); \n \n //return file_get_contents($url);\n \n\treturn $output;\n\t}", "public function execGET($url, $params = []){\n\t\t#Parse URL params\n\t\t$url = $this->parseURL($url, $params);\n\t\t#Initialize a CURL session. \n\t\t$ch = curl_init();\n\t\t#Set body (empty on GET)\n\t\t$curlBody = json_encode([]);\n\t\t#Set curl headers\n\t\t$curlHeaders = [\n\t\t\t'User-Agent: ' . $this->getRandAgent(), #Set the user agent with a random-selected real one\n\t\t];\n\t\t#Set CURL options\n\t\tcurl_setopt($ch, CURLOPT_HTTPHEADER, $curlHeaders); #Set headers\n\t\tcurl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); #Retrieve output instead of displaying it\n\t\tcurl_setopt($ch, CURLOPT_TIMEOUT, 30); #Set timeout to 30 seconds\n\t\tcurl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0); #Disable SSL host verification\n\t\tcurl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0); #Disable SSL peer verification\n\t\tcurl_setopt($ch, CURLOPT_URL, $url); #Set URL\n\t\t#Return raw CURL request output\n\t\treturn curl_exec($ch);\n\t}", "public function getContent(string $url): string\n {\n if ($this->cachingService->has($url)) {\n $this->logCacheHit($url);\n\n return $this->cachingService->get($url);\n }\n\n $curlHandle = curl_init($url);\n\n // Return the response rather than outputting to STDOUT.\n curl_setopt($curlHandle, CURLOPT_RETURNTRANSFER, self::CURL_OPTION_RETURN_TRANSFER);\n curl_setopt($curlHandle, CURLOPT_USERAGENT, $this->getUserAgent());\n\n $result = curl_exec($curlHandle);\n\n $this->assertCurlResultValid($result, $curlHandle);\n\n $this->cacheResult($url, $result);\n $this->logRequest(self::HTTP_METHOD_GET, $url, curl_getinfo($curlHandle, CURLINFO_HTTP_CODE));\n\n return $result;\n }", "function viewSource($folderpath, $page){\n chdir($folderpath); // go to the dir\n // define the URL to load\n $url = 'http://localhost:8888/mockup/app/'. $folderpath . '/' . $page;\n $url = str_replace('\\\\', '/',$url);\n //echo $url;\n //start cURL\n $ch = curl_init();\n // tell cURL what the URL is\n curl_setopt($ch, CURLOPT_URL, $url);\n // tell cURL that you want the data back from that URL\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);\n // run cURL\n $output = curl_exec($ch);\n // end the cURL call (this also cleans up memory so it is\n // important)\n curl_close($ch);\n // display the output\n //echo \"$output -> converting\";\n $outputfile = str_replace(\".php\", \"\", \"{$page}.html\");\n\n file_put_contents($outputfile, $output);\n // go back to the right levels\n if (substr_count($folderpath, DIRECTORY_SEPARATOR) == 1){\n chdir(\"../../\");\n } else{\n chdir(\"../\");\n }\n\n}", "function httpGet($url){\n $ch = curl_init();\n\n curl_setopt($ch,CURLOPT_URL,$url);\n curl_setopt($ch,CURLOPT_RETURNTRANSFER,true);\n// curl_setopt($ch,CURLOPT_HEADER, false);\n\n $output=curl_exec($ch);\n\n curl_close($ch);\n return $output;\n}", "public static function urlGetContent($URL){\n $ch = curl_init();\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);\n curl_setopt($ch, CURLOPT_URL, $URL);\n $data = curl_exec($ch);\n curl_close($ch);\n return $data;\n }", "protected static function getContents($url)\r\n {\r\n $ch = curl_init();\r\n curl_setopt($ch, CURLOPT_URL, $url);\r\n curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 5);\r\n curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.154 Safari/537.36');\r\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\r\n curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);\r\n\r\n $result = curl_exec($ch);\r\n curl_close($ch);\r\n\r\n return $result;\r\n }", "function doGet($url)\n{\n $return = curlExecute($url);\n return $return;\n}", "public function sendGet()\n\t{\n\t\t$ch = curl_init(\"http://localhost/rest/index.php/book\");\n\t\t//a true, obtendremos una respuesta de la url, en otro caso, \n\t\t//true si es correcto, false si no lo es\n\t\tcurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n\t\t//establecemos el verbo http que queremos utilizar para la petición\n\t\tcurl_setopt($ch, CURLOPT_CUSTOMREQUEST, \"GET\");\n\t\t//obtenemos la respuesta\n\t\t$response = curl_exec($ch);\n\t\t// Se cierra el recurso CURL y se liberan los recursos del sistema\n\t\tcurl_close($ch);\n\t\tif(!$response) {\n\t\t return false;\n\t\t}else{\n\t\t\tvar_dump($response);\n\t\t}\n\t}", "public function fetch() {\n return $this->html;\n }", "protected function getPageCurl()\n\t{\n\t\t// initiate curl with our url\n\t\t$this->curl = curl_init($this->url);\n\n\t\t// set curl options\n\t\tcurl_setopt($this->curl, CURLOPT_HEADER, 0);\n\t\tcurl_setopt($this->curl, CURLOPT_USERAGENT, $this->user_agent);\n\t\tcurl_setopt($this->curl, CURLOPT_RETURNTRANSFER, true);\n\t\tcurl_setopt($this->curl, CURLOPT_FOLLOWLOCATION, true);\n\t\tcurl_setopt($this->curl, CURLOPT_SSL_VERIFYPEER, false);\n\t\tcurl_setopt($this->curl, CURLOPT_SSL_VERIFYHOST, false);\n\n\t\t// execute the call to google+\n\t\t$this->html = curl_exec($this->curl);\n\n\t\tcurl_close($this->curl);\n\t}", "function bacaHTML($url) {\r\n $ip = $url;\r\n $data = curl_init();\r\n // setting CURL\r\n curl_setopt($data, CURLOPT_RETURNTRANSFER, 1);\r\n curl_setopt($data, CURLOPT_URL, $ip);\r\n\r\n // menjalankan CURL untuk membaca isi file\r\n $hasil = curl_exec($data);\r\n curl_close($data);\r\n return $hasil;\r\n}", "public abstract function get_html();", "protected function getContents() {\n $opts = array(\n 'http' => array(\n 'method' => \"GET\",\n 'header' => $this->user_agent . \"\\r\\n\"\n )\n );\n $context = stream_context_create($opts);\n return file_get_contents($this->query, false, $context);\n }", "protected function doGet()\n {\n }", "function http_get($url) {\n $ch = curl_init();\n curl_setopt($ch, CURLOPT_URL, $url);\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n //curl_setopt($ch,CURLOPT_HEADER, false); \n $output = curl_exec($ch);\n curl_close($ch);\n return $output;\n}", "public function send() {\n header('HTTP/1.0 404 Not Found');\n \n echo $this->getHtml();\n }", "function url_get_contents ($url) {\n if (!function_exists('curl_init')){ \n die('CURL is not installed!'); //Curl will return a false bool and die here if CURL is not enabled.\n }\n $ch = curl_init(); //Return curl handle\n curl_setopt($ch, CURLOPT_URL, $url); //The URL to fetch\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); //Return curl contents as opposed to dumping\n\tcurl_setopt($ch, CURLOPT_ENCODING, 'gzip,deflate,sdch'); //set encoding\n\tcurl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE); //follow redirects\n\tcurl_setopt($ch, CURLOPT_VERBOSE, 0); //I don't know some shit\n\tcurl_setopt($ch, CURLOPT_USERAGENT, \"Mozilla/5.0 (X11; Linux x86_64; rv:21.0) Gecko/20100101 Firefox/21.0\");\n\n $output = curl_exec($ch);\n\t\n\tif (FALSE === $output)\n throw new Exception(curl_error($ch), curl_errno($ch));\n\t\n curl_close($ch); //Close handle\n return $output; //Return contents\n}", "private function executeRequest()\r\n\t{\r\n\t\ttry {\r\n\t\t\t$html = curl_exec($this->getConnection());\r\n\t\t\tif (curl_error($this->getConnection())) {\r\n\t\t\t\tthrow new Exception(curl_error($this->getConnection()));\r\n\t\t\t}\r\n\t\t} catch (Exception $e) {\r\n\t\t\techo 'Error: ' . $e->getMessage();\r\n\t\t}\r\n\r\n\t\treturn $html;\r\n\t}", "public function onBeforeGet($url){}", "function forwardGetRequest($url) {\n\n\t\t$curl = curl_init();\n\n\t\tcurl_setopt_array($curl, array(\n\t\t\tCURLOPT_URL => $url,\n\t\t\tCURLOPT_RETURNTRANSFER => true,\n\t\t\tCURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n\t\t\tCURLOPT_CUSTOMREQUEST => \"GET\",\n\t\t\tCURLOPT_HTTPHEADER => array(\"cache-control: no-cache\"),\n\t\t\tCURLOPT_SSL_VERIFYPEER => false\n\t\t));\n\n\t\t$response = curl_exec($curl);\n\t\tif ($response === false) echo \"Bad response\";\n\n\t\tcurl_close($curl);\n\t\treturn $response;\n\n\t}", "abstract function get_html();", "public function fetchHTML()\n {\n return $this->fetch();\n }", "function get_data($url) {\n\t$ch = curl_init();\n\t$timeout = 5;\n\tcurl_setopt($ch,CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:47.0) Gecko/20100101 Firefox/47.0');\n\tcurl_setopt($ch, CURLOPT_URL, $url);\n\tcurl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);\n\tcurl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $timeout);\n\t$data = curl_exec($ch);\n\tcurl_close($ch);\n\treturn $data;\n}", "protected function fetchContent($url)\n {\n return (string) $this->httpAdapter->get($url)->getBody();\n }", "public function get_web_page( $url ) {\n\t $res = array();\n \t$options = array( \n \tCURLOPT_RETURNTRANSFER => true, // return web page \n\t CURLOPT_HEADER => false, // do not return headers \n \t CURLOPT_FOLLOWLOCATION => true, // follow redirects \n \tCURLOPT_USERAGENT => \"spider\", // who am i \n\t CURLOPT_AUTOREFERER => true, // set referer on redirect \n \t CURLOPT_CONNECTTIMEOUT => 120, // timeout on connect \n\t CURLOPT_TIMEOUT => 120, // timeout on response \n \t CURLOPT_MAXREDIRS => 10, // stop after 10 redirects \n\t ); \n \t$ch = curl_init( $url ); \n\t curl_setopt_array( $ch, $options ); \n \t$content = curl_exec( $ch ); \n\t $err = curl_errno( $ch ); \n \t$errmsg = curl_error( $ch ); \n\t $header = curl_getinfo( $ch ); \n \tcurl_close( $ch ); \n\n\t //$res['content'] = $content; \n \t$res['url'] = $header['url'];\n \treturn trim($header['url']); \n\t}", "function geturl($url){\n if($url==\"\"){\n $url = \"http://www.36kr.com/\";\n }\n \n $ch = curl_init();\n\n // set the url to fetch \n curl_setopt($ch, CURLOPT_URL, $url);\n\n //return the transfer (the result of curl_exec()) as a string instead of outputing directly\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);\n\n //return the HTTP Response header using the callback function readHeader\n //curl_setopt($ch, CURLOPT_HEADERFUNCTION, 'readHeader');\n\n // execute the curl session\n $output = curl_exec($ch);\n\n // close curl resource to free up system resources \n curl_close($ch);\n\n //the callback function used to retreive the header info\n function readHeader($ch, $string) {\n $length = strlen($string);\n //only display the headers with content\n if (trim($string) != '')\n echo \"<center>Header: $string</center><br />\\n\";\n return $length;\n }\n\n //echo \"<br /><center><b><u>BELOW this line is the content fetched from www.example.com:</u></b></center><br />\";\n return $output;\n}", "function get (string $url, array $args = []): string {\n\t$append = '';\n\tif (count($args) > 0) {\n\t\t$append .= '/'.parseUrlGet($args);\n\t}\n\n\t$curlCall = curl_init($url.$append);\n\n\tcurl_setopt($curlCall, CURLOPT_RETURNTRANSFER, 1);\n\n\t$return = curl_exec($curlCall);\n\tcurl_close($curlCall);\n\n\treturn $return;\n}", "public static function\n download_html_page(\n $page_url\n )\n {\n $cookie = tempnam (\"/tmp\", \"CURLCOOKIE\");\n $timeout = 5;\n $curl_handle=curl_init();\n curl_setopt($curl_handle,CURLOPT_URL, $page_url);\n ////curl_setopt($curl_handle,CURLOPT_CONNECTTIMEOUT,2);\n\n\n curl_setopt( $curl_handle, CURLOPT_USERAGENT, \"Mozilla/5.0 (Windows; U; Windows NT 5.1; rv:1.7.3) Gecko/20041001 Firefox/0.10.1\" );\n curl_setopt( $curl_handle, CURLOPT_COOKIEJAR, $cookie );\n curl_setopt( $curl_handle, CURLOPT_FOLLOWLOCATION, true );\n curl_setopt( $curl_handle, CURLOPT_ENCODING, \"\" );\n curl_setopt( $curl_handle, CURLOPT_RETURNTRANSFER, true );\n curl_setopt( $curl_handle, CURLOPT_AUTOREFERER, true );\n curl_setopt( $curl_handle, CURLOPT_CONNECTTIMEOUT, $timeout );\n curl_setopt( $curl_handle, CURLOPT_TIMEOUT, $timeout );\n curl_setopt( $curl_handle, CURLOPT_MAXREDIRS, 10 );\n\n\n $buffer = curl_exec($curl_handle);\n curl_close($curl_handle);\n // print_r($page_url);exit;\n // print_r($buffer);exit;\n\n\n if (empty($buffer)) {\n throw new VideoLibrary_DownloadUnsuccessfulException();\n } else {\n return $buffer;\n }\n }", "function getWebPage($url){\n $options = array( \n\t \tCURLOPT_RETURNTRANSFER => true, // to return web page\n CURLOPT_HEADER => true, // to return headers in addition to content\n CURLOPT_FOLLOWLOCATION => true, // to follow redirects\n CURLOPT_ENCODING => \"\", // to handle all encodings\n CURLOPT_AUTOREFERER => true, // to set referer on redirect\n CURLOPT_CONNECTTIMEOUT => 120, // set a timeout on connect\n CURLOPT_TIMEOUT => 120, // set a timeout on response\n CURLOPT_MAXREDIRS => 10, // to stop after 10 redirects\n CURLINFO_HEADER_OUT => true, // no header out\n CURLOPT_SSL_VERIFYPEER => false,// to disable SSL Cert checks\n CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n );\n\n $handle = curl_init( $url );\n curl_setopt_array( $handle, $options );\n \n \t// additional for storing cookie \n $tmpfname = dirname(__FILE__).'/cookie.txt';\n curl_setopt($handle, CURLOPT_COOKIEJAR, $tmpfname);\n curl_setopt($handle, CURLOPT_COOKIEFILE, $tmpfname);\n\n $raw_content = curl_exec( $handle );\n $err = curl_errno( $handle );\n $errmsg = curl_error( $handle );\n $header = curl_getinfo( $handle ); \n curl_close( $handle );\n \n $header_content = substr($raw_content, 0, $header['header_size']);\n $body_content = trim(str_replace($header_content, '', $raw_content));\n \n \t// extract cookie from raw content for the viewing purpose \n $cookiepattern = \"#Set-Cookie:\\\\s+(?<cookie>[^=]+=[^;]+)#m\"; \n preg_match_all($cookiepattern, $header_content, $matches); \n $cookiesOut = implode(\"; \", $matches['cookie']);\n\n $header['errno'] = $err;\n $header['errmsg'] = $errmsg;\n $header['headers'] = $header_content;\n $header['content'] = $body_content;\n $header['cookies'] = $cookiesOut;\n \treturn $header['content'];\n}", "function fetchUrl($url){\r\n\t\t$ch = curl_init($url);\r\n\t\t$useragent=\"Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.1) Gecko/20061204 Firefox/2.0.0.1\";\r\n\t\tcurl_setopt($ch, CURLOPT_TIMEOUT, 5);\r\n\t\tcurl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);\r\n\t\tcurl_setopt ($ch, CURLOPT_USERAGENT, $useragent);\r\n\t\t$data = curl_exec($ch);\r\n\t\tcurl_close($ch);\r\n\r\n\t\treturn $data;\r\n\t}", "function curl_get($url, $get = false, $options = array()) { \n $defaults = array(\n CURLOPT_URL => $url. (strpos($url, '?') === FALSE ? '?' : '') . (is_array($get) ? http_build_query($get) : ''),\n CURLOPT_HEADER => 0,\n CURLOPT_RETURNTRANSFER => TRUE,\n CURLOPT_TIMEOUT => 4,\n\t\tCURLOPT_FOLLOWLOCATION => true\n );\n \n $ch = curl_init();\n curl_setopt_array($ch, ($options + $defaults));\n if( ! $result = curl_exec($ch)) {\n trigger_error(curl_error($ch));\n }\n curl_close($ch);\n return $result;\n}", "public function renderLoadsHtml()\n {\n header('Content-type: application/javascript');\n echo file_get_contents($this->file);\n }", "function get_url_content($url) {\n \t\t$ch = curl_init();\n \t\t$timeout = 5;\n \t\tcurl_setopt($ch, CURLOPT_URL, $url);\n \t\tcurl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);\n \t\tcurl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $timeout);\n \t\t$data = curl_exec($ch);\n \t\tcurl_close($ch);\n \t\treturn $data;\n\t}", "protected function _doGet($in_url, $in_additional_curl_options=array()) {\r\n return $this->__doRequest($in_url, 'GET', null, null, $in_additional_curl_options);\r\n }", "function grabHTML($function_host_name, $url)\n{\n\n $ch = curl_init();\n $header=array('GET /1575051 HTTP/1.1',\n \"Host: $function_host_name\",\n 'Accept:text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',\n 'Accept-Language:en-US,en;q=0.8',\n 'Cache-Control:max-age=0',\n 'Connection:keep-alive',\n 'User-Agent:Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/27.0.1453.116 Safari/537.36',\n );\n\n curl_setopt($ch,CURLOPT_URL,$url);\n curl_setopt($ch,CURLOPT_RETURNTRANSFER,true);\n curl_setopt($ch,CURLOPT_CONNECTTIMEOUT,0);\n curl_setopt( $ch, CURLOPT_COOKIESESSION, true );\n curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_BASIC);\n curl_setopt($ch,CURLOPT_COOKIEFILE,'cookies.txt');\n curl_setopt($ch,CURLOPT_COOKIEJAR,'cookies.txt');\n curl_setopt($ch,CURLOPT_HTTPHEADER,$header);\n\n $returnHTML = curl_exec($ch); \n return $returnHTML; \n curl_close($ch);\n\n}", "function load_url($url, $options = array('method' => 'get', 'return_info' => false))\r\n{\r\n\r\n // added 04-28-08 EG added a default timeout of 15 seconds\r\n if (!isset($options['timeout']))\r\n $options['timeout'] = 15;\r\n\r\n $url_parts = parse_url($url);\r\n if (!array_key_exists('port', $url_parts))\r\n $url_parts['port'] = ($url_parts['scheme'] == \"https\") ? 443 : 80;\r\n $info = array( //Currently only supported by curl.\r\n 'http_code' => 200\r\n );\r\n $response = '';\r\n\r\n $send_header = array(\r\n 'Accept' => 'text/*',\r\n 'User-Agent' => 'BinGet/1.00.A (http://www.bin-co.com/php/scripts/load/)'\r\n );\r\n\r\n ///////////////////////////// Curl /////////////////////////////////////\r\n //If curl is available, use curl to get the data.\r\n if (function_exists(\"curl_init\")\r\n and (!(isset($options['use']) and $options['use'] == 'fsocketopen'))\r\n ) { //Don't user curl if it is specifically stated to user fsocketopen in the options\r\n if (isset($options['method']) and $options['method'] == 'post') {\r\n $page = $url_parts['scheme'] . '://' . $url_parts['host'] . \":\" . $url_parts['port'] . $url_parts['path'];\r\n } else {\r\n $page = $url;\r\n }\r\n\r\n $ch = curl_init($url_parts['host'] . \":\" . $url_parts['port']);\r\n\r\n // added 04-28-08 EG set a timeout\r\n if (isset($options['timeout']))\r\n curl_setopt($ch, CURLOPT_TIMEOUT, $options['timeout']);\r\n\r\n\r\n curl_setopt($ch, CURLOPT_URL, $page);\r\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); //Just return the data - not print the whole thing.\r\n curl_setopt($ch, CURLOPT_HEADER, true); //We need the headers\r\n curl_setopt($ch, CURLOPT_NOBODY, false); //The content - if true, will not download the contents\r\n if (isset($options['method']) and $options['method'] == 'post' and $url_parts['query']) {\r\n curl_setopt($ch, CURLOPT_POST, true);\r\n curl_setopt($ch, CURLOPT_POSTFIELDS, $url_parts['query']);\r\n }\r\n //Set the headers our spiders sends\r\n curl_setopt($ch, CURLOPT_USERAGENT, $send_header['User-Agent']); //The Name of the UserAgent we will be using ;)\r\n $custom_headers = array(\"Accept: \" . $send_header['Accept']);\r\n if (isset($options['modified_since']))\r\n array_push($custom_headers, \"If-Modified-Since: \" . gmdate('D, d M Y H:i:s \\G\\M\\T', strtotime($options['modified_since'])));\r\n curl_setopt($ch, CURLOPT_HTTPHEADER, $custom_headers);\r\n\r\n curl_setopt($ch, CURLOPT_COOKIEJAR, \"cookie.txt\"); //If ever needed...\r\n curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);\r\n curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);\r\n curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE);\r\n\r\n\r\n if (isset($url_parts['user']) and isset($url_parts['pass'])) {\r\n $custom_headers = array(\"Authorization: Basic \" . base64_encode($url_parts['user'] . ':' . $url_parts['pass']));\r\n curl_setopt($ch, CURLOPT_HTTPHEADER, $custom_headers);\r\n }\r\n\r\n $response = curl_exec($ch);\r\n $info = curl_getinfo($ch); //Some information on the fetch\r\n\r\n curl_close($ch);\r\n\r\n //////////////////////////////////////////// FSockOpen //////////////////////////////\r\n } else { //If there is no curl, use fsocketopen\r\n if (isset($url_parts['query'])) {\r\n if (isset($options['method']) and $options['method'] == 'post')\r\n $page = $url_parts['path'];\r\n else\r\n $page = $url_parts['path'] . '?' . $url_parts['query'];\r\n } else {\r\n $page = $url_parts['path'];\r\n }\r\n\r\n $fp = fsockopen($url_parts['host'], 80, $errno, $errstr, 30);\r\n if ($fp) {\r\n\r\n // added 04-28-08 EG set a timeout\r\n if (isset($options['timeout']))\r\n stream_set_timeout($fp, $options['timeout']);\r\n\r\n $out = '';\r\n if (isset($options['method']) and $options['method'] == 'post' and isset($url_parts['query'])) {\r\n $out .= \"POST $page HTTP/1.1\\r\\n\";\r\n } else {\r\n $out .= \"GET $page HTTP/1.0\\r\\n\"; //HTTP/1.0 is much easier to handle than HTTP/1.1\r\n }\r\n $out .= \"Host: $url_parts[host]\\r\\n\";\r\n $out .= \"Accept: $send_header[Accept]\\r\\n\";\r\n $out .= \"User-Agent: {$send_header['User-Agent']}\\r\\n\";\r\n if (isset($options['modified_since']))\r\n $out .= \"If-Modified-Since: \" . gmdate('D, d M Y H:i:s \\G\\M\\T', strtotime($options['modified_since'])) . \"\\r\\n\";\r\n\r\n $out .= \"Connection: Close\\r\\n\";\r\n\r\n //HTTP Basic Authorization support\r\n if (isset($url_parts['user']) and isset($url_parts['pass'])) {\r\n $out .= \"Authorization: Basic \" . base64_encode($url_parts['user'] . ':' . $url_parts['pass']) . \"\\r\\n\";\r\n }\r\n\r\n //If the request is post - pass the data in a special way.\r\n if (isset($options['method']) and $options['method'] == 'post' and $url_parts['query']) {\r\n $out .= \"Content-Type: application/x-www-form-urlencoded\\r\\n\";\r\n $out .= 'Content-Length: ' . strlen($url_parts['query']) . \"\\r\\n\";\r\n $out .= \"\\r\\n\" . $url_parts['query'];\r\n }\r\n $out .= \"\\r\\n\";\r\n\r\n fwrite($fp, $out);\r\n while (!feof($fp)) {\r\n $response .= fgets($fp, 128);\r\n }\r\n fclose($fp);\r\n }\r\n }\r\n\r\n //Get the headers in an associative array\r\n $headers = array();\r\n\r\n if ($info['http_code'] == 404) {\r\n $body = \"\";\r\n $headers['Status'] = 404;\r\n } else {\r\n //Seperate header and content\r\n //echo \"RESPONSE: \".$response.\"<BR><BR>\\n\";\r\n //exit();\r\n $separator_position = strpos($response, \"\\r\\n\\r\\n\");\r\n $header_text = substr($response, 0, $separator_position);\r\n\r\n $body = substr($response, $separator_position + 4);\r\n\r\n // added 04-28-2008 EG if we get a 301 (moved), another set of headers is received,\r\n if (substr($body, 0, 5) == \"HTTP/\") {\r\n $separator_position = strpos($body, \"\\r\\n\\r\\n\");\r\n $header_text = substr($body, 0, $separator_position);\r\n $body = substr($body, $separator_position + 4);\r\n }\r\n\r\n //echo \"SEP: \".$separator_position.\"<BR><BR>\\n\";\r\n //echo \"HEADER: \".$header_text.\"<BR><BR>\\n\";\r\n //echo \"BODY: \".$body.\"<BR><BR>\\n\";\r\n\r\n foreach (explode(\"\\n\", $header_text) as $line) {\r\n $parts = explode(\": \", $line);\r\n if (count($parts) == 2) $headers[$parts[0]] = chop($parts[1]);\r\n }\r\n }\r\n\r\n if ($options['return_info'])\r\n return array('headers' => $headers, 'body' => $body, 'info' => $info);\r\n return $body;\r\n}", "function get_data($url){\n $ch = curl_init();\n $timeout = 5;\n curl_setopt($ch, CURLOPT_URL, $url);\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);\n curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $timeout);\n curl_setopt($ch, CURLOPT_USERAGENT, \"Mozilla/5.0 (Windows NT 6.1; rv:19.0) Gecko/20100101 Firefox/19.0\");\n $data = curl_exec($ch);\n curl_close($ch);\n return $data;\n}", "public function sendGet ()\n {\n return $this->handleQuery();\n }", "function curl_get($url, array $get = NULL, array $headers = NULL, array $options = array()) { \n $defaults = array( \n CURLOPT_URL => $url. (strpos($url, '?') === FALSE ? '?' : ''). http_build_query($get), \n CURLOPT_HEADER => 0, \n CURLOPT_HTTPHEADER => $headers,\n CURLOPT_RETURNTRANSFER => TRUE, \n CURLOPT_TIMEOUT => 4,\n $headers\n ); \n \n $ch = curl_init(); \n curl_setopt_array($ch, ($options + $defaults));\n \n if ( ! $result = curl_exec($ch)) { \n trigger_error(curl_error($ch)); \n } \n curl_close($ch); \n return $result; \n}", "private function _get($url) {\n\t\t$ch = curl_init ();\n\t\tcurl_setopt ( $ch, CURLOPT_URL, $url );\n\t\tcurl_setopt ( $ch, CURLOPT_USERAGENT, 'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.1.4322)' );\n\t\tcurl_setopt ( $ch, CURLOPT_RETURNTRANSFER, 1 );\n\t\tcurl_setopt ( $ch, CURLOPT_CONNECTTIMEOUT, 5 );\n\t\tcurl_setopt ( $ch, CURLOPT_TIMEOUT, 5 );\n\t\t$data = curl_exec ( $ch );\n\t\t$httpcode = curl_getinfo ( $ch, CURLINFO_HTTP_CODE );\n\t\tcurl_close ( $ch );\n\t\treturn ($httpcode >= 200 && $httpcode < 300) ? $data : false;\n\t}", "public function get(string $url, array $input = [], $headers = null);", "function get($url, $args = array()) {\n\t\t$defaults = array('method' => 'GET');\n\t\t$r = array_merge( $defaults, $args );\n\t\treturn $this->request($url, $r);\n\t}", "function getContentsByHttp($url = null, $agent = '', $referer = '', $sendReferer = false, $second = 2, $microSecond = 0)\n {\n if (empty($url)) {\n return null;\n }\n //\n // get contents by http (fsockopen)\n //\n $urlArray = parse_url($url);\n $host = $urlArray['host'];\n $port = (! empty($urlArray['port']) && $urlArray['port'] != '80') ?\n $urlArray['port'] : '80';\n $path = $urlArray['path'];\n $path .= (! empty($urlArray['query'])) ? '?' . str_replace('&amp;', '&', $urlArray['query']): '';\n $path .= (! empty($urlArray['fragment'])) ? '#' . $urlArray['fragment'] : '';\n $referer = '';\n $https = getenv('HTTPS');\n if ($sendReferer === true && (empty($https) || strtolower($https) !== 'on')) {\n $referer = 'http://';\n $referer .= getenv('SERVER_NAME');\n $port = getenv('SERVER_PORT');\n }\n $replaceArray = array(\"\\r\" => '', \"\\n\" => '');\n\n // socket connect\n $fp = fsockopen($host, $port, $errNumber, $errString, 1);\n if ($fp) {\n // send request\n $request = \"GET {$path} HTTP/1.1\\r\\n\";\n $request .= \"Host: {$host}\\r\\n\";\n if ($referer !== '') {\n $request .= \"Referer: {$referer}\\r\\n\";\n }\n if ($agent !== '') {\n $request .= \"User-Agent: {$agent}\\r\\n\";\n }\n $request .= \"Connection: Close\\r\\n\\r\\n\";\n stream_set_timeout($fp, $second, $microSecond);\n fwrite($fp, $request);\n\n // get data\n while (! feof($fp)) {\n $buffer = fgets($fp, 1024);\n if (empty($buffer)) {\n continue;\n }\n $buffer = strtr($buffer, $replaceArray);\n if (empty($buffer)) {\n break;\n }\n }\n $contents = '';\n while (! feof($fp)) {\n $contents .= fread($fp, 8192);\n }\n stream_set_timeout($fp, $second, $microSecond);\n fclose($fp);\n return $contents;\n }\n return '';\n }", "public function get($url)\n {\n $url = $this->baseUrl . \"/\" . $url;\n Request::ini($this->template);\n $request = Request::get($url);\n $response = $request->send();\n\n if ($response->hasErrors()) {\n if (isset($response->body->winstrom->message)) {\n $message = \"Error during GET from Flexibee: \" .\n $response->body->winstrom->message .\n \" (\" . $url . \")\";\n } else {\n $message = \"Error during GET from Flexibee\" .\n \" (\" . $url . \")\";\n }\n throw new FlexibeeException($message, $request);\n }\n\n if (isset($response->body->winstrom)) {\n $result = $response->body->winstrom;\n } else {\n $result = $response->body;\n }\n\n // Check if request failed\n if (isset($result->success) && $result->success === \"false\") {\n throw new FlexibeeException($result->message, $request);\n }\n return $result;\n }", "function url_get_contents($Url) {\n if (!function_exists('curl_init')){ \n die('CURL is not installed!');\n }\n $ch = curl_init();\n curl_setopt($ch, CURLOPT_URL, $Url);\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n $output = curl_exec($ch);\n curl_close($ch);\n return $output;\n}", "public function html(string $url, ?RenderSpecs $specs = null): string;", "function fetch_url($url) {\n\t$ch = curl_init();\n\tcurl_setopt($ch, CURLOPT_URL, $url);\n\tcurl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);\n\tcurl_setopt($ch, CURLOPT_TIMEOUT, 120);\n\t$file_get_contents = curl_exec($ch);\n\tcurl_close($ch);\n\treturn $file_get_contents;\n}", "public function get ( $url, $params=[] )\n {\n $param_string = $this->buildParamString( $params );\n $url = $url . $param_string;\n\n $this->init( $url );\n\n $options = [\n CURLOPT_FAILONERROR => true,\n CURLOPT_FOLLOWLOCATION => true,\n CURLOPT_RETURNTRANSFER => true,\n CURLOPT_SSL_VERIFYHOST => false,\n CURLOPT_USERAGENT => 'fake'\n ];\n\n $this->setOptions( $options );\n }", "function url_get_contents($url) {\n $ch = curl_init();\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n curl_setopt($ch, CURLOPT_URL, $url);\n $data = curl_exec($ch);\n curl_close($ch);\n return $data;\n}", "function http_response($url, $opts = array()) {\n $url = preg_replace('/ /', '%20', $url);\n $ch = curl_init($url);\n curl_setopt($ch, CURLOPT_HEADER, FALSE);\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);\n curl_setopt($ch, CURLOPT_USERAGENT, \"uw_transparancy, toolserver.org wikiproject parser\");\n $output = curl_exec($ch);\n // Check for errors\n if (curl_errno($ch)) {\n wpLog(\"Curl error: \" . curl_error($ch));\n return http_response($url);\n }\n\n curl_close($ch);\n\n return $output;\n}", "abstract public function get_url_read();", "public function getContent( $url ) {\n\t\t$this->content = $this->component->getContent( $url );\n\t}", "public function onRequestUrl(&$url)\n {\n // if hash match, handle request\n if (substr($url, 0, strlen($this->hash)) === $this->hash) {\n // check user rights\n if (!$this->setRights()) {\n $url = '403';\n header('HTTP/1.1 403 Forbidden');\n exit;\n }\n $method = $_SERVER['REQUEST_METHOD'];\n switch($method) {\n case 'POST':\n $save = $this->createFile();\n if ($save) {\n echo 'ok';\n } else {\n header('HTTP/1.1 400 Bad Request');\n echo $this->info;\n }\n break;\n case 'PUT':\n $save = $this->editFile();\n if ($save) {\n echo 'ok';\n } else {\n header('HTTP/1.1 400 Bad Request');\n echo $this->info;\n }\n break;\n case 'DELETE':\n $save = $this->deleteFile();\n if ($save) {\n echo 'ok';\n } else {\n header('HTTP/1.1 400 Bad Request');\n echo $this->info;\n }\n break;\n case 'GET':\n // read file content and output\n if (file_exists(CONTENT_DIR . $_GET['path'] . CONTENT_EXT)) {\n readFile(CONTENT_DIR . $_GET['path'] . CONTENT_EXT);\n } else {\n echo $this->formatContent(file_get_contents(CONTENT_DIR . $this->template));\n }\n break;\n }\n exit; // stop everything!\n }\n }", "public function GetData($url){\n\t\t$ch = curl_init();\n\t \n\t\tcurl_setopt($ch,CURLOPT_URL,$url);\n\t curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.15) Gecko/20080623 Firefox/2.0.0.15');\n\t \n\t curl_setopt($ch, CURLOPT_NOBODY, false);\n\t\tcurl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);\n\t\tcurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n\t\t$result= curl_exec ($ch);\n\t\tcurl_close($ch);\n\t return $result;\n\t}", "function fetch_url($url, $expiry = CACHE_EXPIRY_TIMESPAN, $post_params = null) {\n global $cookie;\n global $calendar_url;\n\n if ($post_params) {\n $post = array();\n foreach ($post_params as $key => $value) {\n $post []= $key.'='.htmlentities($value);\n }\n $post = implode('&', $post);\n } else {\n $post = '';\n }\n\n $cache_path = CACHE_PATH.md5($calendar_url).md5($url.$post);\n echo 'Fetching '.$url.'...memory: '.memory_get_usage().'...';\n if (file_exists($cache_path) &&\n filemtime($cache_path) >= time() - $expiry) {\n echo 'from cache.'.\"\\n\";\n $data = file_get_contents($cache_path);\n } else {\n echo 'from web...';\n\n $ch = curl_init($url);\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);\n //curl_setopt($ch, CURLOPT_VERBOSE, true);\n curl_setopt($ch, CURLOPT_COOKIE, $cookie);\n curl_setopt($ch, CURLOPT_USERAGENT, 'UWDataSpider/1.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1.7)');\n if ($post_params) {\n curl_setopt($ch, CURLOPT_POST, count($post_params));\n curl_setopt($ch, CURLOPT_POSTFIELDS, $post);\n }\n $data = curl_exec($ch);\n\n/*\n $context = stream_context_create(array(\n 'http' => array(\n 'method'=>\"GET\",\n 'header'=>\"Accept-language: en-us,en;q=0.5\\r\\n\".\n \"Referrer: http://uwdata.ca\\r\\n\".\n \"User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1.7) Gecko/20091221 Firefox/3.5.7\\r\\n\"\n )\n ));\n $data = file_get_contents($url, 0, $context);*/\n if ($data) {\n file_put_contents($cache_path, $data);\n }\n echo 'done.'.\"\\n\";\n }\n return $data;\n}" ]
[ "0.67352927", "0.6733248", "0.6615621", "0.6483972", "0.6377716", "0.6355508", "0.6302589", "0.63004", "0.622311", "0.62064576", "0.6181529", "0.6179844", "0.6170136", "0.61072034", "0.609215", "0.60824513", "0.6074059", "0.60445154", "0.6044255", "0.60273975", "0.6025461", "0.6003629", "0.5968197", "0.59633994", "0.59476346", "0.5924667", "0.59129703", "0.59105915", "0.5909951", "0.5882797", "0.58765876", "0.5875817", "0.5840139", "0.58387613", "0.5803032", "0.5794247", "0.5759207", "0.57517743", "0.57272315", "0.57165796", "0.57066023", "0.56876767", "0.5651552", "0.56487364", "0.5646053", "0.5628774", "0.56248426", "0.56243855", "0.5620497", "0.5618742", "0.5614429", "0.55936277", "0.5587542", "0.55860347", "0.5579811", "0.55769515", "0.5572648", "0.5562158", "0.5555829", "0.5552959", "0.554926", "0.55431753", "0.5542801", "0.5538704", "0.5536643", "0.5533908", "0.5518519", "0.55150235", "0.55125904", "0.55002964", "0.54927576", "0.54923576", "0.5478683", "0.547649", "0.546138", "0.54610336", "0.54595596", "0.5458583", "0.54563785", "0.5456135", "0.5434523", "0.54164284", "0.54131067", "0.5412201", "0.54089016", "0.54062885", "0.5396827", "0.53852534", "0.53669286", "0.53659", "0.5365667", "0.5363237", "0.53615767", "0.5359282", "0.53576", "0.53528935", "0.5347349", "0.5328035", "0.5323539", "0.5314246", "0.5304776" ]
0.0
-1
Parses plain HTML response (string) into Crawler object
public function parse() : self { $this->parsed = new Crawler($this->html); return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function parse($html);", "public function parse($html);", "protected function parse()\n {\n\n $crawler = new Crawler($this->originalHTML);\n\n $this->tableOfContents = $crawler->filter('body > nav')->html();\n $this->body = $crawler->filter('body > main')->html();\n\n $this->reformatTableOfContents();\n $this->reformatBody();\n }", "function parseHTML($url) {\n $html = getHTML($url);\n // php says this is some broken-ass html\n // attemtping to repair enough to make usable\n $dom = handleBrokenHTML($html);\n return simplexml_import_dom($dom);\n}", "public function getCrawler($html) {\n\t\treturn new Crawler($html);\t\n\t}", "abstract public function scrape();", "public function scrape() {\n $expected_ref = null;\n if(!is_null($this->expected_journo)) {\n $expected_ref = $this->expected_journo->ref;\n }\n\n list($ret,$txt) = scrape_ScrapeURL($this->url, $expected_ref);\n $art_id = null;\n if($ret == 0) {\n // scraped ran\n\n $arts = scrape_ParseOutput($txt);\n if(sizeof($arts)>0) {\n // scraped at least one article\n $this->set_article($arts[0]);\n }\n }\n\n $this->update_status();\n return $txt;\n }", "public function parse($url);", "public function process($html);", "public function parseFromHtml($url, $html) {\n $this->url = $url;\n $crawler = new Crawler(null, $this->url);\n $crawler->addContent($html);\n $this->parseFromCrawler($crawler);\n }", "public function crawl() {\n $client = Naloader::getHttpClient($this->url);\n $crawler = $client->request('GET', $this->url);\n $this->parseFromCrawler($crawler);\n }", "protected function parse($html) {\n $this->crawler->addHtmlContent($html, 'UTF-8');\n return $this->crawler->filterXPath(\"//div[contains(@class,'sr_item')]\")\n ->each(function(Crawler $node, $i){\n return [\n 'hotelid' => $node->attr('data-hotelid'),\n 'score' => $node->attr('data-score'),\n 'name' => $node->filterXPath(\"//span[contains(@class,'sr-hotel__name')]\")->text(),\n 'location' => $node->filterXPath(\"//div[contains(@class,'address')]/a[contains(@class,'district_link')]\")->text(),\n // 'price' => $node->filterXPath(\"//table/tr/td[contains(@class,'roomPrice')]/div[contains(@class,'smart_price_style')]\")->text(),\n ];\n });\n }", "function _parseHtml($html)\n\t\t{\n\t\t\t$html=preg_replace(\"/<!DOCTYPE((.|\\n)*?)>/ims\",\"\",$html);\n\t\t\t$html=preg_replace(\"/<script((.|\\n)*?)>((.|\\n)*?)<\\/script>/ims\",\"\",$html);\n\t\t\tpreg_match(\"/<head>((.|\\n)*?)<\\/head>/ims\",$html,$matches);\n\t\t\t$head=$matches[1];\n\t\t\tpreg_match(\"/<title>((.|\\n)*?)<\\/title>/ims\",$head,$matches);\n\t\t\t$this->title = $matches[1];\n\t\t\t$html=preg_replace(\"/<head>((.|\\n)*?)<\\/head>/ims\",\"\",$html);\n\t\t\t$head=preg_replace(\"/<title>((.|\\n)*?)<\\/title>/ims\",\"\",$head);\n\t\t\t$head=preg_replace(\"/<\\/?head>/ims\",\"\",$head);\n\t\t\t$html=preg_replace(\"/<\\/?body((.|\\n)*?)>/ims\",\"\",$html);\n\t\t\t$this->htmlHead=$head;\n\t\t\t$this->htmlBody=$html;\n\t\t\treturn;\n\t\t}", "abstract protected function parseResponse($response);", "static public function getFromString(){\n set_error_handler(array('\\Draeli\\RssBridge\\Utils', 'set_error_handler'));\n $result = call_user_func_array( array('\\Sunra\\PhpSimple\\HtmlDomParser', 'str_get_html'), func_get_args() );\n restore_error_handler ();\n\n return $result;\n }", "public function fromHtml($html, $selector = null)\n {\n $cr = $htmlStr = null;\n if ($html instanceof Response) {\n if (!$html->isSuccessful()) {\n $msg = 'Request for 1st argument of '.__METHOD__.' must be successful, check isSuccessful() first.';\n throw new \\LogicException($msg);\n }\n $html = $html->getContent();\n }\n if (is_string($html)) {\n if (null === $selector) {\n $htmlStr = $html;\n } else {\n $cr = new Crawler();\n $cr->addHtmlContent($html);\n }\n } elseif ($html instanceof \\DOMNode) {\n $node = $html;\n if (null !== $selector) {\n $cr = new Crawler();\n $cr->addNode($node);\n } else {\n $htmlStr = $node->ownerDocument->saveHTML($node);\n }\n } elseif ($html instanceof Crawler) {\n $cr = $html;\n } else {\n $type = is_object($html) ? get_class($html) : gettype($html);\n $msg = '1st argument must by string, Crawler, DOMNode or Response, but is '.$type;\n throw new \\InvalidArgumentException($msg);\n }\n\n if (null === $htmlStr) {\n if (null !== $selector) {\n $cr = $cr->filter($selector)->first();\n }\n $node = $cr->getNode(0); // $cr->html() only returns html of children\n if (!$node->ownerDocument) {\n throw new \\OutOfBoundsException('node has no ownerDocument, selector probaly returned nothing');\n }\n $htmlStr = $node->ownerDocument->saveHTML($node);\n }\n\n if (false === strpos($htmlStr, '<body>')) {\n $htmlStr = \"<html>\\n<head>\\n<meta charset=\\\"UTF-8\\\">\\n</head>\\n<body>\\n\".$htmlStr.\"</body>\\n</html>\\n\";\n }\n\n $tmpFile = $this->getTempHtmlFile($htmlStr); // as temporary file because it must have a filename\n\n return IOFactory::load($tmpFile['path']);\n // tmpfile is deleted automatically\n }", "public function __construct($url) {\r\n $options = array(\r\n 'http'=>array('method'=>\"GET\", 'header'=>\"User-Agent: crawlBot/0.1\\n\")\r\n );\r\n $context = stream_context_create($options);\r\n \r\n $this->doc = new DomDocument();\r\n @$this->doc->loadHTML(file_get_contents($url, false, $context));\r\n }", "abstract public function scrape(): Result;", "public function loadHTML($string) {\n $input = new HTML5_Inputstream_String($string);\n\n return $this->parse($input);\n }", "public function parse(string $content);", "public function parse(string $content);", "public function getParser($url)\n {\n try {\n $client = new Client();\n $response = $client->request('GET', $url, ['verify' => false]);\n $html = $response->getBody();\n\n $dom = new Dom();\n return $dom->load($html);\n } catch (CurlException $ex) {\n // TODO - decide what to do on HTTP error conditions, ignoring seems useless\n } catch (ClientException $clientEx) {\n \n } catch (ConnectException $connectEx) {\n \n } catch (ServerException $serverEx) {\n \n }\n \n return false;\n }", "protected function parse($html)\n {\n $doc = new \\DOMDocument();\n $doc->loadHTML('<?xml encoding=\"UTF-8\">' . $html);\n\n $xpath = new \\DOMXPath($doc);\n\n $title = $xpath->query(\"//div[@id='title']/div[@class='left']/h1\");\n $developer = $xpath->query(\"//div[@id='title']/div[@class='left']/h2\");\n $description = $xpath->query(\"//div[@class='product-review']/p\");\n\n if (empty($title) || empty($developer) || empty($description)) {\n throw new InvalidPageException('Invalid page format');\n }\n\n $this->title = $title->item(0)->textContent;\n $this->developer = ltrim($developer->item(0)->textContent, 'By ');\n $this->description = $description->item(0)->textContent;\n $this->source = 'apple';\n }", "public function parse($content);", "public abstract function get_html();", "function parseHTML(){\n\t\t$code = preg_replace_callback('~(href|src|codebase|url|action)\\s*=\\s*([\\'\\\"])?(?(2) (.*?)\\\\2 | ([^\\s\\>]+))~isx',array('self','parseExtURL'),$this->source);\n\t\t$code = preg_replace_callback('~(<\\s*style.*>)(.*)<\\s*/\\s*style\\s*>~iUs',Array('self','parseCSS'),$code);\n\t\t$code = preg_replace_callback('~(style\\s*=\\s*)([\\'\\\"])(.*)\\2~iUs',Array('self','parseStyle'),$code);\n\t\t$code = preg_replace_callback('~<script(\\s*.*)>(.*)<\\s*/\\s*script>~iUs',Array('self','parseScriptTag'),$code);\n\t\t$this->output = $code;\n\t}", "public function _parseResponce()\n\t\t{\n\t\t\t$pattern = \"/(link_cropped_no\\\" target=\\\"_blank\\\" href=\\\")(.{0,255})(\\\" )/i\";\n\t\t\tpreg_match_all($pattern, $this->responce, $out);\n\t\t\t$this->content = (!empty($out['2'])) ? array_splice($out['2'], false, AMOUNT_OF_RESULTS) : array();\n\t\t}", "public function getCrawler() {\n\t\t$crawler = new Crawler(NULL, $this->lastRequest->getBaseUri());\n\t\t$crawler->addContent($this->lastResponse->getContent(), $this->lastResponse->getHeader('Content-Type'));\n\n\t\treturn $crawler;\n\t}", "public abstract function parse($text);", "private function parsehtml()\n\t{\n\t\t$html = $this->getUrl($this->url);\n\t\t$dom = new \\DOMDocument();\n\t\t@$dom->loadHTML($html);\n\t\t// discard white space\n\t\t$dom->preserveWhiteSpace = false;\n\t\t\n\t\t// get the div with id=\"moviemeter\" which includes the movies\n\t\t$movies = $dom->getElementById(\"moviemeter\");\n\t\tif(!$movies)\n\t\t\treturn null;\n\t\t\n\t\t$charts = [];\n\t\tforeach ($movies->getElementsByTagName(\"div\") as $div) \n\t\t{\n\t\t\t$array = explode(\"#\", $div->nodeValue);\n\t\t\t\t\t\n\t\t\tif(is_array($array) && count($array) == 2)\n\t\t\t{\n\t\t\t\t// get rank\n\t\t\t\t$rank = trim(substr($array[1], 0, 3));\n\t\t\n\t\t\t\t//get was\n\t\t\t\tif( preg_match( '!\\(([^\\)]+)\\)!', $array[1], $match ) )\n\t \t\t\t$was = $match[1];\n\t \t\t\n\t\t\t\t$charts[$rank] = [\"title\"=>trim($array[0]), \"was\"=>$was, \"rank\"=>$rank];\n\t\t\t}\n\t\t}\n\t\tforeach ($charts as $key => $value) \n\t\t\t$temp[$key] = $value[\"rank\"];\n\t\t\n\t\t// sort by rank\n\t\tarray_multisort($temp, SORT_ASC, $charts);\n\n\t\t// return the top <limit>\n\t\treturn array_slice($charts, 0, $this->limit);\t\n\t}", "function fetchPageContent($url) {\n $make = $url;\n $content = curl($make);\n $doc = new DOMDocument();\n @$doc->loadHTML($content);\n $xml = simplexml_import_dom($doc); // just to make xpath more simple\n return $xml;\n\n}", "private function parseResponse() {\n $headers = Strings::split(substr($this->response, 0, $this->info['header_size']), \"~[\\n\\r]+~\", PREG_SPLIT_NO_EMPTY);\n $this->headers = static::parseHeaders($headers);\n $this->body = substr($this->response, $this->info['header_size']);\n $this->response = NULL;\n }", "function http_parse_response()\n\t{\n\t\tlist($headers, $body) = explode(\"\\r\\n\\r\\n\", $this->http_response, 2);\n\t\t$this->http_parse_headers($headers);\n\n\t\tif(isset($this->http_response_headers['Transfer-Encoding']) && 'chunked' == $this->http_response_headers['Transfer-Encoding']):\n \t\t$this->http_response_body = $this->http_chunked_decode($body);\n\t\telse:\n\t\t\t$this->http_response_body = $body;\n\t\tendif;\n\n\t\t$this->http_set_content_type($this->http_default_content_type);\n\t}", "public function parse($text);", "function get_remote_html($url) {\r\n\r\n\t$ch = curl_init($url);\r\n\tcurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\r\n\tcurl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);\r\n\tcurl_setopt($ch, CURLOPT_VERBOSE, true); \r\n\tcurl_setopt($ch, CURLOPT_HEADER, true);\r\n\r\n\t$response = curl_exec($ch);\r\n\r\n\tlist($header, $body) = explode(\"\\r\\n\\r\\n\", $response, 2);\r\n\r\n\treturn array( 'header' => $header, 'body' => $body );\r\n\r\n}", "public function process($html, $url, $smart_tidy=true) {\r\n\t\t$this->reset();\r\n\t\t\r\n\t\t// extract host name\r\n\t\t$host = @parse_url($url, PHP_URL_HOST);\r\n\t\tif (!($this->config = SiteConfig::build($host))) {\r\n\t\t\t// no match, so use defaults\r\n\t\t\t$this->config = new SiteConfig();\r\n\t\t}\r\n\t\t// store copy of config in our static cache array in case we need to process another URL\r\n\t\tSiteConfig::add_to_cache($host, $this->config);\r\n\t\t\r\n\t\t// use tidy (if it exists)?\r\n\t\t// This fixes problems with some sites which would otherwise\r\n\t\t// trouble DOMDocument's HTML parsing. (Although sometimes it\r\n\t\t// makes matters worse, which is why you can override it in site config files.)\r\n\t\t$tidied = false;\r\n\t\tif ($this->config->tidy && function_exists('tidy_parse_string') && $smart_tidy) {\r\n\t\t\t$this->debug('Using Tidy');\r\n\t\t\t$tidy = tidy_parse_string($html, self::$tidy_config, 'UTF8');\r\n\t\t\tif (tidy_clean_repair($tidy)) {\r\n\t\t\t\t$original_html = $html;\r\n\t\t\t\t$tidied = true;\r\n\t\t\t\t$html = $tidy->value;\r\n\t\t\t}\r\n\t\t\tunset($tidy);\r\n\t\t}\r\n\t\t\r\n\t\t// load and parse html\r\n\t\t$this->readability = new Readability($html, $url);\t\t\r\n\t\t\r\n\t\t// we use xpath to find elements in the given HTML document\r\n\t\t// see http://en.wikipedia.org/wiki/XPath_1.0\r\n\t\t$xpath = new DOMXPath($this->readability->dom);\r\n\r\n\t\t// strip elements (using xpath expressions)\r\n\t\tforeach ($this->config->strip as $pattern) {\r\n\t\t\t$elems = @$xpath->query($pattern, $this->readability->dom);\r\n\t\t\t// check for matches\r\n\t\t\tif ($elems && $elems->length > 0) {\r\n\t\t\t\t$this->debug('Stripping '.$elems->length.' elements (strip)');\r\n\t\t\t\tfor ($i=$elems->length-1; $i >= 0; $i--) {\r\n\t\t\t\t\t$elems->item($i)->parentNode->removeChild($elems->item($i));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t// strip elements (using id and class attribute values)\r\n\t\tforeach ($this->config->strip_id_or_class as $string) {\r\n\t\t\t$string = strtr($string, array(\"'\"=>'', '\"'=>''));\r\n\t\t\t$elems = @$xpath->query(\"//*[contains(@class, '$string') or contains(@id, '$string')]\", $this->readability->dom);\r\n\t\t\t// check for matches\r\n\t\t\tif ($elems && $elems->length > 0) {\r\n\t\t\t\t$this->debug('Stripping '.$elems->length.' elements (strip_id_or_class)');\r\n\t\t\t\tfor ($i=$elems->length-1; $i >= 0; $i--) {\r\n\t\t\t\t\t$elems->item($i)->parentNode->removeChild($elems->item($i));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t// strip images (using src attribute values)\r\n\t\tforeach ($this->config->strip_image_src as $string) {\r\n\t\t\t$string = strtr($string, array(\"'\"=>'', '\"'=>''));\r\n\t\t\t$elems = @$xpath->query(\"//img[contains(@src, '$string')]\", $this->readability->dom);\r\n\t\t\t// check for matches\r\n\t\t\tif ($elems && $elems->length > 0) {\r\n\t\t\t\t$this->debug('Stripping '.$elems->length.' image elements');\r\n\t\t\t\tfor ($i=$elems->length-1; $i >= 0; $i--) {\r\n\t\t\t\t\t$elems->item($i)->parentNode->removeChild($elems->item($i));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t// strip elements using Readability.com and Instapaper.com ignore class names\r\n\t\t// .entry-unrelated and .instapaper_ignore\r\n\t\t// See https://www.readability.com/publishers/guidelines/#view-plainGuidelines\r\n\t\t// and http://blog.instapaper.com/post/730281947\r\n\t\t$elems = @$xpath->query(\"//*[contains(concat(' ',normalize-space(@class),' '),' entry-unrelated ') or contains(concat(' ',normalize-space(@class),' '),' instapaper_ignore ')]\", $this->readability->dom);\r\n\t\t// check for matches\r\n\t\tif ($elems && $elems->length > 0) {\r\n\t\t\t$this->debug('Stripping '.$elems->length.' .entry-unrelated,.instapaper_ignore elements');\r\n\t\t\tfor ($i=$elems->length-1; $i >= 0; $i--) {\r\n\t\t\t\t$elems->item($i)->parentNode->removeChild($elems->item($i));\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// strip elements that contain style=\"display: none;\"\r\n\t\t$elems = @$xpath->query(\"//*[contains(@style,'display:none')]\", $this->readability->dom);\r\n\t\t// check for matches\r\n\t\tif ($elems && $elems->length > 0) {\r\n\t\t\t$this->debug('Stripping '.$elems->length.' elements with inline display:none style');\r\n\t\t\tfor ($i=$elems->length-1; $i >= 0; $i--) {\r\n\t\t\t\t$elems->item($i)->parentNode->removeChild($elems->item($i));\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// try to get title\r\n\t\tforeach ($this->config->title as $pattern) {\r\n\t\t\t$elems = @$xpath->evaluate($pattern, $this->readability->dom);\r\n\t\t\tif (is_string($elems)) {\r\n\t\t\t\t$this->debug('Title expression evaluated as string');\r\n\t\t\t\t$this->title = trim($elems);\r\n\t\t\t\tbreak;\r\n\t\t\t} elseif ($elems instanceof DOMNodeList && $elems->length > 0) {\r\n\t\t\t\t$this->debug('Title matched');\r\n\t\t\t\t$this->title = $elems->item(0)->textContent;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t\t// try to get body\r\n\t\tforeach ($this->config->body as $pattern) {\r\n\t\t\t$elems = @$xpath->query($pattern, $this->readability->dom);\r\n\t\t\t// check for matches\r\n\t\t\tif ($elems && $elems->length > 0) {\r\n\t\t\t\t$this->debug('Body matched');\r\n\t\t\t\tif ($elems->length == 1) {\t\t\t\t\r\n\t\t\t\t\t$this->body = $elems->item(0);\r\n\t\t\t\t\t// prune (clean up elements that may not be content)\r\n\t\t\t\t\tif ($this->config->prune) {\r\n\t\t\t\t\t\t$this->debug('Pruning content');\r\n\t\t\t\t\t\t$this->readability->prepArticle($this->body);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$this->body = $this->readability->dom->createElement('div');\r\n\t\t\t\t\t$this->debug($elems->length.' body elems found');\r\n\t\t\t\t\tforeach ($elems as $elem) {\r\n\t\t\t\t\t\t$isDescendant = false;\r\n\t\t\t\t\t\tforeach ($this->body->childNodes as $parent) {\r\n\t\t\t\t\t\t\tif ($this->isDescendant($parent, $elem)) {\r\n\t\t\t\t\t\t\t\t$isDescendant = true;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif ($isDescendant) {\r\n\t\t\t\t\t\t\t$this->debug('Element is child of another body element, skipping.');\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t// prune (clean up elements that may not be content)\r\n\t\t\t\t\t\t\tif ($this->config->prune) {\r\n\t\t\t\t\t\t\t\t$this->debug('Pruning content');\r\n\t\t\t\t\t\t\t\t$this->readability->prepArticle($elem);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t$this->debug('Element added to body');\r\n\t\t\t\t\t\t\t$this->body->appendChild($elem);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\t\t\r\n\t\t\r\n\t\t// auto detect?\r\n\t\t$detect_title = $detect_body = false;\r\n\t\t// detect title?\r\n\t\tif (!isset($this->title)) {\r\n\t\t\tif (empty($this->config->title) || (!empty($this->config->title) && $this->config->autodetect_on_failure)) {\r\n\t\t\t\t$detect_title = true;\r\n\t\t\t}\r\n\t\t}\r\n\t\t// detect body?\r\n\t\tif (!isset($this->body)) {\r\n\t\t\tif (empty($this->config->body) || (!empty($this->config->body) && $this->config->autodetect_on_failure)) {\r\n\t\t\t\t$detect_body = true;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// check for hNews\r\n\t\tif ($detect_title || $detect_body) {\r\n\t\t\t// check for hentry\r\n\t\t\t$elems = @$xpath->query(\"//*[contains(concat(' ',normalize-space(@class),' '),' hentry ')]\", $this->readability->dom);\r\n\t\t\tif ($elems && $elems->length > 0) {\r\n\t\t\t\t$this->debug('hNews: found hentry');\r\n\t\t\t\t$hentry = $elems->item(0);\r\n\t\t\t\t\r\n\t\t\t\tif ($detect_title) {\r\n\t\t\t\t\t// check for entry-title\r\n\t\t\t\t\t$elems = @$xpath->query(\".//*[contains(concat(' ',normalize-space(@class),' '),' entry-title ')]\", $hentry);\r\n\t\t\t\t\tif ($elems && $elems->length > 0) {\r\n\t\t\t\t\t\t$this->debug('hNews: found entry-title');\r\n\t\t\t\t\t\t$this->title = $elems->item(0)->textContent;\r\n\t\t\t\t\t\t$detect_title = false;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t// check for entry-content.\r\n\t\t\t\t// according to hAtom spec, if there are multiple elements marked entry-content,\r\n\t\t\t\t// we include all of these in the order they appear - see http://microformats.org/wiki/hatom#Entry_Content\r\n\t\t\t\tif ($detect_body) {\r\n\t\t\t\t\t$elems = @$xpath->query(\".//*[contains(concat(' ',normalize-space(@class),' '),' entry-content ')]\", $hentry);\r\n\t\t\t\t\tif ($elems && $elems->length > 0) {\r\n\t\t\t\t\t\t$this->debug('hNews: found entry-content');\r\n\t\t\t\t\t\tif ($elems->length == 1) {\r\n\t\t\t\t\t\t\t// what if it's empty? (some sites misuse hNews - place their content outside an empty entry-content element)\r\n\t\t\t\t\t\t\t$e = $elems->item(0);\r\n\t\t\t\t\t\t\tif (($e->tagName == 'img') || (trim($e->textContent) != '')) {\r\n\t\t\t\t\t\t\t\t$this->body = $elems->item(0);\r\n\t\t\t\t\t\t\t\t// prune (clean up elements that may not be content)\r\n\t\t\t\t\t\t\t\tif ($this->config->prune) {\r\n\t\t\t\t\t\t\t\t\t$this->debug('Pruning content');\r\n\t\t\t\t\t\t\t\t\t$this->readability->prepArticle($this->body);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t$detect_body = false;\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t$this->debug('hNews: skipping entry-content - appears not to contain content');\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tunset($e);\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t$this->body = $this->readability->dom->createElement('div');\r\n\t\t\t\t\t\t\t$this->debug($elems->length.' entry-content elems found');\r\n\t\t\t\t\t\t\tforeach ($elems as $elem) {\r\n\t\t\t\t\t\t\t\t$isDescendant = false;\r\n\t\t\t\t\t\t\t\tforeach ($this->body->childNodes as $parent) {\r\n\t\t\t\t\t\t\t\t\tif ($this->isDescendant($parent, $elem)) {\r\n\t\t\t\t\t\t\t\t\t\t$isDescendant = true;\r\n\t\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tif ($isDescendant) {\r\n\t\t\t\t\t\t\t\t\t$this->debug('Element is child of another body element, skipping.');\r\n\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t// prune (clean up elements that may not be content)\r\n\t\t\t\t\t\t\t\t\tif ($this->config->prune) {\r\n\t\t\t\t\t\t\t\t\t\t$this->debug('Pruning content');\r\n\t\t\t\t\t\t\t\t\t\t$this->readability->prepArticle($elem);\r\n\t\t\t\t\t\t\t\t\t}\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t$this->debug('Element added to body');\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t$this->body->appendChild($elem);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t$detect_body = false;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// check for elements marked with instapaper_title\r\n\t\tif ($detect_title) {\r\n\t\t\t// check for instapaper_title\r\n\t\t\t$elems = @$xpath->query(\"//*[contains(concat(' ',normalize-space(@class),' '),' instapaper_title ')]\", $this->readability->dom);\r\n\t\t\tif ($elems && $elems->length > 0) {\r\n\t\t\t\t$this->debug('title found (.instapaper_title)');\r\n\t\t\t\t$this->title = $elems->item(0)->textContent;\r\n\t\t\t\t$detect_title = false;\r\n\t\t\t}\r\n\t\t}\r\n\t\t// check for elements marked with instapaper_body\r\n\t\tif ($detect_body) {\r\n\t\t\t$elems = @$xpath->query(\"//*[contains(concat(' ',normalize-space(@class),' '),' instapaper_body ')]\", $this->readability->dom);\r\n\t\t\tif ($elems && $elems->length > 0) {\r\n\t\t\t\t$this->debug('body found (.instapaper_body)');\r\n\t\t\t\t$this->body = $elems->item(0);\r\n\t\t\t\t// prune (clean up elements that may not be content)\r\n\t\t\t\tif ($this->config->prune) {\r\n\t\t\t\t\t$this->debug('Pruning content');\r\n\t\t\t\t\t$this->readability->prepArticle($this->body);\r\n\t\t\t\t}\r\n\t\t\t\t$detect_body = false;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// still missing title or body, so we detect using Readability\r\n\t\tif ($detect_title || $detect_body) {\r\n\t\t\t$this->debug('Using Readability');\r\n\t\t\t// clone body if we're only using Readability for title (otherwise it may interfere with body element)\r\n\t\t\tif (isset($this->body)) $this->body = $this->body->cloneNode(true);\r\n\t\t\t$success = $this->readability->init();\r\n\t\t}\r\n\t\tif ($detect_title) {\r\n\t\t\t$this->debug('Detecting title');\r\n\t\t\t$this->title = $this->readability->getTitle()->textContent;\r\n\t\t}\r\n\t\tif ($detect_body && $success) {\r\n\t\t\t$this->debug('Detecting body');\r\n\t\t\t$this->body = $this->readability->getContent();\r\n\t\t\tif ($this->body->childNodes->length == 1 && $this->body->firstChild->nodeType === XML_ELEMENT_NODE) {\r\n\t\t\t\t$this->body = $this->body->firstChild;\r\n\t\t\t}\r\n\t\t\t// prune (clean up elements that may not be content)\r\n\t\t\tif ($this->config->prune) {\r\n\t\t\t\t$this->debug('Pruning content');\r\n\t\t\t\t$this->readability->prepArticle($this->body);\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (isset($this->body)) {\r\n\t\t\t// remove scripts\r\n\t\t\t$this->readability->removeScripts($this->body);\r\n\t\t\t$this->success = true;\r\n\t\t}\r\n\t\t\r\n\t\t// if we've had no success and we've used tidy, there's a chance\r\n\t\t// that tidy has messed up. So let's try again without tidy...\r\n\t\tif (!$this->success && $tidied && $smart_tidy) {\r\n\t\t\t$this->debug('Trying again without tidy');\r\n\t\t\t$this->process($original_html, $url, false);\r\n\t\t}\r\n\r\n\t\treturn $this->success;\r\n\t}", "public function parseFromCrawler(Crawler $crawler) {\n $this->title = Naloader::unescapeText($crawler->filter('p.novel_title')->first()->text());\n\n $authorNode = $crawler->filter('div.novel_writername')->first();\n $authorUrl = $crawler->filter('div#novel_footer a')->first()->attr('href');\n $this->author = new Author($authorUrl);\n $authorName = trim($authorNode->text());\n $authorName = mb_substr($authorName, 3, null, 'utf-8'); // \"作者:\"\n $this->author->name = Naloader::unescapeText($authorName);\n\n $crawler->filter('ul.undernavi a')->each(function(Crawler $node) {\n $linkUrl = $node->attr('href');\n if (strpos($linkUrl, 'txtdownload') !== false) {\n $this->textDownloadTopUrl = $linkUrl;\n }\n });\n\n $this->chapters = [];\n $crawler->filter('div.index_box dl.novel_sublist2')->each(function (Crawler $itemNode) {\n $chapter = new Chapter($this, $itemNode);\n $this->chapters[] = $chapter;\n });\n if (empty($this->chapters)) {\n $contentNode = $crawler->filter('div#novel_honbun')->first();\n $chapter = new Chapter($this, $contentNode);\n $this->chapters[] = $chapter;\n }\n }", "function tidy_get_html(tidy $object) {}", "function getHTML($url,$timeout)\n{\n $ch = curl_init($url); // initialize curl with given url\n curl_setopt($ch, CURLOPT_USERAGENT, $_SERVER[\"HTTP_USER_AGENT\"]); // set useragent\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); // write the response to a variable\n curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true); // follow redirects if any\n curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $timeout); // max. seconds to execute\n curl_setopt($ch, CURLOPT_FAILONERROR, 1); // stop when it encounters an error\n return @curl_exec($ch);\n}", "public function run() {\n\t\t$result = array();\n\t\t\n\t\t// This could take a while to run, so set no time limit\n\t\tset_time_limit(0);\n\t\t\n\t\t// This is used for ob_flush to work\n\t\tif(ob_get_length() === false && $this->showMessages) ob_start();\n\t\t\n\t\t$html = $this->fetchHTML($this->url);\n\n\t\tif(!$html) {\n\t\t\tif($this->showMessages) echo \"$this->url doesn't appear to exist.\\r\\n\";\n\t\t}\n\n\t\t$links = $this->extractLinks($html, $this->url);\n\t\t\n\t\t// HTML stored in memory is no longer required, discard it\n\t\tunset($html);\n\t\n\t\tif($this->showMessages) echo \"Getting HTML from {$this->url}\\r\\n\";\n\n\t\tif(empty($links)) {\n\t\t\tif($this->showMessages) {\n\t\t\t\techo \"$this->url doesn't appear to have any links.\\r\\n\";\n\t\t\t}\n\t\t}\n\t\t\n\t\t// We only need unique links, so take any duplicates and discard them\n\t\t$links = array_values(array_unique($links));\n\t\t$linkCount = count($links);\n\t\t\n\t\tif($this->showMessages) echo \"Found {$linkCount} links on {$this->url}\\r\\n\";\n\n\t\tif($this->showMessages) {\n\t\t\tflush();\n\t\t\tob_flush();\n\t\t}\n\n\t\t// Each unique link needs to be checked to see what status code is returned\n\t\tfor($i = 0; isset($links[$i]) && !connection_aborted(); ++$i) {\n\t\t\t\t\n\t\t\t// First, we need to check the URL exists, before we can get the status\n\t\t\tif($this->urlExists(html_entity_decode($links[$i]))) {\n\t\t\t\t// Get the headers for the link\n\t\t\t\t$headers = $this->fetchHeaders(html_entity_decode($links[$i]));\n\t\n\t\t\t\t// Get the status code from the headers\n\t\t\t\t$status = $this->extractStatusCode($headers);\n\t\t\t\t\n\t\t\t\t// Build the results (link, code, status)\n\t\t\t\t$result[$i]['Link'] = $links[$i];\n\t\t\t\t$result[$i]['Code'] = $status[0];\n\t\t\t\t$result[$i]['Status'] = $status[1];\n\t\t\t\t\n\t\t\t} else {\n\t\t\t\t// URL doesn't exist, result is a 404.\n\t\t\t\t$result[$i]['Link'] = $links[$i];\n\t\t\t\t$result[$i]['Code'] = '404';\n\t\t\t\t$result[$i]['Status'] = 'Page not found';\n\t\t\t}\n\n\t\t\tif($this->showMessages) {\n\t\t\t\tflush();\n\t\t\t\tob_flush();\n\t\t\t}\n\t\t}\n\n\t\tif($this->showMessages) {\n\t\t\tob_end_flush();\n\t\t}\n\n\t\treturn $result;\n\t}", "abstract function get_html();", "function fetch($url){\n curl_setopt($this-> ch,CURLOPT_URL, $url);\n curl_setopt($this-> ch,CURLOPT_COOKIE, \"./cookie.txt\"); \n curl_setopt($this-> ch,CURLOPT_FOLLOWLOCATION, true);\n return $this-> html = curl_exec($this-> ch);\n }", "public function parse($body) {\n\t\tif($this->is_post) return $this->html_post;\n\t\t//call this line when header redirect\n\t\tif($this->is_redirect) return \"\";\n\t\t//call this line when error 404\n\t\tif($this->is_error_404) return \"\";\n\t\t\n\t\t//otherwise, run parser for the body\n\t\tforeach($this->parsers as $parser)\n\t\t\t$parser($body);\t//pass reference into parser\n\t\treturn $body;\n\t}", "private function initCrawler($url, $siteUrl) {\n $response = $this->client->request('GET', trim($url), ['http_errors' => false]);\n if ($response->getStatusCode() != 200) {\n $this->errors[$id][] = \"Status \" . $response->getStatusCode(). \" returned for \" . $url;\n return FALSE;\n }\n else {\n $body = $response->getBody();\n $html = $body->getContents();\n return new HtmlPageCrawler($html, $siteUrl);\n }\n }", "public function parse( $contents );", "public function getCrawler()\r\n {\r\n if ($this->crawler == null) {\r\n $url = $this->request->getUrl();\r\n $html = file_get_contents($url);\r\n\r\n $domDocument = new DOMDocument();\r\n\r\n libxml_use_internal_errors(true);\r\n $domDocument->loadHTML($html);\r\n\r\n $this->crawler = new DOMXPath($domDocument);\r\n }\r\n\r\n return $this->crawler;\r\n }", "protected function getCrawler(string $body) : Crawler\n {\n return new Crawler($body);\n }", "protected function get_html_from_url($url){\r\n\t\t$ch = curl_init();\r\n\t\tcurl_setopt($ch, CURLOPT_URL, $url); \r\n\t\t// curl_setopt($ch, CURLOPT_HEADER, false); \r\n\t\tcurl_setopt($ch, CURLOPT_HTTPHEADER, array(\r\n \t\t'Content-Type: text/html; charset=UTF-8',\r\n \t\t'Accept-Language: en-US,en;q=0.5'\r\n \t));\r\n\t\tcurl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); //echo if 0 \r\n\t\t$html = curl_exec($ch);\r\n\t\tcurl_close($ch);\r\n\t\treturn $html;\r\n\t\r\n\t}", "public function parse();", "public function parse();", "public function parse();", "private function parse_curl_response()\n {\n $this->status_code = curl_getinfo($this->curl_handle, CURLINFO_HTTP_CODE);\n #$this->http_info = array_merge($this->http_info, curl_getinfo($this->curl_handle));\n\n $header_size = curl_getinfo($this->curl_handle, CURLINFO_HEADER_SIZE);\n\n // Capture the HTTP response headers\n $this->http_response_headers = substr($this->curl_response, 0, $header_size);\n\n // Capture the HTTP response body\n $this->http_body = substr($this->curl_response, $header_size);\n\n if(!$this->do_not_exit)\n {\n $this->_check_valid_response($this->http_body);\n }\n //close connection\n curl_close($this->curl_handle);\n }", "public function newCrawler()\n {\n return new Crawler;\n }", "public static function fromHtml(string $html): Renderer;", "private function parse ( ) {\n\t\t\t$this->parse_csv();\n\t\t\t\n\t\t\t// parse out the daily html\n\t\t\t$this->parse_html();\n\t\t\t\n\t\t}", "protected function parse()\n {\n if ($this->isParsed) {\n return;\n }\n\n if ($this->response->isServerError()) {\n throw new ResponseException(\"nic.ru server error\");\n }\n\n $contentType = $this->response->getHeader(\"Content-Type\");\n\n if (!preg_match(\"/^.*text\\/plain.*$/ui\", $contentType)) {\n throw new ResponseException(\"Incorrect Content-Type of response: {$contentType}\");\n }\n\n if (!$this->response->isOk()) {\n throw new ResponseException(\"Incorrect response code: {$this->response->getStatusCode()}\");\n }\n\n $content = $this->getRawContent();\n $contentParts = explode(\"\\r\\n\\r\\n\", $content);\n\n if (empty($contentParts)) {\n throw new ResponseException(\"Incorrect response: {$content}\");\n }\n\n if (count($contentParts) == 0) {\n throw new ResponseException(\"Response header is empty!\");\n }\n\n $this->parseHeader(trim($contentParts[0]));\n $this->parseBody(trim($contentParts[1]));\n\n $this->isParsed = true;\n }", "function parse ($html) {\n // TODO fix by shijp : 临时方案\n if (is_array($html)) {\n return $html;\n }\n\n // If there are no HTML tags, ignore it\n if (false === strpos($html, '<'))\n return $html;\n if (! preg_match(\"/<(?=[a-zA-Z\\/])/\", $html))\n return $html;\n\n $this->clear();\n return parent::parse($html);\n }", "function parseHtml($s_str)\r\n{\r\n$i_indicatorL = 0;\r\n$i_indicatorR = 0;\r\n$s_tagOption = \"\";\r\n$i_arrayCounter = 0;\r\n$a_html = array();\r\n// Search for a tag in string\r\nwhile( is_int(($i_indicatorL=strpos($s_str,\"<\",$i_indicatorR))) ) {\r\n// Get everything into tag...\r\n$i_indicatorL++;\r\n$i_indicatorR = strpos($s_str,\">\", $i_indicatorL);\r\n$s_temp = substr($s_str, $i_indicatorL, ($i_indicatorR-$i_indicatorL) );\r\n$a_tag = explode( ' ', $s_temp );\r\n// Here we get the tag's name\r\nlist( ,$s_tagName,, ) = each($a_tag);\r\n$s_tagName = strtoupper($s_tagName);\r\n// Well, I am not interesting in <br>, </font> or anything else like that...\r\n// So, this is false for tags without options.\r\n$b_boolOptions = is_array(($s_tagOption=each($a_tag))) && $s_tagOption[1];\r\nif( $b_boolOptions ) {\r\n// Without this, we will mess up the array\r\n$i_arrayCounter = (int)count($a_html[$s_tagName]);\r\n// get the tag options, like src=\"htt://\". Here, s_tagTokOption is 'src'and s_tagTokValue is '\"http://\"'\r\n\r\ndo {\r\n$s_tagTokOption = strtoupper(strtok($s_tagOption[1], \"=\"));\r\n$s_tagTokValue = trim(strtok(\"=\"));\r\n$a_html[$s_tagName][$i_arrayCounter][$s_tagTokOption] =\r\n$s_tagTokValue;\r\n$b_boolOptions = is_array(($s_tagOption=each($a_tag))) &&\r\n$s_tagOption[1];\r\n} while( $b_boolOptions );\r\n}\r\n}\r\nreturn $a_html;\r\n}", "private function _finish($html) {\n $contents = $this->_defaultContentArray;\n\n if (preg_match('@\\[cakepress_http_status code=\"(.+)\"\\]@msiU', $html, $matches))\n $contents['http_status_code'] = $matches[1];\n\n if ($this->cleanOutput) {\n $contents['body'] = $html;\n } else {\n // Load the DOM_Query class, first looking in the usual Composer locations (for either standard and Bedrock layouts). \n // Sadly the composer autoloader doesn't work here.\n $loader_path = dirname(__FILE__) . '/vendor/rkaiser0324/dom-query/vendor/Loader.php';\n if (!file_exists($loader_path))\n $loader_path = ABSPATH . '/../../vendor/rkaiser0324/dom-query/vendor/Loader.php';\n $loader_path = apply_filters('cakepress_dom_query_loader_path', $loader_path);\n if (!file_exists($loader_path))\n throw new exception(\"Cannot load rkaiser0324/dom-query/vendor/Loader.php. Ensure the cakepress_dom_query_loader_path filter is set properly.\");\n \n require $loader_path;\n \\Loader::init(array(dirname($loader_path)), false);\n\n $H = new \\PowerTools\\DOM_Query($html);\n\n // Get elements within head\n $contents['head'] = $this->_parseHead($H);\n\n // Get the body\n // This avoids mangling HTML by auto-closing <div>s - a big no-no \n $body = $H->select('body');\n $body_inner_html = preg_replace('@<body(.*)>(.+)</body>@msiU', '$2', $body->DOM->saveHTML($body->nodes[0]));\n $contents['body'] = $body_inner_html;\n if (WP_DEBUG)\n $contents['body'] = sprintf('<!-- CakePress start -->%s<!-- CakePress end -->', $contents['body']);\n }\n return $contents;\n }", "function parseText ($text) {\n return $this->parse($text);\n }", "static public function parse_plain_response($s)\n {\n parse_str($s, $a);\n return $a;\n }", "public function fetchHTML($url) {\n\t\t$contents = '';\n\t\t\n\t\tini_set('user_agent', 'User-Agent: ' . self::$agent_name);\n\t\t\n\t\tif(($fp = @fopen($url, 'r'))) {\n\t\t\twhile($data = fread($fp, 1024)) $contents .= $data;\n\t\t\t\n\t\t\tfclose($fp);\n\t\t} elseif($url_info = parse_url($url)) {\n\t\t\t$port = isset($url_info['port']) ? $url_info['port'] : 80;\n\t\t\t\n\t\t\tif($url_info['scheme'] == 'https') {\n\t\t\t\t$fp = fsockopen('ssl://' . $url_info['host'], 443, $errno, $errstr, 30);\n\t\t\t} else {\n\t\t\t\t$fp = fsockopen($url_info['host'], $port, $errno, $errstr, 30);\n\t\t\t}\n\t\t\t\n\t\t\tif(!$fp) {\n\t\t\t\techo \"$errstr ($errno)\\r\\n\";\n\t\t\t} else {\n\t\t\t\t$out = 'HEAD ' . (isset($url_info['path']) ? $url_info['path'] : '/') .\n\t\t\t\t\t(isset($url_info['query']) ? '?' . $url_info['query']: '') .\n\t\t\t\t\t\" HTTP/1.1\\r\\n\";\n\t\t\t\t\n\t\t\t\t$out .= 'Host: ' . $url_info['host'] . \"\\r\\n\";\n\t\t\t\t$out .= 'User-Agent: ' . self::$agent_name . \"\\r\\n\";\n\t\t\t\t$out .= \"Connection: Close\\r\\n\\r\\n\";\n\t\t\t\t\n\t\t\t\tfwrite($fp, $out);\n\t\t\t\t\n\t\t\t\twhile(!feof($fp)) $contents .= fgets($fp, 128);\n\t\t\t\t\n\t\t\t\tfclose($fp);\n\t\t\t\t\n\t\t\t\tlist($headers, $content) = explode(\"\\r\\n\\r\\n\", $contents, 2);\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn $contents;\n\t}", "public function fetch() {\n return $this->html;\n }", "protected function parse() {}", "public function getCrawler()\n {\n if (!$this->crawler instanceof Crawler) {\n $this->crawler = new Crawler('', $this->getUri()->toString());\n $this->crawler->addContent(\n $this->getResponse()->getBody(true),\n $this->getResponse()->getHeader('Content-Type', true)\n );\n }\n return $this->crawler;\n }", "protected function parseHtml()\n\t{\n\t\t// parse the html to look for the h4 'have X in circles' element\n\t\tpreg_match('/<h4 class=\"nPQ0Mb pD8zNd\">(.*?)<\\/h4>/s', $this->html, $matches);\n\n\t\tif (isset($matches) && !empty($matches))\n\t\t{\n\t\t\t$count = $matches[1];\n\t\t\t$circles = preg_replace('/[^0-9_]/', '', $count);\n\t\t}\n\t\tif (empty($circles))\n\t\t{\n\t\t\t$circles = 0;\n\t\t}\n\n\t\t// parse the html for the user's name\n\t\tpreg_match('/<span class=\"fn\">(.*?)<\\/span>/s', $this->html, $matches);\n\t\t$name = $matches[1];\n\n\t\t// parse the html for the img div\n\t\tpreg_match('/<div class=\"k-Va-pc-N-A\">(.*?)<\\/div>/s', $this->html, $matches);\n\t\t$img_div = $matches[1];\n\t\t\n\t\t// parse the img div for the image src\n\t\tpreg_match('/< *img[^>]*src *= *[\"\\']?([^\"\\']*)/i', $img_div, $matches);\n\t\t$img = 'http:' . $matches[1];\n\n\t\t// put the data in an array\n\t\t$return = array('id' => $this->user_id, 'count' => $circles, 'name' => $name, 'img' => $img, 'url' => $this->url);\n\n\t\treturn $return;\n\t}", "public function parse()\n\t{\n\t\t//we don't need to hit the API everytime parse is called\n\t\tif (!$this->response)\n\t\t\t$this->response = $this->request->execute();\n\t\t\n\t\treturn $this->invokeParserMethod();\t\n\t}", "public function __construct($url){\n\n $options = array(\n 'http'=> array(\n 'method' => 'GET',\n 'header' => 'User-Agent: GooggleBot/1.0\\n'\n )\n );\n\n $context = stream_context_create($options);\n\n // chargement du document html\n\n $this->_doc = new DomDocument();\n\n @$this->_doc ->loadHTML(file_get_contents($url,false,$context));\n }", "private function scrapeWithCurl($url) {\n $ch = curl_init($url);\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n curl_setopt(\n $ch,\n CURLOPT_USERAGENT,\n 'Mozilla/5.0 (Windows; U; Windows NT 5.1; ru; rv:1.9.0.7) Gecko/2009021910 Firefox/3.0.7 (.NET CLR 3.5.30729)'\n );\n $output = curl_exec($ch);\n curl_close($ch);\n return $output;\n }", "protected function curl($URL)\n {\n $this->log(__LINE__, '[parser] curl() - URL = '. $URL);\n\n $options = array(\n CURLOPT_RETURNTRANSFER => true, // return web page\n CURLOPT_HEADER => false, // return headers\n CURLOPT_FOLLOWLOCATION => false, // follow redirects\n CURLOPT_ENCODING => \"\", // handle all encodings\n CURLOPT_AUTOREFERER => true, // set referer on redirect\n CURLOPT_CONNECTTIMEOUT => 5, // timeout on connects\n CURLOPT_TIMEOUT => 5, // timeout on response\n CURLOPT_MAXREDIRS => 5, // stop after 10 redirects\n CURLOPT_USERAGENT => \"Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/27.0.1453.110 Safari/537.36\",\n CURLOPT_HTTPHEADER => array('Content-type: text/html; charset=utf-8', 'Accept-Language: en'),\n );\n\n $ch = curl_init($URL);\n curl_setopt_array($ch, $options);\n curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-type: text/html; charset=utf-8'));\n $source = curl_exec($ch);\n curl_close($ch);\n\n\n $html = htmlentities($source);\n //Show($html);\n\n $this->log(__LINE__, '[parser] curl() - COMPLETE : URL = '. $URL);\n return $html;\n }", "abstract public function parse($string);", "function fix_html($string) {\n // ready our stats\n $this->stats = new tp_parserstats();\n // handler for possible json (buddypress)\n if ($this->might_json) {\n if ($string[0] == '{') {\n $jsoner = json_decode($string);\n if ($jsoner != null) {\n tp_logger(\"json detected (buddypress?)\", 4);\n // currently we only handle contents (which buddypress heavily use)\n if ($jsoner->contents) {\n $jsoner->contents = $this->fix_html($jsoner->contents);\n }\n if ($jsoner->fragments->{'div.widget_shopping_cart_content'}) {\n $jsoner->fragments->{'div.widget_shopping_cart_content'} = $this->fix_html($jsoner->fragments->{'div.widget_shopping_cart_content'});\n }\n if ($jsoner->fragments->{'div.kt-header-mini-cart-refreash'}) {\n $jsoner->fragments->{'div.kt-header-mini-cart-refreash'} = $this->fix_html($jsoner->fragments->{'div.kt-header-mini-cart-refreash'});\n }\n if ($jsoner->fragments->{'a.cart-contents'}) {\n $jsoner->fragments->{'a.cart-contents'} = $this->fix_html($jsoner->fragments->{'a.cart-contents'});\n }\n if ($jsoner->fragments->{'.woocommerce-checkout-review-order-table'}) {\n $jsoner->fragments->{'.woocommerce-checkout-review-order-table'} = $this->fix_html($jsoner->fragments->{'.woocommerce-checkout-review-order-table'});\n }\n if ($jsoner->fragments->{'.woocommerce-checkout-payment'}) {\n $jsoner->fragments->{'.woocommerce-checkout-payment'} = $this->fix_html($jsoner->fragments->{'.woocommerce-checkout-payment'});\n }\n return json_encode($jsoner); // now any attempted json will actually return a json \n }\n }\n }\n\n // create our dom\n $string = str_replace(chr(0xC2) . chr(0xA0), ' ', $string); // annoying NBSPs?\n $this->html = str_get_html($string, false); // false for RSS?\n //$this->stats->do_timing();\n //Log::info(\"Stats Build dom:\" . $this->stats->time);\n // mark translateable elements\n if ($this->html->find('html', 0))\n $this->html->find('html', 0)->lang = ''; // Document defined lang may be preset to correct lang, but should be ignored TODO: Better?\n $this->translate_tagging($this->html->root);\n //$this->stats->do_timing();\n //Log::info(\"Stats Done tagging:\" . $this->stats->time);\n // first fix the html tag itself - we might need to to the same for all such attributes with flipping\n if ($this->html->find('html', 0)) {\n if ($this->dir_rtl)\n $this->html->find('html', 0)->dir = 'rtl';\n else\n $this->html->find('html', 0)->dir = 'ltr';\n }\n\n if ($this->lang) {\n if ($this->html->find('html', 0))\n $this->html->find('html', 0)->lang = $this->lang;\n // add support for <meta name=\"language\" content=\"<lang>\">\n if ($this->html->find('meta[name=language]')) {\n @$this->html->find('meta[name=language]')->content = $this->lang;\n }\n }\n\n // not much point in further processing if we don't have a function that does it\n if ($this->fetch_translate_func == null) {\n return $this->html;\n }\n\n // fix feed\n if ($this->feed_fix) {\n // fix urls on feed\n tp_logger('fixing rss feed', 3);\n foreach (array('link', 'wfw:commentrss', 'comments') as $tag) {\n foreach ($this->html->find($tag) as $e) {\n $e->innertext = htmlspecialchars(call_user_func_array($this->url_rewrite_func, array($e->innertext)));\n // no need to translate anything here\n unset($e->nodes);\n }\n }\n // guid is not really a url -- in some future, we can check if permalink is true and probably falsify it\n foreach ($this->html->find('guid') as $e) {\n $e->innertext = $e->innertext . '-' . $this->lang;\n unset($e->nodes);\n }\n // fix feed language\n @$this->html->find('language', 0)->innertext = $this->lang;\n unset($this->html->find('language', 0)->nodes);\n } else {\n // since this is not a feed, we might have references to such in the <link rel=\"alternate\">\n foreach ($this->html->find('link') as $e) {\n if (strcasecmp($e->rel, 'alternate') == 0 || strcasecmp($e->rel, 'canonical') == 0) {\n if (!$e->hreflang) \n $e->href = call_user_func_array($this->url_rewrite_func, array($e->href));\n }\n }\n }\n\n // try some prefetching... (//todo - maybe move directly to the phrase create)\n// $originals = array();\n if ($this->prefetch_translate_func != null) {\n /* foreach ($this->html->find('text') as $e) {\n foreach ($e->nodes as $ep) {\n if ($ep->phrase) $originals[$ep->phrase] = true;\n }\n }\n foreach (array('title', 'value', 'placeholder', 'alt') as $title) {\n foreach ($this->html->find('[' . $title . ']') as $e) {\n if (isset($e->nodes))\n foreach ($e->nodes as $ep) {\n if ($ep->phrase) $originals[$ep->phrase] = true;\n }\n }\n }\n foreach ($this->html->find('[content]') as $e) {\n foreach ($e->nodes as $ep) {\n if ($ep->phrase) $originals[$ep->phrase] = true;\n }\n } */\n // if we should split, we will split some urls for translation prefetching\n if ($this->split_url_func != null) {\n foreach ($this->atags as $e) {\n foreach (call_user_func_array($this->split_url_func, array($e->href)) as $part) {\n $this->prefetch_phrases[$part] = true;\n }\n }\n foreach ($this->otags as $e) {\n foreach (call_user_func_array($this->split_url_func, array($e->value)) as $part) {\n $this->prefetch_phrases[$part] = true;\n }\n }\n }\n call_user_func_array($this->prefetch_translate_func, array($this->prefetch_phrases, $this->lang));\n }\n\n //fix urls more\n // WORK IN PROGRESS\n /* foreach ($this->atags as $e) {\n $hrefspans = '';\n foreach (call_user_func_array($this->split_url_func, array($e->href)) as $part) {\n // fix - not for dashes\n list ($source, $translated_text) = call_user_func_array($this->fetch_translate_func, array($part, $this->lang));\n $hrefspans .= $this->create_edit_span($part, $translated_text, $source, true);\n }\n $e->href = call_user_func_array($this->url_rewrite_func, array($e->href));\n $e->outertext .= $hrefspans;\n } */\n\n // fix src for items\n if ($this->fix_src_tag_func !== null) {\n foreach ($this->html->find('[src]') as $e) {\n $e->src = call_user_func_array($this->fix_src_tag_func, array($e->src));\n }\n\n foreach ($this->html->find('link') as $e) {\n $e->href = call_user_func_array($this->fix_src_tag_func, array($e->href));\n }\n }\n\n // fix urls...\n foreach ($this->atags as $e) {\n if ($e->href)\n $e->href = call_user_func_array($this->url_rewrite_func, array($e->href));\n }\n foreach ($this->otags as $e) {\n if ($e->value)\n $e->value = call_user_func_array($this->url_rewrite_func, array($e->value));\n }\n\n // this is used to reserve spans we cannot add directly (out of body, metas, etc)\n $hiddenspans = '';\n $savedspan = '';\n\n // actually translate tags\n // texts are first\n foreach ($this->html->find('text') as $e) {\n $replace = array();\n foreach ($e->nodes as $ep) {\n list ($source, $translated_text) = call_user_func_array($this->fetch_translate_func, array($ep->phrase, $this->lang));\n //stats\n $this->stats->total_phrases++;\n if ($translated_text) {\n $this->stats->translated_phrases++;\n if ($source == 0)\n $this->stats->human_translated_phrases++;\n }\n if (($this->is_edit_mode || ($this->is_auto_translate && $translated_text == null))/* && $ep->inbody */) {\n if ($ep->inselect) {\n $savedspan .= $this->create_edit_span($ep->phrase, $translated_text, $source, true, $ep->srclang);\n } elseif (!$ep->inbody) {\n $hiddenspans .= $this->create_edit_span($ep->phrase, $translated_text, $source, true, $ep->srclang);\n } else {\n $translated_text = $this->create_edit_span($ep->phrase, $translated_text, $source, false, $ep->srclang);\n }\n }\n // store replacements\n if ($translated_text) {\n $replace[] = array($translated_text, $ep);\n }\n }\n // do replacements in reverse\n foreach (array_reverse($replace) as $epag) {\n list($replacetext, $epg) = $epag;\n $e->outertext = substr_replace($e->outertext, $replacetext, $epg->start, $epg->len);\n }\n\n // this adds saved spans to the first not in select element which is in the body\n if ($e->nodes && !$ep->inselect && $savedspan && $ep->inbody) { // (TODO: might not be...?)\n $e->outertext = $savedspan . $e->outertext;\n $savedspan = '';\n }\n }\n\n // now we handle the title attributes (and the value of submit buttons)\n $hidden_phrases = array();\n foreach (array('title', 'value', 'placeholder', 'alt') as $title) {\n foreach ($this->html->find('[' . $title . ']') as $e) {\n $replace = array();\n $span = '';\n // when we already have a parent outertext we'll have to update it directly\n if (isset($e->parent->_[HDOM_INFO_OUTER])) {\n $saved_outertext = $e->outertext;\n }\n tp_logger(\"$title-original: $e->$title}\", 4);\n if (isset($e->nodes))\n foreach ($e->nodes as $ep) {\n if ($ep->tag == 'phrase') {\n list ($source, $translated_text) = call_user_func_array($this->fetch_translate_func, array($ep->phrase, $this->lang));\n // more stats\n $this->stats->total_phrases++;\n if ($ep->inbody)\n $this->stats->hidden_phrases++;\n else\n $this->stats->meta_phrases++;\n if ($translated_text) {\n $this->stats->translated_phrases++;\n if ($ep->inbody)\n $this->stats->hidden_translated_phrases++;\n else\n $this->stats->meta_translated_phrases++;\n if ($source == 0)\n $this->stats->human_translated_phrases++;\n }\n if (($this->is_edit_mode || ($this->is_auto_translate && $translated_text == null)) && $ep->inbody) {\n // prevent duplicate translation (title = text)\n if (strpos($e->innertext, $ep->phrase /* Transposh_utils::base64_url_encode($ep->phrase) */) === false) {\n// if (strpos($e->innertext, transposh_utils::base64_url_encode($ep->phrase)) === false) {\n //no need to translate span the same hidden phrase more than once\n if (!in_array($ep->phrase, $hidden_phrases)) {\n $this->stats->hidden_translateable_phrases++;\n $span .= $this->create_edit_span($ep->phrase, $translated_text, $source, true, $ep->srclang);\n // logger ($span);\n $hidden_phrases[] = $ep->phrase;\n }\n }\n }\n // if we need to replace, we store this\n if ($translated_text) {\n $replace[$translated_text] = $ep;\n }\n }\n }\n // and later replace\n foreach (array_reverse($replace, true) as $replace => $epg) {\n $e->$title = substr_replace($e->$title, $replace, $epg->start, $epg->len);\n }\n\n $e->outertext .= $span;\n // this is where we update in the outercase issue\n if (isset($e->parent->_[HDOM_INFO_OUTER])) {\n $e->parent->outertext = implode($e->outertext, explode($saved_outertext, $e->parent->outertext, 2));\n }\n }\n }\n\n // now we handle the meta content - which is simpler because they can't be edited or auto-translated in place\n // we also don't expect any father modifications here\n // so we now add all those spans right before the <body> tag end\n foreach ($this->html->find('[content]') as $e) {\n $right = '';\n $newtext = '';\n\n foreach ($e->nodes as $ep) {\n if ($ep->tag == 'phrase') {\n // even more stats\n $this->stats->total_phrases++;\n $this->stats->meta_phrases++;\n list ($source, $translated_text) = call_user_func_array($this->fetch_translate_func, array($ep->phrase, $this->lang));\n if ($translated_text) {\n $this->stats->translated_phrases++;\n $this->stats->meta_translated_phrases++;\n if ($source == 0)\n $this->stats->human_translated_phrases++;\n list ($left, $right) = explode($ep->phrase, $e->content, 2);\n $newtext .= $left . $translated_text;\n $e->content = $right;\n }\n if ($this->is_edit_mode) {\n $hiddenspans .= $this->create_edit_span($ep->phrase, $translated_text, $source, true, $ep->srclang);\n }\n if (!$translated_text && $this->is_auto_translate && !$this->is_edit_mode) {\n tp_logger('untranslated meta for ' . $ep->phrase . ' ' . $this->lang);\n if ($this->is_edit_mode || $this->is_auto_translate) { // FIX\n }\n }\n }\n }\n if ($newtext) {\n $e->content = $newtext . $right;\n tp_logger(\"content-phrase: $newtext\", 4);\n }\n }\n\n if ($hiddenspans) {\n $body = $this->html->find('body', 0);\n if ($body != null)\n $body->lastChild()->outertext .= $hiddenspans;\n }\n \n // we might show an ad for transposh in some cases\n if (($this->allow_ad && !$this->default_lang && mt_rand(1, 100) > 95) || // 5 of 100 for translated non default language pages\n ($this->allow_ad && $this->default_lang && mt_rand(1, 100) > 99) || // 1 of 100 for translated default languages pages\n (!$this->allow_ad && mt_rand(1, 1000) > 999)) { // 1 of 1000 otherwise\n $this->do_ad_switch();\n }\n \n // This adds a meta tag with our statistics json-encoded inside...\n// $this->stats->do_timing();\n// Log::info(\"Stats Done:\" . $this->stats->time);\n\n $head = $this->html->find('head', 0);\n if ($this->edit_span_created) {\n if ($head != null) {\n $head->lastChild()->outertext .= $this->added_header;\n }\n }\n //exit;\n if ($head != null)\n $head->lastChild()->outertext .= \"\\n<meta name=\\\"translation-stats\\\" content='\" . json_encode($this->stats) . \"'/>\";\n\n // we make sure that the result is clear from our shananigans\n return str_replace(array(TP_GTXT_BRK, TP_GTXT_IBRK, TP_GTXT_BRK_CLOSER, TP_GTXT_IBRK_CLOSER), '', $this->html->outertext);\n // Changed because of places where tostring failed\n //return $this->html;\n //return $this->html->outertext;\n }", "public function __construct($html, $num_results, $url){\n # Clean HTML.\n $purifier = new HTMLPurifier();\n $clean_html = $purifier->purify($html);\n\n # Build a HTML parser to search for items.\n $this->dom = new Dom;\n $this->dom->load($clean_html);\n\n $this->num_results = $num_results;\n $this->url = $url;\n $this->detailed = false;\n }", "private static function parseResponse($htmlBody)\n {\n\n $results = [];\n $raw_results = json_decode($htmlBody, true);\n \n foreach ($raw_results as $row) {\n if(is_array($row)){\n $result = new SearchResult();\n\n $result->setTorrentHash($row['torrent_hash']);\n $result->setName($row['title']);\n $result->setCategory($row['category']);\n $result->setLeechers($row['leechs']);\n $result->setSeeders($row['seeds']);\n $result->setSize($row['torrent_size']);\n\n $results[] = $result;\n }\n\n }\n\n return $results;\n }", "public function fetchWebPageWithElements()\n {\n if (!$this->_url) {\n /**\n * @uses Parsonline_Exception_ContextException\n */\n require_once(\"Parsonline/Exception/ContextException.php\");\n throw new Parsonline_Exception_ContextException(\"Failed to fetch web page. No URL is specified\");\n }\n $pageURL = $this->_url;\n $result = array(self::ELEMENT_HTML => array());\n $fetcher = $this->getFetcher();\n $htmlPage = $fetcher->fetchURL($pageURL);\n $this->_log(__METHOD__, \"fetched \" . strlen($htmlPage) . \" bytes from the web page '{$pageURL}'\", LOG_DEBUG);\n \n /**\n *@uses Parsonline_Parser_Html\n */\n $parser = new Parsonline_Parser_Html();\n $baseURL = $parser->getDocumentBaseURL($pageURL, $htmlPage);\n if (!$baseURL) {\n /**\n *@uses Parsonline_Exception_ValueException\n */\n require_once('Parsonline/Exception/ValueException.php');\n throw new Parsonline_Exception_ValueException(\n \"Failed to detect the base of the web page from URL. Invalid URL specified: '{$pageURL}'\"\n );\n }\n \n $parsedElementReferences = $this->parseTargetElements($htmlPage);\n \n $result[self::ELEMENT_HTML][$pageURL] = array($pageURL, $htmlPage);\n unset($htmlPage);\n \n $total = count($parsedElementReferences, COUNT_RECURSIVE) - count($parsedElementReferences);\n $this->_log(__METHOD__, \"parsed $total resources from the web page '{$pageURL}'\", LOG_DEBUG);\n $total++; // include the HTML page itself. total is going to be used to notify observers manually\n \n /**\n *@TODO add a public method to notify observers manually, using this total\n * in here. register that method as an observer in the fetcher object \n */\n \n // first download stylesheets, then scripts, then links and images at last\n $elementOrder = array(self::ELEMENT_STYLESHEET, self::ELEMENT_SCRIPT, self::ELEMENT_LINK, self::ELEMENT_IMAGE);\n \n // keep track of downloaded URLs to avoid downloading a URL twice to handle redundant references\n $downloadedURLs = array();\n \n foreach($elementOrder as $element) {\n if ( !isset($parsedElementReferences[$element]) ) {\n continue;\n }\n \n $result[$element] = array();\n $references = $parsedElementReferences[$element];\n $urlsToFetch = array();\n \n foreach($references as $ref) {\n // convert to absolute URL\n if (parse_url($ref, PHP_URL_SCHEME)) {\n $url = $ref;\n } else {\n $url = $parser->convertReferenceToURL($ref, $pageURL, $baseURL);\n }\n \n // handle multiple redundant references\n if ( !isset($result[$element][$url]) ) {\n $result[$element][$url] = array($ref, null);\n }\n \n if ( in_array($url, $downloadedURLs) ) {\n // if we have already downloaded the URL, do not include it\n // int the $urlsToFetch and use previously fetched data\n $result[$element][$url] = array($ref, $downloadedURLs[$url]);\n } else {\n $urlsToFetch[] = $url;\n }\n } // foreach($references ...\n\n if ($urlsToFetch) {\n $this->_log(\n __METHOD__,\n sprintf(\"fetching '%d' resource of '%s' from the web page '%s'\", count($urlsToFetch), $element, $pageURL)\n ,LOG_DEBUG\n );\n\n $fetcher->setURLs($urlsToFetch);\n unset($urlsToFetch);\n\n $fetched = $fetcher->fetch();\n\n // now push the fetched data back to the result strucutre\n foreach($fetched as $fetchedURL => $resourceData) {\n if ( isset($result[$element][$fetchedURL]) ) {\n // fetched URL is the same as the elementURL\n $result[$element][$fetchedURL][1] = $resourceData;\n } else {\n // fetched URL differes from the elementURLs, so we do not\n // know what is the actual element reference\n $result[$element][$fetchedURL] = array(null, $resourceData);\n }\n $downloadedURLs[$fetchedURL] = &$result[$element][$fetchedURL][1];\n }\n }\n \n } // foreach($elementOrder ...\n \n return $result;\n }", "protected function fetchBody($response)\r\n {\r\n $body = substr($response, $this->info->headerSize);\r\n $body = trim($body);\r\n $jsonBody = json_decode($body, true);\r\n\r\n if (is_array($jsonBody) AND json_last_error() === JSON_ERROR_NONE) {\r\n $this->body = new SimpleJSONElement($jsonBody);\r\n } elseif (strpos($body, '?xml') !== false) {\r\n $this->body = new SimpleXMLElement($body);\r\n } elseif (strpos($body, '!DOCTYPE') !== false or strpos($body, '!doctype') !== false) {\r\n $DomDocument = new \\DOMDocument();\r\n $DomDocument->loadHTML($body);\r\n $this->body = $DomDocument;\r\n } elseif (false !== ($serializeArray = unserialize($body))) {\r\n $this->body = new SimpleSerializeElement($serializeArray);\r\n } else {\r\n parse_str($body, $queryString);\r\n\r\n if (isset($queryString[ 0 ])) {\r\n $this->body = $body;\r\n } else {\r\n $this->body = new SimpleQueryElement($queryString);\r\n }\r\n }\r\n }", "protected function parse($str) {\n return $this->fixture->parse(new StringInputSource($str));\n }", "protected function _parseResponse($response) {\n\t\t$headers = substr($response, 0, strpos($response, \"\\r\\n\\r\\n\"));\n\t\t$body = substr($response, strlen($headers));\n\t\t\n\t\t//split up the headers\n\t\t$parts = preg_split(\"/\\r?\\n/\", $headers, -1, PREG_SPLIT_NO_EMPTY);\n\t\t$heads = array();\n\t\tfor ($i = 1, $total = sizeof($parts); $i < $total; $i++ ) {\n\t\t\tlist($name, $value) = explode(': ', $parts[$i]);\n\t\t\t$heads[$name] = $value;\n\t\t}\n\t\tif (array_key_exists('Set-Cookie', $heads)) {\n\t\t\t$this->setCookie($heads['Set-Cookie']);\n\t\t}\n\t\t$this->__setInfo('responseHeaders', $heads);\n\t\t\n\t\t$this->response['headers'] = $heads;\n\t\t$this->response['body'] = trim($body);\t\t\n\t}", "function episodeCrawler($urlVar,$resultsVar,$filterVar)\n{\n$html = file_get_contents($urlVar);\n//Create DOM-Obect\n$dom = new DOMDocument();\n@$dom->loadHTML($html);\n//Create DOM XPath\n$xpath = new DOMXPath($dom);\n//Get div-classes with specific ID through DOM XQuery\n$xpath_resultset = $xpath->query(\"//div[@class='$filterVar']\");\n\t//Loop through all the result from previous XPath Query\n\tfor ($i = 0; $i < $xpath_resultset->length; $i++)\n\t{\n\t//Save object into string with HTML-format\n\t$htmlString = $dom->saveHTML($xpath_resultset->item($i));\n\t\t\t//When loop has gone through more than specified value of how many results to show, stop loop\n\t if ($i >= $resultsVar)\n {\n break;\n }\n //If object in result has matching string \"Coming Soon\", do dateCountdownCrawler\n elseif (strpos($htmlString, '- Coming soon') !== false)\n {\n\t\t\t\t//Print out episode/object in result\n $comingSoonEpisode = $htmlString;\n\t\t\t\t//Call dateCountdownCrawler\n\t\t\t\tdateCountdownCrawler($dom,$xpath,$filterVar,$i,$comingSoonEpisode);\n }\n\t\telse\n\t\t{\n\t\t//print results\n\t\techo '<div class=\"customEpisodes\">';\n\t\techo $htmlString;\n\t\techo '</div>';\n\t\t}\n\t}\n}", "function get_soup($url) {\n echo '[get_soup] url: ', $url, \"\\n\";\n\n // for test - to see what you get from server\n // $html = file_get_contents($url);\n // echo $html\n // $doc = new DOMDocument();\n // $doc->loadHTML($html, LIBXML_NOERROR);\n \n // read HTML directly from server and convert to DOMDocument\n $doc = new DOMDocument();\n $doc->loadHTMLFile($url, LIBXML_NOERROR);\n\n // search in HTML using XPath\n $xpath = new DOMXPath($doc);\n \n return $xpath;\n}", "protected function parseResponse()\n {\n // get the status code from response.\n $statusCode = $this->httpResponse->getStatusCode();\n\n // set as error, if http status code is not between 200 and 299 (inclusive).\n $this->networkError = !($statusCode >= 200 && $statusCode <= 299);\n\n // decode the response body.\n $body = $this->decodeBody();\n\n // stop when no body is present.\n if ($body) {\n // parse the response id from the body.\n $this->id = (int) array_get($body, 'id', null);\n\n // set as error when there is a an error key and it's not null.\n $this->isError = array_get($body, 'error', null) !== null;\n\n // parse the response data, from result or error.\n $this->data = collect(array_get($body, $this->isError ? 'error' : 'result', []));\n }\n\n // just return the response body.\n return $this->body;\n }", "public static function parseURL($url) {\n\t\t\t\t\n\t\t}", "protected function parse_content(){\n $m = array(); // we will keep here\n list( $t, $text ) = explode( \"<div class='post entry-content '>\", $this->page );\n list( $text, $t ) = explode( '</div>', $text );\n return $text;\n }", "abstract public function parse ();", "public function scanHTML($string) {\n $scanner = new HTML\\Scanner($this->htmlConfig);\n return $scanner->scan($string) . $scanner->end();\n }", "public function responseParser($response, $homebookmaker, $awaybookmaker) {\n // TODO implement here\n }", "public static function parse(){\n self::$time_start = self::time();\n if(self::$state != self::STATE_READY){\n self::$error = 'Parser is not in a ready stage, current state: '.self::$state;\n self::$state = self::STATE_ERROR;\n return false;\n }\n if(self::$body == ''){\n self::$state = self::STATE_ERROR;\n self::$error = 'Body is empty';\n return false;\n }\n self::$state = self::STATE_ACTIVE;\n \n $run = true;\n while($run){\n $found = false;\n $find_open = strpos(self::$body, PARSER_OPEN_TOKEN);\n if($find_open !== false){\n $find_close = strpos(self::$body, PARSER_CLOSE_TOKEN, $find_open);\n if($find_close !== false){\n $found = true;\n $tag = substr(self::$body, $find_open, (($find_close-$find_open)+strlen(PARSER_CLOSE_TOKEN)) );\n $content = self::parse_tag($tag);\n self::$body = str_replace($tag, $content, self::$body);\n }\n }\n if(!$found){\n $run = false;\n }\n }\n self::$state = self::STATE_PARSED;\n self::time_exec();\n }", "abstract public function parse();", "abstract public function parse();", "abstract public function parse();", "abstract public function parse();", "function _parse($string, $data, $return = FALSE)\n\t{\n // Start benchmark\n $this->ci->benchmark->mark('dwoo_parse_start');\n \n\t\t// Compatibility with PyroCMS v0.9.7 style links\n\t\t// TODO: Remove this for v1.0\n\t\t$string = preg_replace('/\\{page_url\\[([0-9]+)\\]\\}/', '{page_url($1)}', $string);\n\t\t\n // Convert from object to array\n if(!is_array($data))\n {\n \t$data = (array) $data;\n }\n \n $data = array_merge($data, $this->ci->load->_ci_cached_vars);\n \n $data['ci'] =& $this->ci;\n\n // Object containing data\n $dwoo_data = new Dwoo_Data;\n $dwoo_data->setData($data);\n \n try\n {\n\t // Object of the template\n\t $tpl = new Dwoo_Template_String($string);\n\t \n\t // render the template\n\t $parsed_string = $this->dwoo->get($tpl, $dwoo_data);\n }\n \n catch(Dwoo_Compilation_Exception $e)\n {\n \tshow_error($e);\n }\n \n // Finish benchmark\n $this->ci->benchmark->mark('dwoo_parse_end');\n\n // Return results or not ?\n\t\tif ( !$return )\n\t\t{\n\t\t\t$this->ci->output->append_output($parsed_string);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\treturn $parsed_string;\n\t}", "public static function extract(string $html)\n {\n static::$classes = new Arr();\n static::load();\n static::$config = cache('monsoon') ?? Config::get();\n\n $classes = new Arr();\n $mediaqueries = new Arr();\n $screens = new Arr(static::$config['screens']);\n $pseudos = new Arr(static::$pseudos);\n $str = new Builder();\n\n foreach(explode('<', $html) as $tag)\n {\n if(!Str::startWith($tag, ['!', '/']) && $tag !== '' && Str::has($tag, 'class=\"'))\n {\n $break = Str::break($tag, 'class=\"');\n $split = explode(' ', Str::break($break[1], '\"')[0]);\n $css = new Arr();\n\n foreach($split as $util)\n {\n $negative = Str::startWith($util, '-');\n $util = Str::moveFromStart(Str::moveFromEnd($util, '!'), '-');\n $pseudo = Str::break($util, ':')[0];\n $mediaquery = false;\n\n if(Str::has($util, ':'))\n {\n $util = Str::break($util, ':')[1];\n\n if($pseudos->has($pseudo) || $screens->hasKey($pseudo))\n {\n if($screens->hasKey($pseudo))\n {\n $mediaquery = true;\n }\n }\n else\n {\n $pseudo = null;\n }\n }\n else\n {\n $pseudo = null;\n }\n\n if(static::$classes->hasKey($util))\n {\n if($mediaquery)\n {\n $key = $pseudo . '-' . $util;\n $css->push($key);\n\n if($mediaqueries->hasKey($pseudo))\n {\n $data = new Arr($mediaqueries->get($pseudo));\n $data->push(static::generate($key, $util, null, $negative));\n $mediaqueries->set($pseudo, $data->unique()->get());\n }\n else\n {\n $mediaqueries->set($pseudo, [static::generate($key, $util, null, $negative)]);\n }\n }\n else\n {\n $key = $util;\n\n if(!is_null($pseudo))\n {\n $key = $pseudo . '-' . $util;\n }\n\n $css->push($key);\n $cache = cache('util_' . $key);\n\n if(is_null($cache))\n {\n $cache = cache('util_' . $key, static::generate($key, $util, $pseudo, $negative));\n }\n\n $classes->set($key, $cache);\n }\n }\n else\n {\n $array = new Arr(explode('-', $util));\n $value = $array->last();\n $class = $array->pop()->implode('-');\n\n if(static::$classes->hasKey($class))\n {\n if($mediaquery)\n {\n $key = $pseudo . '-' . $util;\n $css->push($key);\n\n if($mediaqueries->hasKey($pseudo))\n {\n $data = new Arr($mediaqueries->get($pseudo));\n $data->push(static::generate($key, $class, null, $negative, $value));\n $mediaqueries->set($pseudo, $data->unique()->get());\n }\n else\n {\n $mediaqueries->set($pseudo, [static::generate($key, $class, null, $negative, $value)]);\n }\n }\n else\n {\n $key = $util;\n\n if(!is_null($pseudo))\n {\n $key = $pseudo . '-' . $util;\n }\n\n $css->push($key);\n $cache = cache('util_' . $key);\n \n if(is_null($cache))\n {\n $cache = cache('util_' . $key, static::generate($key, $class, $pseudo, $negative, $value));\n }\n\n $classes->set($util, $cache);\n }\n }\n else\n {\n $css->push($util);\n }\n }\n }\n\n $str->append('<' . $break[0]);\n $str->append('class=\"' . Str::moveFromBothEnds($css->implode(' '), ' ') . '\"');\n $str->append(Str::break($break[1], '\"')[1]);\n }\n else\n {\n $str->append('<' . $tag);\n }\n }\n\n foreach($mediaqueries->get() as $key => $item)\n {\n $media = new Builder('@media only screen and (max-width:' . $screens->get($key) . 'px){');\n\n foreach($item as $css)\n {\n $media->append($css);\n }\n\n $media->append('}');\n\n TemplateEngine::addStylesheet($key . '-utilities', $media->get());\n }\n\n if(!$classes->empty())\n {\n TemplateEngine::addStylesheet('monsoon-utilities', $classes->implode(PHP_EOL));\n }\n\n if($str->startWith('<<'))\n {\n $str->move(1);\n }\n \n return $str->get();\n }", "function getURLContents($this_url)\n\t{\n\t\t$timeout = 8;\n\t\t$retry = 3;\n\t\t$website_page_contents = false;\n\t\t$success_crawl = false;\n\t\t\n\t\twhile (!$success_crawl) {\n\t\t\t// initialize cURL\n\t\t\t$ch = curl_init();\n\n\t\t\tif (strlen($this_url) > 8) {\n\t\t\t\tcurl_setopt($ch, CURLOPT_URL, $this_url);\n\t\t\t\tcurl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $timeout);\n\t\t\t\tcurl_setopt($ch, CURLOPT_TIMEOUT, $timeout);\n\t\t\t\tcurl_setopt($ch, CURLOPT_USERAGENT, \"Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.2 (KHTML, like Gecko) Chrome/22.0.1216.0 Safari/537.2\");\n\t\t\t\tcurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n\t\t\t\tcurl_setopt($ch, CURLOPT_REFERER, \"http://www.facebook.com\");\n\t\t\t\tcurl_setopt($ch, CURLOPT_HEADER, true);\n\t\t\t\tcurl_setopt($ch,CURLOPT_HTTPHEADER,array('HeaderName: HeaderValue'));\n\t\t\t\tcurl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);\n\t\t\t\t@curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);\n\t\t\t\t@curl_setopt($ch, CURLOPT_MAXREDIRS, 1);\n\t\t\t\tcurl_setopt($ch, CURLOPT_ENCODING, 'gzip');\n\t\t\t\tcurl_setopt($ch, CURLOPT_FRESH_CONNECT, 1);\n\t\t\t\tcurl_setopt($ch, CURLOPT_FORBID_REUSE, 1);\n\t\t\t\t//curl_setopt($ch, CURLOPT_COOKIEJAR, dirname(__FILE__).'/c00kie.txt');\n\t\t\t\t// get contents\n\t\t\t\t$website_page_contents = curl_exec($ch);\n\n\t\t\t\t// check if there's some error's\n\t\t\t\tif(curl_error($ch))\n\t\t\t\t{\n\t\t\t\t\techo 'Curl error: ' . curl_error($ch) . \".\\n\";\n\t\t\t\t\t$retry--;\n\t\t\t\t\tif($retry < 1)\n\t\t\t\t\t{\n\t\t\t\t\t\t$success_crawl = true; // just to stop crawling\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\t$success_crawl = false;\n\t\t\t\t\t\techo 'Retrying in a second. ' . $retry . ' retries left.' . \"\\n\";\n\t\t\t\t\t\tsleep(1);\n\t\t\t\t\t}\t\t\t\t\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t$success_crawl = true;\n\t\t\t\t\t//echo 'curl success!'.\"\\n\";\n\t\t\t\t\t// close cURL\n\t\t\t\t\tcurl_close($ch);\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\techo 'Invalid URL: ' . $this_url . \"\\n\";\n\t\t\t\t$website_page_contents = '';\n\t\t\t\t$retry = 0;\n\t\t\t}\n\t\t}\n\t\t// return the contents\n\t\treturn $website_page_contents;\n\t}", "public function parseResponse($response)\n {\n // Parse the response and set the last response and headers.\n $info = curl_getinfo($this->ch);\n $this->__last_response_headers = substr(\n $response,\n 0,\n $info['header_size']\n );\n $this->__last_response = substr($response, $info['header_size']);\n }", "public function get()\n {\n \n $res = $this->server->get($this->url_key);\n if ($res === false) {\n curl_setopt($this->curl, CURLOPT_URL, $this->url);\n curl_setopt($this->curl, CURLOPT_RETURNTRANSFER, true);\n curl_setopt($this->curl, CURLOPT_FILETIME, true);\n curl_setopt($this->curl, CURLOPT_AUTOREFERER, true);\n curl_setopt($this->curl, CURLOPT_FOLLOWLOCATION, true);\n curl_setopt($this->curl, CURLOPT_MAXREDIRS, 6);\n curl_setopt($this->curl, CURLOPT_USERAGENT, \"Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_2; en-us) AppleWebKit/531.21.8 (KHTML, like Gecko) Version/4.0.4 Safari/531.21.10\");\n \n $html = curl_exec($this->curl);\n // print_r(htmlentities($body));\n curl_close($this->curl);\n \n $tidy_config = array(\n 'clean' => true,\n 'output-html'=>true,\n 'wrap' => 78,\n 'quiet'=>1\n );\n\n $tidy = new tidy;\n $tidy->parseString($html, $tidy_config);\n $tidy->cleanRepair();\n\n $html = $tidy->html()->value;\n\n // Buffer DOM errors rather than emitting them as warnings\n $oldSetting = libxml_use_internal_errors(true);\n\n $dom = new DOMDocument();\n $dom->loadHTML($html);\n \n $xpath = new DOMXPath($dom);\n $titles = $xpath->evaluate('//*[name()=\"title\"]');\n $title = $titles->item(0)->nodeValue;\n \n // Clear any existing errors from previous operations\n libxml_clear_errors();\n\n // Revert error buffering to its previous setting\n libxml_use_internal_errors($oldSetting);\n \n \n $res = array('title'=>$title);\n \n $res = json_encode($res);\n $this->server->add($this->url_key, $res, MEMCACHE_COMPRESSED, self::CACHE_LIMIT);\n }\n\n \n return json_decode($res, TRUE);\n }", "public function fetchHTML()\n {\n return $this->fetch();\n }", "public function parse($string);", "public static function parse($text, $options=array()) {\n\t\t$strip_images = static::option($options,'strip_images');\n\n\t\t//parse markdown\n\t\tif(static::option($options,'markdown')) {\n\t\t\t$markdown = new MarkdownExtra();\n\n\t\t\t$markdown->no_markup = !static::option($options, 'allow_html');\n\t\t\t$markdown->nl2br = static::option($options, 'nl2br');\n\n\t\t\t$text = $markdown->transform($text);\n\n\t\t\tif($strip_images) {\n\t\t\t\t$text = preg_replace(\"#<img .*?src=\\\"(.+?)\\\".*?/>#i\", \"$1\",$text);\n\t\t\t}\n\t\t} elseif(!static::option($options,'allow_html')) {\n\t\t\t// Markdown makes entities for us - we only need this if markdown option is OFF\n\t\t\t$text = htmlentities($text, ENT_QUOTES,'UTF-8' );\n\t\t}\n\n\t\t$detect_links = static::option($options, 'link_detection');\n\t\t$detect_images = static::option($options, 'image_detection') && !$strip_images;\n\n\t\t$text = static::parse_urls($text, $detect_links, $detect_images);\n\n\t\treturn $text;\n\t}", "static function fromHTML($html, $url=NULL) {\n $index_time = microtime(true);\n $doc = new self($html, false);\n if($url) {\n $doc->location($url);\n }\n $doc->index();\n $index_time = microtime(true) - $index_time;\n $doc->index_time = $index_time * 1000;\n return $doc;\n }" ]
[ "0.6565682", "0.6565682", "0.62326205", "0.6083824", "0.6029237", "0.5950584", "0.59361535", "0.589971", "0.58783215", "0.5875858", "0.58695656", "0.58622754", "0.58173054", "0.57484066", "0.5712362", "0.57108414", "0.56945217", "0.55662054", "0.55543023", "0.5534879", "0.5534879", "0.55076283", "0.55035365", "0.5501375", "0.54790914", "0.54406685", "0.5439171", "0.5438694", "0.54194564", "0.5416749", "0.5416651", "0.539027", "0.53548265", "0.5340684", "0.5340671", "0.53172964", "0.5310234", "0.5306068", "0.5299572", "0.52909577", "0.5259314", "0.5256367", "0.5251994", "0.52469814", "0.5223485", "0.52160156", "0.52154344", "0.5205661", "0.5203206", "0.5203206", "0.5203206", "0.52024865", "0.5189946", "0.5174635", "0.51305157", "0.5114656", "0.5107644", "0.5090674", "0.50895375", "0.5087503", "0.5063389", "0.50483996", "0.5044053", "0.5041076", "0.50362736", "0.50266445", "0.50201666", "0.5016614", "0.4997338", "0.4995512", "0.49950725", "0.49950302", "0.49843207", "0.4977752", "0.4958906", "0.4956169", "0.49537823", "0.49528307", "0.4951417", "0.49453205", "0.4941275", "0.49234688", "0.49153593", "0.4898016", "0.488558", "0.4880359", "0.48787892", "0.48754913", "0.48754913", "0.48754913", "0.48754913", "0.48645425", "0.4853315", "0.48428768", "0.48358104", "0.4829527", "0.48273444", "0.48272935", "0.4826855", "0.48202175" ]
0.66385454
0
Get filters contained in this class
public function getFilters() { return array( new \Twig_SimpleFilter('sha1', array($this, 'sha1Filter')), ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getFilters();", "public function getFilters()\n {\n return $this->filters;\n }", "public function getFilters()\n {\n return $this->filters;\n }", "public function getFilters()\n {\n return $this->filters;\n }", "public function getFilters()\n {\n return $this->filters;\n }", "public function getFilters()\n {\n return $this->filters;\n }", "public function getFilters()\n {\n return $this->filters;\n }", "public function getFilters()\n {\n return $this->filters;\n }", "public function getFilters()\n {\n return $this->filters;\n }", "public function getFilters()\n {\n return $this->filters;\n }", "public function getFilters()\r\n {\r\n return $this->filters;\r\n }", "public function getFilters() \r\n\t{\r\n\t\treturn $this->_filters;\r\n\t}", "public function getFilters() \n {\n return $this->filters;\n }", "public function getFilters ()\n {\n $filters = [];\n\n return $filters;\n }", "public function getFilters()\n {\n $filters = [];\n\n return $filters;\n }", "public function getFilters()\n {\n return array();\n }", "public function getFilters()\n {\n if (!$this->extensionInitialized) {\n $this->initExtensions();\n }\n return $this->filters;\n }", "public function getFilters(): array\n {\n return $this->filters;\n }", "protected function filters(): array\n {\n return $this->filters;\n }", "public function getFilters()\n {\n if (null === $this->filters) {\n $this->filters = new Collection();\n }\n return $this->filters;\n }", "abstract protected function getFilters();", "public function getFilters()\n {\n if (empty($this->filters)) {\n $this->filters = [\n new Filter\\LicenceType(),\n new Filter\\LicenceStatus(),\n new Filter\\LicenceTrafficArea(),\n new Filter\\EntityType(),\n new Filter\\GoodsOrPsv(),\n ];\n }\n\n return $this->filters;\n }", "public function & GetFilters () {\n\t\t$filters = [];\n\t\tforeach ($this->filters as $direction => $handler) \n\t\t\t$filters[$direction] = $handler[1];\n\t\treturn $filters;\n\t}", "public function getFilters() : array\n {\n return $this->getLoader()->getFilters();\n }", "public function getFilters()\n {\n if (empty($this->filters)) {\n $this->filters = [\n new Filter\\AddressType(),\n new Filter\\AddressComplaint(),\n new Filter\\AddressOpposition(),\n new Filter\\LicenceStatus(),\n new Filter\\ApplicationStatus(),\n new Filter\\AddressConditionUndertaking(),\n new Filter\\GoodsOrPsv(),\n ];\n }\n\n return $this->filters;\n }", "public static function GET_FILTER(): array\n\t{\n\t\treturn self::$filters;\n\t}", "public function filters(){\r\r\n\t\treturn CMap::mergeArray(parent::filters(),array(\r\r\n\t\t\t\r\r\n\t\t));\r\r\n\t}", "public function getFilters(): FilterCollection;", "public function getFilter();", "public function getFilter();", "public function getAllFilters();", "public function getFilters(): array;", "public function getFilters()\n {\n if (null === $this->filters) {\n $this->filters = array();\n foreach ($this->getExtensions() as $extension) {\n $this->filters = array_merge($this->filters, $extension->getFilters());\n }\n }\n\n return $this->filters;\n }", "public function getFilters()\n {\n return array_filter($this->request->only($this->filters));\n }", "public function getFilters()\n {\n $filters = array(\n new Twig_SimpleFilter('age', 'twig_age_filter'),\n );\n\n return $filters;\n }", "public function getFilters()\n {\n $filters = array();\n foreach ($this->_filters as $key => $filter) {\n if (!$filter instanceof Zend_Filter_Interface) {\n $filter = $this->_filters[$key] = $this->_loadFilter($filter);\n }\n $filters[] = $filter;\n }\n return $filters;\n }", "public function filters()\n {\n return [\n \n ];\n }", "public function getFilters()\n {\n return [\n new \\Twig_SimpleFilter('getBarMsgs', [$this, 'getRedisMsgs']),\n new \\Twig_SimpleFilter('json_decode', [$this, 'jsonDecode']),\n new \\Twig_SimpleFilter('routeExists', [$this, 'routeExists'])\n ];\n }", "public function getFilters()\n {\n return [\n new \\Twig_SimpleFilter('country', [$this, 'getCountry']),\n new \\Twig_SimpleFilter('language', [$this, 'getLanguage']),\n new \\Twig_SimpleFilter('locale_date', [$this, 'getLocaleDate']),\n ];\n }", "public function getFilters()\n {\n return [\n 'setting' => new TwigFilter(\n 'setting',\n [$this, 'settingFilter'],\n []\n ),\n ];\n }", "public function getFilters()\n {\n return [\n new TwigFilter('dump', 'dump'),\n new TwigFilter('dd', 'dd'),\n ];\n }", "public function getFilters() {\n\t\treturn array(\n\t\t\tnew Twig_SimpleFilter('trans', '__'),\n\t\t\tnew Twig_SimpleFilter('c', '__c'),\n\t\t\tnew Twig_SimpleFilter('d', '__d'),\n\t\t\tnew Twig_SimpleFilter('dc', '__dc'),\n\t\t\tnew Twig_SimpleFilter('n', '__n')\n\t\t);\n\t}", "public function GetFilters ();", "public function getFilters()\n {\n $filters = [];\n\n $filters[] = new \\Twig_Filter('date_format', [$this, 'filterDateFormat']);\n $filters[] = new \\Twig_Filter('truncate', 'b_truncate');\n $filters[] = new \\Twig_Filter('nl2p', 'b_nl2p', ['is_safe' => ['html']]);\n $filters[] = new \\Twig_Filter('human_file_size', 'b_human_file_size');\n $filters[] = new \\Twig_Filter('json_decode', 'json_decode');\n\n return $filters;\n }", "public function getFilter(): array\n {\n return $this->filter;\n }", "public function getFilter(): array\n {\n return $this->filter;\n }", "public function getFilter()\n {\n return $this->get(self::FILTER);\n }", "protected function getFilter() {\n\t\t$conditions = $this->getConditions();\n\t\treturn $conditions;\n\t}", "public function getFilterables()\n {\n return $this->filterables;\n }", "public function getFilters(): array\n {\n return $this->request->only($this->filters);\n }", "public function getFilters(): array;", "public function getFilters(): array\n {\n return [];\n }", "public function get_filters() {\n $filters = new stdClass();\n\n $filters->path = $this->path;\n $filters->column = $this->column;\n $filters->direction = $this->direction;\n $filters->page = $this->page;\n\n return $filters;\n }", "public function getFilters () {\n $filters = array( 'word_limiter' => new Twig_Filter_Function( 'twig_word_limiter_filter', array( 'needs_environment' => true ) ) );\n\n return $filters;\n }", "public function getFilters()\n\t{\n\t\treturn [\n\t\t\tnew \\Twig_SimpleFilter('basename', 'basename'),\n\t\t\tnew \\Twig_SimpleFilter('get_class', 'get_class'),\n\t\t\tnew \\Twig_SimpleFilter('json_decode', 'json_decode'),\n\t\t\tnew \\Twig_SimpleFilter('_', 'echo'),\n\t\t];\n\t}", "public function getFilters()\n {\n return $this->getOptions()\n ->joinWith('taxGroup.lang')\n ->joinWith('lang');\n }", "public function getFilters() {\n\n return [\n new TwigFilter('trans_items', [$this, 'translationItems']),\n ];\n }", "public function getAllFilters()\n {\n $filters = [];\n\n foreach ($this->filters as $filter) {\n $filters = array_merge($filters, $filter->getAllFilters());\n }\n\n return $filters;\n }", "public function getFilters() {\n\t\treturn $this->getWorksheet()->getFilters();\n\t}", "public function getFacetFilters()\n {\n return $this->facetFilters;\n }", "public function getFilter(){ }", "public function filters()\n {\n $filters = array(\n 'postOnly + delete',\n );\n\n return CMap::mergeArray($filters, parent::filters());\n }", "public function filters()\n {\n $filters = array(\n 'postOnly + delete',\n );\n\n return CMap::mergeArray($filters, parent::filters());\n }", "public function getFilters() {\n\t\treturn array(\n\t\t\t'size' => new Twig_Filter_Function('Cake_Number_Filters::size'),\n\t\t\t'pct' => new Twig_Filter_Function('Cake_Number_Filters::percentage'),\n\t\t\t'curr' => new Twig_Filter_Function('Cake_Number_Filters::currency'),\n\t\t\t'p' => new Twig_Filter_Function('Cake_Number_Filters::precision'),\n\t\t);\n\t}", "public function getFilters(): array\n {\n return [\n new \\Twig_SimpleFilter('extract', [$this, 'extract']),\n ];\n }", "public function getFilter()\n {\n return $this->filterComposite;\n }", "public static function GET_FILTERS_CLASS(): array\n\t{\n\t\treturn self::$filtersClass;\n\t}", "public function getFilter(): array\n {\n return $this->model->getFilter();\n }", "public function getFilters()\n {\n return array(\n new Twig_SimpleFilter('raw', 'twig_raw_filter', array('is_safe' => array('all'))),\n );\n }", "public function filters(): array\n {\n return [\n WhereIdIn::make($this),\n WhereIn::make('namespace')->delimiter(','),\n WhereIn::make('slug'),\n ];\n }", "public function getFilters()\n {\n $filters = array(\n // formatting filters\n new Twig_SimpleFilter('date', 'twig_date_format_filter', array('needs_environment' => true)),\n new Twig_SimpleFilter('date_modify', 'twig_date_modify_filter', array('needs_environment' => true)),\n new Twig_SimpleFilter('format', 'sprintf'),\n new Twig_SimpleFilter('replace', 'strtr'),\n new Twig_SimpleFilter('number_format', 'twig_number_format_filter', array('needs_environment' => true)),\n new Twig_SimpleFilter('abs', 'abs'),\n // encoding\n new Twig_SimpleFilter('url_encode', 'twig_urlencode_filter'),\n new Twig_SimpleFilter('json_encode', 'twig_jsonencode_filter'),\n new Twig_SimpleFilter('convert_encoding', 'twig_convert_encoding'),\n // string filters\n new Twig_SimpleFilter('title', 'twig_title_string_filter', array('needs_environment' => true)),\n new Twig_SimpleFilter('capitalize', 'twig_capitalize_string_filter', array('needs_environment' => true)),\n new Twig_SimpleFilter('upper', 'strtoupper'),\n new Twig_SimpleFilter('lower', 'strtolower'),\n new Twig_SimpleFilter('striptags', 'strip_tags'),\n new Twig_SimpleFilter('trim', 'trim'),\n new Twig_SimpleFilter('nl2br', 'nl2br', array('pre_escape' => 'html', 'is_safe' => array('html'))),\n // array helpers\n new Twig_SimpleFilter('join', 'twig_join_filter'),\n new Twig_SimpleFilter('split', 'twig_split_filter'),\n new Twig_SimpleFilter('sort', 'twig_sort_filter'),\n new Twig_SimpleFilter('merge', 'twig_array_merge'),\n new Twig_SimpleFilter('batch', 'twig_array_batch'),\n // string/array filters\n new Twig_SimpleFilter('reverse', 'twig_reverse_filter', array('needs_environment' => true)),\n new Twig_SimpleFilter('length', 'twig_length_filter', array('needs_environment' => true)),\n new Twig_SimpleFilter('slice', 'twig_slice', array('needs_environment' => true)),\n new Twig_SimpleFilter('first', 'twig_first', array('needs_environment' => true)),\n new Twig_SimpleFilter('last', 'twig_last', array('needs_environment' => true)),\n // iteration and runtime\n new Twig_SimpleFilter('default', '_twig_default_filter', array('node_class' => 'Twig_Node_Expression_Filter_Default')),\n new Twig_SimpleFilter('keys', 'twig_get_array_keys_filter'),\n // escaping\n new Twig_SimpleFilter('escape', 'twig_escape_filter', array('needs_environment' => true, 'is_safe_callback' => 'twig_escape_filter_is_safe')),\n new Twig_SimpleFilter('e', 'twig_escape_filter', array('needs_environment' => true, 'is_safe_callback' => 'twig_escape_filter_is_safe')),\n );\n if (function_exists('mb_get_info')) {\n $filters[] = new Twig_SimpleFilter('upper', 'twig_upper_filter', array('needs_environment' => true));\n $filters[] = new Twig_SimpleFilter('lower', 'twig_lower_filter', array('needs_environment' => true));\n }\n return $filters;\n }", "public function filters()\n {\n $filters = [];\n $filters['name'] = ['trim', 'empty_string_to_null', 'capitalize'];\n $filters['email'] = ['trim', 'empty_string_to_null', 'lowercase'];\n return $filters;\n }", "public function getFilters(): array\n {\n return [\n new TwigFilter('sonata_urlsafeid', [$this, 'getUrlsafeIdentifier']),\n ];\n }", "function get_filters($init_data = true) {\n //no filters by default\n return array();\n }", "public function getFilters()\n {\n return array(\n 'sortable' => new \\Twig_Filter_Method($this, 'sortable', array('is_safe' => array('html'))),\n 'paginate' => new \\Twig_Filter_Method($this, 'paginate', array('is_safe' => array('html')))\n );\n }", "protected function get_filters() {\n $langautoass = get_string('auto_assign', 'local_elisprogram');\n $filters = array(\n new deepsight_filter_usersetuser_autoassigned($this->DB, 'autoass', $langautoass, array(), $this->endpoint)\n );\n $filters = array_merge(parent::get_filters(), $filters);\n return $filters;\n }", "public function filters()\n\t{\n\t\t// return the filter configuration for this controller, e.g.:\n\t\treturn array(\n\t\t\t// 'inlineFilterName',\n\t\t\t// array(\n\t\t\t// \t'class'=>'path.to.FilterClass',\n\t\t\t// \t'propertyName'=>'propertyValue',\n\t\t\t// ),\n // 'accessControl', // perform access control for CRUD operations\n // 'postOnly + delete', // we only allow deletion via POST request\n\t\t);\n\t}", "public function getFilters(): array {\n\n return [\n new TwigFilter(\"adminBSBButtonLink\", [$this, \"bootstrapButtonLinkFilter\"], [\"is_safe\" => [\"html\"]]),\n new TwigFilter(\"adminBSBButtonSubmit\", [$this, \"bootstrapButtonSubmitFilter\"], [\"is_safe\" => [\"html\"]]),\n ];\n }", "public static function getFilters() {\n\t\t$filters = new stdClass();\n\n\t\t$filters->offset = array_key_exists('offset', $_GET) ? intval($_GET['offset']) : 0;\n\t\t$filters->count = array_key_exists('count', $_GET) ? intval($_GET['count']) : 100;\n\n\t\treturn $filters;\n\t}", "public function getFilter() :array;", "public function getElasticaFilters()\n {\n return $this->elasticaFilters;\n }", "public function getUserFilters()\n {\n $filters = ItemFilterModel::model()->find('play_id = :playId', array(\n ':playId' => $this->playid\n ));\n\n return $filters;\n }", "public function filters()\n\t{\n\t\treturn array(\n\t\t\t'amount' => array(\n\t\t\t\tarray('Num::filter_number')\n\t\t\t),\n\t\t\t'price' => array(\n\t\t\t\tarray('Num::filter_number')\n\t\t\t)\n\t\t);\n\t}", "public function getFilters()\n\t{\n\t\treturn array(\n\t\t\tnew \\Twig_SimpleFilter('subset', array($this, 'loop_subset'), array('needs_environment' => true)),\n\t\t\t// @deprecated 3.2.0 Uses twig's JS escape method instead of addslashes\n\t\t\tnew \\Twig_SimpleFilter('addslashes', 'addslashes'),\n\t\t);\n\t}", "public function getFilters()\n {\n return array_merge(parent::getFilters(), array(\n 'date' => new \\Twig_Filter_Function('ionic_date'),\n 'relativedate' => new \\Twig_Filter_Function('ionic_date_rel'),\n 'specialdate' => new \\Twig_Filter_Function('ionic_date_special'),\n 'url' => new \\Twig_Filter_Function('url'),\n 'nl2br_noescape' => new \\Twig_Filter_Function('nl2br'),\n 'limit' => new \\Twig_Filter_Function('Str::limit'),\n 'md5' => new \\Twig_Filter_Function('md5'),\n 'addslashes' => new \\Twig_Filter_Function('addslashes')\n ));\n }", "public function getAllFilters()\n {\n $endpoint = \"/v1/filter/all\";\n $response = $this->client->request(\"get\", $endpoint);\n\n return $this->responseToJson($response);\n }", "public function getActiveFilters()\n {\n \t$ret = $this->getSettingValue('filters', []);\n \treturn (is_array($ret)) ? $ret : [];\n }", "public function getFilters()\n {\n return array(\n new Twig_SimpleFilter('formatDate', array($this, 'formatDate'), array('rawDate', 'format')),\n new Twig_SimpleFilter('russianPluralForm', array($this, 'russianPluralForm'), array('string', 'count', 'delimiter')),\n );\n }", "protected function getFilterable()\n {\n return [];\n }", "public function getExperienceSearchFilters() {\n return $this->filters;\n }", "public function getFilter()\n {\n return $this->filter;\n }", "public function getFilter()\n {\n return $this->filter;\n }", "public function getFilter()\n {\n return $this->filter;\n }", "public function getFilter()\n {\n return $this->filter;\n }", "public function getFilter()\n {\n return $this->filter;\n }", "public function getFilter()\n {\n return $this->filter;\n }", "public function getFilter()\n {\n return $this->filter;\n }", "public function getFilter()\n {\n return $this->filter;\n }", "public function getFilter()\n {\n return $this->filter;\n }", "public function getFilter()\n {\n return $this->filter;\n }", "public function getFilter()\n {\n return $this->filter;\n }" ]
[ "0.87834394", "0.8672078", "0.8672078", "0.8672078", "0.8672078", "0.8672078", "0.8672078", "0.8672078", "0.8672078", "0.8672078", "0.86352783", "0.85546833", "0.8501213", "0.8467871", "0.84643835", "0.83912414", "0.8375582", "0.83339554", "0.82927805", "0.8290046", "0.8254655", "0.8243606", "0.8069445", "0.8065093", "0.80024403", "0.7986117", "0.7977197", "0.797676", "0.79607487", "0.79607487", "0.790172", "0.78994656", "0.7893681", "0.7879699", "0.77747434", "0.7773922", "0.77552885", "0.7743764", "0.77051", "0.77026737", "0.7700924", "0.76879644", "0.7685812", "0.7655396", "0.76454324", "0.76454324", "0.7632608", "0.7606098", "0.75967187", "0.75933844", "0.75900936", "0.7565915", "0.7531542", "0.7515167", "0.7488514", "0.7472433", "0.7466775", "0.7433685", "0.74191386", "0.7398076", "0.7393213", "0.7379896", "0.7379896", "0.7373072", "0.7326534", "0.73248655", "0.73175734", "0.7314657", "0.7311001", "0.7308952", "0.7272607", "0.72561234", "0.7238927", "0.7210771", "0.72046405", "0.71895444", "0.7183813", "0.7176165", "0.7151064", "0.7144043", "0.71391124", "0.71355563", "0.71036047", "0.71024173", "0.71022886", "0.70782363", "0.7077436", "0.7076562", "0.70700645", "0.70524555", "0.7049236", "0.7049236", "0.7049236", "0.7049236", "0.7049236", "0.7049236", "0.7049236", "0.7049236", "0.7049236", "0.7049236", "0.7049236" ]
0.0
-1
This method converts a string to its sha1 hash value
public function sha1Filter($string) { return sha1($string); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function sha1_hash( $string )\n {\n return '{SHA}'.base64_encode( pack( 'H*', sha1( $string ) ) );\n }", "public function sha1($str)\n {\n if (!function_exists('sha1')) {\n if (!function_exists('mhash')) {\n Fly::import('system.libraries.Sha1');\n $SH = new Sha1();\n return $SH->generate($str);\n } else {\n return bin2hex(mhash(MHASH_SHA1, $str));\n }\n } else {\n return sha1($str);\n }\n }", "function get_hash($string) {\r\n return hash('sha1', $string);\r\n}", "function mcsha1($str)\n{\n\t$gmp = gmp_import(sha1($str, true));\n\tif(gmp_cmp($gmp, gmp_init(\"0x8000000000000000000000000000000000000000\")) >= 0)\n\t{\n\t\t$gmp = gmp_mul(gmp_add(gmp_xor($gmp, gmp_init(\"0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF\")), gmp_init(1)), gmp_init(-1));\n\t}\n\treturn gmp_strval($gmp, 16);\n}", "protected function _getHash($string) {\n\n\t\t\treturn sha1($string);\n\t\t}", "protected function hash($string)\n {\n return hash_hmac('sha1', $string, $this->key(), true);\n }", "function string3(){\n\n $string3 = \"Hola mundo\";\n $sha1 = sha1($string3);\n\n echo $sha1;\n\n}", "function _hash($string) {\n\t\t\t// Use sha1() if possible, php versions >= 4.3.0 and 5\n\t\t\tif(function_exists('sha1')) {\n\t\t\t\t$hash = sha1($string);\n\t\t\t} else {\n\t\t\t\t// Fall back to md5(), php versions 3, 4, 5\n\t\t\t\t$hash = md5($string);\n\t\t\t}\n\t\t\t$out ='';\n\t\t\t// Convert hexadecimal hash value to binary string\n\t\t\tfor($c=0;$c<strlen($hash);$c+=2) {\n\t\t\t\t$out .= $this->_hex2chr($hash[$c] . $hash[$c+1]);\n\t\t\t}\n\t\t\treturn $out;\n\t\t}", "private function hash($str)\n {\n return ($this->hashType == 'sha1') ? $this->sha1($str) : md5($str);\n }", "public function hash($str)\n {\n return ($this->_hashType == 'sha1') ? $this->sha1($str) : md5($str);\n }", "public function getSha1Sign ()\n {\n $arrayToHash = array();\n foreach ($this->_params as $key => $value) {\n if ($value != '' && $this->isValidParam($key)) {\n $arrayToHash[] = strtoupper($key) . '=' . $value .\n $this->_config['sha1InPassPhrase'];\n }\n }\n asort($arrayToHash);\n $stringToHash = implode('', $arrayToHash);\n return sha1($stringToHash);\n }", "private function hash($string)\n {\n if (!function_exists('hash')) {\n return sha1($string);\n }\n return hash('sha256', $string);\n }", "function js_sha1($str) {\r\n return js_str(sha1(php_str($str)));\r\n}", "public function getSha1() {}", "public function getSha1() {}", "function getSha1() ;", "function make_hash($str)\n{\n return sha1(md5($str));\n}", "function make_hash($str)\n{\n return sha1(md5($str));\n}", "private static function getHash($string)\n\t{\n\t\treturn base64_encode(extension_loaded('hash') ?\n\t\thash_hmac('sha1', $string, self::$__secretKey, true) : pack('H*', sha1(\n\t\t(str_pad(self::$__secretKey, 64, chr(0x00)) ^ (str_repeat(chr(0x5c), 64))) .\n\t\tpack('H*', sha1((str_pad(self::$__secretKey, 64, chr(0x00)) ^\n\t\t(str_repeat(chr(0x36), 64))) . $string)))));\n\t}", "public static function EncodeSHA1($string, $key) {\n $key = sha1($key);\n $strLen = strlen($string);\n $keyLen = strlen($key);\n for ($i = 0; $i < $strLen; $i++) {\n $ordStr = ord(substr($string,$i,1));\n if ($j == $keyLen) { $j = 0; }\n $ordKey = ord(substr($key,$j,1));\n $j++;\n $hash .= strrev(base_convert(dechex($ordStr + $ordKey),16,36));\n }\n return $hash;\n }", "public function _hash($str) {\n switch ($this->config['algoritmo_criptografia']) {\n case 'sha1':\n return ($str == '') ? '' : sha1($str);\n break;\n case 'crypt':\n return crypt($str);\n break;\n case 'base64':\n return base64_encode($str);\n break;\n case 'plain':\n return $str;\n break;\n case 'md5':\n default:\n return md5($str);\n break;\n }\n }", "public static function hash($string)\n {\n // The hash is a string of hex digits (with a length of 32 bytes for md5).\n return md5($string);\n }", "function sha1_bin($hex)\r\n{\r\n return pack('H40', $hex);\r\n}", "function criptografa($str)\r\n\t{\r\n\t\t$str = sha1( md5( sha1 ( md5 ( $str ) ) ) );\r\n\r\n\t\treturn $str; \t\t\r\n\t}", "public static function hash($str, $type = 'sha1')\n {\n if ($type == 'sha1') {\n return sha1($str);\n } else {\n return md5($str);\n }\n }", "public static function encryptSha1($value) {\n return sha1($value . ':' . self::AUTH_MAGIC_SHA1);\n }", "public static function DecodeSHA1($string,$key) {\n $key = sha1($key);\n $strLen = strlen($string);\n $keyLen = strlen($key);\n for ($i = 0; $i < $strLen; $i+=2) {\n $ordStr = hexdec(base_convert(strrev(substr($string,$i,2)),36,16));\n if ($j == $keyLen) { $j = 0; }\n $ordKey = ord(substr($key,$j,1));\n $j++;\n $hash .= chr($ordStr - $ordKey);\n }\n return $hash;\n }", "public static function hash($string) {\n $hash = hash_init(Config::get('HASH'));\n hash_update($hash, $string);\n hash_update($hash, Config::get('SALT'));\n\n return hash_final($hash);\n }", "public static function getHash($value)\n {\n return self::sha1($value);\n }", "public function hash($str)\n\t{\n\t\treturn hash($this->_config['hash_method'], $str);\n\t}", "public function hash($str) {\n\n return hash($this->hash_method, $str);\n }", "public function hash(): string;", "public function getSHA1()\n {\n if (!$this->sha1) {\n $this->sha1 = sha1(\\gihp\\Parser\\File::exportObject($this));\n }\n\n return $this->sha1;\n }", "public function getSha1()\n {\n return $this->sha1;\n }", "function getHash($str)\n{\n\treturn hash('sha256', $str);\n}", "protected function hash($str)\n\t{\n\t\treturn hash($this->config['hash_method'], $str);\n\t}", "protected function hash($string)\n\t{\n\t\treturn md5($string);\n\n\t}", "public function getSha1() {\n\t\treturn $this->sha1;\n\t}", "public function hash($string){\n return hash('sha512', $string . config_item('encryption_key'));\n }", "public function hash ($string){\n\t\treturn hash('sha512', $string . config_item('encryption_key'));\n\t\t}", "public static function isSha1($input) {\n return preg_match(\"/^[a-f0-9]{40}$/\", strtolower($input));\n }", "public function hash( $string ) {\n\n return hash( 'sha512', $string.config_item( 'encryption_key' ) );\n }", "public static function hash($string) {\n\treturn hash('sha512',$string);\n }", "public static function hash($string)\n\t{\n\t\tif(extension_loaded('hash')) {\n\t\t\tif(!($key = Config::getVar('secret_key'))) {\n\t\t\t\tthrow new BakedCarrotException('\"secret_key\" parameter is not defined');\n\t\t\t}\n\n\t\t\treturn hash_hmac('sha256', $string, $key);\n\t\t}\n\t\telse {\n\t\t\treturn sha1($key);\n\t\t}\n\t}", "public static function hash($string)\n {\n if (function_exists('md5')) {\n return md5($string);\n }\n\n if (is_array($string) || is_object($string)) {\n $type = gettype($string);\n $caller = next(debug_backtrace());\n $eror['line'] = $caller['line'];\n $eror['file'] = strip_tags($caller['file']);\n $error['type'] = E_USER_ERROR;\n trigger_error(\n \"md5() expects parameter 1 to be string, \"\n . $type\n . \" given in <b>{$file}</b> on line <b>{$line}</b><br />\\n\",\n E_USER_ERROR\n );\n\n return;\n }\n\n // convert into string\n $string = \"{$string}\";\n $instance = self::singleton();\n $A = \"67452301\";\n $a = $A;\n $B = \"efcdab89\";\n $b = $B;\n $C = \"98badcfe\";\n $c = $C;\n $D = \"10325476\";\n $d = $D;\n $words = $instance->binArray($string);\n for ($i = 0; $i <= count($words)/16-1; $i++) {\n $a = $A;\n $b = $B;\n $c = $C;\n $d = $D;\n /* ROUND 1 */\n $a = $instance->pad($a, $b, $c, $d, $words[0 + ($i * 16)], 7, \"d76aa478\", '1');\n $d = $instance->pad($d, $a, $b, $c, $words[1 + ($i * 16)], 12, \"e8c7b756\", '1');\n $c = $instance->pad($c, $d, $a, $b, $words[2 + ($i * 16)], 17, \"242070db\", '1');\n $b = $instance->pad($b, $c, $d, $a, $words[3 + ($i * 16)], 22, \"c1bdceee\", '1');\n $a = $instance->pad($a, $b, $c, $d, $words[4 + ($i * 16)], 7, \"f57c0faf\", '1');\n $d = $instance->pad($d, $a, $b, $c, $words[5 + ($i * 16)], 12, \"4787c62a\", '1');\n $c = $instance->pad($c, $d, $a, $b, $words[6 + ($i * 16)], 17, \"a8304613\", '1');\n $b = $instance->pad($b, $c, $d, $a, $words[7 + ($i * 16)], 22, \"fd469501\", '1');\n $a = $instance->pad($a, $b, $c, $d, $words[8 + ($i * 16)], 7, \"698098d8\", '1');\n $d = $instance->pad($d, $a, $b, $c, $words[9 + ($i * 16)], 12, \"8b44f7af\", '1');\n $c = $instance->pad($c, $d, $a, $b, $words[10 + ($i * 16)], 17, \"ffff5bb1\", '1');\n $b = $instance->pad($b, $c, $d, $a, $words[11 + ($i * 16)], 22, \"895cd7be\", '1');\n $a = $instance->pad($a, $b, $c, $d, $words[12 + ($i * 16)], 7, \"6b901122\", '1');\n $d = $instance->pad($d, $a, $b, $c, $words[13 + ($i * 16)], 12, \"fd987193\", '1');\n $c = $instance->pad($c, $d, $a, $b, $words[14 + ($i * 16)], 17, \"a679438e\", '1');\n $b = $instance->pad($b, $c, $d, $a, $words[15 + ($i * 16)], 22, \"49b40821\", '1');\n\n /* round 2 */\n $a = $instance->pad($a, $b, $c, $d, $words[1 + ($i * 16)], 5, \"f61e2562\", '2');\n $d = $instance->pad($d, $a, $b, $c, $words[6 + ($i * 16)], 9, \"c040b340\", '2');\n $c = $instance->pad($c, $d, $a, $b, $words[11 + ($i * 16)], 14, \"265e5a51\", '2');\n $b = $instance->pad($b, $c, $d, $a, $words[0 + ($i * 16)], 20, \"e9b6c7aa\", '2');\n $a = $instance->pad($a, $b, $c, $d, $words[5 + ($i * 16)], 5, \"d62f105d\", '2');\n $d = $instance->pad($d, $a, $b, $c, $words[10 + ($i * 16)], 9, \"2441453\", '2');\n $c = $instance->pad($c, $d, $a, $b, $words[15 + ($i * 16)], 14, \"d8a1e681\", '2');\n $b = $instance->pad($b, $c, $d, $a, $words[4 + ($i * 16)], 20, \"e7d3fbc8\", '2');\n $a = $instance->pad($a, $b, $c, $d, $words[9 + ($i * 16)], 5, \"21e1cde6\", '2');\n $d = $instance->pad($d, $a, $b, $c, $words[14 + ($i * 16)], 9, \"c33707d6\", '2');\n $c = $instance->pad($c, $d, $a, $b, $words[3 + ($i * 16)], 14, \"f4d50d87\", '2');\n $b = $instance->pad($b, $c, $d, $a, $words[8 + ($i * 16)], 20, \"455a14ed\", '2');\n $a = $instance->pad($a, $b, $c, $d, $words[13 + ($i * 16)], 5, \"a9e3e905\", '2');\n $d = $instance->pad($d, $a, $b, $c, $words[2 + ($i * 16)], 9, \"fcefa3f8\", '2');\n $c = $instance->pad($c, $d, $a, $b, $words[7 + ($i * 16)], 14, \"676f02d9\", '2');\n $b = $instance->pad($b, $c, $d, $a, $words[12 + ($i * 16)], 20, \"8d2a4c8a\", '2');\n\n /* round 3 */\n $a = $instance->pad($a, $b, $c, $d, $words[5 + ($i * 16)], 4, \"fffa3942\", '3');\n $d = $instance->pad($d, $a, $b, $c, $words[8 + ($i * 16)], 11, \"8771f681\", '3');\n $c = $instance->pad($c, $d, $a, $b, $words[11 + ($i * 16)], 16, \"6d9d6122\", '3');\n $b = $instance->pad($b, $c, $d, $a, $words[14 + ($i * 16)], 23, \"fde5380c\", '3');\n $a = $instance->pad($a, $b, $c, $d, $words[1 + ($i * 16)], 4, \"a4beea44\", '3');\n $d = $instance->pad($d, $a, $b, $c, $words[4 + ($i * 16)], 11, \"4bdecfa9\", '3');\n $c = $instance->pad($c, $d, $a, $b, $words[7 + ($i * 16)], 16, \"f6bb4b60\", '3');\n $b = $instance->pad($b, $c, $d, $a, $words[10 + ($i * 16)], 23, \"bebfbc70\", '3');\n $a = $instance->pad($a, $b, $c, $d, $words[13 + ($i * 16)], 4, \"289b7ec6\", '3');\n $d = $instance->pad($d, $a, $b, $c, $words[0 + ($i * 16)], 11, \"eaa127fa\", '3');\n $c = $instance->pad($c, $d, $a, $b, $words[3 + ($i * 16)], 16, \"d4ef3085\", '3');\n $b = $instance->pad($b, $c, $d, $a, $words[6 + ($i * 16)], 23, \"4881d05\", '3');\n $a = $instance->pad($a, $b, $c, $d, $words[9 + ($i * 16)], 4, \"d9d4d039\", '3');\n $d = $instance->pad($d, $a, $b, $c, $words[12 + ($i * 16)], 11, \"e6db99e5\", '3');\n $c = $instance->pad($c, $d, $a, $b, $words[15 + ($i * 16)], 16, \"1fa27cf8\", '3');\n $b = $instance->pad($b, $c, $d, $a, $words[2 + ($i * 16)], 23, \"c4ac5665\", '3');\n\n /* round 4 */\n $a = $instance->pad($a, $b, $c, $d, $words[0 + ($i * 16)], 6, \"f4292244\", '4');\n $d = $instance->pad($d, $a, $b, $c, $words[7 + ($i * 16)], 10, \"432aff97\", '4');\n $c = $instance->pad($c, $d, $a, $b, $words[14 + ($i * 16)], 15, \"ab9423a7\", '4');\n $b = $instance->pad($b, $c, $d, $a, $words[5 + ($i * 16)], 21, \"fc93a039\", '4');\n $a = $instance->pad($a, $b, $c, $d, $words[12 + ($i * 16)], 6, \"655b59c3\", '4');\n $d = $instance->pad($d, $a, $b, $c, $words[3 + ($i * 16)], 10, \"8f0ccc92\", '4');\n $c = $instance->pad($c, $d, $a, $b, $words[10 + ($i * 16)], 15, \"ffeff47d\", '4');\n $b = $instance->pad($b, $c, $d, $a, $words[1 + ($i * 16)], 21, \"85845dd1\", '4');\n $a = $instance->pad($a, $b, $c, $d, $words[8 + ($i * 16)], 6, \"6fa87e4f\", '4');\n $d = $instance->pad($d, $a, $b, $c, $words[15 + ($i * 16)], 10, \"fe2ce6e0\", '4');\n $c = $instance->pad($c, $d, $a, $b, $words[6 + ($i * 16)], 15, \"a3014314\", '4');\n $b = $instance->pad($b, $c, $d, $a, $words[13 + ($i * 16)], 21, \"4e0811a1\", '4');\n $a = $instance->pad($a, $b, $c, $d, $words[4 + ($i * 16)], 6, \"f7537e82\", '4');\n $d = $instance->pad($d, $a, $b, $c, $words[11 + ($i * 16)], 10, \"bd3af235\", '4');\n $c = $instance->pad($c, $d, $a, $b, $words[2 + ($i * 16)], 15, \"2ad7d2bb\", '4');\n $b = $instance->pad($b, $c, $d, $a, $words[9 + ($i * 16)], 21, \"eb86d391\", '4');\n\n $A = $instance->add(\n $instance->hexdec($a),\n $instance->hexdec($A)\n );\n $B = $instance->add(\n $instance->hexdec($b),\n $instance->hexdec($B)\n );\n $C = $instance->add(\n $instance->hexdec($c),\n $instance->hexdec($C)\n );\n $D = $instance->add(\n $instance->hexdec($d),\n $instance->hexdec($D)\n );\n }\n\n $words = $instance->str2Hex($A)\n . $instance->str2Hex($B)\n . $instance->str2Hex($C)\n . $instance->str2Hex($D);\n unset($a, $b, $c, $d, $A, $B, $C, $D, $string, $instance);\n return $words;\n }", "function RSHash($string) {\n $a = 63689;\n $b = 378551;\n $hash = 0;\n\n for ($i = 0, $x = strlen($string); $i < $x; $i++) {\n $hash = $hash * $a + (int) ord($string[$i]);\n $hash = fmod($hash, 65535);\n $a = $a * $b;\n $a = fmod($a, 65535);\n }\n\n return $hash;\n }", "public function getSha1() {\n\t\t\tif (!$this->sha1) {\n\t\t\t\t$this->sha1 = sha1_file($this->tempfile);\n\t\t\t}\n\t\t\treturn $this->sha1;\n\t\t}", "protected static function create_hash($string)\n\t{\n\t\t$check1 = static::string_to_number($string, 0x1505, 0x21);\n\t\t$check2 = static::string_to_number($string, 0, 0x1003F);\n\n\t\t$factor = 4;\n\t\t$halfFactor = $factor/2;\n\n\t\t$check1 >>= $halfFactor;\n\t\t$check1 = (($check1 >> $factor) & 0x3FFFFC0 ) | ($check1 & 0x3F);\n\t\t$check1 = (($check1 >> $factor) & 0x3FFC00 ) | ($check1 & 0x3FF);\n\t\t$check1 = (($check1 >> $factor) & 0x3C000 ) | ($check1 & 0x3FFF); \n\n\t\t$calc1 = (((($check1 & 0x3C0) << $factor) | ($check1 & 0x3C)) << $halfFactor ) | ($check2 & 0xF0F );\n\t\t$calc2 = (((($check1 & 0xFFFFC000) << $factor) | ($check1 & 0x3C00)) << 0xA) | ($check2 & 0xF0F0000 );\n\n\t\treturn ($calc1 | $calc2);\n\t}", "public static function hashFunction($str)\n {\n return md5($str);\n }", "function HashURL($String) {\n\t\t$Check1 = $this->StrToNum($String, 0x1505, 0x21);\n\t\t$Check2 = $this->StrToNum($String, 0, 0x1003F);\n\t\n\t\t$Check1 >>= 2; \t\n\t\t$Check1 = (($Check1 >> 4) & 0x3FFFFC0 ) | ($Check1 & 0x3F);\n\t\t$Check1 = (($Check1 >> 4) & 0x3FFC00 ) | ($Check1 & 0x3FF);\n\t\t$Check1 = (($Check1 >> 4) & 0x3C000 ) | ($Check1 & 0x3FFF);\t\n\t\t\n\t\t$T1 = (((($Check1 & 0x3C0) << 4) | ($Check1 & 0x3C)) <<2 ) | ($Check2 & 0xF0F );\n\t\t$T2 = (((($Check1 & 0xFFFFC000) << 4) | ($Check1 & 0x3C00)) << 0xA) | ($Check2 & 0xF0F0000 );\n\t\t\n\t\treturn ($T1 | $T2);\n\t}", "public function getSha1()\n {\n if (array_key_exists(\"sha1\", $this->_propDict)) {\n return $this->_propDict[\"sha1\"];\n } else {\n return null;\n }\n }", "function my_hash($string, $username = null) {\r\n\t\t$salt = getStoredSalt($username);\r\n\t\tif (!$salt) {\r\n\t\t\t// generate the salt and store it in the database\r\n\t\t\t$salt = substr(md5(uniqid(rand(),true)),0,24);\r\n\t\t\tstoreSalt($username, $salt);\r\n\t\t}\r\n\t\treturn sha1($salt . $string);\r\n\t}", "function sha256($string) {\n $algo = 'sha256';\n return hash($algo, $string . UNIQUE_IDENTIFIER);\n }", "private static function hash($str) {\n $hash = 0;\n\n for ($i = 0, $l = strlen($str); $i < $l; $i++) {\n $hash += ord($str[$i]);\n $hash += $hash << 10;\n $hash ^= $hash >> 6;\n }\n\n $hash += $hash << 3;\n $hash ^= $hash >> 6;\n $hash += $hash << 16;\n\n return $hash;\n }", "static function setHashedValue($value) {\n $length = strlen($value);\n $middle = ($length / 2);\n if ($middle > 0) {\n $value1 = substr($value, 0, $middle - 1);\n $value2 = substr($value, $middle, $length - 1);\n $hashedvalue = sha1('2@!' . md5($value1) . $value2 . 'o&#');\n } else {\n $hashedvalue = sha1('2@!' . md5($value . 'o&#'));\n }\n return $hashedvalue;\n }", "function hashing($s){\r\n $letters = \"acdegilmnoprstuw\";\r\n $h = 7;\r\n if(!empty($s)){\r\n $chars = str_split($s);\r\n foreach($chars as $char){\r\n $h = bcadd(bcmul($h,37), stripos($letters,$char));\r\n }\r\n return $h;\r\n }\r\n }", "public static function hash($value)\n {\n return hash_hmac('sha1', $value, Config::get('app.key'));\n }", "protected function doEncode($input)\n {\n return sha1($input);\n }", "private static function HashURL($String)\n\t{\n\t\t$Check1 = self::StrToNum($String, 0x1505, 0x21);\n\t\t$Check2 = self::StrToNum($String, 0, 0x1003F);\n\t\t$Check1 >>= 2;\n\t\t$Check1 = (($Check1 >> 4) & 0x3FFFFC0 ) | ($Check1 & 0x3F);\n\t\t$Check1 = (($Check1 >> 4) & 0x3FFC00 ) | ($Check1 & 0x3FF);\n\t\t$Check1 = (($Check1 >> 4) & 0x3C000 ) | ($Check1 & 0x3FFF);\n\t\t$T1 = (((($Check1 & 0x3C0) << 4) | ($Check1 & 0x3C)) <<2 ) | ($Check2 & 0xF0F );\n\t\t$T2 = (((($Check1 & 0xFFFFC000) << 4) | ($Check1 & 0x3C00)) << 0xA) | ($Check2 & 0xF0F0000 );\n\t\treturn ($T1 | $T2);\n\t}", "public function getSha1Checksum()\r\n {\r\n return sha1_file($this->filename);\r\n }", "public static function isSHA1( $str ) {\n\t\treturn !!preg_match( '/^[0-9A-F]{40}$/i', $str );\n\t}", "public static function hmac_sha1_sign($string = '', $key = '')\n\t\t{\n\t\t\t$key_64 = str_pad(((strlen((string)$key) > 64) ? pack('H*', sha1((string)$key)) : (string)$key), 64, chr(0x00));\n\n\t\t\treturn pack('H*', sha1(($key_64 ^ str_repeat(chr(0x5c), 64)).pack('H*', sha1(($key_64 ^ str_repeat(chr(0x36), 64)).(string)$string))));\n\t\t}", "public function hash(string $value)\n {\n }", "public function hash();", "public function myHash($str) {\n $hash = 0;\n $s = md5($str);\n $seed = 5;\n $len = 32;\n for ($i = 0; $i < $len; $i++) {\n // (hash << 5) + hash 相当于 hash * 33\n //$hash = sprintf(\"%u\", $hash * 33) + ord($s{$i});\n //$hash = ($hash * 33 + ord($s{$i})) & 0x7FFFFFFF;\n $hash = ($hash << $seed) + $hash + ord($s{$i});\n }\n\n return $hash & 0x7FFFFFFF;\n }", "public function set_hash($string){\n\t\t\t$string = hash($this->hash_algorithm, $string . $this->password_salt);\n\t\t\t$string = $this->password_addenda . $string . $this->password_addenda;\n\t\t\treturn $string;\n\n\t\t}", "public function hash($str)\n\t{\n\t\t// on some servers hash() can be disabled :( then password are not encrypted \n\t\tif (empty($this->config['hash_method']))\n\t\t\treturn $this->config['salt_prefix'].$str.$this->config['salt_suffix']; \n\t\telse\n\t\t\treturn hash($this->config['hash_method'], $this->config['salt_prefix'].$str.$this->config['salt_suffix']); \n\t}", "public function hash($value);", "public function getHash(): string;", "public function getHash(): string;", "public function getHash(): string;", "public function getHash(): string;", "public function setSha1(?string $value): void {\n $this->getBackingStore()->set('sha1', $value);\n }", "private function generatePasswordHash($string)\n\t{\n\t\t$string = is_string($string) ? $string : strval($string);\n\t\t$pwHash = encrypto($string);\n\t\treturn $pwHash;\n\t}", "protected function hash($string, $secure = true)\n {\n // If no specific hash method is specificed, but requested secure\n // default to md5, as that is the default Vanilla method.\n if ($secure === true) {\n $secure = 'md5';\n }\n\n switch ($secure) {\n case 'sha1':\n return sha1($string);\n break;\n case 'md5':\n case false:\n return md5($string);\n default:\n return hash($secure, $string);\n }\n }", "public function getSha1(): ?string {\n $val = $this->getBackingStore()->get('sha1');\n if (is_null($val) || is_string($val)) {\n return $val;\n }\n throw new \\UnexpectedValueException(\"Invalid type found in backing store for 'sha1'\");\n }", "public function setSha1($val)\n {\n $this->_propDict[\"sha1\"] = $val;\n return $this;\n }", "private function hashing() {\n\t\t$data = md5($this->name.$this->date);\n\t\t$data = md5($data);\n\t\t$data = strrev($data);\n\t\t//$data = md5($data);\n\t\t$data = strtoupper($data);\n\t\t//$data = strrev($data);\n\n\t\t$datatemp = NULL;\n\t\tfor($i=0; $i<=strlen($data); $i++) {\n\t\t\t$arr = substr($data, $i, 1);\n\t\t\tif($i == '4' || $i == '8' || $i == '12' || $i == '16' || $i == '20' || $i == '24' || $i == '28' || $i == '32') {\n\t\t\t\t$datatemp .= substr($this->strfinger, ($i/4)-1, 1);\t\n\t\t\t}\n\t\t\t$datatemp .= \"/%\".$this->combine[$arr];\n\t\t}\n\n\t\t$this->resulthashcode = substr($datatemp, 1, strlen($datatemp)-6);\n\t\t$this->result = true;\n\t}", "public function makeHash(\\codename\\core\\credential $credential) : string;", "public function computeHash()\n {\n $this->setLastnamecanonical($this->lastname);\n $this->setFirstnamecanonical($this->firstname);\n\n $this->hash = sha1(\n $this->firstnameCanonical.\n $this->lastnameCanonical.\n (($this->birthdate instanceof \\DateTime) ? $this->birthdate->format('Y-m-d') : '')\n );\n\n return $this->hash;\n }", "public function hash() {\n if(isset($this->cache['hash'])) return $this->cache['hash'];\n\n // add a unique hash\n $checksum = sprintf('%u', crc32($this->uri()));\n return $this->cache['hash'] = base_convert($checksum, 10, 36);\n }", "static private function passwordToHash($realString) {\r\n\t\treturn md5(trim($realString).self::$SALT);\r\n\t}", "function getHash($username, $password) {\n return sha1(strtolower($username).$password);\n }", "public function hash() {\r\n\t\t$filename = pathinfo($this->filepath, PATHINFO_BASENAME );\r\n\t\treturn sha1($filename);\r\n\t}", "public function hashPass($str)\n {\n // Phalcon's hashing system\n //return $this->_security->hash($str);\n\n // Using PHP5.5's built in system\n return password_hash($str, PASSWORD_DEFAULT, ['cost' => \\Phalcon\\DI::getDefault()->getShared('config')->auth->hash_workload]);\n }", "public static function md5_hash( $string )\n {\n return '{MD5}'.base64_encode( pack( 'H*', md5( $string ) ) );\n }", "public static function str2hex($str) {}", "public function getPasswordHashForUsername($username)\n {\n \n // Delete this once and write your own code. This is for testing purposes\n // any username with the password testing will validate, but your should\n // access your database and retieve and return the Ha1 hash from there.\n return $this->generatePasswordHashForUsernamePassword($username, \"testing\");\n }", "public static function hashCode($_str) {\n\t\treturn str_pad(\n\t\t\tbase_convert(sprintf('%u',crc32($_str)),10,36),7,'0',\n\t\t\t\tSTR_PAD_LEFT\n\t\t);\n\t}", "function getHash($str, $hashSize) {\n // Sum the ascii of every char of the string\n // and return the modulus of $hashsize\n $str_arr = str_split($str);\n $sum = 0;\n foreach ($str_arr as $char) {\n $sum += ord($char);\n }\n return $sum % $hashSize;\n}", "function string2(){\n\n $string2 = \"Hola mundo\";\n $md5 = md5($string2);\n\n echo $md5;\n\n}", "function sri_checksum($input)\n{\n $algorithm = settings::algorithm();\n $hash = hash($algorithm, $input, true);\n $hash_base64 = base64_encode($hash);\n\n return \"$algorithm-$hash_base64\";\n}", "public static function make($string, $salt = ''){\n return hash('sha256', $string . $salt);\n }", "public function generateHash($input) {\n\t\treturn md5(json_encode($input));\n\t}", "final public function getHash() {}", "public function generateHash()\n {\n $this->hash = sha1(serialize($this->toArray()));\n }", "protected function _sign_string($string, $secret) {\n\t\treturn hash_hmac(\"sha1\", $string, $secret);\n\t}", "private function hashPath($path = '') {\n $hash = '';\n if (file_exists($path)) {\n if (!is_dir($path)) {\n $string = file_get_contents($path);\n // Remove trailing whitespace.\n $string = rtrim($string);\n // Replace all line endings and CVS/svn Id tags.\n $string = preg_replace('/\\$Id[^;<>{}\\(\\)\\$]*\\$/', 'x$' . 'Id$', $string);\n $string = preg_replace('/\\r\\n|\\n|\\r/', ' ', $string);\n $hash = base64_encode(pack(\"H*\", sha1($string)));\n }\n }\n return $hash;\n }", "public function make($value, array $options = array()) {\n return hash('sha1', $value);\n }", "public function getHash();" ]
[ "0.81790245", "0.80532384", "0.79687744", "0.7530466", "0.7523049", "0.74266076", "0.7378353", "0.73202753", "0.7302086", "0.72881126", "0.7253351", "0.72289264", "0.71854967", "0.71649337", "0.7164775", "0.7142319", "0.7080949", "0.7080949", "0.70301986", "0.6884421", "0.68400216", "0.68203074", "0.68161595", "0.67706203", "0.6720376", "0.67172235", "0.66920686", "0.668924", "0.6596864", "0.65742195", "0.6521522", "0.65198314", "0.65188825", "0.651306", "0.6512801", "0.64843506", "0.6459406", "0.64472604", "0.64248735", "0.641724", "0.6374231", "0.6345968", "0.63406086", "0.631335", "0.63024193", "0.62967247", "0.6293854", "0.62824583", "0.62766427", "0.6228149", "0.61866736", "0.6165895", "0.6163365", "0.6161698", "0.61599004", "0.61563015", "0.61492866", "0.6144875", "0.6141774", "0.6098343", "0.60682154", "0.6056855", "0.60537446", "0.6040481", "0.603662", "0.6021781", "0.6018537", "0.59583557", "0.59547675", "0.59547675", "0.59547675", "0.59547675", "0.59265536", "0.5917585", "0.5909717", "0.59039664", "0.5880207", "0.5859913", "0.5841339", "0.5834661", "0.57956886", "0.5793185", "0.5773002", "0.5736694", "0.5733145", "0.5729423", "0.5725878", "0.5716214", "0.57161283", "0.5715549", "0.5695648", "0.5691386", "0.5690256", "0.5660519", "0.56503123", "0.5648576", "0.5647943", "0.5642876", "0.56340146", "0.56001735" ]
0.78180265
3
Get name of the twig extensions class
public function getName() { return 'geschke_translatorgui_bundle_twig_extension'; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getName()\n {\n return 'siciarek_js_trans_twig_extension';\n }", "public function getName()\n {\n // TODO: Implement getName() method.\n return \"troiswa_back.twig_extension\";\n }", "public function getName()\n {\n return 'szg_feed_twig_extension';\n }", "public function getName()\n {\n return 'login_twig_extension';\n }", "public function getName()\n {\n return 'pages_configuration_twig_extension';\n }", "public function getName()\n {\n return 'twig_navigation_extension';\n }", "public function getName()\n {\n return 'adminlist_twig_extension';\n }", "public function getName()\n {\n return 'azine_mailgun_webhooks_bundle_twig_extension';\n }", "public function getName()\n {\n return 'schnittstabil_csrf_twig_helpers_extension';\n }", "public function getName()\n {\n return 'metainfos_extension';\n }", "public function getExtensionName() {\n return $this->forwardCallToReflectionSource( __FUNCTION__ );\n }", "public function getName()\n {\n return 'bundle_extension';\n }", "public function getName()\n {\n return 'bundle_extension';\n }", "public function getExtensionName() {}", "public function getName()\n {\n return self::EXTENSION_NAME;\n }", "public function getName()\n {\n return 'AssetExtension';\n }", "public function getName(): string\n {\n return 'Extension';\n }", "public function getName()\n {\n return \"cscfa_paginator.extension\";\n }", "abstract public function getExtensionName();", "public function getName()\n {\n return 'BreadcrumbExtension';\n }", "public function getName()\n\t{\n\t\treturn str_replace(\".{$this->getExtension()}\", '', $this->path);\n\t}", "public function getControllerExtensionName() {}", "public function getControllerExtensionName() {}", "public function getName()\n {\n return 'ic_core_field.twig.extension.aliasToLabel';\n }", "public function getName()\n {\n return 'ajt.flash.twig.css';\n }", "public function getName()\n\t{\n\t\treturn str_replace('\\\\', '_', __CLASS__);\n\t}", "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 getExtension(): string\n {\n return $this->getMeta()->getExtension();\n }", "public function getName(): string\n {\n return __CLASS__;\n }", "public function getName()\n {\n return static::CLASS;\n }", "public function getName()\n {\n // TODO: Implement getName() method.\n return 'MyTwExtension';\n }", "public function getName()\n {\n return 'bvw_upload_extension';\n }", "public function getName()\r\n {\r\n\r\n // TODO: Implement getName() method.\r\n return 'montant_tva_extention';\r\n }", "public function getName()\r\n\t{\r\n\t\treturn 'oxygen_framework_twig_layout';\r\n\t}", "public function getName()\n {\n return __CLASS__;\n }", "public function getExtensionName(): string {\r\n return $this->template->getConfigVars('cartpay_plugin');\r\n }", "public function getName()\n {\n return 'kunstmaan_extra_render_page';\n }", "public function get_template_name(){\n\n return str_replace(\"_\",\"\",str_replace(\"_page\", \"\", get_class($this))) . \".tpl\";\n }", "public function getName() \n { \n return 'saml_extension'; \n }", "public function getName(): string\n {\n return static::class;\n }", "public function getName()\n {\n return 'HiQDev General Use Yii 2 Extension Generator';\n }", "public function getExtension() : string\n {\n return pathinfo($this->name, PATHINFO_EXTENSION);\n }", "public function getNameWithExtension() {\n if ( ! $this->exists) return '';\n\n $extension = pathinfo($this->name, PATHINFO_EXTENSION);\n\n if ( ! $extension && $this->extension) {\n return $this->name .'.'. $this->extension;\n }\n\n return $this->name;\n }", "public function getParentExtensionName() {}", "public function getClassName() {}", "public function getClassName() {}", "public function getClassName() {}", "public function getClassName() {}", "public function getName()\n {\n return 'bundle_utils';\n }", "public function getName() {\r\n $parsed = Parser::parseClassName(get_class());\r\n return $parsed['className'];\r\n }", "public function getExtensionName()\n {\n return FluentDriver::EXTENSION_NAME;\n }", "public function getClassName();", "public function getClassName();", "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}", "public function getClassName() ;", "protected static function getConverterDisplayName()\n {\n // https://stackoverflow.com/questions/19901850/how-do-i-get-an-objects-unqualified-short-class-name/25308464\n return substr(strrchr('\\\\' . static::class, '\\\\'), 1);\n }", "public function getName()\n\t{\n\t\treturn $this->name ?: class_basename($this);\n\t}", "public function getExtension(): string\n {\n return pathinfo($this->getRelativePath(), PATHINFO_EXTENSION);\n }", "public function getName()\n {\n return 'user_extension';\n }", "function getNameWithoutExtension() ;", "public function getName()\n {\n $class = get_class($this);\n\n return str_replace($this->getObjectType(), '',\n str_replace(CADRE_appNameSpace.$this->getObjectTypePlural().'\\\\', '', $class));\n }", "function getName()\n {\n return get_class($this);\n }", "public function getName() {\n return get_class($this);\n }", "public function getName() {\n return get_class($this);\n }", "public function getClassBasename()\n {\n return class_basename($this->getClass());\n }", "public function getExtension();", "public function getExtension();", "public function getExtension();", "public function name()\n {\n $name = get_class($this);\n\n return substr($name, strrpos($name, '\\\\') + 1);\n }", "protected function getClassToExtend()\n {\n $class = $this->getConfig(ClassExtendConfiguration::class)->getValue();\n if (empty($class)) {\n return '';\n }\n\n return \" extends $class\";\n }", "public function getName()\n {\n return 'store_backend_extension';\n }", "public function getName(){\n\t\treturn get_class($this);\n\t}", "private function getClassName() {\n return (new \\ReflectionClass(static::class))->getShortName();\n }", "public function getExtension(): string\n {\n return $this->extension;\n }", "public function getExtension(): string\n {\n return $this->extension;\n }", "public function getExtension()\n {\n return pathinfo($this->name, PATHINFO_EXTENSION);\n }", "public static function name()\n {\n return isset(static::$name) ? static::$name : self::getClassShortName();\n }", "function getName()\r\n\t{\r\n\t\treturn get_class($this);\r\n\t}", "public function getNameForViewBuilder()\n {\n list($plugin, ) = namespaceSplit(get_class($this));\n $plugin = preg_replace('/\\\\\\/', '/', $plugin);\n return $plugin;\n }", "public function getNameWithoutExtension() {}", "public function getNameWithoutExtension() {}", "public function getExtension() {}", "public function getExtension() {}", "public function getName() {\n $path = explode('\\\\', get_class($this->object[\"data\"]));\n return array_pop($path);\n }", "public function getViewClassNameForViewBuilder()\n {\n list($plugin, $theme) = namespaceSplit(get_class($this));\n $plugin = preg_replace('/\\\\\\/', '/', $plugin);\n return $plugin . '.' . $theme;\n }", "public function getName()\n {\n return 'h5p_extension';\n }", "public function getExtension()\n {\n return substr(strrchr($this->getBasename(), '.'), 1);\n }", "public function getExt()\n {\n $type = $this->getType();\n if ($type === 'style') {\n return 'css';\n } elseif ($type === 'script') {\n return 'js';\n } elseif ($type === 'image') {\n return pathinfo($this->getSourcePath(), PATHINFO_EXTENSION);\n }\n }", "public function getName()\n {\n return 'tyhand_docdownloader_extension';\n }", "protected function className() : string\n\t{\n\t\t$config = Container::getInstance()->make('config');\n\n\t\t//We get components namespace.\n\t\t$namespace = $config->get('vueinline.namespace');\n\n\t\treturn $namespace . ucfirst(strtolower($this->repository));\n\t}", "public static function label()\n {\n return Str::singular(class_basename(get_called_class()));\n }", "public function extension()\n\t{\n\t\t$type = $this->type();\n\t\treturn self::getExtension($type);\n\t}", "public function getClassName(): string;", "public function getClassName() {\n if (isset($this->generate_as)) {\n return $this->generate_as;\n } else return ucfirst($this->name).'AdapterImpl';\n }", "protected function filterName(): string\n {\n return Str::snake(class_basename($this));\n }", "function getName() {\r\n\t\treturn 'markupplugin';\r\n\t}", "public function getName(): string\n {\n if ($this->_name === null) {\n $endpoint = namespaceSplit(static::class);\n $endpoint = substr(end($endpoint), 0, -8);\n\n $inflectMethod = $this->getInflectionMethod();\n $this->_name = Inflector::{$inflectMethod}($endpoint);\n }\n\n return $this->_name;\n }", "public function getClassName()\n {\n return $this->getDoctrineRepository()->getClassName();\n }", "public function getName()\n {\n return 'app_setting_extension';\n }" ]
[ "0.82485753", "0.816902", "0.8040433", "0.79589766", "0.7908584", "0.7813143", "0.77065605", "0.76620317", "0.751211", "0.73266834", "0.72216994", "0.7199567", "0.7199567", "0.7171393", "0.70277363", "0.69986624", "0.6970599", "0.6956674", "0.68450534", "0.6841207", "0.679235", "0.677296", "0.677296", "0.67470413", "0.67147565", "0.6696582", "0.6675507", "0.6675507", "0.66666234", "0.662139", "0.66157424", "0.6590862", "0.6580975", "0.65634835", "0.6554186", "0.65505356", "0.6543291", "0.650431", "0.6499239", "0.64979684", "0.649062", "0.64693576", "0.6459665", "0.64481646", "0.6443426", "0.64304435", "0.64304435", "0.64304435", "0.64304435", "0.6408938", "0.6387251", "0.6380275", "0.63603866", "0.63603866", "0.6352234", "0.6349525", "0.6334947", "0.63298863", "0.6322684", "0.631614", "0.6314156", "0.62755096", "0.62717235", "0.62605816", "0.62605816", "0.62564105", "0.62508225", "0.62508225", "0.62508225", "0.6249959", "0.6244709", "0.6231649", "0.6230672", "0.62283516", "0.62149763", "0.62149763", "0.6197213", "0.6195879", "0.61871976", "0.61869574", "0.61826426", "0.61822927", "0.6181419", "0.6179745", "0.61793584", "0.6165845", "0.61642563", "0.61602026", "0.61576205", "0.6154052", "0.61537", "0.6152038", "0.61518425", "0.61335564", "0.61312425", "0.6128671", "0.6124102", "0.6110934", "0.61094797", "0.61051893" ]
0.7689365
7
Display a listing of the resource.
public function index() { // $data = User::where('role','kasir')->get(); return view('manager.kasir.index',['kasir'=>$data]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function indexAction()\n {\n $limit = $this->Request()->getParam('limit', 1000);\n $offset = $this->Request()->getParam('start', 0);\n $sort = $this->Request()->getParam('sort', array());\n $filter = $this->Request()->getParam('filter', array());\n\n $result = $this->resource->getList($offset, $limit, $filter, $sort);\n\n $this->View()->assign($result);\n $this->View()->assign('success', true);\n }", "public function listing();", "function index() {\n\t\t$this->show_list();\n\t}", "public function actionList() {\n $this->_getList();\n }", "public function listAction()\n {\n $model = $this->_getPhotoModel();\n $entries = $model->fetchEntries($this->_getParam('page', 1));\n\n $this->view->url = 'http://' . $this->_request->getHttpHost() . $this->_request->getBaseUrl(); \n $this->view->paginator = $entries;\n }", "public function index()\n {\n $items = Item::all();\n return ItemForShowResource::collection($items);\n }", "public function index()\n {\n return Resource::collection(($this->getModel())::paginate(10));\n }", "function index()\n\t{\n\t\t$this->_list();\n\t\t$this->display();\n\t}", "public function listingAction(){\n if (!LoginHelper::isAdmin()){\n Router::redirect('home', '<p class=\"alert alert-danger\">Unauthorized</p>');\n }\n $this->view->render('patient/list', Patient::all());\n }", "public function index()\n {\n //\n $list = $this->obj->all();\n\n return $this->render('index', compact('list'));\n }", "public function action_index()\n\t{\n\t\t$this->template->title = 'Resources';\n\t\t$this->view = View::factory('admin/resource/index');\n\t\t$this->template->scripts[] = 'media/js/jquery.tablesorter.min.js';\n\t\t$this->template->scripts[] = 'media/js/admin/resource.js';\n\t\t\n\t\t$resources = Sprig::factory('resource')->load(NULL, FALSE);\n\t\tif (!empty($resources))\n\t\t{\n\t\t\t$this->view->resources = $resources->as_array();\n\t\t}\n\t}", "function listing()\n\t\t{\n\t\t// en $this->_view->_listado para poder acceder a el desde la vista.\n\t\t\t$this->_view->_listado = $listado = $this->_instrumentoModel->getInstrumento();\n\t\t\t$this->_view->render('listing', '', '',$this->_sidebar_menu);\n\t\t}", "public function listAction()\n {\n $em = $this->getDoctrine()->getManager();\n \n $todos = $em->getRepository(Todo::class)->findAll();\n \n return $this->render('todo/index.html.twig', array(\n 'todos' => $todos,\n ));\n }", "public function index()\n\t{\n $this->authorize('list', Instance::class);\n\n\t\treturn $this->ok($this->repo->paginate($this->request->all()));\n\t}", "public function actionRestList() {\n\t $this->doRestList();\n\t}", "public function listing()\n\t{\n\t\t$hospitalID = $this->request->getSession()->read(\"hospital_id\") ? $this->request->getSession()->read(\"hospital_id\") : \"\";\n\t\t\n\t\t$patientMonitored = 1;\n\t\t$patientActive = 1;\n\t\t\n\t\t//GET ALL PATIENTS\n\t\t$patientsData = $this->Patients->allPatients($hospitalID,$patientMonitored,$patientActive);\n\t\t//GET ALL PATIENTS\n\t\t\n\t\t//echo \"<pre>\"; print_r($patientsData);die;\n\t\t$this->set(compact(\"patientsData\"));\n\t}", "public function listAction()\n {\n $htmlpage = '<!DOCTYPE html>\n<html>\n <head>\n <meta charset=\"UTF-8\">\n <title>todos list!</title>\n </head>\n <body>\n <h1>todos list</h1>\n <p>Here are all your todos:</p>\n <ul>';\n \n $em = $this->getDoctrine()->getManager();\n $todos = $em->getRepository(Todo::class)->findAll();\n foreach($todos as $todo) {\n $htmlpage .= '<li>\n <a href=\"/todo/'.$todo->getid().'\">'.$todo->getTitle().'</a></li>';\n }\n $htmlpage .= '</ul>';\n\n $htmlpage .= '</body></html>';\n \n return new Response(\n $htmlpage,\n Response::HTTP_OK,\n array('content-type' => 'text/html')\n );\n }", "public function index()\n {\n // Get Persons\n $person = Person::paginate(10);\n\n //Return collection of person as a resource\n return PersonResource::collection($person);\n }", "public function listAction() {\n\t\t$this->view->title = $this->translator->translate(\"Invoice list\");\n\t\t$this->view->description = $this->translator->translate(\"Here you can see all the invoices.\");\n\t\t$this->view->buttons = array(array(\"url\" => \"/admin/invoices/new/\", \"label\" => $this->translator->translate('New'), \"params\" => array('css' => null)));\r\n\t\t$this->datagrid->setConfig ( Invoices::grid() )->datagrid ();\n\t}", "public function listAll()\n\t{\n\t\t$this->render(self::PATH_VIEWS . '/list', [\n\t\t\t'pages' => $this->pagesDb->findAll('id', 'DESC'),\n\t\t]);\n\t}", "public function list()\n {\n // récupérer les données : toutes les catégories enregistrées\n $productList = Product::findAll();\n\n $this->show('product/list', [\n 'productList' => $productList\n ]);\n }", "public function index()\n {\n // CRUD -> Retrieve --> List\n // BREAD -> Browse Read Edit Add Delete\n // return Item::all();\n return view('list_items',compact('items'));\n }", "public function index()\n {\n // Get manufacturers\n $manufacturers = Manufacturer::orderBy('created_at', 'desc')->paginate(15);\n\n // Return collection of manufacturers as a resource\n return ManufacturerResource::collection($manufacturers);\n }", "public function index()\n {\n return ArtistResource::collection(Artist::orderBy('created_at', 'desc')->get());\n }", "public function indexAction() {\n\t\t$page = intval($this->getInput('page'));\n\t\t$perpage = $this->perpage;\n\t\t\n\t\tlist(,$files) = Lock_Service_FileType::getAllFileType();\n\t\t$data = array();\n\t\tforeach ($files as $key=>$value) {\n\t\t\t$data[$key]['id'] = $value['id'];\n\t\t\t$data[$key]['title'] = $value['name'];\n\t\t}\n\t\tlist($total, $filetype) = Lock_Service_FileType::getList($page, $perpage);\n\t\t$this->assign('filetype', $filetype);\n\t\t$this->assign('pager', Common::getPages($total, $page, $perpage, $this->actions['listUrl'].'/?'));\n\t\t$this->assign('data', json_encode($data));\n\t}", "public function listAction()\n {\n $qb = $this->getRepository()->queryAll();\n\n $view = new ImportListView;\n $view->imports = $qb->getQuery()->execute();\n\n return $this->templating->renderResponse('InfiniteImportBundle:Import:list.html.twig', array(\n 'data' => $view\n ));\n }", "public function index()\n\t{\n\t\t//Return model all()\n\t\t$instances = $this->decorator->getListingModels();\n\n\t\treturn View::make($this->listingView, array(\n\t\t\t'instances' => $instances,\n\t\t\t'controller' => get_class($this), \n\t\t\t'modelName' => class_basename(get_class($this->decorator->getModel())),\n\t\t\t'columns' => $this->getColumnsForInstances($instances),\n\t\t\t'editable' => $this->editable\n\t\t));\n\t}", "public function index()\n {\n return InfografiResources::collection(\n Infografi::orderBy('date', 'desc')->get()\n );\n }", "public function listAction()\n\t {\n\t\t\t$this->_forward('index');\n \n\t\t}", "public function index()\n {\n $this->list_view();\n }", "public function index()\n {\n $this->list_view();\n }", "public function index()\n {\n $this->list_view();\n }", "public function listAction()\n {\n $defaults = array(\n 'page' => null,\n 'order' => null,\n 'limit' => null,\n 'offset' => null,\n 'filter' => array(),\n );\n $body = $this->getRequest()->getBody();\n $options = $body + $defaults;\n\n // Process the options\n if (is_string($options['order'])) {\n $options['order'] = array_map('trim', explode(',', $options['order']));\n }\n if (is_string($options['page'])) {\n $options['page'] = (int)$options['page'];\n }\n if (is_string($options['limit'])) {\n $options['limit'] = (int)$options['limit'];\n }\n if (is_string($options['offset'])) {\n $options['offset'] = (int)$options['offset'];\n }\n $filter = $options['filter'];\n unset($options['filter']);\n\n $options = array_filter($options);\n\n return $this->getBinding()->find($filter, $options);\n }", "public function index()\n {\n /* Check if logged in user is authorized to make this request */\n $this->authorizeAction();\n\n /* Get the resources from the model */\n $resources = $this->resourcesList($this->model);\n\n /* Sets the view */\n if (view()->exists(\"admin.{$this->name}.index\")) {\n $view = \"admin.{$this->name}.index\";\n } else {\n $view = 'admin.includes.actions.index';\n }\n\n /* Display a listing of the resources */\n return view($view)\n ->with('resources', $resources)\n ->with('module', $this->module);\n }", "public function index()\n\t{\n\t\t$data['lists'] = $this->mdl_student->get_all();\n\t\t$this->template->set('title', 'Student Hostel List');\n\t\t$this->template->load('template', 'contents', 'student_hostel/student_hostel_list', $data);\n\t}", "public function index()\n {\n $modules = Module::all();\n return Resource::collection($modules);\n }", "public function index()\n {\n // List all resources from user entity\n $users = User::all();\n\n return $this->showAll($users);\n }", "public function index()\n {\n // Get todos\n $todos = Todo::orderBy('created_at', 'desc')->paginate(3);\n\n // Return collection of articles as a resource\n return TodoResource::collection($todos);\n }", "public function index()\n {\n return Resources::collection(Checking::paginate());\n }", "public function index()\n {\n return CourseListResource::collection(\n Course::query()->withoutGlobalScope('publish')\n ->latest()->paginate()\n );\n }", "public function index()\n {\n $cars = Car::paginate(15);\n return CarResource::collection($cars);\n }", "public function index()\n {\n // Get articles\n $articles = Article::orderBy('created_at', 'desc')->paginate(5);\n\n // Return collection of articles as a resource\n return ArticleResource::collection($articles);\n }", "public function index()\n {\n $authors = Author::paginate(10);\n\n return AuthorResource::collection($authors);\n }", "public function index()\n {\n //Get Books\n $books = Book::paginate(10);\n \n if ($books) {\n return (BookResource::collection($books))->additional([\n 'status_code' => 200,\n 'status' => 'success',\n ]);\n } else {\n return (BookResource::collection([]))->additional([\n 'status_code' => 200,\n 'status' => 'success',\n ]);\n }\n return view('index')->with('data', $books);\n }", "public function view(){\n\t\t$this->buildListing();\n\t}", "public function index()\n {\n $books = Book::latest()\n ->paginate(20);\n\n return BookResource::collection($books);\n }", "public function index()\n {\n $listing = Listing::orderBy('id', 'desc')->paginate(10);\n return view('listings.index')->withListings($listing);\n }", "public function listAction()\n {\n $this->_getSession()->setFormData([]);\n\n $this->_title($this->__('Training Cms'))\n ->_title($this->__('Pages'));\n\n $this->loadLayout();\n\n $this->_setActiveMenu('training_cms');\n $this->_addBreadcrumb($this->__('Training Cms'), $this->__('Training Cms'));\n $this->_addBreadcrumb($this->__('Pages'), $this->__('Pages'));\n\n $this->renderLayout();\n }", "public function index()\n {\n $services = $this->serviceRepository->paginate();\n\n return ServiceResource::collection($services);\n }", "public function index()\n {\n $resources = ResourceManagement::paginate(5);\n $users = User::get();\n\n return view('resources-mgmt/index', ['resources' => $resources, 'users' => $users]);\n }", "public function index()\n {\n $catalogs = Catalog::where('status', '=', Catalog::PUBLICADO)\n ->orderBy('id', 'DESC')->get();\n \n $data = CatalogResource::collection($catalogs);\n\n return [\n 'items' => $data,\n 'mensaje' => ''\n ];\n }", "public function listAction(){\n // In a controller this can be:\n // $this->request->getQuery('page', 'int'); // GET\n $currentPage = $this->request->getPost('pageindex', 'int'); // POST\n $pageNum = ($currentPage == null) ? 1 : $currentPage;\n\n // The data set to paginate\n $message = new Notice();\n $results = $message->getMsg4Admin();\n\n // Create a Model paginator, show 10 rows by page starting from $currentPage\n $paginator = new PaginatorArray(\n array(\n \"data\" => $results,\n \"limit\" => 10,\n \"page\" => $pageNum\n )\n );\n\n // Get the paginated results\n $page = $paginator->getPaginate();\n\n return $this->response->setJsonContent($page);\n\n }", "public function list()\n {\n try {\n return $this->success($this->service->list());\n } catch (\\Exception $exception) {\n return $this->error($exception->getMessage());\n }\n }", "public function index()\n {\n return $this->sendResponse(CrisisResource::collection(Crisis::paginate(10)), 'Data fetched successfully');\n }", "public function index()\n\t{\n\t\t$%Alias = new %Model();\n\t\t$params = array();\n\t\t\n\t\t$Paginator = new Paginator( $%Alias->findSize( $params ), $this->getLimit(), $this->getPage() );\n\t\t$this->getView()->set( '%Aliass', $%Alias->findList( $params, 'Id desc', $this->getOffset(), $this->getLimit() ) );\n\t\t$this->getView()->set( 'Paginator', $Paginator );\n\t\treturn $this->getView()->render();\n\t}", "public function listAction() {}", "public function index()\n {\n\n return RecipeResource::collection(Recipe::all());\n }", "public function index()\n {\n $this->indexPage('list-product', 'List Product');\n }", "public function listAction()\n {\t\n\t\t$this->removeSession();\n\t\t$this->verifySessionRights();\n\t\t$this->setActivity(\"List view\");\n $em = $this->getDoctrine()->getManager();\n $oRepClient = $em->getRepository('BoAdminBundle:Client');\n\t\t$nb_tc = $oRepClient->getTotal();\n\t\t//get page\n\t\t$page = $this->get('session')->get('page');\n\t\tif($page==null){\n\t\t\t$page=1;\n\t\t\t$this->get('session')->set('page',1);\n\t\t}\n\t\t//get number line per page\n\t\t$nb_cpp = $em->getRepository('BoAdminBundle:Param')->getParam(\"display_list_page_number\",1);\n\t\t$nb_pages = ceil($nb_tc/$nb_cpp);\n\t\t$offset = $page>0?($page-1) * $nb_cpp:0;\n\t\t$clients = $em->getRepository('BoAdminBundle:Client')->findBy(array(),array('id' => 'desc'),$nb_cpp,$offset);\n $form = $this->createForm('Bo\\AdminBundle\\Form\\ClientType', new Client());\n return $this->render('client/index.html.twig', array(\n 'clients' => $clients,\n\t\t\t'page' => $page, // forward current page to view,\n\t\t\t'nb_pages' => $nb_pages, //total number page,\n 'form' => $form->createView(),\n\t\t\t'total'=>$nb_tc, // record number.\n\t\t\t'nb_cpp' => $nb_cpp,// line's number to display\n\t\t\t'pm'=>\"contracts\",\n\t\t\t'sm'=>\"client\",\n ));\n }", "public function index()\n {\n return AcResource::collection(Ac::latest()->paginate()); //\n }", "public function executeList()\n {\n $this->setTemplate('list');\n }", "public function indexAction()\n {\n $books = Book::getAll();\n\n View::renderTemplate('Books/index.html', [\n 'books' => $books\n ]);\n }", "function listing() {\r\n\r\n }", "public function listar() {\n $rs = $this->model->listar();\n\n echo $this->toJson($rs);\n }", "public function index()\n {\n return BookResource::collection(Book::orderby('id')->get());\n }", "public function doRestList()\n {\n $this->outputHelper( \n 'Records Retrieved Successfully', \n $this->getModel()->with($this->nestedRelations)->filter($this->restFilter)->orderBy($this->restSort)->limit($this->restLimit)->offset($this->restOffset)->findAll(),\n $this->getModel()->with($this->nestedRelations)->filter($this->restFilter)->count()\n );\n\t}", "public function index()\n {\n $client = Client::paginate();\n return ClientResource::collection($client);\n }", "public function index()\n {\n return TagResource::collection(\n Tag::orderBy('name', 'ASC')->paginate(request('per_page', 10))\n );\n }", "public function _index(){\n\t $this->_list();\n\t}", "public function index()\n\t{\n\t\t$data['lists'] = $this->gallery_mdl->get_all();\n\t\t$this->template->set('title', 'Gallery');\n\t\t$this->template->render('template', 'list', $data);\n\t}", "function drush_restapi_list() {\n\n $resources = restapi_get_resources();\n $last_module = NULL;\n $rows = [\n [dt('Module'), dt('Path'), dt('Class')],\n ];\n\n foreach($resources as $resource) {\n if ($last_module != $resource->getModule()) {\n $module = $last_module = $resource->getModule();\n }\n else {\n $module = '';\n }\n $rows[] = [$module, $resource->getPath(), $resource->getClass()];\n }\n\n drush_print_table($rows, TRUE);\n drush_log(dt('Displaying !count total resources', [\n '!count' => count($resources),\n ]), 'ok');\n\n}", "public function index()\n {\n $this->booklist();\n }", "public function index()\n {\n //\n $accounts = accounts::paginate(15);\n\n //return the collection of employees as a resource\n return accountResource::collection($accounts);\n\n\n }", "public function index()\n {\n $items = Item::all();\n return view('items::list_items',compact('items'));\n }", "public function index()\n {\n // Get houses\n $houses = House::orderBy('created_at', 'desc')->paginate(self::PAGINATE);\n \n // Return collection of houses\n \n return HouseResource::collection($houses);\n }", "public function index()\n {\n $products = Product::paginate(6);\n return ProductResource::collection($products);\n }", "public function index() {\n $this->template->allFoundItems = Found::showAll();\n $this->template->display( 'index.html.php' );\n }", "public function indexAction() {\n $this->_forward('list');\n }", "public function index()\n {\n $data = Productcategory::paginate(10);\n\t\treturn ProductcategoryResource::Collection($data);\n }", "public function index()\n {\n return SongResource::collection(\\App\\Song::orderBy('created_at', 'desc')->get());\n }", "public function ListView()\n\t{\n\t\t\n\t\t// Requer permissão de acesso\n\t\t$this->RequirePermission(Usuario::$P_ADMIN,\n\t\t\t\t'SecureExample.LoginForm',\n\t\t\t\t'Autentique-se para acessar esta página',\n\t\t\t\t'Você não possui permissão para acessar essa página ou sua sessão expirou');\n\t\t\n\t\t//$usuario = Controller::GetCurrentUser();\n\t\t//$this->Assign('usuario',$usuario);\n\t\t$this->Render();\n\t}", "public function index () {\n permiss ( 'role.list' );\n\n $data = $this->entity\n ->orderBy('created_at', 'desc')->get();\n\n return new ModelResource($data);\n }", "public function showResources()\n {\n $resources = Resource::get();\n return view('resources', compact('resources'));\n }", "public function index()\n {\n //get articless\n $articles = Article::paginate(15);\n\n //Return collection of article has a resource\n return ArticleResource::collection($articles);\n\n }", "public function actionList() {\n header(\"Content-type: application/json\");\n $verb = $_SERVER[\"REQUEST_METHOD\"];\n\n if ($verb === 'GET') {\n echo \"{\\\"data\\\":\" . CJSON::encode(Donneur::model()->findAll()) . \"}\";\n } else if ($verb == 'POST') {\n if (Donneur::model()->exists('id' === $_POST['id'])) {\n $this->actionListUpdate($_POST);\n } else {\n $this->actionListPost();\n }\n } else if ($verb == 'DELETE') {\n $this->actionListDelete();\n }\n }", "public function list()\n {\n return $this->http->request(HttpMethods::GET, $this->endpoint);\n }", "public function indexAction(){\n $data = array(\n 'collection' => $this->model->getCollection(),\n \n ); \t\n return $this->getView($data);\n }", "public function indexAction()\n {\n $em = $this->getDoctrine()->getManager();\n\n $entities = $em->getRepository('DiverPriceLisrBundle:Items')->findAll();\n\n return $this->render('DiverPriceLisrBundle:Items:index.html.twig', array(\n 'entities' => $entities,\n ));\n }", "public function actionIndex()\n {\n $dataProvider = new ActiveDataProvider([\n 'query' => Slaves::find(),\n ]);\n\n return $this->render('index', [\n 'dataProvider' => $dataProvider,\n ]);\n }", "public function listAction() {\n\t\t// Recogemos el repositorio\n\t\t$repository = $this->getDoctrine() ->getRepository('AppBundle:Product');\n\t\n\t\t// Recuperamos todos los productos.\n\t\t$products = $repository->findAll();\n\t\t// Pasamos a la plantilla el aray products\n\t\treturn $this->render('product/listActionProduct.html.twig', array( 'products' => $products));\n\t\n\t}", "public function listAction()\n\t {\n\t\t$model = $this->_getModel();\n\t\t$result = $model->getLayouts();\t\n\t\t$page = (int)($this->_request->getParam('page')); \n\t\tif(count($result) > 0)\n\t\t{ \n\t\t\tGlobals::doPaging($result, $page, $this->view);\n\t\t}\n\t\t\t\t\n\t\t$this->view->page = $page;\n\t }", "public function actionList()\n {\n // get model\n $model = new $this->_model('search');\n $model->unsetAttributes();\n\n // set filter\n if (isset($_GET[$this->_model])) {\n $model->attributes = $_GET[$this->_model];\n }\n $model->u_cms_album_id = $_GET['album'];\n\n // search\n $dataProvider = $model->search(Yii::app()->language);\n // sort\n $sort = $dataProvider->getSort();\n // route\n $sort->route = $this->id . '/list';\n\n // pagination parameters\n $pagination = $dataProvider->getPagination();\n $pagination->route = $this->id . '/list';\n $pagination->pageSize = UInterfaceSetting::model()->getSettings($this->id . ':' . $this->module->id, Yii::app()->user->id)->page_size;\n $pagination->itemCount = $dataProvider->totalItemCount;\n\n // datas\n $datas = $dataProvider->getData();\n\n // related datas\n $relatedDatas = $this->_loadRelatedData();\n\n // template\n $template = isset($_REQUEST['partial']) ? 'list/_table' : 'list/main';\n\n $jsonParams = array();\n if (Yii::app()->request->isAjaxRequest) {\n // filters\n $filtersDatas = array();\n if (isset($_GET[$this->_model])) {\n $filtersDatas[$this->_model] = $_GET[$this->_model];\n }\n if (isset($_GET[$sort->sortVar])) {\n $filtersDatas[$sort->sortVar] = $_GET[$sort->sortVar];\n }\n\n $jsonParams = array(\n 'filters' => http_build_query($filtersDatas)\n );\n }\n\n $this->dynamicRender(\n $template,\n array(\n 'dataView' => new $this->crudComponents['listDataView'](\n $datas, $relatedDatas, $model, $sort, $pagination, $this\n )\n ),\n $jsonParams\n );\n }", "public function index()\n {\n return view('listings.index')->with('listings', Listing::all());\n }", "public function get_index()\n\t{\n\t\t$pages = Page::recent_available()->paginate(30);\n\t\t$table = Cello\\Presenter\\Page::table($pages);\n\t\t$data = array(\n\t\t\t'eloquent' => $pages,\n\t\t\t'table' => $table,\n\t\t);\n\n\t\tSite::set('title', __('cello::title.pages.list'));\n\n\t\treturn View::make('cello::api.resources.index', $data);\n\t}", "public function index()\n {\n return ProductResource::collection(Product::latest()->paginate(10));\n }", "public function index()\n {\n $category = GalleryCategory::paginate(15);\n\n // return collection of category as a resource.\n return Resource::collection($category);\n }", "public function index()\n {\n //\n $news = News::latest()->paginate(18);\n\n return NewsResource::collection($news);\n }", "public function indexAction() {\n\t\t$list_info = Zend_Registry::get('list_info');\n if (!Engine_Api::_()->core()->hasSubject('list_listing')) {\n return $this->setNoRender();\n }\n \n $this->view->expiry_setting = Engine_Api::_()->list()->expirySettings();\n\n //GET SUBJECT\n $this->view->list = $list = Engine_Api::_()->core()->getSubject('list_listing');\n\n\t\t//GET CATEGORY TABLE\n\t\t$this->view->tableCategory = Engine_Api::_()->getDbTable('categories', 'list');\n\n //GET CATEGORIES NAME\n\t\t$this->view->category_name = $this->view->subcategory_name = $this->view->subsubcategory_name = '';\n\n\t\tif(!empty($list->category_id)) {\n\t\t\tif($this->view->tableCategory->getCategory($list->category_id))\n\t\t\t$this->view->category_name = $this->view->tableCategory->getCategory($list->category_id)->category_name;\n\n\t\t\tif(!empty($list->subcategory_id)) {\n\t\t\t\tif($this->view->tableCategory->getCategory($list->subcategory_id))\n\t\t\t\t$this->view->subcategory_name = $this->view->tableCategory->getCategory($list->subcategory_id)->category_name;\n\n\t\t\t\tif(!empty($list->subsubcategory_id)) {\n\t\t\t\t\tif($this->view->tableCategory->getCategory($list->subsubcategory_id))\n\t\t\t\t\t$this->view->subsubcategory_name = $this->view->tableCategory->getCategory($list->subsubcategory_id)->category_name;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n //GET LISTING TAGS\n $this->view->listTags = $list->tags()->getTagMaps();\n\n\t\t//GET OTHER DETAILS\n\t\t$this->view->list_description = Zend_Registry::get('list_descriptions');\n $this->view->addHelperPath(APPLICATION_PATH . '/application/modules/Fields/View/Helper', 'Fields_View_Helper');\n $this->view->fieldStructure = Engine_Api::_()->fields()->getFieldsStructurePartial($list);\n\t\tif(empty($list_info)){ return $this->setNoRender(); }\n }", "public function index()\n {\n return $this->service->fetchResources(Author::class, 'authors');\n }", "public function index()\n {\n return view('admin.resources.index');\n }", "public function doRestList() {\n\t\t$this->outputHelper ( 'Collections Retrieved Successfully', $this->getModel ()->with ( $this->nestedRelations )->filter ( $this->restFilter )->orderBy ( $this->restSort )->limit ( $this->restLimit )->offset ( $this->restOffset )->findAll (), $this->getModel ()->with ( $this->nestedRelations )->filter ( $this->restFilter )->count () );\n\t}" ]
[ "0.7446777", "0.736227", "0.73005503", "0.72478926", "0.71631265", "0.71489686", "0.7131636", "0.7105969", "0.71029514", "0.7101372", "0.70508176", "0.6995128", "0.69890636", "0.6934895", "0.6900203", "0.6899281", "0.6891734", "0.6887235", "0.68670005", "0.6849741", "0.6830523", "0.6802689", "0.6797", "0.67957735", "0.67871135", "0.6760129", "0.67427456", "0.6730486", "0.67272323", "0.67255723", "0.67255723", "0.67255723", "0.67177945", "0.6707866", "0.6706713", "0.6704375", "0.6664782", "0.6662871", "0.6660302", "0.6659404", "0.6656656", "0.6653517", "0.6647965", "0.6620322", "0.66185474", "0.6618499", "0.6606105", "0.6600617", "0.65996987", "0.6594775", "0.6587389", "0.6585109", "0.6581641", "0.6581017", "0.6577157", "0.65747666", "0.6572513", "0.65721947", "0.6570553", "0.65646994", "0.6563556", "0.6554194", "0.65529937", "0.65460825", "0.65368485", "0.653429", "0.65328294", "0.6526759", "0.6526695", "0.6526284", "0.65191334", "0.65183175", "0.65174305", "0.651703", "0.65141153", "0.6507088", "0.65061647", "0.6504046", "0.64942145", "0.6491893", "0.64883405", "0.6486392", "0.6485077", "0.64846045", "0.6478858", "0.64756656", "0.64726377", "0.6471126", "0.64701074", "0.6467418", "0.6462195", "0.64618355", "0.6459199", "0.6457831", "0.6454631", "0.64533997", "0.6451915", "0.6450861", "0.6449301", "0.64492667", "0.64469045" ]
0.0
-1
Show the form for creating a new resource.
public function create() { return view('manager.kasir.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) { $find = User::where('email', $request->email)->count(); if($find > 0){ return back() ->withErrors(['sistem' => 'Kasir sudah ada!']) ->withInput(); } $validatedData = $request->validate([ 'foto' => 'required|file|max:5000', ]); $foto = ""; if($request->hasfile('foto')) { $file = $request->file('foto'); $foto = time().'.'.$file->extension(); $file->move(public_path().'/uploads/', $foto); $foto = "/uploads/".$foto; } $data = new User(); $data->email = $request->email; $data->password = bcrypt($request->password); $data->name = $request->name; $data->alamat = $request->alamat; $data->no_hp = $request->no_hp; $data->foto = $foto; $data->role = 'kasir'; if($data->save()){ $request->session()->flash('mgs', "Sukses menambahkan kasir"); return redirect()->route('kasir.index'); }else{ return back() ->withErrors(['sistem', 'Gagal menambahkan kasir']) ->withInput(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function store($data, Resource $resource);", "public function store()\n {\n /* Check if logged in user is authorized to make this request */\n $this->authorizeAction();\n\n if (method_exists($this, 'storeValidations')) {\n $this->request->validate($this->storeValidations());\n }\n\n /* Create a new resource */\n $resource = $this->model::create(Input::all());\n\n /* Redirect to newly created resource page */\n return redirect()\n ->route($this->name . '.edit', $resource->id)\n ->with(\n 'success',\n Lang::has($this->name . '.resource-created') ?\n $this->name . '.resource-created' :\n 'messages.alert.resource-created'\n );\n }", "public function store(CreateStorageRequest $request)\n {\n $this->storage->create($request->all());\n\n return redirect()->route('admin.product.storage.index')\n ->withSuccess(trans('core::core.messages.resource created', ['name' => trans('product::storages.title.storages')]));\n }", "public function createStorage();", "public function store(StoreStorage $request)\n {\n $storage = Storage::create($request->all());\n $request->session()->flash('alert-success', 'Запись успешно добавлена!');\n return redirect()->route('storage.index');\n }", "public function saveShopifyResource() {\n if (is_null($this->getShopifyId())) { // if there is no id...\n $this->createShopifyResource(); // create a new resource\n } else { // if there is an id...\n $this->updateShopifyResource(); // update the resource\n }\n }", "public function store(Request $request, NebulaResource $resource): RedirectResponse\n {\n $this->authorize('create', $resource->model());\n\n $validated = $request->validate($resource->rules(\n $resource->createFields()\n ));\n\n $resource->storeQuery($resource->model(), $validated);\n\n $this->toast(__(':Resource created', [\n 'resource' => $resource->singularName(),\n ]));\n\n return redirect()->back();\n }", "function storeAndNew() {\n $this->store();\n }", "public function store(Request $request)\n {\n $currentUser = JWTAuth::parseToken()->authenticate();\n $validator = Validator::make($request->all(), [\n 'content' => 'required|string',\n 'image_link' => 'sometimes|url',\n ]);\n\n if ($validator->fails()) {\n return APIHandler::response(0, $validator->errors(), [], 400);\n }\n\n $resource = new Resource;\n $resource->user_id = $currentUser['id'];\n $resource->title = $request->get('title');\n $resource->content = $request->get('content');\n $resource->image_link = $request->get('imageLink');\n $resource->video_link = $request->get('videoLink');\n $resource->file_link = $request->get('fileLink');\n $resource->audio_link = $request->get('audioLink');\n $resource->tags = collect($request->get('tags'))->implode('text', ',');\n $resource->is_public = 0;\n $resource->save();\n $data['resource'] = $resource;\n\n if ($request->get('programId')) {\n $this->addToProgram($resource, $request->programId);\n // event(new NewLearningPathResourcePublished($resource, $invitee));\n }\n\n User::find($currentUser['id'])->increment('points', 2);\n\n return APIHandler::response(1, \"New resource has been created\", $data, 201);\n }", "public function store()\n {\n if (!$this->id) { // Insert\n $this->insertObject();\n } else { // Update\n $this->updateObject();\n }\n }", "public function store()\n\t{\n\t\t\n\t\t//\n\t}", "public function store()\r\n\t{\r\n\t\t//\r\n\t}", "public function store()\r\n\t{\r\n\t\t//\r\n\t}", "public function store()\r\n\t{\r\n\t\t//\r\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}" ]
[ "0.72855324", "0.71447515", "0.7132799", "0.6641042", "0.66208744", "0.6566955", "0.65249777", "0.6509032", "0.6447701", "0.63756555", "0.6373163", "0.63650846", "0.63650846", "0.63650846", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676", "0.6341676" ]
0.0
-1
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) { // $data = User::findOrFail($id); return view('manager.kasir.edit',['kasir'=>$data]); }
{ "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) { // $find = User::where('email', $request->email)->first(); if($find != null && $find->id != $id){ return back() ->withErrors(['sistem' => 'Kasir sudah ada!']) ->withInput(); } $validatedData = $request->validate([ 'foto' => 'file|max:5000, ']); $data = User::findOrFail($id); $foto = $data->foto; if($request->hasfile('foto')) { if (File::exists(public_path().$foto)) { File::delete(public_path().$foto); } $file = $request->file('foto'); $foto = time().'.'.$file->extension(); $file->move(public_path().'/uploads/', $foto); $foto = "/uploads/".$foto; } $data->email = $request->email; $data->name = $request->name; $data->alamat = $request->alamat; $data->no_hp = $request->no_hp; $data->foto = $foto; if($request->password != null){ $data->password = bcrypt($request->password); } if($data->save()){ $request->session()->flash('msg', "Sukses mengubah kasir"); return redirect()->route('kasir.index'); }else{ return back() ->withErrors(['sistem', 'Gagal mengubah kasir']) ->withInput(); } }
{ "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) { $kasir = User::findOrFail($id); $foto = $kasir->foto; if(File::exists(public_path().$foto)){ File::delete(public_path().$foto); } if($kasir->delete()){ \Session::flash('msg', "Sukses menghapus kasir"); }else{ \Session::flash('msg', "Gagal menghapus kasir"); } return redirect()->route('kasir.index'); }
{ "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 deleteResource()\n {\n $database = new Database();\n $id = $this->_params['id'];\n $database->deleteResource($id);\n $this->_f3->reroute('/Admin');\n }", "public function deleteShopifyResource() {\n $this->getShopifyApi()->call([\n 'URL' => API::PREFIX . $this->getApiPathSingleResource(),\n 'METHOD' => 'DELETE',\n ]);\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 function destroy(Storage $storage)\n {\n return redirect()->route('storages.index');\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 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 $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 File::find($id)->remove();\n \n return redirect()->route('files.index');\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 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 delete($path, $data = null);", "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 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 removeUpload()\n{\n if ($file = $this->getAbsolutePath()) {\n unlink($file); \n }\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 destroy(File $file)\n {\n //\n $v = Storage::delete($file->path);\n \n }", "public function removeItem(int $id)\n\t{\n\t\t$this->storage->remove($id);\n\t}", "public function remove($filePath){\n return Storage::delete($filePath);\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 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(): void\n {\n $file = $this->getAbsolutePath();\n if (!is_file($file) || !file_exists($file)) {\n return;\n }\n\n unlink($file);\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 }", "public function remove($id);", "public function remove($id);", "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 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 }", "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 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 {\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 }", "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 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.6671365", "0.6660839", "0.66361386", "0.6632988", "0.6624729", "0.6542195", "0.6541645", "0.6466739", "0.6288393", "0.61767083", "0.6129533", "0.608954", "0.6054169", "0.60443425", "0.60073143", "0.59338665", "0.59317696", "0.592145", "0.5920155", "0.59065086", "0.5897853", "0.58968836", "0.58958197", "0.58958197", "0.58958197", "0.58958197", "0.58800334", "0.5869308", "0.5861188", "0.5811069", "0.5774596", "0.5763277", "0.5755447", "0.5747713", "0.5742094", "0.573578", "0.5727048", "0.57164854", "0.5712422", "0.57092893", "0.57080173", "0.5707143", "0.5704078", "0.5696418", "0.5684556", "0.5684556", "0.56790006", "0.5678463", "0.5658492", "0.564975", "0.5648406", "0.56480885", "0.5641393", "0.5638992", "0.56302536", "0.56228197", "0.5616424", "0.5607389", "0.56033397", "0.5602035", "0.55991143", "0.55988586", "0.5590501", "0.5581284", "0.55681103", "0.5566215", "0.55644745", "0.5563726", "0.55593926", "0.55583876", "0.5548547", "0.5542015", "0.5541403", "0.5541403", "0.55397224", "0.55390894", "0.55376494", "0.5531044", "0.5529739", "0.55279493", "0.5527892", "0.5527892", "0.5527892", "0.5527892", "0.5527892", "0.5527892", "0.5527892", "0.5527892", "0.5527892", "0.5527892", "0.5527892", "0.5527892", "0.5527892", "0.5527892", "0.5527892", "0.5527671", "0.5527155", "0.5526666", "0.55245256", "0.552101", "0.55183184" ]
0.0
-1
the constructor is set to private so so nobody can create a new instance using new
public function __construct() { /* * * maybe set the db name here later ** */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "final private function __construct() {}", "final 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() {}", "final private function __construct() { }", "final private function __construct() { }", "final 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()\t{}", "private function __construct()\r\n {}", "private function __construct(){ }", "private function __construct(){ }", "private function __construct()\r\n {\r\n // Prevent direct instantiation\r\n }", "final private function __construct() {\n\t\t\t}", "private final function __construct() {}", "protected final function __construct() {}", "private function __construct() { }", "private function __construct() { }", "private function __construct() { }", "private function __construct() { }", "private function __construct() { }", "private function __construct() { }", "private function __construct() { }", "private function __construct() { }", "private function __construct() { }", "private function __construct() { }", "private function __construct() { }" ]
[ "0.8443795", "0.8443795", "0.83230275", "0.83230275", "0.83230275", "0.83230275", "0.83230275", "0.83230275", "0.83230275", "0.83230275", "0.83230275", "0.83230275", "0.83230275", "0.83230275", "0.83230275", "0.83230275", "0.83230275", "0.83230275", "0.83230275", "0.83230275", "0.83230275", "0.83230275", "0.83230275", "0.83230275", "0.83230275", "0.83230275", "0.83230275", "0.83230275", "0.83230275", "0.83230275", "0.83230275", "0.83230275", "0.83230275", "0.83230275", "0.83230275", "0.83230275", "0.83230275", "0.83230275", "0.83230275", "0.83230275", "0.83230275", "0.83230275", "0.83230275", "0.83230275", "0.83230275", "0.83230275", "0.83230275", "0.83230275", "0.83230275", "0.83230275", "0.83230275", "0.83230275", "0.83230275", "0.83230275", "0.83230275", "0.83230275", "0.83230275", "0.83230275", "0.8322289", "0.8322289", "0.83213514", "0.83072305", "0.83072305", "0.83072305", "0.8282384", "0.8275259", "0.8275259", "0.8275259", "0.8275259", "0.8275259", "0.8275259", "0.8275259", "0.8275259", "0.8275259", "0.8275259", "0.8275259", "0.8275259", "0.8275259", "0.8275259", "0.8275259", "0.8275259", "0.8275259", "0.82308", "0.8183596", "0.81792843", "0.81792843", "0.81712383", "0.81597376", "0.8154861", "0.8139725", "0.8131427", "0.8131427", "0.8131427", "0.8131427", "0.8131427", "0.8131427", "0.8131427", "0.8131427", "0.8131427", "0.8131427", "0.8131427" ]
0.0
-1
/ create the database registry object
public function _clear($user_uid) { $registry->db = db::getInstance(); $sth = $registry->db->prepare("update sys_users_verify set usv_status = 0, usv_token = '' where usv_usr_uid= ? "); $sth->execute(array($user_uid)); //$user = $sth->fetchAll(); $user = $sth->rowCount(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function createDatabaseStructure() {}", "private final function _createDbStructure()\n {\n if ($conn = $this->_getConnection()) {\n $installer = new lib_Install('install');\n try {\n $installer->install();\n } catch (Exception $e) {\n app::log($e->getMessage(), app::LOG_LEVEL_ERROR);\n }\n }\n }", "private function make_db() {\n ee()->load->dbforge();\n $fields = array(\n 'id' => array('type' => 'varchar', 'constraint' => '32'),\n 'access' => array('type' => 'integer', 'constraint' => '10', 'unsigned' => true),\n 'data' => array('type' => 'text')\n );\n ee()->dbforge->add_field($fields);\n ee()->dbforge->add_key('id', true);\n ee()->dbforge->create_table($this->table_name);\n\n return true;\n }", "public function dbInstance();", "protected function _initServerRegistry() {\n\trequire_once 'Agel/Application/Resource/ServerRegistry.php';\n\n\t$this->bootstrap('Db');\n\treturn new Agel_Application_Resource_ServerRegistry();\n }", "protected function _initDbResource()\n {\n $registry = $this->getPluginResource('db');\n if (!$registry) {\n return;\n }\n\n //\n // options in configs/application\n $options = $registry->getOptions();\n\n if (array_key_exists('dsn', $options) && '' !== $options['dsn']) {\n $options['params'] = array_replace(\n $options['params'],\n $this->_parseDsn($options['dsn'])\n );\n }\n\n $registry->setOptions($options);\n }", "public function initDatabase()\n {\n $this->register(new Provider\\DatabaseServiceProvider());\n }", "public static function init() {\n\t\tself::$_db = Storage::get('objects.database');\n\t}", "public function createRegistry($namespace)\n\t{\n\t\t$namespace = strtolower($namespace);\n\n\t\tif ($namespace == 'db') {\n\t\t\treturn false;\n\t\t\t// reserved word -- throw error\n\t\t}\n\n\t\tif (isset($this->registryKeys[$namespace])) {\n\t\t\treturn $this->registry[$namespace];\n\t\t}\n\n\t\t$array = $this->registryKeys;\n\t\tif (in_array($namespace, $array)) {\n\t\t\treturn $this->registry[$namespace];\n\t\t}\n\n\t\t/** Keys array */\n\t\t$this->registryKeys[] = $namespace;\n\n\t\t/** Namespace array */\n\t\t$this->registry[$namespace] = array();\n\n\t\t/** Log it */\n\t\tif ($this->exists('ProfilerService')) {\n\t\t} else {\n\n\t\t\tif (Services::Registry()->get('ProfilerService', 'on') === true) {\n\n\t\t\t\tif ($this->profiler_available === false) {\n\n\t\t\t\t\t$this->profiler_available = true;\n\t\t\t\t\t/* Catch up logging Registries created before Profiler Service started */\n\t\t\t\t\tforeach ($this->registryKeys as $ns) {\n\t\t\t\t\t\tServices::Profiler()->set('Create Registry ' . $ns, 'Registry');\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tServices::Profiler()->set('Create Registry ' . $namespace, 'Registry');\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t/** Return new registry */\n\n\t\treturn $this->registry[$namespace];\n\t}", "abstract protected function initDB();", "protected function createDatabaseConnection()\r\n\t{\r\n\t\t$this->dbConnectionPool = new \\Bitrix\\Main\\Db\\DbConnectionPool();\r\n\t}", "public function initDatabaseStructure( );", "function MetaDatabases() {}", "private function initDatabase() {\n \n \n \n }", "protected function _setupDb()\n {\n // First, delete the DB if it exists\n $this->_teardownDb();\n \n // Then, set up a clean new DB and return it\n list ($host, $port, $db) = $this->_getUrlParts();\n $db = trim($db, '/');\n \n return Sopha_Db::createDb($db, $host, $port);\n }", "public function createDB(){ \n $res = CouchNet::PUT($this->getUrl().\"/\"); \n return $this;\n }", "private function create()\n {\n if ($this->isRequired()) {\n $db = Database::getDatabaseConnection();\n $db->exec($this->getDropQuery());\n $db->exec($this->getCreateQuery());\n $this->populate($db);\n }\n }", "function createDb()\r\n {\r\n// $db = new Mysqli();\r\n $db = Mysqli::getInstance();\r\n return $db;\r\n }", "protected function _initDb(){\n $config = $this->getOptions();\n\n $db = Zend_Db::factory($config['resources']['db']['adapter'], $config['resources']['db']['params']);\n\n //set default adapter\n Zend_Db_Table::setDefaultAdapter($db);\n\n //save Db in registry for later use\n Zend_Registry::set(\"db\", $db);\n \n Zend_Controller_Action_HelperBroker::addPath(\n \t\tAPPLICATION_PATH .'/helpers');\n\t\t\n }", "public function getDb();", "private function __construct()\n \n {\n $config = Config::getConfig(); // set singleton config object\n $host = $this->host = Config::getKeys('host');\n $user = $this->username = Config::getKeys('username');\n $password = $this->password = Config::getKeys('password');\n $database = $this->db = Config::getKeys('db');\n $this->newConnection($host, $user, $password, $database);\n // return $dbid; //dbid to the registrey\n \n }", "public function createDatabase($database);", "protected function createDatabase()\n {\n\n $databaseFileName = strtolower(str::plural($this->moduleName));\n\n // Create Schema only in monogo database\n $databaseDriver = config('database.default');\n if ($databaseDriver == 'mongodb') {\n $this->createSchema($databaseFileName);\n }\n }", "function comicjet_db() {\n\treturn new Redis_DB();\n}", "public function __construct() {\n $this->dbName = new DataBase($this->db);\n }", "function get_gdb_resource()\n {\n\treturn DatabaseManager::getInstance();\n }", "public function registerDb() {\n global $wpdb;\n\n $charset_collate = $wpdb->get_charset_collate();\n $table_name = $wpdb->prefix . \"items_bookmark\";\n \n $createTable = \"CREATE TABLE IF NOT EXISTS $table_name (\n user_id INTEGER NOT NULL,\n response_id int,\n utterance_id int,\n PRIMARY KEY (user_id)\n ) $charset_collate;\";\n\n require_once( ABSPATH . 'wp-admin/includes/upgrade.php' );\n dbDelta($createTable);\n }", "private function setupDatabase()\n {\n try {\n $db = new PDO(sprintf('mysql:host=%s;dbname=%s', $this->host, $this->dbName), $this->userName, $this->password);\n\n } catch (PDOException $e) {\n\n if (false != strpos($e->getMessage(), 'Unknown database')) {\n $db = new PDO(sprintf('mysql:host=%s', $this->host), $this->userName, $this->password);\n $db->exec(\"CREATE DATABASE IF NOT EXISTS `$this->dbName` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;\") or die(print_r($db->errorInfo(), true));\n\n } else {\n die('DB ERROR: ' . $e->getMessage());\n }\n\n $db = new PDO(sprintf('mysql:host=%s;dbname=%s', $this->host, $this->dbName), $this->userName, $this->password);\n }\n $db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);\n\n return $db;\n }", "static function get_dbase($dbname){\n //\n //Test if there are databases already created so as to check if the requested \n //database is among them \n if(\\count(sql::$dbase)>0){\n //\n //Check if we have a ready dbase\n foreach (sql::$dbase as $key=>$value){\n //\n //\n if ($dbname===$key){\n //\n //We do, return it. \n return sql::$dbase[$dbname];\n }\n } \n }\n //\n //\n //create the database from first principle ie from the information schema \n sql::$dbase[$dbname] = new \\database($dbname);\n //\n //popilate the database with the entites\n sql::$dbase[$dbname]->export_structure();\n //\n //Set the dbase\n return sql::$dbase[$dbname];\n }", "function cl_ing_ingreso_det() {\r\n\r\n $this->database = new Database();\r\n }", "function register_db( $name = null, $args = array() ) {\n\n\t\t$defaults = array(\n\t\t\t'name' => 'yourtutor',\n\t\t\t'username' => 'root',\n\t\t\t'password' => '',\n\t\t\t'server' => 'localhost',\n\t\t\t'port' => 3306,\n\t\t\t'type' => 'mysql',\n\t\t\t'table_blacklist' => array('cache', 'passwords'),\n\t\t\t'column_blacklist' => array('password_hint'),\n\t\t\t'ttl' => $this->ttl,\n\t\t);\n\n\t\t$args = shortcode_atts( $defaults, $args );\n\t\t$name = $this->slugify( $name );\n\n\t\t$this->dbs[$name] = (object) $args;\n\n\t}", "public function create(): void\n {\n $this->register();\n }", "public static function obtenerint(){\n if (self::$db === null){\n \tself::$db = new self();\n }\n return self::$db;\n }", "public function runDatabase():Create {\n\n # Get database from inputs\n $database = Arrays::filterByKey($this->inputs['application'], \"name\", \"database\");\n\n # Get database values\n $databaseValues = $database[array_key_first($database)]['value'] ?? [];\n\n # Check database values\n if(!empty($databaseValues))\n\n # Iteration of values\n foreach($databaseValues as $value)\n\n # Push setup in config of database\n Database::setupConfig($value);\n\n /* Vendor for Mongo DB */\n\n # Check if mongo set in current app\n if(in_array('mongodb', $databaseValues)){\n\n Composer::requirePackage(\"mongodb/mongodb\", true, false);\n\n }\n \n # Return instance\n return $this;\n\n }", "public function database() {\n\t\t$this->_check();\n\t\t$d['title_for_layout'] = __(\"Database creation\");\n\t\t$this->set($d);\n\t}", "function Sql_DB_Create($db=\"\")\n {\n $query=$this->DB_Create_Query($db);\n $this->DB_Query($query);\n }", "protected function getDatabase() {}", "public function __construct() {\r\n $this->db = new Database;\r\n }", "function initDb()\n {\n global $database_host, $database_name, $database_user,$database_pass;\n\n $global=Frd::getGlobal();\n\n $db_config=array(\n 'host'=>$database_host,\n 'username'=>$database_user,\n 'password'=>$database_pass,\n 'dbname'=>$database_name\n );\n\n $db = Zend_Db::factory('pdo_mysql',$db_config);\n $db->query('set names utf8');\n Zend_Db_Table::setDefaultAdapter($db);\n $global->db=$db;\n\n $registry = Zend_Registry::getInstance();\n $registry->set(\"db_default\",$global->db);\n }", "public function create()\n {\n $db = XenForo_Application::get('db');\n $db->query('CREATE TABLE `' . self::DB_TABLE . '`\n (`threema_id` CHAR(8) NOT NULL PRIMARY KEY,\n `public_key` CHAR(64) NOT NULL)\n ');\n }", "function create_database() \r\n {\r\n \t\t\t$this->tx_cbywebdav_devlog(1,\"create_database\",\"cby_webdav\",\"create_database\");\r\n\r\n // TODO\r\n return false;\r\n }", "function __construct(){\n $this->_db = (new DataBaseServices())->connect();\n }", "static public function get_db_object()\n {\n return new Database(DB_HOST, DB_USER, DB_PASSWORD, DB_NAME);\n }", "public function database();", "function install() {\n\t\t\n\t\t$con = mysql_connect(HOST,USERNAME,PASSWORD)\n\t\t\tor die(\"<p>Error connecting to database: \" . mysql_error() . \"</p>\");\n\t\t$db = new new_db; \n\t\t$db->createTables();\n\t\t\n\t\t}", "private static function setupDB() {\n\t\t$tbl = self::$table;\n\t\t$dbw = wfGetDB( DB_MASTER );\n\t\twfDebugLog( __METHOD__, \"\\tCreating tables\\n\" );\n\t\t$dbw->query(\n\t\t\t\"CREATE TABLE IF NOT EXISTS $tbl ( pathway varchar(255), day varchar(50) )\", DB_MASTER\n\t\t);\n\t\twfDebugLog( __METHOD__, \"\\tDone!\\n\" );\n\t}", "public function __construct() {\r\n /* * * maybe set the db name here later ** */\r\n }", "function initRegister() {\r\n $register = new Zend_Registry(array(), ArrayObject::ARRAY_AS_PROPS);\r\n Zend_Registry::setInstance($register);\r\n }", "public function __construct( \\Aimeos\\MW\\DB\\Manager\\Iface $dbm, $rname, $dbname, $name );", "private function create()\n\t{\n\t\ttry\n\t\t{\n\t\t\t$q_string = \"insert into sandbox.dbo.daemon (object, dbtype) values (:object, :dbtype)\";\n\n\t\t\t$q = $this->_conn->prepare($q_string);\n\t\t\t$q->bindParam(':object', $this->_object);\n\t\t\t$q->bindParam(':dbtype', $this->_dbtype);\n\n\t\t\t$success = $q->execute();\n\t\t}\n\t\tcatch (PDOException $e)\n\t\t{\n\t\t\techo 'ERROR: ', $e->getMessage(), $this->_nl;\n\t\t\texit();\n\t\t}\n\n\t\t// unable to insert new entry\n\t\tif ($success !== true)\n\t\t{\n\t\t\techo \"ERROR: unable to create new lock entry for $this->_dbtype $this->_object.\", $this->_nl, $this->_nl;\n\t\t\texit();\n\t\t}\n\t}", "protected function __construct()\n {\n $this->instances = new Registry;\n }", "protected function initDatabaseRecord() {}", "public function __construct()\n {\n /*\n * Since this is the trial project, I've used simple ORM redbean(https://github.com/gabordemooij/redbean). Instead we can use more standatfs & stable one like doctrine or Illuminate\n */\n R::setup(\"pgsql:dbname=hellofresh;host=postgres\", \"hellofresh\", \"hellofresh\");\n }", "public function createRepository()\n {\n $schema = $this->getConnection()->getSchemaBuilder();\n\n $schema->create($this->table, function ($table) {\n $table->increments('id');\n $table->string('plugin');\n $table->string('migration');\n $table->integer('batch');\n });\n }", "function createDB() {\r\n\t\t\r\n\t\tif( $this->state != 1 ) return false;\r\n\t\t\r\n\t\tglobal $dbName;\r\n\t\t$r = mysql_query( \"CREATE DATABASE `$dbName` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;\" );\r\n\t\t$this->connect();\r\n\t\t\r\n\t\treturn $r;\r\n\t}", "public function __construct() {\n $this->database = Drupal::database();\n }", "public function initDB() {\n\t\t$field = $this->factory->createILubFieldDefinition();\n\t\t$field->initDB();\n\t}", "public function new_db($name)\n\t\t{\tif (! isset($this->link))\n\t\t\t\t$this->connect();\n\n\t\t\t$query = \"CREATE DATABASE IF NOT EXISTS \" . $name;\n\n\t\t\ttry\n\t\t\t{\tif (mysql_query($query, $this->link))\n\t\t\t\t\tthrow new Exception(\"Cannot create database \" . $name);\n\n\t\t\t\t$this->db = $name;\n\t\t\t}\n\t\t\tcatch (Exception e)\n\t\t\t{\techo $e->getMessage() . \"<br/>\";\n\t\t\t\techo mysql_error();\n\t\t\t\texit;\n\t\t\t}\n\t\t}", "function open_database() {\n\t\n\tglobal $database, $zurich, $action;\n\t\n\tdb_open($database);\n \n\t$zurich = db_retrieve(\"Zurich\", \"objects\");\n\tif (!$zurich or $action == 'reset') {\n\t\t$zurich = new Zurich(); // the very first time, create a new object\n\t\t}\n\t\n\t$zurich->set_time();\n}", "public function cr_database( $db_name )\n\t{\n\t\t// SQL String: CREATE DATABASE IF NOT EXISTS Library;\n\t\t$this->dbforge->create_database($db_name, TRUE);\n\t}", "public static function & factory($db_name) {\n\t\tstatic $dbs = array();\n\n\t\t$return = null;\n\n\t\t//ensure one db object per db server\n\t\tif (isset($dbs[$db_name])) {\n\t\t\treturn $dbs[$db_name];\n\t\t}\n\n\t\t$dbconfig = Config::get('db.'. $db_name);\n\n\t\tif (isset($dbconfig['driver'])) {\n\t\t\t$driver_class = 'DB'. strtolower($dbconfig['driver']);\n\t\t\t$driver_path = PATH_DB . $driver_class .'.class.php';\n\n\t\t\t$dbs[$db_name] = $return = new $driver_class(\n\t\t\t\tisset($dbconfig['server']) ? $dbconfig['server'] : null,\n\t\t\t\tisset($dbconfig['username']) ? $dbconfig['username'] : null,\n\t\t\t\tisset($dbconfig['password']) ? $dbconfig['password'] : null,\n\t\t\t\tisset($dbconfig['database']) ? $dbconfig['database'] : null,\n\t\t\t\tisset($dbconfig['port']) ? $dbconfig['port'] : null,\n\t\t\t\tisset($dbconfig['socket']) ? $dbconfig['socket'] : null\n\t\t\t);\n\t\t}\n\t\telse {\n\t\t\tthrow new RuntimeException('Unable to initialize DB object, no config found for db: '. $db_name);\n\t\t}\n\n\t\tif (!$return || !$return instanceof DB) {\n\t\t\tthrow new Exception('Unable to instantiate DB object for - '. $db_name .': '. var_export($dbconfig, true));\n\t\t}\n\n\t\treturn $return;\n\t}", "function __construct()\n {\n $this->dataBase = new Database(\n Conf::get('pkg_db_host'),\n Conf::get('pkg_db_port'),\n Conf::get('pkg_db_user'),\n Conf::get('pkg_db_password'),\n Conf::get('pkg_db_name'),\n Conf::get('pkg_db_usefav_table'));\n }", "public function __construct(){\n $this->db = new Database;\n }", "function __construct(){\n\t\t\t$this->db = new Database();\n\t\t}", "protected function _initDb() {\n\trequire_once 'Zend/Config/Ini.php';\n\trequire_once 'Agel/Db/Table.php';\n\n\t//TODO: Remove the dependency on db.config.php, and encryption.config.php\n\trequire realpath((APPLICATION_PATH . '/../../include/db.config.php'));\n\trequire realpath((APPLICATION_PATH . '/../../include/encryption.config.php'));\n if(isset($dsn['username'])) {\n define('PROMETHEUS_DB_CONFIGURED', 'yes');\n }\n\tdefine('PROMETHEUS_DB_USERNAME', $dsn ['username']);\n\tdefine('PROMETHEUS_DB_PASSWORD', $dsn ['password']);\n\tdefine('PROMETHEUS_DB_HOSTSPEC', $dsn ['hostspec']);\n\tdefine('PROMETHEUS_DB_SCHEMA', $dsn ['database']);\n\tdefine('PROMETHEUS_DB_CRYPT_KEY', $dsn ['crypt_passkey']);\n\tdefine('PROMETHEUS_SET_COMPANY_PRE', $db_values ['company_pre']);\n\tdefine('ORBSIX_CRYPT_KEY', $key);\n\n\tif (isset($dsn_slave)) {\n\t define('PROMETHEUS_SLAVE_DB_CONFIGURED', 'yes');\n\t define('PROMETHEUS_SLAVE_DB_USERNAME', $dsn_slave ['username']);\n\t define('PROMETHEUS_SLAVE_DB_PASSWORD', $dsn_slave ['password']);\n\t define('PROMETHEUS_SLAVE_DB_HOSTSPEC', $dsn_slave ['hostspec']);\n\t define('PROMETHEUS_SLAVE_DB_SCHEMA', $dsn_slave ['database']);\n\t define('PROMETHEUS_SLAVE_DB_CRYPT_KEY', $dsn_slave ['crypt_passkey']);\n\t define('PROMETHEUS_SLAVE_SET_COMPANY_PRE', $db_values_slave ['company_pre']);\n\t}\n\n\tAgel_Db_Table::setDbAdapter(new Zend_Config_Ini(APPLICATION_CONFIG_PATH . '/database.ini'));\n\n\treturn Agel_Db_Table::getDefaultAdapter();\n }", "function CreateDB() {\n $sql = \"CREATE SCHEMA IF NOT EXISTS `mydb`\" .\n \"DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci ;\";\n performSQL($sql);\n}", "public function __construct() {\n $this->registry = Registry::getInstance();\n }", "function getDatabase();", "public static function init()\n {\n $connection = new Connection(\"mysql:host={$_ENV['DB_HOST']};dbname={$_ENV['DB_NAME']}\", $_ENV['DB_USER'], $_ENV['DB_PASS']);\n return new Database($connection);\n }", "private function initDatabase()\n {\n $defaults = [\n 'user' => 'root',\n 'password' => '',\n 'prefix' => '',\n 'options' => [\n \\PDO::ATTR_PERSISTENT => true,\n \\PDO::ATTR_ERRMODE => 2,\n \\PDO::MYSQL_ATTR_INIT_COMMAND => 'SET NAMES utf8',\n \\PDO::MYSQL_ATTR_USE_BUFFERED_QUERY => 1,\n \\PDO::ATTR_EMULATE_PREPARES => false\n ]\n ];\n\n if (empty($this->settings['db'])) {\n error_log('No DB data set in Settings.php');\n Throw new FrameworkException('Error on DB access');\n }\n\n if (empty($this->settings['db']['default'])) {\n error_log('No DB \"default\" data set in Settings.php');\n Throw new FrameworkException('Error on DB access');\n }\n\n foreach ($this->settings['db'] as $name => &$settings) {\n\n $prefix = 'db.' . $name;\n\n // Check for databasename\n if (empty($settings['dsn'])) {\n Throw new \\PDOException(sprintf('No DSN specified for \"%s\" db connection. Please add correct DSN for this connection in Settings.php', $name));\n }\n\n // Check for DB defaults and map values\n foreach ($defaults as $key => $default) {\n\n // Append default options to settings\n if ($key == 'options') {\n\n if (empty($settings['options'])) {\n $settings['options'] = [];\n }\n\n foreach ($defaults['options'] as $option => $value) {\n\n if (array_key_exists($option, $settings['options'])) {\n continue;\n }\n\n $settings[$key][$option] = $value;\n }\n }\n\n if (empty($settings[$key])) {\n $settings[$key] = $default;\n }\n }\n\n foreach ($settings as $key => $value) {\n $this->di->mapValue($prefix . '.conn.' . $key, $value);\n }\n\n $this->di->mapService($prefix . '.conn', '\\Core\\Data\\Connectors\\Db\\Connection', [\n $prefix . '.conn.dsn',\n $prefix . '.conn.user',\n $prefix . '.conn.password',\n $prefix . '.conn.options'\n ]);\n $this->di->mapFactory($prefix, '\\Core\\Data\\Connectors\\Db\\Db', [\n $prefix . '.conn',\n $settings['prefix']\n ]);\n }\n }", "public static function create( $name ){ return Database::APICallUp( array('create' => $name), \"Could not create database \" . $name ); }", "function establish_connection() {\n\t \t\tself::$db = Registry()->db = SqlFactory::factory(Config()->DSN);\n\t \t\tself::$has_update_blob = method_exists(self::$db, 'UpdateBlob');\n\t\t\treturn self::$db;\n\t\t}", "protected function getDatabase()\r\n\t{\r\n\t\tif (!$this->registry->has('database'))\r\n\t\t{\r\n\t\t\tif (!$this->config->app->has('database'))\r\n\t\t\t{\r\n\t\t\t\tthrow new \\Exception('Failed to find config for database connection');\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t$connData = new \\System\\Core\\Database\\ConnectionData();\r\n\t\t\t$connData->username = $this->config->app->database->username;\r\n\t\t\t$connData->password = $this->config->app->database->password;\r\n\t\t\t$connData->database = $this->config->app->database->name;\r\n\t\t\t\r\n\t\t\t$this->registry->database = new Database($connData);\r\n\t\t}\r\n\t\t\r\n\t\treturn $this->registry->database;\r\n\t}", "public function __construct()\n\t{\n\t\t$this->db = IEM::getDatabase();\n\t}", "function new_db($name) {\n\t\t\t$sql = \"CREATE DATABASE IF NOT EXISTS \".$name;\n\t\t\tif ($this->checkup(\"\", $sql) != true) {\n\t\t\t\treturn $this->error(\"an error occured!\");\n\t\t\t}\n\n\t\t\t#\t\tif ( mysqli_query ($this->CONN, $sql ) ) {\n\t\t\tif ($this->one_query($sql)) {\n\t\t\t\treturn true;\n\t\t\t} else {\n\t\t\t\treturn $this->error(\"error while creating database '$name'!\");\n\t\t\t}\n\t\t}", "public function initStorage()\n {\n $dbMasterConfig = C(self::$dbKey);\n $this->storage = $this->getDbInstance($dbMasterConfig);\n $this->setTableName($dbMasterConfig);\n\n return $this->storage;\n }", "static function createObject () {\n $query = 'insert into '.Config::getTablePrifix().self::getTableName().' (';\n $feilds = self::getFeildNames();\n $query .= implode(',',$feilds);\n $query .= ') values(';\n foreach ($feilds as $feild) {\n if ($feild != current($feilds)) {\n $query .= ',';\n }\n $query .= '\\''.Database::escape(self::getFeildValue($feild)).'\\'';\n }\n $query .= ')';\n Database::query($query);\n // update the id feild value\n $lastInsertId = Database::queryAsObject('select max(id) as lastid from '.Config::getTablePrifix().self::getTableName());\n self::setFeildValue(self::getIdFeild(),$lastInsertId->lastid);\n return $this;\n }", "protected function populateDatabase()\n {\n\n $orm = $this->db->getOrm();\n\n // first clean the database to make shure to have no interferences\n // from existing data\n $orm->cleanResource('WbfsysText');\n $orm->cleanResource('WbfsysRoleGroup');\n $orm->cleanResource('WbfsysRoleUser');\n $orm->cleanResource('WbfsysSecurityArea');\n $orm->cleanResource('WbfsysSecurityAccess');\n $orm->cleanResource('WbfsysGroupUsers');\n\n // clear the cache\n $orm->clearCache();\n\n // Ein paar daten in der Datenbank\n $textPublic = $orm->newEntity('WbfsysText');\n $textPublic->access_key = 'text_public';\n $orm->insert($textPublic);\n\n $textAccess = $orm->newEntity('WbfsysText');\n $textAccess->access_key = 'text_access';\n $orm->insert($textAccess);\n\n $textNoAccess = $orm->newEntity('WbfsysText');\n $textNoAccess->access_key = 'text_no_access';\n $orm->insert($textNoAccess);\n\n // Gruppen Rollen\n $groupUnrelated = $orm->newEntity('WbfsysRoleGroup');\n $groupUnrelated->name = 'Unrelated';\n $groupUnrelated->access_key = 'unrelated';\n $groupUnrelated->level = Acl::DENIED;\n $orm->insert($groupUnrelated);\n\n $groupHasAccess = $orm->newEntity('WbfsysRoleGroup');\n $groupHasAccess->name = 'Has Access';\n $groupHasAccess->access_key = 'has_access';\n $groupHasAccess->level = Acl::DENIED;\n $orm->insert($groupHasAccess);\n\n $groupHasNoAccess = $orm->newEntity('WbfsysRoleGroup');\n $groupHasNoAccess->name = 'Has no Access';\n $groupHasNoAccess->access_key = 'has_no_access';\n $groupHasNoAccess->level = Acl::DENIED;\n $orm->insert($groupHasNoAccess);\n\n // user roles\n $userAnon = $orm->newEntity('WbfsysRoleUser');\n $userAnon->name = 'annon';\n $userAnon->level = Acl::DENIED;\n $orm->insert($userAnon);\n\n $userHasAccess = $orm->newEntity('WbfsysRoleUser');\n $userHasAccess->name = 'has_access';\n $userHasAccess->level = Acl::DENIED;\n $orm->insert($userHasAccess);\n\n $userHasDAccess = $orm->newEntity('WbfsysRoleUser');\n $userHasDAccess->name = 'has_dataset_access';\n $userHasDAccess->level = Acl::DENIED;\n $orm->insert($userHasDAccess);\n\n $userHasNoAccess = $orm->newEntity('WbfsysRoleUser');\n $userHasNoAccess->name = 'has_no_access';\n $userHasNoAccess->level = Acl::DENIED;\n $orm->insert($userHasNoAccess);\n\n // security areas\n $areaModPublic = $orm->newEntity('WbfsysSecurityArea');\n $areaModPublic->access_key = 'mod-public';\n $areaModPublic->id_level_listing = User::LEVEL_SUPERADMIN;\n $areaModPublic->id_level_access = User::LEVEL_SUPERADMIN;\n $areaModPublic->id_level_insert = User::LEVEL_SUPERADMIN;\n $areaModPublic->id_level_update = User::LEVEL_SUPERADMIN;\n $areaModPublic->id_level_delete = User::LEVEL_SUPERADMIN;\n $areaModPublic->id_level_admin = User::LEVEL_SUPERADMIN;\n $areaModPublic->id_ref_listing = User::LEVEL_SUPERADMIN;\n $areaModPublic->id_ref_access = User::LEVEL_SUPERADMIN;\n $areaModPublic->id_ref_insert = User::LEVEL_SUPERADMIN;\n $areaModPublic->id_ref_update = User::LEVEL_SUPERADMIN;\n $areaModPublic->id_ref_delete = User::LEVEL_SUPERADMIN;\n $areaModPublic->id_ref_admin = User::LEVEL_SUPERADMIN;\n $orm->insert($areaModPublic);\n\n $areaModAccess = $orm->newEntity('WbfsysSecurityArea');\n $areaModAccess->access_key = 'mod-has_access';\n $areaModAccess->id_level_listing = User::LEVEL_SUPERADMIN;\n $areaModAccess->id_level_access = User::LEVEL_SUPERADMIN;\n $areaModAccess->id_level_insert = User::LEVEL_SUPERADMIN;\n $areaModAccess->id_level_update = User::LEVEL_SUPERADMIN;\n $areaModAccess->id_level_delete = User::LEVEL_SUPERADMIN;\n $areaModAccess->id_level_admin = User::LEVEL_SUPERADMIN;\n $areaModAccess->id_ref_listing = User::LEVEL_SUPERADMIN;\n $areaModAccess->id_ref_access = User::LEVEL_SUPERADMIN;\n $areaModAccess->id_ref_insert = User::LEVEL_SUPERADMIN;\n $areaModAccess->id_ref_update = User::LEVEL_SUPERADMIN;\n $areaModAccess->id_ref_delete = User::LEVEL_SUPERADMIN;\n $areaModAccess->id_ref_admin = User::LEVEL_SUPERADMIN;\n $orm->insert($areaModAccess);\n\n $areaModNoAccess = $orm->newEntity('WbfsysSecurityArea');\n $areaModNoAccess->access_key = 'mod-no_access';\n $areaModNoAccess->id_level_listing = User::LEVEL_SUPERADMIN;\n $areaModNoAccess->id_level_access = User::LEVEL_SUPERADMIN;\n $areaModNoAccess->id_level_insert = User::LEVEL_SUPERADMIN;\n $areaModNoAccess->id_level_update = User::LEVEL_SUPERADMIN;\n $areaModNoAccess->id_level_delete = User::LEVEL_SUPERADMIN;\n $areaModNoAccess->id_level_admin = User::LEVEL_SUPERADMIN;\n $areaModNoAccess->id_ref_listing = User::LEVEL_SUPERADMIN;\n $areaModNoAccess->id_ref_access = User::LEVEL_SUPERADMIN;\n $areaModNoAccess->id_ref_insert = User::LEVEL_SUPERADMIN;\n $areaModNoAccess->id_ref_update = User::LEVEL_SUPERADMIN;\n $areaModNoAccess->id_ref_delete = User::LEVEL_SUPERADMIN;\n $areaModNoAccess->id_ref_admin = User::LEVEL_SUPERADMIN;\n $orm->insert($areaModNoAccess);\n\n // access\n $access1 = $orm->newEntity('WbfsysSecurityAccess');\n $access1->id_group = $groupHasAccess;\n $access1->id_area = $areaModAccess;\n $access1->access_level = Acl::LISTING;\n $this->acl->createAreaAssignment($access1,array(),true);\n\n // user role assignments\n $entityGUser = $orm->newEntity('WbfsysGroupUsers');\n $entityGUser->id_user = $userHasAccess;\n $entityGUser->id_group = $groupHasAccess;\n $entityGUser->id_area = $areaModAccess;\n $this->acl->createGroupAssignment($entityGUser);\n\n $entityGUser = $orm->newEntity('WbfsysGroupUsers');\n $entityGUser->id_user = $userHasDAccess;\n $entityGUser->id_group = $groupHasAccess;\n $entityGUser->id_area = $areaModAccess;\n $entityGUser->vid = $textAccess;\n $this->acl->createGroupAssignment($entityGUser);\n\n }", "protected function getDB() {\n\t\tif ( is_null( $this->mDb ) ) {\n\t\t\tglobal $wgMetricsDBserver, $wgMetricsDBname, $wgMetricsDBuser,\n\t\t\t\t$wgMetricsDBpassword, $wgMetricsDBtype, $wgMetricsDBprefix,\n\t\t\t\t$wgDebugDumpSql;\n\t\t\t$this->mDb = DatabaseBase::factory( $wgMetricsDBtype,\n\t\t\t\tarray(\n\t\t\t\t\t'host' => $wgMetricsDBserver,\n\t\t\t\t\t'user' => $wgMetricsDBuser,\n\t\t\t\t\t'password' => $wgMetricsDBpassword,\n\t\t\t\t\t'dbname' => $wgMetricsDBname,\n\t\t\t\t\t'tablePrefix' => $wgMetricsDBprefix,\n\t\t\t\t\t'flags' => ( $wgDebugDumpSql ? DBO_DEBUG : 0 ) | DBO_DEFAULT,\n\t\t\t\t)\n\t\t\t);\n\t\t\t//$this->mDb->query( \"SET names utf8\" );\n\t\t}\n\t\treturn $this->mDb;\n\t}", "public function __construct()\n\t\t{\n\t\t\t$this->_db = new Database();\n\t\t}", "function createDatabase() {\n try {\n $pdoObject = new PDOObject();\n $pdoObject->createTables();\n $pdo = $pdoObject->getPDO();\n\n openFile($pdo);\n } catch (PDOException $e) {\n $e->getMessage();\n exit;\n } finally {\n unset($pdo);\n }\n}", "public function newDB ($dbName)\n\t{\n\t\treturn parent::execute(\"CREATE DATABASE {$dbName} CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci\");\n\t}", "public function init()\n {\n $this->logger->info('DBService : init');\n\n $this->connect();\n $this->createTable( $this->pdo );\n }", "function chdb_create($pathname, $data)\n{\n}", "public function __construct()\n\t{\n\t\t$this->dbInfo = new DbInfo();\n\t}", "static public function getDatabaseObject()\n {\n if (getenv(\"OPENSHIFT_MYSQL_DB_HOST\") === false) {\n $_host = \"localhost\";\n $_username = \"root\";\n $_password = \"mantis5c\";\n $_database = \"startbwtracker\";\n } else {\n $_host = getenv(\"OPENSHIFT_MYSQL_DB_HOST\");\n $_username = getenv(\"OPENSHIFT_MYSQL_DB_USERNAME\");\n $_password = getenv(\"OPENSHIFT_MYSQL_DB_PASSWORD\");\n $_database = \"startbwtracker\";\n }\n\n $db = new \\PDO(\n \"mysql:host=$_host;dbname=$_database;\", $_username, $_password\n );\n // set the PDO error mode to exception\n $db->setAttribute(\\PDO::ATTR_ERRMODE, \\PDO::ERRMODE_EXCEPTION);\n\n return $db;\n }", "public function loadRegistry();", "function new_db( $name )\n\t{\n\t $sql = \"CREATE DATABASE \" . $name;\n\t\tif ( $this->checkup( \"\", $sql ) != true ) {\n\t\t\treturn $this->error( \"an error occured!\" );\n\t\t}\n\t\tif ( mysql_query ( $sql , $this->CONN ) ) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn $this->error ( \"error while creating database '$name'!\" );\n\t\t}\n\t}", "public function __construct()\n {\n $this->_db = new \\DbHandler();\n }", "public function settaDB()\n {\n include \"MySqlClass.php\";\n // istanza della classe\n $this->database = new MysqlClass();\n }", "public static function registry()\n {\n\t\tif ( empty(self::$registry) ){\n\t\t\tself::$registry = new Registry();\n\t\t}\n\t\treturn self::$registry;\n\n }", "public function createDatabaseDriver()\n {\n return new DatabaseHealthCheck;\n }", "public function __construct() {\n\t\t$this->db = getDatabase();\n\t}", "function create() {\r\n\t\tglobal $ufoSession;\r\n\t\tglobal $ufoDb;\r\n\t\t$link = $ufoDb->getLink();\r\n\t\t$this->uid = $ufoSession->userId();\r\n\r\n\t\t// insert\r\n\t\t$query = \"INSERT INTO ufo_product (uid, name, description) VALUES ($this->uid, '$this->name', '$this->description')\";\r\n\t\t$result = pg_query($query) or die(\"Query failed : \" . pg_last_error());\r\n\t\t/* Get the auto increment Id of the last insert. */\r\n\t\t$this->oid = $ufoDb->insert_id(\"ufo_product_seq\");\r\n\t\t$this->initialized = True;\r\n\t}", "public function __construct() {\n $this->db = database::getInstance();\n }", "function createDBTables() {\n $installer = new TrelloInstaller();\n return $installer->install();\n }", "private function openDb() {\n if(!$this->db) {\n $this->db = new Db();\n }\n }", "public function googlelogin_register_database() {\n $this->googleregister();\n \n }", "public function __construct()\n {\n $this->db = new Database;\n }", "public function __construct()\n {\n $this->db = new Database;\n }", "public function init()\n {\n $this->_db = Instance::ensure($this->_db, Connection::class);\n }" ]
[ "0.6821435", "0.6369876", "0.6310727", "0.6302365", "0.62974733", "0.6210824", "0.6183005", "0.61791843", "0.6134741", "0.6131029", "0.6110682", "0.6075171", "0.60733646", "0.607071", "0.6057268", "0.60457814", "0.60349387", "0.60131675", "0.6000276", "0.59827375", "0.59680223", "0.5935862", "0.59053576", "0.59003067", "0.58799046", "0.58764195", "0.5865741", "0.5859303", "0.58575207", "0.58549696", "0.5844612", "0.58202565", "0.5819176", "0.58102316", "0.5802718", "0.57667786", "0.575919", "0.57526106", "0.57390976", "0.57298", "0.572146", "0.57171905", "0.5716118", "0.57128984", "0.5709458", "0.5706906", "0.5702771", "0.56979793", "0.56974", "0.5696248", "0.56923574", "0.5689054", "0.5673922", "0.56713474", "0.56706125", "0.5669251", "0.5666518", "0.5659831", "0.5658882", "0.5653767", "0.56507", "0.5647453", "0.56443137", "0.5642118", "0.5639217", "0.562955", "0.5622898", "0.5622236", "0.56119686", "0.5609011", "0.56071424", "0.5604836", "0.56009036", "0.56008303", "0.5596962", "0.55967516", "0.5584346", "0.5583218", "0.55773336", "0.55755836", "0.5571", "0.5564411", "0.55629736", "0.55582666", "0.5550705", "0.5547209", "0.55440825", "0.5541917", "0.5534431", "0.55329436", "0.5528408", "0.5528275", "0.5526771", "0.5522483", "0.5519995", "0.5517724", "0.551695", "0.55159974", "0.55156225", "0.55156225", "0.5505136" ]
0.0
-1
/ create the database registry object
public function _find($user_uid, $to) { $registry->db = db::getInstance(); $sth = $registry->db->prepare("select usv_token from sys_users_verify where usv_usr_uid = ? and usv_token = ? and usv_status = 1 "); $sth->execute(array($user_uid, $to)); $row = $sth->fetchAll(); $user = $sth->rowCount(); //echo($user_uid.",".$to); //echo("<br>".$user."<br>"); //echo($row[0]['usv_token']); //die; if ($user) { $this->token = $row[0]['usv_token']; //echo($this->token); return(1); } else { $this->token = 0; return(0); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function createDatabaseStructure() {}", "private final function _createDbStructure()\n {\n if ($conn = $this->_getConnection()) {\n $installer = new lib_Install('install');\n try {\n $installer->install();\n } catch (Exception $e) {\n app::log($e->getMessage(), app::LOG_LEVEL_ERROR);\n }\n }\n }", "private function make_db() {\n ee()->load->dbforge();\n $fields = array(\n 'id' => array('type' => 'varchar', 'constraint' => '32'),\n 'access' => array('type' => 'integer', 'constraint' => '10', 'unsigned' => true),\n 'data' => array('type' => 'text')\n );\n ee()->dbforge->add_field($fields);\n ee()->dbforge->add_key('id', true);\n ee()->dbforge->create_table($this->table_name);\n\n return true;\n }", "public function dbInstance();", "protected function _initServerRegistry() {\n\trequire_once 'Agel/Application/Resource/ServerRegistry.php';\n\n\t$this->bootstrap('Db');\n\treturn new Agel_Application_Resource_ServerRegistry();\n }", "protected function _initDbResource()\n {\n $registry = $this->getPluginResource('db');\n if (!$registry) {\n return;\n }\n\n //\n // options in configs/application\n $options = $registry->getOptions();\n\n if (array_key_exists('dsn', $options) && '' !== $options['dsn']) {\n $options['params'] = array_replace(\n $options['params'],\n $this->_parseDsn($options['dsn'])\n );\n }\n\n $registry->setOptions($options);\n }", "public function initDatabase()\n {\n $this->register(new Provider\\DatabaseServiceProvider());\n }", "public static function init() {\n\t\tself::$_db = Storage::get('objects.database');\n\t}", "public function createRegistry($namespace)\n\t{\n\t\t$namespace = strtolower($namespace);\n\n\t\tif ($namespace == 'db') {\n\t\t\treturn false;\n\t\t\t// reserved word -- throw error\n\t\t}\n\n\t\tif (isset($this->registryKeys[$namespace])) {\n\t\t\treturn $this->registry[$namespace];\n\t\t}\n\n\t\t$array = $this->registryKeys;\n\t\tif (in_array($namespace, $array)) {\n\t\t\treturn $this->registry[$namespace];\n\t\t}\n\n\t\t/** Keys array */\n\t\t$this->registryKeys[] = $namespace;\n\n\t\t/** Namespace array */\n\t\t$this->registry[$namespace] = array();\n\n\t\t/** Log it */\n\t\tif ($this->exists('ProfilerService')) {\n\t\t} else {\n\n\t\t\tif (Services::Registry()->get('ProfilerService', 'on') === true) {\n\n\t\t\t\tif ($this->profiler_available === false) {\n\n\t\t\t\t\t$this->profiler_available = true;\n\t\t\t\t\t/* Catch up logging Registries created before Profiler Service started */\n\t\t\t\t\tforeach ($this->registryKeys as $ns) {\n\t\t\t\t\t\tServices::Profiler()->set('Create Registry ' . $ns, 'Registry');\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tServices::Profiler()->set('Create Registry ' . $namespace, 'Registry');\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t/** Return new registry */\n\n\t\treturn $this->registry[$namespace];\n\t}", "abstract protected function initDB();", "protected function createDatabaseConnection()\r\n\t{\r\n\t\t$this->dbConnectionPool = new \\Bitrix\\Main\\Db\\DbConnectionPool();\r\n\t}", "public function initDatabaseStructure( );", "function MetaDatabases() {}", "private function initDatabase() {\n \n \n \n }", "protected function _setupDb()\n {\n // First, delete the DB if it exists\n $this->_teardownDb();\n \n // Then, set up a clean new DB and return it\n list ($host, $port, $db) = $this->_getUrlParts();\n $db = trim($db, '/');\n \n return Sopha_Db::createDb($db, $host, $port);\n }", "public function createDB(){ \n $res = CouchNet::PUT($this->getUrl().\"/\"); \n return $this;\n }", "private function create()\n {\n if ($this->isRequired()) {\n $db = Database::getDatabaseConnection();\n $db->exec($this->getDropQuery());\n $db->exec($this->getCreateQuery());\n $this->populate($db);\n }\n }", "function createDb()\r\n {\r\n// $db = new Mysqli();\r\n $db = Mysqli::getInstance();\r\n return $db;\r\n }", "protected function _initDb(){\n $config = $this->getOptions();\n\n $db = Zend_Db::factory($config['resources']['db']['adapter'], $config['resources']['db']['params']);\n\n //set default adapter\n Zend_Db_Table::setDefaultAdapter($db);\n\n //save Db in registry for later use\n Zend_Registry::set(\"db\", $db);\n \n Zend_Controller_Action_HelperBroker::addPath(\n \t\tAPPLICATION_PATH .'/helpers');\n\t\t\n }", "public function getDb();", "private function __construct()\n \n {\n $config = Config::getConfig(); // set singleton config object\n $host = $this->host = Config::getKeys('host');\n $user = $this->username = Config::getKeys('username');\n $password = $this->password = Config::getKeys('password');\n $database = $this->db = Config::getKeys('db');\n $this->newConnection($host, $user, $password, $database);\n // return $dbid; //dbid to the registrey\n \n }", "public function createDatabase($database);", "protected function createDatabase()\n {\n\n $databaseFileName = strtolower(str::plural($this->moduleName));\n\n // Create Schema only in monogo database\n $databaseDriver = config('database.default');\n if ($databaseDriver == 'mongodb') {\n $this->createSchema($databaseFileName);\n }\n }", "function comicjet_db() {\n\treturn new Redis_DB();\n}", "public function __construct() {\n $this->dbName = new DataBase($this->db);\n }", "function get_gdb_resource()\n {\n\treturn DatabaseManager::getInstance();\n }", "public function registerDb() {\n global $wpdb;\n\n $charset_collate = $wpdb->get_charset_collate();\n $table_name = $wpdb->prefix . \"items_bookmark\";\n \n $createTable = \"CREATE TABLE IF NOT EXISTS $table_name (\n user_id INTEGER NOT NULL,\n response_id int,\n utterance_id int,\n PRIMARY KEY (user_id)\n ) $charset_collate;\";\n\n require_once( ABSPATH . 'wp-admin/includes/upgrade.php' );\n dbDelta($createTable);\n }", "private function setupDatabase()\n {\n try {\n $db = new PDO(sprintf('mysql:host=%s;dbname=%s', $this->host, $this->dbName), $this->userName, $this->password);\n\n } catch (PDOException $e) {\n\n if (false != strpos($e->getMessage(), 'Unknown database')) {\n $db = new PDO(sprintf('mysql:host=%s', $this->host), $this->userName, $this->password);\n $db->exec(\"CREATE DATABASE IF NOT EXISTS `$this->dbName` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;\") or die(print_r($db->errorInfo(), true));\n\n } else {\n die('DB ERROR: ' . $e->getMessage());\n }\n\n $db = new PDO(sprintf('mysql:host=%s;dbname=%s', $this->host, $this->dbName), $this->userName, $this->password);\n }\n $db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);\n\n return $db;\n }", "static function get_dbase($dbname){\n //\n //Test if there are databases already created so as to check if the requested \n //database is among them \n if(\\count(sql::$dbase)>0){\n //\n //Check if we have a ready dbase\n foreach (sql::$dbase as $key=>$value){\n //\n //\n if ($dbname===$key){\n //\n //We do, return it. \n return sql::$dbase[$dbname];\n }\n } \n }\n //\n //\n //create the database from first principle ie from the information schema \n sql::$dbase[$dbname] = new \\database($dbname);\n //\n //popilate the database with the entites\n sql::$dbase[$dbname]->export_structure();\n //\n //Set the dbase\n return sql::$dbase[$dbname];\n }", "function cl_ing_ingreso_det() {\r\n\r\n $this->database = new Database();\r\n }", "function register_db( $name = null, $args = array() ) {\n\n\t\t$defaults = array(\n\t\t\t'name' => 'yourtutor',\n\t\t\t'username' => 'root',\n\t\t\t'password' => '',\n\t\t\t'server' => 'localhost',\n\t\t\t'port' => 3306,\n\t\t\t'type' => 'mysql',\n\t\t\t'table_blacklist' => array('cache', 'passwords'),\n\t\t\t'column_blacklist' => array('password_hint'),\n\t\t\t'ttl' => $this->ttl,\n\t\t);\n\n\t\t$args = shortcode_atts( $defaults, $args );\n\t\t$name = $this->slugify( $name );\n\n\t\t$this->dbs[$name] = (object) $args;\n\n\t}", "public function create(): void\n {\n $this->register();\n }", "public static function obtenerint(){\n if (self::$db === null){\n \tself::$db = new self();\n }\n return self::$db;\n }", "public function runDatabase():Create {\n\n # Get database from inputs\n $database = Arrays::filterByKey($this->inputs['application'], \"name\", \"database\");\n\n # Get database values\n $databaseValues = $database[array_key_first($database)]['value'] ?? [];\n\n # Check database values\n if(!empty($databaseValues))\n\n # Iteration of values\n foreach($databaseValues as $value)\n\n # Push setup in config of database\n Database::setupConfig($value);\n\n /* Vendor for Mongo DB */\n\n # Check if mongo set in current app\n if(in_array('mongodb', $databaseValues)){\n\n Composer::requirePackage(\"mongodb/mongodb\", true, false);\n\n }\n \n # Return instance\n return $this;\n\n }", "public function database() {\n\t\t$this->_check();\n\t\t$d['title_for_layout'] = __(\"Database creation\");\n\t\t$this->set($d);\n\t}", "function Sql_DB_Create($db=\"\")\n {\n $query=$this->DB_Create_Query($db);\n $this->DB_Query($query);\n }", "protected function getDatabase() {}", "public function __construct() {\r\n $this->db = new Database;\r\n }", "function initDb()\n {\n global $database_host, $database_name, $database_user,$database_pass;\n\n $global=Frd::getGlobal();\n\n $db_config=array(\n 'host'=>$database_host,\n 'username'=>$database_user,\n 'password'=>$database_pass,\n 'dbname'=>$database_name\n );\n\n $db = Zend_Db::factory('pdo_mysql',$db_config);\n $db->query('set names utf8');\n Zend_Db_Table::setDefaultAdapter($db);\n $global->db=$db;\n\n $registry = Zend_Registry::getInstance();\n $registry->set(\"db_default\",$global->db);\n }", "public function create()\n {\n $db = XenForo_Application::get('db');\n $db->query('CREATE TABLE `' . self::DB_TABLE . '`\n (`threema_id` CHAR(8) NOT NULL PRIMARY KEY,\n `public_key` CHAR(64) NOT NULL)\n ');\n }", "function create_database() \r\n {\r\n \t\t\t$this->tx_cbywebdav_devlog(1,\"create_database\",\"cby_webdav\",\"create_database\");\r\n\r\n // TODO\r\n return false;\r\n }", "function __construct(){\n $this->_db = (new DataBaseServices())->connect();\n }", "static public function get_db_object()\n {\n return new Database(DB_HOST, DB_USER, DB_PASSWORD, DB_NAME);\n }", "public function database();", "function install() {\n\t\t\n\t\t$con = mysql_connect(HOST,USERNAME,PASSWORD)\n\t\t\tor die(\"<p>Error connecting to database: \" . mysql_error() . \"</p>\");\n\t\t$db = new new_db; \n\t\t$db->createTables();\n\t\t\n\t\t}", "private static function setupDB() {\n\t\t$tbl = self::$table;\n\t\t$dbw = wfGetDB( DB_MASTER );\n\t\twfDebugLog( __METHOD__, \"\\tCreating tables\\n\" );\n\t\t$dbw->query(\n\t\t\t\"CREATE TABLE IF NOT EXISTS $tbl ( pathway varchar(255), day varchar(50) )\", DB_MASTER\n\t\t);\n\t\twfDebugLog( __METHOD__, \"\\tDone!\\n\" );\n\t}", "public function __construct() {\r\n /* * * maybe set the db name here later ** */\r\n }", "function initRegister() {\r\n $register = new Zend_Registry(array(), ArrayObject::ARRAY_AS_PROPS);\r\n Zend_Registry::setInstance($register);\r\n }", "public function __construct( \\Aimeos\\MW\\DB\\Manager\\Iface $dbm, $rname, $dbname, $name );", "private function create()\n\t{\n\t\ttry\n\t\t{\n\t\t\t$q_string = \"insert into sandbox.dbo.daemon (object, dbtype) values (:object, :dbtype)\";\n\n\t\t\t$q = $this->_conn->prepare($q_string);\n\t\t\t$q->bindParam(':object', $this->_object);\n\t\t\t$q->bindParam(':dbtype', $this->_dbtype);\n\n\t\t\t$success = $q->execute();\n\t\t}\n\t\tcatch (PDOException $e)\n\t\t{\n\t\t\techo 'ERROR: ', $e->getMessage(), $this->_nl;\n\t\t\texit();\n\t\t}\n\n\t\t// unable to insert new entry\n\t\tif ($success !== true)\n\t\t{\n\t\t\techo \"ERROR: unable to create new lock entry for $this->_dbtype $this->_object.\", $this->_nl, $this->_nl;\n\t\t\texit();\n\t\t}\n\t}", "protected function __construct()\n {\n $this->instances = new Registry;\n }", "protected function initDatabaseRecord() {}", "public function __construct()\n {\n /*\n * Since this is the trial project, I've used simple ORM redbean(https://github.com/gabordemooij/redbean). Instead we can use more standatfs & stable one like doctrine or Illuminate\n */\n R::setup(\"pgsql:dbname=hellofresh;host=postgres\", \"hellofresh\", \"hellofresh\");\n }", "public function createRepository()\n {\n $schema = $this->getConnection()->getSchemaBuilder();\n\n $schema->create($this->table, function ($table) {\n $table->increments('id');\n $table->string('plugin');\n $table->string('migration');\n $table->integer('batch');\n });\n }", "function createDB() {\r\n\t\t\r\n\t\tif( $this->state != 1 ) return false;\r\n\t\t\r\n\t\tglobal $dbName;\r\n\t\t$r = mysql_query( \"CREATE DATABASE `$dbName` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;\" );\r\n\t\t$this->connect();\r\n\t\t\r\n\t\treturn $r;\r\n\t}", "public function __construct() {\n $this->database = Drupal::database();\n }", "public function initDB() {\n\t\t$field = $this->factory->createILubFieldDefinition();\n\t\t$field->initDB();\n\t}", "public function new_db($name)\n\t\t{\tif (! isset($this->link))\n\t\t\t\t$this->connect();\n\n\t\t\t$query = \"CREATE DATABASE IF NOT EXISTS \" . $name;\n\n\t\t\ttry\n\t\t\t{\tif (mysql_query($query, $this->link))\n\t\t\t\t\tthrow new Exception(\"Cannot create database \" . $name);\n\n\t\t\t\t$this->db = $name;\n\t\t\t}\n\t\t\tcatch (Exception e)\n\t\t\t{\techo $e->getMessage() . \"<br/>\";\n\t\t\t\techo mysql_error();\n\t\t\t\texit;\n\t\t\t}\n\t\t}", "function open_database() {\n\t\n\tglobal $database, $zurich, $action;\n\t\n\tdb_open($database);\n \n\t$zurich = db_retrieve(\"Zurich\", \"objects\");\n\tif (!$zurich or $action == 'reset') {\n\t\t$zurich = new Zurich(); // the very first time, create a new object\n\t\t}\n\t\n\t$zurich->set_time();\n}", "public function cr_database( $db_name )\n\t{\n\t\t// SQL String: CREATE DATABASE IF NOT EXISTS Library;\n\t\t$this->dbforge->create_database($db_name, TRUE);\n\t}", "public static function & factory($db_name) {\n\t\tstatic $dbs = array();\n\n\t\t$return = null;\n\n\t\t//ensure one db object per db server\n\t\tif (isset($dbs[$db_name])) {\n\t\t\treturn $dbs[$db_name];\n\t\t}\n\n\t\t$dbconfig = Config::get('db.'. $db_name);\n\n\t\tif (isset($dbconfig['driver'])) {\n\t\t\t$driver_class = 'DB'. strtolower($dbconfig['driver']);\n\t\t\t$driver_path = PATH_DB . $driver_class .'.class.php';\n\n\t\t\t$dbs[$db_name] = $return = new $driver_class(\n\t\t\t\tisset($dbconfig['server']) ? $dbconfig['server'] : null,\n\t\t\t\tisset($dbconfig['username']) ? $dbconfig['username'] : null,\n\t\t\t\tisset($dbconfig['password']) ? $dbconfig['password'] : null,\n\t\t\t\tisset($dbconfig['database']) ? $dbconfig['database'] : null,\n\t\t\t\tisset($dbconfig['port']) ? $dbconfig['port'] : null,\n\t\t\t\tisset($dbconfig['socket']) ? $dbconfig['socket'] : null\n\t\t\t);\n\t\t}\n\t\telse {\n\t\t\tthrow new RuntimeException('Unable to initialize DB object, no config found for db: '. $db_name);\n\t\t}\n\n\t\tif (!$return || !$return instanceof DB) {\n\t\t\tthrow new Exception('Unable to instantiate DB object for - '. $db_name .': '. var_export($dbconfig, true));\n\t\t}\n\n\t\treturn $return;\n\t}", "function __construct()\n {\n $this->dataBase = new Database(\n Conf::get('pkg_db_host'),\n Conf::get('pkg_db_port'),\n Conf::get('pkg_db_user'),\n Conf::get('pkg_db_password'),\n Conf::get('pkg_db_name'),\n Conf::get('pkg_db_usefav_table'));\n }", "public function __construct(){\n $this->db = new Database;\n }", "function __construct(){\n\t\t\t$this->db = new Database();\n\t\t}", "protected function _initDb() {\n\trequire_once 'Zend/Config/Ini.php';\n\trequire_once 'Agel/Db/Table.php';\n\n\t//TODO: Remove the dependency on db.config.php, and encryption.config.php\n\trequire realpath((APPLICATION_PATH . '/../../include/db.config.php'));\n\trequire realpath((APPLICATION_PATH . '/../../include/encryption.config.php'));\n if(isset($dsn['username'])) {\n define('PROMETHEUS_DB_CONFIGURED', 'yes');\n }\n\tdefine('PROMETHEUS_DB_USERNAME', $dsn ['username']);\n\tdefine('PROMETHEUS_DB_PASSWORD', $dsn ['password']);\n\tdefine('PROMETHEUS_DB_HOSTSPEC', $dsn ['hostspec']);\n\tdefine('PROMETHEUS_DB_SCHEMA', $dsn ['database']);\n\tdefine('PROMETHEUS_DB_CRYPT_KEY', $dsn ['crypt_passkey']);\n\tdefine('PROMETHEUS_SET_COMPANY_PRE', $db_values ['company_pre']);\n\tdefine('ORBSIX_CRYPT_KEY', $key);\n\n\tif (isset($dsn_slave)) {\n\t define('PROMETHEUS_SLAVE_DB_CONFIGURED', 'yes');\n\t define('PROMETHEUS_SLAVE_DB_USERNAME', $dsn_slave ['username']);\n\t define('PROMETHEUS_SLAVE_DB_PASSWORD', $dsn_slave ['password']);\n\t define('PROMETHEUS_SLAVE_DB_HOSTSPEC', $dsn_slave ['hostspec']);\n\t define('PROMETHEUS_SLAVE_DB_SCHEMA', $dsn_slave ['database']);\n\t define('PROMETHEUS_SLAVE_DB_CRYPT_KEY', $dsn_slave ['crypt_passkey']);\n\t define('PROMETHEUS_SLAVE_SET_COMPANY_PRE', $db_values_slave ['company_pre']);\n\t}\n\n\tAgel_Db_Table::setDbAdapter(new Zend_Config_Ini(APPLICATION_CONFIG_PATH . '/database.ini'));\n\n\treturn Agel_Db_Table::getDefaultAdapter();\n }", "function CreateDB() {\n $sql = \"CREATE SCHEMA IF NOT EXISTS `mydb`\" .\n \"DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci ;\";\n performSQL($sql);\n}", "public function __construct() {\n $this->registry = Registry::getInstance();\n }", "function getDatabase();", "public static function init()\n {\n $connection = new Connection(\"mysql:host={$_ENV['DB_HOST']};dbname={$_ENV['DB_NAME']}\", $_ENV['DB_USER'], $_ENV['DB_PASS']);\n return new Database($connection);\n }", "private function initDatabase()\n {\n $defaults = [\n 'user' => 'root',\n 'password' => '',\n 'prefix' => '',\n 'options' => [\n \\PDO::ATTR_PERSISTENT => true,\n \\PDO::ATTR_ERRMODE => 2,\n \\PDO::MYSQL_ATTR_INIT_COMMAND => 'SET NAMES utf8',\n \\PDO::MYSQL_ATTR_USE_BUFFERED_QUERY => 1,\n \\PDO::ATTR_EMULATE_PREPARES => false\n ]\n ];\n\n if (empty($this->settings['db'])) {\n error_log('No DB data set in Settings.php');\n Throw new FrameworkException('Error on DB access');\n }\n\n if (empty($this->settings['db']['default'])) {\n error_log('No DB \"default\" data set in Settings.php');\n Throw new FrameworkException('Error on DB access');\n }\n\n foreach ($this->settings['db'] as $name => &$settings) {\n\n $prefix = 'db.' . $name;\n\n // Check for databasename\n if (empty($settings['dsn'])) {\n Throw new \\PDOException(sprintf('No DSN specified for \"%s\" db connection. Please add correct DSN for this connection in Settings.php', $name));\n }\n\n // Check for DB defaults and map values\n foreach ($defaults as $key => $default) {\n\n // Append default options to settings\n if ($key == 'options') {\n\n if (empty($settings['options'])) {\n $settings['options'] = [];\n }\n\n foreach ($defaults['options'] as $option => $value) {\n\n if (array_key_exists($option, $settings['options'])) {\n continue;\n }\n\n $settings[$key][$option] = $value;\n }\n }\n\n if (empty($settings[$key])) {\n $settings[$key] = $default;\n }\n }\n\n foreach ($settings as $key => $value) {\n $this->di->mapValue($prefix . '.conn.' . $key, $value);\n }\n\n $this->di->mapService($prefix . '.conn', '\\Core\\Data\\Connectors\\Db\\Connection', [\n $prefix . '.conn.dsn',\n $prefix . '.conn.user',\n $prefix . '.conn.password',\n $prefix . '.conn.options'\n ]);\n $this->di->mapFactory($prefix, '\\Core\\Data\\Connectors\\Db\\Db', [\n $prefix . '.conn',\n $settings['prefix']\n ]);\n }\n }", "public static function create( $name ){ return Database::APICallUp( array('create' => $name), \"Could not create database \" . $name ); }", "function establish_connection() {\n\t \t\tself::$db = Registry()->db = SqlFactory::factory(Config()->DSN);\n\t \t\tself::$has_update_blob = method_exists(self::$db, 'UpdateBlob');\n\t\t\treturn self::$db;\n\t\t}", "protected function getDatabase()\r\n\t{\r\n\t\tif (!$this->registry->has('database'))\r\n\t\t{\r\n\t\t\tif (!$this->config->app->has('database'))\r\n\t\t\t{\r\n\t\t\t\tthrow new \\Exception('Failed to find config for database connection');\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t$connData = new \\System\\Core\\Database\\ConnectionData();\r\n\t\t\t$connData->username = $this->config->app->database->username;\r\n\t\t\t$connData->password = $this->config->app->database->password;\r\n\t\t\t$connData->database = $this->config->app->database->name;\r\n\t\t\t\r\n\t\t\t$this->registry->database = new Database($connData);\r\n\t\t}\r\n\t\t\r\n\t\treturn $this->registry->database;\r\n\t}", "public function __construct()\n\t{\n\t\t$this->db = IEM::getDatabase();\n\t}", "function new_db($name) {\n\t\t\t$sql = \"CREATE DATABASE IF NOT EXISTS \".$name;\n\t\t\tif ($this->checkup(\"\", $sql) != true) {\n\t\t\t\treturn $this->error(\"an error occured!\");\n\t\t\t}\n\n\t\t\t#\t\tif ( mysqli_query ($this->CONN, $sql ) ) {\n\t\t\tif ($this->one_query($sql)) {\n\t\t\t\treturn true;\n\t\t\t} else {\n\t\t\t\treturn $this->error(\"error while creating database '$name'!\");\n\t\t\t}\n\t\t}", "public function initStorage()\n {\n $dbMasterConfig = C(self::$dbKey);\n $this->storage = $this->getDbInstance($dbMasterConfig);\n $this->setTableName($dbMasterConfig);\n\n return $this->storage;\n }", "static function createObject () {\n $query = 'insert into '.Config::getTablePrifix().self::getTableName().' (';\n $feilds = self::getFeildNames();\n $query .= implode(',',$feilds);\n $query .= ') values(';\n foreach ($feilds as $feild) {\n if ($feild != current($feilds)) {\n $query .= ',';\n }\n $query .= '\\''.Database::escape(self::getFeildValue($feild)).'\\'';\n }\n $query .= ')';\n Database::query($query);\n // update the id feild value\n $lastInsertId = Database::queryAsObject('select max(id) as lastid from '.Config::getTablePrifix().self::getTableName());\n self::setFeildValue(self::getIdFeild(),$lastInsertId->lastid);\n return $this;\n }", "protected function populateDatabase()\n {\n\n $orm = $this->db->getOrm();\n\n // first clean the database to make shure to have no interferences\n // from existing data\n $orm->cleanResource('WbfsysText');\n $orm->cleanResource('WbfsysRoleGroup');\n $orm->cleanResource('WbfsysRoleUser');\n $orm->cleanResource('WbfsysSecurityArea');\n $orm->cleanResource('WbfsysSecurityAccess');\n $orm->cleanResource('WbfsysGroupUsers');\n\n // clear the cache\n $orm->clearCache();\n\n // Ein paar daten in der Datenbank\n $textPublic = $orm->newEntity('WbfsysText');\n $textPublic->access_key = 'text_public';\n $orm->insert($textPublic);\n\n $textAccess = $orm->newEntity('WbfsysText');\n $textAccess->access_key = 'text_access';\n $orm->insert($textAccess);\n\n $textNoAccess = $orm->newEntity('WbfsysText');\n $textNoAccess->access_key = 'text_no_access';\n $orm->insert($textNoAccess);\n\n // Gruppen Rollen\n $groupUnrelated = $orm->newEntity('WbfsysRoleGroup');\n $groupUnrelated->name = 'Unrelated';\n $groupUnrelated->access_key = 'unrelated';\n $groupUnrelated->level = Acl::DENIED;\n $orm->insert($groupUnrelated);\n\n $groupHasAccess = $orm->newEntity('WbfsysRoleGroup');\n $groupHasAccess->name = 'Has Access';\n $groupHasAccess->access_key = 'has_access';\n $groupHasAccess->level = Acl::DENIED;\n $orm->insert($groupHasAccess);\n\n $groupHasNoAccess = $orm->newEntity('WbfsysRoleGroup');\n $groupHasNoAccess->name = 'Has no Access';\n $groupHasNoAccess->access_key = 'has_no_access';\n $groupHasNoAccess->level = Acl::DENIED;\n $orm->insert($groupHasNoAccess);\n\n // user roles\n $userAnon = $orm->newEntity('WbfsysRoleUser');\n $userAnon->name = 'annon';\n $userAnon->level = Acl::DENIED;\n $orm->insert($userAnon);\n\n $userHasAccess = $orm->newEntity('WbfsysRoleUser');\n $userHasAccess->name = 'has_access';\n $userHasAccess->level = Acl::DENIED;\n $orm->insert($userHasAccess);\n\n $userHasDAccess = $orm->newEntity('WbfsysRoleUser');\n $userHasDAccess->name = 'has_dataset_access';\n $userHasDAccess->level = Acl::DENIED;\n $orm->insert($userHasDAccess);\n\n $userHasNoAccess = $orm->newEntity('WbfsysRoleUser');\n $userHasNoAccess->name = 'has_no_access';\n $userHasNoAccess->level = Acl::DENIED;\n $orm->insert($userHasNoAccess);\n\n // security areas\n $areaModPublic = $orm->newEntity('WbfsysSecurityArea');\n $areaModPublic->access_key = 'mod-public';\n $areaModPublic->id_level_listing = User::LEVEL_SUPERADMIN;\n $areaModPublic->id_level_access = User::LEVEL_SUPERADMIN;\n $areaModPublic->id_level_insert = User::LEVEL_SUPERADMIN;\n $areaModPublic->id_level_update = User::LEVEL_SUPERADMIN;\n $areaModPublic->id_level_delete = User::LEVEL_SUPERADMIN;\n $areaModPublic->id_level_admin = User::LEVEL_SUPERADMIN;\n $areaModPublic->id_ref_listing = User::LEVEL_SUPERADMIN;\n $areaModPublic->id_ref_access = User::LEVEL_SUPERADMIN;\n $areaModPublic->id_ref_insert = User::LEVEL_SUPERADMIN;\n $areaModPublic->id_ref_update = User::LEVEL_SUPERADMIN;\n $areaModPublic->id_ref_delete = User::LEVEL_SUPERADMIN;\n $areaModPublic->id_ref_admin = User::LEVEL_SUPERADMIN;\n $orm->insert($areaModPublic);\n\n $areaModAccess = $orm->newEntity('WbfsysSecurityArea');\n $areaModAccess->access_key = 'mod-has_access';\n $areaModAccess->id_level_listing = User::LEVEL_SUPERADMIN;\n $areaModAccess->id_level_access = User::LEVEL_SUPERADMIN;\n $areaModAccess->id_level_insert = User::LEVEL_SUPERADMIN;\n $areaModAccess->id_level_update = User::LEVEL_SUPERADMIN;\n $areaModAccess->id_level_delete = User::LEVEL_SUPERADMIN;\n $areaModAccess->id_level_admin = User::LEVEL_SUPERADMIN;\n $areaModAccess->id_ref_listing = User::LEVEL_SUPERADMIN;\n $areaModAccess->id_ref_access = User::LEVEL_SUPERADMIN;\n $areaModAccess->id_ref_insert = User::LEVEL_SUPERADMIN;\n $areaModAccess->id_ref_update = User::LEVEL_SUPERADMIN;\n $areaModAccess->id_ref_delete = User::LEVEL_SUPERADMIN;\n $areaModAccess->id_ref_admin = User::LEVEL_SUPERADMIN;\n $orm->insert($areaModAccess);\n\n $areaModNoAccess = $orm->newEntity('WbfsysSecurityArea');\n $areaModNoAccess->access_key = 'mod-no_access';\n $areaModNoAccess->id_level_listing = User::LEVEL_SUPERADMIN;\n $areaModNoAccess->id_level_access = User::LEVEL_SUPERADMIN;\n $areaModNoAccess->id_level_insert = User::LEVEL_SUPERADMIN;\n $areaModNoAccess->id_level_update = User::LEVEL_SUPERADMIN;\n $areaModNoAccess->id_level_delete = User::LEVEL_SUPERADMIN;\n $areaModNoAccess->id_level_admin = User::LEVEL_SUPERADMIN;\n $areaModNoAccess->id_ref_listing = User::LEVEL_SUPERADMIN;\n $areaModNoAccess->id_ref_access = User::LEVEL_SUPERADMIN;\n $areaModNoAccess->id_ref_insert = User::LEVEL_SUPERADMIN;\n $areaModNoAccess->id_ref_update = User::LEVEL_SUPERADMIN;\n $areaModNoAccess->id_ref_delete = User::LEVEL_SUPERADMIN;\n $areaModNoAccess->id_ref_admin = User::LEVEL_SUPERADMIN;\n $orm->insert($areaModNoAccess);\n\n // access\n $access1 = $orm->newEntity('WbfsysSecurityAccess');\n $access1->id_group = $groupHasAccess;\n $access1->id_area = $areaModAccess;\n $access1->access_level = Acl::LISTING;\n $this->acl->createAreaAssignment($access1,array(),true);\n\n // user role assignments\n $entityGUser = $orm->newEntity('WbfsysGroupUsers');\n $entityGUser->id_user = $userHasAccess;\n $entityGUser->id_group = $groupHasAccess;\n $entityGUser->id_area = $areaModAccess;\n $this->acl->createGroupAssignment($entityGUser);\n\n $entityGUser = $orm->newEntity('WbfsysGroupUsers');\n $entityGUser->id_user = $userHasDAccess;\n $entityGUser->id_group = $groupHasAccess;\n $entityGUser->id_area = $areaModAccess;\n $entityGUser->vid = $textAccess;\n $this->acl->createGroupAssignment($entityGUser);\n\n }", "protected function getDB() {\n\t\tif ( is_null( $this->mDb ) ) {\n\t\t\tglobal $wgMetricsDBserver, $wgMetricsDBname, $wgMetricsDBuser,\n\t\t\t\t$wgMetricsDBpassword, $wgMetricsDBtype, $wgMetricsDBprefix,\n\t\t\t\t$wgDebugDumpSql;\n\t\t\t$this->mDb = DatabaseBase::factory( $wgMetricsDBtype,\n\t\t\t\tarray(\n\t\t\t\t\t'host' => $wgMetricsDBserver,\n\t\t\t\t\t'user' => $wgMetricsDBuser,\n\t\t\t\t\t'password' => $wgMetricsDBpassword,\n\t\t\t\t\t'dbname' => $wgMetricsDBname,\n\t\t\t\t\t'tablePrefix' => $wgMetricsDBprefix,\n\t\t\t\t\t'flags' => ( $wgDebugDumpSql ? DBO_DEBUG : 0 ) | DBO_DEFAULT,\n\t\t\t\t)\n\t\t\t);\n\t\t\t//$this->mDb->query( \"SET names utf8\" );\n\t\t}\n\t\treturn $this->mDb;\n\t}", "public function __construct()\n\t\t{\n\t\t\t$this->_db = new Database();\n\t\t}", "function createDatabase() {\n try {\n $pdoObject = new PDOObject();\n $pdoObject->createTables();\n $pdo = $pdoObject->getPDO();\n\n openFile($pdo);\n } catch (PDOException $e) {\n $e->getMessage();\n exit;\n } finally {\n unset($pdo);\n }\n}", "public function newDB ($dbName)\n\t{\n\t\treturn parent::execute(\"CREATE DATABASE {$dbName} CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci\");\n\t}", "public function init()\n {\n $this->logger->info('DBService : init');\n\n $this->connect();\n $this->createTable( $this->pdo );\n }", "function chdb_create($pathname, $data)\n{\n}", "public function __construct()\n\t{\n\t\t$this->dbInfo = new DbInfo();\n\t}", "static public function getDatabaseObject()\n {\n if (getenv(\"OPENSHIFT_MYSQL_DB_HOST\") === false) {\n $_host = \"localhost\";\n $_username = \"root\";\n $_password = \"mantis5c\";\n $_database = \"startbwtracker\";\n } else {\n $_host = getenv(\"OPENSHIFT_MYSQL_DB_HOST\");\n $_username = getenv(\"OPENSHIFT_MYSQL_DB_USERNAME\");\n $_password = getenv(\"OPENSHIFT_MYSQL_DB_PASSWORD\");\n $_database = \"startbwtracker\";\n }\n\n $db = new \\PDO(\n \"mysql:host=$_host;dbname=$_database;\", $_username, $_password\n );\n // set the PDO error mode to exception\n $db->setAttribute(\\PDO::ATTR_ERRMODE, \\PDO::ERRMODE_EXCEPTION);\n\n return $db;\n }", "public function loadRegistry();", "function new_db( $name )\n\t{\n\t $sql = \"CREATE DATABASE \" . $name;\n\t\tif ( $this->checkup( \"\", $sql ) != true ) {\n\t\t\treturn $this->error( \"an error occured!\" );\n\t\t}\n\t\tif ( mysql_query ( $sql , $this->CONN ) ) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn $this->error ( \"error while creating database '$name'!\" );\n\t\t}\n\t}", "public function __construct()\n {\n $this->_db = new \\DbHandler();\n }", "public function settaDB()\n {\n include \"MySqlClass.php\";\n // istanza della classe\n $this->database = new MysqlClass();\n }", "public static function registry()\n {\n\t\tif ( empty(self::$registry) ){\n\t\t\tself::$registry = new Registry();\n\t\t}\n\t\treturn self::$registry;\n\n }", "public function createDatabaseDriver()\n {\n return new DatabaseHealthCheck;\n }", "public function __construct() {\n\t\t$this->db = getDatabase();\n\t}", "function create() {\r\n\t\tglobal $ufoSession;\r\n\t\tglobal $ufoDb;\r\n\t\t$link = $ufoDb->getLink();\r\n\t\t$this->uid = $ufoSession->userId();\r\n\r\n\t\t// insert\r\n\t\t$query = \"INSERT INTO ufo_product (uid, name, description) VALUES ($this->uid, '$this->name', '$this->description')\";\r\n\t\t$result = pg_query($query) or die(\"Query failed : \" . pg_last_error());\r\n\t\t/* Get the auto increment Id of the last insert. */\r\n\t\t$this->oid = $ufoDb->insert_id(\"ufo_product_seq\");\r\n\t\t$this->initialized = True;\r\n\t}", "public function __construct() {\n $this->db = database::getInstance();\n }", "function createDBTables() {\n $installer = new TrelloInstaller();\n return $installer->install();\n }", "private function openDb() {\n if(!$this->db) {\n $this->db = new Db();\n }\n }", "public function googlelogin_register_database() {\n $this->googleregister();\n \n }", "public function __construct()\n {\n $this->db = new Database;\n }", "public function __construct()\n {\n $this->db = new Database;\n }", "public function init()\n {\n $this->_db = Instance::ensure($this->_db, Connection::class);\n }" ]
[ "0.6821435", "0.6369876", "0.6310727", "0.6302365", "0.62974733", "0.6210824", "0.6183005", "0.61791843", "0.6134741", "0.6131029", "0.6110682", "0.6075171", "0.60733646", "0.607071", "0.6057268", "0.60457814", "0.60349387", "0.60131675", "0.6000276", "0.59827375", "0.59680223", "0.5935862", "0.59053576", "0.59003067", "0.58799046", "0.58764195", "0.5865741", "0.5859303", "0.58575207", "0.58549696", "0.5844612", "0.58202565", "0.5819176", "0.58102316", "0.5802718", "0.57667786", "0.575919", "0.57526106", "0.57390976", "0.57298", "0.572146", "0.57171905", "0.5716118", "0.57128984", "0.5709458", "0.5706906", "0.5702771", "0.56979793", "0.56974", "0.5696248", "0.56923574", "0.5689054", "0.5673922", "0.56713474", "0.56706125", "0.5669251", "0.5666518", "0.5659831", "0.5658882", "0.5653767", "0.56507", "0.5647453", "0.56443137", "0.5642118", "0.5639217", "0.562955", "0.5622898", "0.5622236", "0.56119686", "0.5609011", "0.56071424", "0.5604836", "0.56009036", "0.56008303", "0.5596962", "0.55967516", "0.5584346", "0.5583218", "0.55773336", "0.55755836", "0.5571", "0.5564411", "0.55629736", "0.55582666", "0.5550705", "0.5547209", "0.55440825", "0.5541917", "0.5534431", "0.55329436", "0.5528408", "0.5528275", "0.5526771", "0.5522483", "0.5519995", "0.5517724", "0.551695", "0.55159974", "0.55156225", "0.55156225", "0.5505136" ]
0.0
-1
Like the constructor, we make __clone private so nobody can clone the instance
private function __clone() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "final private function __clone(){}", "protected function __clone() {}", "protected function __clone() {}", "protected function __clone() {}", "protected function __clone() {}", "protected function __clone() {}", "protected function __clone() {}", "protected function __clone() {}", "private function __clone(){}", "private function __clone(){}", "private function __clone(){}", "private function __clone(){}", "private function __clone(){}", "private function __clone(){}", "private function __clone(){}", "private function __clone(){}", "private function __clone(){}", "private function __clone(){}", "private function __clone(){}", "private function __clone () {}", "protected function __clone(){}", "private function __clone(){ }", "protected function __clone() { }", "private function __clone() {}", "private function __clone() {}", "private function __clone() {}", "private function __clone() {}", "private function __clone() {}", "private function __clone() {}", "private function __clone() {}", "private function __clone() {}", "private function __clone() {}", "private function __clone() {}", "private function __clone() {}", "private function __clone() {}", "private function __clone() {}", "private function __clone() {}", "private function __clone() {}", "private function __clone() {}", "private function __clone() {}", "private function __clone() {}", "private function __clone() {}", "private function __clone() {}", "private function __clone() {}", "private function __clone() {}", "private function __clone() {}", "private function __clone() {}", "private function __clone() {}", "protected function __clone()\n {\n //no possibility for cloning of singleton class\n }", "private function __clone() { }", "private function __clone() { }", "private function __clone() { }", "private function __clone() { }", "private function __clone() { }", "private function __clone() { }", "private function __clone() { }", "private function __clone() { }", "private function __clone() { }", "private function __clone() { }", "private function __clone() {\r\n \r\n }", "private function __clone() {\r\n }", "final private function __clone() {}", "final private function __clone() {}", "final private function __clone() {}", "final private function __clone() {}", "private function __clone() {\n \n }", "private function __clone() {\n \n }", "protected function __clone()\n {}", "private function __clone()\r\n {}", "protected function __clone()\n {\n }", "protected function __clone()\n {\n }", "protected function __clone()\n {\n }", "protected function __clone()\n {\n }", "private function __clone()\r\n {\r\n }", "protected function __clone() {\n \n }", "protected final function __clone()\n {\n }", "private function __clone()\r\n {\r\n // ...\r\n }", "final private function __clone(){\n\t\t\n\t}", "private function __clone() {\n }", "private function __clone() {\n }", "private function __clone() {\n }", "private function __clone() {\n }", "private function __clone() {\n }", "final public function __clone() {}", "private function __clone() { }", "public function __clone() {}", "public function __clone() {}", "public function __clone() {}", "public function __clone() {}", "final private function __clone() { }", "final private function __clone() { }", "final private function __clone() {\n\t}", "private function __clone(){\n }", "private function __clone(){\n }", "private function __clone(){\n\n }", "protected function __clone()\n {\n\n }", "final private function __clone()\n {\n }", "final private function __clone()\n {\n }", "private function __clone()\n {\n }", "private function __clone()\n {\n }" ]
[ "0.8623511", "0.8591677", "0.8591677", "0.8591677", "0.8591677", "0.8591677", "0.8591677", "0.8591677", "0.85643566", "0.85643566", "0.85643566", "0.85643566", "0.85643566", "0.85643566", "0.85643566", "0.85643566", "0.85643566", "0.85643566", "0.85643566", "0.8546156", "0.8545864", "0.8543557", "0.8541266", "0.85080886", "0.85080886", "0.85080886", "0.85080886", "0.85080886", "0.85080886", "0.85080886", "0.85080886", "0.85080886", "0.85080886", "0.85080886", "0.85080886", "0.85080886", "0.85080886", "0.85080886", "0.85080886", "0.85080886", "0.85080886", "0.85080886", "0.85080886", "0.85080886", "0.85080886", "0.85080886", "0.85080886", "0.85080886", "0.8494569", "0.84797543", "0.84797543", "0.84797543", "0.84797543", "0.84797543", "0.84797543", "0.84797543", "0.84797543", "0.84797543", "0.84797543", "0.8475214", "0.84731865", "0.84618807", "0.84618807", "0.84618807", "0.84618807", "0.8455972", "0.8455972", "0.84553295", "0.84502", "0.8442666", "0.8442666", "0.8442666", "0.8442666", "0.8441235", "0.84337646", "0.8430648", "0.8428125", "0.8427588", "0.8420563", "0.8420563", "0.8420563", "0.8420563", "0.8420563", "0.84202975", "0.8418292", "0.8413784", "0.8413784", "0.8413784", "0.8413784", "0.8412519", "0.8412519", "0.84124845", "0.8410857", "0.8410857", "0.8385444", "0.8384318", "0.8382995", "0.8382995", "0.8381946", "0.8381946" ]
0.8465215
61
Lists all GdpMails entities.
public function indexAction() { $em = $this->getDoctrine()->getManager(); $entities = $em->getRepository('LooninsIncidentBundle:GdpMails')->findAll(); return array( 'entities' => $entities, ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getAllEmails() {\n return getALL('SELECT * FROM mail');\n}", "public function findAll()\n {\n return $this->em\n ->getRepository('App:Mail')\n ->findAll()\n ;\n }", "public function scopeGetAllMails()\n {\n\n $gname = Input::get( 'gname' );\n\n $mails = Tolist::findMany( array(\n 'to_id' => Auth::user()->id . '_' . $gname\n ), array(\n 'email'\n ) )->all( 'email' );\n\n return Helper::cleanGroups( $mails, '|' );\n\n }", "public function getMails(): Collection\n {\n\n return $this->mails;\n\n }", "public function retrieveAllMails()\n {\n $mails = new Collection();\n for($i = 1; $i <= $this->countAllMails(); $i++)\n {\n $mails->add($this->retrieveMail($i));\n }\n return $mails;\n }", "function getEmails() {\n\treturn db_query(\"SELECT email FROM Emails\");\n}", "public function getAllEmails() {\n $this->db->cache = false;\n if (!$this->db->from($this->table)->select('email')->all()) {\n return [];\n }\n return $this->db->from($this->table)->select('email')->all();\n }", "function getMailList() {\n return getAll(\"SELECT id,`email` FROM `member` WHERE id != ?\"\n , [getLogin()['mid']]);\n}", "public function getAllMails()\n {\n $user = Auth::user();\n $emails = DB::table('users')->select('id','email')->get();\n return response()->json($emails);\n }", "function listEmails(){\n \n $conn = $this->connect();\n $ret = '';\n \n $sql = 'select email from ' . $this->dbtable;\n\t\t\t$query = mysql_query( $sql, $conn );\n \n\t\t\twhile( $row = mysql_fetch_assoc( $query ) ){\n\t\t\t\t$ret .= $row['email'] . \";\\n\";\n\t\t\t}\n \n mysql_close( $conn );\n \n\t\t\treturn $ret;\n }", "public function getEmails(){\r\n \r\n $dbConfig = array(\r\n \"DB_DNS\" => 'mysql:host=localhost;port=3306;dbname=PHPadvClassSpring2015',\r\n \"DB_USER\" => 'root', \r\n \"DB_PASSWORD\" => '');\r\n $pdo = new DB($dbConfig);\r\n $db = $pdo->getDB();\r\n $stmt = $db->prepare(\"SELECT * FROM emailtype where active = 1\");\r\n if ($stmt->execute() && $stmt->rowCount() > 0) {\r\n $results = $stmt->fetchAll(PDO::FETCH_ASSOC);\r\n echo '<h3>Types of E-mails</h3>';\r\n foreach ($results as $value) {\r\n echo '<p>- <strong>', $value['emailtype'], '</strong></p>';\r\n }\r\n } else {\r\n echo '<p>No data found!</p>';\r\n } \r\n \r\n }", "public function GetEmailAddresses()\n {\n $dbTalker = new DbTalker();\n return $dbTalker->GetAllMembersAndEmails();\n }", "public function emails()\n\t{\n\t\treturn $this->oneToMany(__NAMESPACE__ . '\\\\Mailinglist\\\\Email', 'mid');\n\t}", "public function getEmails()\n {\n $response = $this->get('user/emails');\n\n return $response['emails'];\n }", "public function indexAction() {\n $em = $this->getDoctrine()->getManager();\n\n $emails = $em->getRepository('Workshop5Bundle:Email')->findAll();\n\n return $this->render('email/index.html.twig', array(\n 'emails' => $emails,\n ));\n }", "public function getMailUsers()\n {\n return $this->userRepo->getMailUsers(\\Auth::user()->id);\n }", "public function getAllRecipients() {}", "public function fetchEmails(): void\n {\n $this->fetchedEmails = [];\n\n try {\n $response = $this->mailhog->request('GET', '/api/v1/messages');\n $this->fetchedEmails = json_decode($response->getBody(), false);\n } catch (Exception $e) {\n $this->fail('Exception: ' . $e->getMessage());\n }\n $this->sortEmails($this->fetchedEmails);\n\n // by default, work on all emails\n $this->setCurrentInbox($this->fetchedEmails);\n }", "function getAll() {\r\n\t\t$cond = new Criteria();\r\n\t\t$alls = NewsletterUserPeer::doSelect($cond);\r\n\t\treturn $alls;\r\n }", "function get_all_mail()\n {\n $this->db->order_by('id', 'desc');\n return $this->db->get('mail')->result_array();\n }", "public function getAllEmails() {\n $users = $this->getDoctrine()->getRepository(User::class)->findAll();\n $emails = [];\n foreach($users as $email) {\n if(\"[email protected]\" != $email->getEmail())\n array_push($emails, $email->getEmail());\n }\n\n return $emails;\n }", "public function getEmails()\n {\n return $this->emails;\n }", "public function getEmails()\n {\n return $this->emails;\n }", "public function listadeTodosEmailDao(){\r\n \r\n require_once (\"conexao.php\");\r\n require_once (\"modelo/objetoEmail.php\");\r\n \r\n $obj = Connection::getInstance();\r\n $listaEmail = array();\r\n \r\n $string = \"Select nome,email,comentario,data from email order by data\";\r\n $resultado = mysql_query($string) or die (\"Nao foi possivel realizar a busca\".mysql_error());\r\n\t$i=0; \r\n while ($registro = mysql_fetch_assoc($resultado)){\r\n\r\n\t $email = new objetoEmail(); \r\n $email->enviarEmail($registro['email'],$registro['nome'],$registro['comentario'],$registro['data']); \r\n\t $listaEmail[$i] = $email;\r\n \r\n $i++;\r\n }\r\n\t\t\r\n\t\tmysql_free_result($resultado);\r\n $obj->freebanco();\r\n return $listaEmail;\r\n }", "public function newAction()\r\n {\r\n $entity = new GdpMails();\r\n $form = $this->createCreateForm($entity);\r\n\r\n return array(\r\n 'entity' => $entity,\r\n 'form' => $form->createView(),\r\n );\r\n }", "public function indexAction()\n {\n try {\n $email = new Email();\n $grupo = new EmailGrupo();\n\n $this->view->emails = $email->lista(\n $this->_session->empresa->id_empresa,\n $this->_getParam('pagina', 0),\n $this->_getParam('grupo', null)\n );\n\n $this->view->grupos = $grupo->lista(\n $this->_session->empresa->id_empresa\n );\n } catch (Exception $e) {\n $mensagem = array('error' => $e->getMessage());\n $this->_helper->flashMessenger($mensagem);\n }\n }", "public function findAllEmails()\r\n {\r\n try {\r\n $query = 'SELECT email FROM login';\r\n $stmt = $this->conn->prepare($query);\r\n $stmt->execute();\r\n $result = $stmt->fetchAll(PDO::FETCH_ASSOC);\r\n if ($result == false) {\r\n return false;\r\n } else {\r\n return $result;\r\n }\r\n } catch (PDOException $e) {\r\n echo \"get accounts error\";\r\n die();\r\n }\r\n }", "public function getEmails()\n\t{\n \\Phalcon\\DI::getDefault()->get('logger')->log(\"Emails: \" . print_r($this->emails, true));\n\t\treturn $this->emails;\n\t}", "public function emails()\n {\n return $this->hasMany(Email::class);\n }", "public function getMailingLists() {\n $path = 'mailinglists.json';\n return $this->request($path);\n }", "public function getAll()\r\n {\r\n return $this->contactManager->fetchAll(true, null, null);\r\n }", "public function index()\n {\n return view(\"emails\", [\"emails\" => $this->email->get()->sortByDesc(\"created_at\")]);\n }", "public function emailsLists(MailerRepo $mailerService)\n {\n $lists = $mailerService->getAll();\n\n $menu_control = view()->shared('menu_control');\n $menu_control['page'] = 'emails';\n $menu_control['category'] = 'options';\n\n return view('mailer::emails', compact('lists','menu_control'));\n }", "public function getNewMailsAction()\n {\n $this->View()->success = true;\n $mails = $this->container->get('dbal_connection')->fetchAll('SELECT id, subject, receiverAddress FROM s_plugin_mailcatcher WHERE id > :id ORDER BY id ASC', ['id' => $this->Request()->getParam('id')]);\n $this->View()->mails = $mails;\n }", "public function emails()\n {\n return $this->emails;\n }", "public function findAll() {\n $sql = \"select * from user\";\n $result = $this->getDb()->fetchAll($sql);\n\n // Convert query result to an array of domain objects\n $entities = array();\n foreach ($result as $row) {\n $id = $row['user_email'];\n $entities[$id] = $this->buildDomainObject($row);\n }\n return $entities;\n }", "public function getAllUnreadEmailsSenders()\n {\n $messages = collect(LaravelGmail::message()->unread()->preload()->all());\n $fromList = [];\n\n $messages->each(function ($message) use (&$fromList) {\n $fromList[] = $message->getFrom();\n });\n\n // TODO: can be optimized\n return $this->getUnreadEmailsList($fromList);\n }", "public function all()\n {\n return Guests::all();\n }", "public function getContactAllEmail()\n\t{\n\t\t$emails = 'nothing';\n\n\t\tif( $this->token != '' )\n\t\t{\n\t\t\t$url = $this->url . \"/Contacts/filter\";\n\t\t\t$filter_arguments = array(\n\t\t\t\t\"offset\" => 0,\n\t\t\t\t\"fields\" => \"id,portal_name\",\n\t\t\t);\n\n\t\t\t$response = self::call($url, $this->token, 'GET',$filter_arguments);\n\n\t\t\t$email_records = $response->records;\n\n\t\t\tforeach($email_records as $record)\n\t\t\t{\n\t\t\t\t$emails[] = $record->portal_name;\n\t\t\t}\n\t\t}\n\n\t\treturn $emails;\n\t}", "public function getMailsById($ids)\n {\n return $this->model->getMailsById($ids);\n }", "public function getAllmailAddresses(){\n\t\t$data=[];\n\t\t$this->load->model('SAR/PanelDetails');\n\t\t$data['Members']=$this->load->PanelDetails->getAllEmailAddresses();\n\t\t$this->load->view('includes/header');\n\t\t$this->load->view('users/SAR/setDates',$data);\n\t\t$this->load->view('includes/footer');\n\t}", "public function getAllEmail()\n {\n $query = $this->db->select('first_name, last_name, email')\n ->get('user');\n return $query->result_object();\n }", "public function getAllEmailAddresses() {\n $saveCurrentFolder = $this->folder;\n $emails = array();\n foreach($this->getFolders() as $folder) {\n $this->selectFolder($folder);\n foreach($this->getMessages(false) as $message) {\n $emails[] = $message['from'];\n $emails = array_merge($emails, $message['to']);\n if (isset($message['cc'])) {\n $emails = array_merge($emails, $message['cc']);\n }\n }\n }\n $this->selectFolder($saveCurrentFolder);\n return array_unique($emails);\n }", "public static function getAll()\n {\n $db = new DatabaseManager();\n $connection = $db->getDbh();\n\n $sql = 'SELECT * FROM messages';\n $statement = $connection->prepare($sql);\n $statement->setFetchMode(\\PDO::FETCH_CLASS, __CLASS__);\n $statement->execute();\n\n $objects = $statement->fetchAll();\n return $objects;\n }", "public function getAll()\n {\n\n $rows = $this->fetchAll();\n\n if ($rows === false) {\n throw new \\Exception('No news letter entries found');\n }\n\n $entities = array();\n foreach ($rows as $row) {\n $entities[] = new NewsletterEntryEntity($row);\n }\n return $entities;\n\n }", "public function newsletterList()\n {\n return $this->ozioma->newsletter->list();\n }", "public function listaFaturamentoEmails()\n {\n return view('faturamento.listarEmailsFaturamento');\n }", "public function actionIndex()\n {\n $searchModel = new EmailSearch();\n $dataProvider = $searchModel->search(Yii::$app->request->queryParams);\n\n return $this->render('index', [\n 'searchModel' => $searchModel,\n 'dataProvider' => $dataProvider,\n ]);\n }", "public function index()\n {\n // Busco todos los mails\n $mails = Mail::all();\n \n // Retorno vista\n return view('panel.mails.index', compact('mails'));\n }", "public function getAllIBCEmails() {\n\t\t$dao = $this->getDao(new IBCEmailGen());\n $whereClauseGroup = new WhereClauseGroup(\n\t\t\tarray(\n\t\t\t\tnew WhereClause('module','=', IBCEmailGen::$MODULE_NAME)\n\t\t\t)\n );\n $responses = $dao->getAllWhere($whereClauseGroup);\n return $responses;\n\t}", "public function deleteAllEmails(): void\n {\n try {\n $this->mailhog->request('DELETE', '/api/v1/messages');\n } catch (Exception $e) {\n $this->fail('Exception: ' . $e->getMessage());\n }\n }", "public function show_mails() {\n\t\t\tforeach($this->$mails as $key => $value) {\n\t\t\t\techo <<<_END\n\t\t\t\t<div>\n\t\t\t\t\t<p>Date: $key</p>\n\t\t\t\t\t<p>Name: $value[0]</p>\n\t\t\t\t\t<p>Subject: $value[1]</p>\n\t\t\t\t\t<p>Message: $value[2]</p>\n\t\t\t\t</div>\n_END;\n\t\t\t}\n\t\t}", "public function emails()\n {\n return $this->hasManyThrough(Contact::class, Profile::class)\n ->select([DB::raw('IFNULL(prefix, \"Email\") AS type'), 'value AS url', 'is_primary'])\n ->where('type', 'email');\n }", "public function getEmails()\n {\n if (!isset($this->options['keep'])) {\n throw new BadMethodCallException(\"This function only works with the `keep` option\");\n }\n \n return $this->emails;\n }", "public function listAll(){\n\n\t\t\t$result = array();\n\t\t\t$people = array();\n\n\t\t\t$structure = General::listStructure(EMAILGATEWAYS, '/email.[\\\\w-]+.php/', false, 'ASC', EMAILGATEWAYS);\n\n\t\t\tif(is_array($structure['filelist']) && !empty($structure['filelist'])){\n\t\t\t\tforeach($structure['filelist'] as $f){\n\t\t\t\t\t$f = str_replace(array('email.', '.php'), '', $f);\n\t\t\t\t\t$result[$f] = $this->about($f);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t$extensions = Symphony::ExtensionManager()->listInstalledHandles();\n\n\t\t\tif(is_array($extensions) && !empty($extensions)){\n\t\t\t\tforeach($extensions as $e){\n\n\t\t\t\t\tif(!is_dir(EXTENSIONS . \"/$e/email-gateways\")) continue;\n\n\t\t\t\t\t$tmp = General::listStructure(EXTENSIONS . \"/$e/email-gateways\", '/email.[\\\\w-]+.php/', false, 'ASC', EXTENSIONS . \"/$e/email-gateways\");\n\n\t\t\t\t\tif(is_array($tmp['filelist']) && !empty($tmp['filelist'])){\n\t\t\t\t\t\tforeach($tmp['filelist'] as $f){\n\t\t\t\t\t\t\t$f = preg_replace(array('/^email./i', '/.php$/i'), '', $f);\n\t\t\t\t\t\t\t$result[$f] = $this->about($f);\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\tksort($result);\n\t\t\treturn $result;\n\t\t}", "public function all()\n\t{\n\t\treturn $this->contact->currentUser()->orderBy('lastName', 'asc')->orderBy('email', 'asc')->paginate( $this->perPage );\n\t}", "private function show_all_mail(){\n $this->get_all_mail();\n $counter =1;\n while ($this->mails[$counter][\"date\"]!=\"\"){\n echo \"<hr/>\";\n echo \"date: \".$this->mails[$counter][\"date\"][\"raw\"].\"<br/>\";\n echo \"year: \".$this->mails[$counter][\"date\"][\"year\"].\"<br/>\";\n echo \"month: \".$this->mails[$counter][\"date\"][\"month\"].\"<br/>\";\n echo \"day: \".$this->mails[$counter][\"date\"][\"day\"].\"<br/>\";\n echo \"hour: \".$this->mails[$counter][\"date\"][\"hour\"].\"<br/>\";\n echo \"minute: \".$this->mails[$counter][\"date\"][\"minute\"].\"<br/>\";\n echo \"subject: \".$this->mails[$counter][\"subject\"].\"<br/>\";\n echo \"mailbox: \".$this->mails[$counter][\"mailbox\"].\"<br/>\";\n echo \"host: \".$this->mails[$counter][\"host\"].\"<br/>\";\n echo \"text: \".$this->mails[$counter][\"text\"].\"<br/>\";\n $pic = 2;\n while ($this->mails[$counter][\"image\"][$pic][\"data\"]!=\"\"){\n $pic--;\n echo \"Bild Nr.\".$pic.\"<br/>\";\n $pic++;\n echo \"Bild Name: <a href=\\\"pics/\".$this->mails[$counter][\"image\"][$pic][\"name\"].\"\\\">\".$this->mails[$counter][\"image\"][$pic][\"name\"].\"</a><br/>\";\n //$this->email_base64_to_file($counter, $pic);\n //echo \"image \".$pic.\": \".$this->mails[$counter][\"image\"][$pic][\"data\"].\"<br/>\";\n $pic++;\n } \n $counter++; \n }\n }", "function clearEmails() {\n\t\treturn $this->mailer->clearEmails();\n\t}", "function clearEmails() {\n\t\treturn $this->mailer->clearEmails();\n\t}", "private function disposableEmailList()\n {\n return array(\n '[email protected]',\n '[email protected]',\n '[email protected]',\n '[email protected]',\n '[email protected]',\n );\n }", "public function EEList() {\n return $this->sendRequest('domain/list');\n }", "public function index()\n {\n\n $group = EmailGroup::paginate(20);\n return view('admin.email-marketing.Group.index')->with(['items' => $group]);\n }", "public function all(){\r\n\treturn $this->getRepository()->findAll();\r\n }", "public static function getMails( $groups )\n {\n $mailToFetch = array();\n $gid = Group::getUID();\n\n foreach ( $groups as $v ) {\n $mailToFetch[ $gid . \"_$v\" ] = $gid . \"_$v\";\n }\n\n $mails = Tolist::findMany( $mailToFetch, array(\n 'to_id',\n 'email'\n ) )->toArray();\n\n return $mails;\n }", "public function index()\n {\n $mail = Mails::get();\n\n return view('admin.mails.index', compact('mail'));\n }", "private function emailList()\n {\n return array(\n '[email protected]',\n '[email protected]',\n '[email protected]',\n );\n }", "private function getMails()\n {\n $data = array();\n /**@var $mail Enlight_Components_Mail */\n foreach ($this->mails as $mail) {\n $data[] = array(\n 'information' => array(\n 'From' => $mail->getFrom(),\n 'From name' => $mail->getFromName(),\n 'Default from' => $mail->getDefaultFrom(),\n 'Recipients' => $mail->getRecipients(),\n 'Subject' => $mail->getSubject(),\n 'Subject - plain' => $mail->getPlainSubject(),\n 'To' => $mail->getTo(),\n 'Charset' => $mail->getCharset(),\n 'Date' => $mail->getDate(),\n 'Html body' => $mail->getBodyHtml(),\n 'Text body' => $mail->getBodyText(),\n 'Default reply to' => $mail->getDefaultReplyTo(),\n 'Header encoding' => $mail->getHeaderEncoding(),\n 'Message ID' => $mail->getMessageId(),\n 'Mime' => $mail->getMime(),\n 'Mime boundary' => $mail->getMimeBoundary(),\n 'Part count' => $mail->getPartCount(),\n 'Parts' => $mail->getParts(),\n 'Type' => $mail->getType(),\n ),\n 'content' => $mail->getPlainBody()\n );\n }\n\n return $data;\n }", "public function get_emails() {\n\n\t\t$emails = array();\n\n\t\tforeach ( $this->settings['recipients'] as $item ) {\n\t\t\t$emails[] = $item['value'];\n\t\t}\n\n\t\treturn $emails;\n\t}", "public function get_mailsbygroup($gid = 0, $really_all = false, $only_first = false)\n {\n if (!$gid) {\n return array();\n }\n $return = array();\n $query = 'SELECT if(a.email1, a.email1, a.email2) email FROM '.$this->Tbl['adb_address'].' a, '.$this->Tbl['adb_adr_group'].' ag'\n .' WHERE ag.gid='.intval($gid).' AND ag.aid=a.aid AND (a.email1 != \"\" OR a.email2 != \"\")';\n $qid = $this->query($query);\n while (list ($mail) = $this->fetchrow($qid)) {\n $return[] = $mail;\n }\n return $return;\n }", "public function emails()\n {\n return $this->hasMany(PartenaireEmail::class);\n }", "public function c_getListOtsOtPadreEmail() {\r\n $otPadreList = $this->Dao_ot_padre_model->getListOtsOtPadreEmail();\r\n echo json_encode($otPadreList);\r\n }", "public function getAllEmailAddresses(){\n\t\t$Members=[];\n\n\t\t$this->load->database();\n\t\t$this->db->select(\"EMAIL\");\n\t\t$this->db->select(\"FNAME\");\n\t\t$this->db->select(\"LNAME\");\n\t\t$this->db->from(\"interview_panel\");\n\n\t\t$query=$this->db->get();\n\n\t\tforeach ($query->result() as $row) {\n\t\t\t# code...\n\t\t\t$Member=new PanelDetails();\n\t\t\t$Member->setEmail($row->EMAIL);\n\t\t\t$Member->setFname($row->FNAME);\n\t\t\t$Member->setLname($row->LNAME);\n\t\t\tarray_push($Members, $Member);\n\t\t}\n\t\treturn $Members;\n\n\t}", "protected function findEmailsForSending($group, $limit = 0, $offset = 100)\n {\n\n DB::reconnect('mysql');\n $pdo = DB::connection()->getPdo();\n $pdo->setAttribute(PDO::ATTR_EMULATE_PREPARES, true);\n\n $emails = GroupEmailModel::where('status', '=', 'pending-sending')\n ->where('group_email_id', '=', $group->group_email_id)\n ->take($limit)\n ->skip($offset)\n ->get();\n\n DB::disconnect('mysql');\n return $emails;\n\n }", "public function indexAction()\n {\n return new ViewModel(array(\n 'records' => $this->emailsService->getCurrentEmails(),\n ));\n }", "public static function getEmails($type, $entry, $update=true, $all=false) {\n $emails = [];\n switch($type) {\n case self::T_USER:\n $user = UserFinder::getById($entry);\n if(!is_null($user)) {\n $emails[] = $user['email'];\n }\n break;\n case self::T_GROUP:\n $group = GroupFinder::getById($entry);\n if(!is_null($group)) {\n $group_emails = $group->getEmails($update, $all);\n // Need to update the group state.\n if($update) {\n $group->store();\n }\n $emails = array_merge($emails, $group_emails);\n }\n break;\n }\n $cfg = new DBConfig();\n if(!count($emails)) {\n $emails[] = $cfg['default_email'];\n }\n\n list($emails) = Hook::call('assignee.emails', [$emails]);\n\n return $emails;\n }", "public function getEmails() {\n\t\treturn empty( $this->container['emails'] ) ? null : $this->container['emails'];\n\t}", "public function viewAllMail($id)\n {\n\n return view('mail.viewallmail',['id' => $id]);\n }", "public function findAll() {\n\t\treturn dibi::dataSource(\"SELECT * FROM [view_message]\");\n\t}", "public function getMailingList() {\n\t\tApp::uses('MailingList', 'Model');\n\t\treturn new MailingList();\n\t}", "public function emailadressen() {\r\n\t\t$objDBMaillijstEmailAdres = new clsDBMaillijstEmailAdres();\r\n\t\tforeach($objDBMaillijstEmailAdres->selectAll($this->getm_iBedrijfID(), $this->getm_iMaillijstID()) as $rs){\r\n\t\t\tarray_push($this->m_colEmailAdressen,new clsEmailAdres($rs['BedrijfID'],$rs['EmailAdresID'])); // voeg object MaillijstEmailAdres toe aan emailadressen collection\r\n\t\t};\r\n\t \treturn $this->m_colEmailAdressen;\r\n\t}", "public function listPersons()\n {\n $pgw = $this->di['personGateway'];\n return $pgw->fetchAll();\n }", "public function action_sendmails(){\r\n\t\techo 'Send mails from queue'.\"\\n\";\n\t\t$mails = Model_Mail::getQueuedToSend();\n\t\t$swiftMail = email::connect();\r\n\t\t\t\t\n\t\tforeach ($mails as $mail)\n\t\t{\n\t\t\t$message = new Swift_Message();\n\t\t\t$message->setFrom(array($mail->from));\n\t\t\t$message->setBody($mail->content,'text/html');\n\t\t\t$message->setTo(array($mail->to));\n\t\t\t$message->setSubject($mail->title);\n\t\t\t\n\t\t\t$result = $swiftMail->send($message);\n\t\t\tif ($result)\n\t\t\t{\n\t\t\t\tModel_Mail::setSent($mail->id);\n\t\t\t}\n\t\t\t\n\t\t}\n\t\techo 'Sended '.count($mails).' e-mail'.\"\\n\";\r\n\t}", "public function getAll()\n {\n $messageObject = new Message();\n $messagesObjects = $messageObject->getAllMessages();\n\n foreach ($messagesObjects as $messagesObject )\n {\n echo $messagesObject->getDate();\n echo \" \".$messagesObject->getName().\"<br>\\n\";\n echo $messagesObject->getMessage().\"<br>\\n<br><hr/>\";\n }\n }", "public function index()\n {\n $mailers = Mailer::orderBy('send_date', 'desc')->get();\n\n return view('mailers.index', compact('mailers'));\n }", "public function get()\n {\n if (!$this->connect()) {\n throw new Exception('ERROR: Could not connect.');\n }\n\n if ($this->id) {\n $this->emails = array();\n\n $this->emails[] = $this->getEmail($this->id);\n\n return $this->emails;\n }\n\n $this->emails = array();\n\n $this->email_index = imap_search(\n $this->stream(),\n $this->modes(),\n false,\n $this->encoding\n );\n\n if (!$this->limit) {\n $this->limit = isset($this->email_index) && is_array($this->email_index) ? count($this->email_index) : 0;\n }\n\n if ($this->email_index) {\n if ($this->order == 'DESC') {\n rsort($this->email_index);\n } else {\n sort($this->email_index);\n }\n\n if ($this->limit || ($this->limit && $this->offset)) {\n $this->email_index = array_slice(\n $this->email_index,\n $this->offset,\n $this->limit\n );\n }\n\n $this->emails = array();\n\n foreach ($this->email_index as $id) {\n $this->emails[] = $this->getEmailByMessageSequence($id);\n\n if ($this->mark_as_read) {\n $this->markAsRead($id);\n }\n }\n }\n\n return $this->emails;\n }", "public function deleteAllEmails()\n {\n $messages = $this->inbox->getMessages();\n foreach ($messages as $message) {\n $message->delete();\n }\n $this->imapConnection->expunge();\n $this->imapConnection->getResource()->clearLastMailboxUsedCache();\n }", "public function emailAddresses()\n {\n return $this->hasMany(OfficeEmailAddress::class);\n }", "public function emailAddresses()\n {\n return $this->hasMany(OfficeEmailAddress::class);\n }", "function retrieve_all_guest_lists(){\n\t\t\n\t\t$this->CI->load->model('model_guest_lists', 'guest_lists', true);\n\t\treturn $this->CI->guest_lists->retrieve_day_guest_lists($this->promoter->up_id, false, $this->promoter->t_fan_page_id);\n\t\t\n\t}", "function retrieveAll ()\n {\n\n $q = Doctrine_Query::create ()\n ->from ( 'MtnPriceListComponent mplc' )\n ->innerJoin ( 'mplc.MtnComponent mc' )\n ->innerJoin ( 'mplc.MtnPriceList mpl' );\n\n\n return $q->execute ();\n }", "public function indexAction()\n {\n $em = $this->getDoctrine()->getManager();\n\n $contactGroups = $em->getRepository('AppBundle:ContactGroup')->findAll();\n\n return $this->render('contactgroup/index.html.twig', array(\n 'contactGroups' => $contactGroups,\n ));\n }", "public function getAllRecipientAddresses()\n {\n }", "public function index() {\n\t\t$this->{$this->modelClass}->recursive = 0;\n\n\t\t$this->set('attachments', $this->{$this->modelClass}->find('all', array(\n\t\t\t'conditions' => array(\n\t\t\t\t'foreign_key' => $this->modelId,\n\t\t\t\t'group' => $this->modelClass,\n\t\t\t\t'model' => $this->model\n\t\t\t)\n\t\t)));\n\t\t$this->set('limit', $this->_getLimit());\n\t}", "function getAll() {\r\n\t\t$cond = new Criteria();\r\n\t\t$alls = NewsletterSchedulePeer::doSelect($cond);\r\n\t\treturn $alls;\r\n }", "function listaAll() {\n require ROOT . \"config/bootstrap.php\";\n return $em->getRepository('models\\Equipamentos')->findby(array(), array(\"id\" => \"DESC\"));\n $em->flush();\n }", "public function getAll()\r\n {\r\n // Query the database and return an array of contacts\r\n return $this->getEntityManager()\r\n ->createQuery(\r\n 'SELECT c FROM AppBundle:Contact c ORDER BY c.firstName, c.lastName ASC'\r\n )\r\n ->getResult();\r\n }", "public function listAll(){\n $sql = \"SELECT id,name,email FROM users\";\n $stmt = $this->cnx->prepare($sql);\n $result = $stmt->execute();\n \n $resultados = array();\n\n while($rs = $stmt->fetch(PDO::FETCH_ASSOC)) {\n $resultados[] = $rs;\n }\n \n if(empty($resultados)){\n throw new Exception(\"Nenhum usuario encontrado!\");\n }\n \n return $resultados;\n }", "public function actionIndex()\n {\n\n \t$model = new MailTemplate();\n \t$dataProvider = new ActiveDataProvider([\n 'query' => MailTemplate::find()\n ]);\n return $this->render('index', [\n 'dataProvider' => $dataProvider,\n 'model' => $model,\n ]);\n }", "public function getAllVoicemail()\n {\n return $this->_getAndParse($this->_serverPath['voicemail'], null);\n }", "public function all()\n {\n return DogsGallery::where(\"found_by\", null)\n ->get()\n ->map->format();\n }" ]
[ "0.6917383", "0.6896523", "0.64885604", "0.61055005", "0.6093053", "0.59815973", "0.596835", "0.5936755", "0.59056824", "0.5881021", "0.5873488", "0.5848727", "0.57859844", "0.5781284", "0.5718998", "0.57125205", "0.5697226", "0.5671937", "0.56091183", "0.5585177", "0.5566545", "0.5565331", "0.5565331", "0.55589736", "0.55324763", "0.55250096", "0.5520227", "0.5514328", "0.5488724", "0.5487187", "0.5450652", "0.54116225", "0.5408126", "0.5406787", "0.5365842", "0.5351658", "0.5338913", "0.5334963", "0.5320167", "0.5305742", "0.5303138", "0.53005224", "0.5296518", "0.52924055", "0.52809286", "0.5264077", "0.5248622", "0.523238", "0.52321744", "0.52166086", "0.52110255", "0.5194494", "0.5186689", "0.5135857", "0.51285803", "0.5099242", "0.5090458", "0.5086543", "0.5086543", "0.50829375", "0.5081611", "0.5062922", "0.50572735", "0.5050022", "0.5046923", "0.5045018", "0.50420535", "0.50393856", "0.50303805", "0.502889", "0.5027254", "0.50247145", "0.5022505", "0.50186884", "0.5004741", "0.498974", "0.4987674", "0.49818778", "0.49815592", "0.49745944", "0.49369296", "0.4926778", "0.4919659", "0.49143493", "0.4908615", "0.49064487", "0.48868576", "0.48868576", "0.48795348", "0.48759562", "0.4874228", "0.4870043", "0.4866301", "0.48564327", "0.4854475", "0.48372096", "0.4832257", "0.48256606", "0.48171014", "0.48136556" ]
0.72491175
0
Creates a new GdpMails entity.
public function createAction(Request $request) { $entity = new GdpMails(); $form = $this->createCreateForm($entity); $form->handleRequest($request); if ($form->isValid()) { $em = $this->getDoctrine()->getManager(); $em->persist($entity); $em->flush(); return $this->redirect($this->generateUrl('gdpmails_show', array('id' => $entity->getId()))); } return array( 'entity' => $entity, 'form' => $form->createView(), ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function createCreateForm(GdpMails $entity)\r\n {\r\n $form = $this->createForm(new GdpMailsType(), $entity, array(\r\n 'action' => $this->generateUrl('gdpmails_create'),\r\n 'method' => 'POST',\r\n ));\r\n\r\n $form->add('submit', 'submit', array('label' => 'Create'));\r\n\r\n return $form;\r\n }", "public function newAction()\r\n {\r\n $entity = new GdpMails();\r\n $form = $this->createCreateForm($entity);\r\n\r\n return array(\r\n 'entity' => $entity,\r\n 'form' => $form->createView(),\r\n );\r\n }", "public function create()\n {\n\n $email_id = date('Y-m-d_H-i-s') . '.' . $this->template;\n $email_data = [\n 'title' => $this->template, \n 'data' => serialize($this->data), \n 'email' => $this->to,\n 'id' => $email_id,\n 'date' => date('Y-m-d H:i:s')\n ];\n\n Storage::putYAML('statamify/emails/' . $email_id, $email_data);\n\n }", "public function createAction()\n {\n $record = new \\SmartAccounts\\Entity\\Emails();\n\n $form = $this->emailsService->getCreateEmailsForm();\n\n if ($this->request->isPost()) {\n $form->setData($this->request->getPost());\n if ($form->isValid()) {\n \t$data = $form->getData();\n \t\n \t$record->setDisabled($data->getDisabled());\n \t$record->setEmail($data->getEmail());\n \t$record->setCustomerId($data->getCustomerId());\n \t\n $this->emailsService->createEmails($record, $this->identity());\n\n $this->flashMessenger()->setNamespace('success')\n ->addMessage('You have successfullly created a new Emails.');\n\n return $this->redirect()->toRoute('rocket-admin/accounts/emails');\n } else {\n $this->flashMessenger()->setNamespace('error')\n ->addMessage('There was an error trying to create a new Emails.');\n }\n }\n\n $uri = $this->getRequest()->getUri();\n $base = sprintf('%s://%s', $uri->getScheme(), $uri->getHost());\n $this->viewHelperManager->get('HeadScript')\n ->appendFile($base . '/assets/rocket-admin/ckeditor/ckeditor.js');\n $this->viewHelperManager->get('InlineScript')\n ->appendScript(\"$(function () {CKEDITOR.replace('emails-fieldset[html]');});\", 'text/javascript');\n\n return new ViewModel(array(\n 'record' => $record,\n 'form' => $form,\n ));\n }", "public function create($email);", "public function create()\n {\n $this->sesClient->verifyEmailIdentity(\n [\n 'EmailAddress' => $this->identity->getIdentity(),\n ]\n );\n }", "public function CreateEmails($Payload){\n\t\t\tif(empty($Payload['id'])){\n\t\t\t\tthrow new Exception('id can not be empty.');\n\t\t\t}\n\t\t\tif(empty($Payload['Body'])){\n\t\t\t\tthrow new Exception('body can not be empty.');\n\t\t\t}\n\t\t\t$Payload['Verb']='POST';\n\t\t\t$Payload['URL']='/V1/creditmemo/'.$Payload['id'].'/emails';\n\t\t\t$Payload['Body']=json_encode($Payload['Body']);\n\t\t\treturn $this->Execute($Payload);\n\t\t}", "function create($payload){\n if ($payload->name() != 'user_sent_gift_to_user') return null;\n \n // build an entity to store the action data\n $entity = new ElggObject;\n $entity->subtype = \"feeligo_gift\";\n $entity->gift_name = $payload->gift()->name;\n $entity->sender_guid = $payload->adapter_sender()->guid();\n $entity->recipient_guid = $payload->adapter_recipient()->guid();\n $entity->gift_message = $payload->gift()->message;\n $entity->gift_id = $payload->gift()->id;\n $entity->image_url = $payload->medium_url('medium', '60x72');\n $entity->access_id = 2; // 0: private, 1: logged in, 2: public\n $entity->localized_raw_body = $payload->localized_raw_body(get_current_language());\n // save the entity\n $entity->save();\n\n //add to river\n $r = add_to_river('river/gifts_create', 'create', $entity->sender_guid , $entity->getGUID());\n\n // return an adapter with the ID of the newly added entity to confirm successful creation\n return new Feeligo_Elgg18_Model_Adapter_Action($entity->getGUID());\n }", "public function createEntity();", "public function create()\n {\n return (new EmailTemplate())->loadDefaultValues();\n }", "public function create($entity);", "public function createMailMessage();", "public function create(Entity $entity);", "function create($entity);", "public function create()\n {\n //\n $this->message->sendMessage();\n }", "public function createEmail($subject, $body, $recipients, $attachements = []): Mail\n {\n return $this->mailBuilder->createEmailEntity($subject, $body, $recipients, $attachements);\n }", "public function create(array $mailinfo)\n {\n $this->model->setClientID($mailinfo['clientid']);\n $this->model->setMailSubject($mailinfo['title']);\n $this->model->setMailSender($mailinfo['sender']);\n $this->model->setMailDescription($mailinfo['description']);\n $this->model->setMailName($mailinfo['name']);\n $this->model->setMailEmail($mailinfo['email']);\n $this->model->setToken($mailinfo['token']);\n if (isset($mailinfo['imgname'])) {\n $this->model->setFakeImage($mailinfo['imgname']);\n }\n $this->model->setImage($mailinfo['images']);\n $this->model->setDatum($mailinfo['datum']);\n $this->model->setVerified($mailinfo['verified']);\n\n if (isset($mailinfo['comment']) && $mailinfo['comment'] !== null) {\n $this->model->setMailComment($mailinfo['comment']);\n $this->model->setCommentGroup($mailinfo['commentgroep']);\n }\n\n if(isset($mailinfo['extracomment']) && $mailinfo['extracomment'] !== null){\n $this->model->setExtraComment($mailinfo['extracomment']);\n }\n\n if ($result = $this->model->create()) {\n return $result;\n }\n return false;\n }", "public function create() {\n\t\t$db = Database::getInstance();\n\t\t$stmt = $db->prepare(\"INSERT INTO users (id, mail, name, password, role, state) VALUES (?, ?, ?, ?, ?, ?)\");\n\t\t$stmt->execute(array($this->id, $this->mail, $this->name, $this->password, $this->role, $this->state));\n\t}", "public function create(Mail $mail)\n {\n // dd('sdfs');\n if (!User::hasDispostion()) {\n abort(404);\n }\n }", "public function create() {\n return view('mails.create');\n }", "public function create()\n {\n $invoice = new InvoiceEntity();\n $invoice->setNumber('019101910191091')\n ->setValue(100.90)\n ->setUrl('http://domain.com')\n ->setIssuanceDate('2017-09-15')\n ->setKey('POL9898AS');\n\n $tracking = new TrackingEntity();\n $tracking->setOrderId('00001010101AA')\n ->setStatus('in_route')\n ->setCode('BR800OPR5')\n ->setInvoice($invoice);\n\n $this->dm->persist($tracking);\n $this->dm->flush();\n }", "public function createAction(Request $request)\n {\n $entity = new Push();\n $form = $this->createCreateForm($entity);\n $form->handleRequest($request);\n\n if ($form->isValid()) {\n $em = $this->getDoctrine()->getManager();\n\n $user = $this->container->get('security.context')->getToken()->getUser();\n $entity->setCreatorId($user->getId());\n\n $em->persist($entity);\n $em->flush();\n\n return $this->redirect($this->generateUrl('push_show', array('id' => $entity->getId())));\n }\n\n return array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n );\n }", "public function create()\n {\n $contacts = Contact ::all();\n return view('emails.create', compact('contacts'));\n }", "public function create(Request $request)\n {\n EmailTemplate::create($request->all());\n return redirect('email/template/view');\n }", "public static function createNewEmail($args) {\n $email = new Email;\n $email->from_email = empty($args['fromEmail']) ? config('mail.from.address') : $args['fromEmail'];\n $email->from_name = empty($args['fromName']) ? config('mail.from.name') : $args['fromName'];\n $email->reply_to_email = empty($args['replyToEmail']) ? config('mail.from.address') : $args['replyToEmail'];\n $email->reply_to_name = empty($args['replyToName']) ? config('mail.from.name') : $args['replyToName'];\n $email->to_email = empty($args['toEmail']) ? config('mail.from.name') : $args['toEmail'];\n $email->to_name = empty($args['toName']) ? config('mail.from.name') : $args['toName'];\n $email->subject = $args['subject'];\n $email->data = empty($args['data']) ? null : json_encode($args['data']);\n $email->email_type = $args['emailType'];\n $email->receiver_id = isset($args['receiverId']) ? $args['receiverId'] : null;\n $email->sender_id = isset($args['senderId']) ? $args['senderId'] : null;\n $email->site_id = isset($args['siteId']) ? $args['siteId'] : null;\n $email->parent_email_id = isset($args['parentEmailId']) ? $args['parentEmailId'] : null;\n $email->save();\n return $email;\n }", "public function create()\n {\n //\n }", "public function create()\n {\n //\n }", "public function create()\n {\n //\n }", "public function create()\n {\n //\n }", "public function create() {\n //\n }", "public function store(Request $request) {\n\n// echo json_encode($request->input());\n\n $this->validate($request, [\n 'mail' => 'required|email|max:255',\n// 'ecat_id' => 'required|max:255|unique:tbl_emails',\n ], [\n 'mail.email' => 'The email must be a valid email address.',\n// 'ecat_id.unique' => 'Given department already exists !',\n ]);\n\n $formdata = array(\n// 'ecat_id' => $request->input('ecat_id'),\n 'mail' => $request->input('mail'),\n );\n $types = Tbl_emails::create($formdata);\n if ($types->ecat_id > 0) {\n return redirect('admin/emails')->with('success', 'Created Successfully...!');\n } else {\n return redirect('admin/emails')->with('error', 'Error occurred. Please try again...!');\n }\n }", "public function createAction()\r\n {\r\n $user = new User($_POST);\r\n\r\n if ($user->save()) {\r\n\t\t\t\r\n\t\t\tsession_regenerate_id(true);\r\n\r\n\t\t\t$_SESSION['user_id'] = User::getIdSavedUser($_POST['email']);\r\n\t\t\t\r\n\t\t\tIncome::saveDefaultIncomes($_SESSION['user_id']);\r\n\t\t\tExpense::saveDefaultExpenses($_SESSION['user_id']);\r\n\t\t\tPaymentMethod::saveDefaultPaymentMethods($_SESSION['user_id']);\r\n\t\t\t\r\n\t\t\t$user->sendActivationEmail();\r\n\r\n $this->redirect('/signup/success');\r\n\r\n } else {\r\n\r\n View::renderTemplate('Signup/new.html', [\r\n 'user' => $user\r\n ]);\r\n\r\n }\r\n }", "public function createWith($name, $email, $avatar, $relations, $email_verified = false, $blocked = false);", "public function createAction()\n {\n $entity = new Meeting();\n $request = $this->getRequest();\n $form = $this->createForm(new MeetingType(), $entity);\n $form->bindRequest($request);\n\n if ($form->isValid()) {\n $em = $this->getDoctrine()->getEntityManager();\n $em->persist($entity);\n $em->flush();\n\n return $this->redirect($this->generateUrl('meeting_show', array('id' => $entity->getId()))); \n }\n\n return array(\n 'entity' => $entity,\n 'form' => $form->createView()\n );\n }", "public function create()\n {\n //\n }", "public function createAction(Request $request)\n {\n $mailtemplate = new MailTemplate();\n $form = $this->createForm(new MailTemplateType(), $mailtemplate);\n if ($form->handleRequest($request)->isValid()) {\n $em = $this->getDoctrine()->getManager();\n\n $em->persist($mailtemplate);\n $em->flush();\n\n return $this->redirect($this->generateUrl('mailtemplate_show', array('id' => $mailtemplate->getId())));\n }\n\n return array(\n 'mailtemplate' => $mailtemplate,\n 'form' => $form->createView(),\n );\n }", "public function createAction(Request $request)\n {\n $entity = new Newsletter();\n $form = $this->createForm(new NewsletterType(), $entity);\n $form->bind($request);\n\n if ($form->isValid()) {\n $em = $this->getDoctrine()->getManager();\n $em->persist($entity);\n $em->flush();\n\n return $this->redirect($this->generateUrl('newsletter_show', array('id' => $entity->getId())));\n }\n\n return $this->render('ClassCentralSiteBundle:Newsletter:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "protected function _createEntity()\n\t\t{\n\t\t\t// Form template name.\n\t\t\t$separator = '__';\n\t\t\t$template = $type = $this->_createForm->type->getValue();\n\t\t\t$subject = $this->_createForm->subject->getValue();\n\t\t\tif ( $platformId = $this->_createForm->platform_id->getValue() ) {\n\t\t\t\t$platform = Table::_( 'platforms' )->get( $platformId );\n\t\t\t\t$template = $platform->name . $separator . $template;\n\t\t\t}\n\t\t\tif ( $pluginId = $this->_createForm->plugin_id->getValue() ) {\n\t\t\t\t$filter = new D_Filter_PluginDirectory();\n\t\t\t\t$plugin = Table::_( 'plugins' )->get( $pluginId );\n\t\t\t\t$template = str_replace( '-', '_', $filter->filter( $plugin->name ) ) . $separator . $template;\n\t\t\t}\n\t\t\t$template .= '.phtml';\n\t\t\t// Write a file.\n\t\t\t$directory = $this->_getTypeDirectory( $type );\n\t\t\tif ( !file_exists( $directory . $template ) ) {\n\t\t\t\tfile_put_contents(\n\t\t\t\t\t$directory . $template,\n\t\t\t\t\t$this->_createForm->content->getValue()\n\t\t\t\t);\n\t\t\t}\n\t\t\t// Save a subject.\n\t\t\t$settingId = Model::_( 'settings' )->setting( $template . '[email subject]' );\n\t\t\tModel::_( 'settings' )->string( $settingId, $subject );\n\t\t}", "public function create_a_record()\n {\n // Add a record\n factory(Email::class, 1)->create();\n\n $this->assertCount(1, Email::all());\n }", "public function make()\n {\n // calculate security hash to direct-on access\n $hash = Str::randomLatinNumeric(mt_rand(16, 64));\n\n // init new row and set row data\n $record = new FeedbackPost();\n $record->name = $this->name;\n $record->email = $this->email;\n $record->message = $this->message;\n $record->hash = $hash;\n if (App::$User->isAuth()) {\n $record->user_id = App::$User->identity()->getId();\n }\n\n $record->ip = App::$Request->getClientIp();\n // save row to db\n $record->save();\n\n // send notification to email\n $this->sendEmail($record);\n\n return $record;\n }", "public function create()\n {\n //TODO\n }", "public function create()\n {\n \n //\n }", "public function store(Request $request, MailerRepo $mailerService)\n {\n if(!$list = $mailerService->create($request->all())){\n return response('При создании страницы возникли ошибки', 500);\n }\n }", "public function postCreateMail()\n {\n if ($this->_activeMail->getData('recipient_email') == '') {\n $recipient_email = $this->cart->getData('email');\n $recipient_name = $this->cart->getCustomerFirstname(). ' ' .$this->cart->getCustomerLastname();\n $data = [\n 'recipient_email' => $recipient_email,\n 'recipient_name' => $recipient_name\n ];\n $this->_activeMail->addData($data)->save();\n }\n }", "public function actionCreate() {\n\t\t$model = new Notification();\n\t\t$model->created_by = Yii::$app->user->identity->id;\n\n\t\tif ($model->load(Yii::$app->request->post())) {\n\n\t\t\tif ($model->send_to != '') {\n\t\t\t\t$model->send_to = implode(',', $model['send_to']);\n\t\t\t}\n\t\t\t$model->sent_time = date('Y-m-d H:i:s');\n\t\t\t$model->save();\n\t\t\t/*if ($model->save()) {\n\t\t\t\t$send_to = explode(',', $model['send_to']);\n\t\t\t\tforeach ($send_to as $key => $value) {\n\t\t\t\t\tif ($value == 'all') {\n\t\t\t\t\t\t$userId = 'allUser';\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$user = User::find()->where(['id' => $value])->one();\n\t\t\t\t\t\t$userId = $user['phone'];\n\t\t\t\t\t}\n\t\t\t\t\tYii::$app->Utility->pushNotification($userId, $model['notification_name'], $model['content']);\n\t\t\t\t}\n\t\t\t}*/\n\t\t\tYii::$app->getSession()->setFlash('successStatus', 'Data saved successfully!');\n\n\t\t\treturn $this->redirect(['view', 'id' => $model->id]);\n\t\t}\n\n\t\treturn $this->render('create', [\n\t\t\t'model' => $model,\n\t\t]);\n\t}", "public function createAction()\n {\n $entity = new Dotation();\n $request = $this->getRequest();\n $form = $this->createForm(new DotationType(), $entity);\n $form->bindRequest($request);\n\n if ($form->isValid()) {\n $em = $this->getDoctrine()->getEntityManager();\n $em->persist($entity);\n $em->flush();\n\n\t\t\t\t\t\t$this->get('session')->setFlash('notice', 'Dotation a été créé avec succès');\n return $this->redirect($this->generateUrl('dotation_show', array('id' => $entity->getId())));\n \n }\n\n return array(\n 'entity' => $entity,\n 'form' => $form->createView()\n );\n }", "public static function create($email, array $options = [])\n {\n $options = array_merge([\n 'email' => $email,\n ], $options);\n\n return self::request('POST', 'promoters/create', $options);\n }", "public function createEntity($data = array());", "public static function factory($exceptions = TRUE)\n\t{\n\t\treturn new Email($exceptions);\n\t}", "public function create($name, $email, $avatar, $blocked = false);", "public function create()\n {\n }", "public function create()\n {\n }", "private function createEditForm(GdpMails $entity)\r\n {\r\n $form = $this->createForm(new GdpMailsType(), $entity, array(\r\n 'action' => $this->generateUrl('gdpmails_update', array('id' => $entity->getId())),\r\n 'method' => 'POST',\r\n ));\r\n\r\n $form->add('submit', 'submit', array('label' => 'Update'));\r\n\r\n return $form;\r\n }", "public function create() {\n //\n }", "public function create() {\n //\n }", "public function create() {\n //\n }", "public function create() {\n //\n }", "public function create() {\n //\n }", "public function create() {\n //\n }", "public function create() {\n //\n }", "public function create() {\n //\n }", "public function create() {\n //\n }", "public function create() {\n //\n }", "public function create() {\n //\n }", "public function create() {\n //\n }", "public function create() {\n //\n }", "public function create() {\n //\n }", "public function create() {\n //\n }", "public function create() {\n //\n }", "public function create() {\n //\n }", "public function create() {\n //\n }", "public function create() {\n //\n }", "public function create() {\n //\n }", "public function create() {\n //\n }", "public function create() {\n //\n }", "public function create() {\n //\n }", "public function create() {\n //\n }", "public function create() {\n //\n }", "public function create() {\n //\n }", "public function create() {\n //\n }", "public function create() {\n //\n }", "public function create() {\n //\n }", "public function create() {\n //\n }", "public function create() {\n //\n }", "public function create() {\n //\n }", "public function create() {\n //\n }", "public function create() {\n //\n }", "public function create() {\n //\n }", "public function create() {\n //\n }", "public function create() {\n //\n }", "public function create() {\n //\n }", "public function create() {\n //\n }", "public function create() {\n //\n }", "public function create() {\n //\n }", "public function create() {\n //\n }", "public function create() {\n //\n }", "public function create() {\n //\n }", "public function create() {\n //\n }", "public function create() {\n //\n }", "public function create() {\n //\n }" ]
[ "0.65327984", "0.63309795", "0.58390903", "0.58063227", "0.556461", "0.55068433", "0.543389", "0.5371196", "0.53418183", "0.53305686", "0.52689457", "0.52421206", "0.522109", "0.515451", "0.5147189", "0.51235914", "0.511381", "0.51007724", "0.507179", "0.5047809", "0.5020041", "0.5003777", "0.50028086", "0.5001896", "0.49837887", "0.49819508", "0.49819508", "0.49819508", "0.49819508", "0.4980382", "0.49723947", "0.49544358", "0.49491116", "0.49213597", "0.48991224", "0.48921403", "0.48825827", "0.48795682", "0.48788965", "0.48778278", "0.48739967", "0.48724657", "0.48718697", "0.48708868", "0.48683566", "0.48549467", "0.4849643", "0.48401776", "0.48383147", "0.48257184", "0.48249263", "0.48249263", "0.48226765", "0.4820358", "0.4820358", "0.4820358", "0.4820358", "0.4820358", "0.4820358", "0.4820358", "0.4820358", "0.4820358", "0.4820358", "0.4820358", "0.4820358", "0.4820358", "0.4820358", "0.4820358", "0.4820358", "0.4820358", "0.4820358", "0.4820358", "0.4820358", "0.4820358", "0.4820358", "0.4820358", "0.4820358", "0.4820358", "0.4820358", "0.4820358", "0.4820358", "0.4820358", "0.4820358", "0.4820358", "0.4820358", "0.4820358", "0.4820358", "0.4820358", "0.4820358", "0.4820358", "0.4820358", "0.4820358", "0.4820358", "0.4820358", "0.4820358", "0.4820358", "0.4820358", "0.4820358", "0.4820358", "0.4820358" ]
0.7016379
0
Creates a form to create a GdpMails entity.
private function createCreateForm(GdpMails $entity) { $form = $this->createForm(new GdpMailsType(), $entity, array( 'action' => $this->generateUrl('gdpmails_create'), 'method' => 'POST', )); $form->add('submit', 'submit', array('label' => 'Create')); return $form; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function newAction()\r\n {\r\n $entity = new GdpMails();\r\n $form = $this->createCreateForm($entity);\r\n\r\n return array(\r\n 'entity' => $entity,\r\n 'form' => $form->createView(),\r\n );\r\n }", "public function createAction(Request $request)\r\n {\r\n $entity = new GdpMails();\r\n $form = $this->createCreateForm($entity);\r\n $form->handleRequest($request);\r\n\r\n if ($form->isValid()) {\r\n $em = $this->getDoctrine()->getManager();\r\n $em->persist($entity);\r\n $em->flush();\r\n\r\n return $this->redirect($this->generateUrl('gdpmails_show', array('id' => $entity->getId())));\r\n }\r\n\r\n return array(\r\n 'entity' => $entity,\r\n 'form' => $form->createView(),\r\n );\r\n }", "private function createEditForm(GdpMails $entity)\r\n {\r\n $form = $this->createForm(new GdpMailsType(), $entity, array(\r\n 'action' => $this->generateUrl('gdpmails_update', array('id' => $entity->getId())),\r\n 'method' => 'POST',\r\n ));\r\n\r\n $form->add('submit', 'submit', array('label' => 'Update'));\r\n\r\n return $form;\r\n }", "public function create() {\n\n\t\treturn view('/mailer/createform');\n\n\t}", "private function createCreateForm(Grupos $entity)\n {\n $form = $this->createForm(new GruposType(), $entity, array(\n 'action' => $this->generateUrl('grupos_create'),\n 'method' => 'POST',\n ));\n\n $form->add('submit', 'submit', array('label' => 'Criar'));\n\n return $form;\n }", "public function createAction()\n {\n $record = new \\SmartAccounts\\Entity\\Emails();\n\n $form = $this->emailsService->getCreateEmailsForm();\n\n if ($this->request->isPost()) {\n $form->setData($this->request->getPost());\n if ($form->isValid()) {\n \t$data = $form->getData();\n \t\n \t$record->setDisabled($data->getDisabled());\n \t$record->setEmail($data->getEmail());\n \t$record->setCustomerId($data->getCustomerId());\n \t\n $this->emailsService->createEmails($record, $this->identity());\n\n $this->flashMessenger()->setNamespace('success')\n ->addMessage('You have successfullly created a new Emails.');\n\n return $this->redirect()->toRoute('rocket-admin/accounts/emails');\n } else {\n $this->flashMessenger()->setNamespace('error')\n ->addMessage('There was an error trying to create a new Emails.');\n }\n }\n\n $uri = $this->getRequest()->getUri();\n $base = sprintf('%s://%s', $uri->getScheme(), $uri->getHost());\n $this->viewHelperManager->get('HeadScript')\n ->appendFile($base . '/assets/rocket-admin/ckeditor/ckeditor.js');\n $this->viewHelperManager->get('InlineScript')\n ->appendScript(\"$(function () {CKEDITOR.replace('emails-fieldset[html]');});\", 'text/javascript');\n\n return new ViewModel(array(\n 'record' => $record,\n 'form' => $form,\n ));\n }", "private function createNotifyForm()\n {\n return $this->createFormBuilder(['emails' => implode(', ', $this->emails)])\n ->add('emails', TextareaType::class, ['label' => 'E-mails', 'attr' => ['placeholder' => 'E-mail Addresses...', 'required' => true]])\n ->getForm();\n }", "public function create()\n\t{\n\t\t$form = \\View::make('message.form');\n\t\t$form->project_id = \\Session::get('active_project');\n\t\t$form->action = array('action' => 'Toomdrix\\Pm\\MessageController@store', 'class'=>'form-signup');\n\t\treturn $form;\n\t}", "public function createForm();", "public function createForm();", "protected function createForm()\n {\n if (!$this->form) {\n $this->form = new \\Gems_Form(array('class' => 'form-horizontal', 'role' => 'form'));\n $this->mailElements->setForm($this->form);\n }\n return $this->form;\n }", "private function createCreateForm(Push $entity)\n {\n $form = $this->createForm(new PushType(), $entity, array(\n 'action' => $this->generateUrl('push_create'),\n 'method' => 'POST',\n 'attr' => array('id' => 'create-form')\n ));\n\n return $form;\n }", "public function create()\n {\n return view('panel.deliveries-management.deliveries.form-create');\n }", "private function createCreateForm(PosgradoLineas $entity)\n {\n $form = $this->createForm(new PosgradoLineasType(), $entity, array(\n 'action' => $this->generateUrl('posgradolineas_create'),\n 'method' => 'POST',\n ));\n\n $form->add('submit', 'submit', array('label' => 'Guardar'));\n\n return $form;\n }", "public function create() {\n return view('mails.create');\n }", "public function createForm()\n {\n }", "public function actionCreate() {\n\t\t$request = Yii::app()->request;\n $form = new PersonaForm(\"new\");\n if($request->isPostRequest) {\n $form->attributes = $request->getPost('PersonaForm');\n if($form->validate()) {\n PersonaManager::savePersona($form);\n Yii::app()->user->setFlash('general-success', \"$form->nombre $form->apellido ha sido creado.\");\n $this->redirect('admin');\n }\n }\n $this->render('create', array('model'=>$form));\n }", "public function create()\n {\n return view('contactusform');\n }", "public function create()\n {\n return view('notification.form.create');\n }", "private function createCreateForm(Productosprogramas $entity)\n {\n $form = $this->createForm(new ProductosprogramasType(), $entity, array(\n 'action' => $this->generateUrl('admin_productosprogramas_create'),\n 'method' => 'POST',\n ));\n\n $form->add('submit', 'submit', array('label' => 'Crear'));\n\n return $form;\n }", "private function createCreateForm(Message $entity)\n {\n $form = $this->createForm(new MessageType(), $entity, array(\n 'action' => $this->generateUrl('message_create'),\n 'method' => 'POST',\n ));\n\n return $form;\n }", "private function createCreateForm(Missatges $entity) {\n $form = $this->createForm(new MissatgesType(), $entity, array(\n 'action' => $this->generateUrl('admin_missatges_create'),\n 'method' => 'POST',\n ));\n\n $form->add('submit', 'submit', array('label' => 'Create'));\n\n return $form;\n }", "private function createForm()\n\t{\n\t\t$builder = $this->getService('form')->create();\n\t\t$builder->setValidatorService($this->getService('validator'));\n\t\t$builder->setFormatter(new BasicFormFormatter());\n\t\t$builder->setDesigner(new DoctrineDesigner($this->getDoctrine(), 'Entity\\User',array('location')));\n\n\t\t$builder->getField('location')->setRequired(true);\n\t\t$builder->submit($this->getRequest());\n\n\t\treturn $builder;\n\t}", "public function create()\n {\n $contacts = Contact ::all();\n return view('emails.create', compact('contacts'));\n }", "public function create()\n {\n return view(\"request_form.form\");\n }", "public function create()\n {\n $data = [\n 'route' => 'myc::contacts.store',\n 'method' => 'POST',\n 'type' => 'create'\n ];\n\n return view('contact.form', ['page' => Constants::PageContacts, 'data' => $data]);\n }", "public function create()\n {\n //Load view with form\n return view('contact-us');\n }", "public function create()\n {\n return $this->form->render('mconsole::personal.form');\n }", "private function createCreateForm(PIFEClassique $entity,$id)\n {\n $form = $this->createForm(new PIFEClassiqueType(), $entity, array(\n 'action' => $this->generateUrl('pifeclassique_create',array('id'=>$id)),\n 'method' => 'POST',\n ));\n\n $form->add('submit', 'submit', array('label' => 'Créer'));\n\n return $form;\n }", "public function CreateForm();", "private function createCreateForm(DetailsProduits $entity) {\n $form = $this->createForm(new DetailsProduitsType(), $entity, array(\n 'action' => $this->generateUrl('detailsproduits_create'),\n 'method' => 'POST',\n ));\n\n $form->add('submit', 'submit', array('label' => 'Create'));\n\n return $form;\n }", "private function createCreateForm(Propietario $entity)\n {\n $form = $this->createForm(\n new PropietarioType(),\n $entity,\n array(\n 'action' => $this->generateUrl('propietario_create'),\n 'method' => 'POST',\n )\n );\n\n $form->add('submit', 'submit', array('label' => 'Create'));\n\n return $form;\n }", "private function createCreateForm(Dossier $entity)\n {\n $form = $this->createForm(new RefusAutomatiqueType(), $entity, array(\n 'action' => $this->generateUrl('refus_auto'),\n 'method' => 'POST',\n ));\n\n $form->add('submit', 'submit', array('label' => 'Traiter'));\n\n return $form;\n }", "protected function _createEntity()\n\t\t{\n\t\t\t// Form template name.\n\t\t\t$separator = '__';\n\t\t\t$template = $type = $this->_createForm->type->getValue();\n\t\t\t$subject = $this->_createForm->subject->getValue();\n\t\t\tif ( $platformId = $this->_createForm->platform_id->getValue() ) {\n\t\t\t\t$platform = Table::_( 'platforms' )->get( $platformId );\n\t\t\t\t$template = $platform->name . $separator . $template;\n\t\t\t}\n\t\t\tif ( $pluginId = $this->_createForm->plugin_id->getValue() ) {\n\t\t\t\t$filter = new D_Filter_PluginDirectory();\n\t\t\t\t$plugin = Table::_( 'plugins' )->get( $pluginId );\n\t\t\t\t$template = str_replace( '-', '_', $filter->filter( $plugin->name ) ) . $separator . $template;\n\t\t\t}\n\t\t\t$template .= '.phtml';\n\t\t\t// Write a file.\n\t\t\t$directory = $this->_getTypeDirectory( $type );\n\t\t\tif ( !file_exists( $directory . $template ) ) {\n\t\t\t\tfile_put_contents(\n\t\t\t\t\t$directory . $template,\n\t\t\t\t\t$this->_createForm->content->getValue()\n\t\t\t\t);\n\t\t\t}\n\t\t\t// Save a subject.\n\t\t\t$settingId = Model::_( 'settings' )->setting( $template . '[email subject]' );\n\t\t\tModel::_( 'settings' )->string( $settingId, $subject );\n\t\t}", "private function createCreateForm(SkBusiness $entity) {\n $form = $this->createForm(new SkBusinessType(), $entity, array(\n 'action' => $this->generateUrl('business_admin_create'),\n 'method' => 'POST',\n ));\n\n// $form->add('submit', 'submit', array('label' => 'Create'));\n\n return $form;\n }", "private function createCreateForm(PersonnelPersonnel $entity)\n {\n $form = $this->createForm(new PersonnelPersonnelType(), $entity, array(\n 'action' => $this->generateUrl('personnelpersonnel_create'),\n 'method' => 'POST',\n ));\n\n // $form->add('submit', 'submit', array('label' => 'Create'));\n\n return $form;\n }", "private function createCreateForm(SmsNotification $entity)\n {\n $form = $this->createForm(new NotificationType(), $entity, array(\n 'action' => $this->generateUrl('store_send_sms'),\n 'method' => 'POST',\n ));\n\n $form->add('submit', 'submit', array('label' => 'Send SMS'));\n\n return $form;\n }", "private function createCreateForm($fromid, $toid)\n {\n\t$form = $this->get('form.factory')->createNamedBuilder('bill_type','form', null, array())\n\t ->add('paidtype', 'entity', array('label' => 'Tipo de pago ', 'class'=> 'NvCargaBundle:Paidtype', 'query_builder' => function (EntityRepository $er) {\n \t\t\treturn $er->createQueryBuilder('p')\n\t\t\t\t\t->where('p.active = true')\n\t\t\t\t\t->andwhere('p.deleted = false')\n \t\t\t\t->orderBy('p.name', 'ASC');\n \t\t\t\t}, 'required' => true,\n\t\t\t\t\t\t'constraints' => array(new NotBlank([\"message\" => \"Seleccione el tipo de pago\"]))))\n\t ->add('billto', 'choice', array('choices' => array('Remitente' => $toid, 'Destinatario' => $fromid),\n \t\t\t'choices_as_values' => true, 'mapped' => false, 'required' => true, 'label'=>'Facturar a:',\n\t\t\t\t\t\t'constraints' => array(new NotBlank([\"message\" => \"Seleccione a quien se factura\"]))))\n ->add('submit', 'submit', array('label' => 'Facturar'))\n ->getForm()\n ;\n\treturn $form;\n }", "private function createCreateForm(Compte $entity)\n {\n $form = $this->createForm(new CompteType(), $entity, array(\n 'action' => $this->generateUrl('compte_create'),\n 'method' => 'POST',\n ));\n\n $form->add('submit', 'submit', array('label' => 'Créer'));\n\n return $form;\n }", "public function create()\n {\n return view('contactos.create',[ ]);\n }", "private function createCreateForm(AdTiposComision $entity)\n {\n $form = $this->createForm(new AdTiposComisionType(), $entity, array(\n 'action' => $this->generateUrl('adtiposcomision_create'),\n 'method' => 'POST',\n ));\n\n $form->add('submit', 'submit', array('label' => 'Create'));\n\n return $form;\n }", "abstract public function createForm();", "abstract public function createForm();", "public function create()\n {\n return view ('forms.create');\n }", "public function create()\n {\n return view('managecontactus.create'); \n }", "private function createCreateForm(AdmTipoAporte $entity)\r\n {\r\n $form = $this->createForm(new AdmTipoAporteType(), $entity, array(\r\n 'action' => $this->generateUrl('admtipoaporte_create'),\r\n 'method' => 'POST',\r\n ));\r\n\r\n $form->add('submit', 'submit', array('label' => 'Agregar','attr'=>array('class'=>'btn btn-success btn-sm')));\r\n\r\n return $form;\r\n }", "private function createCreateForm(Dzialy $entity) {\n $form = $this->createForm(new DzialyType(), $entity, array(\n 'action' => $this->generateUrl('dzialy_create'),\n 'method' => 'POST',\n )); \n\n return $form;\n }", "private function createCreateForm(Intervalosips $entity)\n {\n $form = $this->createForm(new IntervalosipsType(), $entity, array(\n 'action' => $this->generateUrl('intervalosips_create'),\n 'method' => 'POST',\n ));\n\n $form->add('submit', 'submit', array('label' => 'Criar'));\n\n return $form;\n }", "private function createCreateForm(Bien $entity)\n {\n $form = $this->createForm(new BienType(), $entity, array(\n 'action' => $this->generateUrl('bien_create'),\n 'method' => 'POST',\n ));\n\n $form->add('submit', 'submit', array('label' => 'Crear','attr' => array('class' => 'btn btn-success'),));\n return $form;\n }", "private function createAddForm() {\n return $this->createFormBuilder\n ->setAction($this->generateUrl('nn_genie_infos_mat_proprietaire_add'))\n ->setMethod('POST')\n ->getForm()\n ;\n }", "private function createPasswordMailForm(array $data)\n {\n $form = $this->createForm(new CustomMailType(), $data, array(\n 'action' => $this->generateUrl('front_passwordMail_send'),\n 'method' => 'POST',\n 'attr' => array(\n 'class' => 'log-reg-block sky-form',\n 'id' => 'sky-form4'\n ) \n ));\n\n return $form;\n }", "public function create()\n {\n return view(\"backend.cms.form\");\n }", "public function create()\n {\n if((auth()->user()->hasPermissionTo('blogger_add') != true))\n return $this->permission_denied('blogger_dashboard');\n\n return view('dashboard.users.blogger.form')\n ->with([\n 'page_title' => $this->page_title,\n 'entity' => $this->entity,\n 'entity_action' => $this->entity_action,\n ]);\n }", "private function createCreateForm(Todoitems $entity)\n {\n \n $form = $this->createForm(new TodoitemsType(), $entity, array(\n 'action' => $this->generateUrl('todoitems_create'),\n 'method' => 'POST',\n 'id' => $this->getUser()->getId()\n ));\n\n $form->add('submit', 'submit', array('label' => 'Create'));\n\n return $form;\n }", "public function create()\n {\n return view('admin.contact.create');\n }", "public function create()\n {\n return view('admin.contact.create');\n }", "public function getCreationForm()\n {\n return new PaisForm;\n }", "private function createCreateForm(Feedback $entity)\n {\n $form = $this->createForm('BackendBundle\\Form\\FeedbackType', $entity, array(\n 'action' => $this->generateUrl('feedback_new'),\n 'method' => 'POST',\n ));\n\n $form->add('submit', SubmitType::class, array('label' => 'Create'));\n $form->add('submitback', SubmitType::class, array('label' => 'Create & Back'));\n\n return $form;\n }", "private function createCreateForm(Feriado $entity)\n {\n $form = $this->createForm(new FeriadoType(), $entity, array(\n 'action' => $this->generateUrl('feriado_create'),\n 'method' => 'POST',\n ));\n\n $form->add('submit', 'submit', array('label' => 'Create'));\n\n return $form;\n }", "public function create()\n {\n //\n return view('admin.settings.mailsetting.add');\n\n }", "public function create ()\n {\n return view('forms.create');\n }", "private function createCreateForm(Fileops $entity)\n {\n $form = $this->createForm(new FileopsType(), $entity, array(\n 'action' => $this->generateUrl('fileops_create'),\n 'method' => 'POST',\n ));\n\n $form->add('submit', 'submit', array('label' => 'Create'));\n\n return $form;\n }", "public function create() {\n return view('project.contact.create');\n }", "public function create()\n {\n return view('admin.email-marketing.Group.create');\n }", "private function createCreateForm(Pays $entity)\n {\n $form = $this->createForm(new PaysType(), $entity, array(\n 'action' => $this->generateUrl('administration_pays_create'),\n 'method' => 'POST',\n ));\n\n $form->add('submit', 'submit', array('label' => 'Create'));\n\n return $form;\n }", "private function createCreateForm(FrontBottom $entity)\n {\n $form = $this->createForm(new FrontBottomType(), $entity, array(\n 'action' => $this->generateUrl('frontbottom_create'),\n 'method' => 'POST',\n ));\n\n $form->add('submit', 'submit', array('label' => 'Create'));\n\n return $form;\n }", "public function createAction()\n {\n// $this->view->form = $form;\n }", "private function createCreateForm(BonCommandeLigne $entity)\n {\n $form = $this->createForm(new BonCommandeLigneType(), $entity, array(\n 'action' => $this->generateUrl('boncommandeligne_create'),\n 'method' => 'POST',\n ));\n\n $form->add('submit', 'submit', array('label' => 'Create'));\n\n return $form;\n }", "public function create()\n {\n //Forms-Register\n return view('/pelanggan/forms/daftar_pelanggan');\n }", "public function actionCreate()\n\t{\n\t\t$this->active = \"create\";\n\t\t\n\t\t$session = new CHttpSession;\n\t\t$session->open();\n\t\t\n\t\tif(!isset($session['contact'])) {\n\t\t\t$this->redirect(array('createNew'));\n\t\t}\n\t\t\n\t\t$model=new PenjualanContactForm;\n\n\t\tif(isset($_POST['PenjualanContactForm']))\n\t\t{\n\t\t\t$model->attributes=$_POST['PenjualanContactForm'];\n\t\t\tif($model->validate()) {\n\t\t\t\t$session['contact'] = $model;\n\t\t\t\t$this->redirect(array('preview'));\n\t\t\t} else {\n\t\t\t\tYii::app()->user->setFlash('error', 'Input Tidak Valid.');\n\t\t\t}\n\t\t} else {\n\t\t\t$model->attributes = $session['contact']->getAttributes();\n\t\t}\n\t\t\n\t\tif(Yii::app()->user->hasFlash('error')) {\n\t\t\tYii::app()->user->setFlash('error', Yii::app()->user->getFlash('error'));\n\t\t}\n\t\tif(Yii::app()->user->hasFlash('success')) {\n\t\t\tYii::app()->user->setFlash('success', Yii::app()->user->getFlash('success'));\n\t\t}\n\n\t\t$this->render('create',array(\n\t\t\t'model'=>$model,\n\t\t));\n\t}", "private function createCreateForm(PicFooter $entity)\n {\n $form = $this->createForm(new PicFooterType(), $entity, array(\n 'action' => $this->generateUrl('picfooter_create'),\n 'method' => 'POST',\n ));\n\n $form->add('submit', 'submit', array('label' => 'Create'));\n\n return $form;\n }", "public function create()\n {\n return view('users.forms.create');\n }", "private function createCreateForm(Endroit $entity)\n {\n $form = $this->createForm(new EndroitType(), $entity, array(\n 'action' => $this->generateUrl('endroit_create'),\n 'method' => 'POST',\n ));\n\n $form->add('submit', 'submit', array('label' => 'Create'));\n\n return $form;\n }", "private function createCreateForm(Galeria $entity, $tipo = \"imagen\")\r\n {\r\n if($tipo == \"imagen\"){\r\n $form = $this->createForm(new GaleriaType(), $entity, array(\r\n 'action' => $this->generateUrl('galerias_create'),\r\n 'method' => 'POST',\r\n ));\r\n }else if($tipo==\"link_video\"){\r\n $form = $this->createForm(new GaleriaLinkVideoType(), $entity, array(\r\n 'action' => $this->generateUrl('galerias_create'),\r\n 'method' => 'POST',\r\n ));\r\n }\r\n\r\n //$form->add('submit', 'submit', array('label' => 'Create'));\r\n\r\n return $form;\r\n }", "private function createCreateForm(Equipo $entity)\n {\n $form = $this->createForm(new EquipoType(), $entity, array(\n 'action' => $this->generateUrl('tecnoequipo_create'),\n 'method' => 'POST',\n ));\n\n $form->add('submit', 'submit', array('label' => 'Create'));\n\n return $form;\n }", "protected function form()\n {\n return Admin::form(Mail::class, function (Form $form) {\n\n $form->tools(function (Form\\Tools $tools) {\n $tools->disableList(); \n });\n \n $form->footer(function ($footer) {\n $footer->disableViewCheck();\n $footer->disableEditingCheck();\n $footer->disableCreatingCheck(); \n });\n \n $form->text('from', \"寄件人姓名\")->rules('required');\n $form->email('to', \"收件人電郵\")->rules('required');\n $form->text('subject', \"主旨\")->rules('required');\n $form->textarea('content', \"內容\")->rows(10);\n });\n }", "private function createCreateForm(EnvaseIngreso $entity)\n {\n $form = $this->createForm(new EnvaseIngresoType(), $entity, array(\n 'action' => $this->generateUrl('envase_ingreso_create'),\n 'method' => 'POST',\n ));\n\n $form->add('submit', 'submit', array('label' => 'Ingresar', 'attr' => array('class' => \"btn btn-success\")));\n\n return $form;\n }", "public function create()\n {\n $this->load->library('form_validation');\n $this->form_validation->set_rules($this->_validation_rules);\n \n $email_template->is_default = 0;\n \n // Go through all the known fields and get the post values\n foreach($this->_validation_rules as $key => $field)\n {\n $email_template->$field['field'] = $this->input->post($field['field']);\n }\n \n if($this->form_validation->run())\n {\n foreach($_POST as $key => $value)\n {\n $data[$key] = $this->input->post($key);\n }\n unset($data['btnAction']);\n if($this->email_templates_m->insert($data))\n {\n $this->session->set_flashdata('success', sprintf(lang('templates.tmpl_create_success'), $data['name']));\n }\n else\n {\n $this->session->set_flashdata('error', sprintf(lang('templates.tmpl_create_error'), $data['name']));\n }\n redirect('admin/templates');\n }\n \n $this->template->set('email_template', $email_template)\n\t\t\t\t\t\t->title(lang('templates.create_title'))\n ->append_metadata( $this->load->view('fragments/wysiwyg', $this->data, TRUE) )\n ->build('admin/form');\n }", "private function createCreateForm(CaracteristicasEquipo $entity)\n {\n $form = $this->createForm(new CaracteristicasEquipoType(), $entity, array(\n 'action' => $this->generateUrl('caracteristicasequipo_create'),\n 'method' => 'POST',\n ));\n\n $form->add('submit', 'submit', array('label' => 'Create'));\n\n return $form;\n }", "private function createCreateForm(ComponentGroup $entity)\n {\n $form = $this->createForm(ComponentGroupType::class, $entity, array(\n 'action' => $this->generateUrl('componentgroup_create'),\n 'method' => 'POST',\n ));\n\n $form->add('submit', SubmitType::class, array('label' => 'Create'));\n\n return $form;\n }", "private function createCreateForm(Picture $entity)\n {\n $securityContext = $this->container->get('security.context');\n $form = $this->createForm(\n new PictureType($securityContext), \n $entity, \n array('action' => $this->generateUrl('picture_create'), 'method' => 'POST'));\n\n $form->add('submit', 'submit', array('label' => 'Create'));\n\n return $form;\n }", "public function create()\n {\n return view('panel.payment-management.payment.form-create');\n }", "public function create()\n {\n return view('architect.messageRecipient.create');\n }", "public function Form()\n {\n // Create Form Fields:\n \n $fields = FieldList::create(\n FieldGroup::create(\n TextField::create(\n 'FirstName',\n _t(__CLASS__ . '.FIRSTNAME', 'First Name')\n ),\n TextField::create(\n 'LastName',\n _t(__CLASS__ . '.LASTNAME', 'Last Name')\n )\n ),\n EmailField::create(\n 'Email',\n _t(__CLASS__ . '.EMAIL', 'Email')\n ),\n TextareaField::create(\n 'Message',\n _t(__CLASS__ . '.MESSAGE', 'Message')\n )\n );\n \n // Define Required Fields:\n \n $required = [\n 'FirstName',\n 'LastName',\n 'Email',\n 'Message'\n ];\n \n // Create Phone Field (if required):\n \n if ($this->ShowPhoneField) {\n \n $fields->insertAfter(\n TextField::create(\n 'Phone',\n _t(__CLASS__ . '.PHONE', 'Phone')\n ),\n 'Email'\n );\n \n if ($this->PhoneRequired) {\n $required[] = 'Phone';\n }\n \n }\n \n // Create Recipient Field (if required):\n \n if ($this->ShowRecipientField) {\n \n $fields->insertBefore(\n DropdownField::create(\n 'RecipientID',\n $this->getRecipientFieldLabel(),\n $this->getEnabledRecipientOptions()\n )->setEmptyString(' '),\n 'Message'\n );\n \n $required[] = 'RecipientID';\n \n }\n \n // Create Subject Field (if required):\n \n if ($this->ShowSubjectField) {\n \n $fields->insertBefore(\n TextField::create(\n 'Subject',\n _t(__CLASS__ . '.SUBJECT', 'Subject')\n ),\n 'Message'\n );\n \n $required[] = 'Subject';\n \n }\n \n // Create Form Actions:\n \n $actions = FieldList::create(\n FormAction::create('doSend', _t(__CLASS__ . '.SEND', 'Send'))\n );\n \n // Create Form Validator:\n \n $validator = Validator::create()->addRequiredFields($required);\n \n // Create Form Object:\n \n $form = Form::create($this, 'Form', $fields, $actions, $validator);\n \n // Enable Spam Protection (if available):\n \n if ($form->hasMethod('enableSpamProtection')) {\n $form->enableSpamProtection();\n }\n \n // Answer Form Object:\n \n return $form;\n }", "public function create()\n {\n //\n return view('user.products.contactus');\n }", "private function createCreateForm(PromoCmdes $entity)\n {\n $form = $this->createForm(PromoCmdesType::class, $entity, array(\n 'action' => $this->generateUrl('adminPromoCmdes_create'),\n 'method' => 'POST',\n ));\n\n $form->add('submit', 'submit', array('label' => 'Create'));\n\n return $form;\n }", "public function create()\n {\n return view(\"add_contact\", compact(\"\"));\n }", "public function create()\n {\n return view('contacto.create');\n }", "public function create()\n {\n return view('contacto.create');\n }", "public function create() {\n return view(\"admin.genres.form\");\n }", "public function create() {\n// $departments = Tbl_emailcategory::all();\n// $options = '<option value=\"\">Select Email Category</option>';\n// foreach ($departments as $types) {\n// $options .= '<option value=\"' . $types->ecat_id . '\">' . $types->category . '</option>';\n// }\n// $data['department_options'] = $options;\n// ->with(\"data\", $data)\n return view('admin.emails.create');\n }", "public function create()\n {\n\n // return form providers\n return view('backend.providers.form');\n }", "public function createAction(Request $request)\n {\n $entity = new Newsletter();\n $form = $this->createForm(new NewsletterType(), $entity);\n $form->bind($request);\n\n if ($form->isValid()) {\n $em = $this->getDoctrine()->getManager();\n $em->persist($entity);\n $em->flush();\n\n return $this->redirect($this->generateUrl('newsletter_show', array('id' => $entity->getId())));\n }\n\n return $this->render('ClassCentralSiteBundle:Newsletter:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "public function createAction()\n {\n $entity = new Meeting();\n $request = $this->getRequest();\n $form = $this->createForm(new MeetingType(), $entity);\n $form->bindRequest($request);\n\n if ($form->isValid()) {\n $em = $this->getDoctrine()->getEntityManager();\n $em->persist($entity);\n $em->flush();\n\n return $this->redirect($this->generateUrl('meeting_show', array('id' => $entity->getId()))); \n }\n\n return array(\n 'entity' => $entity,\n 'form' => $form->createView()\n );\n }", "private function createCreateForm(Cosecha $entity)\n {\n $form = $this->createForm(new CosechaType(), $entity, array(\n 'action' => $this->generateUrl('cosecha_create'),\n 'method' => 'POST',\n ));\n\n $form->add('submit', 'submit', array('label' => 'Create'));\n\n return $form;\n }", "private function createCreateForm(Liquidaciones $entity)\n {\n $session = $this->getRequest()->getSession();\n\n $modocarga = $this->getRequest()->getSession()->get('modocarga');\n $usr = $this->get('security.context')->getToken()->getUser();\n $entity->setUsuaCrea((string)$this->getUser()->getUsername());\n $session = $this->getRequest()->getSession();\n $HAtlCupo = $this->getRequest()->getSession()->get('hatlcupo');\n $idtipoliquidacion = $this->getRequest()->getSession()->get('idtipoliquidacion');\n\n $em = $this->getDoctrine()->getManager(\"ms_haberes_web\");\n\n $cuposhatl = $em->getRepository('LiquidacionesCuposAnualesBundle:CuposHATiposLiquidacion')->find($HAtlCupo);\n $tipoguardia = array(515=>'12',514=>'24',517=>'12 Hs Feriado',516=>'24 Hs Feriado');\n switch ($modocarga) {\n case 'rg':\n\n $form = $this->createForm(new \\Liquidaciones\\CuposAnualesBundle\\Form\\LiquidacionesType($tipoguardia), $entity, array(\n 'action' => $this->generateUrl('liquidaciones_create'),\n 'method' => 'POST',\n ));\n\n break;\n case 'horas':\n $idconcepto = $cuposhatl->getCuentas()->getConceptoMS();\n $entity->setIdConcepto($idconcepto);\n\n $form = $this->createForm(new \\Liquidaciones\\CuposAnualesBundle\\Form\\LiquidacionesTypeHS(), $entity, array(\n 'action' => $this->generateUrl('liquidaciones_createhs'),\n 'method' => 'POST',\n ));\n break;\n default:\n $idconcepto = $cuposhatl->getCuentas()->getConceptoMS();\n $entity->setIdConcepto($idconcepto);\n\n $form = $this->createForm(new \\Liquidaciones\\CuposAnualesBundle\\Form\\LiquidacionesTypeM(), $entity, array(\n 'action' => $this->generateUrl('liquidaciones_create'),\n 'method' => 'POST',\n ));\n break;\n }\n\n\n $form->add('submit', 'submit', array('label' => 'Create'));\n\n return $form;\n }", "public function create()\n {\n return $this->showForm('create');\n }", "public function create()\n {\n return $this->showForm('create');\n }", "private function createCreateForm(IntrestConfig $entity) {\n\t\t$form = $this->createForm(new IntrestConfigType(), $entity, array(\n\t\t\t'action' => $this->generateUrl('member_intrestconfig_create'),\n\t\t\t'method' => 'POST',\n\t\t));\n\n\t\t$form->add('submit', 'submit', array('label' => 'Create'));\n\n\t\treturn $form;\n\t}", "public function create()\n\t{\n\n\n\t return view('admin.mailbox.create');\n\t}" ]
[ "0.7441957", "0.7244886", "0.67560875", "0.6711325", "0.6540887", "0.6413211", "0.6302297", "0.6300285", "0.6284974", "0.6284974", "0.6214498", "0.61847866", "0.61690986", "0.61140937", "0.6104232", "0.60910136", "0.6045087", "0.60374", "0.6030313", "0.60129994", "0.6009359", "0.6004699", "0.5996848", "0.5994047", "0.59807086", "0.59549856", "0.59475994", "0.5938294", "0.5936627", "0.5923702", "0.59179276", "0.59117275", "0.59033036", "0.59030163", "0.59015137", "0.5897829", "0.5895484", "0.5893139", "0.5886438", "0.58739334", "0.5865249", "0.58558404", "0.58558404", "0.5844283", "0.58434397", "0.5843168", "0.5841784", "0.5834652", "0.5827575", "0.5826508", "0.58182937", "0.5818206", "0.58164203", "0.58161753", "0.58087975", "0.58087975", "0.58083326", "0.5808111", "0.5798033", "0.57979316", "0.57974297", "0.57944673", "0.5793972", "0.5787549", "0.57868224", "0.5786145", "0.57839954", "0.57746387", "0.57730347", "0.5765952", "0.5764813", "0.57551736", "0.575011", "0.57486427", "0.5748389", "0.57466006", "0.57455605", "0.57432985", "0.57307017", "0.57299614", "0.57281595", "0.57278293", "0.5718918", "0.5718858", "0.57182485", "0.57116807", "0.57105327", "0.5707832", "0.5707832", "0.5706839", "0.5697406", "0.56936234", "0.569232", "0.5684244", "0.56803024", "0.568006", "0.56771284", "0.56771284", "0.5675423", "0.56739134" ]
0.82128966
0
Displays a form to create a new GdpMails entity.
public function newAction() { $entity = new GdpMails(); $form = $this->createCreateForm($entity); return array( 'entity' => $entity, 'form' => $form->createView(), ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function createCreateForm(GdpMails $entity)\r\n {\r\n $form = $this->createForm(new GdpMailsType(), $entity, array(\r\n 'action' => $this->generateUrl('gdpmails_create'),\r\n 'method' => 'POST',\r\n ));\r\n\r\n $form->add('submit', 'submit', array('label' => 'Create'));\r\n\r\n return $form;\r\n }", "public function create() {\n\n\t\treturn view('/mailer/createform');\n\n\t}", "public function createAction(Request $request)\r\n {\r\n $entity = new GdpMails();\r\n $form = $this->createCreateForm($entity);\r\n $form->handleRequest($request);\r\n\r\n if ($form->isValid()) {\r\n $em = $this->getDoctrine()->getManager();\r\n $em->persist($entity);\r\n $em->flush();\r\n\r\n return $this->redirect($this->generateUrl('gdpmails_show', array('id' => $entity->getId())));\r\n }\r\n\r\n return array(\r\n 'entity' => $entity,\r\n 'form' => $form->createView(),\r\n );\r\n }", "public function createAction()\n {\n $record = new \\SmartAccounts\\Entity\\Emails();\n\n $form = $this->emailsService->getCreateEmailsForm();\n\n if ($this->request->isPost()) {\n $form->setData($this->request->getPost());\n if ($form->isValid()) {\n \t$data = $form->getData();\n \t\n \t$record->setDisabled($data->getDisabled());\n \t$record->setEmail($data->getEmail());\n \t$record->setCustomerId($data->getCustomerId());\n \t\n $this->emailsService->createEmails($record, $this->identity());\n\n $this->flashMessenger()->setNamespace('success')\n ->addMessage('You have successfullly created a new Emails.');\n\n return $this->redirect()->toRoute('rocket-admin/accounts/emails');\n } else {\n $this->flashMessenger()->setNamespace('error')\n ->addMessage('There was an error trying to create a new Emails.');\n }\n }\n\n $uri = $this->getRequest()->getUri();\n $base = sprintf('%s://%s', $uri->getScheme(), $uri->getHost());\n $this->viewHelperManager->get('HeadScript')\n ->appendFile($base . '/assets/rocket-admin/ckeditor/ckeditor.js');\n $this->viewHelperManager->get('InlineScript')\n ->appendScript(\"$(function () {CKEDITOR.replace('emails-fieldset[html]');});\", 'text/javascript');\n\n return new ViewModel(array(\n 'record' => $record,\n 'form' => $form,\n ));\n }", "public function create() {\n return view('mails.create');\n }", "public function newAction()\n {\n $entity = new Newsletter();\n $form = $this->createForm(new NewsletterType(), $entity);\n\n return $this->render('ClassCentralSiteBundle:Newsletter:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "public function create()\n {\n $contacts = Contact ::all();\n return view('emails.create', compact('contacts'));\n }", "public function newAction()\n {\n if (!$this->get('security.context')->isGranted('ROLE_ADMIN') ) {\n return $this->redirect($this->generateUrl('error'), 302); \n }\n $entity = new Grupos();\n $form = $this->createCreateForm($entity);\n\n return $this->render('SytemSGBundle:Grupos:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "public function create()\n {\n return view('panel.deliveries-management.deliveries.form-create');\n }", "public function create()\n {\n return view('architect.messageRecipient.create');\n }", "public function create()\n {\n return view('managecontactus.create'); \n }", "public function create()\n {\n return view('notification.form.create');\n }", "public function create()\n {\n return view(\"add_contact\", compact(\"\"));\n }", "public function create()\n\t{\n\n\n\t return view('admin.mailbox.create');\n\t}", "public function create()\n {\n return $this->form->render('mconsole::personal.form');\n }", "public function create()\n {\n return view('admin.contact.create');\n }", "public function create()\n {\n return view('admin.contact.create');\n }", "public function create()\n {\n //Load view with form\n return view('contact-us');\n }", "public function create()\n {\n return view('contactos.create',[ ]);\n }", "public function create()\n {\n return view('contactusform');\n }", "public function create()\n {\n\n createLog(MessageContact::class);\n return view('backEnd.admin.messagecontact.create');\n }", "public function create()\n\t{\n\t\t$form = \\View::make('message.form');\n\t\t$form->project_id = \\Session::get('active_project');\n\t\t$form->action = array('action' => 'Toomdrix\\Pm\\MessageController@store', 'class'=>'form-signup');\n\t\treturn $form;\n\t}", "public function create()\n {\n\n createLog(Contact::class);\n return view('backEnd.admin.contact.create');\n }", "public function create()\n {\n \n \n return view('admin.contactInfo.add');\n }", "public function create() {\n return view('project.contact.create');\n }", "public function create()\n {\n return view('EmailAccounts');\n }", "public function create()\n {\n return view('addressbook.create');\n }", "public function create()\n {\n if((auth()->user()->hasPermissionTo('blogger_add') != true))\n return $this->permission_denied('blogger_dashboard');\n\n return view('dashboard.users.blogger.form')\n ->with([\n 'page_title' => $this->page_title,\n 'entity' => $this->entity,\n 'entity_action' => $this->entity_action,\n ]);\n }", "public function create()\n {\n //\n return view('admin.settings.mailsetting.add');\n\n }", "public function actionCreate() {\n\t\t$request = Yii::app()->request;\n $form = new PersonaForm(\"new\");\n if($request->isPostRequest) {\n $form->attributes = $request->getPost('PersonaForm');\n if($form->validate()) {\n PersonaManager::savePersona($form);\n Yii::app()->user->setFlash('general-success', \"$form->nombre $form->apellido ha sido creado.\");\n $this->redirect('admin');\n }\n }\n $this->render('create', array('model'=>$form));\n }", "public function newAction()\n {\n $entity = new Message();\n $form = $this->createForm(new MessageType(), $entity);\n\n return $this->render('CoreMarketingBundle:Message:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "public function actionCreate()\n\t{\n\t\t$this->active = \"create\";\n\t\t\n\t\t$session = new CHttpSession;\n\t\t$session->open();\n\t\t\n\t\tif(!isset($session['contact'])) {\n\t\t\t$this->redirect(array('createNew'));\n\t\t}\n\t\t\n\t\t$model=new PenjualanContactForm;\n\n\t\tif(isset($_POST['PenjualanContactForm']))\n\t\t{\n\t\t\t$model->attributes=$_POST['PenjualanContactForm'];\n\t\t\tif($model->validate()) {\n\t\t\t\t$session['contact'] = $model;\n\t\t\t\t$this->redirect(array('preview'));\n\t\t\t} else {\n\t\t\t\tYii::app()->user->setFlash('error', 'Input Tidak Valid.');\n\t\t\t}\n\t\t} else {\n\t\t\t$model->attributes = $session['contact']->getAttributes();\n\t\t}\n\t\t\n\t\tif(Yii::app()->user->hasFlash('error')) {\n\t\t\tYii::app()->user->setFlash('error', Yii::app()->user->getFlash('error'));\n\t\t}\n\t\tif(Yii::app()->user->hasFlash('success')) {\n\t\t\tYii::app()->user->setFlash('success', Yii::app()->user->getFlash('success'));\n\t\t}\n\n\t\t$this->render('create',array(\n\t\t\t'model'=>$model,\n\t\t));\n\t}", "public function create()\n {\n return view(\"request_form.form\");\n }", "public function create()\n {\n return view('mail.addlist');\n }", "public function create()\n {\n //\n return view('user.products.contactus');\n }", "public function create()\n {\n return view('contacto.create');\n }", "public function create()\n {\n return view('contacto.create');\n }", "public function actionCreate()\n {\n $model = new GiftcodeType();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id]);\n }\n\n return $this->render('create', [\n 'model' => $model,\n ]);\n }", "public function create()\n {\n return view('contact::create');\n }", "public function newAction()\n {\n $entity = new Productosprogramas();\n $form = $this->createCreateForm($entity);\n\n $helper=new MyHelper();\n return $this->render('gemaBundle:Productosprogramas:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n 'guid'=> $helper->GUID(),\n ));\n }", "public function create()\n {\n $languages = Languages::get();\n return view('admin.mails.create', compact('languages'));\n }", "public function create()\n {\n // Listado de areas\n $areas = Area::orderBy('name', 'ASC')->pluck('name', 'id')->all();\n // Retorno la vista correspondiente\n return view('panel.mails.create', compact('areas'));\n }", "public function create()\n {\n //return view('app.pages.contact');\n return view('app.messages.create');\n }", "public function actionCreate()\n {\n $model = new Talleres();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id]);\n }\n\n return $this->render('create', [\n 'model' => $model,\n ]);\n }", "public function create()\n\t{\n\t\t//\n\t\treturn view('Gallery/Admin/form');\n\t}", "public function create()\n {\n\n return view('backend.glasse.create');\n }", "public function create()\n {\n return view('agreements.create');\n }", "public function create()\n {\n return view('contact.create');\n }", "public function create()\n {\n return view('contact.create');\n }", "public function create()\n {\n return view('contact.create');\n }", "public function create()\n {\n return view('contact.create');\n }", "public function create()\n {\n return view('contact.create');\n }", "public function create()\n {\n BreadcrumbsRegister::Register($this->ModelName, $this->BreadCrumbName);\n return view('admin.contactus.create');\n }", "public function create()\n {\n $data = [\n 'route' => 'myc::contacts.store',\n 'method' => 'POST',\n 'type' => 'create'\n ];\n\n return view('contact.form', ['page' => Constants::PageContacts, 'data' => $data]);\n }", "public function create()\n\t{\n\t\treturn view('dapils.create');\n\t}", "public function create ()\n {\n return view('forms.create');\n }", "public function actionCreate()\n {\n $model = new NotificationsTemplate();\n\n if ($model->load(\\Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'key' => $model->key]);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "public function create()\n {\n return view ('forms.create');\n }", "public function create()\n {\n return view('compte_epargnes.create');\n }", "public function create()\n {\n \n return view(\n 'components/forms/form-personne',\n [\n 'redirect' => 'ajouterPersonne',\n 'employe' => null\n ]\n );\n }", "public function create()\n {\n return view('embalagems.create');\n }", "public function create()\n {\n return view ('contact_us');\n }", "public function create()\n {\n return view(\"backend.cms.form\");\n }", "public function createForm()\n\t{\n\t\treturn view('post.new');\n\t}", "public function create()\n {\n return view('contacto.contacto');\n }", "public function createAction()\n\t{\n\t\t$contact = new Contacts();\n\t\t$success = $contact->save($this->request->getPost(), array('name', 'phone', 'email'));\n\n\t\tif ($success) {\n\t\t\t$this->flash->success(\"Contact Successfully Saved!\");\n\t\t\t$this->dispatcher->forward(['action' => 'index']);\n\t\t}\n\t\telse {\n\t\t\t$this->flash->error(\"Following Errors occurred: <br/>\");\n\n\t\t\tforeach ($contact->getMessages() as $message) {\n\t\t\t\t$this->flash->error($message);\n\t\t\t}\n\n\t\t\t$this->dispatcher->forward(['action' => 'new']);\n\t\t}\n\t}", "public function create()\n {\n return view('domain::create');\n }", "public function create()\n {\n return view(\"dresses.form\");\n }", "public function create()\n {\n return view('admin.email-marketing.Group.create');\n }", "public function create()\n {\n //\n return view('socials.add-new-social');\n }", "public function create()\n\t{\n\t\t//\n\t\treturn view('registrations.create');\n\t}", "public function create()\n {\n //\n return view('gedung.create');\n }", "public function createAction()\n {\n// $this->view->form = $form;\n }", "public function create() {\n return view(\"admin.genres.form\");\n }", "public function newAction()\n { \n $breadcrumbs = $this->get(\"white_october_breadcrumbs\");\n $breadcrumbs->addItem(\"Administración\", $this->generateUrl('dashboard'));\n $breadcrumbs->addItem(\"Usuarios\", $this->generateUrl('user'));\n $breadcrumbs->addItem(\"Registrar nuevo\");\n \n $entity = new User();\n $form = $this->createForm(new UserType(), $entity);\n\n return $this->render('UserBundle:Backend:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "public function create()\n {\n return view('backend.penduduk.create');\n }", "public function create()\n {\n return view('deliverers.create');\n }", "public function create()\n {\n $sPageTitle = 'Création d\\'un groupe';\n $aUsers = User::all()->sortBy('full_name')->pluck('full_name', 'id');\n \n return view($this->sPath.'/form', compact('sPageTitle', 'aUsers'));\n }", "public function create()\n {\n //Forms-Register\n return view('/pelanggan/forms/daftar_pelanggan');\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 newAction()\n {\n $entity = new Fluidite();\n $form = $this->createCreateForm($entity);\n\n return $this->render('GestionPassBundle:Fluidite:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "public function create()\n {\n //\n return view ('admin.mes.create');\n }", "public function create()\n {\n return view('contact::public.contact');\n }", "public function create()\n {\n return view('back.contactUs.create');\n }", "public function newAction()\n {\n $entity = new Propietario();\n $form = $this->createCreateForm($entity);\n\n return $this->render(\n 'BookingBundle:Propietario:new.html.twig',\n array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n )\n );\n }", "public function create()\n\t{\n\t\treturn View::make('new_entry');\n\t}", "public function newAction()\n {\n $this->view->org = new OrganizationForm();\n }", "public function actionCreate()\n {\n $model = new Contact();\n $model->user_id = $this->user->id;\n $model->scenario = 'form';\n\n if (Yii::$app->request->isPost && ($postData = Yii::$app->request->post()) && $model->load($postData)) {\n if ($model->save()) {\n return $this->redirect([\n 'view',\n 'id' => $model->id,\n ]);\n }\n }\n\n return $this->render('create', [\n 'model' => $model,\n ]);\n }", "public function create()\n {\n $person = new Person;\n return view('contents.personform')->with(compact('person') );\n }", "public function create()\n {\n return view('front_end.pages_frontend.contacts.create');\n }", "public function create()\n {\n return View::make(Config::get('confide::signup_form'))\n \t\t\t->with('errors', true);\n }", "public function actionCreate()\n {\n $model = new SourceMessageForm();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['index']);\n }\n\n return $this->render('create', [\n 'model' => $model,\n ]);\n }", "public function create(){\n\t\treturn view('gajipokok.create');\n\t}", "public function create()\n\t{\n\t\treturn view('registration/broker_registration/broker_registration_create');\n\t}", "public function create()\n {\n\n $title = \"Ajouter une newsletter\";\n\n return view('dashboard.cruds.newsletter.create', compact('title'));\n }", "public function create()\n {\n return view('contact-us');\n }", "public function create()\n\t{\n\t\treturn view('faith.form');\n\t}", "public function create() {\n// $departments = Tbl_emailcategory::all();\n// $options = '<option value=\"\">Select Email Category</option>';\n// foreach ($departments as $types) {\n// $options .= '<option value=\"' . $types->ecat_id . '\">' . $types->category . '</option>';\n// }\n// $data['department_options'] = $options;\n// ->with(\"data\", $data)\n return view('admin.emails.create');\n }", "public function nuevoAction(){\n $contactos=\"hola\";\n $request = $this->getRequest();\n $contacto = new Mensaje();\n $form = $this->createForm(new MensajeType(), $contacto);\n \n if ($request->getMethod() == 'POST') {\n $form->bindRequest($request);\n if ($form->isValid()) {\n $this->sendEmail($contacto);\n }\n }\n\n return $this->render('MDWRosantBundle:mensajes:new.html.twig', array('contacto' => $contactos));\n \n \n }", "public function newAction() {\n $entity = new DetailsProduits();\n $form = $this->createCreateForm($entity);\n\n return $this->render('VentesBundle:DetailsProduits:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }" ]
[ "0.727716", "0.7130548", "0.7095423", "0.68532664", "0.6734487", "0.65864897", "0.653791", "0.64613175", "0.64500666", "0.643531", "0.64125246", "0.639017", "0.63869315", "0.63850164", "0.6378891", "0.6378039", "0.6378039", "0.6377443", "0.637716", "0.6373962", "0.6346026", "0.63319004", "0.63090867", "0.6301859", "0.6288307", "0.6277295", "0.62696373", "0.6268511", "0.62624615", "0.62539095", "0.6250563", "0.6250409", "0.6231879", "0.6229603", "0.6227401", "0.6220791", "0.6220791", "0.62185884", "0.62175953", "0.6197517", "0.61887586", "0.6179596", "0.617579", "0.6175342", "0.6171272", "0.616925", "0.6159084", "0.6147474", "0.6147474", "0.6147474", "0.6147474", "0.6147474", "0.6144401", "0.61432636", "0.61426115", "0.6139542", "0.6134403", "0.61310035", "0.61306405", "0.6128036", "0.6120275", "0.61139095", "0.6113888", "0.6113798", "0.61123294", "0.6103638", "0.6099595", "0.60981685", "0.60968417", "0.60947293", "0.6088083", "0.6084797", "0.6081901", "0.607907", "0.6069571", "0.6065589", "0.6061093", "0.6060558", "0.60592663", "0.60591096", "0.6053206", "0.6050765", "0.6039112", "0.60383916", "0.60375774", "0.60366285", "0.60345536", "0.6034188", "0.60330015", "0.6030487", "0.6029883", "0.6028863", "0.6027572", "0.6026328", "0.601933", "0.60183114", "0.6017558", "0.6016994", "0.6015171", "0.60128653" ]
0.79893667
0
Creates a form to edit a GdpMails entity.
private function createEditForm(GdpMails $entity) { $form = $this->createForm(new GdpMailsType(), $entity, array( 'action' => $this->generateUrl('gdpmails_update', array('id' => $entity->getId())), 'method' => 'POST', )); $form->add('submit', 'submit', array('label' => 'Update')); return $form; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "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 }", "private function createEditForm(Grupos $entity)\n {\n $form = $this->createForm(new GruposType(), $entity, array(\n 'action' => $this->generateUrl('grupos_update', array('id' => $entity->getId())),\n 'method' => 'PUT',\n ));\n\n $form->add('submit', 'submit', array('label' => 'Atualizar'));\n\n return $form;\n }", "private function createCreateForm(GdpMails $entity)\r\n {\r\n $form = $this->createForm(new GdpMailsType(), $entity, array(\r\n 'action' => $this->generateUrl('gdpmails_create'),\r\n 'method' => 'POST',\r\n ));\r\n\r\n $form->add('submit', 'submit', array('label' => 'Create'));\r\n\r\n return $form;\r\n }", "private function createEditForm(Push $entity)\n {\n $form = $this->createForm(new PushType(), $entity, array(\n 'action' => $this->generateUrl('push_update', array('id' => $entity->getId())),\n 'method' => 'PUT',\n 'attr' => array('id' => 'edit-form')\n ));\n\n return $form;\n }", "public function editAction()\n {\n $recordId = (int) $this->params('id', null);\n\n if (null === $recordId) {\n $this->flashMessenger()->setNamespace('error')\n ->addMessage('You have attempted to access an invalid record.');\n\n return $this->redirect()->toRoute('rocket-admin/accounts/emails');\n }\n\n $record = $this->emailsService->getEmails($recordId);\n\n if (null === $record) {\n $this->flashMessenger()->setNamespace('error')\n ->addMessage('You have attempted to access an invalid record.');\n\n return $this->redirect()->toRoute('rocket-admin/accounts/emails');\n }\n\n $form = $this->emailsService->getEditEmailsForm($recordId);\n\n if ($this->request->isPost()) {\n \t\n \t$form->setData($this->request->getPost());\n \n if ($form->isValid()) {\n \t\n $this->emailsService->editEmails($record, $this->identity());\n\n $this->flashMessenger()->setNamespace('success')\n ->addMessage('You have successfully edited a Emails.');\n\n return $this->redirect()->toRoute('rocket-admin/accounts/emails');\n } else {\n $form->getData();\n $this->flashMessenger()->setNamespace('error')\n ->addMessage('There was an error trying to edit an existing Emails.');\n }\n }\n \n $uri = $this->getRequest()->getUri();\n $base = sprintf('%s://%s', $uri->getScheme(), $uri->getHost());\n $this->viewHelperManager->get('HeadScript')\n ->appendFile($base . '/assets/rocket-admin/ckeditor/ckeditor.js');\n $this->viewHelperManager->get('InlineScript')\n ->appendScript(\"$(function () {CKEDITOR.replace('emails-fieldset[html]');});\", 'text/javascript');\n\n return new ViewModel(array(\n 'record' => $record,\n 'form' => $form,\n 'recordId' => $recordId\n ));\n }", "public function newAction()\r\n {\r\n $entity = new GdpMails();\r\n $form = $this->createCreateForm($entity);\r\n\r\n return array(\r\n 'entity' => $entity,\r\n 'form' => $form->createView(),\r\n );\r\n }", "public function getEditForm();", "private function createEditForm(PosgradoLineas $entity)\n {\n $form = $this->createForm(new PosgradoLineasType(), $entity, array(\n 'action' => $this->generateUrl('posgradolineas_update', array('id' => $entity->getId())),\n 'method' => 'PUT',\n ));\n\n $form->add('submit', 'submit', array('label' => 'Actualizar'));\n\n return $form;\n }", "private function createEditForm(Missatges $entity) {\n $form = $this->createForm(new MissatgesType(), $entity, array(\n 'action' => $this->generateUrl('admin_missatges_update', array('id' => $entity->getId())),\n 'method' => 'PUT',\n ));\n\n $form->add('submit', 'submit', array('label' => 'Update'));\n\n return $form;\n }", "function edit() {\n\t\tglobal $tpl;\n\n\t\t$form = $this->initForm();\n\t\t$tpl->setContent($form->getHTML());\n\t}", "private function createEditForm(Productosprogramas $entity)\n {\n $form = $this->createForm(new ProductosprogramasType(), $entity, array(\n 'action' => $this->generateUrl('admin_productosprogramas_update', array('id' => $entity->getId())),\n 'method' => 'PUT',\n ));\n\n $form->add('submit', 'submit', array('label' => 'Actualizar'));\n\n return $form;\n }", "private function createEditForm(EnvaseIngreso $entity)\n {\n $form = $this->createForm(new EnvaseIngresoType(), $entity, array(\n 'action' => $this->generateUrl('envase_ingreso_update', array('id' => $entity->getId())),\n 'method' => 'PUT',\n ));\n\n $form->add('submit', 'submit', array('label' => 'Guardar', 'attr' => array('class' => \"btn btn-success\")));\n\n return $form;\n }", "public function edit($id)\n\t{\n\t\t$form = \\View::make('message.form');\n\t\t$form->message = Message::find($id);\n\t\t$form->action = array('action' => array('Toomdrix\\Pm\\MessageController@update', $form->message->id),'class'=>'form-signup');\n\t\treturn $form;\n\t}", "public function editForm() {\n return tpl::load(__DIR__ . DS . 'form.php', array('field' => $this));\n }", "private function createEditForm(SkBusiness $entity) {\n $form = $this->createForm(new SkBusinessType(), $entity, array(\n 'action' => $this->generateUrl('business_admin_update', array('id' => $entity->getId())),\n 'method' => 'PUT',\n ));\n\n// $form->add('submit', 'submit', array('label' => 'Update'));\n\n return $form;\n }", "private function createEditForm(DetailsProduits $entity) {\n $form = $this->createForm(new DetailsProduitsType(), $entity, array(\n 'action' => $this->generateUrl('detailsproduits_update', array('id' => $entity->getId())),\n 'method' => 'PUT',\n ));\n\n $form->add('submit', 'submit', array('label' => 'Update'));\n\n return $form;\n }", "private function createEditForm(Fileops $entity)\n {\n $form = $this->createForm(new FileopsType(), $entity, array(\n 'action' => $this->generateUrl('fileops_update', array('id' => $entity->getId())),\n 'method' => 'PUT',\n ));\n\n $form->add('submit', 'submit', array('label' => 'Update'));\n\n return $form;\n }", "private function createEditForm(PIFEClassique $entity)\n {\n $form = $this->createForm(new PIFEClassiqueType(), $entity, array(\n 'action' => $this->generateUrl('pifeclassique_update', array('id' => $entity->getId())),\n 'method' => 'PUT',\n ));\n\n $form->add('submit', 'submit', array('label' => 'Mettre à jour'));\n\n return $form;\n }", "private function createEditForm(Feedback $entity)\n {\n $form = $this->createForm('BackendBundle\\Form\\FeedbackType', $entity, array(\n 'action' => $this->generateUrl('feedback_edit', array('id' => $entity->getId())),\n 'method' => 'PUT',\n ));\n\n $form->add('submit', SubmitType::class, array('label' => 'Update'));\n\n return $form;\n }", "private function createEditForm(PersonnelPersonnel $entity)\n {\n $form = $this->createForm(new PersonnelPersonnelType(), $entity, array(\n 'action' => $this->generateUrl('personnelpersonnel_update', array('id' => $entity->getIdenuniq())),\n 'method' => 'PUT',\n ));\n\n // $form->add('submit', 'submit', array('label' => 'Update'));\n\n return $form;\n }", "private function createEditForm(Propietario $entity)\n {\n $form = $this->createForm(\n new PropietarioType(),\n $entity,\n array(\n 'action' => $this->generateUrl('propietario_update', array('id' => $entity->getId())),\n 'method' => 'PUT',\n )\n );\n\n $form->add('submit', 'submit', array('label' => 'Update'));\n\n return $form;\n }", "private function createEditForm(Equipo $entity)\n {\n $form = $this->createForm(new EquipoType(), $entity, array(\n 'action' => $this->generateUrl('tecnoequipo_update', array('id' => $entity->getId())),\n 'method' => 'PUT',\n ));\n\n $form->add('submit', 'submit', array('label' => 'Update'));\n\n return $form;\n }", "private function createEditForm(Compte $entity)\n {\n $form = $this->createForm(new CompteType(), $entity, array(\n 'action' => $this->generateUrl('compte_update', array('id' => $entity->getId())),\n 'method' => 'POST',\n ));\n\n $form->add('submit', 'submit', array('label' => 'Mettre à jour'));\n\n return $form;\n }", "private function createEditForm(AdmTipoAporte $entity)\r\n {\r\n $form = $this->createForm(new AdmTipoAporteType(), $entity, array(\r\n 'action' => $this->generateUrl('admtipoaporte_update', array('id' => $entity->getId())),\r\n 'method' => 'PUT',\r\n ));\r\n\r\n $form->add('submit', 'submit', array('label' => 'Actualizar','attr'=>array('class'=>'btn btn-success btn-sm')));\r\n\r\n return $form;\r\n }", "private function createEditForm(Picture $entity)\n {\n $form = $this->createForm(new PictureType(), $entity, array(\n 'action' => $this->generateUrl('picture_update', array('id' => $entity->getId())),\n 'method' => 'PUT',\n ));\n\n $form->add('submit', 'submit', array('label' => 'Update'));\n\n return $form;\n }", "private function createEditForm(Functions $entity) {\n $session = $this->get(\"session\");\n $form = $this->createForm(new FunctionsType(), $entity, array(\n 'action' => $this->generateUrl('hall_update', array('id' => $entity->getId())),\n 'method' => 'PUT',\n \n ));\n\n $form->add('submit', 'submit', array('label' => 'Update'));\n\n return $form;\n }", "private function createEditForm(Intervalosips $entity)\n {\n $form = $this->createForm(new IntervalosipsType(), $entity, array(\n 'action' => $this->generateUrl('intervalosips_update', array('id' => $entity->getId())),\n 'method' => 'PUT',\n ));\n\n $form->add('submit', 'submit', array('label' => 'Atualizar'));\n\n return $form;\n }", "private function createEditForm(Feriado $entity)\n {\n $form = $this->createForm(new FeriadoType(), $entity, array(\n 'action' => $this->generateUrl('feriado_update', array('id' => $entity->getId())),\n 'method' => 'PUT',\n ));\n\n $form->add('submit', 'submit', array('label' => 'Update'));\n\n return $form;\n }", "private function createEditForm(IntrestConfig $entity) {\n\t\t$form = $this->createForm(new IntrestConfigType(), $entity, array(\n\t\t\t'action' => $this->generateUrl('member_intrestconfig_update', array('id' => $entity->getId())),\n\t\t\t'method' => 'PUT',\n\t\t));\n\n\t\t$form->add('submit', 'submit', array('label' => 'Update'));\n\n\t\treturn $form;\n\t}", "public function editContactAction() {\n $aGetData = $this->getRequest()->getQuery();\n $id = $aGetData['id'];\n\n /*\n * Verifico si me llega un ID por POST\n */\n if (!$id) {\n $aPostData = $this->getRequest()->getPost();\n $id = $aPostData['id'];\n }\n\n /*\n * En el caso de que este el ID, busco el registro en la DB\n * En el caso que ID este null, creo un nuevo objeto\n */\n if ($id) {\n $object = $this->getEntityManager()->getRepository('Iem\\Entity\\Contact')->find($id);\n $new = false;\n } else {\n $object = new \\Iem\\Entity\\Contact();\n $new = true;\n }\n\n /*\n * Declar el Formulario\n * Defino el Hidratador de Doctrine\n * Hago el Bind entre el Formulario y el objeto\n */\n $form = new \\Iem\\Form\\Contact($this->getEntityManager());\n $form->setHydrator(new \\DoctrineModule\\Stdlib\\Hydrator\\DoctrineObject($this->getEntityManager()));\n $form->bind($object);\n\n /*\n * Verifico el Post, valido formulario y persisto en caso positivo\n */\n if ($this->getRequest()->isPost()) {\n $form->setData($this->getRequest()->getPost());\n\n $form->setInputFilter($object->getInputFilter());\n if ($form->isValid()) {\n\n if ($this->zfcUserAuthentication()->hasIdentity()) {\n $user = $this->zfcUserAuthentication()->getIdentity();\n }\n\n if ($new) {\n $object->setCreatedBy($user);\n $object->setLastUpdatedBy($user);\n } else {\n $object->setLastUpdatedBy($user);\n }\n\n\n $this->getEntityManager()->persist($object);\n $this->getEntityManager()->flush();\n $form->bind($object);\n $persist = true;\n } else {\n $persist = false;\n }\n }\n\n /*\n * Paso la variable persist a la view\n * Defino terminal true para no renderizar el layout (ajax)\n */\n $view = new ViewModel(array('form' => $form,\n 'persist' => $persist));\n $view->setTerminal(true);\n return $view;\n }", "public function edit(Form $form)\n {\n //\n }", "private function createEditForm(Endroit $entity)\n {\n $form = $this->createForm(new EndroitType(), $entity, array(\n 'action' => $this->generateUrl('endroit_update', array('id' => $entity->getId())),\n 'method' => 'PUT',\n ));\n\n $form->add('submit', 'submit', array('label' => 'Update'));\n\n return $form;\n }", "private function createEditForm(FrontBottom $entity)\n {\n $form = $this->createForm(new FrontBottomType(), $entity, array(\n 'action' => $this->generateUrl('frontbottom_update', array('id' => $entity->getId())),\n 'method' => 'PUT',\n ));\n\n $form->add('submit', 'submit', array('label' => 'Update'));\n\n return $form;\n }", "private function createEditForm(Bien $entity)\n {\n $form = $this->createForm(new BienType(), $entity, array(\n 'action' => $this->generateUrl('bien_update', array('id' => $entity->getId())),\n 'method' => 'PUT',\n ));\n\n $form->add('submit', 'submit', array('label' => 'Update'));\n\n return $form;\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(CaracteristicasEquipo $entity)\n {\n $form = $this->createForm(new CaracteristicaEquipoType(), $entity, array(\n 'action' => $this->generateUrl('caracteristicasequipo_update', array('id' => $entity->getId())),\n 'method' => 'PUT',\n ));\n\n $form->add('submit', 'submit', array('label' => 'Update'));\n\n return $form;\n }", "private function createEditForm(Galeria $entity, $tipo=\"imagen\")\r\n {\r\n if($tipo == \"imagen\"){\r\n $form = $this->createForm(new GaleriaType(), $entity, array(\r\n 'action' => $this->generateUrl('galerias_update', array('id' => $entity->getId())),\r\n 'method' => 'PUT',\r\n ));\r\n }else if($tipo== \"link_video\"){\r\n $form = $this->createForm(new GaleriaLinkVideoType(), $entity, array(\r\n 'action' => $this->generateUrl('galerias_update', array('id' => $entity->getId())),\r\n 'method' => 'PUT',\r\n ));\r\n }else if($tipo==\"parcial\"){\r\n $form = $this->createForm(new GaleriaParcialType(), $entity, array(\r\n 'action' => $this->generateUrl('galerias_actualizar', array('id' => $entity->getId())),\r\n 'method' => 'PATCH',\r\n ));\r\n }\r\n\r\n //$form->add('submit', 'submit', array('label' => 'Update'));\r\n\r\n return $form;\r\n }", "public function buildEditForm(FormBuilderInterface $builder, array $options);", "private function createEditForm(Feed $entity)\n {\n $form = $this->createForm(new FeedType($this->getDoctrine()->getManager()), $entity, array(\n 'action' => $this->generateUrl('update', array('id' => $entity->getId())),\n 'method' => 'PUT',\n ));\n\n $form->add('submit', 'submit', array('label' => 'Update'));\n\n return $form;\n }", "private function createEditForm(PromoCmdes $entity)\n {\n $form = $this->createForm(PromoCmdesType::class, $entity, array(\n 'action' => $this->generateUrl('adminPromoCmdes_update', array('id' => $entity->getId())),\n 'method' => 'PUT',\n ));\n\n $form->add('submit', 'submit', array('label' => 'Update'));\n\n return $form;\n }", "private function createEditForm(SkBusiness $entity) {\n $form = $this->createForm(new SkBusinessSettingsType($entity), $entity, array(\n 'action' => $this->generateUrl('business_settings_admin_update', array('id' => $entity->getId())),\n 'method' => 'PUT',\n ));\n\n// $form->add('submit', 'submit', array('label' => 'Update'));\n\n return $form;\n }", "private function createEditForm(Dzialy $entity) {\n $form = $this->createForm(new DzialyType(true), $entity, array(\n 'action' => $this->generateUrl('dzialy_update', array('id' => $entity->getId())),\n 'method' => 'PUT',\n ));\n\n \n\n return $form;\n }", "private function createEditForm(SolMantenimientoIdentificacion $entity)\n {\n $form = $this->createForm(new SolMantenimientoType(), $entity, array(\n 'action' => $this->generateUrl('solmantenimientoidentificacion_update', array('id' => $entity->getId())),\n 'method' => 'PUT',\n ));\n\n $form->add('submit', 'submit', array('label' => 'Actualizar', 'attr'=>array('class'=>'btn btn-primary btn-lg btn-block')));\n\n return $form;\n }", "public function editAction($id)\n {\n $em = $this->getDoctrine()->getManager();\n\n $entity = $em->getRepository('SiseCoreBundle:PersonnelPersonnel')->find($id);\n $formpers = $this->container->get('form.factory')->createBuilder(new NomenclatureSoussituationadministrativeType())->getForm();\n if (!$entity) {\n throw $this->createNotFoundException('Unable to find PersonnelPersonnel entity.');\n }\n $editForm = $this->createEditForm($entity);\n // $deleteForm = $this->createDeleteForm($id);\n\n return $this->render('SiseCoreBundle:PersonnelPersonnel:edit.html.twig', array(\n 'entity' => $entity,\n 'code' => $id,\n 'edit_form' => $editForm->createView(),\n // 'delete_form' => $deleteForm->createView(),\n 'formpers' => $formpers->createView(),\n ));\n }", "function EditProfileForm() {\n\t\t$member = $this->Member();\n\t\t$show_openid = (isset($member->IdentityURL) && !empty($member->IdentityURL));\n\n\t\t$fields = $member ? $member->getForumFields($show_openid) : singleton('Member')->getForumFields($show_openid);\n\t\t$validator = $member ? $member->getForumValidator(false) : singleton('Member')->getForumValidator(false);\n\t\tif($holder = DataObject::get_one('ForumHolder', \"\\\"DisplaySignatures\\\" = '1'\")) {\n\t\t\t$fields->push(new TextareaField('Signature', 'Forum Signature'));\n\t\t}\n\n\t\t$form = new Form($this, 'EditProfileForm', $fields,\n\t\t\tnew FieldList(new FormAction(\"dosave\", _t('ForumMemberProfile.SAVECHANGES','Save changes'))),\n\t\t\t$validator\n\t\t);\n\n\t\tif($member && $member->hasMethod('canEdit') && $member->canEdit()) {\n\t\t\t$member->Password = '';\n\t\t\t$form->loadDataFrom($member);\n\t\t\treturn $form;\n\t\t}\n\n\t\treturn null;\n\t}", "private function createEditForm(EntradaDetalles $entity)\n {\n $form = $this->createForm(new EntradaDetallesType(), $entity, array(\n 'action' => '',\n 'method' => 'PUT',\n 'mostrar_campo_articulo' => false,\n ));\n\n $form->add('submit', 'submit', array('label' => 'Actualizar', 'icon' => 'floppy-disk', 'attr' => array('class' => 'btn-primary')));\n\n return $form;\n }", "private function createEditForm(Todoitems $entity)\n {\n $form = $this->createForm(new TodoitemsType(), $entity, array(\n 'action' => $this->generateUrl('todoitems_update', array('id' => $entity->getId())),\n 'method' => 'PUT',\n 'id' => $this->getUser()->getId(),\n ));\n\n $form->add('submit', 'submit', array('label' => 'Update'));\n\n return $form;\n }", "private function createEditForm(Experience $entity)\n {\n $form = $this->createForm(new ExperienceType(), $entity);\n\n $form->add('submit', 'submit', array('label' => 'Valider'));\n\n return $form;\n }", "private function createEditForm(Viaje $entity)\n {\n $form = $this->createForm(new ViajeType(), $entity, array(\n 'action' => $this->generateUrl('viaje_update', array('id' => $entity->getId())),\n 'method' => 'PUT',\n ));\n\n $form->add('submit', 'submit', array('label' => 'Actualizar'));\n\n return $form;\n }", "private function createEditForm(BonCommandeLigne $entity)\n {\n $form = $this->createForm(new BonCommandeLigneType(), $entity, array(\n 'action' => $this->generateUrl('boncommandeligne_update', array('id' => $entity->getId())),\n 'method' => 'PUT',\n ));\n\n $form->add('submit', 'submit', array('label' => 'Update'));\n\n return $form;\n }", "public function edit(FormBuilder $formBuilder, $id)\n {\n $this->checkAccess('edit');\n $model = $this->model->find($id);\n\n $form = $formBuilder->create($this->form, [\n 'method' => 'PUT',\n 'url' => route($this->url . '.update', $id),\n 'model' => $model\n ])->modify('group_id', 'select', [\n 'attr' => ['class' => 'frm-e form-control', 'id' => 'groupInput'],\n 'choices' => \\App\\Models\\Groups::pluck(\"group_name\", \"group_id\")->toArray(),\n 'selected' => $model->group_id,\n 'empty_value' => '- Pilih Grup -',\n 'label' => 'Pengguna Untuk Grup'\n ]);\n\n return view($this->folder . '.form', [\n 'title' => $this->title,\n 'row' => $model,\n 'form' => $form,\n 'breadcrumb' => 'new-' . $this->url\n ]);\n }", "private function createEditForm(Fluidite $entity)\n {\n $form = $this->createForm(new FluiditeType(), $entity, array(\n 'action' => $this->generateUrl('fluidite_update', array('id' => $entity->getId())),\n 'method' => 'PUT',\n ));\n\n $form->add('submit', 'submit', array(\n 'label' => 'Update',\n 'attr' => array(\n 'class' => 'btn ')\n \n ));\n\n return $form;\n }", "public function edit(form $form)\n {\n //\n }", "public function createEditSupplierForm()\n\t{\n\t\t$form = $this->createForm();\n\n\t\t$form->addSubmit(\"create\", \"Editovať dodávateľa\")\n\t\t\t->setAttribute('class', 'btn-primary');\n\n\t\t$form->addHidden(\"supplierId\");\n\t\t$form->onSuccess[] = array($this, \"editSupplierSubmitted\");\n\n\t\treturn $form;\n\t}", "private function createEditForm(Examen $entity)\n {\n $form = $this->createForm(new ExamenType(), $entity, array(\n 'action' => $this->generateUrl('examen_update', array('id' => $entity->getId())),\n 'method' => 'PUT',\n ));\n\n $form->add('submit', 'submit', array('label' => 'Update'));\n\n return $form;\n }", "private function createEditForm(Achats $entity)\n {\n $form = $this->createForm(new AchatsType(), $entity, array(\n 'action' => $this->generateUrl('achats_update', array('id' => $entity->getId())),\n 'method' => 'PUT',\n ));\n\n $form->add('submit', 'submit', array('label' => 'Modifier'));\n\n return $form;\n }", "private function createEditForm(Link $entity)\n {\n $form = $this->createForm(new LinkType(), $entity, array(\n 'action' => $this->generateUrl('MesdHelpWikiBundle_link_update', array('id' => $entity->getId())),\n 'method' => 'PUT',\n ));\n\n $form->add('submit', 'submit', array('label' => 'Update'));\n\n return $form;\n }", "private function createEditForm(PeriodoDeInscricao $entity)\n {\n $form = $this->createForm(new PeriodoDeInscricaoType(), $entity, array(\n 'action' => $this->generateUrl('periododeinscricao_update', array('id' => $entity->getId())),\n 'method' => 'PUT',\n ));\n\n $form->add('submit', 'submit', array('label' => 'Update'));\n\n return $form;\n }", "private function createEditForm(Estadofondo $entity)\n {\n $form = $this->createForm(new EstadofondoType(), $entity, array(\n 'action' => $this->generateUrl('estadofondo_update', array('id' => $entity->getId())),\n 'method' => 'PUT',\n ));\n\n $form->add('submit', 'submit', array('label' => 'Update'));\n\n return $form;\n }", "private function createEditForm(User $entity)\n {\n $form = $this->createForm(new ListProposedAppointmentType(), $entity, array(\n 'action' => $this->generateUrl('intranet_cv_proposedappointment_update'),\n 'method' => 'PUT',\n ));\n\n $form->add('submit', 'submit', array('label' => 'Update'));\n\n return $form;\n }", "private function createEditForm(ActionListe $entity)\n {\n $form = $this->createForm(new ActionListeType(), $entity, array(\n 'action' => $this->generateUrl('actionliste_update', array('id' => $entity->getId())),\n 'method' => 'PUT',\n ));\n\n $form->add('submit', 'submit', array('label' => 'Modifier'));\n\n return $form;\n }", "private function createEditForm(Cosecha $entity)\n {\n $form = $this->createForm(new CosechaType(), $entity, array(\n 'action' => $this->generateUrl('cosecha_update', array('id' => $entity->getId())),\n 'method' => 'PUT',\n ));\n\n $form->add('submit', 'submit', array('label' => 'Update'));\n\n return $form;\n }", "public function createComponentEditForm($val){\n\t\t$form = new \\Nette\\Application\\UI\\Form();\n\t\t$url = $this->link('pages:edit');\n\t\t$form->setAction($url);\n\t\t$form->addText('name', 'Název:')->setRequired('Zadejte název.')->setDefaultValue($val->name);\n\t\t$form->addText('title', 'Popis:')->setRequired('Zadejte popis.')->setDefaultValue($val->title);\n\t\t$form->addText('metadata', 'Klíčová slova:')->setRequired('Zadejte klíčová slova.')->setDefaultValue($val->metadata);\n\t\t$form->addText('rewrite', 'Adresa:')->setDefaultValue($val->rewrite);\n\t\t$form->addCheckbox('active', 'Aktivní')->setDefaultValue($val->active);\n\t\t$form->addText('order', 'Pořadí:')->setDefaultValue($val->order)->addRule(Form::NUMERIC, 'Musí být číslo.');\n\t\t$form->addHidden('id', $val->id);\n\t\t$form->addSubmit('submit', 'Vytvořit');\n\t\t$form->onSubmit[] = callback($this, 'editFormSubmitted');\n\t\treturn $form;\n\t}", "protected function _edit(){\n\t\treturn $this->_editForm();\n\t}", "private function createEditForm(AdTiposComision $entity)\n {\n $form = $this->createForm(new AdTiposComisionType(), $entity, array(\n 'action' => $this->generateUrl('adtiposcomision_update', array('id' => $entity->getIdTipoComision())),\n 'method' => 'PUT',\n ));\n\n $form->add('submit', 'submit', array('label' => 'Update'));\n\n return $form;\n }", "private function createEditForm(Pays $entity)\n {\n $form = $this->createForm(new PaysType(), $entity, array(\n 'action' => $this->generateUrl('administration_pays_update', array('id' => $entity->getId())),\n 'method' => 'PUT',\n ));\n\n $form->add('submit', 'submit', array('label' => 'Update'));\n\n return $form;\n }", "private function createEditForm(Incapacidad $entity)\n {\n $form = $this->createForm(new IncapacidadType(), $entity, array(\n 'action' => $this->generateUrl('admin_incapacidad_update', array('id' => $entity->getId())),\n 'method' => 'PUT',\n ));\n\n $form->add('submit', 'submit', array('label' => 'Modificar','attr'=>\n array('class'=>'btn btn-primary btn-sm')\n ));\n\n return $form;\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 editformAction(){\n\t\t$this->loadLayout();\n $this->renderLayout();\n\t}", "public function edit($id) {\n $email = Tbl_emails::find($id);\n $data['email'] = $email;\n\n// $departments = Tbl_emailcategory::all();\n// $options = '<option value=\"\">Select Email Category</option>';\n// foreach ($departments as $types) {\n// $selected = ($types->ecat_id == $email->ecat_id) ? 'selected' : '';\n// $options .= '<option value=\"' . $types->ecat_id . '\" ' . $selected . '>' . $types->category . '</option>';\n// }\n// $data['department_options'] = $options;\n return view('admin.emails.edit')->with('data', $data);\n }", "private function createEditForm(Project $entity)\n {\n $form = $this->createForm(new ProjectType(), $entity);\n $form->add('submit', 'submit', array('label' => 'Update'));\n return $form;\n }", "public function edit($model, $form);", "private function createEditForm(ComponentGroup $entity)\n {\n $form = $this->createForm(ComponentGroupType::class, $entity, array(\n 'action' => $this->generateUrl('componentgroup_update', array('id' => $entity->getId())),\n 'method' => 'PUT',\n ));\n\n $form->add('submit', SubmitType::class, array('label' => 'Update'));\n\n return $form;\n }", "private function createEditForm(Blackout $entity)\n {\n\n $form = $this->createForm(new BlackoutType(), $entity, array(\n 'action' => $this->generateUrl('blackout_update', array('id' => $entity->getId())),\n 'method' => 'POST',\n 'attr' => array(\n 'class' => 'form-horizontal',\n 'novalidate' => 'novalidate',\n )\n ));\n\n $form->add('submit', 'submit', array('label' => 'Submit', 'attr' => array('class' => 'btn btn-primary')));\n return $form;\n }", "private function createEditForm(Asignacion $entity)\n {\n $form = $this->createForm(new AsignacionType(), $entity, array(\n 'action' => $this->generateUrl('tecnoasignar_update', array('id' => $entity->getId())),\n 'method' => 'PUT',\n ));\n\n $form->add('submit', 'submit', array('label' => 'Update'));\n\n return $form;\n }", "public function ItemEditForm() {\n $form = parent::ItemEditForm();\n\n return $form;\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 }", "private function createEditForm(SkIdentificationModule $entity)\n {\n $form = $this->createForm(new SkIdentificationModuleType(), $entity, array(\n 'action' => $this->generateUrl('identification_module_admin_update', array('id' => $entity->getId())),\n 'method' => 'PUT',\n ));\n\n // $form->add('submit', 'submit', array('label' => 'Update'));\n\n return $form;\n }", "public function editAction() {\n $entities = $this\n ->_getRepository()\n ->findAllOrdered();\n $entities = $this->_transformAllConfigEntities($entities);\n $form = $this->createForm(new ConfigType(), array(\n 'configentities' => $entities,\n ));\n\n return array(\n 'form' => $form->createView(),\n );\n }", "private function createEditForm(ingrediente $entity)\n {\n $form = $this->createForm(new ingredienteType(), $entity, array(\n 'action' => $this->generateUrl('ingrediente_update', array('id' => $entity->getId())),\n 'method' => 'PUT',\n ));\n\n $form->add('submit', 'submit', array('label' => 'Update'));\n\n return $form;\n }", "private function createEditForm(Education $entity)\n {\n $user = $this->get('security.context')->getToken()->getUser();\n $form = $this->createForm(new EducationType($user->getId()), $entity, array(\n 'action' => $this->generateUrl('education_update', array('id' => $entity->getId())),\n 'method' => 'PUT',\n 'attr' => array(\n 'class' => 'form-horizontal',\n 'novalidate' => 'novalidate',\n )\n ));\n\n $form->add('submit', 'submit', array('label' => 'Update', 'attr' => array('class' => 'btn btn-primary')));\n $form->add('reset', 'reset', array('label' => 'Reset', 'attr' => array('class' => 'btn btn-danger')));\n\n\n return $form;\n }", "private function createEditForm(Cidades $entity)\n {\n $form = $this->createForm(new CidadesType(), $entity, array(\n 'action' => $this->generateUrl('cidades_update', array('id' => $entity->getId())),\n 'method' => 'PUT',\n ));\n\n $form->add('submit', 'submit', array('label' => 'Update'));\n\n return $form;\n }", "private function createEditForm(DemandePermission $entity)\n {\n $form = $this->createForm(new DemandePermissionType(), $entity, array(\n 'action' => $this->generateUrl('demandepermission_update', array('id' => $entity->getId())),\n 'method' => 'PUT',\n ));\n\n $form->add('submit', 'submit', array('label' => 'Update'));\n\n return $form;\n }", "public function action_edit()\n {\n if (!Auth::instance()->has_access('contacts2_edit') && !Auth::instance()->has_access('contacts2_view_limited')) {\n if ($this->request->is_ajax()) {\n $this->response->status(403);\n } else {\n\t\t\t\tIbHelpers::set_message(\"You need access to the &quot;edit contact&quot; permission to perform this action.\", 'warning popup_box');\n $this->request->redirect('/admin');\n }\n }\n\n $view = View::factory('edit_contact');\n\n // Load contact\n $contact_id = $this->request->param('id');\n $contact = new Model_Contacts(is_numeric($contact_id) ? $contact_id : null);\n $relations = Model_Contacts::getRelations();\n $permissions = Model_Contacts::getPermissions($contact_id);\n $messages = null;\n if (Model_Plugin::is_enabled_for_role('Administrator', 'Messaging')) {\n $messaging = new Model_Messaging();\n $messages = $messaging->search_messages(array(\n 'target' => $this->request->param('id'),\n 'target_type' => 'CMS_CONTACT'\n ));\n }\n\n // Fill the template\n $view->contact_details = $contact->get_details();\n $view->mailing_list = Model_Contacts::get_mailing_list_all();\n $view->messages = $messages;\n $view->relations = $relations;\n $view->permissions = $permissions;\n $view->communication_types = Model_Contacts::get_communication_types();\n $view->preference_types = Model_Contacts::get_preference_types();\n $view->notes = Model_Notes::search(array('type' => 'Contact', 'reference_id' => $contact_id));\n $view->documents = $contact_id ? Model_Document::doc_list_documents(array($contact_id), null, false) : '';\n\t\t$view->countries = Model_Event::getCountryMatrix();\n\n $extensions = Model_Contacts::getExtentions();\n foreach ($extensions as $extension) {\n if ($extension->is_container()) {\n $ext_data = $extension->getData($view->contact_details, $this->request);\n if ($ext_data) {\n $container_view = View::factory($extension->get_container());\n $container_view->contact = $view;\n\t\t\t\t\t$container_view->countries = $view->countries;\n $container_view->data = $ext_data;\n $view = $container_view;\n }\n }\n }\n\n /*\n * if ajax then send the contact edit fragment\n * else send whole page\n */\n if ($this->request->is_ajax()) {\n $this->auto_render = false;\n $messages = IbHelpers::get_messages();\n $view->alert = $messages;\n echo $view;\n } else {\n // Assets\n $this->template->scripts[] = '<script src=\"' . URL::get_engine_plugin_assets_base('contacts2') . 'js/contacts.js\"></script>';\n\n // Select the view\n $this->template->body = $view;\n }\n }", "public function editAction()\n {\n $profileRepoFactory = new Application_Factory_ProfileRepository();\n $profileModelFactory = new Application_Factory_ProfileModel();\n $profileForm = new Application_Form_Profile(['id' => 'edit-profile']);\n\n $profileForm->submit->setLabel(\"Save\");\n $profileRepo = $profileRepoFactory->createService();\n\n $this->view->profileForm = $profileForm;\n\n //GET request handler\n $visitEditProfilePage = !$this->getRequest()->isPost();\n if ($visitEditProfilePage) {\n $profileId = (int) $this->getParam('id', 0);\n $profileEntity = $profileRepo->findById($profileId);\n $profileForm->bindFromProfile($profileEntity);\n return; //render edit profile form\n }\n\n //POST request handler\n $postInvalidProfile = !$profileForm->isValid($this->getRequest()->getPost());\n if ($postInvalidProfile) {\n return; //represent profile form with error messages\n }\n\n //Persit filtered profile to persistent\n $profileRepo->save($profileModelFactory->createService($profileForm->getValues()));\n $this->_helper->redirector('index', 'profile', 'default');\n }", "public function createEditForm()\n {\n $form = new Zend_Form();\n\n $form->setAction($this->webroot.'/folder/edit')\n ->setMethod('post');\n\n $name = new Zend_Form_Element_Text('name');\n $name->setAttribs(array(\n 'placeholder' => $this->t('Name of the folder'),\n 'autofocus' => 'autofocus',\n 'required' => 'required',\n ))\n ->setRequired(true)\n ->addValidator('NotEmpty', true);\n\n $description = new Zend_Form_Element_Textarea('description');\n $description->setAttribs(array('placeholder' => $this->t('Optional')));\n $teaser = new Zend_Form_Element_Text('teaser');\n $teaser->setAttribs(array('placeholder' => $this->t('Optional')));\n $teaser->setAttrib('MAXLENGTH', '250');\n $submit = new Zend_Form_Element_Submit('submit');\n $submit->setLabel($this->t('Save'));\n\n $form->addElements(array($name, $description, $submit, $teaser));\n\n return $form;\n }", "public function edit($id)\n {\n $contact=EnterComForum::find($id);\n return view('admin.pages.formEnterpreuner.edit')->withContact($contact);\n }", "private function createEditForm(Task $entity) //recibiendo nuestra entidad de tarea\n {\n //$form = $this->createForm(new TaskType, $entity, array( \n //pero para Symfony3.4.15 ahora es: \n $form = $this->createForm(TaskType::class, $entity, array(\n 'action' => $this->generateUrl('infunisa_task_update', array('id' => $entity->getId())),\n 'method' => 'PUT' //como estamos editando la tarea usamos PUT\n ));\n \n return $form;\n }", "public function editorderformAction(){\n\t\ttry{\n\t\t\t$sm = $this->getServiceLocator();\n\t\t\t$identity = $sm->get('AuthService')->getIdentity();\n\t\t\t\n\t\t\t$config = $sm->get('Config');\n\t\t\t\n\t\t\t$request = $this->getRequest();\n\t\t\t\n\t\t\t$viewRender = $sm->get('ViewRenderer');\n\t\t\t$htmlViewPart = new ViewModel();\n\t\t\t\n\t\t\tif($request->isPost()){\n\t\t\t\t$posts = $request->getPost()->toArray();\n\t\t\t\t$order_id = $posts['order_id'];\n\t\t\t\t\n\t\t\t\t$orderTable = $sm->get('Order\\Model\\OrderTable');\n\t\t\t\t$order = (array)$orderTable->fetchOrderDetails($order_id);\n\t\t\t\t$order['exp_delivery_date'] = date($config['formDateFormat'], strtotime($order['exp_delivery_date']));\n\t\t\t\t$orderAttachments = (array)$orderTable->fetchOrderAttachments($order_id);\n\t\t\t\tif(count($orderAttachments) > 0){\n\t\t\t\t\t$order['order_attachment'] = json_encode($orderAttachments);\n\t\t\t\t}\n\t\t\t\t$orderFullAttachments = (array)$orderTable->fetchOrderAttachments($order_id, true);\n\t\t\t\t$newOrderForm = $sm->get('Order\\Form\\OrderForm');\n\t\t\t\t$newOrderForm->get('order_save')->setLabel(\"Update\");\n\t\t\t\t$newOrderForm->setData($order);\n\t\t\t\t\n\t\t\t\t$htmlViewPart->setTemplate('order/index/neworder')\n\t\t\t\t\t\t\t ->setTerminal(true)\n\t\t\t\t\t\t\t ->setVariables(array('newOrderForm' => $newOrderForm, 'orderFullAttachments' => $orderFullAttachments, 'config' => $config));\n\t\t\t}\n\t\t\n\t\t\t$html = $viewRender->render($htmlViewPart);\t\n\t\t\t\n\t\t\treturn $this->getResponse()->setContent($html);\n\t\t}catch(Exception $e){\n\t\t\t\\De\\Log::logApplicationInfo ( \"Caught Exception: \" . $e->getMessage () . ' -- File: ' . __FILE__ . ' Line: ' . __LINE__ );\n\t\t}\n\t}", "private function createEditForm(Configuracao $entity)\n {\n $translated = $this->get('translator');\n $form = $this->createForm(new ConfiguracaoType($this->get('security.authorization_checker')->isGranted('ROLE_ADMIN')), $entity, array(\n 'action' => $this->generateUrl('configuracao_update', array('id' => $entity->getId())),\n 'method' => 'PUT',\n ));\n\n $form->add('submit', 'submit', array('label' => $translated->transChoice('txt.editar',0,array(),'messagesCommonBundle'), 'attr' => array('class' => 'btn btn-primary btn-lg')));\n\n return $form;\n }", "protected function createComponentEditForm() {\r\n\t\t$form = new Form;\r\n\t\t$form->getElementPrototype()->class(\"formWide\");\r\n\t\t$options = array(0 => \"Default\", 1 => \"Odkaz na obsah\", 3 => \"Odkaz na položku menu\");\r\n\t\t// easy way how to create url slug\r\n\t\t$form->addText(\"title\", \"Název:\")\r\n\t\t\t\t->setAttribute('onchange', '\r\n\t\t\t\t\t\t\tvar nodiac = { \"á\": \"a\", \"č\": \"c\", \"ď\": \"d\", \"é\": \"e\", \"ě\": \"e\", \"í\": \"i\", \"ň\": \"n\", \"ó\": \"o\", \"ř\": \"r\", \"š\": \"s\", \"ť\": \"t\", \"ú\": \"u\", \"ů\": \"u\", \"ý\": \"y\", \"ž\": \"z\" };\r\n\t\t\t\t\t\t\ts = $(\"#frmeditForm-title\").val().toLowerCase();\r\n\t\t\t\t\t\t\tvar s2 = \"\";\r\n\t\t\t\t\t\t\tfor (var i=0; i < s.length; i++) {\r\n\t\t\t\t\t\t\t\ts2 += (typeof nodiac[s.charAt(i)] != \"undefined\" ? nodiac[s.charAt(i)] : s.charAt(i));\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tresult=s2.replace(/[^a-z0-9_]+/g, \"-\").replace(/^-|-$/g, \"\");\r\n\t\t\t\t\t\t\t$(\"#frmeditForm-url\").val(result);\r\n\t\t\t\t\t\t');\r\n\t\t$form->addText(\"url\", \"url:\")->setAttribute(\"readonly\", \"readonly\");\r\n\t\tif (!$this->onlyTree) {\r\n\t\t\t$form->addSelect(\"target_type\", \"Cíl:\", $options);\r\n\t\t\t$content = $this->prepareContentSelectBox();\r\n\t\t\t$menuContent = $this->prepareMenuContentSelectBox();\r\n\t\t\t$form->addSelect(\"target_id\", \"Odkazovaný obsah:\", $content)->setPrompt(\"Pouze při zvolení výše\");\r\n\t\t\t$form->addSelect(\"target_menu\", \"Odk. položka menu:\", $menuContent)->setPrompt(\"Pouze při zvolení výše\");\r\n\t\t}\r\n\t\t$form->addHidden(\"parent_id\", $this->parent_id);\r\n\t\t$form->addHidden(\"edit_id\", $this->edit_id);\r\n\t\t//filling form\r\n\t\tif ($this->edit_id or $this->edit_id === \"0\") {\r\n\t\t\t$defFromDb = $this->closureModel->getItemById($this->edit_id);\r\n\t\t\t$defaults = new \\Nette\\ArrayHash;\r\n\t\t\tforeach ($defFromDb as $key => $value) {\r\n\t\t\t\t$defaults->$key = $value;\r\n\t\t\t}\r\n\t\t\tif ($this->edit_id === \"0\") {\r\n\t\t\t\t$form[\"title\"]->setDisabled();\r\n\t\t\t}\r\n\t\t\tif (!$this->onlyTree) {\r\n\t\t\t\t$t = $defaults->target;\r\n\t\t\t\tif (!Validators::isNumericInt($t)) {\r\n\t\t\t\t\t$menuItem = $this->checkTargetMenuItemExists($t);\r\n\t\t\t\t\tif ($menuItem) {\r\n\t\t\t\t\t\t$defaults->target_type = 3;\r\n\t\t\t\t\t\t$defaults->target_menu = $menuItem;\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\t$contentId = $this->checkTargetContentExists($t);\r\n\t\t\t\t\t\t$defaults->target_type = 1;\r\n\t\t\t\t\t\t$defaults->target_id = $contentId;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t$form[\"target_menu\"]->getControlPrototype()->addClass(\"formFieldInvisible\");\r\n\t\t\t\t} elseif ($t <= 0) {\r\n\t\t\t\t\t$defaults->target_type = 0;\r\n\t\t\t\t\t$form[\"target_menu\"]->getControlPrototype()->addClass(\"formFieldInvisible\");\r\n\t\t\t\t\t$form[\"target_id\"]->getControlPrototype()->addClass(\"formFieldInvisible\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t$defaults->target = null;\r\n\t\t\t$form->setDefaults($defaults);\r\n\t\t}\r\n\r\n\t\t$form->addSubmit('save', 'Save')\r\n\t\t\t\t\t\t->setAttribute('onclick', '$(\"#frmeditForm-title\").trigger(\"change\")')\r\n\t\t\t\t->onClick[] = callback($this, 'editFormSubmitted');\r\n\t\t$form->setRenderer(new \\Kdyby\\BootstrapFormRenderer\\BootstrapRenderer());\r\n\t\treturn $form;\r\n\t}", "public function edit($id)\n\t{\n\t\t$message = Mail::findOrFail($id);\n\t\t\n\t\t$result = view('mail.compose', [\n\t\t\t'mode' => 'edit',\n\t\t\t'message' => $message,\n\t\t\t'attachments' => $message->attachments()->get(),\n\t\t\t'sources' => $this->getSources(),\n\t\t\t'teams' => $this->getTeams(),\n\t\t\t'folders' => $this->folders,\n\t\t\t'counts' => $this->getCounts(),\n\t\t\t'folderId' => $this->getFolderId(),\n\t\t\t'folderName' => $this->getFolderName(),\n\t\t\t'formAction' => route('mail_update', ['id' => $id]),\n\t\t\t'allowedExtensions' => self::getAllowedExtensions(),\n\t\t\t'allowedMimeTypes' => self::getAllowedMimeTypes()\n\t\t])->render();\n\t\t\n\t\treturn $result;\n\t}", "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 editAction($id)\n {\n if (!$this->get('security.context')->isGranted('ROLE_ADMIN') ) {\n return $this->redirect($this->generateUrl('error'), 302); \n }\n $em = $this->getDoctrine()->getManager();\n\n $entity = $em->getRepository('SytemSGBundle:Grupos')->find($id);\n\n if (!$entity) {\n throw $this->createNotFoundException('Unable to find Grupos entity.');\n }\n\n $editForm = $this->createEditForm($entity);\n $deleteForm = $this->createDeleteForm($id); \n return $this->render('SytemSGBundle:Grupos:edit.html.twig', array(\n 'entity' => $entity,\n 'edit_form' => $editForm->createView(),\n 'delete_form' => $deleteForm->createView(),\n ));\n }", "private function createEditForm(Panel $entity)\n {\n $form = $this->createForm(new PanelType(), $entity, array(\n 'action' => $this->generateUrl('paneles_update', array('id' => $entity->getId())),\n 'method' => 'PUT',\n ));\n\n $form->add('submit', 'submit', array('label' => 'Guardar'));\n\n return $form;\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 }", "private function createEditForm(TipoCamera $entity)\n {\n $form = $this->createForm(new TipoCameraType(), $entity, array(\n 'action' => $this->generateUrl('tipocamera_update', array('id' => $entity->getId())),\n 'method' => 'PUT',\n ));\n\n $form->add('submit', 'submit', array('label' => 'Modifica'));\n\n return $form;\n }", "private function createNotifyForm()\n {\n return $this->createFormBuilder(['emails' => implode(', ', $this->emails)])\n ->add('emails', TextareaType::class, ['label' => 'E-mails', 'attr' => ['placeholder' => 'E-mail Addresses...', 'required' => true]])\n ->getForm();\n }", "private function createEditForm(Inspection $entity)\n {\n $form = $this->createForm(new InspectionType(), $entity, array(\n 'action' => $this->generateUrl('inspection_update', array('id' => $entity->getId())),\n 'method' => 'PUT',\n ));\n\n $form->add('submit', 'submit', array('label' => 'Modifier','attr' => array('class' => 'btn btn-default'))); \n\n return $form;\n }", "public function edit(enquiryForm $enquiryForm)\n {\n //\n }" ]
[ "0.70298886", "0.65974236", "0.6443187", "0.6429276", "0.64146805", "0.6377842", "0.6372164", "0.6366241", "0.6334275", "0.6252145", "0.6235883", "0.615982", "0.614666", "0.60807306", "0.6068801", "0.6067389", "0.6066465", "0.605718", "0.60552603", "0.6022499", "0.60184187", "0.60134983", "0.60097635", "0.60050684", "0.60030097", "0.5984845", "0.59822387", "0.5981704", "0.5980389", "0.5972082", "0.59605217", "0.59600246", "0.59582895", "0.595079", "0.5947016", "0.5943905", "0.59337634", "0.59242946", "0.5919159", "0.5915338", "0.5914457", "0.5900739", "0.58986", "0.58983046", "0.58918947", "0.5879525", "0.58751553", "0.5868447", "0.5865556", "0.5863846", "0.5861214", "0.58577955", "0.5843042", "0.584289", "0.58425844", "0.58405304", "0.5827564", "0.5821982", "0.58191085", "0.5814832", "0.5813531", "0.58128196", "0.57997096", "0.57984173", "0.5788867", "0.5784702", "0.5783544", "0.5780919", "0.5780151", "0.57787865", "0.57760084", "0.57719225", "0.5768235", "0.5757386", "0.5755716", "0.57522666", "0.57518816", "0.57492816", "0.5747048", "0.5746585", "0.57455564", "0.5742886", "0.5719444", "0.571034", "0.5708253", "0.56926376", "0.56767213", "0.5676199", "0.5675186", "0.56737846", "0.56723565", "0.56701183", "0.5666663", "0.5665779", "0.566165", "0.5660416", "0.56586885", "0.5656243", "0.56498206", "0.5648626" ]
0.81388676
0
Creates a form to delete a GdpMails entity by id.
private function createDeleteForm($id) { return $this->createFormBuilder() ->setAction($this->generateUrl('gdpmails_delete', array('id' => $id))) ->setMethod('DELETE') ->add('submit', 'submit', array('label' => 'Delete')) ->getForm() ; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function createDeleteForm($id)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('personnelpersonnel_delete', array('id' => $id)))\n ->setMethod('DELETE')\n // ->add('submit', 'submit', array('label' => 'Delete'))\n ->getForm();\n }", "private function createDeleteForm($id)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('caracteristicasequipo_delete', array('id' => $id)))\n ->setMethod('DELETE')\n ->add('submit', 'submit', array('label' => 'Eliminar','attr' => array('class' => 'btn btn-danger')))\n ->getForm()\n ;\n }", "private function createDeleteForm($id)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('solmantenimientoidentificacion_delete', array('id' => $id)))\n ->setMethod('DELETE')\n ->add('submit', 'submit', array('label' => 'Borrar','attr'=>array('class'=>'btn btn-danger btn btn-danger btn-lg btn-block')))\n ->getForm()\n ;\n }", "private function createDeleteForm($id)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('grupos_delete', array('id' => $id)))\n ->setMethod('DELETE')\n ->add('submit', 'submit', array('label' => 'Delete'))\n ->getForm()\n ;\n }", "private function createDeleteForm($id)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('tipuscentre_delete', array('id' => $id)))\n ->setMethod('DELETE')\n ->getForm()\n ;\n }", "private function createDeleteForm($id)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('tecnoequipo_delete', array('id' => $id)))\n ->setMethod('DELETE')\n ->add('submit', 'submit', array('label' => 'ELIMINAR'))\n ->getForm()\n ;\n }", "private function createDeleteForm($id)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('picture_delete', array('id' => $id)))\n ->setMethod('DELETE')\n ->add('submit', 'submit', array('label' => 'Delete'))\n ->getForm()\n ;\n }", "private function createDeleteForm($id)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('propietario_delete', array('id' => $id)))\n ->setMethod('DELETE')\n ->add('submit', 'submit', array('label' => 'Delete'))\n ->getForm();\n }", "private function createDeleteForm($id)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('envase_ingreso_delete', array('id' => $id)))\n ->setMethod('DELETE')\n ->add('submit', 'submit', array('label' => 'Delete'))\n ->getForm()\n ;\n }", "private function createDeleteForm($id)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('pifeclassique_delete', array('id' => $id)))\n ->setMethod('DELETE')\n ->add('submit', 'submit', array('label' => 'Supprimer'))\n ->getForm()\n ;\n }", "private function genDeleteForm($id)\n {\n return $this->createFormBuilder(null, array('attr' => array( 'id' => 'ct_del_form', 'style' => 'display:none')))\n ->setAction($this->generateUrl('morus_fas_contacts_delete', array('id' => $id)))\n ->setMethod('DELETE')\n ->add('submit', 'submit', array('label' => $this->get('translator')->trans('btn.delete')))\n ->getForm();\n }", "public function createDeleteForm($id){\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('rsp_delete',array('id'=>$id)))\n ->setMethod('DELETE')\n ->add('submit','submit',array('label'=>'Delete'))\n ->getForm()\n ;\n }", "private function createDeleteForm($id) {\r\n return $this->createFormBuilder()\r\n ->setAction($this->generateUrl('rubrique_delete', array('id' => $id)))\r\n// ->setMethod('DELETE')\r\n ->add('submit', SubmitType::class, array('label' => 'Supprimer la rubrique courante'))\r\n ->getForm()\r\n ;\r\n }", "private function createDeleteForm($id)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('achats_delete', array('id' => $id)))\n ->setMethod('DELETE')\n ->add('submit', 'submit', array('label' => 'Supprimer'))\n ->getForm()\n ;\n }", "private function createDeleteForm($id)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('message'))\n ->add('annuler', 'reset', array ( 'label' => 'Annuler',\n 'attr' => array ( 'class' => 'btn btn-default' )\n )\n )\n ->getForm()\n ;\n }", "private function createDeleteForm($id){\n\t\treturn $this->createFormBuilder()\n\t\t\t->setAction($this->generateUrl('reserva_delete', array('id' => $id)))\n\t\t\t->setMethod('DELETE')\n\t\t\t->add('submit', 'submit', array('label' => 'Eliminar Reserva', 'attr' => array('class'=>'btn btn-danger btn-block')))\n\t\t\t->getForm()\n\t\t;\n\t}", "private function createDeleteForm($id)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('picfooter_delete', array('id' => $id)))\n ->setMethod('DELETE')\n ->add('submit', 'submit', array('label' => 'Delete'))\n ->getForm()\n ;\n }", "private function createDeleteForm($id)\r\n {\r\n return $this->createFormBuilder()\r\n ->setAction($this->generateUrl('admtipoaporte_delete', array('id' => $id)))\r\n ->setMethod('DELETE')\r\n ->add('submit', 'submit', array('label' => 'Eliminar','attr'=>array('class'=>'btn btn-danger')))\r\n ->getForm()\r\n ;\r\n }", "private function createDeleteForm($id)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('empleado_delete', array('id' => $id)))\n ->setMethod('DELETE')\n ->add('submit', 'submit', array('label' => 'Delete'))\n ->getForm()\n ;\n }", "private function createDeleteForm($id)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('tecnoasignar_delete', array('id' => $id)))\n ->setMethod('DELETE')\n ->add('submit', 'submit', array('label' => 'ELIMINAR ASIGNACION'))\n ->getForm()\n ;\n }", "private function createDeleteForm($id) {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('admin_missatges_delete', array('id' => $id)))\n ->setMethod('DELETE')\n ->add('submit', 'submit', array('label' => 'Delete'))\n ->getForm()\n ;\n }", "private function createDeleteForm($id)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('adtiposcomision_delete', array('id' => $id)))\n ->setMethod('DELETE')\n ->add('submit', 'submit', array('label' => 'Delete'))\n ->getForm()\n ;\n }", "private function createDeleteForm($id)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('sifdainformeordentrabajo_delete', array('id' => $id)))\n ->setMethod('DELETE')\n ->add('submit', 'submit', array('label' => 'Eliminar informe'))\n ->getForm()\n ;\n }", "private function createDeleteForm($id)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('componentgroup_delete', array('id' => $id)))\n ->setMethod('DELETE')\n ->add('submit', SubmitType::class, array('label' => 'Delete'))\n ->getForm()\n ;\n }", "private function createDeleteForm($id)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl($this->mesRoutes[\"delete\"], array('id' => $id)))\n ->setMethod('DELETE')\n ->add('submit', 'submit', array('label' => 'Supprimer'))\n ->getForm()\n ;\n }", "private function createDeleteForm($id)\n {\n \n $form = $this->createFormBuilder(null, array('attr' => array('id' => 'entrada_detalles_eliminar_type')))\n ->setAction('')\n ->setMethod('DELETE')\n ->add('submit', 'submit', array('label' => 'Eliminar', 'icon' => 'trash', 'attr' => array('class' => 'btn-danger')))\n ->getForm()\n ;\n \n return $form;\n \n \n }", "private function createDeleteForm($id)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('utente_delete', array('id' => $id)))\n ->setMethod('DELETE')\n ->add('submit', 'submit', array('label' => 'Delete'))\n ->getForm()\n ;\n }", "private function createDeleteForm($id)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('victoire_business_template_delete', ['id' => $id]))\n ->setMethod('DELETE')\n ->add('submit', SubmitType::class, ['label' => 'Delete'])\n ->getForm();\n }", "private function createDeleteForm($id)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('posgradolineas_delete', array('id' => $id)))\n ->setMethod('DELETE')\n ->add('submit', 'submit', array('label' => 'Eliminar'))\n ->getForm()\n ;\n }", "private function createDeleteForm($id)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('endroit_delete', array('id' => $id)))\n ->setMethod('DELETE')\n ->add('submit', 'submit', array('label' => 'Delete'))\n ->getForm()\n ;\n }", "private function createDeleteForm($id)\n {\n $translated = $this->get('translator');\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('configuracao_delete', array('id' => $id)))\n ->setMethod('DELETE')\n ->add('submit', 'submit', array('label' => $translated->transChoice('txt.excluir',0,array(),'messagesCommonBundle'), 'attr' => array('class' => 'btn btn-danger btn-lg')))\n ->getForm()\n ;\n }", "private function createDeleteForm($id)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('config_testimonial_delete', array('id' => $id)))\n ->setAttribute('enctype', 'multipart/form-data')\n ->setMethod('DELETE')\n ->add('submit', 'submit', array('label' => 'Eliminar'))\n ->getForm();\n }", "private function createDeleteForm($id) {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('medicamentossuministrados_delete', array('id' => $id)))\n ->setMethod('DELETE')\n ->add('submit', 'submit', array('label' => 'Eliminar', 'attr' => array('class' => 'btn')))\n ->getForm()\n ;\n }", "private function createDeleteForm($id)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('bien_delete', array('id' => $id)))\n ->setMethod('DELETE')\n // ->add('submit', 'submit', array('label' => 'Delete'))\n ->add('submit', 'submit', array('label' => 'Eliminar','attr' => array('class' => 'btn btn-danger'),))\n ->getForm()\n ;\n }", "private function createDeleteForm($id)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('entreprise_delete', array('id' => $id)))\n ->setMethod('DELETE')\n ->add('submit', 'submit', array('label' => 'Delete'))\n ->getForm()\n ;\n }", "private function createDeleteForm($id)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('clientecredito_delete', array('id' => $id)))\n ->setMethod('DELETE')\n ->add('submit', 'submit', array('label' => 'Delete'))\n ->getForm()\n ;\n }", "private function createDeleteForm($id)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('eventregistration_delete', array('id' => $id)))\n ->setMethod('DELETE')\n ->add('submit', 'submit', array('label' => 'Delete'))\n ->getForm()\n ;\n }", "private function createDeleteForm($id)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('object_objecttype_delete', array('id' => $id)))\n ->setMethod('DELETE')\n ->add('submit', 'submit', array('label' => 'Удалить'))\n ->getForm()\n ;\n }", "private function createDeleteForm($id)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('ingrediente_delete', array('id' => $id)))\n ->setMethod('DELETE')\n ->add('submit', 'submit', array('label' => 'Delete'))\n ->getForm()\n ;\n }", "private function createDeleteForm($id)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('vendorprofilelimit_delete', array('id' => $id)))\n ->setMethod('DELETE')\n ->add('submit', 'submit', array('label' => 'Delete'))\n ->getForm()\n ;\n }", "private function createDeleteForm($id)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('admin_productosprogramas_delete', array('id' => $id)))\n ->setMethod('DELETE')\n ->add('submit', 'submit', array('label' => 'Eliminar'))\n ->getForm()\n ;\n }", "private function createDeleteForm($id)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('boncommandeligne_delete', array('id' => $id)))\n ->setMethod('DELETE')\n ->add('submit', 'submit', array('label' => 'Delete'))\n ->getForm()\n ;\n }", "private function createDeleteForm($id)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('image_delete', array('id' => $id)))\n ->setMethod('DELETE')\n ->add('submit', 'submit', array('label' => 'Delete'))\n ->getForm()\n ;\n }", "private function createDeleteForm($id)\n { \n \n return $this->createFormBuilder()\n ->setAction($this->generateUrl('aulas_aula_delete', array('id' => $id)))\n ->setMethod('DELETE')\n ->add('submit', 'submit', array('label' => 'Delete'))\n ->getForm()\n ;\n }", "private function createDeleteForm($id)\r\n {\r\n return $this->createFormBuilder()\r\n ->setAction($this->generateUrl('galerias_delete', array('id' => $id)))\r\n ->setMethod('DELETE')\r\n ->add('submit', 'submit', array('label' => 'Delete'))\r\n ->getForm()\r\n ;\r\n }", "private function createDeleteForm($id) {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('detailsproduits_delete', array('id' => $id)))\n ->setMethod('DELETE')\n ->add('submit', 'submit', array('label' => 'Delete'))\n ->getForm()\n ;\n }", "private function createDeleteForm($id)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('cole_deletar', array('id' => $id)))\n ->setMethod('DELETE')\n ->add('submit', 'submit', array('label' => 'Delete'))\n ->getForm()\n ;\n }", "private function createDeleteForm($id)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('usertotask_delete', array('id' => $id)))\n ->setMethod('DELETE')\n ->add('submit', 'submit', array('label' => 'Delete'))\n ->getForm()\n ;\n }", "private function createDeleteForm($id)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('userman_delete', array('id' => $id)))\n ->setMethod('DELETE')\n ->add('submit', 'submit', array('label' => 'Delete'))\n ->getForm();\n }", "private function createDeleteForm($id)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('admin_partners_delete', array('id' => $id)))\n ->setMethod('DELETE')\n ->add('submit', 'submit', array(\n 'label' => 'Supprimer',\n 'attr' => array(\n 'class' => 'btn btn-danger'\n )))\n ->getForm();\n }", "private function createDeleteForm($id)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('frontbottom_delete', array('id' => $id)))\n ->setMethod('DELETE')\n ->add('submit', 'submit', array('label' => 'Delete'))\n ->getForm()\n ;\n }", "private function createDeleteForm($id)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('mecz_delete', array('id' => $id)))\n ->setMethod('DELETE')\n ->add('submit', 'submit', array('label' => 'Delete'))\n ->getForm()\n ;\n }", "private function createDeleteForm($id)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('intervalosips_delete', array('id' => $id)))\n ->setMethod('DELETE')\n ->add('submit', 'submit', array('label' => 'Delete'))\n ->getForm()\n ;\n }", "private function createDeleteForm($id)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('ligne_delete', array('id' => $id)))\n ->setMethod('DELETE')\n ->add('submit', 'submit', array('label' => 'Delete'))\n ->getForm()\n ;\n }", "private function createDeleteForm($id)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('com_incident_delete', array('id' => $id)))\n ->setMethod('DELETE')\n ->add('submit', 'submit', array('label' => 'Supprimer','attr'=>array('class'=>'btn btn-danger','style'=>'width:100px;')))\n ->getForm()\n ;\n }", "private function createDeleteForm($id)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('encuesta_delete', array('id' => $id)))\n ->setMethod('DELETE')\n ->add('submit', 'submit', array('label' => 'Delete'))\n ->getForm()\n ;\n }", "private function createDeleteForm($id)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('bill_delete', array('id' => $id)))\n ->setMethod('DELETE')\n ->add('submit', 'submit', array('label' => 'Eliminar'))\n ->getForm()\n ;\n }", "private function createDeleteForm($id)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('viaje_delete', array('id' => $id)))\n ->setMethod('DELETE')\n ->add('submit', 'submit', array('label' => 'Borrar'))\n ->getForm()\n ;\n }", "private function createDeleteForm($id)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('sifda_equipotrabajo_delete', array('id' => $id)))\n ->setMethod('DELETE')\n ->add('submit', 'submit', array('label' => 'Delete'))\n ->getForm()\n ;\n }", "private function createDeleteForm($id)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('premiacao_ideia_delete', array('id' => $id)))\n ->setMethod('DELETE')\n ->add('submit', 'submit', array('label' => 'Delete'))\n ->getForm()\n ;\n }", "private function createDeleteForm($id) {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('client_delete', array('id' => $id)))\n ->setMethod('DELETE')\n ->add('submit', 'submit', array('label' => 'Delete'))\n ->getForm()\n ;\n }", "private function createDeleteForm($id)\r\n {\r\n return $this->createFormBuilder()\r\n ->setAction($this->generateUrl('admin_consulta_delete', array('id' => $id)))\r\n ->setMethod('DELETE')\r\n ->add('submit', 'submit', array('label' => 'Delete'))\r\n ->getForm()\r\n ;\r\n }", "private function createDeleteForm($id)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('administracion_servicio_delete', array('id' => $id)))\n ->setMethod('DELETE')\n ->add('submit', 'submit', array('label' => 'Delete'))\n ->getForm()\n ;\n }", "private function createDeleteForm($id)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('visiteur_delete', array('id' => $id)))\n ->setMethod('DELETE')\n ->add('submit', 'submit', array('label' => 'Delete'))\n ->getForm()\n ;\n }", "private function createDeleteForm($id)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('feeds_delete', array('id' => $id)))\n ->setMethod('DELETE')\n ->add('submit', 'submit', array('label' => 'Delete'))\n ->getForm()\n ;\n }", "private function createDeleteForm($id) {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('dzialy_delete', array('id' => $id)))\n ->setMethod('DELETE')\n ->add('submit', 'submit', array('label' => 'Usuń Dział' , 'attr' => array('class' => 'btn btn-danger' , 'icon' => 'times fa-fw')))\n ->getForm()\n ;\n }", "private function createDeleteForm($id)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('periododeinscricao_delete', array('id' => $id)))\n ->setMethod('DELETE')\n ->add('submit', 'submit', array('label' => 'Delete'))\n ->getForm()\n ;\n }", "private function createDeleteForm($id)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('fichepatient_delete', array('id' => $id)))\n ->setMethod('DELETE')\n ->add('submit', 'submit', array('label' => 'Delete','attr' => array('class' => 'bttn')))\n ->getForm()\n ;\n }", "private function createDeleteForm($id)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('cosecha_delete', array('id' => $id)))\n ->setMethod('DELETE')\n ->add('submit', 'submit', array('label' => 'Delete'))\n ->getForm();\n }", "private function createDeleteForm($id)\r\n {\r\n return $this->createFormBuilder()\r\n ->setAction($this->generateUrl('utilisateur_delete', array('id' => $id)))\r\n ->setMethod('DELETE')\r\n ->add('submit', 'submit', array('label' => 'Delete'))\r\n ->getForm()\r\n ;\r\n }", "private function createDeleteForm($id)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('localbanner_delete', array('id' => $id)))\n ->setMethod('DELETE')\n ->add('submit', 'submit', array('label' => 'title.sim', 'translation_domain' => 'messagesCommonBundle', 'attr' => array('class' => 'btn btn-success btn-lg bt-delete-foto')))\n ->getForm()\n ;\n }", "private function createDeleteForm($id)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('fluidite_delete', array('id' => $id)))\n ->setMethod('DELETE')\n ->add('submit', 'submit', array(\n 'label' => 'Delete',\n 'attr' => array(\n 'class' => 'btn btn-danger'\n ))\n \n )\n \n \n ->getForm()\n ;\n }", "private function createDeleteForm($id)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('klasses_delete', array('id' => $id)))\n ->setMethod('DELETE')\n ->add('submit', 'submit', array('label' => 'Delete'))\n ->getForm()\n ;\n }", "private function createDeleteForm($id)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('fileops_delete', array('id' => $id)))\n ->setMethod('DELETE')\n ->add('submit', 'submit', array('label' => 'Delete'))\n ->getForm()\n ;\n }", "private function createDeleteForm($id) {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('question_delete', array('id' => $id)))\n ->setMethod('DELETE')\n ->add('submit', 'submit', array('label' => 'Delete'))\n ->getForm()\n ;\n }", "private function createDeleteForm($id)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('payment_delete', array('id' => $id)))\n ->setMethod('DELETE')\n ->add('submit', 'submit', array('label' => 'Eliminar pago'))\n ->getForm()\n ;\n }", "private function createDeleteForm($id)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('user_delete', array('id' => $id)))\n ->setMethod('DELETE')\n ->add('submit', 'submit', array(\n \t\t'label' => 'Delete',\n \t\t'attr' => array('class' => 'ui-btn ui-corner-all ui-shadow ui-btn-b ui-btn-icon-left ui-icon-check')\n ))\n ->getForm()\n ;\n }", "private function createDeleteForm($id)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('questionnaire_formulaire_delete', array('id' => $id)))\n ->setMethod('DELETE')\n ->add('submit', 'submit', array('label' => 'Delete'))\n ->getForm()\n ;\n }", "private function createDeleteForm($id)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('appbundle_userlistkdo_delete', array('id' => $id)))\n ->setMethod('DELETE')\n ->add(\n 'submit',\n 'submit',\n array('label' => 'button.delete', 'attr' => array('class' => 'tiny button alert'))\n )\n ->getForm();\n }", "private function createDeleteForm($id)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('social_admin_resource_delete', array('id' => $id)))\n ->setMethod('DELETE')\n ->add('submit', 'submit', array('label' => '删除','attr'=>[\n 'class'=>'btn btn-danger'\n ]))\n ->getForm()\n ;\n }", "private function createDeleteForm($id)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('devissetup_delete', array('id' => $id)))\n ->setMethod('DELETE')\n ->add('submit', 'submit', array('label' => 'Delete'))\n ->getForm()\n ;\n }", "private function createDeleteForm($id) {\n\t\treturn $this->createFormBuilder()\n\t\t\t->setAction($this->generateUrl('member_intrestconfig_delete', array('id' => $id)))\n\t\t\t->setMethod('DELETE')\n\t\t\t->add('submit', 'submit', array('label' => 'Delete'))\n\t\t\t->getForm()\n\t\t;\n\t}", "private function createDeleteForm($id)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('behalf_delete', array('id' => $id)))\n ->setMethod('DELETE')\n ->add('submit', 'submit', array('label' => 'Delete'))\n ->getForm()\n ;\n }", "private function createDeleteForm($id)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('funcionarioempresa_delete', array('id' => $id)))\n ->setMethod('DELETE')\n ->add('submit', 'submit', array('label' => 'Delete'))\n ->getForm()\n ;\n }", "private function createDeleteForm($id)\n {\n return $this->createFormBuilder(null, array('attr' => array( 'id' => 'pts_del')))\n ->setAction($this->generateUrl('morus_accetic_inventory_delete', array('id' => $id)))\n ->setMethod('DELETE')\n ->add('submit', 'submit', array('label' => $this->get('translator')->trans('btn.delete')))\n ->getForm()\n ;\n }", "private function createDeleteForm($id) {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('account_delete', array('id' => $id)))\n ->setMethod('DELETE')\n ->add('submit', 'submit', array(\n 'label' => 'Delete Account',\n 'attr' => array('class' => 'btn btn-danger')))\n ->getForm()\n ;\n }", "private function createDeleteForm($id)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('estadofondo_delete', array('id' => $id)))\n ->setMethod('DELETE')\n ->add('submit', 'submit', array('label' => 'BORRAR'))\n ->getForm()\n ;\n }", "private function createDeleteForm($id)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('cidades_delete', array('id' => $id)))\n ->setMethod('DELETE')\n ->add('submit', 'submit', array('label' => 'Delete'))\n ->getForm()\n ;\n }", "private function createDeleteForm($id)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('administration_pays_delete', array('id' => $id)))\n ->setMethod('DELETE')\n ->add('submit', 'submit', array('label' => 'Delete'))\n ->getForm()\n ;\n }", "private function createDeleteForm($id)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('adminPromoCmdes_delete', array('id' => $id)))\n ->setMethod('DELETE')\n ->add('submit', 'submit', array('label' => 'Delete'))\n ->getForm()\n ;\n }", "private function createDeleteForm($id)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('appbundle_listkdo_delete', array('id' => $id)))\n ->setMethod('DELETE')\n ->add(\n 'submit',\n 'submit',\n array('label' => 'button.delete', 'attr' => array('class' => 'tiny button alert'))\n )\n ->getForm();\n }", "private function createDeleteForm($id)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('annonce_delete', array('id' => $id)))\n ->setMethod('DELETE')\n ->add('submit', 'submit', array('label' => 'Delete'))\n ->getForm()\n ;\n }", "private function createDeleteForm($id)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('invoice_accountentry_delete', array('id' => $id)))\n ->setMethod('DELETE')\n ->add('submit', 'submit', array('label' => 'Delete'))\n ->getForm()\n ;\n }", "private function createDeleteForm($id)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('admin_sesionventatratamiento_delete', array('id' => $id)))\n ->setMethod('DELETE')\n ->add('submit', 'submit', array('label' => 'Delete'))\n ->getForm()\n ;\n }", "private function createDeleteForm($id) {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('customers_delete', array('id' => $id)))\n ->setMethod('DELETE')\n ->add('submit', SubmitType::class, array('label' => 'Delete'))\n ->getForm()\n ;\n }", "private function createDeleteForm($id)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('education_delete', array('id' => $id)))\n ->setMethod('DELETE')\n ->add('submit', 'submit', array('label' => 'Delete'))\n ->getForm()\n ;\n }", "private function createDeleteForm($id)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('feriado_delete', array('id' => $id)))\n ->setMethod('DELETE')\n ->add('submit', 'submit', array('label' => 'Delete'))\n ->getForm()\n ;\n }", "private function createDeleteForm($id)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('dealercomponent_delete', array('id' => $id)))\n ->setMethod('DELETE')\n ->add('submit', 'submit', array('label' => 'Delete'))\n ->getForm();\n }", "private function createDeleteForm($id)\n\t{\n\t\treturn $this->createFormBuilder()\n\t\t\t->setAction($this->generateUrl('admin_element_delete', array('id' => $id)))\n\t\t\t->setMethod('DELETE')\n\t\t\t->add('submit', SubmitType::class, array('label' => 'Удалить', 'attr' => array(\n\t\t\t\t'class' => 'btn btn-danger',\n\t\t\t\t'data-delete' => ''\n\t\t\t)))\n\t\t\t->getForm();\n\t}", "private function createDeleteForm($id)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('workerdown_delete', array('id' => $id)))\n ->setMethod('DELETE')\n ->add('submit', 'submit', array('label' => 'Delete'))\n ->getForm()\n ;\n }" ]
[ "0.72619367", "0.7247486", "0.7209604", "0.7196196", "0.71796817", "0.7173532", "0.71676487", "0.71637625", "0.7155489", "0.71530664", "0.7146956", "0.7139615", "0.71217984", "0.7121034", "0.7118328", "0.7107895", "0.7102422", "0.70921946", "0.7087138", "0.708161", "0.70806193", "0.70801634", "0.70799136", "0.70794386", "0.70734644", "0.7071504", "0.7070081", "0.70681065", "0.70637417", "0.7063537", "0.7061276", "0.7059508", "0.70578784", "0.7057804", "0.7041056", "0.7038971", "0.70331794", "0.7028194", "0.7027853", "0.7027614", "0.7026214", "0.70261145", "0.7018207", "0.70126486", "0.7011991", "0.70115054", "0.7009768", "0.700968", "0.70008", "0.69984406", "0.69937575", "0.6993411", "0.6982374", "0.69823545", "0.6979901", "0.6976836", "0.69764906", "0.6974671", "0.6973016", "0.69711834", "0.69689053", "0.6967058", "0.69652885", "0.6963172", "0.69603914", "0.6959777", "0.69594353", "0.6957899", "0.69544494", "0.6953443", "0.6944743", "0.6944626", "0.69444096", "0.6936702", "0.69276696", "0.6926643", "0.6924333", "0.6919821", "0.6916411", "0.6914257", "0.69140273", "0.69092655", "0.6908772", "0.6907265", "0.6905619", "0.69018906", "0.6899613", "0.6895711", "0.6893902", "0.68933266", "0.6891367", "0.6889822", "0.68852293", "0.6880405", "0.687959", "0.6878419", "0.6877387", "0.6876974", "0.6875916", "0.6869774" ]
0.76997733
0
Returns the static model of the specified AR class.
public static function model($className=__CLASS__) { return parent::model($className); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function model()\r\n {\r\n return static::class;\r\n }", "public static function model() {\n return parent::model(get_called_class());\n }", "public static function model($class = __CLASS__)\n {\n return parent::model($class);\n }", "public static function model($class = __CLASS__)\n\t{\n\t\treturn parent::model(get_called_class());\n\t}", "static public function model($className = __CLASS__)\r\n {\r\n return parent::model($className);\r\n }", "public static function model($className=__CLASS__) { return parent::model($className); }", "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "public static function model($className=__CLASS__) {\n return parent::model($className);\n }", "public static function model($className=__CLASS__)\n {\n return CActiveRecord::model($className);\n }", "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "public static function model($className=__CLASS__)\n {\n return parent::model($className);\n }", "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "public static function model($className = __CLASS__) {\n return parent::model($className);\n }", "public static function model($className = __CLASS__) {\n return parent::model($className);\n }" ]
[ "0.74850124", "0.73803526", "0.7154113", "0.71401674", "0.70629025", "0.703232", "0.69285315", "0.69285315", "0.6925706", "0.6902751", "0.6894916", "0.6894916", "0.68900806", "0.68698424", "0.68698424", "0.68698424", "0.68698424", "0.68698424", "0.68698424", "0.68698424", "0.68698424", "0.68698424", "0.68698424", "0.68698424", "0.68698424", "0.68698424", "0.68698424", "0.68698424", "0.68698424", "0.68698424", "0.68698424", "0.68698424", "0.68698424", "0.68698424", "0.68698424", "0.68698424", "0.68698424", "0.68698424", "0.68698424", "0.68698424", "0.68698424", "0.68698424", "0.68698424", "0.68698424", "0.68698424", "0.68698424", "0.68698424", "0.68698424", "0.68698424", "0.68698424", "0.68698424", "0.68698424", "0.68698424", "0.68698424", "0.68698424", "0.68698424", "0.68698424", "0.68698424", "0.68698424", "0.68698424", "0.68698424", "0.68698424", "0.68698424", "0.68698424", "0.68698424", "0.68698424", "0.68698424", "0.68698424", "0.68698424", "0.68698424", "0.68698424", "0.68698424", "0.68698424", "0.68698424", "0.68698424", "0.68698424", "0.68698424", "0.68698424", "0.68698424", "0.68698424", "0.68698424", "0.68698424", "0.68698424", "0.68698424", "0.68698424", "0.68698424", "0.68698424", "0.68698424", "0.68698424", "0.68698424", "0.68698424", "0.68698424", "0.68698424", "0.68698424", "0.68698424", "0.68698424", "0.68698424", "0.68698424", "0.68698424", "0.68698424", "0.68698424" ]
0.0
-1
Retrieves a list of models based on the current search/filter conditions.
public function search() { // Warning: Please modify the following code to remove attributes that // should not be searched. $criteria=new CDbCriteria; $criteria->compare('rekening3_id',$this->rekening3_id); // $criteria->compare('rekening1_id',$this->rekening1_id); $criteria->compare('rekening2_id',$this->rekening2_id); $criteria->compare('LOWER(kdrekening3)',strtolower($this->kdrekening3),true); $criteria->compare('LOWER(nmrekening3)',strtolower($this->nmrekening3),true); $criteria->compare('LOWER(nmrekeninglain3)',strtolower($this->nmrekeninglain3),true); $criteria->compare('rekening3_aktif',$this->rekening3_aktif); return new CActiveDataProvider($this, array( 'criteria'=>$criteria, )); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getModels();", "public function getModels();", "public function findAll($model);", "public function getListSearch()\n {\n //set warehouse and client id\n $warehouse_id = ( !is_numeric(request()->get('warehouse_id')) ) ? auth()->user()->current_warehouse_id : request()->get('warehouse_id');\n $client_id = ( !is_numeric(request()->get('client_id')) ) ? auth()->user()->current_client_id : request()->get('client_id');\n\n //instantiate model and run search\n $product_model = new Product();\n return $product_model->getListSearch(request()->get('search_term'), $warehouse_id, $client_id);\n }", "public function getModels()\n\t{\n\t\t$scope = $this->scopeName;\n\t\treturn CActiveRecord::model($this->baseModel)->$scope()->findAll();\n\t}", "protected function findModel()\n {\n $class = $this->model;\n $query = $class::query();\n\n foreach ($this->input as $key => $value) {\n $where = is_array($value) ? 'whereIn' : 'where';\n $query->$where($key, $value);\n }\n\n return $query->get();\n }", "public function modelScans()\n {\n if ($this->scanEverything) {\n return $this->getAllClasses();\n }\n\n return $this->scanModels;\n }", "public function listModels() {\n\n $config = $this->initConfig($version = AnalyzeModel::VERSION);\n\n $config->setQuery( [ 'version' => $version ] );\n\n $config->setMethod(HttpClientConfiguration::METHOD_GET);\n $config->setType(HttpClientConfiguration::DATA_TYPE_JSON);\n $config->setURL(self::BASE_URL.\"/models\");\n\n return $this->sendRequest($config);\n }", "public function getModelsForIndex()\n {\n $models = [];\n $all_models = $this->getAllModels();\n\n foreach ($all_models as $model) {\n //parse model\n $pieces = explode('.', $model);\n if (count($pieces) != 2) {\n throw new Exception('Parse error in AppModelList');\n }\n //check form match\n $app_model = $pieces[1];\n $link = $this->convertModelToLink($app_model);\n\n // add to actions\n $models[$app_model]['GET'] = [\n [\n 'action' => 'index',\n 'description' => 'List & filter all ' . $app_model . ' resources.',\n 'route' => '/' . env('EASY_API_BASE_URL', 'easy-api') . '/' . $link\n ],\n [\n 'action' => 'show',\n 'description' => 'Show the ' . $app_model . ' that has the matching {id} from the route.',\n 'route' => '/' . env('EASY_API_BASE_URL', 'easy-api') . '/' . $link . '/{id}'\n ]\n ];\n }\n return $models;\n }", "public function getModels()\n {\n $this->prepare();\n\n return $this->_models;\n }", "public function getModels()\n {\n $this->prepare();\n\n return $this->_models;\n }", "public function searchableBy()\n {\n return [];\n }", "public function all($model){\n\n if(!class_exists($model)){\n return new $model;\n }\n\n $table = $this->getTableName($model);\n $stmt = $this->pdo->prepare('select * from ' . $table);\n $stmt->execute();\n\n return $stmt->fetchAll(\\PDO::FETCH_CLASS, $model);\n }", "public static function find($model, $conditions = null, $orderby = null){\n\t\t$sql = \"SELECT * FROM \" . self::table_for($model);\n\t\tif ($conditions) $sql .= \" WHERE \" . self::make_conditions($conditions);\n\t\tif ($orderby)\t$sql .= \" ORDER BY \" . $orderby;\n\t\t\n\t\t$resultset = self::do_query($sql);\n\t\treturn self::get_results($resultset, $model);\n\t}", "function get_model_list($where=\"1\",$where_array,$sort_by=\"\"){\n\t\t$data= $this->select_query(\"make_model\",\"id,name,del_status\",$where,$where_array,$sort_by);\n\t\treturn $data;\n\t}", "public static function search()\n {\n return self::filterSearch([\n 'plot_ref' => 'string',\n 'plot_name' => 'string',\n 'plot_start_date' => 'string',\n 'user.name' => self::filterOption([\n 'select' => 'id',\n 'label' => trans_title('users', 'plural'),\n 'fields' => ['id', 'name'],\n //ComboBox user list base on the current client\n //See in App\\Models\\Users\\UsersScopes\n 'model' => app(User::class)->bySearch(),\n ]),\n 'client.client_name' => self::filterOption([\n 'conditional' => Credentials::hasRoles(['admin', 'admin-gv']),\n 'select' => 'client_id',\n 'label' => trans_title('clients', 'plural'),\n 'model' => Client::class,\n 'fields' => ['id', 'client_name']\n ])\n ]);\n }", "public function getList()\n {\n \treturn $this->model->where('is_base', '=', 0)->get();\n }", "public function getList()\n {\n $this->db->order_by(\"id\", 'desc');\n $this->db->where('status', 1);\n return $this->db->get($this->model);\n }", "public function findAll()\n {\n $fields = $options = [];\n //$options['debug'] = 1;\n $options['enablefieldsfe'] = 1;\n\n return $this->search($fields, $options);\n }", "public function findAll()\n {\n return $this->model->all();\n }", "public function get_multiple()\n\t{\n\t\t$options = array_merge(array(\n\t\t\t'offset' => 0,\n\t\t\t'limit' => 20,\n\t\t\t'sort_by' => 'name',\n\t\t\t'order' => 'ASC'\n\t\t), Input::all(), $this->options);\n\n\t\t// Preparing our query\n\t\t$results = $this->model->with($this->includes);\n\n\t\tif(count($this->join) > 0)\n\t\t{\n\t\t\tforeach ($this->join as $table => $settings) {\n\t\t\t\t$results = $results->join($table, $settings['join'][0], $settings['join'][1], $settings['join'][2]);\n\t\t\t\tif($settings['columns'])\n\t\t\t\t{\n\t\t\t\t\t$options['sort_by'] = (in_array($options['sort_by'], $settings['columns']) ? $table : $this->model->table()).'.'.$options['sort_by'];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(stripos($options['sort_by'], '.') === 0)\n\t\t{\n\t\t\t$options['sort_by'] = $this->model->table().'.' . $options['sort_by'];\n\t\t}\n\t\t\n\t\t// Add where's to our query\n\t\tif(array_key_exists('search', $options))\n\t\t{\n\t\t\tforeach($options['search']['columns'] as $column)\n\t\t\t{\n\t\t\t\t$results = $results->or_where($column, '~*', $options['search']['string']);\n\t\t\t}\n\t\t}\n\n\t\t$total = (int) $results->count();\n\n\t\t// Add order_by, skip & take to our results query\n\t\t$results = $results->order_by($options['sort_by'], $options['order'])->skip($options['offset'])->take($options['limit'])->get();\n\n\t\t$response = array(\n\t\t\t'results' => to_array($results),\n\t\t\t'total' => $total,\n\t\t\t'pages' => ceil($total / $options['limit'])\n\t\t);\n\n\t\treturn Response::json($response);\n\t}", "public function getAll()\n {\n return DB::table('product_models')->get()->all();\n }", "public function filter($params) {\n $model = $this->model;\n $keyword = isset($params['keyword'])?$params['keyword']:'';\n $sort = isset($params['sort'])?$params['sort']:''; \n if ($sort == 'name') {\n $query = $model->where('name','LIKE','%'.$keyword.'%')->orderBy('name'); \n }\n else if ($sort == 'newest') {\n $query = $model->where('name','LIKE','%'.$keyword.'%')->orderBy('updated_at','desc'); \n }\n else {\n $query = $model->where('name','LIKE','%'.$keyword.'%'); \n }\n /** filter by class_id */ \n if (isset($params['byclass']) && isset($params['bysubject'])) {\n $query = $model->listClass($params['byclass'], $params['bysubject']);\n return $query; \n }\n else if (isset($params['byclass'])) { \n $query = $model->listClass($params['byclass']);\n return $query;\n }\n else if (isset($params['bysubject'])) {\n $query = $model->listClass(0,$params['bysubject']);\n return $query;\n }\n /** filter by course status */\n if (isset($params['incomming'])) {\n $query = $model->listCourse('incomming');\n return $query;\n }\n else if (isset($params['upcomming'])) {\n $query = $model->listCourse('upcomming');\n return $query;\n }\n $result = $query->paginate(10); \n return $result; \n }", "public function getAll($model, $filters = array())\n {\n $repo = $this->getRepository($model);\n\n return $repo->getAll($filters);\n }", "public function filters(Model $model): array\n {\n return [];\n }", "public function getResults()\n {\n if($this->search) {\n foreach ($this->filters as $field) {\n $field = array_filter(explode('.', $field));\n if(count($field) == 2) {\n $this->query->whereHas($field[0], function ($q) use ($field) {\n $q->where($field[1], 'ilike', \"%{$this->search}%\");\n });\n }\n if(count($field) == 1) {\n $this->query->orWhere($field[0], 'ilike', \"%{$this->search}%\");\n }\n }\n }\n\n if($this->where) {\n foreach ($this->where as $field => $value) {\n $this->query->where($field, $value);\n }\n }\n\n if ($this->whereBetween) {\n foreach ($this->whereBetween as $field => $value)\n $this->query->whereBetween($field, $value);\n }\n// dd($this->query->toSql());\n return $this->query->paginate($this->per_page);\n }", "protected function _searchInModel(Model $model, Builder $items){\n foreach($model->searchable as $param){\n if($param != 'id'){\n if(isset($this->request[$param]))\n $items = $items->where($param, $this->request[$param]);\n if(isset($this->request[$param.'_like']))\n $items = $items->where($param, 'like', '%'.$this->request[$param.'_like'].'%');\n }else{\n if(isset($this->request['id'])){\n $ids = explode(',', $this->request['id']);\n $items = $items->whereIn('id', $ids);\n }\n }\n }\n\n return $items;\n }", "public function getAll($model)\n {\n $sql = \"SELECT * FROM {$this->table}\";\n $req = Database::getBdd()->prepare($sql);\n $req->execute();\n return $req->fetchAll(PDO::FETCH_CLASS,get_class($this->model));\n }", "private function getAllModels()\n {\n return (object)ModelRegistry::getAllObjects();\n }", "public function findAll()\n {\n return $this->driver->findAll($this->model);\n }", "public function getAllFilters();", "public function GetAll()\n {\n return $this->model->all();\n }", "public function fetch_all_models() {\n global $pdo;\n\n $query = $pdo->prepare(\"SELECT * FROM talents\");\n $query -> execute();\n return $query->fetchAll(\\PDO::FETCH_ASSOC);\n }", "public function findWhere($model, $conditions, $limit = 0){\n\n if(!class_exists($model)){\n return new $model;\n }\n\n $table = $this->getTableName($model);\n\n $sql = 'select * from ' . $table . ' where ';\n $values = [];\n $counter = 1;\n\n foreach ($conditions as $key => $value) {\n if($counter > 1)\n $sql .= ' AND ';\n\n $sql .= $key . '=?';\n $values[] = $value; \n $counter++;\n }\n\n if($limit > 0)\n $sql .= ' LIMIT ' . $limit;\n \n $stmt = $this->pdo->prepare($sql);\n $stmt->execute($values);\n\n return $stmt->fetchAll(\\PDO::FETCH_CLASS, $model);\n }", "public function search() {\n $criteria = new CDbCriteria;\n\n $criteria->compare('id', $this->id);\n $criteria->compare('name', $this->name, true);\n $criteria->compare('type', $this->type);\n\n return $criteria;\n }", "public function search()\n\t{\n\t\t// @todo Please modify the following code to remove attributes that should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('id',$this->id);\n\t\t//$criteria->compare('object_id',$this->object_id);\n\t\t$criteria->compare('object_type_id',$this->object_type_id);\n\t\t$criteria->compare('data_type_id',$this->data_type_id);\n\t\t$criteria->compare('create_date',$this->create_date,true);\n\t\t$criteria->compare('client_ip',$this->client_ip,true);\n\t\t$criteria->compare('url',$this->url,true);\n\t\t$criteria->compare('url_origin',$this->url_origin,true);\n\t\t$criteria->compare('device',$this->device,true);\n\t\t$criteria->compare('country_name',$this->country_name,true);\n\t\t$criteria->compare('country_code',$this->country_code,true);\n\t\t$criteria->compare('regionName',$this->regionName,true);\n\t\t$criteria->compare('cityName',$this->cityName,true);\n\t\t$criteria->compare('browser',$this->browser,true);\n\t\t$criteria->compare('os',$this->os,true);\n\t\t\t// se agrego el filtro por el usuario actual\n\t\t$idUsuario=Yii::app()->user->getId();\n\t\t$model = Listings::model()->finbyAttributes(array('user_id'=>$idUsuario));\n\t\tif($model->id!=\"\"){\n\t\t\t$criteria->compare('object_id',$model->id);\t\n\t\t}else{\n\t\t\t$criteria->compare('object_id',\"Null\");\t\n\t\t}\n\t\t\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "public function getSearchFields();", "public function getModels()\n {\n return $this->_models;\n }", "public function all()\n {\n return $this->model->get();\n }", "public function getAllModels()\n {\n try {\n return AppModelList::models();\n }\n catch (Throwable $t) {\n throw new Exception('Parse Error: AppModelList.php has been corrupted.');\n }\n }", "protected function _list_items_query()\n\t{\n\t\t$this->filters = (array) $this->filters;\n\t\t$where_or = array();\n\t\t$where_and = array();\n\t\tforeach($this->filters as $key => $val)\n\t\t{\n\t\t\tif (is_int($key))\n\t\t\t{\n\t\t\t\tif (isset($this->filters[$val])) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\t$key = $val;\n\t\t\t\t$val = $this->filter_value;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t// used for separating table names and fields since periods get translated to underscores\n\t\t\t\t$key = str_replace(':', '.', $key);\n\t\t\t}\n\t\t\t\n\t\t\t$joiner = $this->filter_join;\n\t\t\t\n\t\t\tif (is_array($joiner))\n\t\t\t{\n\t\t\t\tif (isset($joiner[$key]))\n\t\t\t\t{\n\t\t\t\t\t$joiner = $joiner[$key];\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t$joiner = 'or';\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (!empty($val)) \n\t\t\t{\n\t\t\t\t$joiner_arr = 'where_'.$joiner;\n\t\t\t\t\n\t\t\t\tif (strpos($key, '.') === FALSE AND strpos($key, '(') === FALSE) $key = $this->table_name.'.'.$key;\n\t\t\t\t\n\t\t\t\t//$method = ($joiner == 'or') ? 'or_where' : 'where';\n\t\t\t\t\n\t\t\t\t// do a direct match if the values are integers and have _id in them\n\t\t\t\tif (preg_match('#_id$#', $key) AND is_numeric($val))\n\t\t\t\t{\n\t\t\t\t\t//$this->db->where(array($key => $val));\n\t\t\t\t\tarray_push($$joiner_arr, $key.'='.$val);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// from imknight https://github.com/daylightstudio/FUEL-CMS/pull/113#commits-pushed-57c156f\n\t\t\t\t//else if (preg_match('#_from#', $key) OR preg_match('#_to#', $key))\n\t\t\t\telse if (preg_match('#_from$#', $key) OR preg_match('#_fromequal$#', $key) OR preg_match('#_to$#', $key) OR preg_match('#_toequal$#', $key) OR preg_match('#_equal$#', $key))\n\t\t\t\t{\n\t\t\t\t\t//$key = strtr($key, array('_from' => ' >', '_fromequal' => ' >=', '_to' => ' <', '_toequal' => ' <='));\n\t\t\t\t\t$key_with_comparison_operator = preg_replace(array('#_from$#', '#_fromequal$#', '#_to$#', '#_toequal$#', '#_equal$#'), array(' >', ' >=', ' <', ' <=', ' ='), $key);\n\t\t\t\t\t//$this->db->where(array($key => $val));\n\t\t\t\t\t//$where_or[] = $key.'='.$this->db->escape($val);\n\t\t\t\t\tarray_push($$joiner_arr, $key_with_comparison_operator.$this->db->escape($val));\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t//$method = ($joiner == 'or') ? 'or_like' : 'like';\n\t\t\t\t\t//$this->db->$method('LOWER('.$key.')', strtolower($val), 'both');\n\t\t\t\t\tarray_push($$joiner_arr, 'LOWER('.$key.') LIKE \"%'.strtolower($val).'%\"');\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t// here we will group the AND and OR separately which should handle most cases me thinks... but if not, you can always overwrite\n\t\t$where = array();\n\t\tif (!empty($where_or))\n\t\t{\n\t\t\t$where[] = '('.implode(' OR ', $where_or).')';\n\t\t}\n\t\tif (!empty($where_and))\n\t\t{\n\t\t\t$where[] = '('.implode(' AND ', $where_and).')';\n\t\t}\n\t\tif (!empty($where))\n\t\t{\n\t\t\t$where_sql = implode(' AND ', $where);\n\t\t\t$this->db->where($where_sql);\n\t\t}\n\t\t\n\t\t\n\t\t// set the table here so that items total will work\n\t\t$this->db->from($this->table_name);\n\t}", "public function getAll()\n {\n return $this->fetchAll($this->searchQuery(0));\n }", "public function listAction() {\n\t\t$this->view->config = Marcel_Backoffice_Config::getInstance()->getConfig();\n\t\t$modelName = $this->_getParam('model');\n\t\t$model = Marcel_Backoffice_Model::factory($modelName);\n\t\t$this->view->cols = $model->info('cols');\n\t\t$select = null;\n\t\t\n\t\tif ($this->_request->getParam('data')) {\n\t\t\t\n\t\t\t$data = unserialize($this->_request->getParam('data'));\n\t\t\t$aWhere = array();\n\t\t\t$searchText = array();\n\t\t\t\n\t\t\tforeach ($data['query'] as $key => $q) {\n\t\t\t\n\t\t\t\tif (isset($data['fields'][$key]) && !empty($data['fields'][$key])) {\n\t\t\t\t\n\t\t\t\t\t$func = addslashes($data['func'][$key]);\n\t\t\t\t\t$q =\taddslashes($q);\n\t\t\t\t\t$tmpWhere = array();\n\t\t\t\t\t$searchText[] = implode(' OU ', $data['fields'][$key]) . ' ' . $this->view->func[$func] . ' \"' . stripslashes($q) . '\"';\n\t\t\t\t\t\n\t\t\t\t\tforeach ($data['fields'][$key] as $field) {\n\t\t\t\t\t\n\t\t\t\t\t\t$field\t=\taddslashes($field);\n\t\t\t\t\t\tswitch ($func) {\n\t\t\t\t\t\t\tcase 'LIKE':\n\t\t\t\t\t\t\tcase 'NOT LIKE':\n\t\t\t\t\t\t\tcase '=':\n\t\t\t\t\t\t\tcase '!=':\n\t\t\t\t\t\t\tcase '>':\n\t\t\t\t\t\t\tcase '>=':\n\t\t\t\t\t\t\tcase '<':\n\t\t\t\t\t\t\tcase '<=':\n\t\t\t\t\t\t\t\tif (trim($q) != '') { $tmpWhere[] = $field . ' ' . $func . ' \\'' . $q . '\\''; }\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tcase \"= ''\":\n\t\t\t\t\t\t\tcase \"!= ''\":\n\t\t\t\t\t\t\tcase 'IS NULL':\n\t\t\t\t\t\t\tcase 'IS NOT NULL':\n\t\t\t\t\t\t\t\t$tmpWhere[] = $field . ' ' . stripslashes($func);\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\t\tif (trim($q) != '') { $tmpWhere[] = $field . ' LIKE \\'%' . $q . '%\\''; }\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t$aWhere[] = '(' . implode(' OR ', $tmpWhere) . ')';\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (!empty($aWhere)) { $select = $model->select()->where(implode(' AND ', $aWhere)); }\n\t\t\t$this->view->searchText = $searchText;\n\t\t}\n\t\t$this->view->model = $modelName;\n\t\t$this->view->allData = $model->fetchAll($select);\n\t\t$this->view->data = Zend_Paginator::factory($this->view->allData)\n\t\t\t\t\t\t\t->setCurrentPageNumber($this->_getParam('page', 1));\n\t}", "public function index(Request $request)\n {\n $this->validate($request, [\n 'type' => 'required',\n 'searched' => 'required',\n ]);\n\n try {\n if ($request->type == 'Categories') {\n return Category::search($request->searched)->take(20)->get();\n }\n\n if ($request->type == 'Submissions') {\n return $this->sugarFilter(Submission::search($request->searched)->take(20)->get());\n }\n\n if ($request->type == 'Comments') {\n return $this->withoutChildren(Comment::search($request->searched)->take(20)->get());\n }\n\n if ($request->type == 'Users') {\n return User::search($request->searched)->take(20)->get();\n }\n } catch (\\Exception $exception) {\n app('sentry')->captureException($exception);\n\n return [];\n }\n }", "public function search()\n\t{\n\t\t// Warning: Please modify the following code to remove attributes that\n\t\t// should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('id',$this->id);\n\n\t\t$criteria->compare('type_key',$this->type_key,true);\n\n\t\t$criteria->compare('type_name',$this->type_name,true);\n\n\t\t$criteria->compare('model',$this->model,true);\n\n\t\t$criteria->compare('status',$this->status,true);\n\t\t\n\t\t$criteria->compare('seo_title',$this->seo_title,true);\n\t\t\n\t\t$criteria->compare('seo_keywords',$this->seo_keywords,true);\n\t\t\n\t\t$criteria->compare('seo_description',$this->seo_description,true);\n\n\t\treturn new CActiveDataProvider('ModelType', array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "public function getReturnModels(){\r\n return array_values($this->models);\r\n }", "public function findAll()\n {\n $models = $this->getDoctrineRepository()->findAll();\n $this->events()->trigger(__FUNCTION__ . '.post', $this, array(\n 'model' => $models,\n 'om' => $this->getObjectManager())\n );\n return $models;\n }", "public function models();", "public function search($conditions)\n\t{\n\t\t$limit = (isset($conditions['limit']) && $conditions['limit'] !== null ? $conditions['limit'] : 10);\n\t\t$result = array();\n\t\t$alphabets = [];\n\n\t\tDB::enableQueryLog();\n\n\t\t$mem = new Memcached();\n\t\t$mem->addServer(env('memcached_server'), env('memcached_port'));\n\n\t\t/* Get Default Logo Link on setting_object table */\n\t\t$logoMem = $mem->get('logo_course');\n\n\t\tif ($logoMem)\n\t\t{\n\t\t\t$default_logo = $logoMem;\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$default_logo = $this->getDefaultLogo();\n\t\t\t$mem->set('logo_course', $default_logo);\n\t\t}\n\n\t\tif (isset($conditions['alphabet']) && $conditions['alphabet'] !== null && sizeof($conditions['alphabet']) > 0) {\n\t\t\tforeach ($conditions['alphabet'] as $item) {\n\t\t\t\t$alphabets[] = \"lower(entity.name) like \" . DB::Raw(\"'\" . strtolower($item) . \"%'\");\n\t\t\t\t$alphabets[] = \"lower(curriculum.name) like \" . DB::Raw(\"'\" . strtolower($item) . \"%'\");\n\t\t\t}\n\t\t}\n\n\t\t$extraGroup = (isset($conditions['sort']) && $conditions['sort'] !== null ? $conditions['sort'] : '' );\n\t\t$extraGroup = str_replace(' ASC', '',$extraGroup);\n\t\t$extraGroup = str_replace(' DESC', '',$extraGroup);\n\n\t\t$searchData = DB::table('course')\n\t\t\t->select('curriculum.curriculum_id','course.course_id', DB::raw('entity.logo entity_logo'), 'course.day_of_week',\n\t\t\t\tDB::raw('entity.name entity_name, curriculum.name curriculum_name'), 'course.time_start', 'course.time_end')\n\t\t\t->whereRaw(\n\t\t\t\t(isset($conditions['is_free_trial'])&& sizeof($conditions['is_free_trial']) > 0 ? \"course.is_free_trial in (\" . implode(\",\", $conditions['is_free_trial']) . \") AND \" : '') .\n\n\t\t\t\t(isset($conditions['country_id']) && $conditions['country_id'] !== null ? \"campus.country_id in (\" . implode(\",\",$conditions['country_id']) . \") AND \" : '') .\n\t\t\t\t(isset($conditions['city_id']) && $conditions['city_id'] !== null ? \"campus.city_id in (\" . implode(\",\",$conditions['city_id']) . \") AND \" : '') .\n\t\t\t\t(isset($conditions['location_id']) && $conditions['location_id'] !== null ? \"campus.location_id in (\" . implode(\",\",$conditions['location_id']) . \") AND \" : '') .\n\n\t\t\t\t(isset($conditions['activity_id']) && $conditions['activity_id'] !== null ? \"program.activity_id in (\" . implode(\",\",$conditions['activity_id']) . \") AND \" : '') .\n\t\t\t\t(isset($conditions['activity_classification_id']) && $conditions['activity_classification_id'] !== null ? \"activity.activity_classification_id in (\" . implode(\",\",$conditions['activity_classification_id']) . \") AND \" : '') .\n\t\t\t\t(isset($conditions['activity_type_id']) && $conditions['activity_type_id'] !== null ? \"activity_classification.activity_type_id in (\" . implode(\",\",$conditions['activity_type_id']) . \") AND \" : '') .\n\n\t\t\t\t(isset($conditions['event_type_id']) && $conditions['event_type_id'] !== null ? \"program.event_type_id in (\" . implode(\",\",$conditions['event_type_id']) . \") AND \" : '') .\n\t\t\t\t(isset($conditions['facility_id']) && $conditions['facility_id'] !== null ? \"campus.facility_id in (\" . implode(\",\",$conditions['facility_id']) . \") AND \" : '') .\n\t\t\t\t(isset($conditions['campus_id']) && $conditions['campus_id'] !== null ? \"campus_arena.campus_id in (\" . implode(\",\",$conditions['campus_id']) . \") AND \" : '') .\n\t\t\t\t(isset($conditions['program_id']) && $conditions['program_id'] !== null ? \"curriculum.program_id in (\" . implode(\",\",$conditions['program_id']) . \") AND \" : '') .\n\t\t\t\t(isset($conditions['arena_id']) && $conditions['arena_id'] !== null ? \"campus_arena.arena_id in (\" . implode(\",\",$conditions['arena_id']) . \") AND \" : '') .\n\t\t\t\t(isset($conditions['provider_id']) && $conditions['provider_id'] !== null ? \"program.provider_id in (\" . implode(\",\",$conditions['provider_id']) . \") AND \" : '') .\n\t\t\t\t(isset($conditions['user_id']) && $conditions['user_id'] !== null ? \"schedule.instructor_id in (\" . implode(\",\",$conditions['user_id']) . \") AND \" : '') .\n\t\t\t\t(isset($conditions['day_of_week']) && $conditions['day_of_week'] !== null ? \"course.day_of_week in (\" . implode(\",\",$conditions['day_of_week']) . \") AND \" : '') .\n\n\t\t\t\t(isset($conditions['time_start']) && $conditions['time_start'] !== null ? \"time(course.time_start) = time('\" . $conditions['time_start'] . \"') AND \" : '') .\n\t\t\t\t(isset($conditions['time_end']) && $conditions['time_end'] !== null ? \"time(course.time_end) = time('\" . $conditions['time_end'] . \"') AND \" : '') .\n\n\t\t\t\t(isset($conditions['audience_gender_id']) && $conditions['audience_gender_id'] !== null ? \"course.audience_gender_id in (\" . implode(\",\",$conditions['audience_gender_id']) . \") AND \" : '') .\n\t\t\t\t(isset($conditions['audience_generation_id']) && $conditions['audience_generation_id'] !== null ? \"course.audience_generation_id in (\" . implode(\",\",$conditions['audience_generation_id']) . \") AND \" : '') .\n\n\t\t\t\t(isset($conditions['age_range_top']) && $conditions['age_range_top'] !== null ? \"course.age_range_top >= \" . $conditions['age_range_top'] . \" AND \" : '') .\n\t\t\t\t(isset($conditions['age_range_bottom']) && $conditions['age_range_bottom'] !== null ? \"course.age_range_bottom <= \" . $conditions['age_range_bottom'] . \" AND \" : '') .\n\n\t\t\t\t(isset($conditions['keyword']) && sizeof($conditions['keyword']) > 0 ? \"(\" . implode(\" OR \", $conditions['keyword']) . \") AND \" : '') .\n\t\t\t\t(isset($alphabets) && sizeof($alphabets) > 0 ? \"(\" . join(\" OR \", $alphabets) . \") AND \" : '') .\n\t\t\t\t('course.status = 0')\n\t\t\t)\n\t\t\t->join('campus_arena', function($join){\n\t\t\t\t$join->on('course.campus_arena_id','campus_arena.campus_arena_id');\n\t\t\t\t//$join->on('course.arena_id', 'campus_arena.arena_id');\n\t\t\t})\n\t\t\t->leftjoin('campus', 'campus_arena.campus_id', 'campus.campus_id')\n\t\t\t->leftjoin('location', 'campus.location_id', 'location.location_id')\n\n\t\t\t->leftjoin('facility', function ($join) {\n\t\t\t\t$join->on('campus.facility_id','facility.facility_id');\n\t\t\t\t$join->on('campus.country_id','facility.country_id');\n\t\t\t})\n\n\t\t\t->leftjoin('curriculum', 'course.curriculum_id', 'curriculum.curriculum_id')\n\n\t\t\t->leftjoin('program','program.program_id','curriculum.program_id')\n\t\t\t->leftjoin('provider', 'program.provider_id', 'provider.provider_id')\n\t\t\t->leftjoin('entity','provider.entity_id','entity.entity_id')\n\t\t\t->leftjoin('event_type', 'program.event_type_id', 'event_type.event_type_id')\n\t\t\t/*->join('entity', 'provider.entity_id', 'entity.entity_id')*/\n\n\t\t\t->leftjoin('schedule', 'course.course_id', 'schedule.course_id')\n\t\t\t->leftjoin('user', 'schedule.instructor_id', 'user.user_id')\n\t\t\t->leftjoin('activity', 'program.activity_id', 'activity.activity_id')\n\t\t\t->leftjoin('activity_classification', 'activity_classification.activity_classification_id', 'activity.activity_classification_id')\n\t\t\t->groupBy(\n\t\t\t\tDB::raw('curriculum.curriculum_id, course.course_id, entity.logo, course.day_of_week, entity.name, curriculum.name, course.time_start, course.time_end' .\n\t\t\t\t\t(isset($conditions['sort']) && $conditions['sort'] !== null ? \", \" . $extraGroup : '' )\n\t\t\t\t)\n\t\t\t)\n\t\t\t->orderByRaw(isset($conditions['sort']) && $conditions['sort'] !== null ? $conditions['sort'] : 'course.day_of_week ASC, course.course_id DESC')\n\t\t\t->limit($limit)\n\t\t\t->offset(isset($conditions['page']) && $conditions['page'] !== null ? ($conditions['page']-1) * $limit : 0)\n\t\t\t->get();\n\n\t\t$searchAll = DB::table('course')\n\t\t\t->select('curriculum.curriculum_id','course.course_id', DB::raw('entity.logo entity_logo'), 'course.day_of_week',\n\t\t\t\tDB::raw('entity.name entity_name, curriculum.name curriculum_name'), 'course.time_start', 'course.time_end')\n\t\t\t->whereRaw(\n\t\t\t\t(isset($conditions['is_free_trial'])&& sizeof($conditions['is_free_trial']) > 0 ? \"course.is_free_trial in (\" . implode(\",\", $conditions['is_free_trial']) . \") AND \" : '') .\n\n\t\t\t\t(isset($conditions['country_id']) && $conditions['country_id'] !== null ? \"campus.country_id in (\" . implode(\",\",$conditions['country_id']) . \") AND \" : '') .\n\t\t\t\t(isset($conditions['city_id']) && $conditions['city_id'] !== null ? \"campus.city_id in (\" . implode(\",\",$conditions['city_id']) . \") AND \" : '') .\n\t\t\t\t(isset($conditions['location_id']) && $conditions['location_id'] !== null ? \"campus.location_id in (\" . implode(\",\",$conditions['location_id']) . \") AND \" : '') .\n\n\t\t\t\t(isset($conditions['activity_id']) && $conditions['activity_id'] !== null ? \"program.activity_id in (\" . implode(\",\",$conditions['activity_id']) . \") AND \" : '') .\n\t\t\t\t(isset($conditions['activity_classification_id']) && $conditions['activity_classification_id'] !== null ? \"activity.activity_classification_id in (\" . implode(\",\",$conditions['activity_classification_id']) . \") AND \" : '') .\n\t\t\t\t(isset($conditions['activity_type_id']) && $conditions['activity_type_id'] !== null ? \"activity_classification.activity_type_id in (\" . implode(\",\",$conditions['activity_type_id']) . \") AND \" : '') .\n\n\t\t\t\t(isset($conditions['event_type_id']) && $conditions['event_type_id'] !== null ? \"program.event_type_id in (\" . implode(\",\",$conditions['event_type_id']) . \") AND \" : '') .\n\t\t\t\t(isset($conditions['facility_id']) && $conditions['facility_id'] !== null ? \"campus.facility_id in (\" . implode(\",\",$conditions['facility_id']) . \") AND \" : '') .\n\t\t\t\t(isset($conditions['campus_id']) && $conditions['campus_id'] !== null ? \"campus_arena.campus_id in (\" . implode(\",\",$conditions['campus_id']) . \") AND \" : '') .\n\t\t\t\t(isset($conditions['program_id']) && $conditions['program_id'] !== null ? \"curriculum.program_id in (\" . implode(\",\",$conditions['program_id']) . \") AND \" : '') .\n\t\t\t\t(isset($conditions['arena_id']) && $conditions['arena_id'] !== null ? \"campus_arena.arena_id in (\" . implode(\",\",$conditions['arena_id']) . \") AND \" : '') .\n\t\t\t\t(isset($conditions['provider_id']) && $conditions['provider_id'] !== null ? \"program.provider_id in (\" . implode(\",\",$conditions['provider_id']) . \") AND \" : '') .\n\t\t\t\t(isset($conditions['user_id']) && $conditions['user_id'] !== null ? \"schedule.instructor_id in (\" . implode(\",\",$conditions['user_id']) . \") AND \" : '') .\n\t\t\t\t(isset($conditions['day_of_week']) && $conditions['day_of_week'] !== null ? \"course.day_of_week in (\" . implode(\",\",$conditions['day_of_week']) . \") AND \" : '') .\n\n\t\t\t\t(isset($conditions['time_start']) && $conditions['time_start'] !== null ? \"time(course.time_start) = time('\" . $conditions['time_start'] . \"') AND \" : '') .\n\t\t\t\t(isset($conditions['time_end']) && $conditions['time_end'] !== null ? \"time(course.time_end) = time('\" . $conditions['time_end'] . \"') AND \" : '') .\n\n\t\t\t\t(isset($conditions['audience_gender_id']) && $conditions['audience_gender_id'] !== null ? \"course.audience_gender_id in (\" . implode(\",\",$conditions['audience_gender_id']) . \") AND \" : '') .\n\t\t\t\t(isset($conditions['audience_generation_id']) && $conditions['audience_generation_id'] !== null ? \"course.audience_generation_id in (\" . implode(\",\",$conditions['audience_generation_id']) . \") AND \" : '') .\n\n\t\t\t\t(isset($conditions['age_range_top']) && $conditions['age_range_top'] !== null ? \"course.age_range_top >= \" . $conditions['age_range_top'] . \" AND \" : '') .\n\t\t\t\t(isset($conditions['age_range_bottom']) && $conditions['age_range_bottom'] !== null ? \"course.age_range_bottom <= \" . $conditions['age_range_bottom'] . \" AND \" : '') .\n\n\t\t\t\t(isset($conditions['keyword']) && sizeof($conditions['keyword']) > 0 ? \"(\" . implode(\" OR \", $conditions['keyword']) . \") AND \" : '') .\n\t\t\t\t(isset($alphabets) && sizeof($alphabets) > 0 ? \"(\" . join(\" OR \", $alphabets) . \") AND \" : '') .\n\t\t\t\t('course.status = 0')\n\t\t\t)\n\t\t\t->join('campus_arena', function($join){\n\t\t\t\t$join->on('course.campus_arena_id','campus_arena.campus_arena_id');\n\t\t\t\t//$join->on('course.arena_id', 'campus_arena.arena_id');\n\t\t\t})\n\t\t\t->leftjoin('campus', 'campus_arena.campus_id', 'campus.campus_id')\n\t\t\t->leftjoin('location', 'campus.location_id', 'location.location_id')\n\n\t\t\t->leftjoin('facility', function ($join) {\n\t\t\t\t$join->on('campus.facility_id','facility.facility_id');\n\t\t\t\t$join->on('campus.country_id','facility.country_id');\n\t\t\t})\n\n\t\t\t->leftjoin('curriculum', 'course.curriculum_id', 'curriculum.curriculum_id')\n\n\t\t\t->leftjoin('program','program.program_id','curriculum.program_id')\n\t\t\t->leftjoin('provider', 'program.provider_id', 'provider.provider_id')\n\t\t\t->leftjoin('entity','provider.entity_id','entity.entity_id')\n\t\t\t->leftjoin('event_type', 'program.event_type_id', 'event_type.event_type_id')\n\t\t\t/*->join('entity', 'provider.entity_id', 'entity.entity_id')*/\n\n\t\t\t->leftjoin('schedule', 'course.course_id', 'schedule.course_id')\n\t\t\t->leftjoin('user', 'schedule.instructor_id', 'user.user_id')\n\t\t\t->leftjoin('activity', 'program.activity_id', 'activity.activity_id')\n\t\t\t->leftjoin('activity_classification', 'activity_classification.activity_classification_id', 'activity.activity_classification_id')\n\t\t\t//->groupBy('course.course_id','schedule.instructor_id','curriculum.curriculum_id','entity.logo', 'course.day_of_week','entity.name','curriculum.name','course.time_start', 'course.time_end','event_type.name')\n\t\t\t->groupBy(\n\t\t\t\tDB::raw('curriculum.curriculum_id, course.course_id, entity.logo, course.day_of_week, entity.name, curriculum.name, course.time_start, course.time_end' .\n\t\t\t\t\t(isset($conditions['sort']) && $conditions['sort'] !== null ? \", \" . $extraGroup : '' )\n\t\t\t\t)\n\t\t\t)\n\t\t\t->orderByRaw(isset($conditions['sort']) && $conditions['sort'] !== null ? $conditions['sort'] : 'course.day_of_week ASC, course.course_id DESC')\n\t\t\t->get();\n\n\t\t//echo(\"<br>Total : \" . sizeof($searchData) . \" records\");\n\t\tforeach ($searchData as $data) {\n\t\t\t/*echo('<br>' . $data->program_id . '|' . $data->program_name . '|'. $data->activity_id . '|' . $data->provider_name . '|' . $data->location_name);*/\n\t\t\t//echo('<br>' . $data->provider_id . '|' . $data->provider_name . '|' . $data->location_name);\n\n\n\t\t\t$day = DB::table('day_of_week')->where('day_of_week.day_of_week_id',$data->day_of_week)->first();\n\t\t\t$day = DB::table('day_of_week')->where('day_of_week.day_of_week_id',$data->day_of_week)->first();\n\n\n\t\t\t//echo('<br>' . $data->course_id . \"~\" . $data->program_name . '#'.$day->name. \"|\". date('h:i',strtotime($data->time_start)) . '-' .date('h:i',strtotime($data->time_end)));\n\t\t\t$item = ['course_id' => $data->course_id,\n\t\t\t\t'entity_logo' => ($data->entity_logo ? $data->entity_logo : $default_logo),\n\t\t\t\t'entity_name' => $data->entity_name,\n\t\t\t\t'curriculum_name' => $data->curriculum_name,\n\t\t\t\t'day_name' => $day->name,\n\t\t\t\t'time_start' => date('H:i',strtotime($data->time_start)),\n\t\t\t\t'time_end' => date('H:i',strtotime($data->time_end))];\n\n\t\t\t/*$schedules = DB::table('schedule')\n\t\t\t\t->select('schedule.schedule_id', 'program.name')\n\t\t\t\t->join('program', 'program.program_id', 'curriculum.program_id')\n\t\t\t\t->where('curriculum.curriculum_id', $data->curriculum_id)\n\t\t\t\t->orderBy('program.activity_id', 'DESC')\n\t\t\t\t->get();\n\n\t\t\tforeach ($schedules as $schedule) {\n\t\t\t\t//echo($program->program_id . '|' . $program->name );\n\t\t\t}*/\n\n\t\t\t$programs = DB::table('curriculum')\n\t\t\t\t->select('program.program_id', 'program.name')\n\t\t\t\t->join('program', 'program.program_id', 'curriculum.program_id')\n\t\t\t\t->where('curriculum.curriculum_id', $data->curriculum_id)\n\t\t\t\t->orderBy('program.activity_id', 'DESC')\n\t\t\t\t->get();\n\n\t\t\t$searchActivities = [];\n\t\t\tforeach ($programs as $program) {\n\t\t\t\t//echo($program->program_id . '|' . $program->name );\n\t\t\t\t$activities = DB::table('program')\n\t\t\t\t\t->select('activity.logo', 'program.provider_id', DB::raw('program.name program_name'))\n\t\t\t\t\t->join('activity', 'program.activity_id', 'activity.activity_id')\n\t\t\t\t\t->leftjoin('activity_classification', 'activity.activity_classification_id', 'activity_classification.activity_classification_id')\n\t\t\t\t\t->where('program.program_id', $program->program_id)\n\t\t\t\t\t->whereRaw(\n\t\t\t\t\t\t(isset($conditions['activity_id']) && $conditions['activity_id'] !== null ? \"program.activity_id in (\" . implode(\",\",$conditions['activity_id']) . \") AND \" : '') .\n\t\t\t\t\t\t(isset($conditions['activity_classification_id']) && $conditions['activity_classification_id'] !== null ? \"activity.activity_classification_id in (\" . implode(\",\",$conditions['activity_classification_id']) . \") AND \" : '') .\n\t\t\t\t\t\t(isset($conditions['activity_type_id']) && $conditions['activity_type_id'] !== null ? \"activity_classification.activity_type_id in (\" . implode(\",\",$conditions['activity_type_id']) . \") AND \" : '') .\n\t\t\t\t\t\t('program.status = 0')\n\t\t\t\t\t)\n\t\t\t\t\t//->groupBy('activity.logo')\n\t\t\t\t\t->get();\n\n\t\t\t\tforeach ($activities as $activity) {\n\t\t\t\t\t//echo('<img src=\"' . $activity->logo . '\" style=\"width:2%;\" alt=\"' . $activity->program_name . '\" title=\"' . $activity->program_name . '\">');\n\t\t\t\t\t$searchActivity = [\n\t\t\t\t\t\t'logo' => $activity->logo,\n\t\t\t\t\t\t'name' => $activity->program_name,\n\t\t\t\t\t];\n\t\t\t\t\tarray_push($searchActivities, $searchActivity);\n\t\t\t\t}\n\t\t\t}\n\t\t\tarray_push($result, array('item' => $item, 'activity' => $searchActivities));\n\t\t}\n\n\t\t$final = array('totalPage' => ceil(sizeof($searchAll)/$limit), 'total' => ( sizeof($searchAll) > 0 ? sizeof($searchAll) : 0), 'result' => $result, 'debug' => DB::getQueryLog()[0]['query']);\n\t\treturn $final;\n\t}", "public function searchAction() {\n\t\t$modelName = $this->_getParam('model');\n\t\t$model = Marcel_Backoffice_Model::factory($modelName);\n\t\t$this->view->cols = $model->info('cols');\n\t\t$this->view->model = $this->_getParam('model');\n\t\t$this->view->config = Marcel_Backoffice_Config::getInstance()->getConfig();\n\t\t\n\t\tif ($this->_request->isPost()) {\n\t\t\t$fields = array();\n\t\t\t$func \t= array();\n\t\t\t$query \t= array();\n\t\t\tforeach ($_POST['query'] as $key => $q) {\n\t\t\t\tif (isset($_POST['fields'][$key]) && !empty($_POST['fields'][$key])) {\n\t\t\t\t\t$fields[$key] = $_POST['fields'][$key];\n\t\t\t\t\t$func[$key] \t= $_POST['func'][$key];\n\t\t\t\t\t$query[$key] \t= $_POST['query'][$key];\n\t\t\t\t}\n\t\t\t}\n\t\t\t$data = array('fields' => $fields, 'func' => $func, 'query' => $query);\n\t\t\t$data = serialize($data);\n\t\t\t$this->_helper->redirector('list', null, null, array('model' => $modelName, 'data' => $data));\n\t\t}\n\t}", "public function all()\n {\n return $this->model->get();\n }", "public function master_search() {\r\n $this->db->join(\r\n '__Vehicles', \r\n '__Vehicles.__ContactId = ' . $this->table_name. '.' . $this->contactId_fieldname ,\r\n 'left outer'\r\n ); \r\n return $this->get();\r\n }", "public function getItemsBy($params = false)\n {\n $query = $this->model->query();\n\n /*== RELATIONSHIPS ==*/\n if (in_array('*', $params->include)) {//If Request all relationships\n $query->with([]);\n } else {//Especific relationships\n $includeDefault = [];//Default relationships\n if (isset($params->include))//merge relations with default relationships\n $includeDefault = array_merge($includeDefault, $params->include);\n $query->with($includeDefault);//Add Relationships to query\n }\n\n /*== FILTERS ==*/\n if (isset($params->filter)) {\n $filter = $params->filter;//Short filter\n\n //Filter by date\n if (isset($filter->date)) {\n $date = $filter->date;//Short filter date\n $date->field = $date->field ?? 'created_at';\n if (isset($date->from))//From a date\n $query->whereDate($date->field, '>=', $date->from);\n if (isset($date->to))//to a date\n $query->whereDate($date->field, '<=', $date->to);\n }\n\n //Order by\n if (isset($filter->order)) {\n $orderByField = $filter->order->field ?? 'position';//Default field\n $orderWay = $filter->order->way ?? 'desc';//Default way\n $query->orderBy($orderByField, $orderWay);//Add order to query\n }\n\n // Filter By Menu\n if (isset($filter->menu)) {\n $query->where('menu_id', $filter->menu);\n }\n\n //add filter by search\n if (isset($filter->search)) {\n //find search in columns\n $query->where(function ($query) use ($filter) {\n $query->whereHas('translations', function ($query) use ($filter) {\n $query->where('locale', $filter->locale)\n ->where('title', 'like', '%' . $filter->search . '%');\n })->orWhere('id', 'like', '%' . $filter->search . '%')\n ->orWhere('updated_at', 'like', '%' . $filter->search . '%')\n ->orWhere('created_at', 'like', '%' . $filter->search . '%');\n });\n }\n\n }\n\n /*== FIELDS ==*/\n if (isset($params->fields) && count($params->fields))\n $query->select($params->fields);\n\n /*== REQUEST ==*/\n if (isset($params->page) && $params->page) {\n return $query->paginate($params->take);\n } else {\n $params->take ? $query->take($params->take) : false;//Take\n return $query->get();\n }\n }", "public function getList()\n {\n return $this->model->getList();\n }", "public function findBy(array $filters);", "public function getAll()\n {\n return $this->model->all();\n }", "public function getAll()\n {\n return $this->model->all();\n }", "public function getAll()\n {\n return $this->model->all();\n }", "public function search()\n\t{\n\t\t// @todo Please modify the following code to remove attributes that should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('id',$this->id);\n\t\t$criteria->compare('model',$this->model,true);\n\t\t$criteria->compare('brand',$this->brand,true);\n\t\t$criteria->compare('status',$this->status,true);\n\t\t$criteria->compare('width',$this->width);\n\t\t$criteria->compare('height',$this->height);\n\t\t$criteria->compare('goods_thumb',$this->goods_thumb,true);\n\t\t$criteria->compare('goods_img',$this->goods_img,true);\n\t\t$criteria->compare('model_search',$this->model_search,true);\n\t\t$criteria->compare('brand_search',$this->brand_search,true);\n\t\t$criteria->compare('brand2',$this->brand2,true);\n\t\t$criteria->compare('brand2_search',$this->brand2_search,true);\n\t\t$criteria->compare('brand3',$this->brand3,true);\n\t\t$criteria->compare('brand3_search',$this->brand3_search,true);\n\t\t$criteria->compare('brand4',$this->brand4,true);\n\t\t$criteria->compare('brand4_search',$this->brand4_search,true);\n\t\t$criteria->compare('model2',$this->model2,true);\n\t\t$criteria->compare('model2_search',$this->model2_search,true);\n\t\t$criteria->compare('model3',$this->model3,true);\n\t\t$criteria->compare('model3_search',$this->model3_search,true);\n\t\t$criteria->compare('model4',$this->model4,true);\n\t\t$criteria->compare('model4_search',$this->model4_search,true);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "public function getList($params = [])\n {\n $model = $this->prepareModel();\n return $model::all();\n }", "abstract protected function getSearchModelName(): string;", "public function getItemsCriteria() {}", "public function getItemsCriteria() {}", "public function getFilters();", "public function getSearch();", "public static function getList(array $filters){\n return self::model()->findAllByAttributes($filters);\n }", "public function search()\n {\n $criteria = new CDbCriteria;\n\n $criteria->compare('id', $this->id);\n $criteria->compare('name', $this->name, true);\n $criteria->compare('url', $this->url);\n $criteria->compare('type', $this->type);\n\n return new CActiveDataProvider($this, array(\n 'criteria' => $criteria,\n 'pagination' => array('pageSize' => 100),\n ));\n }", "public function actionList() {\n switch ($_GET['model']) {\n case 'Product':\n $models = Product::model()->findAll();\n break;\n case 'Vendor':\n $models = Vendor::model()->findAll();\n break;\n case 'FavoriteProduct':\n $models = FavoriteProduct::model()->findAll();\n break;\n case 'Order':\n $models = Order::model()->findAll();\n break;\n case 'Rating':\n $models = Rating::model()->findAll();\n break;\n case 'Review':\n $models = Review::model()->findAll();\n break;\n case 'UserAddress':\n $models = UserAddress::model()->findAll();\n break;\n case 'OrderDetail':\n $models = OrderDetail::model()->findAll();\n break;\n default:\n $this->_sendResponse(0, 'You have pass invalid modal name');\n Yii::app()->end();\n }\n // Did we get some results?\n if (empty($models)) {\n // No\n $this->_sendResponse(0, 'No Record found ');\n } else {\n // Prepare response\n $rows = array();\n $i = 0;\n foreach ($models as $model) {\n $rows[] = $model->attributes;\n if ($_GET['model'] == 'Order') {\n $rows[$i]['cart_items'] = Product::model()->getProducts($model->product_id);\n $rows[$i]['order_detail'] = OrderDetail::model()->findAll(array('condition' => 'order_id ='.$model->id));\n }\n $i = $i + 1;\n }\n // Send the response\n $this->_sendResponse(1, '', $rows);\n }\n }", "static public function filterData($model_name)\n {\n $query = \"{$model_name}Query\";\n $objects = $query::create()->find();\n \n if ($objects != null) {\n\n $array = array();\n foreach ($objects as $object) {\n $array[$object->getId()] = $object->__toString();\n }\n\n return $array;\n } else {\n return array();\n }\n }", "public static function getList(string $filter='')\n {\n $query = self::with(['product','insuredPerson','agency'])->whereNotNull('n_OwnerId_FK');\n\n $filterArray = json_decode(request('filter'));\n\n if (is_object($filterArray)) {\n foreach($filterArray as $key=>$value) {\n if (empty($value)) {\n continue;\n }\n if (is_array($value)) {\n $query->whereIn($key, $value);\n continue;\n }\n $query->where($key, 'like', \"%$value%\");\n }\n }\n return $query;\n }", "public function getCriteria();", "public static function getSearchable()\n {\n return [\n 'columns' => [],\n 'joins' => [\n \n ]\n ];\n }", "static function filter($model) {\n $cond = Session::get('filter', strtolower($model->source));\n $param = array(\n /* Relaciones */\n 'rel' => array(\n '=' => 'Igual',\n 'LIKE' => 'Parecido',\n '<>' => 'Diferente',\n '<' => 'Menor',\n '>' => 'Mayor'\n ),\n 'col' => array_diff($model->fields, $model->_at, $model->_in, $model->primary_key),\n 'model' => $model,\n 'cond' => $cond\n );\n ob_start();\n View::partial('backend/filter', false, $param);\n return ob_get_clean();\n }", "public function findByModelName($model_name);", "abstract public function getFieldsSearchable();", "function _get_by_related($model, $arguments = array())\r\n\t{\r\n\t\tif ( ! empty($model))\r\n\t\t{\r\n\t\t\t// Add model to start of arguments\r\n\t\t\t$arguments = array_merge(array($model), $arguments);\r\n\t\t}\r\n\r\n\t\t$this->_related('where', $arguments);\r\n\r\n\t\treturn $this->get();\r\n\t}", "public function autocomplete_search() {\n\tif (!empty($this->request->query['term'])) {\n\t $model = Inflector::camelize(Inflector::singularize($this->request->params['controller']));\n\t $my_models = $this->$model->find('all', array(\n\t\t 'conditions' => array($model . '.name LIKE' => $this->request->query['term'] . '%'),\n\t\t 'limit' => 10,\n\t\t 'contain' => false,\n\t\t\t ));\n\t $json_array = array();\n\t foreach ($my_models as $my_model) {\n\t\t$json_array[] = $my_model[$model];\n\t }\n\t $json_str = json_encode($json_array);\n\t $this->autoRender = false;\n\t return $json_str;\n\t}\n }", "public static function getModels()\n\t{\n\t\t$result = [];\n\t\t$path = __DIR__ . DIRECTORY_SEPARATOR . 'model' . DIRECTORY_SEPARATOR;\n\t\t$Iterator = new RecursiveDirectoryIterator($path);\n\t\t$objects = new RecursiveIteratorIterator($Iterator, RecursiveIteratorIterator::SELF_FIRST);\n\t\tforeach ($objects as $name => $object)\n\t\t{\n\t\t\tif (strtolower(substr($name, -4) != '.php'))\n\t\t\t{\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t$name = strtolower(str_replace($path, '', substr($name, 0, strlen($name) - 4)));\n\t\t\t$name = str_replace(DIRECTORY_SEPARATOR, '\\\\', $name);\n\t\t\t$name = 'Model\\\\' . ucwords($name, '\\\\');\n\t\t\tif (class_exists($name))\n\t\t\t{\n\t\t\t\t$result[]= $name;\n\t\t\t}\n\t\t}\n\t\treturn $result;\n\t}", "public function getListQuery();", "public function search($model, $request)\n {\n $search = filter_var($request->get('search'), FILTER_SANITIZE_STRING);\n\n // Get optional filters\n // FILTER: GEOLOCATION\n if($request->input('location')) {\n $location = filter_var($request->get('location'), FILTER_SANITIZE_STRING);\n }\n if($request->input('geo_lat')) {\n $geo_lat = filter_var($request->get('geo_lat'), FILTER_SANITIZE_STRING);\n $geo_lng = filter_var($request->get('geo_lng'), FILTER_SANITIZE_STRING);\n }\n\n /**\n * Get current page number for location manual Pagination\n */\n $page = $request->get('page') ? $request->get('page') : 1;\n\n\n // Location first, since it's a special query\n if(isset($geo_lat) && isset($geo_lng)) {\n \n $location_data = Posts::location($geo_lat, $geo_lng, $search, 25, 100); \n\n // Hard and dirty search function through collection\n // since search with location method doesn't work still\n if($search !== '') {\n $location_data = $location_data->filter(function ($item) use ($search) {\n return stripos($item->name, $search) !== false;\n });\n }\n\n // Paginate results because location method can't\n $paginate = new Paginate;\n return $paginate->paginate($location_data, 15, $page, [\n 'path' => '/search/'\n ]);\n\n } \n // Section selection handler (brands/shops/prods/strains)\n elseif($search)\n {\n return $model->where('name', 'like', \"%$search%\");\n }\n\n }", "public function getWorkFlowModels()\n {\n return $this->postRequest('GetWorkFlowModels');\n }", "public function getList()\n {\n $filter = $this->getEvent()->getRouteMatch()->getParam('filter', null);\n return $this->getService()\n ->getList($filter);\n }", "private function _getAllModels(): array {\n\t\t$models = Array();\n\t\t$folder = Environment::$dirs->models;\n\t\t$files = array_diff(scandir($folder), array('.', '..'));\n\t\tforeach ($files as $fileName) {\n\t\t\tinclude_once($folder.DIRECTORY_SEPARATOR.$fileName);\n\t\t\t$className = basename($fileName, \".php\");\n\t\t\t$classNameNamespaced = \"\\\\Jeff\\\\Api\\\\Models\\\\\" . ucfirst($className);\n\t\t\t$model = new $classNameNamespaced($this->db, $this->account);\n\t\t\t$models[$model->modelNamePlural] = $model;\n\t\t}\n\t\treturn $models;\n\t}", "function getAll(){\n\n\t\t\t$this->db->order_by(\"status\", \"asc\");\n\t\t\t$query = $this->db->get_where($this->table);\n\t\t\treturn $query;\n\t\t}", "public function actionViewModelList($modelName)\n\t{\n\t\t$pageSize = BaseModel::PAGE_SIZE;\n\t\tif ($_POST[\"sortBy\"]) {\n\t\t\t$order = $_POST[\"sortBy\"];\n\t\t}\n\t\t//echo $order;\n\t\t/*if (!$modelName) {\n\t\t\t\n\t\t}*/\n\t\t$sess_data = Yii::app()->session->get($modelName.'search');\n\t\t$searchId = $_GET[\"search_id\"];\n\t\t$fromSearchId = TriggerValues::model() -> decodeSearchId($searchId);\n\t\t//print_r($fromSearchId);\n\t\t//echo \"<br/>\";\n\t\t//Если задан $_POST/GET с формы, то сливаем его с массивом из searchId с приоритетом у searchId\n\t\tif ($_POST[$modelName.'SearchForm'])\n\t\t{\n\t\t\t$fromPage = array_merge($_POST[$modelName.'SearchForm'], $fromSearchId);\n\t\t} else {\n\t\t\t//Если же он не задан, то все данные берем из searchId\n\t\t\t$fromPage = $fromSearchId;\n\t\t}\n\t\t//print_r($fromPage);\n\t\tif ((!$fromPage)&&(!$sess_data))\n\t\t{\n\t\t\t//Если никаких критереев не задано, то выдаем все модели.\n\t\t\t$searched = $modelName::model() -> userSearch(array(),$order);\n\t\t} else {\n\t\t\tif ($_GET[\"clear\"]==1)\n\t\t\t{\n\t\t\t\t//Если критерии заданы, но мы хотим их сбросить, то снова выдаем все и обнуляем нужную сессию\n\t\t\t\tYii::app()->session->remove($modelName.'search');\n\t\t\t\t$page = 1;\n\t\t\t\t//was://$searched = $modelName::model() -> userSearch(array(),$order);\n\t\t\t\t$searched = $modelName::model() -> userSearch($fromSearchId,$order);\n\t\t\t} else {\n\t\t\t\t//Если же заданы какие-то критерии, но не со страницы, то вместо них подаем данные из сессии\n\t\t\t\tif (!$fromPage)\n\t\t\t\t{\n\t\t\t\t\t$fromPage = $sess_data;\n\t\t\t\t\t//echo \"from session\";\n\t\t\t\t}\n\t\t\t\t//Адаптируем критерии под специализацию. Если для данной специализации нет какого-то критерия, а он где-то сохранен, то убираем его.\n\t\t\t\t$fromPage = Filters::model() -> FilterSearchCriteria($fromPage, $modelName);\n\t\t\t\t//Если критерии заданы и обнулять их не нужно, то запускаем поиск и сохраняем его критерии в сессию.\n\t\t\t\tYii::app()->session->add($modelName.'search',$fromPage);\n\t\t\t\t$searched = $modelName::model() -> userSearch($fromPage,$order);\n\t\t\t}\n\t\t}\n\t\t//делаем из массива объектов dataProvider\n $dataProvider = new CArrayDataProvider($searched['objects'],\n array( 'keyField' =>'id'\n ));\n\t\t$this -> layout = 'layoutNoForm';\n\t\t//Определяем страницу.\n\t\t$maxPage = ceil(count($searched['objects'])/$pageSize);\n\t\tif ($_GET[\"page\"]) {\n\t\t\t$_POST[\"page\"] = $_GET[\"page\"];\n\t\t}\n\t\t$page = $_POST[\"page\"] ? $_POST[\"page\"] : 1;\n\t\t$page = (($page >= 1)&&($page <= $maxPage)) ? $page : 1;\n\t\t$_POST[$modelName.'SearchForm'] = $fromPage;\n\t\t$this->render('show_list', array(\n\t\t\t'objects' => array_slice($searched['objects'],($page - 1) * $pageSize, $pageSize),\n\t\t\t'modelName' => $modelName,\n\t\t\t'filterForm' => $modelName::model() -> giveFilterForm($fromPage),\n\t\t\t'fromPage' => $fromPage,\n\t\t\t'description' => $searched['description'],\n\t\t\t'specialities' => Filters::model() -> giveSpecialities(),\n\t\t\t'page' => $page,\n\t\t\t'maxPage' => $maxPage,\n\t\t\t'total' => count($searched['objects'])\n\t\t));\n\t\t\n\t}", "public function search_through(Request $request)\n {\n $reports = Payment::query();\n\n if (!empty($request->query())) {\n foreach ($request->query() as $key => $value) {\n if ($key == 'date') {\n $reports->whereDate('created_at', '>=', $value);\n } else {\n $reports->where($key, $value);\n }\n }\n }\n\n return $reports->get();\n }", "public function models($query, array $options = [])\n {\n $hits = $this->run($query);\n list($models, $totalCount) = $this->search->config()->models($hits, $options);\n // Remember total number of results.\n $this->setCachedCount($query, $totalCount);\n\n return Collection::make($models);\n }", "public function index()\n {\n $this->repository->pushCriteria(app('Prettus\\Repository\\Criteria\\RequestCriteria'));\n return $this->repository->all();\n }", "public function search()\n\t{\n\t\t// @todo Please modify the following code to remove attributes that should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n \n $criteria->with=array('c','b');\n\t\t$criteria->compare('pid',$this->pid,true);\n\t\t$criteria->compare('t.cid',$this->cid,true);\n\t\t$criteria->compare('t.bid',$this->bid,true);\n\n $criteria->compare('c.classify_name',$this->classify,true);\n\t\t$criteria->compare('b.brand_name',$this->brand,true);\n \n $criteria->addCondition('model LIKE :i and model REGEXP :j');\n $criteria->params[':i'] = \"%\".$this->index_search.\"%\";\n $criteria->params[':j'] = \"^\".$this->index_search;\n\n \n\t\t$criteria->compare('model',$this->model,true);\n\t\t$criteria->compare('package',$this->package,true);\n\t\t$criteria->compare('RoHS',$this->RoHS,true);\n\t\t$criteria->compare('datecode',$this->datecode,true);\n\t\t$criteria->compare('quantity',$this->quantity);\n\t\t$criteria->compare('direction',$this->direction,true);\n $criteria->compare('image_url',$this->image_url,true);\n\t\t$criteria->compare('create_time',$this->create_time,true);\n\t\t$criteria->compare('status',$this->status);\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}", "public function queryset(){\n return $this->_get_queryset();\n }", "public function index(Request $request)\n {\n $keyword = $request->get('search');\n $perPage = $request->get('limit');\n $perPage = empty($perPage) ? 25 : $perPage;\n\n if (!empty($keyword)) {\n $filters = Filter::where('sl_gender', 'LIKE', \"%$keyword%\")\n ->orWhere('sl_min_price', 'LIKE', \"%$keyword%\")\n ->orWhere('sl_max_price', 'LIKE', \"%$keyword%\")\n ->orWhere('sl_color', 'LIKE', \"%$keyword%\")\n ->orWhere('sl_occasion', 'LIKE', \"%$keyword%\")\n ->orWhere('sl_style', 'LIKE', \"%$keyword%\")\n ->orWhere('wg_age', 'LIKE', \"%$keyword%\")\n ->orWhere('wg_min_price', 'LIKE', \"%$keyword%\")\n ->orWhere('wg_max_price', 'LIKE', \"%$keyword%\")\n ->orWhere('wg_date_from', 'LIKE', \"%$keyword%\")\n ->orWhere('wg_date_to', 'LIKE', \"%$keyword%\")\n ->orWhere('wg_city_id', 'LIKE', \"%$keyword%\")\n ->orWhere('user_id', 'LIKE', \"%$keyword%\")\n ->paginate($perPage);\n } else {\n $filters = Filter::paginate($perPage);\n }\n\n return $filters;\n }", "public function getList(\\Magento\\Framework\\Api\\SearchCriteriaInterface $searchCriteria);", "public function getList(\\Magento\\Framework\\Api\\SearchCriteriaInterface $searchCriteria);", "public function getList(\\Magento\\Framework\\Api\\SearchCriteriaInterface $searchCriteria);", "public function getSearchCriterias()\n {\n return $this->_searchCriterias;\n }", "private function getSearchConditions()\n {\n $searchConditions = [];\n\n $userIds = $this->request->get('ids') ?? [];\n if ($userIds) {\n $searchConditions['id'] = $userIds;\n }\n\n $email = $this->request->get('email') ?? '';\n if ($email) {\n $searchConditions['email'] = $email;\n }\n\n return $searchConditions;\n }", "public function findAllAction();", "public function search() {\n // @todo Please modify the following code to remove attributes that should not be searched.\n\n $criteria = new CDbCriteria;\n\n $criteria->compare('id', $this->id);\n $criteria->compare('entity_id', $this->entity_id);\n $criteria->compare('dbname', $this->dbname, true);\n $criteria->compare('isfiltered', $this->isfiltered);\n $criteria->compare('filtertype', $this->filtertype);\n $criteria->compare('alias', $this->alias, true);\n $criteria->compare('enabled', $this->enabled);\n\n return new CActiveDataProvider($this, array(\n 'criteria' => $criteria,\n 'pagination' => false,\n ));\n }", "public function search(Request $request)\n {\n if(!$request->has('query')) {\n return response()->json(['message' => 'Please type a keyword.']);\n }\n\n $userTenant = Auth::userTenant();\n $user = Auth::user();\n\n $searchableModelNameSpace = 'App\\\\Models\\\\';\n $result = [];\n // Loop through the searchable models.\n foreach (config('scout.searchableModels') as $model) {\n $modelClass = $searchableModelNameSpace.$model;\n $modelService = app($model.'Ser');\n\n if($model == 'Task') {\n $allowedModels = $modelService->searchForUserTenant($userTenant, $request->get('query'))->get();\n } else {\n $foundModels = $modelClass::search($request->get('query'))->get();\n if ($model === 'Comment') {\n $foundModels->where('groupId', '!=', null)->toArray();\n }\n $policy = app()->make('App\\Policies\\V2\\\\' . $model . 'Policy');\n $allowedModels = $foundModels->filter(function(BaseModel $foundModel) use($user, $policy) {\n return $policy->getAccess($user, $foundModel);\n });\n }\n\n $result[Str::lower($model) . 's'] = $allowedModels;\n }\n\n $responseData = ['message' => 'Keyword(s) matched!', 'results' => $result, 'pagination' => ['more' => false]];\n $responseHeader = Response::HTTP_OK;\n if (!count($result)) {\n $responseData = ['message' => 'No results found, please try with different keywords.'];\n $responseHeader = Response::HTTP_NOT_FOUND;\n }\n\n return response()->json($responseData, $responseHeader);\n }", "function GetFilterList() {\n\t\tglobal $UserProfile;\n\n\t\t// Initialize\n\t\t$sFilterList = \"\";\n\t\t$sSavedFilterList = \"\";\n\n\t\t// Load server side filters\n\t\tif (EW_SEARCH_FILTER_OPTION == \"Server\" && isset($UserProfile))\n\t\t\t$sSavedFilterList = $UserProfile->GetSearchFilters(CurrentUserName(), \"fsolicitudlistsrch\");\n\t\t$sFilterList = ew_Concat($sFilterList, $this->id->AdvancedSearch->ToJson(), \",\"); // Field id\n\t\t$sFilterList = ew_Concat($sFilterList, $this->nombre_contacto->AdvancedSearch->ToJson(), \",\"); // Field nombre_contacto\n\t\t$sFilterList = ew_Concat($sFilterList, $this->name->AdvancedSearch->ToJson(), \",\"); // Field name\n\t\t$sFilterList = ew_Concat($sFilterList, $this->lastname->AdvancedSearch->ToJson(), \",\"); // Field lastname\n\t\t$sFilterList = ew_Concat($sFilterList, $this->_email->AdvancedSearch->ToJson(), \",\"); // Field email\n\t\t$sFilterList = ew_Concat($sFilterList, $this->address->AdvancedSearch->ToJson(), \",\"); // Field address\n\t\t$sFilterList = ew_Concat($sFilterList, $this->phone->AdvancedSearch->ToJson(), \",\"); // Field phone\n\t\t$sFilterList = ew_Concat($sFilterList, $this->cell->AdvancedSearch->ToJson(), \",\"); // Field cell\n\t\t$sFilterList = ew_Concat($sFilterList, $this->created_at->AdvancedSearch->ToJson(), \",\"); // Field created_at\n\t\t$sFilterList = ew_Concat($sFilterList, $this->id_sucursal->AdvancedSearch->ToJson(), \",\"); // Field id_sucursal\n\t\t$sFilterList = ew_Concat($sFilterList, $this->tipoinmueble->AdvancedSearch->ToJson(), \",\"); // Field tipoinmueble\n\t\t$sFilterList = ew_Concat($sFilterList, $this->id_ciudad_inmueble->AdvancedSearch->ToJson(), \",\"); // Field id_ciudad_inmueble\n\t\t$sFilterList = ew_Concat($sFilterList, $this->id_provincia_inmueble->AdvancedSearch->ToJson(), \",\"); // Field id_provincia_inmueble\n\t\t$sFilterList = ew_Concat($sFilterList, $this->tipovehiculo->AdvancedSearch->ToJson(), \",\"); // Field tipovehiculo\n\t\t$sFilterList = ew_Concat($sFilterList, $this->id_ciudad_vehiculo->AdvancedSearch->ToJson(), \",\"); // Field id_ciudad_vehiculo\n\t\t$sFilterList = ew_Concat($sFilterList, $this->id_provincia_vehiculo->AdvancedSearch->ToJson(), \",\"); // Field id_provincia_vehiculo\n\t\t$sFilterList = ew_Concat($sFilterList, $this->tipomaquinaria->AdvancedSearch->ToJson(), \",\"); // Field tipomaquinaria\n\t\t$sFilterList = ew_Concat($sFilterList, $this->id_ciudad_maquinaria->AdvancedSearch->ToJson(), \",\"); // Field id_ciudad_maquinaria\n\t\t$sFilterList = ew_Concat($sFilterList, $this->id_provincia_maquinaria->AdvancedSearch->ToJson(), \",\"); // Field id_provincia_maquinaria\n\t\t$sFilterList = ew_Concat($sFilterList, $this->tipomercaderia->AdvancedSearch->ToJson(), \",\"); // Field tipomercaderia\n\t\t$sFilterList = ew_Concat($sFilterList, $this->documento_mercaderia->AdvancedSearch->ToJson(), \",\"); // Field documento_mercaderia\n\t\t$sFilterList = ew_Concat($sFilterList, $this->tipoespecial->AdvancedSearch->ToJson(), \",\"); // Field tipoespecial\n\t\t$sFilterList = ew_Concat($sFilterList, $this->email_contacto->AdvancedSearch->ToJson(), \",\"); // Field email_contacto\n\t\tif ($this->BasicSearch->Keyword <> \"\") {\n\t\t\t$sWrk = \"\\\"\" . EW_TABLE_BASIC_SEARCH . \"\\\":\\\"\" . ew_JsEncode2($this->BasicSearch->Keyword) . \"\\\",\\\"\" . EW_TABLE_BASIC_SEARCH_TYPE . \"\\\":\\\"\" . ew_JsEncode2($this->BasicSearch->Type) . \"\\\"\";\n\t\t\t$sFilterList = ew_Concat($sFilterList, $sWrk, \",\");\n\t\t}\n\t\t$sFilterList = preg_replace('/,$/', \"\", $sFilterList);\n\n\t\t// Return filter list in json\n\t\tif ($sFilterList <> \"\")\n\t\t\t$sFilterList = \"\\\"data\\\":{\" . $sFilterList . \"}\";\n\t\tif ($sSavedFilterList <> \"\") {\n\t\t\tif ($sFilterList <> \"\")\n\t\t\t\t$sFilterList .= \",\";\n\t\t\t$sFilterList .= \"\\\"filters\\\":\" . $sSavedFilterList;\n\t\t}\n\t\treturn ($sFilterList <> \"\") ? \"{\" . $sFilterList . \"}\" : \"null\";\n\t}", "public function findBy($model, Criteria $criteria = null, array $orderBy = null, $limit = null, $offset = null);" ]
[ "0.674474", "0.674474", "0.6608898", "0.6481127", "0.6379887", "0.63463205", "0.6310358", "0.63012093", "0.6253843", "0.62498426", "0.62498426", "0.6113065", "0.60784054", "0.6073788", "0.6047258", "0.60358477", "0.60340405", "0.6014864", "0.5982939", "0.598029", "0.59800965", "0.59693164", "0.59320474", "0.5927035", "0.5921763", "0.5892171", "0.5890299", "0.58507764", "0.58477783", "0.5827075", "0.5816161", "0.5812597", "0.5808757", "0.5791945", "0.5777391", "0.5770255", "0.57648605", "0.57630897", "0.5751502", "0.5740183", "0.5737852", "0.5728676", "0.57242346", "0.5724067", "0.57229716", "0.5720442", "0.571768", "0.57143664", "0.5713739", "0.5707095", "0.56940025", "0.5682193", "0.56716865", "0.5669861", "0.56696016", "0.56694824", "0.56694824", "0.56694824", "0.56680745", "0.56653553", "0.56573427", "0.5651677", "0.5650381", "0.5641178", "0.5635955", "0.56338453", "0.56320715", "0.56233394", "0.5617804", "0.5612171", "0.5610081", "0.55959284", "0.5579066", "0.5572859", "0.55577356", "0.5551721", "0.5549419", "0.5549175", "0.55477685", "0.55367595", "0.55334765", "0.5532778", "0.55324847", "0.55260164", "0.5520987", "0.5518995", "0.55140793", "0.5508976", "0.5506656", "0.55003047", "0.5499999", "0.5497245", "0.5497245", "0.5497245", "0.5495533", "0.54945207", "0.5493379", "0.5493126", "0.54911244", "0.54897344", "0.54849136" ]
0.0
-1
Warning: Please modify the following code to remove attributes that
public function searchPrint() { // should not be searched. $criteria=new CDbCriteria; $criteria->compare('rekening3_id',$this->rekening3_id); // $criteria->compare('rekening1_id',$this->rekening1_id); $criteria->compare('rekening2_id',$this->rekening2_id); $criteria->compare('LOWER(kdrekening3)',strtolower($this->kdrekening3),true); $criteria->compare('LOWER(nmrekening3)',strtolower($this->nmrekening3),true); $criteria->compare('LOWER(nmrekeninglain3)',strtolower($this->nmrekeninglain3),true); $criteria->compare('rekening3_aktif',$this->rekening3_aktif); // Klo limit lebih kecil dari nol itu berarti ga ada limit $criteria->limit=-1; return new CActiveDataProvider($this, array( 'criteria'=>$criteria, 'pagination'=>false, )); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function removeBlacklistedAttributes($attribs) \n { \n $this->_html = preg_replace('/[\\s]+('.$attribs.')=[\\s]*(\"[^\"]*\"|\\'[^\\']*\\')/i',\"\",$this->_html); \n $this->_html = preg_replace('/[\\s]+('.$attribs.')=[\\s]*[^ |^>]*/i',\"\",$this->_html); \n }", "public function removeAttributes()\n\t{\n\t\tforeach ($this->argsArray(func_get_args()) as $a) {\n\t\t\t$this->removed_attrs[] = $a;\n\t\t}\n\t}", "abstract protected function attributes();", "public function removeAllAttributes()\n {\n $this->attr = [];\n }", "private function function_die(){\n\t\tunset($this->attributes);\n\t}", "public function clearAttributes ()\n {\n\n $this->attributes = null;\n $this->attributes = array();\n\n }", "public function __unset($name)\n {\n // Dont' allow to unset attributes Ruts\n }", "function DOM_delete_empty_attributes() {\r\n\t\t$query = '//' . ReTidy::get_html_namespace() . '*[@*=\"\"]';\r\n\t\t$tags_with_empty_attribute = $this->xpath->query($query);\r\n\t\tforeach($tags_with_empty_attribute as $tag) {\r\n\t\t\t$tagName = $tag->nodeName;\r\n\t\t\t$array_attributes = DTD::getAttributesForElementByType($tagName, \"#IMPLIED\");\r\n\t\t\tforeach($tag->attributes as $attribute) {\r\n\t\t\t\tif(strlen($attribute->nodeValue) === 0) {\r\n\t\t\t\t\tforeach($array_attributes as $attribute2){\r\n\t\t\t\t\t\tif($attribute->nodeName === $attribute2) {\r\n\t\t\t\t\t\t\t$attribute->nodeValue = \"XXX9o9stripme9o9XXX\";\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "function getAttributes()\n {\n }", "public function attributes();", "function remove_image_alignment( $attributes ) {\n $attributes['class'] = str_replace( 'alignleft', 'alignnone', $attributes['class'] );\n\treturn $attributes;\n}", "function non_inline_attributes() {\r\n\t\t$this->code = preg_replace('/<span([^>]*) align=\"[^\"]*\"([^>]*)>/is', '<span$1$2>', $this->code);\r\n\t\t$this->code = preg_replace('/<span([^>]*) style=\"([^\"]*)text-align\\s*:\\s*[^;]*;([^\"]*)\"([^>]*)>/is', '<span$1 style=\"$2$3\"$4>', $this->code);\r\n\t}", "protected function getUnsafeAttributes()\n\t{\n\t\treturn array_merge(parent::getUnsafeAttributes(), [\n\t\t\t'checked',\n\t\t]);\n\t}", "public function unsetAllAttributeValue()\n {\n foreach ($this->attributes as $key=>$val) {\n $this->$key = null;\n }\n }", "function getAdditionalAttributes() ;", "function GetAttributes();", "function be_remove_image_alignment( $attributes ) {\r\n $attributes['class'] = str_replace( 'alignleft', 'aligncenter', $attributes['class'] );\r\n\treturn $attributes;\r\n}", "function rocket_lazyload_exclude_class( $attributes ) {\n\t$attributes[] = 'class=\"custom-logo\"';\n // custom-logo\n\n\treturn $attributes;\n}", "function remove_attachment_title_attr( $attr ) {\n\tunset($attr['title']);\n\treturn $attr;\n}", "function protected_attributes() {\n\t\treturn array();\n\n\t}", "public function remove_attribute($name)\n {\n }", "protected function filter_attributes()\n\t{\n\t\t$filter = array_flip(array('type', 'split', 'align'));\n\t\t\n\t\t$attrs = $this->manager->attrs();\n\t\t\n\t\t$this->btn_attrs = array_diff_key($attrs, $filter);\n\t\t$this->manager->attrs(array_intersect_key($attrs, $filter));\n\t}", "protected function _ensureInheritedAttributes() {}", "function filterAttr($attrSet) {\t\n\t\t$newSet = array();\n\t\t// process attributes\n\t\tfor ($i = 0; $i <count($attrSet); $i++) {\n\t\t\t// skip blank spaces in tag\n\t\t\tif (!$attrSet[$i]) continue;\n\t\t\t// split into attr name and value\n\t\t\t$attrSubSet = explode('=', trim($attrSet[$i]));\n\t\t\tlist($attrSubSet[0]) = explode(' ', $attrSubSet[0]);\n\t\t\t// removes all \"non-regular\" attr names AND also attr blacklisted\n\t\t\t//////\n\t\t\t///// NEEDS FIX!!! eregi zu preg_match umgeschrieben... stimmt das noch??? ////\n\t\t\t/////\n\t\t\tif ((!preg_match(\"^[a-z]*$\",$attrSubSet[0])) || (($this->xssAuto) && ((in_array(strtolower($attrSubSet[0]), $this->attrBlacklist)) || (substr($attrSubSet[0], 0, 2) == 'on')))) \n\t\t\t\tcontinue;\n\t\t\t// xss attr value filtering\n\t\t\tif ($attrSubSet[1]) {\n\t\t\t\t// strips unicode, hex, etc\n\t\t\t\t$attrSubSet[1] = str_replace('&#', '', $attrSubSet[1]);\n\t\t\t\t// strip normal newline within attr value\n\t\t\t\t$attrSubSet[1] = preg_replace('/\\s+/', '', $attrSubSet[1]);\n\t\t\t\t// strip double quotes\n\t\t\t\t$attrSubSet[1] = str_replace('\"', '', $attrSubSet[1]);\n\t\t\t\t// [requested feature] convert single quotes from either side to doubles (Single quotes shouldn't be used to pad attr value)\n\t\t\t\tif ((substr($attrSubSet[1], 0, 1) == \"'\") && (substr($attrSubSet[1], (strlen($attrSubSet[1]) - 1), 1) == \"'\"))\n\t\t\t\t\t$attrSubSet[1] = substr($attrSubSet[1], 1, (strlen($attrSubSet[1]) - 2));\n\t\t\t\t// strip slashes\n\t\t\t\t$attrSubSet[1] = stripslashes($attrSubSet[1]);\n\t\t\t}\n\t\t\t// auto strip attr's with \"javascript:\n\t\t\tif (\t((strpos(strtolower($attrSubSet[1]), 'expression') !== false) &&\t(strtolower($attrSubSet[0]) == 'style')) ||\n\t\t\t\t\t(strpos(strtolower($attrSubSet[1]), 'javascript:') !== false) ||\n\t\t\t\t\t(strpos(strtolower($attrSubSet[1]), 'behaviour:') !== false) ||\n\t\t\t\t\t(strpos(strtolower($attrSubSet[1]), 'vbscript:') !== false) ||\n\t\t\t\t\t(strpos(strtolower($attrSubSet[1]), 'mocha:') !== false) ||\n\t\t\t\t\t(strpos(strtolower($attrSubSet[1]), 'livescript:') !== false) \n\t\t\t) continue;\n\n\t\t\t// if matches user defined array\n\t\t\t$attrFound = in_array(strtolower($attrSubSet[0]), $this->attrArray);\n\t\t\t// keep this attr on condition\n\t\t\tif ((!$attrFound && $this->attrMethod) || ($attrFound && !$this->attrMethod)) {\n\t\t\t\t// attr has value\n\t\t\t\tif ($attrSubSet[1]) $newSet[] = $attrSubSet[0] . '=\"' . $attrSubSet[1] . '\"';\n\t\t\t\t// attr has decimal zero as value\n\t\t\t\telse if ($attrSubSet[1] == \"0\") $newSet[] = $attrSubSet[0] . '=\"0\"';\n\t\t\t\t// reformat single attributes to XHTML\n\t\t\t\telse $newSet[] = $attrSubSet[0] . '=\"' . $attrSubSet[0] . '\"';\n\t\t\t}\t\n\t\t}\n\t\treturn $newSet;\n\t}", "public function moveHtmlAttributesToAdditionalArguments() {}", "private function renameOldAttributes()\n {\n if ($this->mageVersion < '2.2.5') {\n $attributes = $this->attrNames;\n foreach ($attributes as $key => $attr) {\n $isExist = $this->eavConfig->getAttribute('catalog_product', 'wwe_'.$attr.'')->getAttributeId();\n if ($isExist != null) {\n $updateSql = \"UPDATE \".$this->tableNames['eav_attribute'].\" \"\n . \"SET attribute_code = 'en_\".$attr.\"', is_required = 0 \"\n . \"WHERE attribute_code = 'wwe_\".$attr.\"'\";\n $this->connection->query($updateSql);\n }\n }\n }\n }", "abstract function attributes(): array;", "public function getReservedForFutureUse1Attribute(){}", "function omega_enforce_attributes(&$variables) {\n // Copy over the classes array into the attributes array.\n if (!empty($variables['classes_array'])) {\n $variables['attributes_array']['class'] = !empty($variables['attributes_array']['class']) ? array_merge($variables['attributes_array']['class'], $variables['classes_array']) : $variables['classes_array'];\n $variables['attributes_array']['class'] = array_unique($variables['attributes_array']['class']);\n }\n\n // Sync that with the classes array. Remember: We don't recommend using it.\n if (!empty($variables['attributes_array']['class'])) {\n $variables['classes_array'] = $variables['attributes_array']['class'];\n }\n}", "public function sanitizeAttributes( $attributes, $meta )\n\t\t{\n\t\t\t$attributes = parent::sanitizeAttributes( $attributes, $meta );\n\t\t\t$attributes['columns'] = [];\n\t\t\tunset( $attributes[ 'sections' ] );\n\t\t\treturn $attributes;\n\t\t}", "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 _resetModifiedAttributesFlags() {\n\t\t$this->_modifiedAttributes = array();\n\t}", "public function fixedAttributes()\n {\n return array('pid');\n }", "public function setAttributes();", "abstract protected function getModelAttributes();", "function safecss_filter_attr($css, $deprecated = '')\n {\n }", "protected function attributes()\n {\n return [];\n }", "public function __unset($name) {\n\t\tif ($this->hasAttribute($name))\n\t\t\tunset($this->_attributes[$name]);\n\t\telse\n\t\t\tparent::__unset($name);\n\t}", "public function getAttributes()\n {\n }", "public function getAttributes() {}", "public function getAttributes() {}", "protected function getAttributes()\n {\n return [];\n }", "public function attributes() : array;", "public function safeAttributes()\n {\n return $this->attributes();\n }", "public function withoutAttribute($name)\n {\n }", "public function withoutAttribute($name)\n {\n }", "function clearAttributes()\n {\n $this->arrRelations = array();\n return true;\n }", "public function clearAttribs()\n {\n $this->attribs = [];\n return $this;\n }", "public function __unset($name)\n\t{\n\t\tif(isset($this->_attributes[$name]))\n\t\t\tunset($this->_attributes[$name]);\n\t\telse\n\t\t\tparent::__unset($name);\n\t}", "private function _getBaseAttributes( $aField ) {\r\n \r\n $_aBaseAttributes = $aField[ 'attributes' ] + array( 'class' => null );\r\n unset( \r\n $_aBaseAttributes[ 'input' ], \r\n $_aBaseAttributes[ 'select_button' ], \r\n $_aBaseAttributes[ 'name' ], \r\n $_aBaseAttributes[ 'value' ],\r\n $_aBaseAttributes[ 'type' ],\r\n $_aBaseAttributes[ 'remove_button' ] \r\n );\r\n return $_aBaseAttributes;\r\n \r\n }", "function extract_attrs($line) {\n if (preg_match(self::REGEX_ATTR, $line)) {\n return preg_replace(self::REGEX_ATTR, ' \\1', $line);\n }\n }", "public function get_attributes()\n {\n }", "public function get_attributes()\n {\n }", "public static function require_compare_attributes(){\n\t\treturn false;\n\t}", "public function getAttributes(){ }", "public function defineAttributes()\n\t{\n\t\treturn array();\n\t}", "function setNullAllAtributes()\n {\n $aPK = $this->getPrimary_key();\n $this->setId_dl('');\n $this->setDl('');\n $this->setRegion('');\n $this->setNombre_dl('');\n $this->setGrupo_estudios('');\n $this->setRegion_stgr('');\n $this->setStatus('');\n $this->setPrimary_key($aPK);\n }", "public function getRestUnHookableAttributes(): array\n {\n return [];\n }", "function protectAttr($str,$name=false)\n\t{\n\t\tif ($name && !preg_match('/^[A-Za-z][A-Za-z0-9_:.-]*$/',$str)) {\n\t\t\treturn '';\n\t\t}\n\t\t\n\t\treturn str_replace(array(\"'\",'\"'),array('&#039;','&quot;'),$str);\n\t}", "public static function supportedAttributes();", "function Hippo_Widget_Attributes() {\n\t\t\tnew Hippo_Widget_Attributes();\n\t\t}", "public function getUnloggableAttributes(): array\n {\n return [];\n }", "function fixAttributes(&$template,$attribute) {\n\tif ( ! is_array($template[$attribute]) ) return;\n\tif ( $template[$attribute]['@attributes'] ) {\n\t\t$template[$attribute][0]['@attributes'] = $template[$attribute]['@attributes'];\n\t\tif ( $template[$attribute]['value'])\n\t\t\t$template[$attribute][0]['value'] = $template[$attribute]['value'];\n\n\t\tunset($template[$attribute]['@attributes']);\n\t\tunset($template[$attribute]['value']);\n\t}\n\n\tif ( $template[$attribute] ) {\n\t\tforeach ($template[$attribute] as $tempArray) {\n\t\t\t$tempArray2[] = $tempArray['value'] ? array('@attributes'=>$tempArray['@attributes'],'@value'=>$tempArray['value']) : array('@attributes'=>$tempArray['@attributes']);\n\t\t}\n\t\t$template[$attribute] = $tempArray2;\n\t}\n}", "function _wp_post_thumbnail_class_filter_remove($attr)\n {\n }", "public function getReservedAttributes()\n {\n if ($this->_reservedAttributes === null) {\n $_reserved = array('position');\n $methods = get_class_methods(__CLASS__);\n foreach ($methods as $method) {\n if (preg_match('/^get([A-Z]{1}.+)/', $method, $matches)) {\n $method = $matches[1];\n $tmp = strtolower(preg_replace('/(.)([A-Z])/', \"$1_$2\", $method));\n $_reserved[] = $tmp;\n }\n }\n $_allowed = array(\n 'type_id','calculated_final_price','request_path','rating_summary'\n );\n $this->_reservedAttributes = array_diff($_reserved, $_allowed);\n }\n return $this->_reservedAttributes;\n }", "public function testAddAttributesToNodeForNoAttributes()\n {\n $dom = Document::fromHtml('<p>Hello World</p>');\n $element = $dom->createElement('b');\n $element->setAttributes([]);\n $this->assertFalse($element->hasAttributes());\n }", "public function overlayUserdefinedHtmlAttributeValues() {}", "public function getAdditionalAttributes() {}", "public function getAdditionalAttributes() {}", "public function getAdditionalAttributes() {}", "public function getAdditionalAttributes() {}", "public function getAdditionalAttributes() {}", "public function getAdditionalAttributes() {}", "public function getAdditionalAttributes() {}", "public function getAdditionalAttributes() {}", "private function attrNames()\n {\n $dimAttr = [\n 'length' => 'length',\n 'width' => 'width',\n 'height' => 'height',\n ];\n $dsAttr = [\n 'dropship' => 'dropship',\n 'dropship_location' => 'dropship_location'\n ];\n\n $this->attrNames = ($this->mageVersion >= '2.2.5') ? $dsAttr : array_merge($dsAttr, $dimAttr);\n }", "public function testGetChangeAttributes()\n {\n }", "public function testUnlinkAttributesFromCertificate()\n {\n }", "private function removeAttribute( $attr )\n {\n if (isset($this->attributeTypes[$attr]) || array_key_exists($attr, $this->attributeTypes))\n unset( $this->attributeTypes[$attr] ); // forma de remover un valor de un array...\n }", "protected function getNotRequiredAttributesArray()\n {\n return [\"custom_design\",\"custom_design_to\", \"image\",\"price\",\"sku_type\",\"special_from_date\",\"special_to_date\",\"tax_class_id\",\"sku\", \"price_type\",'page_layout', 'custom_design_from', 'gift_message_available','media_gallery', 'custom_layout', 'tier_price', 'old_id', 'gallery', 'msrp',\n 'msrp_display_actual_price_type', 'minimal_price', 'price_view', 'quantity_and_stock_status','required_options', 'has_options', 'news_from_date',\n 'image_label', 'news_to_date', \"links_purchased_separately\",\"options_container\", \"shipment_type\", \"small_image\", \"special_price\", \"swatch_image\", \"status\",\"custom_layout_update\"];\n }", "public static function spanTagCorrectlyRemovedWhenRmTagIfNoAttribIsConfiguredDataProvider() {}", "function setNullAllAtributes()\n {\n $aPK = $this->getPrimary_key();\n $this->setNivel_stgr('');\n $this->setDesc_nivel('');\n $this->setDesc_breve('');\n $this->setOrden('');\n $this->setPrimary_key($aPK);\n }", "function tag_attributes($attributes)\n{\n if (is_string($attributes)) {\n $toProcess['name'] = $attributes;\n $toProcess['id'] = $attributes;\n } else {\n //don't allow 'value' to be set specifically as an attribute (why = consistency)\n unset($attributes['value']);\n $toProcess = $attributes;\n }\n\n $attr = array();\n foreach ($toProcess as $key => $attribute) {\n // Reject weird attribute names (a little more restrictively than necessary)\n if (preg_match('/[^A-Za-z0-9_:.-]/', $key)) {\n continue;\n }\n if (is_string($attribute)) {\n $attr[$key] = $key . '=\"' . html_escape($attribute) . '\"';\n } elseif ($attribute === true) {\n $attr[$key] = $key;\n }\n }\n return join(' ', $attr);\n}", "function remove_img_attr ($html)\n{\n return preg_replace('/(width|height)=\"\\d+\"\\s/', \"\", $html);\n}", "private function _filter_attributes($str) {\n\t\t$out = '';\n\n\t\tif (preg_match_all('#\\s*[a-z\\-]+\\s*=\\s*(\\042|\\047)([^\\\\1]*?)\\\\1#is', $str, $matches)) {\n\t\t\tforeach ($matches [0] as $match) {\n\t\t\t\t$out .= preg_replace('#/\\*.*?\\*/#s', '', $match);\n\t\t\t}\n\t\t}\n\n\t\treturn $out;\n\t}", "function std_attr($at){\n switch($at){\n case 'wrap': $attr = array('id'=>strval($this->obj->id));break;\n default:\n $attr = array();\n\n }\n return new opc_attrs(NULL,$attr);\n }", "private static function removeUnallowedHTMLAttributes(string $html): string\n {\n $tidy = new tidy();\n\n $dom = new DOMDocument();\n\n // Normalizes the HTML which reduce the possibility of having an unexpected\n // exception in the DomDocument library because some bad HTML was found.\n // Once the HTML is normalized, we will parse it again.\n $html = $tidy->repairString($html, [\n 'output-xhtml' => true,\n 'show-body-only' => true,\n ], 'utf8');\n\n try {\n libxml_use_internal_errors(true);\n // Needs a XML encoding declaration to ensure is treated as UTF-8\n $dom->loadHTML('<?xml encoding=\"utf-8\" ?>'.$html);\n } catch (Exception $e) {\n return '';\n }\n\n $attributes = static::getAttributesNodes($dom);\n\n collect($attributes)\n ->filter(fn ($attribute) => static::isAttributeAllowedForTag($attribute))\n ->each(fn ($node) => $node->parentNode->removeAttribute($node->nodeName));\n\n return $tidy->repairString($dom->saveHTML(), [\n 'output-xhtml' => true,\n 'show-body-only' => true,\n ], 'utf8');\n }", "function setNullAllAtributes()\n {\n $aPK = $this->getPrimary_key();\n $this->setId_item('');\n $this->setId_enc('');\n $this->setId_nom('');\n $this->setModo('');\n $this->setF_ini('');\n $this->setF_fin('');\n $this->setId_nom_new('');\n $this->setPrimary_key($aPK);\n }", "public function getAttributesList()\n {\n }", "function setNullAllAtributes()\n {\n $aPK = $this->getPrimary_key();\n $this->setId_item('');\n $this->setId_ubi('');\n $this->setF_gasto('');\n $this->setTipo('');\n $this->setCantidad('');\n $this->setPrimary_key($aPK);\n }", "function initialize () {\n //blank for implementing\n\t\n\t//go through the attributes see if any of them have a name propery\n }", "function guy_attrcheck($arr) {\n\tglobal $guy_c;\n\t$element = strtolower($arr[1]); $attributes = $arr[2];\n\t$nosp = ''; $sp = 'title|class|id|onclick'; $dims = '';\n\t$ok = array();\n\n\tif ($element == 'a') {\n\t\t$nosp = 'href|hreflang|name|lang';\n\t} elseif ($element == 'img') {\n\t\t$nosp = 'longdesc|src|align';\n\t\t$sp .= '|class|alt';\n\t\tif (!preg_match('/alt/i',$attributes)) {\n\t\t\t$ok = array('alt={|}{|}');\n\t\t}\n\t\tpreg_match(\"/src\\s*=\\s*\\\"([^\\s\\\">]+)\\\"/is\",$attributes,$matches);\n\t\tif (isset($matches[1])) {\n\t\t\t$dims = guy_imagedims($matches[1]);\n\t\t} else {\n\t\t\tpreg_match(\"/src\\s*=\\s*'([^\\s'>]+)'/is\",$attributes,$matches);\n\t\t\tif (isset($matches[1])) {\n\t\t\t\t$dims = guy_imagedims($matches[1]);\n\t\t\t} else {\n\t\t\t\tpreg_match(\"/src\\s*=\\s*([^'\\\"][^\\s>]+)/is\",$attributes,$matches);\n\t\t\t\tif (isset($matches[1])) {\n\t\t\t\t\t$dims = guy_imagedims($matches[1]);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t} elseif ($element == 'ins' || $element == 'del') {\n\t\t$nosp = 'cite|datetime|lang';\n\t} elseif ($element == 'blockquote' || $element == 'q') {\n\t\t$nosp = \"cite|lang\";\n\t} elseif ($element == 'br' || $element == 'news' || $element == \n\t'column') {\n\t\t$sp='';\n\t} elseif ($element == 'span') {\n\t\t$sp .= '|class';\n\t\t$nosp = 'lang';\n\t} elseif ($element == 'form') {\n\t\t$sp = '';\n\t\t$nosp = 'cc|counter';\n\t} elseif ($element == 'submenu') {\n\t\t$sp = '';\n\t\t$nosp = 'level';\n\t} elseif ($element == 'ol') {\n\t\t$nosp = 'type';\n\t} else {\n\t\t$nosp = \"lang\";\n\t}\n\n\tif ($nosp) {\n\t\tpreg_match_all(\"/(?:$nosp)\\s*=\\s*\\\"[^\\s\\\">]+\\\"/is\",$attributes,$matches);\n\t\t$ok = \n\t\tarray_merge($ok,str_replace('\"',$guy_c['quot'],$matches[0]));\n\t\tpreg_match_all(\"/(?:$nosp)\\s*=\\s*'[^\\s'>]+'/is\",$attributes,$matches);\n\t\t$ok = array_merge($ok,$matches[0]);\n\t\tpreg_match_all(\"/(?:$nosp)\\s*=\\s*[^\\s>'\\\"][^\\s>]*/is\",$attributes,$matches);\n\t\t$ok = array_merge($ok,$matches[0]);\n\t}\n\tif ($sp) {\t\n\t\tpreg_match_all(\"/(?:$sp)\\s*=\\s*\\\"[^\\\"]*\\\"/is\",$attributes,$matches);\n\t\t$ok = \n\t\tarray_merge($ok,str_replace('\"',$guy_c['quot'],$matches[0]));\n\t\tpreg_match_all(\"/(?:$sp)\\s*=\\s*'[^']*'/is\",$attributes,$matches);\n\t\t$ok = array_merge($ok,$matches[0]);\n\t\tpreg_match_all(\"/(?:$sp)\\s*=\\s*[^\\s>'\\\"][^\\s>]*/is\",$attributes,$matches);\n\t\t$ok = array_merge($ok,$matches[0]);\n\t}\n\t$ok = join(' ',$ok);\n\treturn $guy_c['lt'] . $element . ($ok ? \" $ok\" : '') . ($dims ? ' \n'.str_replace('\"',$guy_c['quot'],$dims) : '') .$guy_c['gt'];\n}", "function setNullAllAtributes()\n {\n $aPK = $this->getPrimary_key();\n $this->setId_region('');\n $this->setRegion('');\n $this->setNombre_region('');\n $this->setStatus('');\n $this->setPrimary_key($aPK);\n }", "function DOM_double_quotes_in_attributes() {\r\n\t\t$query = '//@*';\r\n\t\t$attributes = $this->xpath->query($query);\r\n\t\tforeach($attributes as $attribute) {\r\n\t\t\tif(strpos($attribute->nodeValue, '\"') !== false) {\r\n\t\t\t\t$attribute->nodeValue = str_replace('\"', '\\'', $attribute->nodeValue);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "function wp_kses_uri_attributes()\n {\n }", "public function unsetAttributes($names=null)\n {\n if($names===null)\n $names=$this->attributeLabels();\n foreach($names as $key => $name)\n $this->$key=null;\n }", "private function _remove_evil_attributes($str, $is_image)\n {\n // All javascript event handlers (e.g. onload, onclick, onmouseover), style, and xmlns\n //$evil_attributes = array('on\\w*', 'style', 'xmlns', 'formaction');\n $evil_attributes = array('on\\w*', 'xmlns', 'formaction');\n\n if ($is_image === true)\n {\n /*\n * Adobe Photoshop puts XML metadata into JFIF images,\n * including namespacing, so we have to allow this for images.\n */\n unset($evil_attributes[array_search('xmlns', $evil_attributes)]);\n }\n\n do {\n $count = 0;\n $attribs = array();\n\n // find occurrences of illegal attribute strings with quotes (042 and 047 are octal quotes)\n preg_match_all('/('.implode('|', $evil_attributes).')\\s*=\\s*(\\042|\\047)([^\\\\2]*?)(\\\\2)/is', $str, $matches, PREG_SET_ORDER);\n\n foreach ($matches as $attr)\n {\n $attribs[] = preg_quote($attr[0], '/');\n }\n\n // find occurrences of illegal attribute strings without quotes\n preg_match_all('/('.implode('|', $evil_attributes).')\\s*=\\s*([^\\s>]*)/is', $str, $matches, PREG_SET_ORDER);\n\n foreach ($matches as $attr)\n {\n $attribs[] = preg_quote($attr[0], '/');\n }\n\n // replace illegal attribute strings that are inside an html tag\n if (count($attribs) > 0)\n {\n $str = preg_replace('/(<?)(\\/?[^><]+?)([^A-Za-z<>\\-])(.*?)('.implode('|', $attribs).')(.*?)([\\s><]?)([><]*)/i', '$1$2 $4$6$7$8', $str, -1, $count);\n }\n\n } while ($count);\n\n return $str;\n }", "public function getAttributes();", "public function getAttributes();", "public function getAttributes();", "public function getAttributes();" ]
[ "0.71117824", "0.7035495", "0.6810129", "0.6756575", "0.6662393", "0.64803207", "0.63691974", "0.6355436", "0.6354229", "0.6353134", "0.6352825", "0.6333506", "0.6317176", "0.627881", "0.6275085", "0.62605983", "0.6248935", "0.62345755", "0.61991394", "0.6188764", "0.6176879", "0.6175388", "0.614708", "0.61264527", "0.61216265", "0.6106515", "0.6090132", "0.6078733", "0.6067409", "0.6048261", "0.60476065", "0.60359275", "0.60279006", "0.60161024", "0.598617", "0.597498", "0.5967296", "0.5962961", "0.5953265", "0.5949186", "0.5945583", "0.59374124", "0.5929156", "0.5911232", "0.5897209", "0.5897209", "0.5874286", "0.5868841", "0.5868023", "0.58596075", "0.58581877", "0.5854035", "0.5854035", "0.5848833", "0.58262503", "0.5825847", "0.5825423", "0.5823047", "0.58020234", "0.5794609", "0.57945615", "0.57910055", "0.57900673", "0.5786733", "0.578644", "0.5777766", "0.57617295", "0.573643", "0.5735756", "0.5735756", "0.5735611", "0.5734621", "0.5734621", "0.5734621", "0.5734621", "0.57226723", "0.57223946", "0.5708633", "0.5708012", "0.57049197", "0.56926405", "0.5687686", "0.56874436", "0.56829137", "0.56816816", "0.56685513", "0.5663078", "0.56601787", "0.5657601", "0.5656998", "0.5656981", "0.5655041", "0.56470156", "0.56441593", "0.5640923", "0.5639839", "0.5638182", "0.5634312", "0.5634312", "0.5634312", "0.5634312" ]
0.0
-1
Add and update to database
function add($data = array()) { if(isset($data['id_konfirmasi'])) { $this->db->set('id_konfirmasi', $data['id_konfirmasi']); } if(isset($data['kode_transaksi'])) { $this->db->set('kode_transaksi', $data['kode_transaksi']); } if(isset($data['tgl_bayar'])) { $this->db->set('tgl_bayar', $data['tgl_bayar']); } if(isset($data['jml_bayar'])) { $this->db->set('jml_bayar', $data['jml_bayar']); } if(isset($data['nama_bank'])) { $this->db->set('nama_bank', $data['nama_bank']); } if(isset($data['tujuan_byr'])) { $this->db->set('tujuan_byr', $data['tujuan_byr']); } if(isset($data['no_rek'])) { $this->db->set('no_rek', $data['no_rek']); } if(isset($data['nama_rek'])) { $this->db->set('nama_rek', $data['nama_rek']); } if (isset($data['kode_transaksi_update'])) { $this->db->where('kode_transaksi', $data['kode_transaksi_update']); $this->db->update('konfirmasi_pembayaran'); $id = $data['kode_transaksi_update']; } else { $this->db->insert('konfirmasi_pembayaran'); $id = $this->db->insert_id(); } $status = $this->db->affected_rows(); return ($status == 0) ? FALSE : $id; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function db_update() {}", "function addUpdate() {\n\t\tif ($this->id) $this->update();\n\t\telse $this->insert();\n\t}", "public function updateDatabase(){\n $api_response = Http::get(config('urls.api'));\n //Place in database\n $this->postToDatabase($api_response);\n }", "public function add()\r\n {\r\n $this->start();\r\n $this->write_to_db();\r\n }", "public function updateDB()\n {\n\n }", "function add()\n\t{\n\t\t$this->_updatedata();\n\t}", "public function update() {\n global $DB;\n $record = array(\n 'sortorder' => $this->sortorder,\n 'criterion' => $this->criterion,\n 'addinfo' => json_encode($this->addinfo)\n );\n if ($this->id) {\n $record['id'] = $this->id;\n $DB->update_record($this->get_table_name(), $record);\n } else {\n $record['instantquizid'] = $this->instantquiz->id;\n $this->id = $DB->insert_record($this->get_table_name(), $record);\n }\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 addToDb()\n {\n\n // make sure this is a valid new entry\n if ($this->isValid()) {\n // check for duplicate\n $vals = sprintf(\"('%s',%d)\",$this->email,$this->level);\n $sql = \" insert into Admins values $vals\";\n Dbc::getReader()->Exec($sql);\n }\n else\n print \"<br> Invalid entry. STOP! ($sql)<br>\";\n }", "public function commitUpdate();", "private function saveDb()\n\t{\n\t\t//format our sql statements w/ the valid fields\n\t\t$fields = array();\n\t\t\n\t\t//loop thru all our dirty fields.\n\t\tforeach ($this->dirtyFields AS $key => $foo)\n\t\t{\n\t\t\t//get our value.\n\t\t\tif (isset($this->data[$key]) && $key != 'id')\n\t\t\t{\n\t\t\t\t$val = $this->data[$key];\n\n\t\t\t\t//slashes replacement..\n\t\t\t\t$val = str_replace(\"\\\\\\\\\", \"\\\\\", $val);\n\t\t\t\t$val = str_replace(\"\\'\", \"'\", $val);\n\t\t\t\t$val = str_replace(\"\\\\\\\"\", \"\\\"\", $val);\n\n\t\t\t\t//add it if we have it...\n\t\t\t\t$fields[] = \"`$key` = '\" . addslashes($val) . \"'\";\n\t\t\t}\n\t\t}\n\t\t\n\t\t//update if we have an id....\n\t\tif (count($fields))\n\t\t{\n\t\t\t//now make our array\n\t\t\t$sqlFields = implode(\",\\n\", $fields) . \"\\n\";\n\t\t\t\n\t\t\t//update it?\n\t\t\tif ($this->id)\n\t\t\t{\n\t\t\t\t$sql = \"UPDATE $this->tableName SET\\n\";\n\t\t\t\t$sql .= $sqlFields;\n\t\t\t\t$sql .= \"WHERE id = '$this->id'\\n\";\n\t\t\t\t$sql .= \"LIMIT 1\";\n\n\t\t\t\tdb()->execute($sql);\n\t\t\t}\n\t\t\t//otherwise insert it...\n\t\t\telse\n\t\t\t{\n\t\t\t\t$sql = \"INSERT INTO $this->tableName SET\\n\";\n\t\t\t\t$sql .= $sqlFields;\n\n\t\t\t\t$this->id = db()->insert($sql);\n\t\t\t}\n\t\t}\n\t}", "public function saveToDb()\n\t{\n\t\t$db = \\App\\Db::getInstance('admin');\n\t\t$tablesData = array_intersect_key($this->getData(), $this->changes);\n\t\tforeach ($tablesData as $key => $value) {\n\t\t\t$db->createCommand()->update($this->baseTable, ['value' => $value], ['type' => $this->type, 'name' => $key])->execute();\n\t\t}\n\t}", "function addItemToDB()\n {\n $this->database->addItemToDB($this);\n }", "public function updateDb()\n {\n\n // make sure this is a valid new entry\n if ($this->isValid()) {\n\n // check for duplicate\n $vals = sprintf(\"Level = %d\",$this->level);\n $sql = \" update Admins set $vals where Email = '$this->email';\";\n Dbc::getReader()->Exec($sql);\n }\n else\n print \"<br> Invalid entry. STOP! ($sql)<br>\";\n }", "public function save()\n {\n if ($this->id === null) {\n $this->insert();\n } else {\n $this->update();\n }\n }", "public function store()\n {\n if( $this->isPersistent() )\n {\n $this->update();\n }\n else\n {\n $this->insert();\n }\n }", "public function saveToDb()\n\t{\n\t\t$this->addDocument();\n\t\tparent::saveToDb();\n\t}", "public function save()\n {\n if ($this->id) {\n $this->update();\n } else {\n $this->id = $this->insert();\n }\n }", "private function _update() {\n\n $this->db->replace(XCMS_Tables::TABLE_USERS, $this->getArray());\n $this->attributes->save();\n\n }", "public function save()\n {\n $db = DatabaseUtil::db_connect($this->database);\n $db->query('update ' . $this->table . 'set ' . $this->column . ' = ' . $this->value . ' where ID=' . $this->ID);\n $db->close();\n }", "public function save()\n {\n $pdo = $this->getDbConnection();\n $valuesRow = $this->prepareValuesRow();\n\n $pdo->exec(\"REPLACE INTO {$this->dbTable} (`key`, `value`) VALUES {$valuesRow}\");\n }", "public function saveToDatabase() {\n if($this->id != 0) {\n $dbResult = System::database()->query('update :table_users \n set `role_id` = :role_id, \n `login` = :login, \n `password` = :password, \n `auth_key` = :auth_key, \n `auth_expire` = :auth_expire, \n `last_login` = :last_login\n where `id` = :id');\n \n $dbResult->bindInt(':id', $this->id);\n $dbResult->bindValue(':auth_key', $this->authKey);\n $dbResult->bindInt(':auth_expire', $this->authExpired);\n $dbResult->bindInt(':last_login', $this->lastLoginTime);\n } else {\n $dbResult = System::database()->query('insert into :table_users (`role_id`, `login`, `password`)\n values (:role_id, :login, :password);');\n }\n $dbResult->bindTable(':table_users', TABLE_USERS);\n $dbResult->bindInt(':role_id', $this->role['id']);\n $dbResult->bindValue(':login', $this->login);\n $dbResult->bindValue(':password', $this->password);\n\n $dbResult->execute();\n }", "public function updateDatabase(){\n\t\t$db = static::getDatabaseConnection();\n\t\t//Get all of the columns in the database table\n\t\t$columns = static::$columns;\n\t\t//Because we dont want the ID to change, remove the ID from the database\n\t\tunset($columns[array_search('id', $columns)]);\n\t\t//If we had a timecreated and timeupdated column, we would unset the timecreated column here\n\n\t\t//Write an Update Query\n\t\t$query = \"UPDATE \" . static::$tableName . \" SET \";\n\t\t$updatecols = [];\n\t\tforeach ($columns as $column){\n\t\t\tarray_push($updatecols, $column . \"=:\" . $column);\n\t\t}\n\t\t$query .= implode(\",\", $updatecols);\n\t\t$query .= \" WHERE id =:id\";\n\t\t$statement = $db->prepare($query);\n\n\t\tforeach(static::$columns as $column){\n\t\t\t//Hash the password\n\t\t\tif($column === 'password'){\n\t\t\t\t$this->$column = password_hash($this->$column, PASSWORD_DEFAULT);\n\t\t\t}\n\t\t\t$statement->bindValue(\":\".$column, $this->$column);\n\t\t}\n\t\t$statement->execute();\n\t}", "public function update()\n\t{\n\t\t$this->user->db_update();\n\t}", "public function store()\n {\n if (!$this->id) { // Insert\n $this->insertObject();\n } else { // Update\n $this->updateObject();\n }\n }", "protected function updateAndPersistBlog() {}", "protected function saveUpdate()\n {\n }", "public function saveToDb() {\n parent::saveToDb();\n\n require_once 'models/Location.php';\n Location::saveToDb($this->preferredLocation);\n Location::saveToDb($this->currentLocation);\n\n require_once 'libs/DB.php';\n $conn = DB::connect();\n\n $seekerId = $this->id();\n\n // Update the seeker table\n $conn->exec(\"UPDATE seeker SET experience='$this->experience', pref_location_name='$this->preferredLocation', curr_location_name='$this->currentLocation' WHERE id='$seekerId'\");\n\n require_once 'models/Skill.php';\n foreach($this->skills as $skill) {\n Skill::saveToDb($skill);\n }\n\n // Delete old skills\n $conn->exec(\"DELETE FROM seeker_skill WHERE seeker_id='$seekerId'\");\n\n // Add new skills\n foreach($this->skills as $skill) {\n $conn->exec(\"INSERT INTO seeker_skill(seeker_id, skill_name) VALUES('$seekerId', '$skill')\");\n }\n }", "public function MyUpdate() {\n //var_dump($rs);\n\n DB::beginTransaction();\n\n\n /*\n DB::transaction(function() {\n $article = Articles::create(array(\n ''\n ));\n });\n */\n }", "public function Save()\r\n\t\t{\r\n\t\t\tif ($this->id == -1) {\r\n\t\t\t\tunset($this->columns[\"id\"]);\r\n\t\t\t\t$sqlCol = null;\r\n\t\t\t\t$sqlKey = null;\r\n\t\t\t\tforeach ($this->columns as $column => $value) {\r\n\t\t\t\t\t$data[$column] = $this->$column;\r\n\t\t\t\t\t$sqlCol .= \",\" . $column;\r\n\t\t\t\t\t$sqlKey .= \",:\" . $column;\r\n\t\t\t\t}\r\n\t\t\t\t$sqlCol = ltrim($sqlCol, \",\");\r\n\t\t\t\t$sqlKey = ltrim($sqlKey, \",\");\r\n\t\t\t\t$query = $this->db->prepare(\r\n\t\t\t\t\t\"INSERT INTO \" . $this->table . \" (\" . $sqlCol . \")\r\n\t\t\t\t\t\tVALUES (\" . $sqlKey . \") ;\"\r\n\t\t\t\t);\r\n\t\t\t\t$query->execute($data);\r\n\t\t\t\t\r\n\t\t\t} else {\r\n\t\t\t\t// Sinon faire un update dynamique\r\n\t\t\t\t$sqlSet = null;\r\n\t\t\t\tforeach ($this->columns as $column => $value) {\r\n\t\t\t\t\t$data[$column] = $this->$column;\r\n\t\t\t\t\t$sqlSet[] .= $column . \"=:\" . $column;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// Suppression de la mise à jour de la date d'update \r\n\t\t\t\t// la mise à jour des dates est maintenant faites en BDD.\r\n\t\t\t\t$query = $this->db->prepare(\r\n\t\t\t\t\t\"UPDATE \" . $this->table . \" SET \r\n\t\t\t\t\t\t\" . implode(\",\", $sqlSet) . \"\r\n\t\t\t\t\t\tWHERE id=:id;\"\r\n\t\t\t\t);\r\n\r\n\t\t\t\t$query->execute($data);\r\n\t\t\t}\r\n\t\t}", "public function save()\n {\n $DB = DB::singleton(dsn());\n\n if ( $this->update ) {\n $SQL = SQL::newUpdate('entry');\n foreach ( $this->columns as $column ) {\n $SQL->addUpdate('entry_' . $column, $this->{$column});\n }\n $SQL->addWhereOpr('entry_id', $this->id);\n $SQL->addWhereOpr('entry_blog_id', $this->blog_id);\n $DB->query($SQL->get(dsn()), 'exec');\n } else {\n $SQL = SQL::newInsert('entry');\n foreach ( $this->columns as $column ) {\n $SQL->addInsert('entry_' . $column, $this->{$column});\n }\n $DB->query($SQL->get(dsn()), 'exec');\n }\n\n EntryHelper::saveColumn($this->units, $this->id, $this->blog_id);\n Common::saveField('eid', $this->id, $this->fields);\n Common::saveFulltext('eid', $this->id, Common::loadEntryFulltext($this->id));\n }", "public function add_or_replace()\n {\n $this->insert_replace('table', array('foo' => 'bar'));\n\n // you can also do\n $this->replace();\n $this->insert('table', array('foo' => 'bar'));\n }", "private function storeToDB() {\r\n\t\tDBQuery::getInstance() -> insert('INSERT INTO `CalculatedDailyNeeds`' . DBUtils2::buildMultipleInsertOnDuplikateKeyUpdate($this -> aArticleData));\r\n\t}", "public function update(){\n if(empty($this->attributes)){\n return;\n }\n if ($this->isAutoInc) {\n $fieldsList = \" SET \";\n foreach ($this->attributes as $column => $value) {\n $fieldsList.=$column.\"=\".'\\''.$value.'\\''.\", \";\n }\n $fieldsList = str_last_replace(\", \", \"\", $fieldsList);\n $sqlQuery = \"UPDATE \".$this->table.$fieldsList.\" WHERE \".$this->idName.\"=\".$this->attributes[$this->idName];\n\n Db::instance()->execute($sqlQuery,$this->attributes);\n }\n }", "public function update() {\n\t\tTournamentDBClient::update($this);\n\t}", "public function save()\n {\n $this->checkForNecessaryProperties();\n\n $this->update($this->getCurrentId(), $this->data);\n }", "function put(){\r\n\t\t//Connect\r\n\t\t$sql = new DataBase;\r\n\t\t$sql->connect();\r\n\t}", "function dbplus_update($relation, $old, $new)\n{\n}", "public function add(){\r\n\t\t//$this->auth->set_access('add');\r\n\t\t//$this->auth->validate();\r\n\r\n\t\t//call save method\r\n\t\t$this->save();\r\n\t}", "public function save() {\n $db = Db::instance();\n // omit id and any timestamps\n $db_properties = array(\n 'author_id' => $this->author_id,\n 'clothingname' => $this->clothingname,\n 'clothingtype' => $this->clothingtype,\n 'tempmin' => $this->tempmin,\n 'tempmax' => $this->tempmax\n );\n $db->store($this, __CLASS__, self::DB_TABLE, $db_properties);\n }", "public function saveToDB()\n {\n }", "protected function update()\n\t{\n\t\t//append ID to fields\n\t\t$query = $this->connection->prepare\n\t\t(\"\n\t\t\tupdate Booth\n\t\t\tset BoothNum = ?\n\t\t\twhere BoothID = ?\n\t\t\");\n\n\t\t$query->execute(array_values($this->fields));\n\n\t}", "public function save() {\n $db = Db::instance();\n $db_properties = array(\n 'action' => $this->action,\n 'url_mod' => $this->url_mod,\n 'description' => $this->description,\n 'target_id' => $this->target_id,\n 'target_name' => $this->target_name,\n 'creator_id' => $this->creator_id,\n 'creator_username' => $this->creator_username\n );\n $db->store($this, __CLASS__, self::DB_TABLE, $db_properties);\n }", "public function save() {\n\t\tif (!empty($this->originalData)) {\n\t\t\t$query=\"UPDATE \";\t\n\t\t\tfor ($i=0; $i<count($this->originalData); $i++) {\n\t\t\t\tif (!isset($this->modifiedData)) {\n\t\t\t\t\t$this->modifiedData = $this->originalData;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\t$query=\"INSERT INTO \";\n\t\t}\n\t\t$query.=$this->table.' SET ';\n\t\tforeach ($this->modifiedData as $key=>$value) {\n\t\t\t$value = mysqli_real_escape_string($this->connection->connection,$value);\n\t\t\t$query.= '`'.$key .\"`='\".$value.'\\',';\n\t\t}\n\t\t$query = substr($query,0,-1);\n\t\tif (!empty($this->originalData)) {\n\t\t\t$query.=' WHERE '.self::$primaryKey[$this->table].'=\\''.$this->originalData[self::$primaryKey[$this->table]].\"'\";\n\t\t}\n\t\t$this->connection->query($query);\n\t\tif ($this->connection->getError()) {\n\t\t\treturn false;\n\t\t}\n\t\tif (empty($this->originalData)) {\n\t\t\t$this->originalData[self::$primaryKey[$this->table]] = $this->connection->getInsertID();\n\t\t}\n\t\t$this->originalData = array_merge($this->originalData,$this->modifiedData);\n\t\treturn true;\n\t}", "function updateDB() {\n if (array_key_exists('model', $this->ptcdUpdates)) {\n $manufacturer = Dropdown::getDropdownName(\"glpi_dropdown_manufacturer\",\n $this->getValue('FK_glpi_enterprise'));\n $this->ptcdUpdates['model'] = Dropdown::importExternal(\"NetworkEquipmentModel\",\n $this->ptcdUpdates['model'], 0,\n array('manufacturer'=>$manufacturer));\n }\n if (array_key_exists('firmware', $this->ptcdUpdates)) {\n $this->ptcdUpdates['firmware'] = Dropdown::importExternal(\"NetworkEquipmentFirmware\",\n $this->ptcdUpdates['firmware']);\n }\n if (array_key_exists('location', $this->ptcdUpdates)) {\n $this->ptcdUpdates['location'] = Dropdown::importExternal(\"Location\",\n $this->ptcdUpdates['location']);\n }\n\n parent::updateDB();\n // update last_fusioninventory_update even if no other update\n $this->setValue('last_fusioninventory_update', date(\"Y-m-d H:i:s\"));\n $this->oFusionInventory_networking->updateDB();\n // ports\n $this->savePorts();\n }", "public function save(){\n\t\ttry {\n\t\t\t$params = array();\n\n\t\t\t//insert\n\t\t\tif( empty($this->_data['id']) ){\n\t\t\t\t$action = 'add';\n\n\t\t\t\t//build the insert starting from self::$fields\n\t\t\t\t$fields = array();\n\t\t\t\t$values = array();\n\n\t\t\t\tforeach( self::$_fields[$this->_table] as $key ){\n\t\t\t\t\tif( $key != 'id' ){\n\t\t\t\t\t\t$fields[] = $key;\n\n\t\t\t\t\t\tif( isset($this->_data[$key]) && !is_null($this->_data[$key]) ){\n\t\t\t\t\t\t\t$values[] = ':'.$key;\n\t\t\t\t\t\t\t$params[':'.$key] = $this->_data[$key];\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t$values[] = 'NULL';\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t$fields = implode(', ', $fields);\n\t\t\t\t$values = implode(', ', $values);\n\t\t\t\t$sql = \"INSERT INTO \".$this->_table.\" (\".$fields.\") VALUES (\".$values.\")\";\n\n\t\t\t//update\n\t\t\t} else {\n\t\t\t\t$action = 'update';\n\n\t\t\t\t//build the update starting from self::$fields\n\t\t\t\t$where = '';\n\t\t\t\t$field_value = '';\n\n\t\t\t\tforeach( self::$_fields[$this->_table] as $key ){\n\t\t\t\t\tif( $key == 'id' ){\n\t\t\t\t\t\t$where = ' '.$key.' = :id';\n\t\t\t\t\t\t$params[':id'] = $this->_data[$key];\n\n\t\t\t\t\t} elseif( isset($this->_data[$key]) and !is_null($this->_data[$key]) ){\n\t\t\t\t\t\t$field_value .= ' '.$key.' = :'.$key.',';\n\t\t\t\t\t\t$params[':'.$key] = $this->_data[$key];\n\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$field_value .= ' '.$key.' = NULL,';\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t$field_value = substr($field_value, 0, -1);\n\t\t\t\t$sql = \"UPDATE \".$this->_table.\" SET \".$field_value.\" WHERE \".$where;\n\t\t\t}\n\n\t\t\t$q = $this->_db->prepare($sql);\n\n\t\t\t$q->execute($params);\n\n\t\t\tif( empty($this->_data['id']) ){\n\t\t\t\t$this->_data['id'] = $this->_db->lastInsertId();\n\t\t\t}\n\n\t\t\treturn true;\n\n\t\t} catch ( PDOException $e ){\n\t\t\terreur_pdo( $e, get_class( $this ), __FUNCTION__ );\n\t\t}\n\t}", "public function update(){\n\t\t$sql = \"update \".self::$tablename.\" set name=\\\"$this->name\\\",comments=\\\"$this->comments\\\",price=\\\"$this->price\\\",brand=\\\"$this->brand\\\",model=\\\"$this->model\\\",y=\\\"$this->y\\\",link=\\\"$this->link\\\",in_existence=\\\"$this->in_existence\\\",is_public=\\\"$this->is_public\\\",is_featured=\\\"$this->is_featured\\\",category_id=\\\"$this->category_id\\\" where id=$this->id\";\n\t\tExecutor::doit($sql);\n\t}", "public function updateToDB()\n {\n try {\n $sql = 'UPDATE news\n SET link_id=:link_id, title=:title, date_public=:date_public, date_create=:date_create,\n short_text=:short_text, full_text=:full_text\n WHERE id=:id';\n $this->_db->query($sql, array('link_id' => $this->_link->getId(), 'title' => $this->_title, 'date_create' => $this->_dateCreate,\n 'date_public' => $this->_datePublic, 'short_text' => $this->_shortText, 'full_text' => $this->_fullText, 'id' => $this->_id));\n\n $fileName = $this->_file->download('file');\n if ($fileName !== false) {\n $this->_file->createPreview(40, 40);\n $this->_db->query('UPDATE news SET file=:file WHERE id=:id', array('file' => $fileName, 'id' => $this->_id));\n }\n } catch (Exception $e) {\n throw new Exception($e->getMessage());\n }\n }", "public function save(){\r\n\t\tif ($this->new){\r\n\t\t\treturn $this->insert();\r\n\t\t} else {\r\n\t\t\treturn $this->update();\r\n\t\t}\r\n\t}", "function update()\n {\n global $config;\n $query=file_get_contents(\"sql/updateArticle.sql\"); \n $query =sprintf($query, $config->prefix.self::$table); \n $query = $config->sql->prepare($query);\n $param=array(\n $this->title, $this->content, $this->lang, $this->date,\n $this->cat, $this->id, $this->lang\n );\n $result=$query->execute($param);\n if ($result) {\n return true;\n } else {\n print_r($query->errorInfo());\n }\n \n }", "public function save() {\n $db = Db::instance();\n // omit id \n $db_properties = array(\n 'firstName' => $this->firstName,\n 'lastName' => $this->lastName,\n 'description' => $this->description,\n 'user' => $this->user,\n 'password' => $this->password,\n 'image' => $this->image,\n 'gender' => $this->gender,\n 'topic_id' => $this->topic_id,\n 'topic_id1' => $this->topic_id1,\n 'role_id' => $this->role_id,\n );\n $db->store($this, __CLASS__, self::DB_TABLE, $db_properties);\n }", "public function save(){\n\t\t$db = static::getDatabaseConnection();\n\t\t//Find the columns from the model\n\t\t$columns = static::$columns;\n\n\t\t//because ID is AI we dont want to put a value in it\n\t\tunset($columns[array_search('id', $columns)]);\n\t\t//Same with timestamp\n\t\tunset($columns[array_search('timestamp', $columns)]);\n\n\t\t//Create an insert query which gets linked to the database\n\t\t$query = \"INSERT INTO \" . static::$tableName . \" (\". implode(\",\", $columns) . \") VALUES (\";\n\n\t\t//create a variable called insesrtcols. This is where we put the values\n\t\t$insertcols = [];\n\t\t//For each of the columns in the columns array, add that column into the insert cols array, and seperate it with a :\n\t\tforeach ($columns as $column) {\n\t\t\tarray_push($insertcols, \":\" . $column);\n\t\t}\n\t\t//turn the insertcols array into 1 string and put a , between each entry\n\t\t$query .= implode(\",\", $insertcols);\n\t\t//close the query\n\t\t$query .= \")\";\n\n\t\t//Prepare the query\n\t\t$statement = $db->prepare($query);\n\n\t\t//Foreach of the columns run this function\n\t\tforeach ($columns as $column) {\n\t\t\t//Attach the value to each of the columns\n\t\t\t//Hash the password\n\t\t\tif($column === 'password'){\n\t\t\t\t$this->$column = password_hash($this->$column, PASSWORD_DEFAULT);\n\t\t\t}\n\t\t\t$statement->bindValue(\":\" . $column , $this->$column);\n\t\t}\n\n\t\t//Run the query\n\t\t$statement->execute();\n\n\t\t//Get the id of the query which was just added\n\t\t$this->id = $db->lastInsertID();\n\t}", "public function update(){\n\t\t$sql = \"update \".self::$tablename.\" set name=\\\"$this->name\\\",email1=\\\"$this->email1\\\",address1=\\\"$this->address1\\\",lastname=\\\"$this->lastname\\\",phone1=\\\"$this->phone1\\\" where id=$this->id\";\n\t\tExecutor::doit($sql);\n\t}", "function update_db( $_, $assoc_args ) {\n\t\tself::run( 'core update-db', $args, $assoc_args );\n\t}", "public function testUpdateStore()\n {\n\n }", "function addToDatabase() {\n\t\tif ($this->id != null && $this->id != 0) return false;\n\n\t\t$db = getDb();\n\n\t\t$add_query = \"INSERT INTO user_table \n\t\t(user_name, \n\t\t user_password,\t\n\t\t isAdmin,\t\n\t\t user_first_name,\n\t\t user_last_name) \n\t\tVALUES \n\t\t('$this->username', \n\t\t '$this->password',\t\n\t\t '$this->isAdmin',\t\n\t\t '$this->firstName',\t\n\t\t '$this->lastName');\";\n\n\t\t$result = mysqli_query($db, $add_query);\n\n\t\tmysqli_close($db);\n\n\t\tif (!$result) return false;\n\n\t\treturn true;\n\n\t}", "public function update() {\n\t\tif (isset($this->params['updated'])) {\n\t\t\t$this->params['updated'] = null;\n\t\t} // 'updated' is an auto timestamp\n\n\t\t$columns = array();\n\t\tforeach (array_keys($this->params) as $key) {\n\t\t\tarray_push($columns, $key . ' = ?');\n\t\t}\n\t\t$bindings = implode(', ', $columns);\n\t\t$sql = 'UPDATE ' . static::$table . ' SET ' . $bindings . ' WHERE id = ' . $this->get('id') . ' ;';\n\t\t$query = DBH()->prepare($sql);\n\t\t$query->execute(array_values($this->params));\n\t}", "public function sync()\n {\n $class = explode('\\\\', get_called_class());\n $manager = \\Str::studly(str_replace('EntryModel', null, end($class)));\n\n $existingAddons = $manager::getAll();\n $databaseAddons = $this->all();\n\n // Sync TO the database\n foreach ($existingAddons as $addon) {\n if (!$databaseAddons->findBySlug($addon->slug)) {\n $this->addons->insert(\n array(\n 'slug' => $addon->slug,\n )\n );\n }\n }\n }", "public function testUpdate(): void { }", "public function update(){\n\t\t$sql = \"update \".self::$tablename.\" set name=\\\"$this->name\\\",lastname=\\\"$this->lastname\\\",username=\\\"$this->username\\\",email=\\\"$this->email\\\",kind=\\\"$this->kind\\\",status=\\\"$this->status\\\" where id=$this->id\";\n\t\tExecutor::doit($sql);\n\t}", "public function update($data) {}", "public function update($data) {}", "public function save(){\r\n $db = new Database();\r\n $sql = \"\";\r\n $stm = null;\r\n if (empty($this->id)){\r\n $sql = \"insert into interests (name) values (:name)\";\r\n $stm = $db->pdo->prepare($sql);\r\n }\r\n else{\r\n $sql = \"update interests set name=:name where id=:id\";\r\n $stm = $db->pdo->prepare($sql);\r\n $stm->bindParam(':id', $this->id);\r\n }\r\n $stm->bindParam(':name', $this->name);\r\n $stm->execute();\r\n }", "public function save($update = true) {}", "function save(){\n\t\tif (isset($this->id) && !$this->_new) {\n\t\t\t$sql = \"UPDATE `tours` set \";\n\t\t\t$i = 0;\n\t\t\tforeach($this->UPDATE as $u){\n\t\t\t\tif ($i>0) $sql = $sql.\" , \";\n\t\t\t\t$sql = $sql.$u;\n\t\t\t\t$i++;\n\t\t\t}\n\t\t\t$sql = $sql.\" WHERE `id`='\".addslashes($this->id).\"'\";\n\t\t}else{\n\t\t\t$sql = \"INSERT into `tours` values('\".addslashes($this->id).\"' , '\".addslashes($this->name).\"' , '\".addslashes($this->duration).\"' , '\".addslashes($this->description).\"' , '\".addslashes($this->tcid).\"')\";\n\t\t}\n\t\t$this->connection->send_query($sql);\n\t}", "public function save()\n {\n array_push($this->table, $this->value);\n }", "public function update(){\n\t\t$this->beforeSave();\n\t\t$tableName = $this->tableName();\n\t\t$fields = $this->fields();\n\t\t// Remove fields set as ignored by rules validation.\n\t\t$fields = $this->removeIgnored($fields);\n\t\t// Create PDO placeholders.\n\t\t$params = implode(', ', array_map(fn($name) => $name . ' = :' . $name, $fields));\n\t\t$primaryKey = $this->getPrimaryKey();\n\t\t$where = $primaryKey . ' = :' . $primaryKey;\n\t\t$statement = $this->db->prepare('UPDATE ' . $tableName . ' SET ' . $params . ' WHERE ' . $where);\n\t\t// Bind values to placeholders.\n\t\tforeach($fields as $field){\n\t\t\t$this->binder($statement, ':' . $field, $this->{$field});\n\t\t}\n\t\t$statement->bindValue(':' . $primaryKey, $this->{$primaryKey});\n\t\tif($statement->execute()){\n\t\t\t$this->afterSave();\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "protected function _insert()\n\t{\n\t\t$this->date_added = \\Core\\Date::getInstance(null,\\Core\\Date::SQL_FULL, true)->toString();\n\t\t$this->date_modified = $this->date_added;\n\t\t$this->last_online = $this->date_modified;\n\t\t$this->activity_open = $this->date_modified;\n\t\t$this->language_id = \\Core\\Base\\Action::getModule('Language')->getLanguageId();\n\t}", "public function save() {\n\t\t$sql = \"UPDATE \".$this->tablename.\" SET \";\n\t\t$last = $this->columns[count($this->columns)-1]['db_name'];\n\t\tforeach ($this->columns as $col) {\n\t\t\tswitch($col['type']){\n\t\t\t\tcase 'D':\t//Date, Time, Char, Password, Image all need quotes around the value\n\t\t\t\tcase 'T':\n\t\t\t\tcase 'C':\n\t\t\t\tcase 'I':\n\t\t\t\tcase 'X':\n\t\t\t\tcase 'M':\n\t\t\t\tcase 'E':\n\t\t\t\t\t$sql .= $col['db_name'].\" = '\".$this->data[0][$col['db_name']].\"'\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'P':\n\t\t\t\t\t$sql .= $col['db_name'].\" = AES_ENCRYPT('\".$this->data[0][$col['db_name']].\"','\".la_aes_key.\"')\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'N':\t// Number, checkBox, Select, Radio don't need quotes\n\t\t\t\tcase 'B':\n\t\t\t\tcase 'S':\n\t\t\t\tcase 'R':\n\t\t\t\t\t$sql .= $col['db_name'].' = '.$this->data[0][$col['db_name']];\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif ($col['db_name'] != $last) {\n\t\t\t\t$sql .= ',';\n\t\t\t}\n\t\t}\n\t\t$sql .= \" WHERE \".$this->idcol.\"=\".$this->page->ctrl['record'];\n\t\t$this->error->debug($sql);\n\t\t$this->dbc->exec($sql);\n\t\treturn true;\n\t}", "function updateField() {\n DATABASE::INIT_TABLE($this->database, $this->table);\n $fname = $this->urlParam('fname');\n $fvalue = $this->urlParam('fvalue');\n $id = $this->urlParam('id');\n DATABASE::UPDATE($this->table, [$fname], [$fvalue], $id);\n }", "public function save() {\n $query = \"\";\n\n // Se for um novo registro, cria uma query INSERT INTO\n if($this->new_register) {\n $columns = array();\n $values = array();\n\n foreach($this->get_columns_information() as $column) {\n if(('id' == $column['column_name'] && $this->get_column_value($column['column_name']) > 0) || 'id' != $column['column_name']) {\n $columns[] = $column['column_name'];\n $values[] = $this->get_column_value($column['column_name']);\n }\n }\n\n $query = \"INSERT INTO {$this->get_table_name()}(\" . implode(', ', $columns) . \") VALUES(\" . implode(', ', $values) . \");\";\n\n unset($columns, $values);\n\n // Se o registro ja existe e foi alterado, cria uma query UPDATE\n } else {\n $sets = array();\n $conds = array();\n\n $changed = false;\n\n // Cria o trecho da query com os valores para SET e as condicoes para WHERE\n foreach($this->get_columns_information() as $column) {\n $value = $this->get_column_value($column['column_name']);\n $old_value = $this->get_column_value($column['column_name'], true);\n\n // Verifica se algum campo foi modificado\n if($value !== $old_value)\n $changed = true;\n\n $sets[] = \"{$column['column_name']} = {$value}\";\n $conds[] = ($old_value != 'NULL') ? (\"{$column['column_name']} = {$old_value}\")\n : (\"({$column['column_name']} IS NULL OR {$column['column_name']} = '')\");\n }\n\n // Cria query de atualizacao apenas se houve alguma modificacao\n if($changed)\n $query = \"UPDATE {$this->get_table_name()}\n SET \" . implode(', ', $sets) . \"\n WHERE \" . implode(' AND ', $conds) . \";\";\n\n unset($sets, $conds);\n }\n\n // Tenta salvar o registro\n // Se salvar corretamente, atualiza os dados do objeto para que da proxima vez ele seja atualizado, caso seja um registro novo\n if(DB::execute($query)) {\n $this->new_register = false;\n $data = array();\n\n foreach($this->get_columns_information() as $column) {\n $this->{'_' . $column['column_name']} = $this->$column['column_name'];\n $data[$column['column_name']] = $this->$column['column_name'];\n }\n\n return true;\n }\n\n return false;\n }", "public function updateRecord() \n {\n $str = \"Id = :Id\";\n array_walk($this->arrayKeysValues(), function ($value, $key) use (&$str) {\n $str .= \", $key = :$key\";\n });\n $sql = sprintf(\"UPDATE Cubans SET %s WHERE Id = :Id\", $str);\n $statement = $this->connect->prepare($sql);\n $statement->execute(array_merge([\":Id\" => $this->id], $this->arrayKeysValues()));\n }", "public function save(){\n\t\t$v = get_object_vars($this);\n\t\tunset($v['TABLE']);\n\t\tunset($v['IS_UPDATING']);\n\t\t$key_s = \"\";\n\t\t$key_v = \"\";\n\t\tforeach($v as $key => $val){\n\t\t\t$key_s .= \"$key, \";\n\t\t\t$key_v .= \"'$val', \";\n\t\t}\n\t\t$key_s = substr_replace($key_s, '', strlen($key_s)-2);\n\t\t$key_v = substr_replace($key_v, '', strlen($key_v)-2);\n\t\tif($this->IS_UPDATING){\n\t\t\t$str = \"\";\n\t\t\tunset($v['id']);\n\t\t\tforeach($v as $key => $val){\n\t\t\t\t$str .= $key . \"='$val', \";\n\t\t\t}\n\t\t\t$str = substr_replace($str, '', strlen($str)-2);\n\t\t\t$query = \"UPDATE {$this->TABLE} SET $str WHERE id = {$this->id}\";\n\t\t} else {\n\t\t\t$query = \"INSERT INTO {$this->TABLE} ($key_s) VALUES ($key_v)\";\n\t\t}\n\t\t$q = parent::query($query);\n\t\treturn $q;\n\t}", "public function update() {\n $this->connect();\n\n mysqli_multi_query($this->con, $this->sql);\n $this->sql = \"\";\n mysqli_close($this->con);\n $this->getStories();\n }", "function save() {\n\n\t\t// calls generic ORM save (insert or update)\n\t\tparent::save();\n\n\t}", "public function updateData()\n {\n try {\n// echo \"<pre>\";\n// print_r($this->where);\n// print_r($this->insertUpdateArray);\n// exit;\n DB::table($this->dbTable)\n ->where($this->where)\n ->update($this->insertUpdateArray);\n } catch (Exception $ex) {\n throw new Exception($ex->getMessage(), 10024, $ex);\n }\n }", "public function save() \n\t{\n\t\tif (isset($this->id)) {\t\n\t\t\n\t\t\t// Return update when id exists\n\t\t\treturn $this->update();\n\t\t\t\n\t\t} else {\n\t\t\n\t\t\t// Return insert when id does not exists\n\t\t\treturn $this->insert();\n\t\t}\n\t}", "public function actionUpdate() {}", "public function actionUpdate() {}", "function save() {\n //save the added fields\n }", "function update()\n {\n $this->dbInit();\n if ( isset( $this->ID ) )\n {\n query( \"UPDATE Grp set Name='$this->Name', Description='$this->Description',\n\t\tUserAdmin='$this->UserAdmin',\n \t\tUserGroupAdmin='$this->UserGroupAdmin',\n\t\tPersonTypeAdmin='$this->PersonTypeAdmin',\n\t\tCompanyTypeAdmin='$this->CompanyTypeAdmin',\n\t\tPhoneTypeAdmin='$this->PhoneTypeAdmin',\n\t\tAddressTypeAdmin='$this->AddressTypeAdmin' WHERE ID='$this->ID'\" );\n }\n }", "public function updateData(){\n try{\n $this->dbConnection->query($this->query);\n $this->message = $this->moduleName.' Successfully Updated';\n $this->data = array();\n $this->data['id'] = $this->dbConnection->lastInsertId();\n $this->sendJSONResponse();\n \n }catch( PDOException $ex ) {\n $this->message = 'Error storing '.$this->moduleName.' :'. $ex->getMessage();\n $this->sendJSONErrorReponse();\n }\n }", "function save() \n\t{\n\t\t$conn = new Conexion();\n\t\tif ($this->id<>0) \n\t\t\t{ \n\n\t\t$sql = $conn->prepare(\"update productos set idMoneda = '$this->idMoneda', idCategoria = '$this->idCategoria', idSubCategoria = '$this->idSubCategoria', descripcion = '$this->descripcion', fechaCarga = '$this->fechaCarga', idUsuario = '$this->idUsuario', activo = '$this->activo', aviso_stock = '$this->aviso_stock', precio = '$this->precio', desc1 = '$this->desc1', desc2 = '$this->desc2', desc3 = '$this->desc3', utilidad = '$this->utilidad', iva = '$this->iva' where id='$this->id'\");\n\t\t$sql->execute();\n\n\t\t\t}\n\t\telse\n\t\t\t{\n\t\t\t$sql = $conn->prepare(\"insert into productos values (null, '$this->idMoneda', '$this->idCategoria','$this->idSubCategoria', '$this->descripcion', '$this->fechaCarga', '$this->idUsuario', '$this->activo', '$this->aviso_stock', '$this->precio', '$this->desc1', '$this->desc2', '$this->desc3', '$this->utilidad', '$this->iva')\");\n\t\t\t$sql->execute();\n\t\t\t$this->id = $conn->lastInsertId();\n\n\t\t\t} \n\t\t$sql=null;\n\t\t$conn=null;\t\n\t}", "function update(){\n\t\t\t\t$servername = \"localhost\";\n\t\t\t\t$username = \"root\";\n\t\t\t\t$password = \"\";\n\t\t\t\t$dbname = \"CS230\";\n\t\t\t\t//Variables for holding entity data\n\t\t\t\t$i = $_POST['i'];\n\t\t\t\t$cr = $_POST['creator'];\n\t\t\t\t$ti = $_POST['title'];\n\t\t\t\t$ty = $_POST['type'];\n\t\t\t\t$id = $_POST['identifier'];\n\t\t\t\t$da = $_POST['date'];\n\t\t\t\t$la = $_POST['language'];\n\t\t\t\t$de = $_POST['description'];\n\t\t\t\t$conn = mysqli_connect($servername, $username, $password, $dbname);\n\t\t\t\t\tif($conn){\n\t\t\t\t\t//echo \"Connection OK\";\n\t\t\t\t\t}else{\n\t\t\t\t\t\tdie(\"The Connection has failed: \" .mysqli_connect_error());\n\t\t\t\t\t}\n\t\t\t\t$sql = \"UPDATE eBook_MetaData SET creator='$cr', title='$ti', type='$ty', identifier='$id', date='$da', language='$la', description='$de' WHERE id='$i'\";\n\t\t\t\t\t$data = mysqli_query($conn, $sql);\n\n\t\t\t\t\tif(!$data){\n\t\t\t\t\t\techo \"error\";\n\t\t\t\t\t}else{\n\t\t\t\t\t\techo \"data updated\";\n\t\t\t\t\t}\t\n\t\t\t\t\n\t\t\t\t$conn = null;\n\t\t\t\t}", "public function save() : bool {\n\t\t// Check if record is new\n\t\t$isNew = isset($this->{$this->primaryKey}) && $this->{$this->primaryKey} ? false : true;\n\n\t\tif ($isNew) {\n\t\t\t// Insert\n\t\t\t$this->database->query('INSERT INTO ' . $this->tableNamePrefixed, $this->getValuesForDatabase());\n\t\t\tif ($this->database->getInsertId()) {\n\t\t\t\t$this->{$this->primaryKey} = $this->database->getInsertId();\n\t\t\t}\n\t\t} else {\n\t\t\t// Update\n\t\t\t$this->database->query(\n\t\t\t\t'UPDATE ' . $this->tableNamePrefixed . ' SET',\n\t\t\t\t$this->getValuesForDatabase(),\n\t\t\t\t'WHERE ' . $this->primaryKey . ' = ?', $this->{$this->primaryKey}\n\t\t\t);\n\t\t}\n\n\t\treturn true;\n\t}", "public function update(){\n\t\t$sql = \"update \".self::$tablename.\" set name=\\\"$this->name\\\" where id=$this->id\";\n\t\tExecutor::doit($sql);\n\t}", "protected function update() {}", "public function update($database, CouchDBObject $object);", "function AddTour($idGame)\n{\n $dbh = ConnectDB();\n $req = $dbh->query(\"UPDATE fishermenland.game SET TourGame = TourGame + '1' WHERE idGame = '$idGame'\");\n}", "protected function update() {\n $this->db->updateRows($this->table_name, $this->update, $this->filter);\n storeDbMsg($this->db,ucwords($this->form_ID) . \" successfully updated!\");\n }", "public function addKeysToUpdates()\n\t{\n\t\t$keys = $this->database->getNewKeys();\n\n\t\tif (!empty($keys)) {\n\t\t\t$this->addToUpdates($keys);\n\t\t}\n\t}", "public function addOnDB() {\n\t\t\t$db = mysqli_connect($GLOBALS['host'], $GLOBALS['username'], $GLOBALS['password'], $GLOBALS['dbname']);\n\t\t\t\n\t\t\t$format = \"INSERT INTO `user` \n\t\t\t\t(`username`, `password`, `fullname`, `birthplace`, `birthdate`, `email`, `avatar`) VALUES \n\t\t\t\t('%s', '%s', '%s', '%s', '%s', '%s', '%s');\";\n\t\t\t$stmt = sprintf($format, $this->username, $this->password, $this->fullname, $this->birthplace, $this->birthdate,\n\t\t\t\t$this->email, $this->avatar_path);\n\t\t\t$result = mysqli_query($db, $stmt);\n\t\t\t\n\t\t\t$db->close();\n\t\t}", "public function save() {\n $db = Db::instance();\n // omit id and any timestamps\n $db_properties = array(\n 'username' => $this->username,\n 'password_hash' => $this->password_hash,\n 'email' => $this->email,\n 'first_name' => $this->first_name,\n 'last_name' => $this->last_name,\n 'user_type' => $this->user_type,\n 'bio' => $this->bio,\n 'creation_date' => $this->creation_date,\n 'gender' => $this->gender,\n 'color' => $this->color\n );\n $db->store($this, __CLASS__, self::DB_TABLE, $db_properties);\n }", "function save()\r\n {\r\n $GLOBALS['DB']->exec(\"INSERT INTO inventory_items (name) VALUES ('{$this->getName()}')\");\r\n $this->id = $GLOBALS['DB']->lastInsertId();\r\n }", "public function save()\n\t{\n\t\tif (!$this->wasInited)\n\t\t\t\tthrow new UnrecoverableSystemException(\"\", \"\",\n\t\t\t\t\t\"DatabaseModel Error: Cannot update entry without an initialization\");\n\n\t\t$results = $this->query(\"DESCRIBE $this->tableName\");\n\t\t$values = \"\";\n\t\t$isStart = true;\n\n\t\t$id = -1;\n\n\t\tforeach ($this->row as $key => $value)\n\t\t{\n\t\t\tForceError::$inst->checkStr($key, true);\n\t\t\tForceError::$inst->checkStr($value, true);\n\t\t\tif ($key == \"id\")\n\t\t\t\tcontinue;\n\n\t\t\tif ($isStart)\n\t\t\t\t$isStart = false;\n\t\t\telse\n\t\t\t\t$values = $values . \", \";\n\n\t\tif ($this->encrypt[$key])\n\t\t$values .= \"\n\t\t\t$this->tableName.$key = AES_ENCRYPT('$value', '$this->key')\";\n\t\t\telse if ($value == \"DEFAULT\" || $value == \"NULL\" || $value == \"TRUE\" ||\n\t\t\t\t\t $value == \"FALSE\")\n\t\t\t\t$values = $values . \"$this->tableName.$key = $value\";\n\t\t\telse\n\t\t\t\t$values = $values . \"$this->tableName.$key = '$value'\";\n\t\t}\n\n\t\t$query = \"\n\t\t\tUPDATE\n\t\t\t\t$this->tableName\n\t\t\tSET\n\t\t\t\t$values\n\t\t\tWHERE\n\t\t\t\tid = '\". $this->row['id'] .\"'\n\t\t\";\n\t\t$this->query($query);\n\t}", "public function testUpdateNew()\r\n\t{\r\n\t\t$index = new Index();\r\n\t\t$index->update();\r\n\t}", "public function saveToDb()\n\t{\n\t\tparent::saveToDb();\n\t\t$this->insertAttachment();\n\t}", "public function insert($tblUpdate);", "public function save() {\r\n $dateNow = date('Y-m-d H:i:s', time());\r\n $this->id = (int) $this->id;\r\n \r\n if (!empty($this->id)) {\r\n //update case\r\n if ($this->_update()) {\r\n return true;\r\n }\r\n }\r\n else {\r\n //Insert case\r\n if ($this->_insert()) {\r\n return true;\r\n }\r\n }\r\n }", "private function update()\n {\n $queryString = 'UPDATE ' . $this->table . ' SET ';\n foreach ($this->data as $column => $value) {\n if ($column != self::ID) {\n $queryString .= $column . ' =:' . $column . ',';\n }\n }\n $queryString .= ' updated_at = sysdate() WHERE 1 = 1 AND ' . self::ID . ' =:' . self::ID;\n $this->query = $this->pdo->prepare($queryString);\n }", "public function updateData($sql, $params=[]){\n $this->create($sql,$params);\n\n }" ]
[ "0.7619751", "0.7492157", "0.73141867", "0.6873022", "0.68393457", "0.6762856", "0.67418206", "0.6690901", "0.6651654", "0.6644205", "0.66174716", "0.6611194", "0.6597408", "0.6581347", "0.6573856", "0.65719014", "0.6486196", "0.64749", "0.64553386", "0.6443072", "0.63460946", "0.6336876", "0.63323754", "0.6301148", "0.62939334", "0.62827086", "0.6281095", "0.6245565", "0.6234752", "0.62285376", "0.6159873", "0.615414", "0.614874", "0.6139289", "0.6136342", "0.6127702", "0.61243165", "0.61231405", "0.61079836", "0.6105457", "0.6058285", "0.6031098", "0.6006823", "0.5986689", "0.5965944", "0.595949", "0.5958915", "0.59582907", "0.5957694", "0.5947737", "0.5939871", "0.5937773", "0.593401", "0.5924158", "0.5910665", "0.5907299", "0.58924574", "0.58915794", "0.5890821", "0.58874327", "0.5883805", "0.5883805", "0.5878746", "0.5863904", "0.5863703", "0.5849568", "0.5844011", "0.5840036", "0.5837837", "0.5821994", "0.5801685", "0.5801398", "0.5796955", "0.5795533", "0.57934487", "0.57896346", "0.57859415", "0.57827336", "0.57827336", "0.5771997", "0.57593584", "0.5759121", "0.57590115", "0.57584816", "0.5757887", "0.5755891", "0.5754695", "0.57522833", "0.5751944", "0.5741809", "0.5740141", "0.5737684", "0.5732249", "0.5727347", "0.57247305", "0.57242644", "0.5722205", "0.57072884", "0.5700867", "0.5699617", "0.56964684" ]
0.0
-1
Logique de sauvegarde de la cohorte
public function saveCohorte( array $data, array $params = array(), $user_id = null ) { foreach ( $data as $key => $value ) { // Si non selectionné, on retire tout if ( $value['Nonoriente66']['selection'] === '0' ) { unset($data[$key]); continue; } if ( empty($value['Nonoriente66']['id']) ) { $data[$key]['Nonoriente66'] = array( 'personne_id' => Hash::get($value, 'Personne.id'), 'origine' => 'isemploi', 'dateimpression' => null, 'historiqueetatpe_id' => Hash::get($value, 'Historiqueetatpe.id'), 'user_id' => $user_id ); } $data[$key]['Orientstruct']['personne_id'] = Hash::get($value, 'Personne.id'); $data[$key]['Orientstruct']['origine'] = 'cohorte'; $data[$key]['Orientstruct']['statut_orient'] = 'Orienté'; } $success = !empty($data) && $this->Nonoriente66->saveAll( $data ) && $this->Nonoriente66->Personne->Orientstruct->saveAll($data) ; return $success; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function faireCours ()\n {\n // ECHAUFFEMENT\n echo \"(echauffez-vous d'abord)\";\n\n parent::faireCours();\n\n // RANGER LES SKIS\n echo \"(e)tirez-vous...\";\n }", "function publishLog() {\n\t\t$id = $this->current_log;\t\t\n\t\t$res = $this->query(\"SELECT event_id FROM $this->table_log WHERE id=$id\");\n\t\t$row = $res->fetch_assoc();\n\t\t$cal_id = explode(\",\",$row['event_id']);\n\t\t$calEvent = $this->calendar_instance->getEventDetails($row['event_id']);\n\t\t$topic = $calEvent['caption'];\n\t\t$year = $calEvent['year'];\n\t\t$slug = $calEvent['slug'];\n\t\t$url = $this->generateCoolURL(\"/$year/$slug\");\n\t\t$this->addToActivityLog(\"publiserte logg fra <a href=\\\"$url\\\">$topic</a>.\",false,\"major\");\n\t}", "function companystats() {\n $this->auth(COMP_ADM_LEVEL);\n $contest_id = $this->uri->segment(3);\n $data = $this->_getCompanyDataByContestId($contest_id);\n $d = new JDate($data['contest']['start']);\n $this->load->view('snippets/v_grid_start');\n $data['label_steps'] = 'Medel steg i ' . $data['company']['name'];\n $data['label_average'] = 'Medel samtliga deltagare';\n $data['graph'] = $this->m_step->getStepSumPerDayByContestId($contest_id, 'VALID', $d->getDate(), date('Y-m-d') );\n $data['average'] = $this->m_step->getAverageStepSumPerDay('VALID', $d->getDate(), date('Y-m-d') );\n $this->load->view('snippets/v_graph', $data);\n $this->load->view('snippets/v_grid_end');\n }", "public function log() {\n $_SESSION['dblog_overview_filter'] = array(\n 'type' => array(\n 'bc_subsites' => 'bc_subsites',\n ),\n 'severity' => array(),\n );\n return RedirectResponse::create(Url::fromRoute('dblog.overview', [\n 'type[]' => 'bc_subsites',\n ])->toString());\n }", "function nbr_auteurs_enligne() {\r\n\tglobal $couleur_claire, $connect_id_auteur;\r\n\t$aff = '';\r\n\t$aff .= debut_cadre_relief(\"annonce.gif\", true);\r\n// nombre d_auteurs depuis 15 mn ()\r\n# inc/auth.php update-set en_ligne => NOW() : \"moment\" de session !\r\n# voir ecrire/action:logout.php\r\n# spip update-set 'en_ligne' datetime -15 mn au logout de session !!??!!\r\n# aff' nbr corresp aux auteurs affiches par spip en bandeau sup !\r\n\r\n\t$q = sql_select(\"COUNT(DISTINCT id_auteur) AS nb, statut \" .\r\n\t\t\"FROM spip_auteurs \" .\r\n\t\t\"WHERE en_ligne > DATE_SUB( NOW(), INTERVAL 15 MINUTE) \" .\r\n\t\t\"AND statut IN ('0minirezo', '1comite', '6forum') \" . // limite statuts spip (autres!)\r\n\t\t\"AND id_auteur != $connect_id_auteur \" .\r\n\t\t\"GROUP BY statut\"\r\n\t);\r\n\r\n\tif (sql_count($q)) {\r\n\t\t$aff .= _T(\"actijour:auteurs_en_ligne\") . \"<br />\\n\";\r\n\t\tWhile ($r = sql_fetch($q)) {\r\n\t\t\tif ($r['statut'] == '0minirezo') {\r\n\t\t\t\t$stat = _T('actijour:abrv_administrateur');\r\n\t\t\t} elseif ($r['statut'] == '1comite') {\r\n\t\t\t\t$stat = _T('actijour:abrv_redacteur');\r\n\t\t\t} elseif ($r['statut'] == '6forum') {\r\n\t\t\t\t$stat = _T('actijour:abrv_visiteur');\r\n\t\t\t}\r\n\t\t\t$aff .= $r['nb'] . \" $stat<br />\\n\";\r\n\t\t}\r\n\r\n\t} else {\r\n\t\t$aff .= _T(\"actijour:aucun_auteur_en_ligne\") . \"\\n\";\r\n\t}\r\n\t$aff .= fin_cadre_relief(true);\r\n\r\n\treturn $aff;\r\n}", "function tab_user_complete($course, $user, $mod, $tab) {\n global $CFG, $DB;\n\n if ($logs = $DB->get_records('log', array('userid' => $user->id, 'module' => 'tab',\n 'action' => 'view', 'info' => $tab->id . ' - ' . $tab->name), 'time ASC')) {\n $numviews = count($logs);\n $lastlog = array_pop($logs);\n\n $strmostrecently = get_string('mostrecently');\n $strnumviews = get_string('numviews', '', $numviews);\n\n echo \"$strnumviews - $strmostrecently \" . userdate($lastlog->time);\n } else {\n print_string('neverseen', 'tab');\n }\n}", "function grava($msgLog) {\n $conerr = pg_connect ( \"host=\" . $GLOBALS [\"servidor_bd\"] . \" port=\" . $GLOBALS [\"porta_bd\"] . \" dbname=\" . $GLOBALS ['nome_bd'] . \" user=\" . $GLOBALS [\"usuario_db\"] . \" password=\" . $GLOBALS [\"senha_bd\"] . \"\" );\n $msgLog = str_replace ( \"<q>\", \"\\n\", $msgLog );\n $msgLog = str_replace ( \"'\", \"''\", $msgLog );\n\n $tabelaAuditoria = 'auditoria.auditoria_' . date('Y_m');\n\n $sql = \"insert into {$tabelaAuditoria} (auddata, audsql,usucpf,audmsg,audip,mnuid, audtipo) values ('\" . date ( \"d-m-Y H:i:s\" ) . \"','\" . str_replace ( \"'\", \"''\", $_SESSION ['sql'] ) . \"','\" . $_SESSION ['usucpf'] . \"','\" . $msgLog . \"','\" . $_SESSION ['ip'] . \"','\" . $_SESSION ['mnuid'] . \"','X')\";\n $sql = ( $sql );\n pg_query ( $conerr, $sql );\n pg_close ( $conerr );\n }", "public function daEntrada(){\n\t\t$this->hora_entrada = date('d/m/y - H:i:s');\n\t\t$this->numero_visitas = $this->numero_visitas + 1;\n\t}", "function gravarLog($log){\n\t$idUsuario = $_SESSION['idUsuario'];\n\t$ip = $_SERVER[\"REMOTE_ADDR\"];\n\t$data = date('Y-m-d H:i:s');\n\t$sql = \"INSERT INTO `ig_log` (`idLog`, `ig_usuario_idUsuario`, `enderecoIP`, `dataLog`, `descricao`) VALUES (NULL, '$idUsuario', '$ip', '$data', '$log')\";\n\n\tmysql_query($sql);\n\t\n}", "function Historial($modulo)\n{\n $sector = \"\";\n $grado = \"\";\n $institucion = \"\";\n $modulo = $modulo;\n\n $usuario = new Usuario();\n $usuario->setIdUsuario($_SESSION[\"ID_Usuario\"]);\n $sector = $usuario->getSector();\n\n /**\n * Dependiendo el secto se obtendra cierta informacion\n */\n switch ($sector) {\n case 'Educativo':\n $grado = $usuario->getGrado();\n $institucion = $usuario->getEscuela();\n break;\n case 'Público':\n $institucion = $usuario->getPublico();\n break;\n case 'Privado':\n $institucion = $usuario->getPrivado();\n break;\n }\n $consulta = new Consulta();\n $consulta->setSector($sector);\n $consulta->setGrado($grado);\n $consulta->setInstitucion($institucion);\n $consulta->setModulo($modulo);\n $consulta->Insert();\n}", "public function dashboard_display_(){\n\t\t$this->data[\"analytics\"] = false;\n\t\t$this->ci->load->model(\"user_model\");\n\t\t$this->data[\"logged_user\"] = $this->ci->user_model->is_user_logged();\n\t\t// dump($this->data[\"logged_user\"]);die;\n\t\t// quando tiver internet de novo pode descomentar\n\t\t// if(1!=1){\n\t\tif(!empty($this->data[\"logged_user\"]->profile_id)){\n\n\t\t\t// dump($this->data[\"logged_user\"]);\n\t\t\t$this->ci->load->library('ga_api');\n\n\n\t\t\t$this_month = date(\"Y-m-t\") ;\n\t\t\t$last_month = date(\"Y-m-1\", strtotime(\"-1 month\") ) ;\n\n\t\t\t// TODO verifica isso aqui, não sei se esta certo\n\t\t\t// if(!$this->ci->ga_api->login()) return;\n\n\n\t\t\t$this->ga = $this->ci->ga_api->login()->init(array('profile_id' => $this->data[\"logged_user\"]->profile_id));\n\t\t\t$this->data[\"analytics\"] = $this->ci->ga_api->login()\n\t\t\t ->dimension('ga:month,ga:day')\n\t\t\t ->metric('ga:newUsers,ga:users,ga:percentNewSessions,ga:timeOnPage,ga:exitRate')\n\t\t\t ->sort_by('ga:month,ga:day',true)\n\t\t\t ->when($last_month,$this_month)\n\t\t\t ->limit(60)\n\t\t\t ->get_object();\n\n\t\t\t $arr = array();\n\t\t\t $arr[] = array(\"Data\", \"Acessos este mês\", \"Acessos mês anterior\");\n\t\t\t \n\t\t\t $month_data=array();\n\t\t\t $elements = $this->data[\"analytics\"];\n\t\t\t unset($elements[\"summary\"]);\n\t\t\t $current_month_data = $elements[date(\"m\")];\n\t\t\t unset($elements[date(\"m\")]);\n\t\t\t $last_month_data = (array) current($elements);\n\n\t\t \t\tforeach ($current_month_data as $day => $data) {\n\t\t \t\t\t//usando o mes como chave, ele bugava no 10, muito estranho\n\t\t\t\t\t$last_month_usage = 0;\n\t\t\t\t\tforeach($last_month_data as $key => $ele){\n\t\t\t\t\t\tif($day==$key){\n\t\t\t\t\t\t\t$last_month_usage = $ele->users;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t \t\t\t$arr[]= array(\"{$day}/\".date(\"m\"), (float) $data->users, (float) $last_month_usage);\n\t\t \t\t}\n\n\t\t\t $this->data[\"analytics_json\"] = json_encode($arr);\n\n\t\t\t return $this->ci->load->view('libraries_view/analytics',$this->data,true);\n\t\t}\n\n\t\t // print(json_encode($arr));die;\n\t\t // dump($this->data[\"analytics\"]);\n\t\t // die;\n\n\n\t\treturn \"\";\n\t}", "public function insertarHistoria(){\n\t\t$motivo = $_POST[\"motivo\"];\n\t\t$lugar = $_POST[\"lugar\"];\n\t\t$dosis = \"---\";\n\t\t$id_enf = $_SESSION[\"id_enf\"];\n\t\t$id_pac = $_POST[\"id_pac\"];\n\t\t$id_ser = $_POST[\"servicio\"];\n\t\t$sql = \"INSERT INTO historia VALUES (null, '\".$motivo.\"', CURRENT_DATE(), '\".$lugar.\"', '\".$dosis.\"', '\".$id_enf.\"','\".$id_pac.\"','\".$id_ser.\"')\";\n\t\t$this->db->query($sql);\n\t}", "public function historico()\n {\n $pasientes = (new \\App\\Models\\Pasientes())->getAll(['pasientes.*, null AS ciudad']);\n\n # Busqueda de ciuidad\n foreach ($pasientes as $key => $pasiente){\n $ciudad = (new Ciudades())->getById($pasiente['id_ciudad']);\n $pasientes[$key]['ciudad'] = $ciudad['ciudad'];\n }\n\n View::set('pasientes', $pasientes);\n echo View::render('pasientes');\n }", "public function index($log_date = NULL){\n // print_r(log_message('info','se ingresa dato al log'));\n //var_dump($this->session->userdata('NameUser'));\n $log_date = \"2019-02-15\";\n $this->load->library('log_library');\n if ($log_date == NULL)\n {\n // default: today\n $log_date = date('Y-m-d');\n }\n $data['cols'] = $this->log_library->get_file('log-'. $log_date . '.php');\n $data['log_date'] = $log_date;\n\t$this->load->view('log_view', $data);\n }", "function shipments_transit_log()\r\n\t\t{\r\n\t\t\t$this->erpm->auth(PNH_SHIPMENT_MANAGER|CALLCENTER_ROLE);\r\n\t\t\t$data['page']='pnh_shipments_transit_log';\r\n\t\t\t$this->load->view('admin',$data);\r\n\t\t}", "function setLog($proceso,$sucursal,$usuario){\n $data = array(\n 'proceso_id' => $proceso,\n 'sucursal_id' => $sucursal,\n 'id_usuario' => $usuario\n );\n $this->db->insert(self::sys_procesos_log,$data);\n }", "function econsole_user_complete($course, $user, $mod, $econsole) {\r\n global $CFG;\r\n\r\n if ($logs = get_records_select(\"log\", \"userid='$user->id' AND module='econsole'\r\n AND action='view' AND info='$econsole->id'\", \"time ASC\")) {\r\n $numviews = count($logs);\r\n $lastlog = array_pop($logs);\r\n\r\n $strmostrecently = get_string(\"mostrecently\");\r\n $strnumviews = get_string(\"numviews\", \"\", $numviews);\r\n\r\n echo \"$strnumviews - $strmostrecently \".userdate($lastlog->time);\r\n\r\n } else {\r\n print_string(\"neverseen\", \"econsole\");\r\n }\r\n}", "function cp_admin_logs()\n{\n?>\n\n\t<div class=\"wrap\">\n\t\t<h2>CubePoints - <?php _e('Logs', 'cp'); ?></h2>\n\t\t<?php _e('View recent point transactions.', 'cp'); ?><br /><br />\n\t\t<?php cp_show_logs('all', apply_filters('cp_admin_logs_limit', 0 ) , true); ?>\n\t</div>\n\t\n\t<?php do_action('cp_admin_logs'); ?>\n\t\n\t<?php\n}", "function account_log()\n {\n }", "function create_run_log() {\n\n\t\t$this->log = new Log();\n\t\t$this->log->set_workflow_id( $this->get_id() );\n\t\t$this->log->set_date( new DateTime() );\n\n\t\tif ( $this->is_tracking_enabled() ) {\n\t\t\t$this->log->set_tracking_enabled( true );\n\n\t\t\tif ( $this->is_conversion_tracking_enabled() ) {\n\t\t\t\t$this->log->set_conversion_tracking_enabled( true );\n\t\t\t}\n\t\t}\n\n\t\t$this->log->save();\n\t\t$this->log->store_data_layer( $this->data_layer() );\n\n\t\tdo_action( 'automatewoo_create_run_log', $this->log, $this );\n\t}", "public function run() {\n\n DB::table(\"chrono_log\")->truncate();\n\n $chronoLogTemplate = [\n \"employee_code\" => \"20170120001\",\n// \"employee_code\" => \"20170120011\",\n \"location_code\" => \"HO\",\n \"location_company_code\" => \"POMS\",\n ];\n\n $januaryDays = [26, 30, 31];\n\n // Absent: feb 8\n // Rest Day Overtime: 4\n $febuaryDays = [\n 1, 2, 3, 4,\n// 6\n 6, 7, 8, 9, 10,\n ];\n\n foreach ($januaryDays AS $day) {\n $log = $chronoLogTemplate;\n\n // Between 7:30 and 8:30\n $timeIn = date('H:i:s', rand(7.5 * 60 * 60, 8.5 * 60 * 60));\n\n $log[\"entry_date\"] = \"2017-01-{$day}\";\n $log[\"entry_time\"] = \"2017-01-{$day} {$timeIn}\";\n $log[\"entry_type\"] = \"IN\";\n\n ChronoLog::insert($log);\n\n // Exactly 5:00 PM\n $timeOut = date('H:i:s', 17 * 60 * 60);\n\n $log[\"entry_date\"] = \"2017-01-{$day}\";\n $log[\"entry_time\"] = \"2017-01-{$day} {$timeOut}\";\n $log[\"entry_type\"] = \"OUT\";\n\n ChronoLog::insert($log);\n }\n\n foreach ($febuaryDays AS $day) {\n $log = $chronoLogTemplate;\n\n // Between 7:30 and 8:30\n $timeIn = date('H:i:s', rand(7.5 * 60 * 60, 8.5 * 60 * 60));\n\n $log[\"entry_date\"] = \"2017-02-{$day}\";\n $log[\"entry_time\"] = \"2017-02-{$day} {$timeIn}\";\n $log[\"entry_type\"] = \"IN\";\n\n ChronoLog::insert($log);\n\n // Exactly 5:00 PM\n $timeOut = date('H:i:s', 17 * 60 * 60);\n\n $log[\"entry_date\"] = \"2017-02-{$day}\";\n $log[\"entry_time\"] = \"2017-02-{$day} {$timeOut}\";\n $log[\"entry_type\"] = \"OUT\";\n\n ChronoLog::insert($log);\n }\n }", "public function __construct( ){\n\t\t$this->message = \"Falha na leitura de crime da planilha serie historica!\";\n\t}", "public function reporte_operacion_componente($com_id){\n $data['componente'] = $this->model_componente->get_componente_pi($com_id); //// DATOS COMPONENTE\n if(count($data['componente'])!=0){\n if($this->gestion>2020){\n redirect(site_url(\"\").'/prog/reporte_form4/'.$com_id.''); /// Reporte Form4 2021\n }\n else{\n $this->reporte_poa_2020($com_id); /// Reporte POA 2019-2020\n }\n }\n else{\n echo \"Error !!!\";\n }\n }", "function log_visit($mysql) {\n\t$prepared = $mysql->prepare('INSERT INTO visits (timestamp) VALUES (NOW());');\n\t$prepared->execute();\n}", "public function getSiteSlogan() {\n\t\treturn isset($this->cache->siteSlogan) ? $this->cache->siteSlogan : 'Et si notre partage faisait l\\'&eacute;volution ?';\n\t}", "function insert_audit_trail()\n {\n $parameter_array = $this->get_parameter_array();\n \n parent::insert('siis', $parameter_array);\n }", "function evt__1__entrada()\r\n\t{\r\n\t\t$this->pasadas_por_solapa[1]++;\r\n\t}", "function logTime($dir_root,$script_name,$begin,$end) {\n $file = fopen($dir_root . 'log/tempsChargement.log','a');\n $temps = $end - $begin;\n fputs($file,date('Y-m-d H:i:s') . \" - Chargement de la page '\". basename($script_name) . \"' en : $temps ms.\\n\"); \n fclose($file);\n}", "public function test_not_class_not_time_not_group() {\n require_once('C:\\wamp\\www\\moodle\\blocks\\supervised\\logs\\logslib.php');\n global $DB;\n $this->resetAfterTest(true);\n // Add new student into user's table.\n $student = $this->construct_user('student', '[email protected]');\n // Add new teacher into user's table.\n $teacher = $this->construct_user('teacher', '[email protected]');\n // Add new course into course's table.\n $course = $this->construct_course(1418301283, 1418301683);\n // Add new group into group's table.\n $group = $this->construct_group($course->id, 1418301283, 1418301683);\n // Add student into group.\n $this->add_user_to_group($group->id, $student->id);\n // Add new classroom into classroom's table.\n $class = $this->construct_class(\"192.168.173.100\");\n // Add new lessontype into lessontype's table.\n $lesson = $this->construct_lesson($course->id);\n // Add new session into session's table.\n $session = $this->construct_session_for_group($course->id, $class->id, $group->id, $teacher->id, $lesson->id);\n $session->timestart = 1411044722;\n $session->duration = '2';\n $session->timeend = 1411044813;\n $session->state = '2';\n $session->iplist = \"192.168.173.100\";\n $session->id = $DB->insert_record('block_supervised_session', $session);\n // Add new user-session pair into supervised_user table.\n $studentsession = new stdClass();\n $studentsession->sessionid = $session->id;\n $studentsession->userid = $student->id + 1;\n $DB->insert_record('block_supervised_user', $studentsession);\n // Write record in logstore table about event.\n $log = $this->construct_log($student->id + 1, $course->id, '1411044900', \"192.168.173.248\");\n\n $logsfilteredexpected = array();\n $expectedresult['logs'] = array_slice($logsfilteredexpected, 0, 10);\n $expectedresult['totalcount'] = 0;\n\n $timefrom = 1411044722;\n $timeto = 1411044813;\n $result = supervisedblock_build_logs_array($session->id, $timefrom, $timeto, $student->id, 0, 10);\n $this->assertEquals($result, $expectedresult);\n }", "function logAction($action) {\n\tglobal $dbLog;\n\n\t$dbLog->exec('INSERT INTO log (descripcion) VALUES (\"'.$action.'\")');\n}", "function changeLogs() {\n\n }", "public function run()\n {\n DB::table('logs')->insert([\n 'mail_id'=>\"1\",\n 'user_id'=>\"1\",\n 'user_id2'=>\"2\",\n 'remitente'=>\"ADMINISTRADOR\",\n 'destinatario'=>\"ADIMER PAUL CHAMBI AJATA\",\n 'estado'=>\"EN PROCESO\",\n 'accion'=>\"\",\n 'fecha'=>\"2021-01-01\",\n 'hora'=>\"12:00\",\n 'unit_id'=>\"16\",\n\n ]);\n }", "function ilog(){\r\n\t\tif($this->input['action'] != 'mylog'){\r\n\t\t\tif($this->vars['logSavePage'] == 1) $logSavePage = addslashes(serialize($this->page));\r\n\t\t\t// user log\r\n\t\t\t$this->DB->query(\"\r\n\t\t\t\tINSERT INTO `log` (`userid` , `title` , `area` , `module` , `action` , `id` , `ip` , `kinput` , `page` , `dateline`)\r\n\t\t\t\tVALUES (\r\n\t\t\t\t'\".$this->user['userid'].\"', '\".$this->page['title'].\"', '\".$this->vars['area'].\"', '\".$this->input['module'].\"', '\".$this->input['action'].\"', '\".$this->iif($this->input[$this->input['module'].'id'] > 0, $this->input[$this->input['module'].'id'], 0).\"', '\".IP.\"', '\".serialize($this->input).\"', '\".$logSavePage.\"', '\".TIMENOW.\"'\r\n\t\t\t\t)\r\n\t\t\t\");\r\n\t\t}\r\n\t}", "function acf_dev_log()\n{\n}", "public function save(){\r\n\t\t\t$query = DB::connection()->prepare(\r\n\t\t\t\t\"INSERT INTO Logs (comp_id, user_id, datum) \r\n\t\t\t\tVALUES (:comp_id, :user_id, :datum)\"\r\n\t\t\t);\r\n\t\t\t$query->execute(array(\r\n\t\t\t\t'comp_id' \t=>\t$this->comp_id,\r\n\t\t\t\t'user_id'\t=>\t$this->user_id,\r\n\t\t\t\t'datum' \t=>\t$this->datum\r\n\t\t\t));\r\n\t\t}", "public function settingsLog(){\n\t\tpermittedArea();\n\n\t\t$data['settingsLog'] = $this->settings_model->adminSettingsLog();\n\n\t\ttheme('settingsLog', $data);\n\t}", "public function history()\n {\n $data['title'] = 'Cuci Sepatu | Kang Cuci';\n $data['user'] = $this->workerModel->datauser();\n\n $this->load->view('worker/worker_header', $data);\n $this->load->view('worker/panel/sepatu', $data);\n $this->load->view('worker/worker_footer');\n }", "public function mostrarInfo()\n {\n // $datos.= \"Cuatrimestre\".$this->cuatrimestre;\n // return parent::mostrarInfo().\" \".$datos;\n }", "function RellenarTitulo()\r\n {\r\n $this->Imprimir('ANÁLSIS DE FALLAS DE DISTRIBUCIÓN');\r\n\r\n $this->Imprimir($this->convocatoria->getLugar(), 93, 10);\r\n\r\n $this->Imprimir(strftime(\"%A %d de %B de %Y\", strtotime($this->convocatoria->getFecha())) .\r\n ' - Hora: ' . $this->convocatoria->getHoraIni() . ' a ' .\r\n $this->convocatoria->getHoraFin(), 95, 10, 16);\r\n }", "public function test_not_class_not_time_in_group() {\n require_once('C:\\wamp\\www\\moodle\\blocks\\supervised\\logs\\logslib.php');\n global $DB;\n $this->resetAfterTest(true);\n // Add new student into user's table.\n $student = $this->construct_user('student', '[email protected]');\n // Add new teacher into user's table.\n $teacher = $this->construct_user('teacher', '[email protected]');\n // Add new course into course's table.\n $course = $this->construct_course(1418301283, 1418301683);\n // Add new group into group's table.\n $group = $this->construct_group($course->id, 1418301283, 1418301683);\n // Add student into group.\n $this->add_user_to_group($group->id, $student->id);\n // Add new classroom into classroom's table.\n $class = $this->construct_class(\"192.168.153.1\");\n // Add new lessontype into lessontype's table.\n $lesson = $this->construct_lesson($course->id);\n // Add new session into session's table.\n $session = $this->construct_session_for_group($course->id, $class->id, $group->id, $teacher->id, $lesson->id);\n $session->timestart = 1411044722;\n $session->duration = '2';\n $session->timeend = 1411044813;\n $session->state = '2';\n $session->iplist = \"192.168.153.1\";\n $session->id = $DB->insert_record('block_supervised_session', $session);\n // Add new user-session pair into supervised_user table.\n $studentsession = new stdClass();\n $studentsession->sessionid = $session->id;\n $studentsession->userid = $student->id;\n $DB->insert_record('block_supervised_user', $studentsession);\n // Write record in logstore table about event.\n $log = $this->construct_log($student->id, $course->id, '1411044900', \"192.168.173.248\");\n\n $logsfilteredexpected = array();\n $expectedresult['logs'] = array_slice($logsfilteredexpected, 0, 10);\n $expectedresult['totalcount'] = 0;\n $timefrom = 1411044722;\n $timeto = 1411044813;\n $result = supervisedblock_build_logs_array($session->id, $timefrom, $timeto, $student->id, 0, 10);\n $this->assertEquals($result, $expectedresult);\n }", "function pnh_employee_sms_activity_log()\r\n\t{\r\n\t\t$this->erpm->auth(true);\r\n\t\t$data['page']=\"pnh_employee_activity_log\";\r\n\t\t$this->load->view(\"admin\",$data);\r\n\t}", "function EventLog($page,$action,$orignal_value,$new_value)\n{\n\t\t$email = $_SESSION['user_email'];\n\t\t$ipaddress = getUserIP();\n\t\t\n\t\t$data = sprintf(\"%s,%s,%s,%s,%s\" . PHP_EOL, $ipaddress,date(\"F j Y g:i a\"), $email, $page, $action);\n\t\t\n\t\t//file_put_contents($_SERVER['DOCUMENT_ROOT'] .'/log.txt', $data, FILE_APPEND);\t\t\n\t\tfile_put_contents('log.txt', $data, FILE_APPEND);\t\t\t\n\t\t\n\t\t\n}", "public function firstlog()\n\t{\n\t\t$this->load->view('newlog');\n\t}", "public function indexHistorialProfesor()\n { \n //$semestre = $this->get_semester(); //obtiene el semestre actual\n //$año = $this->get_year(); //obtiene el año actual\n $username = $this->getRequest()->getSession()->read('id'); //obtiene el nombre de usuario actualmente logueado\n \n /*Inicia seguridad*/\n $seguridad = $this->loadModel('Seguridad');\n $carne = $this->request->getSession()->read('id');\n $rolActual = $seguridad->getRol($carne);\n if ($carne != ''){\n $resultado = $seguridad->getPermiso($carne,13);\n if($resultado != 1 || $rolActual != 3){\n return $this->redirect(['controller' => 'Inicio','action' => 'fail']);\n }\n }\n else{\n return $this->redirect(['controller' => 'Inicio','action' => 'fail']);\n }\n /*Cierra la seguridad*/\n \n $idActual = $this->Solicitudes->getIDUsuario($username); //obtiene el id de usuario actualmente logueado\n \n $todo = $this->Solicitudes->getIndexValuesProfesor($idActual[0][0]); //carga el index con todas las solicitudes del profesor actualmente logueado\n \n \n $this->paginate = [\n 'contain' => ['Usuarios', 'Grupos']\n ];\n $estado = $this->get_estado_ronda();\n $this->set(compact('todo','estado'));\n $this->set('rolActual',$rolActual);\n }", "public function test_not_class_in_time_in_group() {\n require_once('C:\\wamp\\www\\moodle\\blocks\\supervised\\logs\\logslib.php');\n global $DB;\n $this->resetAfterTest(true);\n // Add new student into user's table.\n $student = $this->construct_user('student', '[email protected]');\n // Add new teacher into user's table.\n $teacher = $this->construct_user('teacher', '[email protected]');\n // Add new course into course's table.\n $course = $this->construct_course(1418301283, 1418301683);\n // Add new group into group's table.\n $group = $this->construct_group($course->id, 1418301283, 1418301683);\n // Add student into group.\n $this->add_user_to_group($group->id, $student->id);\n // Add new classroom into classroom's table.\n $class = $this->construct_class(\"192.168.153.1\");\n // Add new lessontype into lessontype's table.\n $lesson = $this->construct_lesson($course->id);\n // Add new session into session's table.\n $session = $this->construct_session_for_group($course->id, $class->id, $group->id, $teacher->id, $lesson->id);\n $session->timestart = 1411044722;\n $session->duration = '2';\n $session->timeend = 1411044813;\n $session->state = '2';\n $session->iplist = \"192.168.153.1\";\n $session->id = $DB->insert_record('block_supervised_session', $session);\n // Add new user-session pair into supervised_user table.\n $studentsession = new stdClass();\n $studentsession->sessionid = $session->id;\n $studentsession->userid = $student->id;\n $DB->insert_record('block_supervised_user', $studentsession);\n // Write record in logstore table about event.\n $log = $this->construct_log($student->id, $course->id, '1411044800', \"192.168.173.248\");\n\n $logsfilteredexpected = array();\n $expectedresult['logs'] = array_slice($logsfilteredexpected, 0, 10);\n $expectedresult['totalcount'] = 0;\n $timefrom = 1411044722;\n $timeto = 1411044813;\n $result = supervisedblock_build_logs_array($session->id, $timefrom, $timeto, $student->id, 0, 10);\n $this->assertEquals($result, $expectedresult);\n }", "function tous_auteurs_date_passage() {\r\n\tglobal $couleur_claire, $connect_id_auteur;\r\n\r\n\t// fixer le nombre de ligne du tableau (tranche)\r\n\t$fl = $GLOBALS['actijour']['nbl_aut'];\r\n\r\n\t// recup $vl dans URL\r\n\t$dl = intval(_request('vl'));\r\n\t$dl = ($dl + 0);\r\n\t// valeur de tranche affichꥍ\r\n\t$nba1 = $dl + 1;\r\n\r\n\t$p_st = _request('st');\r\n\tif (!$p_st) {\r\n\t\t$where_st = \"statut IN ('0minirezo','1comite','6forum')\";\r\n\t\t$p_st = 'tous';\r\n\t} else {\r\n\t\t$where_st = \"statut = \" . _q($p_st);\r\n\t}\r\n\r\n\t$q = sql_select(\"SQL_CALC_FOUND_ROWS id_auteur, statut, nom,\r\n\t\t\t\t\t\tDATE_FORMAT(en_ligne,'%d/%m/%y %H:%i') AS vu \"\r\n\t\t. \"FROM spip_auteurs \"\r\n\t\t. \"WHERE $where_st \"\r\n\t\t. \"ORDER BY en_ligne DESC,nom \"\r\n\t\t. \"LIMIT $dl,$fl\"\r\n\t);\r\n\r\n\t// recup nombre total d'entrees\r\n\t$nl = sql_select(\"FOUND_ROWS()\");\r\n\t$found = @sql_fetch($nl);\r\n\t$nb_auteurs = $found['FOUND_ROWS()'];\r\n\r\n\t$ifond = 0;\r\n\r\n\t$aff = '';\r\n\r\n\t# onglet select statut\r\n\t$lst_statut = array('tous', '0minirezo', '1comite', '6forum');\r\n\t$script = _request('exec');\r\n\r\n\t$aff .= debut_onglet();\r\n\tforeach ($lst_statut as $statut) {\r\n\t\t$aff .= onglet(_T('actijour:onglet_connect_' . $statut),\r\n\t\t\tgenerer_url_ecrire($script, 'st=' . ($statut == 'tous' ? '' : $statut)),\r\n\t\t\t$statut,\r\n\t\t\t($p_st == $statut ? $statut : ''), '');\r\n\t}\r\n\t$aff .= fin_onglet();\r\n\r\n\r\n\t# tableau\r\n\t#\r\n\t$aff .= debut_cadre_relief(\"annonce.gif\", true);\r\n\r\n\t$aff .= \"<table align='center' border='0' cellpadding='2' cellspacing='0' width='100%'>\\n\"\r\n\t\t. \"<tr><td colspan='3' class='verdana3 bold'>\" . _T('actijour:tous_date_connections')\r\n\t\t. \"</td></tr>\";\r\n\t# Tranches\r\n\t$aff .= \"<tr><td colspan='3' class='verdana3 bold'>\";\r\n\t$aff .= \"<div align='center' class='iconeoff verdana2 bold' style='clear:both;'>\\n\"\r\n\t\t. tranches_liste_art($nba1, $nb_auteurs, $fl)\r\n\t\t. \"\\n</div>\\n\";\r\n\t$aff .= \"</td></tr>\";\r\n\r\n\twhile ($row = sql_fetch($q)) {\r\n\t\t$ifond = $ifond ^ 1;\r\n\t\t$couleur = ($ifond) ? '#FFFFFF' : $couleur_claire;\r\n\r\n\t\t$aff .= \"<tr bgcolor='$couleur'>\"\r\n\t\t\t. \"<td width='5%'>\\n\"\r\n\t\t\t. bonhomme_statut($row) . \"</td>\\n\"\r\n\t\t\t. \"<td width='75%'>\"\r\n\t\t\t. \"<a class='verdana2 bold' href='\" . generer_url_ecrire(\"auteur_infos\", \"id_auteur=\" . $row['id_auteur']) . \"'>\"\r\n\t\t\t. entites_html($row['nom']) . \"</a>\\n\"\r\n\t\t\t. \"<td width='20%'>\\n\"\r\n\t\t\t. \"<div align='right' class='verdana1'>\" . $row['vu'] . \"</div>\\n\"\r\n\t\t\t. \"</td></tr>\\n\";\r\n\r\n\t}\r\n\t$aff .= \"</table>\\n\\n\";\r\n\r\n\t$aff .= fin_cadre_relief(true);\r\n\r\n\treturn $aff;\r\n}", "function reporte_slp()\n {\n \t$listaSucursales = $this->InventariosModel->listaSucursales();\n \t$ls = \"<option value='0'>Todos</option>\";\n \twhile($l = $listaSucursales->fetch_assoc())\n \t\t$ls .= \"<option value='\".$l['idSuc'].\"'>(\".$l['clave'].\") \".$l['nombre'].\"</option>\";\n \t$vista = $_GET['vista'];\n if($vista==2){\n require(\"views/inventarios/reporte_slp2.php\");\n }else{\n require(\"views/inventarios/reporte_slp.php\");\n }\n \t\n }", "public function indexHistorialEstudiante()\n { \n $username = $this->getRequest()->getSession()->read('id'); //obtiene el nombre de usuario actualmente logueado\n \n /*Inicia seguridad*/\n $seguridad = $this->loadModel('Seguridad');\n $carne = $this->request->getSession()->read('id');\n $rolActual = $seguridad->getRol($carne);\n if ($carne != ''){\n $resultado = $seguridad->getPermiso($carne,13);\n if($resultado != 1 || $rolActual != 4){\n return $this->redirect(['controller' => 'Inicio','action' => 'fail']);\n }\n }\n else{\n return $this->redirect(['controller' => 'Inicio','action' => 'fail']);\n\n }\n /*Cierra la seguridad*/\n \n $idActual = $this->Solicitudes->getIDUsuario($username); //obtiene el id de usuario actualmente logueado\n \n $todo = $this->Solicitudes->getIndexValuesEstudiante($idActual[0][0]); //carga el index con todas las solicitudes del estudiante actualmente logueado \n \n \n $this->paginate = [\n 'contain' => ['Usuarios', 'Grupos']\n ];\n $estado = $this->get_estado_ronda();\n $this->set(compact('todo','estado'));\n $this->set('rolActual',$rolActual);\n }", "public function logData() {\n\t\t/* Implement in subclasses */\n\t}", "public function logUser()\n {\n if (!$this->limpid->visitCounterManager->getEntry($_SERVER['REMOTE_ADDR']))\n $this->limpid->visitCounterManager->logUser($_SERVER['REMOTE_ADDR']);\n else\n $this->limpid->visitCounterManager->editEntry($_SERVER['REMOTE_ADDR'], ['last_visit' => date('Y-m-d H:i:s')]);\n }", "public function test_not_class_in_time_not_group() {\n require_once('C:\\wamp\\www\\moodle\\blocks\\supervised\\logs\\logslib.php');\n global $DB;\n $this->resetAfterTest(true);\n // Add new student into user's table.\n $student = $this->construct_user('student', '[email protected]');\n // Add new teacher into user's table.\n $teacher = $this->construct_user('teacher', '[email protected]');\n // Add new course into course's table.\n $course = $this->construct_course(1418301283, 1418301683);\n // Add new group into group's table.\n $group = $this->construct_group($course->id, 1418301283, 1418301683);\n // Add student into group.\n $this->add_user_to_group($group->id, $student->id);\n // Add new classroom into classroom's table.\n $class = $this->construct_class(\"192.168.173.100\");\n // Add new lessontype into lessontype's table.\n $lesson = $this->construct_lesson($course->id);\n // Add new session into session's table.\n $session = $this->construct_session_for_group($course->id, $class->id, $group->id, $teacher->id, $lesson->id);\n $session->timestart = 1411044722;\n $session->duration = '2';\n $session->timeend = 1411044813;\n $session->state = '2';\n $session->iplist = \"192.168.173.100\";\n $session->id = $DB->insert_record('block_supervised_session', $session);\n // Add new user-session pair into supervised_user table.\n $studentsession = new stdClass();\n $studentsession->sessionid = $session->id;\n $studentsession->userid = $student->id + 1;\n $DB->insert_record('block_supervised_user', $studentsession);\n // Write record in logstore table about event.\n $log = $this->construct_log($student->id + 1, $course->id, '1411044800', \"192.168.173.248\");\n\n $logsfilteredexpected = array();\n $expectedresult['logs'] = array_slice($logsfilteredexpected, 0, 10);\n $expectedresult['totalcount'] = 0;\n\n $timefrom = 1411044722;\n $timeto = 1411044813;\n $result = supervisedblock_build_logs_array($session->id, $timefrom, $timeto, $student->id, 0, 10);\n $this->assertEquals($result, $expectedresult);\n }", "public function table()\n {\n if (!$this->cfg['collect']) {\n return;\n }\n $args = \\func_get_args();\n $meta = $this->internal->getMetaVals(\n $args,\n array('channel' => $this->cfg['channelName'])\n );\n $event = $this->methodTable->onLog(new Event($this, array(\n 'method' => __FUNCTION__,\n 'args' => $args,\n 'meta' => $meta,\n )));\n $this->appendLog(\n $event['method'],\n $event['args'],\n $event['meta']\n );\n }", "public function run()\n {\n DB::table('historiques')->insert([\n [\n 'nom' => 'Shooting'\n ],[\n 'nom' => 'Invitée d’honneur'\n ],\n [\n 'nom' => 'Test de produits'\n ],[\n 'nom' => 'Ambassadeur'\n ],\n [\n 'nom' => 'Placement produit'\n ],[\n 'nom' => 'Publicité'\n ]\n ]);\n }", "public function test_in_class_in_time_not_group() {\n require_once('C:\\wamp\\www\\moodle\\blocks\\supervised\\logs\\logslib.php');\n global $DB;\n $this->resetAfterTest(true);\n // Add new student into user's table.\n $student = $this->construct_user('student', '[email protected]');\n // Add new teacher into user's table.\n $teacher = $this->construct_user('teacher', '[email protected]');\n // Add new course into course's table.\n $course = $this->construct_course(1418301283, 1418301683);\n // Add new group into group's table.\n $group = $this->construct_group($course->id, 1418301283, 1418301683);\n // Add student into group.\n $this->add_user_to_group($group->id, $student->id);\n // Add new classroom into classroom's table.\n $class = $this->construct_class(\"192.168.173.248\");\n // Add new lessontype into lessontype's table.\n $lesson = $this->construct_lesson($course->id);\n // Add new session into session's table.\n $session = $this->construct_session_for_group($course->id, $class->id, $group->id, $teacher->id, $lesson->id);\n $session->timestart = 1411044722;\n $session->duration = '2';\n $session->timeend = 1411044813;\n $session->state = '2';\n $session->iplist = \"192.168.173.248\";\n $session->id = $DB->insert_record('block_supervised_session', $session);\n // Add new user-session pair into supervised_user table.\n $studentsession = new stdClass();\n $studentsession->sessionid = $session->id;\n $studentsession->userid = $student->id + 1;\n $DB->insert_record('block_supervised_user', $studentsession);\n // Write record in logstore table about event.\n $log = $this->construct_log($student->id + 1, $course->id, '1411044800', \"192.168.173.248\");\n\n $logsfilteredexpected = array();\n $expectedresult['logs'] = array_slice($logsfilteredexpected, 0, 10);\n $expectedresult['totalcount'] = 0;\n\n $timefrom = 1411044722;\n $timeto = 1411044813;\n $result = supervisedblock_build_logs_array($session->id, $timefrom, $timeto, $student->id, 0, 10);\n $this->assertEquals($result, $expectedresult);\n }", "protected function log() {\n }", "private function logAnswer() {\n\t\t$fileName = $this::filesPath . $this->lesson->getLessonFileName () . $this::statisticsExtension;\n\t\t// lese Statistik ein\n\t\t$stats = $this->getStatsFromFile ( $fileName );\n\t\t// aktualisiere Statistik\n\t\t$stats [1] ++;\n\t\tif ($this->lesson->isCorrectAnswer ())\n\t\t\t$stats [0] ++;\n\t\t// versuche Statistik in Datei zu schreiben\n\t\ttry {\n\t\t\tif (file_exists ( $fileName ) && ! is_writable ( $fileName ) || ! is_writable ( $this::filesPath ))\n\t\t\t\tthrow new RuntimeException ( 'Statistik konnte nicht gespeichert werden. Stelle sicher, dass entsprechende Dateien und Ordner auf dem Webserver mit den nötigen Schreibrechten eingerichtet sind.' );\n\t\t\tfile_put_contents ( $fileName, $stats [0] . \"\\t\" . $stats [1] );\n\t\t} catch ( RuntimeException $e ) {\n\t\t\t$this->errorMessage = $e->getMessage ();\n\t\t}\n\t}", "public function test_in_class_not_time_not_group() {\n require_once('C:\\wamp\\www\\moodle\\blocks\\supervised\\logs\\logslib.php');\n global $DB;\n $this->resetAfterTest(true);\n // Add new student into user's table.\n $student = $this->construct_user('student', '[email protected]');\n // Add new teacher into user's table.\n $teacher = $this->construct_user('teacher', '[email protected]');\n // Add new course into course's table.\n $course = $this->construct_course(1418301283, 1418301683);\n // Add new group into group's table.\n $group = $this->construct_group($course->id, 1418301283, 1418301683);\n // Add student into group.\n $this->add_user_to_group($group->id, $student->id);\n // Add new classroom into classroom's table.\n $class = $this->construct_class(\"192.168.173.248\");\n // Add new lessontype into lessontype's table.\n $lesson = $this->construct_lesson($course->id);\n // Add new session into session's table.\n $session = $this->construct_session_for_group($course->id, $class->id, $group->id, $teacher->id, $lesson->id);\n $session->timestart = 1411044722;\n $session->duration = '2';\n $session->timeend = 1411044813;\n $session->state = '2';\n $session->iplist = \"192.168.173.248\";\n $session->id = $DB->insert_record('block_supervised_session', $session);\n // Add new user-session pair into supervised_user table.\n $studentsession = new stdClass();\n $studentsession->sessionid = $session->id;\n $studentsession->userid = $student->id + 1;\n $DB->insert_record('block_supervised_user', $studentsession);\n // Write record in logstore table about event.\n $log = $this->construct_log($student->id + 1, $course->id, '1411044721', \"192.168.173.248\");\n\n $logsfilteredexpected = array();\n $expectedresult['logs'] = array_slice($logsfilteredexpected, 0, 10);\n $expectedresult['totalcount'] = 0;\n\n $timefrom = 1411044722;\n $timeto = 1411044813;\n $result = supervisedblock_build_logs_array($session->id, $timefrom, $timeto, $student->id, 0, 10);\n $this->assertEquals($result, $expectedresult);\n }", "public function getLog();", "function alog($line){\n $cur_user = $_SESSION['user']['user_username'];\n $time = getTimestamp();\n writeLineToLog(\"$time - $cur_user - $line\");\n}", "public function cohort(){\n $submenu_code = 'cohort';\n $permits = $this->_check_menu_access( $submenu_code, 'export');\n $this->_set_title('Cohort');\n\n //SET VARIABLE\n $to = set_var($this->input->get('to'), date('Y-m-d'));\n $cup_status = $this->config->item('cohort')['cups_status'];\n\n $url_query = '&to='.$to;\n\n $arr_data = [\"to_date\" => $to.' 23:59:59'];\n $arr_data_paid = $arr_data;\n $arr_data_free = $arr_data;\n $arr_data_paid[\"uorpd_is_free\"] = $cup_status['paid'];\n $arr_data_free[\"uorpd_is_free\"] = $cup_status['free'];\n\n\n // SELECT DATA & ASSIGN VARIABLE DATA\n $config['base_url'] = ADMIN_URL.'report/cohort'.($url_query != '' ? '?'.$url_query : '');\n $data['form_url'] = $config['base_url'];\n $data['page_url'] = str_replace($url_query, '', $config['base_url']);\n $data['permits'] = $permits;\n $data['to'] = $to;\n\n if($this->input->get('export') == 'total_transaction_xls'){\n $filename = 'total_transaction.xls';\n $this->set_header_xls($filename);\n\n $all_data = $this->reportdb->get_total_transaction($arr_data);\n\n $data['all_data'] = $all_data;\n\n $this->_render('report/total_transaction_xls', $data);\n\n }else if($this->input->get('export') == 'data_xls'){\n //mulai dari set header dan filename\n $filename = 'cohort_data.xls';\n $this->set_header_xls($filename);\n\n //select data dari database\n $all_data = $this->reportdb->get_cohort_data($arr_data);\n\n //taro datanya di parameter untuk di baca di view\n $data['all_data'] = $all_data;\n\n //load view table yang mau di export\n $this->_render('report/cohort_data_xls', $data);\n\n }else if($this->input->get('export') == 'topup_user_xls'){\n $filename = 'cohort_topup_user.xls';\n $this->set_header_xls($filename);\n\n $all_data = $this->reportdb->get_cohort_topup_user($arr_data);\n\n $data['all_data'] = $all_data;\n\n $this->_render('report/cohort_topup_user_xls', $data);\n\n }else if($this->input->get('export') == 'referral_xls'){\n $filename = 'cohort_referral.xls';\n $this->set_header_xls($filename);\n\n $all_data = $this->reportdb->get_cohort_referral($arr_data);\n\n $data['all_data'] = $all_data;\n\n $this->_render('report/cohort_referral_xls', $data);\n\n }else if($this->input->get('export') == 'paid_cups_xls'){\n $filename = 'cohort_paid_cups.xls';\n $this->set_header_xls($filename);\n\n $all_data = $this->reportdb->get_cohort_cups($arr_data_paid);\n\n $data['all_data'] = $all_data;\n\n $this->_render('report/cohort_paid_cups_xls', $data);\n\n }else if($this->input->get('export') == 'free_cups_xls'){\n $filename = 'cohort_free_cups.xls';\n $this->set_header_xls($filename);\n\n $all_data = $this->reportdb->get_cohort_cups($arr_data_free);\n\n $data['all_data'] = $all_data;\n\n $this->_render('report/cohort_free_cups_xls', $data);\n\n }else if($this->input->get('export') == 'voucher_complimentary_xls'){\n $filename = 'cohort_voucher_complimentary.xls';\n $this->set_header_xls($filename);\n\n $all_data = $this->reportdb->get_cohort_voucher_complimentary($arr_data);\n\n $data['all_data'] = $all_data;\n\n $this->_render('report/cohort_voucher_complimentary_xls', $data);\n\n }else{\n $this->_render('report/cohort', $data);\n }\n\n }", "public function log_acceso($id_usuario, $evento)\n\t{\n\t\t$ip = $_SERVER['REMOTE_ADDR'];\n\t\t$detalles = $_SERVER['HTTP_USER_AGENT'];\n\t\t$fecha = date(\"Y\") . \"-\" . date(\"m\") . \"-\" . (date(\"d\") - 1) . \" \" . (date(\"H\") + 17) . \":\" . date(\"i\") . \":\" . date(\"s\");\n\n\t\t$this->db->insert(\"logs_acceso\", [\n\t\t\t\"id_usuario\" => $id_usuario,\n\t\t\t\"ip\" => $ip,\n\t\t\t\"evento\" => $evento,\n\t\t\t\"detalles\" => $detalles,\n\t\t\t\"fecha\" => $fecha,\n\t\t]);\n\t}", "public function __construct() {\n $this->message = \"Falha na leitura de naturezas da planilha serie historica!\";\n }", "function stupid_log( $i, $label, $wikidata_ID ) {\n\t$log_message = sprintf( \"%d,%s,%s,%s\\n\",\n\t\t$i,\n\t\t$wikidata_ID,\n\t\t$label,\n\t\tdate('Y-m-d H:i:s')\n\t);\n\tfile_put_contents( 'log.txt', $log_message, FILE_APPEND );\n}", "function logguer($texte)\n{\n\t$log = fopen('Livraison.log', 'a');\n\tfwrite($log, date('d/m/Y H:i:s').' '.$texte);\n\tfclose($log);\n\techo str_replace(\"\\n\", '<br>', $texte);\n}", "function show_log()\n\t{\n\t\t$options = array();\n\t\tif($this->input->get_post(\"kTeach\")){\n\t\t\t$options[\"kTeach\"] = $this->input->get_post(\"kTeach\");\n\t\t}\n\n\t\tif($this->input->get_post(\"username\")){\n\t\t\t$options[\"username\"] = $this->input->get_post(\"username\");\n\t\t}\n\n\t\tif($this->input->get_post(\"action\")){\n\t\t\t$options[\"action\"] = $this->input->get_post(\"action\");\n\t\t}\n\n\t\tif($this->input->get_post(\"time_start\") && $this->input->get_post(\"time_end\")){\n\t\t\t$time_start = $this->input->get_post(\"time_start\");\n\t\t\t$time_end = $this->input->get_post(\"time_end\");\n\t\t\t$time_end .= \" 23:59:59\";// make the end time the end of the same day\n\t\t\t$options[\"date_range\"][\"time_start\"] = $time_start;\n\t\t\t$options[\"date_range\"][\"time_end\"] = $time_end;\n\t\t}\n\n\t\t$data[\"header\"] = array(\"username\",\"timestamp\",\"action\");\n\t\t$data[\"logs\"] = $this->auth_model->get_log($options);\n\t\t$data[\"options\"] = $options;\n\t\t$data[\"target\"] = \"admin/log\";\n\t\t$data[\"title\"] = \"User Log\";\n\t\t$this->load->view(\"page/index\",$data);\n\t}", "public function test_in_class_in_time_in_group() {\n require_once('C:\\wamp\\www\\moodle\\blocks\\supervised\\logs\\logslib.php');\n global $DB;\n $this->resetAfterTest(true);\n // Add new student into user's table.\n $student = $this->construct_user('student', '[email protected]');\n // Add new teacher into user's table.\n $teacher = $this->construct_user('teacher', '[email protected]');\n // Add new course into course's table.\n $course = $this->construct_course(1418301283, 1418301683);\n // Add new group into group's table.\n $group = $this->construct_group($course->id, 1418301283, 1418301683);\n // Add student into group.\n $this->add_user_to_group($group->id, $student->id);\n // Add new classroom into classroom's table.\n $class = $this->construct_class(\"192.168.173.248\");\n // Add new lessontype into lessontype's table.\n $lesson = $this->construct_lesson($course->id);\n // Add new session into session's table.\n $session = $this->construct_session_for_group($course->id, $class->id, $group->id, $teacher->id, $lesson->id);\n $session->timestart = 1411044722;\n $session->duration = '2';\n $session->timeend = 1411044813;\n $session->state = '2';\n $session->iplist = \"192.168.173.248\";\n $session->id = $DB->insert_record('block_supervised_session', $session);\n // Add new user-session pair into supervised_user table.\n $studentsession = new stdClass();\n $studentsession->sessionid = $session->id;\n $studentsession->userid = $student->id;\n $DB->insert_record('block_supervised_user', $studentsession);\n // Write record in logstore table about event.\n $log = $this->construct_log($student->id, $course->id, '1411044800', \"192.168.173.248\");\n\n $logsfilteredexpected = array();\n $logsfilteredexpected[$log->id] = $log;\n $expectedresult['logs'] = array_slice($logsfilteredexpected, 0, 10);\n $expectedresult['totalcount'] = 1;\n\n $timefrom = 1411044722;\n $timeto = 1411044813;\n $result = supervisedblock_build_logs_array($session->id, $timefrom, $timeto, $student->id, 0, 10);\n $this->assertEquals($result, $expectedresult);\n }", "public function test_in_class_not_time_in_group() {\n require_once('C:\\wamp\\www\\moodle\\blocks\\supervised\\logs\\logslib.php');\n global $DB;\n $this->resetAfterTest(true);\n // Add new student into user's table.\n $student = $this->construct_user('student', '[email protected]');\n // Add new teacher into user's table.\n $teacher = $this->construct_user('teacher', '[email protected]');\n // Add new course into course's table.\n $course = $this->construct_course(1418301283, 1418301683);\n // Add new group into group's table.\n $group = $this->construct_group($course->id, 1418301283, 1418301683);\n // Add student into group.\n $this->add_user_to_group($group->id, $student->id);\n // Add new classroom into classroom's table.\n $class = $this->construct_class(\"192.168.173.248\");\n // Add new lessontype into lessontype's table.\n $lesson = $this->construct_lesson($course->id);\n // Add new session into session's table.\n $session = $this->construct_session_for_group($course->id, $class->id, $group->id, $teacher->id, $lesson->id);\n $session->timestart = 1411044722;\n $session->duration = '2';\n $session->timeend = 1411044813;\n $session->state = '2';\n $session->iplist = \"192.168.173.248\";\n $session->id = $DB->insert_record('block_supervised_session', $session);\n // Add new user-session pair into supervised_user table.\n $studentsession = new stdClass();\n $studentsession->sessionid = $session->id;\n $studentsession->userid = $student->id;\n $DB->insert_record('block_supervised_user', $studentsession);\n // Write record in logstore table about event.\n $log = $this->construct_log($student->id, $course->id, '1411044900', \"192.168.173.248\");\n\n $logsfilteredexpected = array();\n $expectedresult['logs'] = array_slice($logsfilteredexpected, 0, 10);\n $expectedresult['totalcount'] = 0;\n\n $timefrom = 1411044722;\n $timeto = 1411044813;\n $result = supervisedblock_build_logs_array($session->id, $timefrom, $timeto, $student->id, 0, 10);\n $this->assertEquals($result, $expectedresult);\n }", "function BeforeAdd(&$values, &$message, $inline, &$pageObject)\r\n{\r\n\r\n\t\t\n// Rene: Guarda dados de log antes de incluir um registro\n//$values['ID'] = $_SESSION['usua_id'];\n$values['DataHora'] = strftime(\"%Y-%m-%d %H:%M:%S\"); //strftime('Y-m-d H:i:S'); Ex: '2020-05-19 19:19:19'\n\nreturn true;\n\r\n;\t\t\r\n}", "static function getTitoloReport($data){\n if(date(\"dmY\",time())==date(\"dmY\",$data))\n return \"Eventi di Oggi - \".date(\"d.m.Y\",$data);\n else if(date(\"dmY\",(time()+86400))==date(\"dmY\",$data))\n return \"Eventi di Domani - \".date(\"d.m.Y\",$data);\n else if(date(\"dmY\",(time()-86400))==date(\"dmY\",$data))\n return \"Eventi di Ieri - \".date(\"d.m.Y\",$data);\n else\n return \"Eventi del \".date(\"d.m.Y\",$data);\n }", "public function accueil()\n {\n }", "public function apprentice_summary(){\n\t\tif($this->session->userdata('status') !== 'admin_logged_in'){\n\t\tredirect('pages/Login');\n\t\t}\n\t\t$this->M_auditTrail->auditTrailRead('Apprentice Summary', $this->session->userdata['type']);\n\t\t\n\t\t$data = [\n\t\t\t'total_internship' => $this->M_apprenticeGraph->get_total_internship(),\n\t\t\t'contract_expiredApprentice' => $this->M_apprenticeGraph->get_contract_expiredApprentice(),\n\t\t\t'graphAlumniInt' => $this->M_apprenticeGraph->getGraphMemberAlumniInt(),\n\t\t\t'internship_expired' => $this->M_apprenticeGraph->get_internship_expired(),\n\t\t\t'graphApprYear' => $this->M_apprenticeGraph->getGraphApprByYear(),\n\t\t\t'graphApprUniv' => $this->M_apprenticeGraph->getGraphApprByUniversity(),\n\t\t\t'graphApprSpv' => $this->M_apprenticeGraph->getGraphApprBySpv(),\n\t\t\t'judul' => 'Apprentice Summary - INSIGHT',\n\t\t\t'konten' => 'adm_views/home/monitoringApprentice',\n\t\t\t'admModal' => [],\n\t\t\t'footerGraph' => ['apprenticeSummary/apprenticeSummaryGraph']\n\t\t];\n\n\t\t$this->load->view('adm_layout/master', $data);\n\t}", "public function info()\n{\necho \"Informations en date du \",date(\"d/m/Y H:i:s\"),\"<br>\";\n\n$now=getdate();\n$heure= $now[\"hours\"];\n$jour= $now[\"wday\"];\n\necho \"<h3>Horaires des cotations</h3>\";\nif(($heure>=9 && $heure <=17)&& ($jour!=0 && $jour!=6))\n{ echo \"La Bourse de Paris est ouverte <br>\"; }\nelse\n{ echo \"La Bourse de Paris est fermée <br>\"; }\nif(($heure>=16 && $heure <=23)&& ($jour!=0 && $jour!=6) )\n{ echo \"La Bourse de New York est ouverte <hr>\"; }\nelse\n{ echo \"La Bourse de New York est fermée <hr>\"; }\n}", "function panel_timer_ctools_access_summary($conf, $context) {\n $time = array('@timer' => 1);\n return t('Checks the time.', $time);\n}", "public function view_log(){\n require_once \"transaksiController.php\";\n $transaksi = new TransaksiController();\n\n $page = 0;\n if(isset($_GET[\"page\"])) $page = $_GET[\"page\"];\n\n $dateFrom = \"\";\n $dateUntil = \"\";\n $minDateFrom = $transaksi->get_stating_date();\n $maxDateUntil = $transaksi->get_ending_date();\n if (isset ($_GET['dateFrom']) && $_GET['dateFrom'] != \"\" && isset($_GET['dateUntil']) && $_GET['dateUntil'] != \"\"){\n $dateFrom = $_GET['dateFrom'];\n $dateUntil = $_GET['dateUntil'];\n }else if (isset ($_GET['dateFrom']) && $_GET['dateFrom'] != \"\"){\n $dateFrom = $_GET['dateFrom'];\n $dateUntil = $maxDateUntil;\n }else if (isset($_GET['dateUntil']) && $_GET['dateUntil'] != \"\"){\n $dateUntil = $_GET['dateUntil'];\n $dateFrom = $minDateFrom;\n }else{\n //kalau dua duanya belum di set\n $dateFrom = $minDateFrom;\n $dateUntil = $maxDateUntil;\n }\n \n $chartResult = $transaksi->get_data_sum_pengunjung($dateFrom, $dateUntil);\n $chartResult2 = $transaksi->get_data_pendapatan_pengunjung($dateFrom, $dateUntil);\n\n // buat seluruh transaksi (ga di limit)\n $result2 = $transaksi->getAllTransaksi($dateFrom, $dateUntil, 0, PHP_INT_MAX);\n $last_page = (int)(count ($result2) / 5);\n $incomeCust = $transaksi->getTotalIncomeCustomer($result2);\n $totalIncome = $incomeCust[0];\n $totalCustomer = $incomeCust[1];\n\n // buat transaksi yang dilimit\n $result = $transaksi->getAllTransaksi($dateFrom, $dateUntil, $page, 5);\n\n // buat create view\n return View::createAdminView('pemilik_log.php',[\n \"result\"=> $result,\n \"page\"=> $page,\n \"last_page\"=>$last_page,\n \"totalCustomer\"=>$totalCustomer,\n \"totalIncome\"=>$totalIncome,\n \"dateFrom\"=>$dateFrom,\n \"dateUntil\"=>$dateUntil,\n \"chartResult\"=>$chartResult,\n \"chartResult2\"=>$chartResult2\n ]);\n }", "public function test_it_can_expose_how_much_time_has_been_logged()\n {\n $timelog = factory(TimeLog::class, 2)->create([\n 'number_of_seconds' => 300,\n 'user_id' => $this->user->id,\n 'project_id' => $this->project->id\n ]);\n // The project should be able to tell us how much time has been logged\n $timelogs = timeDiffForHumans($this->project->timelogs->sum('number_of_seconds'));\n //\n $this->assertSame($this->project->time_logged, $timelogs);\n }", "public function run()\n {\n DB::table('cat_report')->insert([\n ['name' => 'Otro'],\n\t ['name' => 'Servicio'],\n\t ['name' => 'Seguridad']\n\t ]);\n }", "public function run()\n {\n Statistic::insert([\n 'visits_count'=>0,\n 'docs_count'=>0,\n 'generating_number_count'=>0,\n 'messages_sent_count'=>0\n ]);\n }", "public function escribeLog($cadena) {\n $fecha = date(\"d-m-Y\");\n $archivo = \"SondaUBosque-\" . $fecha . \".log\";\n $fp = fopen($archivo, \"a\");\n $write = fputs($fp, $cadena);\n fclose($fp);\n }", "public function run(){\n App\\LogPerson::create([\n 'name' => str_random(10)\n ,'birthday' => Carbon::now()->format('Y-m-d H:i:s')\n ,'sex' => 'M'\n ,'log_at' => Carbon::now()->format('Y-m-d H:i:s')\n ]);\n }", "public function index()\n {\n $logement = Logement::all();\n $quartier = Quartier::all();\n return view('logement.log.index', compact('logement'))->with('quartier', $quartier);\n }", "public function ReportesData(){\n\t\t$this->status=\"1\";\n\t\t$this->created_at = \"NOW()\";\n\t}", "public function getTotalStudentsFilters($gcohorts, $supervisors, $departament){\n if ($gcohorts==\"Todos\") {\n # code...\n if ($supervisors==0 && $departament ==0) {\n # code...\n $total_stds = $this->getTotalStds();\n $total_stds_men = $this->getTotalStdsMen();\n $total_stds_women = $this->getTotalStdsWomen();\n $stds_by_cohort_men = DB::table('students')\n ->join('cohortes','students.cohorte','=','cohortes.id')\n ->where('students.gender',1)\n ->select('cohortes.id as id','cohortes.name as cohort',DB::raw(\"count(*) as men\"))\n ->orderBy('id','desc')\n ->groupBy('cohortes.name')\n ->get();\n $stds_by_cohort_women = DB::table('students')\n ->join('cohortes','students.cohorte','=','cohortes.id')\n ->where('students.gender',2)\n ->select('cohortes.id as id','cohortes.name as cohort',DB::raw(\"count(*) as women\"))\n ->orderBy('id','desc')\n ->groupBy('cohortes.name')\n ->get();\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,\"\").$this->str_students(3,\"Cohorte\");\n $i = 0;\n foreach ($stds_by_cohort_men as $sbc) {\n $htmlResumenTotal=$htmlResumenTotal.'\n <tr>\n <td>'. $sbc->cohort .'</td>\n <td style=\"text-align:right;\">'. number_format($sbc->men) .'</td>\n <td style=\"text-align:right;\">'. number_format($stds_by_cohort_women[$i]->women) .'</td>\n <td style=\"text-align:right;\">'. number_format($sbc->men + $stds_by_cohort_women[$i]->women) .'</td>\n <td style=\"text-align:right;\">'. number_format($sbc->men*100/($sbc->men + $stds_by_cohort_women[$i]->women)) .'%</td>\n <td style=\"text-align:right;\">'. number_format($stds_by_cohort_women[$i]->women*100/($sbc->men + $stds_by_cohort_women[$i]->women)) .'%</td>\n </tr>\n ';\n $i++;\n }\n $htmlResumenTotal = $htmlResumenTotal.'\n <tr>\n <td class=\"color-blue\" style=\"font-size:16px;\">Total</td>\n <td class=\"color-blue\" style=\"text-align:right; font-weight:bold; font-size:16px;\">'. number_format($total_stds_men) .'</td>\n <td class=\"color-blue\" style=\"text-align:right; font-weight:bold; font-size:16px;\">'. number_format($total_stds_women) .'</td>\n <td class=\"color-blue\" style=\"text-align:right; font-weight:bold; font-size:16px;\">'. number_format($total_stds) .'</td>\n <td class=\"color-blue\" style=\"font-size:16px;\"></td>\n <td class=\"color-blue\" style=\"font-size:16px;\"></td>\n </tr>\n '.$this->str_students(2,\"\");\n } else {\n # code...\n if ($supervisors==0 && $departament !=0) {\n # code...\n $name_departament = $this->getNameDepartament($departament);\n $total_stds_departament = Student::join('cohortes', 'students.cohorte','=','cohortes.id')\n ->join('headquarters','students.headquarter','=','headquarters.id_headquarters')\n ->join('teams','headquarters.team', '=', 'teams.id_team')\n ->join('municipality','teams.municipality', '=', 'municipality.id_municipality')\n ->join('departament','municipality.id_departament', '=', 'departament.id_departament')\n ->select(DB::raw('COUNT(case when students.gender = 1 then 1 end) as mendp'),DB::raw('COUNT(case when students.gender = 2 then 1 end) as womendp'))\n ->where('departament.id_departament', $departament)\n ->get(); \n if ($total_stds_departament != null) {\n # code...\n $stds_by_super_departament = Student::join('cohortes', 'students.cohorte','=','cohortes.id')\n ->join('headquarters','students.headquarter','=','headquarters.id_headquarters')\n ->join('teams','headquarters.team', '=', 'teams.id_team')\n ->join('supervisors','teams.supervisor', '=', 'supervisors.id_supervisors')\n ->join('municipality','teams.municipality', '=', 'municipality.id_municipality')\n ->join('departament','municipality.id_departament', '=', 'departament.id_departament')\n ->select('supervisors.name as namesuper', DB::raw('COUNT(case when students.gender = 1 then 1 end) as men'),DB::raw('COUNT(case when students.gender = 2 then 1 end) as women'))\n ->where('departament.id_departament', $departament)\n ->orderBy('supervisors.id_supervisors','desc')\n ->groupBy('supervisors.id_supervisors')\n ->get();\n $stds_by_departament_cohort = Student::join('cohortes', 'students.cohorte','=','cohortes.id')\n ->join('headquarters','students.headquarter','=','headquarters.id_headquarters')\n ->join('teams','headquarters.team', '=', 'teams.id_team')\n ->join('supervisors','teams.supervisor', '=', 'supervisors.id_supervisors')\n ->join('municipality','teams.municipality', '=', 'municipality.id_municipality')\n ->join('departament','municipality.id_departament', '=', 'departament.id_departament')\n ->select('cohortes.name as cohort', DB::raw('COUNT(case when students.gender = 1 then 1 end) as men'),DB::raw('COUNT(case when students.gender = 2 then 1 end) as women'))\n ->where('departament.id_departament', $departament)\n ->orderBy('cohortes.id','desc')\n ->groupBy('cohortes.name')\n ->get();\n if (number_format($total_stds_departament[0]->mendp+$total_stds_departament[0]->womendp)!=0) {\n # code...\n $tablesresult = '<td class=\"color-indico\">'. number_format($total_stds_departament[0]->mendp+$total_stds_departament[0]->womendp) .'</td>\n <td class=\"color-blue\">'. number_format($total_stds_departament[0]->mendp) .' ('. number_format($total_stds_departament[0]->mendp * 100 / ($total_stds_departament[0]->mendp+$total_stds_departament[0]->womendp)) .'%)</td>\n <td class=\"color-orange\">'. number_format($total_stds_departament[0]->womendp) .'('. number_format($total_stds_departament[0]->womendp * 100 / ($total_stds_departament[0]->mendp+$total_stds_departament[0]->womendp)) .'%)</td>';\n } else {\n # code...\n $tablesresult = '<td class=\"color-indico\">'. number_format($total_stds_departament[0]->mendp+$total_stds_departament[0]->womendp) .'</td>\n <td class=\"color-blue\">'. number_format($total_stds_departament[0]->mendp) .' (%)</td>\n <td class=\"color-orange\">'. number_format($total_stds_departament[0]->womendp) .'(%)</td>';\n }\n $htmlResumenTotal = $this->str_students(1,'departamento: '.$name_departament->departament).'<tr class=\"numbers\">';\n $htmlResumenTotal = $htmlResumenTotal.$tablesresult.'\n </tr>\n '.$this->str_students(2,\"\");\n if ($stds_by_super_departament != null && $stds_by_departament_cohort!= null) {\n # code...\n $htmlResumenTotal = $htmlResumenTotal.$this->str_students(3,\"Supervisor\");\n foreach ($stds_by_super_departament as $stdp) {\n # code...\n $htmlResumenTotal=$htmlResumenTotal.'\n <tr>\n <td>'. $stdp->namesuper .'</td>\n <td style=\"text-align:right;\">'. number_format($stdp->men) .'</td>\n <td style=\"text-align:right;\">'. number_format($stdp->women) .'</td>\n <td style=\"text-align:right;\">'. number_format($stdp->women+$stdp->men) .'</td>\n <td style=\"text-align:right;\">'. number_format($stdp->men*100/($stdp->women+$stdp->men)) .'%</td>\n <td style=\"text-align:right;\">'. number_format($stdp->women*100/($stdp->women+$stdp->men)) .'%</td>\n </tr>\n ';\n }\n $htmlResumenTotal = $htmlResumenTotal.'\n <tr>\n <td class=\"color-blue\" style=\"font-size:16px;\">Total</td>\n <td class=\"color-blue\" style=\"text-align:right; font-weight:bold; font-size:16px;\">'. number_format($total_stds_departament[0]->mendp) .'</td>\n <td class=\"color-blue\" style=\"text-align:right; font-weight:bold; font-size:16px;\">'. number_format($total_stds_departament[0]->womendp) .'</td>\n <td class=\"color-blue\" style=\"text-align:right; font-weight:bold; font-size:16px;\">'. number_format($total_stds_departament[0]->mendp+$total_stds_departament[0]->womendp) .'</td>\n <td class=\"color-blue\" style=\"font-size:16px;\"></td>\n <td class=\"color-blue\" style=\"font-size:16px;\"></td>\n </tr>\n '.$this->str_students(2,\"\");\n $htmlResumenTotal = $htmlResumenTotal.$this->str_students(3,\"Cohorte\");\n foreach ($stds_by_departament_cohort as $stdp) {\n # code...\n $htmlResumenTotal=$htmlResumenTotal.'\n <tr>\n <td>'. $stdp->cohort .'</td>\n <td style=\"text-align:right;\">'. number_format($stdp->men) .'</td>\n <td style=\"text-align:right;\">'. number_format($stdp->women) .'</td>\n <td style=\"text-align:right;\">'. number_format($stdp->women+$stdp->men) .'</td>\n <td style=\"text-align:right;\">'. number_format($stdp->men*100/($stdp->women+$stdp->men)) .'%</td>\n <td style=\"text-align:right;\">'. number_format($stdp->women*100/($stdp->women+$stdp->men)) .'%</td>\n </tr>\n ';\n }\n $htmlResumenTotal = $htmlResumenTotal.'\n <tr>\n <td class=\"color-blue\" style=\"font-size:16px;\">Total</td>\n <td class=\"color-blue\" style=\"text-align:right; font-weight:bold; font-size:16px;\">'. number_format($total_stds_departament[0]->mendp) .'</td>\n <td class=\"color-blue\" style=\"text-align:right; font-weight:bold; font-size:16px;\">'. number_format($total_stds_departament[0]->womendp) .'</td>\n <td class=\"color-blue\" style=\"text-align:right; font-weight:bold; font-size:16px;\">'. number_format($total_stds_departament[0]->mendp+$total_stds_departament[0]->womendp) .'</td>\n <td class=\"color-blue\" style=\"font-size:16px;\"></td>\n <td class=\"color-blue\" style=\"font-size:16px;\"></td>\n </tr>\n '.$this->str_students(2,\"\");\n } else {\n # code...\n $htmlResumenTotal='<h2> No existen datos </h2>';\n }\n //$htmlResumenTotal = ''.$stds_by_super_departament;\n } else {\n # code...\n $htmlResumenTotal='<h2> No existen datos </h2>';\n }\n \n } else if($supervisors!=0 && $departament ==0){\n # code...\n $name_supervisor = $this->getNameSupervisor($supervisors);\n $total_stds_supervisor = Student::join('cohortes', 'students.cohorte','=','cohortes.id')\n ->join('headquarters','students.headquarter','=','headquarters.id_headquarters')\n ->join('teams','headquarters.team', '=', 'teams.id_team')\n ->join('supervisors','teams.supervisor', '=', 'supervisors.id_supervisors')\n ->select(DB::raw('COUNT(case when students.gender = 1 then 1 end) as mendp'),DB::raw('COUNT(case when students.gender = 2 then 1 end) as womendp'))\n ->where('supervisors.id_supervisors',$supervisors)\n ->get();\n if( $total_stds_supervisor!=null){\n $stds_by_super_departament = Student::join('cohortes', 'students.cohorte','=','cohortes.id')\n ->join('headquarters','students.headquarter','=','headquarters.id_headquarters')\n ->join('teams','headquarters.team', '=', 'teams.id_team')\n ->join('supervisors','teams.supervisor', '=', 'supervisors.id_supervisors')\n ->join('municipality','teams.municipality', '=', 'municipality.id_municipality')\n ->join('departament','municipality.id_departament', '=', 'departament.id_departament')\n ->select('departament.departament as dp', DB::raw('COUNT(case when students.gender = 1 then 1 end) as men'),DB::raw('COUNT(case when students.gender = 2 then 1 end) as women'))\n ->where('supervisors.id_supervisors',$supervisors)\n ->orderBy('departament.id_departament','desc')\n ->groupBy('departament.id_departament')\n ->get();\n $stds_by_super_cohort = Student::join('cohortes', 'students.cohorte','=','cohortes.id')\n ->join('headquarters','students.headquarter','=','headquarters.id_headquarters')\n ->join('teams','headquarters.team', '=', 'teams.id_team')\n ->join('supervisors','teams.supervisor', '=', 'supervisors.id_supervisors')\n ->select('cohortes.name as cohort', DB::raw('COUNT(case when students.gender = 1 then 1 end) as men'),DB::raw('COUNT(case when students.gender = 2 then 1 end) as women'))\n ->where('supervisors.id_supervisors',$supervisors)\n ->orderBy('cohortes.id','desc')\n ->groupBy('cohortes.name')\n ->get();\n if (number_format($total_stds_supervisor[0]->mendp+$total_stds_supervisor[0]->womendp)!=0) {\n # code...\n $tablesresult = '<td class=\"color-indico\">'. number_format($total_stds_supervisor[0]->mendp+$total_stds_supervisor[0]->womendp) .'</td>\n <td class=\"color-blue\">'. number_format($total_stds_supervisor[0]->mendp) .' ('. number_format($total_stds_supervisor[0]->mendp * 100 / ($total_stds_supervisor[0]->mendp+$total_stds_supervisor[0]->womendp)) .'%)</td>\n <td class=\"color-orange\">'. number_format($total_stds_supervisor[0]->womendp) .'('. number_format($total_stds_supervisor[0]->womendp * 100 / ($total_stds_supervisor[0]->mendp+$total_stds_supervisor[0]->womendp)) .'%)</td>';\n } else {\n # code...\n $tablesresult = '<td class=\"color-indico\">'. number_format($total_stds_supervisor[0]->mendp+$total_stds_supervisor[0]->womendp) .'</td>\n <td class=\"color-blue\">'. number_format($total_stds_supervisor[0]->mendp) .' (%)</td>\n <td class=\"color-orange\">'. number_format($total_stds_supervisor[0]->womendp) .'(%)</td>';\n }\n $htmlResumenTotal = $this->str_students(1, 'supervisor: '.$name_supervisor->name).'<tr class=\"numbers\">'.$tablesresult.'\n </tr>\n '.$this->str_students(2,\"\");\n if($stds_by_super_departament!=null && $stds_by_super_cohort!=null){ \n $htmlResumenTotal = $htmlResumenTotal.$this->str_students(3,\"Departamento\");\n foreach ($stds_by_super_departament as $stdp) {\n # code...\n $htmlResumenTotal=$htmlResumenTotal.'\n <tr>\n <td>'. $stdp->dp .'</td>\n <td style=\"text-align:right;\">'. number_format($stdp->men) .'</td>\n <td style=\"text-align:right;\">'. number_format($stdp->women) .'</td>\n <td style=\"text-align:right;\">'. number_format($stdp->women+$stdp->men) .'</td>\n <td style=\"text-align:right;\">'. number_format($stdp->men*100/($stdp->women+$stdp->men)) .'%</td>\n <td style=\"text-align:right;\">'. number_format($stdp->women*100/($stdp->women+$stdp->men)) .'%</td>\n </tr>\n ';\n }\n $htmlResumenTotal = $htmlResumenTotal.'\n <tr>\n <td class=\"color-blue\" style=\"font-size:16px;\">Total</td>\n <td class=\"color-blue\" style=\"text-align:right; font-weight:bold; font-size:16px;\">'. number_format($total_stds_supervisor[0]->mendp) .'</td>\n <td class=\"color-blue\" style=\"text-align:right; font-weight:bold; font-size:16px;\">'. number_format($total_stds_supervisor[0]->womendp) .'</td>\n <td class=\"color-blue\" style=\"text-align:right; font-weight:bold; font-size:16px;\">'. number_format($total_stds_supervisor[0]->mendp+$total_stds_supervisor[0]->womendp) .'</td>\n <td class=\"color-blue\" style=\"font-size:16px;\"></td>\n <td class=\"color-blue\" style=\"font-size:16px;\"></td>\n </tr>\n '.$this->str_students(2,\"\");\n \n $htmlResumenTotal = $htmlResumenTotal.$this->str_students(3,\"Cohorte\");\n foreach ($stds_by_super_cohort as $stdp) {\n # code...\n $htmlResumenTotal=$htmlResumenTotal.'\n <tr>\n <td>'. $stdp->cohort .'</td>\n <td style=\"text-align:right;\">'. number_format($stdp->men) .'</td>\n <td style=\"text-align:right;\">'. number_format($stdp->women) .'</td>\n <td style=\"text-align:right;\">'. number_format($stdp->women+$stdp->men) .'</td>\n <td style=\"text-align:right;\">'. number_format($stdp->men*100/($stdp->women+$stdp->men)) .'%</td>\n <td style=\"text-align:right;\">'. number_format($stdp->women*100/($stdp->women+$stdp->men)) .'%</td>\n </tr>\n ';\n }\n $htmlResumenTotal = $htmlResumenTotal.'\n <tr>\n <td class=\"color-blue\" style=\"font-size:16px;\">Total</td>\n <td class=\"color-blue\" style=\"text-align:right; font-weight:bold; font-size:16px;\">'. number_format($total_stds_supervisor[0]->mendp) .'</td>\n <td class=\"color-blue\" style=\"text-align:right; font-weight:bold; font-size:16px;\">'. number_format($total_stds_supervisor[0]->womendp) .'</td>\n <td class=\"color-blue\" style=\"text-align:right; font-weight:bold; font-size:16px;\">'. number_format($total_stds_supervisor[0]->mendp+$total_stds_supervisor[0]->womendp) .'</td>\n <td class=\"color-blue\" style=\"font-size:16px;\"></td>\n <td class=\"color-blue\" style=\"font-size:16px;\"></td>\n </tr>'.$this->str_students(2,\"\");\n }else{\n $htmlResumenTotal='<h2> No existen datos </h2>';\n }\n }else{\n $htmlResumenTotal='<h2> No existen datos </h2>';\n }\n } else if($supervisors!=0 && $departament !=0){\n $name_supervisor = $this->getNameSupervisor($supervisors);\n $name_departament = $this->getNameDepartament($departament);\n $total_stds_super_departament = Student::join('cohortes', 'students.cohorte','=','cohortes.id')\n ->join('headquarters','students.headquarter','=','headquarters.id_headquarters')\n ->join('teams','headquarters.team', '=', 'teams.id_team')\n ->join('supervisors','teams.supervisor', '=', 'supervisors.id_supervisors')\n ->join('municipality','teams.municipality', '=', 'municipality.id_municipality')\n ->join('departament','municipality.id_departament', '=', 'departament.id_departament')\n ->select(DB::raw('COUNT(case when students.gender = 1 then 1 end) as mendp'),DB::raw('COUNT(case when students.gender = 2 then 1 end) as womendp'))\n ->where('departament.id_departament', $departament)\n ->where('supervisors.id_supervisors',$supervisors)\n ->get();\n $stds_by_super_departament_cohort = Student::join('cohortes', 'students.cohorte','=','cohortes.id')\n ->join('headquarters','students.headquarter','=','headquarters.id_headquarters')\n ->join('teams','headquarters.team', '=', 'teams.id_team')\n ->join('supervisors','teams.supervisor', '=', 'supervisors.id_supervisors')\n ->join('municipality','teams.municipality', '=', 'municipality.id_municipality')\n ->join('departament','municipality.id_departament', '=', 'departament.id_departament')\n ->select('cohortes.name as cohort', DB::raw('COUNT(case when students.gender = 1 then 1 end) as men'),DB::raw('COUNT(case when students.gender = 2 then 1 end) as women'))\n ->where('supervisors.id_supervisors',$supervisors)\n ->where('departament.id_departament', $departament)\n ->orderBy('cohortes.id','desc')\n ->groupBy('cohortes.name')\n ->get();\n if ($total_stds_super_departament!= null) {\n # code...\n if (number_format($total_stds_super_departament[0]->mendp+$total_stds_super_departament[0]->womendp)!=0) {\n # code...\n $tablesresult = '<td class=\"color-indico\">'. number_format($total_stds_super_departament[0]->mendp+$total_stds_super_departament[0]->womendp) .'</td>\n <td class=\"color-blue\">'. number_format($total_stds_super_departament[0]->mendp) .' ('. number_format($total_stds_super_departament[0]->mendp * 100 / ($total_stds_super_departament[0]->mendp+$total_stds_super_departament[0]->womendp)) .'%)</td>\n <td class=\"color-orange\">'. number_format($total_stds_super_departament[0]->womendp) .'('. number_format($total_stds_super_departament[0]->womendp * 100 / ($total_stds_super_departament[0]->mendp+$total_stds_super_departament[0]->womendp)) .'%)</td>';\n } else {\n # code...\n $tablesresult = '<td class=\"color-indico\">'. number_format($total_stds_super_departament[0]->mendp+$total_stds_super_departament[0]->womendp) .'</td>\n <td class=\"color-blue\">'. number_format($total_stds_super_departament[0]->mendp) .' (%)</td>\n <td class=\"color-orange\">'. number_format($total_stds_super_departament[0]->womendp) .'(%)</td>';\n }\n $htmlResumenTotal = $this->str_students(1,'supervisor: '.$name_supervisor->name.', departamento: '.$name_departament->departament).'<tr class=\"numbers\">'.$tablesresult.'\n </tr>'.$this->str_students(2,\"\");\n if ($stds_by_super_departament_cohort!=null) {\n # code...\n $htmlResumenTotal = $htmlResumenTotal.$this->str_students(3, \"Cohorte\");\n foreach ($stds_by_super_departament_cohort as $stdp) {\n # code...\n $htmlResumenTotal=$htmlResumenTotal.'\n <tr>\n <td>'. $stdp->cohort .'</td>\n <td style=\"text-align:right;\">'. number_format($stdp->men) .'</td>\n <td style=\"text-align:right;\">'. number_format($stdp->women) .'</td>\n <td style=\"text-align:right;\">'. number_format($stdp->women+$stdp->men) .'</td>\n <td style=\"text-align:right;\">'. number_format($stdp->men*100/($stdp->women+$stdp->men)) .'%</td>\n <td style=\"text-align:right;\">'. number_format($stdp->women*100/($stdp->women+$stdp->men)) .'%</td>\n </tr>\n ';\n }\n $htmlResumenTotal = $htmlResumenTotal.'\n <tr>\n <td class=\"color-blue\" style=\"font-size:16px;\">Total</td>\n <td class=\"color-blue\" style=\"text-align:right; font-weight:bold; font-size:16px;\">'. number_format($total_stds_super_departament[0]->mendp) .'</td>\n <td class=\"color-blue\" style=\"text-align:right; font-weight:bold; font-size:16px;\">'. number_format($total_stds_super_departament[0]->womendp) .'</td>\n <td class=\"color-blue\" style=\"text-align:right; font-weight:bold; font-size:16px;\">'. number_format($total_stds_super_departament[0]->mendp+$total_stds_super_departament[0]->womendp) .'</td>\n <td class=\"color-blue\" style=\"font-size:16px;\"></td>\n <td class=\"color-blue\" style=\"font-size:16px;\"></td>\n </tr>'.$this->str_students(2,\"\");\n } else {\n # code...\n $htmlResumenTotal='<h2> No existen datos </h2>';\n }\n } else {\n # code...\n $htmlResumenTotal='<h2> No existen datos </h2>';\n } \n }\n }\n } else {\n # code...\n if ($supervisors==0 && $departament ==0) {\n # code...\n $total_stds_cohort = Student::join('cohortes', 'students.cohorte','=','cohortes.id')\n ->where('cohortes.name','like','%'.$gcohorts.'%')->count();\n $total_stds_cohort_men = Student::join('cohortes', 'students.cohorte','=','cohortes.id')\n ->where('cohortes.name','like','%'.$gcohorts.'%')\n ->where('gender',1)->count();\n $total_stds_cohort_woman = Student::join('cohortes', 'students.cohorte','=','cohortes.id')\n ->where('cohortes.name','like','%'.$gcohorts.'%')\n ->where('gender',2)->count();\n $stds_by_super_cohort = Student::join('cohortes', 'students.cohorte','=','cohortes.id')\n ->join('headquarters','students.headquarter','=','headquarters.id_headquarters')\n ->join('teams','headquarters.team', '=', 'teams.id_team')\n ->join('supervisors','teams.supervisor', '=', 'supervisors.id_supervisors')\n ->select('supervisors.name as namesuper', DB::raw('COUNT(case when students.gender = 1 then 1 end) as men'),DB::raw('COUNT(case when students.gender = 2 then 1 end) as women'))\n ->where('cohortes.name','like','%'.$gcohorts.'%')\n ->orderBy('supervisors.id_supervisors','desc')\n ->groupBy('supervisors.id_supervisors')\n ->get();\n $stds_by_depar_cohort = Student::join('cohortes', 'students.cohorte','=','cohortes.id')\n ->join('headquarters','students.headquarter','=','headquarters.id_headquarters')\n ->join('teams','headquarters.team', '=', 'teams.id_team')\n ->join('municipality','teams.municipality', '=', 'municipality.id_municipality')\n ->join('departament','municipality.id_departament', '=', 'departament.id_departament')\n ->select('departament.departament as dp', DB::raw('COUNT(case when students.gender = 1 then 1 end) as mendp'),DB::raw('COUNT(case when students.gender = 2 then 1 end) as womendp'))\n ->where('cohortes.name','like','%'.$gcohorts.'%')\n ->orderBy('departament.id_departament','desc')\n ->groupBy('departament.id_departament')\n ->get();\n if ($stds_by_super_cohort==null) {\n # code...\n $htmlResumenTotal =\"<h3>No se encuentran datos</h3>\";\n } else {\n # code...\n $htmlResumenTotal = $this->str_students(1,$gcohorts).'<tr class=\"numbers\">\n <td class=\"color-indico\">'. number_format($total_stds_cohort) .'</td>\n <td class=\"color-blue\">'. number_format($total_stds_cohort_men) .' ('. number_format($total_stds_cohort_men * 100 / $total_stds_cohort) .'%)</td>\n <td class=\"color-orange\">'. number_format($total_stds_cohort_woman) .'('. number_format($total_stds_cohort_woman * 100 / $total_stds_cohort) .'%)</td>\n </tr>'.$this->str_students(2,\"\");\n $htmlResumenTotal = $htmlResumenTotal.$this->str_students(3,'Supervisor');\n foreach ($stds_by_super_cohort as $sbc) {\n $htmlResumenTotal=$htmlResumenTotal.'\n <tr>\n <td>'. $sbc->namesuper .'</td>\n <td style=\"text-align:right;\">'. number_format($sbc->men) .'</td>\n <td style=\"text-align:right;\">'. number_format($sbc->women) .'</td>\n <td style=\"text-align:right;\">'. number_format($sbc->women+$sbc->men) .'</td>\n <td style=\"text-align:right;\">'. number_format($sbc->men*100/($sbc->women+$sbc->men)) .'%</td>\n <td style=\"text-align:right;\">'. number_format($sbc->women*100/($sbc->women+$sbc->men)) .'%</td>\n </tr>\n ';\n }\n $htmlResumenTotal = $htmlResumenTotal.'\n <tr>\n <td class=\"color-blue\" style=\"font-size:16px;\">Total</td>\n <td class=\"color-blue\" style=\"text-align:right; font-weight:bold; font-size:16px;\">'. number_format($total_stds_cohort_men) .'</td>\n <td class=\"color-blue\" style=\"text-align:right; font-weight:bold; font-size:16px;\">'. number_format($total_stds_cohort_woman) .'</td>\n <td class=\"color-blue\" style=\"text-align:right; font-weight:bold; font-size:16px;\">'. number_format($total_stds_cohort) .'</td>\n <td class=\"color-blue\" style=\"font-size:16px;\"></td>\n <td class=\"color-blue\" style=\"font-size:16px;\"></td>\n </tr>'.$this->str_students(2,\"\");\n }\n if ($stds_by_depar_cohort!=null) {\n # code...\n $htmlResumenTotal = $htmlResumenTotal.$this->str_students(3,'Departamento');\n foreach ($stds_by_depar_cohort as $sbcpd) {\n $htmlResumenTotal=$htmlResumenTotal.'\n <tr>\n <td>'. $sbcpd->dp .'</td>\n <td style=\"text-align:right;\">'. number_format($sbcpd->mendp) .'</td>\n <td style=\"text-align:right;\">'. number_format($sbcpd->womendp) .'</td>\n <td style=\"text-align:right;\">'. number_format($sbcpd->mendp+$sbcpd->womendp) .'</td>\n <td style=\"text-align:right;\">'. number_format($sbcpd->mendp*100/($sbcpd->mendp+$sbcpd->womendp)) .'%</td>\n <td style=\"text-align:right;\">'. number_format($sbcpd->womendp*100/($sbcpd->mendp+$sbcpd->womendp)) .'%</td>\n </tr>\n ';\n }\n $htmlResumenTotal = $htmlResumenTotal.'\n <tr>\n <td class=\"color-blue\" style=\"font-size:16px;\">Total</td>\n <td class=\"color-blue\" style=\"text-align:right; font-weight:bold; font-size:16px;\">'. number_format($total_stds_cohort_men) .'</td>\n <td class=\"color-blue\" style=\"text-align:right; font-weight:bold; font-size:16px;\">'. number_format($total_stds_cohort_woman) .'</td>\n <td class=\"color-blue\" style=\"text-align:right; font-weight:bold; font-size:16px;\">'. number_format($total_stds_cohort) .'</td>\n <td class=\"color-blue\" style=\"font-size:16px;\"></td>\n <td class=\"color-blue\" style=\"font-size:16px;\"></td>\n </tr>'.$this->str_students(2,\"\");\n } else {\n # code...\n $htmlResumenTotal =\"<h3>No se encuentran datos</h3>\";\n }\n \n } else if ($supervisors!=0 && $departament ==0) {\n # code...\n $name_supervisor = $this->getNameSupervisor($supervisors);\n $total_stds_supervisor = Student::join('cohortes', 'students.cohorte','=','cohortes.id')\n ->join('headquarters','students.headquarter','=','headquarters.id_headquarters')\n ->join('teams','headquarters.team', '=', 'teams.id_team')\n ->join('supervisors','teams.supervisor', '=', 'supervisors.id_supervisors')\n ->select(DB::raw('COUNT(case when students.gender = 1 then 1 end) as mendp'),DB::raw('COUNT(case when students.gender = 2 then 1 end) as womendp'))\n ->where('supervisors.id_supervisors',$supervisors)\n ->where('cohortes.name','like','%'.$gcohorts.'%')\n ->get();\n if (number_format($total_stds_supervisor[0]->mendp+$total_stds_supervisor[0]->womendp)) {\n # code...\n $tablesresult = '<td class=\"color-indico\">'. number_format($total_stds_supervisor[0]->mendp+$total_stds_supervisor[0]->womendp) .'</td>\n <td class=\"color-blue\">'. number_format($total_stds_supervisor[0]->mendp) .' ('. number_format($total_stds_supervisor[0]->mendp * 100 / ($total_stds_supervisor[0]->mendp+$total_stds_supervisor[0]->womendp)) .'%)</td>\n <td class=\"color-orange\">'. number_format($total_stds_supervisor[0]->womendp) .'('. number_format($total_stds_supervisor[0]->womendp * 100 / ($total_stds_supervisor[0]->mendp+$total_stds_supervisor[0]->womendp)) .'%)</td>';\n } else {\n # code...\n $tablesresult = '<td class=\"color-indico\">'. number_format($total_stds_supervisor[0]->mendp+$total_stds_supervisor[0]->womendp) .'</td>\n <td class=\"color-blue\">'. number_format($total_stds_supervisor[0]->mendp) .' (%)</td>\n <td class=\"color-orange\">'. number_format($total_stds_supervisor[0]->womendp) .'(%)</td>';\n }\n $htmlResumenTotal = $this->str_students(1,'supervisor: '.$name_supervisor->name).' <tr class=\"numbers\">'.$tablesresult.'</tr>\n '.$this->str_students(2,\"\");\n $stds_by_super_departament = Student::join('cohortes', 'students.cohorte','=','cohortes.id')\n ->join('headquarters','students.headquarter','=','headquarters.id_headquarters')\n ->join('teams','headquarters.team', '=', 'teams.id_team')\n ->join('supervisors','teams.supervisor', '=', 'supervisors.id_supervisors')\n ->join('municipality','teams.municipality', '=', 'municipality.id_municipality')\n ->join('departament','municipality.id_departament', '=', 'departament.id_departament')\n ->select('departament.departament as dp', DB::raw('COUNT(case when students.gender = 1 then 1 end) as men'),DB::raw('COUNT(case when students.gender = 2 then 1 end) as women'))\n ->where('supervisors.id_supervisors',$supervisors)\n ->where('cohortes.name','like','%'.$gcohorts.'%')\n ->orderBy('departament.id_departament','desc')\n ->groupBy('departament.id_departament')\n ->get();\n if ($stds_by_super_departament!=null) {\n # code...\n $htmlResumenTotal = $htmlResumenTotal.$this->str_students(3,'Departamento');\n foreach ($stds_by_super_departament as $stdp) {\n # code...\n $htmlResumenTotal=$htmlResumenTotal.'\n <tr>\n <td>'. $stdp->dp .'</td>\n <td style=\"text-align:right;\">'. number_format($stdp->men) .'</td>\n <td style=\"text-align:right;\">'. number_format($stdp->women) .'</td>\n <td style=\"text-align:right;\">'. number_format($stdp->women+$stdp->men) .'</td>\n <td style=\"text-align:right;\">'. number_format($stdp->men*100/($stdp->women+$stdp->men)) .'%</td>\n <td style=\"text-align:right;\">'. number_format($stdp->women*100/($stdp->women+$stdp->men)) .'%</td>\n </tr>\n ';\n }\n $htmlResumenTotal = $htmlResumenTotal.'\n <tr>\n <td class=\"color-blue\" style=\"font-size:16px;\">Total</td>\n <td class=\"color-blue\" style=\"text-align:right; font-weight:bold; font-size:16px;\">'. number_format($total_stds_supervisor[0]->mendp) .'</td>\n <td class=\"color-blue\" style=\"text-align:right; font-weight:bold; font-size:16px;\">'. number_format($total_stds_supervisor[0]->womendp) .'</td>\n <td class=\"color-blue\" style=\"text-align:right; font-weight:bold; font-size:16px;\">'. number_format($total_stds_supervisor[0]->mendp+$total_stds_supervisor[0]->womendp) .'</td>\n <td class=\"color-blue\" style=\"font-size:16px;\"></td>\n <td class=\"color-blue\" style=\"font-size:16px;\"></td>\n </tr>'.$this->str_students(2,\"\");\n } else {\n # code...\n }\n } else if ($supervisors==0 && $departament !=0) {\n # code...\n $name_departament = $this->getNameDepartament($departament);\n $total_stds_departament = Student::join('cohortes', 'students.cohorte','=','cohortes.id')\n ->join('headquarters','students.headquarter','=','headquarters.id_headquarters')\n ->join('teams','headquarters.team', '=', 'teams.id_team')\n ->join('municipality','teams.municipality', '=', 'municipality.id_municipality')\n ->join('departament','municipality.id_departament', '=', 'departament.id_departament')\n ->select(DB::raw('COUNT(case when students.gender = 1 then 1 end) as mendp'),DB::raw('COUNT(case when students.gender = 2 then 1 end) as womendp'))\n ->where('departament.id_departament', $departament)\n ->where('cohortes.name','like','%'.$gcohorts.'%')\n ->get(); \n if (number_format($total_stds_departament[0]->mendp+$total_stds_departament[0]->womendp)) {\n # code...\n $tablesresult = '<td class=\"color-indico\">'. number_format($total_stds_departament[0]->mendp+$total_stds_departament[0]->womendp) .'</td>\n <td class=\"color-blue\">'. number_format($total_stds_departament[0]->mendp) .' ('. number_format($total_stds_departament[0]->mendp * 100 / ($total_stds_departament[0]->mendp+$total_stds_departament[0]->womendp)) .'%)</td>\n <td class=\"color-orange\">'. number_format($total_stds_departament[0]->womendp) .'('. number_format($total_stds_departament[0]->womendp * 100 / ($total_stds_departament[0]->mendp+$total_stds_departament[0]->womendp)) .'%)</td>';\n } else {\n # code...\n $tablesresult = '<td class=\"color-indico\">'. number_format($total_stds_departament[0]->mendp+$total_stds_departament[0]->womendp) .'</td>\n <td class=\"color-blue\">'. number_format($total_stds_departament[0]->mendp) .' (%)</td>\n <td class=\"color-orange\">'. number_format($total_stds_departament[0]->womendp) .'(%)</td>';\n }\n $htmlResumenTotal = $this->str_students(1,'departamento: '.$name_departament->departament).'<tr class=\"numbers\">'.$tablesresult.'</tr>\n '.$this->str_students(2,\"\");\n $stds_by_super_departament = Student::join('cohortes', 'students.cohorte','=','cohortes.id')\n ->join('headquarters','students.headquarter','=','headquarters.id_headquarters')\n ->join('teams','headquarters.team', '=', 'teams.id_team')\n ->join('supervisors','teams.supervisor', '=', 'supervisors.id_supervisors')\n ->join('municipality','teams.municipality', '=', 'municipality.id_municipality')\n ->join('departament','municipality.id_departament', '=', 'departament.id_departament')\n ->select('supervisors.name as namesuper', DB::raw('COUNT(case when students.gender = 1 then 1 end) as men'),DB::raw('COUNT(case when students.gender = 2 then 1 end) as women'))\n ->where('departament.id_departament', $departament)\n ->where('cohortes.name','like','%'.$gcohorts.'%')\n ->orderBy('supervisors.id_supervisors','desc')\n ->groupBy('supervisors.id_supervisors')\n ->get();\n if ($stds_by_super_departament!=null) {\n # code...\n $htmlResumenTotal = $htmlResumenTotal.$this->str_students(3,'Supervisor');\n foreach ($stds_by_super_departament as $stdp) {\n # code...\n $htmlResumenTotal=$htmlResumenTotal.'\n <tr>\n <td>'. $stdp->namesuper .'</td>\n <td style=\"text-align:right;\">'. number_format($stdp->men) .'</td>\n <td style=\"text-align:right;\">'. number_format($stdp->women) .'</td>\n <td style=\"text-align:right;\">'. number_format($stdp->women+$stdp->men) .'</td>\n <td style=\"text-align:right;\">'. number_format($stdp->men*100/($stdp->women+$stdp->men)) .'%</td>\n <td style=\"text-align:right;\">'. number_format($stdp->women*100/($stdp->women+$stdp->men)) .'%</td>\n </tr>\n ';\n }\n $htmlResumenTotal = $htmlResumenTotal.'\n <tr>\n <td class=\"color-blue\" style=\"font-size:16px;\">Total</td>\n <td class=\"color-blue\" style=\"text-align:right; font-weight:bold; font-size:16px;\">'. number_format($total_stds_departament[0]->mendp) .'</td>\n <td class=\"color-blue\" style=\"text-align:right; font-weight:bold; font-size:16px;\">'. number_format($total_stds_departament[0]->womendp) .'</td>\n <td class=\"color-blue\" style=\"text-align:right; font-weight:bold; font-size:16px;\">'. number_format($total_stds_departament[0]->mendp+$total_stds_departament[0]->womendp) .'</td>\n <td class=\"color-blue\" style=\"font-size:16px;\"></td>\n <td class=\"color-blue\" style=\"font-size:16px;\"></td>\n </tr>'.$this->str_students(2,\"\");\n } else {\n # code...\n }\n } else if ($supervisors!=0 && $departament !=0) {\n # code...\n $name_supervisor = $this->getNameSupervisor($supervisors);\n $name_departament = $this->getNameDepartament($departament);\n $total_stds_super_departament = Student::join('cohortes', 'students.cohorte','=','cohortes.id')\n ->join('headquarters','students.headquarter','=','headquarters.id_headquarters')\n ->join('teams','headquarters.team', '=', 'teams.id_team')\n ->join('supervisors','teams.supervisor', '=', 'supervisors.id_supervisors')\n ->join('municipality','teams.municipality', '=', 'municipality.id_municipality')\n ->join('departament','municipality.id_departament', '=', 'departament.id_departament')\n ->select(DB::raw('COUNT(case when students.gender = 1 then 1 end) as mendp'),DB::raw('COUNT(case when students.gender = 2 then 1 end) as womendp'))\n ->where('departament.id_departament', $departament)\n ->where('supervisors.id_supervisors',$supervisors)\n ->where('cohortes.name','like','%'.$gcohorts.'%')\n ->get();\n if (number_format($total_stds_super_departament[0]->mendp+$total_stds_super_departament[0]->womendp)!=0) {\n # code...\n $tablesresult = '<td class=\"color-indico\">'. number_format($total_stds_super_departament[0]->mendp+$total_stds_super_departament[0]->womendp) .'</td>\n <td class=\"color-blue\">'. number_format($total_stds_super_departament[0]->mendp) .' ('. number_format($total_stds_super_departament[0]->mendp * 100 / ($total_stds_super_departament[0]->mendp+$total_stds_super_departament[0]->womendp)) .'%)</td>\n <td class=\"color-orange\">'. number_format($total_stds_super_departament[0]->womendp) .'('. number_format($total_stds_super_departament[0]->womendp * 100 / ($total_stds_super_departament[0]->mendp+$total_stds_super_departament[0]->womendp)) .'%)</td>';\n } else {\n # code...\n $tablesresult = '<td class=\"color-indico\">'. number_format($total_stds_super_departament[0]->mendp+$total_stds_super_departament[0]->womendp) .'</td>\n <td class=\"color-blue\">'. number_format($total_stds_super_departament[0]->mendp) .' (%)</td>\n <td class=\"color-orange\">'. number_format($total_stds_super_departament[0]->womendp) .'(%)</td>';\n }\n $htmlResumenTotal = $this->str_students(1,'de cohorte: '.$gcohorts.', supervisor: '.$name_supervisor->name.', departamento: '.$name_departament->departament).'<tr class=\"numbers\">'.$tablesresult.' \n </tr>'.$this->str_students(2,\"\");\n } else {\n # code...\n } \n }\n return $htmlResumenTotal;\n }", "public function run()\n {\n LogCategory::create([\n 'name' => 'API',\n 'description' => ''\n ]);\n\n LogCategory::create([\n 'name' => 'Admin',\n 'description' => ''\n ]);\n\n LogCategory::create([\n 'name' => 'Moderátor',\n 'description' => ''\n ]);\n\n LogCategory::create([\n 'name' => 'Felhasználó',\n 'description' => ''\n ]);\n\n LogCategory::create([\n 'name' => 'Riddle',\n 'description' => ''\n ]);\n }", "private static function utenteLoggato(){\n return true;\n }", "function __saveLog() {\n $this->__UserLog->save($this->__UserLog->data,false);\n }", "private function add_to_log($action) {\n if ($action) {\n $event = \\mod_simplecertificate\\event\\course_module_viewed::create(\n array(\n 'objectid' => $this->get_course_module()->instance,\n 'context' => $this->get_context(),\n 'other' => array('certificatecode' => $this->get_issue()->code)));\n $event->add_record_snapshot('course', $this->get_course());\n }\n\n if (!empty($event)) {\n $event->trigger();\n }\n }", "protected function AutoLog(){\r\n \r\n //DEPRECATED for test\r\n \r\n }", "public function accionLog($id_usuario,$fechaAccion){\r\n\t\t$sql = \"INSERT INTO tbl_log_acciones (id_usuario,idLogs,fechaCreacion)VALUES('$id_usuario','41','$fechaAccion')\";\r\n\t\treturn ejecutarConsulta($sql);\r\n\t}", "function logActivity($description, $staffid = null)\n{\n $CI =& get_instance();\n $log = array(\n 'AL_Description' => $description,\n 'AL_Date' => date('Y-m-d H:i:s')\n );\n if (!DEFINED('CRON')) {\n if ($staffid != null && is_numeric($staffid)) {\n $log['AL_StaffID'] = get_staff_full_name($staffid);\n } else {\n if (is_staff_logged_in()) {\n $log['AL_StaffID'] = get_staff_full_name(get_staff_user_id());\n } else {\n $log['AL_StaffID'] = null;\n }\n }\n } else {\n // manually invoked cron\n if (is_staff_logged_in()) {\n $log['AL_StaffID'] = get_staff_full_name(get_staff_user_id());\n } else {\n $log['AL_StaffID'] = '[CRON]';\n }\n }\n\n $CI->db->insert('activity_log', $log);\n}", "public function logPerformance();", "public function logPerformance();", "public function run()\n {\n DB::table('experts')->insert([\n 'id' => '1',\n 'title' => 'Psikolog, Konselor, dan Penasihat Kami',\n 'subtitle' => 'Semua konten dari Soulmeet direkomendasikan oleh orang-orang yang sangat berpengalaman di bidangnya loh!',\n 'st' => '1',\n 'created_at' => date('Y-m-d H:i:s'),\n 'updated_at' => date('Y-m-d H:i:s')\n ]);\n }", "function salvaLog($mensagem) {\n\n $ip = $_SERVER['REMOTE_ADDR']; // Salva o IP do visitante\n\n $hora = date('Y-m-d H:i:s'); // Salva a data e hora atual (formato MySQL)\n\n @$navegador=$_SESSION['navegador'];\n\n @$endereco=$_SESSION['endereco1'];\n\n @$cidade=$_SESSION['cidade'];\n\n @$estado=$_SESSION['estado'];\n\n @$id=@$_SESSION['id'];\n\n @$nome=@$_SESSION['usuario'];\n\n \n\n\n\n \n\n if($_SERVER['SERVER_NAME']==\"localhost\" or $_SERVER['SERVER_NAME']==\"192.168.15.7\"){\n\n$conect= new mysqli('localhost','root','', 'wcarros');\n\n}else{\n\n $conect= new mysqli('mysql524.umbler.com','wcarros','irisMAR100', 'wcarros');\n\n }\n\n\n\n \n\n// Caso algo tenha dado errado, exibe uma mensagem de erro\n\nif (mysqli_connect_errno()) trigger_error(mysqli_connect_error());\n\n\n\n$sql=\"INSERT INTO log (data,ip, mensagem,endereco,id_usuario,nome,maquina) VALUES \n\n( '\".$hora.\"','\".$ip.\"','\". $mensagem.\"','\".$endereco.\"','\".$id.\"','\".$nome.\"','\".$navegador.\"')\" ;\n\n$sql=$conect->query($sql); \n\nif ($sql) {\n\nreturn true;\n\n} else {\n\nreturn false;\n\n}\n\n}", "function selectionLogEntry ($site)\n\t{\n\t}", "public function log()\n {\n if(Auth::user()->type != 'مدیر'){ return redirect()->back(); }\n /* Security Admin Panel */ \n $users = UserLog::orderby('pk_userlog','desc')->get();\n $instance_Model_user =new UserLog();\n $names = $instance_Model_user->GetListAllNameColumns_ForTable();\n //dd($users);\n return view('admin.user.userlog',compact('users','names'));\n }", "function insert_annonce() {\n\n\tspip_log(\"[Vu!] -- Création d'une nouvelle annonce dans la base\", \"vu!\");\n\treturn sql_insertq(\"spip_vu_annonces\", array('date' => date('Y-m-d')));\n\n}", "public function getLogTable() {}", "public function run()\n {\n DB::insert(\n \"INSERT INTO `logs` (`event`, `occurred_at`) VALUES ('event1', '2020-01-01 00:00:00')\"\n );\n }", "public function stampaDipendenti() {\n echo '<p> Nome: ' . $this->nome . '</p>';\n echo '<p> Cognome: ' . $this->cognome . '</p>';\n echo '<p> Software utilizzati: ' . $this->software . '</p>';\n }", "public function get_query_log()\n {\n }", "public function cadastrar() \n{\n //DEFINIR A DATA\n $this->data = date(\"Y:m:d H:i:s\");\n \n //INSERIR A VAGA NO BANCO\n\n //ATRIBUIR O ID NA VAGA DA INSTANCIA\n\n //RETORNAR SUCESSO\n\n}" ]
[ "0.5810944", "0.55954784", "0.5553192", "0.54821616", "0.5467023", "0.5440494", "0.54276496", "0.5382226", "0.536505", "0.53375494", "0.5303129", "0.52488416", "0.5227561", "0.5227184", "0.52189946", "0.5202924", "0.5197458", "0.51809907", "0.517949", "0.5163218", "0.514715", "0.51440096", "0.51295483", "0.51196295", "0.51174754", "0.5116773", "0.5108593", "0.51034063", "0.51010376", "0.50990045", "0.50981444", "0.50949234", "0.5088062", "0.50860476", "0.5063183", "0.5053279", "0.5051472", "0.5050627", "0.50476676", "0.50277936", "0.50220376", "0.50173354", "0.50166166", "0.5016049", "0.5013722", "0.500404", "0.5002822", "0.4999946", "0.49997672", "0.49980405", "0.4997827", "0.4995567", "0.49930614", "0.49890974", "0.49885842", "0.4988178", "0.4986574", "0.4985106", "0.49818972", "0.49808142", "0.49711606", "0.49632478", "0.4961556", "0.49540782", "0.49527246", "0.49437556", "0.4943003", "0.4942489", "0.49369887", "0.49351165", "0.49274787", "0.49273762", "0.49257106", "0.492391", "0.49214768", "0.49170768", "0.4917065", "0.49078667", "0.49074394", "0.4906742", "0.49061307", "0.49000293", "0.48854706", "0.48852882", "0.48851058", "0.48835745", "0.4882901", "0.4879512", "0.48756415", "0.48729673", "0.48729673", "0.48724228", "0.487206", "0.48712084", "0.48709095", "0.48629558", "0.48611888", "0.485923", "0.48566145", "0.48558998", "0.48531854" ]
0.0
-1
display all messages associated with the current user
public function getThreads() { $user = request()->user(); $messages = $user->threadsWithMessagesWithUsers($user->id)->get(); /** * Returns unread messages given the userId. */ //$messages = Message::unreadForUser($user->id)->get(); return ThreadsResource::collection($messages); //return response()->json($messages); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function showAllMessagesOfCurrentUser()\n {\n $token = substr($this->request->getHeaderLine('Authorization'),7);\n $pageNumber = (int)$this->request->getHeaderLine('Page-Number');\n $pageSize = (int)$this->request->getHeaderLine('Page-Size');\n \n if(\n $token == null or \n $pageNumber == null or \n $pageNumber < 1 or\n $pageSize == null or\n $pageSize < 1\n )\n {\n $this->logger->warning(\n \"Missing or bad data!\",\n [\n \"token\" => $token,\n \"pageNumber\" => $pageNumber,\n \"pageSize\" => $pageSize\n ]\n );\n return $this->badRequest(\"Missing or bad data!\");\n }\n\n $userHelper = new HelperUser();\n $currentUser = $userHelper -> authenticateWithToken($token);\n\n if ($currentUser == null)\n {\n $this->logger->warning(\n \"Unable to authorize user!\",\n [\n \"token\" => $token\n ]\n );\n return $this->unauthorized();\n }\n\n $messageRepository = new RepositoryMessage();\n $messages = $messageRepository->fetchMessagesOfUser(\n $currentUser,\n $pageNumber,\n $pageSize\n );\n\n return $this->responseFactory->generateResponse(\n $this->response,\n 200,\n $this->jsonFactory->generateMessagesJson($messages),\n true\n );\n }", "public function index()\n {\n $table = TableRegistry::get('users');\n $user= $this->Auth->user('id');\n\n $messages = $this->paginate(\n $this->Messages->find()\n ->where(['to_user' => $user])\n ->andWhere(['send' => 0])\n ->order(['created' => 'DESC']));\n\n $this->set(compact('table','user','messages'));\n $this->set('_serialize', ['messages']);\n }", "public function my_messages() {\n\t\t\t$this->page_data['page_name'] = \"my_messages\";\n\t\t\t$this->page_data['page_title'] = 'My Messages';\n\t\t\t$this->page_data['page_view'] = 'user/my_messages';\n\n\t\t\t\n\t\t\t$this->page_data['user_message_list'] = $this->user_model->get_user_messages(\n\t\t\t 'OBJECT',\n\t\t\t array('id', 'user_id', 'admin_id', 'message', 'created_at')\n\t\t );\n\t\t\t\n\t\t $message_user_list = array();\n\t\t \n\t\t for($i = 0; $i < count($this->page_data['user_message_list']); $i++){\n\t\t $this->page_data['user_message_list'][$i]->user_id = json_decode($this->page_data['user_message_list'][$i]->user_id);\n\t\t array_push($message_user_list, $this->page_data['user_message_list'][$i]->user_id);\t\n\t\t\t\t\n\t\t }\n\n\t\t \n\t\t \n\n\t\t\t$this->load->view('index', $this->page_data);\n\n\t\t}", "public function MyMessages(){\n\n\t\t$headerData = null;\n\t\t$sidebarData = null;\n\t\t$page = 'admin/myMessage';\n\t\t$mainData = array(\n\t\t\t'pagetitle'=> 'Messages',\n\t\t\t'londontec' => $this->setting_model->Get_All('londontec_users'),\n\t\t\t'student' => $this->setting_model->Get_All('students'),\n\t\t\t'message' => $this->setting_model->Get_All_DESCENDING('message','message_id'),\n\t\t);\n\t\t$footerData = null;\n\n\t\t$this->template($headerData, $sidebarData, $page, $mainData, $footerData);\n\t}", "public function messages(){\n $count = Auth::user()->newMessagesCount();\n $currentUserId = Auth::user()->id;\n // All threads that user is participating in\n $threads = Thread::forUser($currentUserId)->latest('updated_at')->get();\n\n return view('dashboard.messages', [\n 'heading' => 'Inbox',\n 'threads' => $threads,\n 'currentUserId' => $currentUserId,\n 'count' => $count\n ]);\n }", "public function getAll()\n\t{\n\t\t$msgs = Message::findByUser($this->getUser());\n\t\t$this->updateQueryTime();\n\t\treturn $msgs;\n\t}", "public function actionIndex()\n {\n $userid = Yii::$app->user->id;\n $messages = Message::find()->where(['to_user_id' => $userid])->orderBy(['id' => SORT_DESC])->all();\n $usersinfo = Message::find()->where(['to_user_id' => $userid])->select(['from_user_id'])->all();\n $names = Yii::$app->db->createCommand('\n SELECT DISTINCT from_user_id FROM message WHERE to_user_id='.$userid.'\n UNION ALL\n SELECT DISTINCT to_user_id FROM message WHERE from_user_id='.$userid.'\n')->queryAll();\n $dataProvider = new ActiveDataProvider([\n 'query' => Message::find(),\n ]);\n\n return $this->render('index', [\n 'dataProvider' => $dataProvider,\n 'messages' => $messages,\n 'usersinfo' => $usersinfo,\n 'names' => $names,\n ]);\n }", "public function actionInbox(){\n $user_id = \\Yii::$app->user->getId();\n $user = Users::find()->where(['user_id'=>$user_id])->one();\n //$messages = Message::find()->where(['to_user'=>$user_id])->orderBy('datetimestamp DESC')->all();\n $sql = \"SELECT * FROM (SELECT * FROM message WHERE to_user = $user_id AND (status != 0 AND status != $user_id) ORDER BY datetimestamp DESC) msg GROUP BY msg.thread_id ORDER BY msg.datetimestamp DESC\";\n $messages = Message::findbySql($sql)->all();\n $sql = \"SELECT * FROM (SELECT * FROM message WHERE from_user = $user_id AND (status != 0 AND status != $user_id) ORDER BY datetimestamp DESC) msg GROUP BY msg.thread_id ORDER BY msg.datetimestamp DESC\";\n $sent = Message::findbySql($sql)->all();\n return $this->render('messages', ['user'=>$user, 'messages'=>$messages, 'sent'=>$sent]);\n }", "public function list()\n {\n $jabatan = Auth::user()->jabatan;\n $user_id = Auth::user()->id;\n $messages = Message::where('user_id', $user_id)->latest()->paginate(10);\n $skipped = ($messages->currentPage() * $messages->perPage()) - $messages->perPage();\n if ($jabatan == 'admin') {\n return view('layouts.admin.message.listMessage', compact('messages', 'skipped'));\n } else {\n return view('layouts.user.message', compact('messages', 'skipped'));\n }\n }", "public function index()\n {\n return view('materialadmin::message.index')->with('messages', Message::where('to_user_id', \\Auth::id())->orderBy('created_at', 'desc')->paginate(15));\n }", "public function fetchAllMessages()\n {\n return Chat::with('user')->get();\n }", "public function adminMessageList()\n {\n\n $users=[];\n $em = $this->getDoctrine()->getManager();\n $messageRepository = $em->getRepository(Message::class);\n $userRepository = $em->getRepository(User::class);\n\n $Ids = $messageRepository->findByDistinct();\n foreach ($Ids as $id)\n {\n $users[] = $userRepository->findOneBy(array('id'=>$id));\n }\n return $this->render(\"admin/message/list.html.twig\",\n array(\n 'users' => $users,\n ));\n }", "public function index()\n {\n $messages = Message::where('receiver_id','=',Auth::user()->id)->paginate(10);\n\n return view('messages.index')->with('messages', $messages);\n }", "public function showMessages()\n {\n $messages = $this->getMessages();\n foreach ($messages as $message) {\n echo $message . \"\\n\";\n }\n }", "public function index()\n {\n\n $messages = Message::select('from_user_id')->where('to_user_id', auth()->id())->groupBy('from_user_id')->get();\n $this->views['messages'] = $messages;\n\n return view('messages.index', $this->views);\n }", "public static function GetMessages() {\n $messages = [];\n $users_messages_p = DB::table('usermessages')\n ->select('*')\n ->orderBy('created_at', 'desc')->paginate(15);\n foreach ($users_messages_p as $new_users_messages) {\n $messages[] = (array) $new_users_messages;\n }\n self::$data['messages'] = $messages;\n self::$data['messages_p'] = $users_messages_p;\n self::$data['title'] .= 'CMS';\n self::$data['page_name'] = 'Ski Expert | Messages';\n return view('cms.messages', self::$data);\n }", "public function messages_for_user_get() {\n\t\t$uid = $this->input->get('uid');\n\t\t$skip = $this->input->get('skip');\n\t\t$limit = $this->input->get('limit');\n\n\t\t$messages = $this->Messages_model->getMessagesByFromUserID($uid, $skip, $limit);\n\n\n\t\tforeach($messages as $key=>$value) {\n\t\t\t$id = $messages[$key]['_id']->{'$id'};\n\t\t\t$messages[$key]['_id'] = $id;\n\t\t}\n\t\t\n\t\t$this->response($messages);\n\t}", "public function index()\n {\n //\n $nowpage = 'message';\n $m_users = $this->message->getMessageUsers();\n\n return view('message/index',compact('nowpage','m_users'));\n }", "public function retrieveMessagesAction() {\n\n // Retrieve user from session.\n $user = $this->get('user_service')->getUser($this->get('session'));\n\n $messageService = $this->get('message_service');\n\n return new JsonResponse(array(\n 'html' => $this->renderView('@Chat/Chat/partial/_messages.html.twig', array(\n 'messages' => $messageService->getMessagesForUser($user),\n 'isModerator' => $user->getRole() === User::USER_ROLE_MODERATOR\n )),\n 'notifications' => $messageService->getNotificationsFor($user)\n ));\n }", "public function index_get() {\n\t\t$uid = 15;\n\t\t$messages = $this->Messages_model->getMessagesByFromUserID($uid);\n\t\t$this->response($messages);\n\t}", "public function getMessages() {\n // Message is the model...which seems to be a class that you \n // can call the all() method on.\n $messages = Message::all();\n\n // Return (render) the messages view template. It must be an\n // object because you can call the with method on it. Pass the \n // messages retrieved from the database into the messages template.\n return view('messages')->with('messages', $messages);\n }", "public function index()\n {\n $toSmeNiwas = 'SMENiwas';\n $currentUserId = Auth::getUser()->id;\n $currentUserName = Auth::getUser()->username;\n $user = Auth::getUser();\n if ($user->isAnalyst() || $user->isAdmin() || $user->isExecutive() || $user->isManagement()) {\n $inbox = Participant::where('user_id', '=', $currentUserId)->orwhere('user_id', '=', '-1')->where('deleted_at', null)->latest('created_at')->get();\n } else {\n $inbox = Participant::where('user_id', '=', $currentUserId)->where('to_user_delete', '=', null)->where('deleted_at', null)->latest('created_at')->get();\n }\n $count = Participant::forUserWithNewMessages($currentUserId)->count();\n return view('messenger.index', compact('threads', 'inbox', 'currentUserId', 'currentUserName', 'count', 'toSmeNiwas'));\n }", "public function index()\n {\n $uid = Auth::user()->id;\n $messages = Msgs::where('to', $uid);\n return view('msgs.index')->with(\n [\n 'msgs' => $messages,\n ]);\n }", "public function index()\n {\n // Seleziono l'utente corrente\n $user = Auth::user();\n // Chiamo la funzione che mi restituisce i messaggi associati agli appartamenti dell'utente corrente\n $messages = $user->messages()\n ->orderBy('messages.created_at', 'desc')\n ->get();\n //dd($messages);\n\n return view('upr.flats.message', ['messages'=> $messages]);\n }", "public function index()\n {\n $user = auth()->user();\n $messages = Messages::all();\n return view('messages.index', compact(['user', 'messages']));\n// return view('messages.index', compact(['user']));\n }", "function index() {\n\t\t$this->set('messageType', \"all\");\n\n\t\t$allMessages['dis'] = array($this->__loadMessage(\"dis\"),\"Discussion\");\n\t\t$allMessages['inf'] = array($this->__loadMessage(\"inf\"),\"Information\");\n\n\t\t$this->set('allMessages', $allMessages);\n\t}", "public function showReceivedMessages()\n {\n $messageService = $this->get(MessageService::class);\n $messages = $messageService->showReceivedMessages($this->getUser());\n\n return $this->render('message/receivedMessages.html.twig', array(\n 'messages' => $messages,\n ));\n\n }", "public function index()\n {\n $user = Auth::user();\n $userid = $user->id;\n $user->newmsgs = 0;\n $user->save();\n $imsgs = DB::table(\"messages\")->where('to_user_id', $userid)->where('belong_to', true)->join('users', 'users.id', '=', 'messages.from_user_id')->select(\"messages.*\", \"users.name\")->get();\n $omsgs = DB::table(\"messages\")->where('from_user_id', $userid)->where('belong_to', false)->join('users', 'users.id', '=', 'messages.to_user_id')->select(\"messages.*\", \"users.name\")->get();\n $msgs = Message::where('to_user_id', $userid)->where('belong_to', true)->get();\n foreach ($msgs as $msg){\n $msg->read = true;\n $msg->save();\n }\n return view(\"message.index\", ['imsgs' => $imsgs, 'omsgs' => $omsgs]);\n }", "public function index()\n {\n $id = Auth::user()->id; \n $messages = Message::where('to_users_id',$id)\n ->orderBy('messages.created_at', 'desc')\n ->get();\n \n $arr = array();\n \n foreach($messages as $message){\n if(!empty($message->message_reply_has_parent)){\n if(!in_array($message->message_reply_has_parent->parent_id, $arr))\n array_push($arr, $message->message_reply_has_parent->parent_id);\n } else \n array_push($arr, $message->id);\n }\n \n $new_messages = Message::whereIn('id', $arr)\n ->orderBy('messages.updated_at', 'desc')\n ->get();\n \n $data['messages'] = $new_messages;\n \n return view ('message/messages', $data);\n }", "function displayMessages()\n {\n global $db;\n $query = $db->query(\" SELECT * FROM messages\n WHERE messages.s = 'ilyes ouakouak' AND messages.r = 'IlyBot'\n \");\n\n $results = [];\n while ($result = $query->fetch()) {\n $results[] = $result;\n }\n\n return $results;\n }", "public function getAll()\n {\n $messageObject = new Message();\n $messagesObjects = $messageObject->getAllMessages();\n\n foreach ($messagesObjects as $messagesObject )\n {\n echo $messagesObject->getDate();\n echo \" \".$messagesObject->getName().\"<br>\\n\";\n echo $messagesObject->getMessage().\"<br>\\n<br><hr/>\";\n }\n }", "public function chat_messagesAction()\n\t{\n\t\t$chat_id = $this->request->getQuery(\"chat_id\");\n\n\t\t$user = $this->user;\n $user_id = $user['id'];\n $application_id = $user['Application_ID'];\n\n $messages = MessagesRelation::find([\n \"application_id = {$application_id} AND data_cms_id = {$chat_id}\"\n ]);\n\n\t\t$data = [];\n\t\tforeach ($messages as $key => $msg) {\n\t\t\t$data[\"messages\"][$key][\"from_user\"] = $msg->sender->Title;\n\t\t\t$data[\"messages\"][$key][\"from_user_id\"] = $msg->sender->ID;\n\t\t\t$data[\"messages\"][$key][\"last_message\"] = $msg->message->content;\n\t\t\t$data[\"messages\"][$key][\"last_message_time\"] = $msg->message->created_at;\n\t\t}\n\n\t\t$response = [\n \t\"status\" => $this->apiFactory->getStatus(200, \"Success\"),\n \t\"data\" => $data\n ];\n\n return $this->sendJson($response);\n\t}", "public function getMessages()\n {\n //PEMBAHASAN MENGENAI EAGER LOADING BISA DI CARI DI DAENGWEB.ID\n return Message::with('user')->get();\n }", "public function messages_by_user_get() {\n\t\t$uid = $this->input->get('uid');\n\t\t$skip = $this->input->get('skip');\n\t\t$limit = $this->input->get('limit');\n\n\t\t$messages = $this->Messages_model->getMessagesByUserID($uid, $skip, $limit);\n\t\t\n\t\tforeach($messages as $key=>$value) {\n\t\t\t$id = $messages[$key]['_id']->{'$id'};\n\t\t\t$messages[$key]['_id'] = $id;\n\t\t}\n\t\t\n\t\t$this->response($messages);\n\t}", "public function index()\n {\n $user = Auth::user();\n $messages = Message::where(Auth::user()->role.\"_id\", Auth::user()->id)->get();\n foreach ( $messages as $message) {\n \n $message->ad;\n $message->buyer;\n $message->seller;\n \n }\n return $messages;\n\n }", "public function getUserMessagesAll(User $user)\n {\n }", "function inbox() {\n $this->title = 'Inbox';\n $this->pagination = new Pagination(array('items_per_page' => 15, 'total_items' => ORM::factory('message')->count_by_user($this->user->id)));\n $limit = $this->pagination->items_per_page;\n $offset = $this->pagination->sql_offset();\n $this->messages = ORM::factory('message')->find_by_user($this->user->id, $limit, $offset);\n }", "static private function showMessages() {\n if (isset($_SESSION['messages'])) {\n\n $messages = new View(\"global.messages\", array(\"messages\" => $_SESSION['messages']));\n echo $messages->getHtml();\n // du coup on peut supprimer les messages\n unset($_SESSION['messages']);\n }\n }", "public function indexAction()\n {\n $em = $this->getDoctrine()->getManager();\n\n $sendMessages = $em->getRepository('AppBundle:Message')->findBy(\n array('userExpediteur' => $this->getUser()),\n $orderBy = null,\n $limit = null,\n $offset = null\n );;\n\n $receivedMessages = $em->getRepository('AppBundle:Message')->findBy(\n array('userDestinataire' => $this->getUser()),\n $orderBy = null,\n $limit = null,\n $offset = null\n );;\n\n return $this->render('message/index.html.twig', array(\n 'sendMessages' => $sendMessages,\n 'receivedMessages'=> $receivedMessages,\n ));\n }", "public function indexAction()\n {\n $em = $this->getDoctrine()->getManager();\n\t\t$coordinator = $this->getConnectedCoordinator(); \n $userMessages = $em->getRepository('BoAdminBundle:UserMessage')->findBy(array('coordinators'=>$coordinator));\n\t\t$userMessage = new UserMessage();\n $form = $this->createForm('Bo\\AdminBundle\\Form\\UserMessageType', $userMessage);\n\t\t$aRecipient = $this->getRecipents($coordinator);\n\n return $this->render('BoHomeBundle:Message:index.html.twig', array(\n 'userMessages' => $userMessages,\n\t\t\t'coordinator'=>$coordinator,\n\t\t\t'recipients'=>$aRecipient,\n\t\t\t'status'=>$this->getStatusMessage(),\n\t\t\t'form' => $form->createView(),\n\t\t\t'pm'=>\"request\",\n\t\t\t'sm'=>\"message\",\n ));\n }", "public function index($user, $id)\n {\n $user = User::findOrFail($id);\n $messages = Message::get();\n return view('users.messages', compact('user', 'messages'));\n }", "public function actionIndex()\n {\n $dataProvider=Message::findAll([\n 'uid'=>Yii::$app->user->identity->id,\n 'is_read'=>'0',\n 'is_del'=>'0'\n ]);\n return $this->render('index', [\n 'dataProvider' => $dataProvider,\n ]);\n }", "public function index()\n {\n session(['header_text' => 'Messages']);\n \n $message = Message::where('user_id', '!=', Auth::user()->id)->get();\n $notification = 0; \n foreach($message as $notif){\n\n $ids = collect(json_decode($notif->seen, true))->pluck('id');\n if(!$ids->contains(Auth::user()->id)){\n $notification++;\n }\n }\n $notification = 0; \n return view('message.index', compact('notification'));\n }", "function show()\n {\n $messages = $this->Session->read( 'messages' );\n $html = '';\n \n // Add a div for each message using the type as the class\n foreach ($messages as $type => $msgs)\n {\n foreach ($msgs as $msg)\n {\n if (!empty($msg)) {\n $html .= \"<div class='$type'><p>$msg</p></div>\";\n } \n }\n }\n $html .= \"</div>\";\n \n // Clear the messages array from the session\n $this->Session->del( 'messages' );\n \n return $this->output( $html );\n }", "public function index()\n {\n //\n $id = Auth::user()->id;\n $data['message_out'] = db::select('select u.email, m.id,m.subject, m.message, m.created_at, m.updated_at from messages m join users u on m.to_user_id = u.id where m.fr_user_id = '.$id);\n return view('user.messages.outbox.outbox_list',$data);\n }", "function showmessages($userID,$conv_mem_id=null){\n $this->load->model('NotificationModel');\n \n $data[\"notificationCount\"]=$this->NotificationModel->countNotification($userID);\n $data[\"unNotifications\"]=$this->NotificationModel->getUnreadNotification($userID);\n $data[\"seenNotifications\"]=$this->NotificationModel->getSeenNotification($userID);\n \n //Setting For Message System\n $this->load->model('MessageModel');\n if(!$conv_mem_id){\n $temp = $this->MessageModel->lastMsgSender($userID);\n foreach ($temp as $t){\n $conv_mem_id = $t->sender;\n }\n }\n $this->MessageModel->seenMessages($conv_mem_id,$userID);\n $data[\"messageCount\"]=$this->MessageModel->countMessages($userID);\n $data[\"unMsgs\"]=$this->MessageModel->getUnreadMessages($userID);\n $data[\"AllMsgs\"]=$this->MessageModel->getAllMessages($userID);\n $data[\"messages\"]=$this->MessageModel->retrieveMessages($userID, $conv_mem_id);\n //End of Message System\n \n //Sending Message\n $to = $this->input->post('to');\n $msg = $this->input->post('msg');\n \n if($msg){\n $this->MessageModel->sendMessage($userID, $to, $msg );\n }\n \n $data[\"userID\"] = $userID;\n $data[\"conv_mem_id\"] = $conv_mem_id;\n \n $this->load->view('MessagesView',$data);\n }", "public function inbox()\n {\n\n $user=Auth::User()->id;\n\n $all_messages=Message::where('receiver_id',$user)->get();\n\n\n return view('messages',['all_messages'=>$all_messages]);\n\n }", "public function index()\n {\n $inbox = DB::table('message')\n ->join('users', 'users.id', '=', 'message.from')\n ->join('ads', 'ads.id', '=', 'message.ad_id')\n ->select(\n 'users.id',\n 'users.is_login',\n 'users.name',\n 'users.image',\n 'users.type',\n 'users.gender',\n 'message.created_at',\n 'message.ad_id',\n 'ads.title'\n )\n ->where( [ 'message.to' => Auth::user()->id ])\n //->orWhere('message.from' , Auth::user()->id )\n ->orderBy('message.id', 'desc')\n ->groupBy('message.ad_id')\n ->get();\n\n\n $user = Auth::user();\n return view('message.index', compact( 'user', 'friends', 'inbox' ));\n }", "public function show($user, $from, $to)\n {\n $temp = '';\n if( $to == auth()->user()->id ) { $temp = $from; $from = $to; $to = $temp; }\n return Message::getAChatMessages(auth()->user()->id, $to);\n }", "public function messagesAction()\n\t{\n\t\t$user = $this->user;\n $user_id = $user['ID'];\n\n $application_id = $user['Application_ID'];\n\n $messages = MessagesRelation::find([\n \"application_id = {$application_id} AND module_id = {$this->MODULE_ID} AND deleted != {$user_id} AND (to_user_id = {$user_id} OR from_user_id = {$user_id}) AND data_cms_id IS NULL\",\n \"group\" => ['parent_id']\n ]);\n\n $data = [];\n foreach ($messages as $key => $msg) {\n \t$data[\"messages\"][$key][\"from_user\"] = $msg->sender->Title;\n \t$data[\"messages\"][$key][\"from_user_id\"] = $msg->sender->ID;\n \t$data[\"messages\"][$key][\"to_user\"] = $msg->receiver->Title;\n \t$data[\"messages\"][$key][\"to_user_id\"] = $msg->receiver->ID;\n \t$data[\"messages\"][$key][\"chat_id\"] = $msg->parent_id;\n \t$data[\"messages\"][$key][\"last_message\"] = $msg->message->content;\n \t$data[\"messages\"][$key][\"last_message_time\"] = $msg->message->created_at;\n }\n\n $final_array = $this->structureMessages($data[\"messages\"]);\n $trans = new ConversationTransformer;\n\n $response = [\n \t\"status\" => $this->apiFactory->getStatus(200, \"Success\", [\"validation\" => [], \"other\" => []]),\n \t\"content\" => [\n \t \"header\" => [\n \t [\n \t \"lable\" => \"#\",\n \t \"name\" => \"id\",\n \t \"id\" => 1\n \t ],\n \t [\n \t \"lable\" => \"عنوان الرسالة\",\n \t \"name\" => \"message_text\",\n \t \"id\" => 2\n \t ],\n \t [\n \t \"lable\" => \"مرسل من\",\n \t \"name\" => \"client\",\n \t \"id\" => 3\n \t ],\n \t [\n \t \"lable\" => \"تاريخ\",\n \t \"name\" => \"date\",\n \t \"id\" => 4\n \t ],\n \t [\n \t \"lable\" => \"اجراءات\",\n \t \"name\" => \"actions\",\n \t \"id\" => null\n \t ]\n \t ],\n \t \"content\" => $trans->transformResultSet($messages),\n \t \"bulk_actions\" => [\n\t\t\t [\n\t\t\t \"title\" => \"Inbox\",\n\t\t\t \"target_action_id\" => \"1\",\n\t\t\t \"target_type\" => \"popup\",\n\t\t\t \"target_content\" => \"block\",\n\t\t\t \"content_id\" => 12,\n\t\t\t \"target_layout_id\" => \"2\",\n\t\t\t \"target_url\" => \"http://www.urltoinbox.com\",\n\t\t\t \"icon\" => \"\"\n\t\t\t ],\n\t\t\t [\n\t\t\t \"title\" => \"Important\",\n\t\t\t \"target_action_id\" => \"1\",\n\t\t\t \"target_type\" => \"ajax\",\n\t\t\t \"target_content\" => \"page\",\n\t\t\t \"content_id\" => 1,\n\t\t\t \"target_layout_id\" => \"2\",\n\t\t\t \"target_url\" => \"http://\",\n\t\t\t \"icon\" => \"\"\n\t\t\t ],\n\t\t\t [\n\t\t\t \"title\" => \"Sent\",\n\t\t\t \"target_action_id\" => \"1\",\n\t\t\t \"target_type\" => \"ajax\",\n\t\t\t \"target_content\" => \"page\",\n\t\t\t \"content_id\" => 1,\n\t\t\t \"target_layout_id\" => \"2\",\n\t\t\t \"target_url\" => \"http://\",\n\t\t\t \"icon\" => \"\"\n\t\t\t ],\n\t\t\t [\n\t\t\t \"title\" => \"Draft\",\n\t\t\t \"target_action_id\" => \"1\",\n\t\t\t \"target_type\" => \"ajax\",\n\t\t\t \"target_content\" => \"page\",\n\t\t\t \"content_id\" => 1,\n\t\t\t \"target_layout_id\" => \"2\",\n\t\t\t \"target_url\" => \"http://\",\n\t\t\t \"icon\" => \"\"\n\t\t\t ],\n\t\t\t [\n\t\t\t \"title\" => \"Trash\",\n\t\t\t \"target_action_id\" => \"1\",\n\t\t\t \"target_type\" => \"ajax\",\n\t\t\t \"target_content\" => \"page\",\n\t\t\t \"content_id\" => 1,\n\t\t\t \"target_layout_id\" => \"2\",\n\t\t\t \"target_url\" => \"http://\",\n\t\t\t \"icon\" => \"\"\n\t\t\t ]\n\t\t\t ]\n \t],\n \t\"summary\" => [\n \t \"filtered_by\" => [],\n \t \"count\" => [\n \t \"displayed_rows\" => count($messages),\n \t \"total_rows\" => count($messages),\n \t ],\n \t \"limit\" => \"\",\n \t \"pagination\" => \"\"\n \t]\n ];\n\n return $this->sendJson($response);\n\t}", "public function index()\n {\n $messages = Message::with('speaker')\n ->select('id', 'user_id', 'title', 'slug', 'passage', 'date', 'filename')\n ->latest('date')\n ->paginate(5);\n\n return view('messages.index', compact('messages'));\n }", "public function actionList()\n {\n $searchModel = new MessageSearch();\n\n $dataProvider = $searchModel->search(Yii::$app->request->queryParams);\n\n return $this->render('list', [\n 'dataProvider' => $dataProvider,\n 'searchModel' => $searchModel,\n ]);\n }", "public function index()\n {\n \t$unreadMessages = Message::where('addressee', Auth::user()->id)->where('status', 0)->get();\n \t$unreadMessages->each(function ($message) {\n \t\t$message->status = 1;\n\n \t\t$message->save();\n \t});\n\n \t//Get all parent messages\n \t$messages = Message::where('addressee', Auth::user()->id)\n \t\t\t\t\t\t\t->where('parent_id', 0)\n \t\t\t\t\t\t\t->where('status', 1)\n ->with(['senders.recruiter.companyContact.companies'])\n \t\t\t\t\t\t\t->orderBy('created_at', 'DESC')\n \t\t\t\t\t\t\t->get();\n\n \treturn view('front.candidate.dashboard.message.index', ['messages' => $messages]);\n }", "public function allMessagesToMeAction(Request $request)\n {\n \t$json = $this->get('json_parser')->parse($request);\n \t$start = $json->get('start',0);\n \t$num = $json->get('num',10);\n \t\n \t$user_id = $this->get('login')->checkLogin($request);\n \tif(!$user_id){\n \t\treturn new Response('',403);\n \t}\n \t$this->get('my_datebase')->connection();\n \t$sql = \"select * from message where uid = $user_id order by id desc limit $start,$num\";\n \t$result = mysql_query($sql);\n \t$json_array = array();\n \twhile($row = mysql_fetch_array($result,MYSQL_ASSOC)){\n \t\t\n \t\t$row['creation_date'] = date('Y-m-d',$row['creation_date']);\n \t\t$json_array[] = $row;\n \t}\n \treturn new JsonResponse($json_array);\n }", "public function messages() {\n\t\treturn $this->master->call('account/messages');\n\t}", "public function index(){\n $users = User::orderBy('created_at','desc')->take(10)->get();\n $contact = Contact::orderBy('created_at','desc')->take(10)->get();\n //get last recieved messages\n return view('admin.pages.index',['users' => $users, 'messages' => $contact]);\n }", "public function readMessages()\n {\n $user_id = Auth::id();\n $properties = Property::where(\"user_id\", $user_id)->get();\n return view(\"admin.properties.index_messages\", compact(\"properties\"));\n }", "public function index()\n {\n $ids = Message::whereFrom(auth()->user()->id)->orWhere('to',auth()->user()->id)->whereNotNull('to')->orderByDesc('created_at')->pluck('from');\n $messages = [];\n $i = 0;\n \n foreach($ids as $key => $value){\n if($i == 0) { $firstId = $value; }\n if(auth()->user()->id == $value){\n // Get Sender Message With No Response\n // Count Variable To Avoid Redundancy\n $count = Message::whereTo($value)->count();\n\n if($count == 1){\n $message = Message::whereFrom(auth()->user()->id)->first();\n array_push($messages, json_decode($message->toJson()));\n }\n }else{\n array_push($messages, Message::getLastChatMessage(auth()->user()->id, $value));\n }\n $i++;\n }\n\n //$onlyFromMessages = Message::whereFrom(auth()->user()->id)->get();\n\n /*foreach ($onlyFromMessages as $message) {\n array_push($messages, json_decode($message->toJson()));\n }*/\n\n $messages = array_unique($messages, SORT_REGULAR);\n $messages = array_filter($messages);\n $messages = array_values($messages);\n\n //dd($messages);\n \n return view('main.messages.index', ['messages' => $messages, 'latestmessage' => Message::getAChatMessages(auth()->user()->id, $firstId)]);\n }", "public function index()\n {\n $messages = Cache::rememberForever('messages.all', function() {\n return Message::get();\n });\n\n\n return view('messages.index', compact('messages'));\n }", "public function index()\n {\n return view('adminDashboard.message.index', ['messages' => Message::paginate(10)]);\n }", "public function index()\n {\n return view('adminDashboard.message.index', ['messages' => Message::paginate(10)]);\n }", "public function outbox()\n {\n\n $user=Auth::User();\n $all_messages=$user->messages()->get();\n\n\n return view('messages',['all_messages'=>$all_messages]);\n\n }", "public function get_messagesAction()\n\t{\n\t\t$parent_id = $this->request->getQuery(\"conversation_id\");\n\n\t\t$user = $this->user;\n $user_id = $user['ID'];\n $application_id = $user['Application_ID'];\n\n $messages = MessagesRelation::find([\n \"application_id = {$application_id} AND module_id = {$this->MODULE_ID} AND parent_id = '{$parent_id}' AND (data_cms_id IS NULL)\"\n ]);\n\n $data = [];\n foreach ($messages as $key => $msg) {\n \t$data[\"messages\"][$key][\"from_user\"] = $msg->sender->Title;\n \t$data[\"messages\"][$key][\"from_user_id\"] = $msg->sender->ID;\n \t$data[\"messages\"][$key][\"to_user\"] = $msg->receiver->Title;\n \t$data[\"messages\"][$key][\"to_user_id\"] = $msg->receiver->ID;\n \t$data[\"messages\"][$key][\"last_message\"] = $msg->message->content;\n \t$data[\"messages\"][$key][\"last_message_time\"] = $msg->message->created_at;\n }\n\n $trans = new MessageViewTransformer;\n $response = [\n \t\"status\" => $this->apiFactory->getStatus(200, \"Success\", [\"validation\" => [], \"other\" => []]),\n \t\"content\" => $trans->transformResultSet($messages),\n \t\"actions\" => [\n \t\t[\n \t\t \"title\" => \"Delete\",\n \t\t \"target_action_id\" => \"1\",\n \t\t \"target_type\" => \"popup\",\n \t\t \"target_content\" => \"block\",\n \t\t \"content_id\" => 14,\n \t\t \"target_layout_id\" => \"2\",\n \t\t \"target_url\" => \"http://\",\n \t\t \"icon\" => \"\"\n \t\t],\n \t\t[\n \t\t \"title\" => \"Edit\",\n \t\t \"target_action_id\" => \"1\",\n \t\t \"target_type\" => \"popup\",\n \t\t \"target_content\" => \"block\",\n \t\t \"content_id\" => 14,\n \t\t \"target_layout_id\" => \"2\",\n \t\t \"target_url\" => \"http://\",\n \t\t \"icon\" => \"\"\n \t\t]\n \t]\n ];\n\n return $this->sendJson($response);\n\t}", "public function index()\n {\n $message =Messages::orderBy('created_at', 'desc')->get();\n return view('administrator.messages.index')->with([\n 'message' => $message,\n ]);\n }", "public function index()\n {\n $user = auth()->user();\n $user->group;\n $chatrooms = $user->chatrooms;\n $messages = [];\n\n foreach ($chatrooms as $chatroom){\n $chatroom['users'] = $chatroom->users()->where('users.id', '!=', $user->id)->get();\n $chatroom->latestMessage;\n }\n\n return view('chatrooms.index', [\n 'user' => $user,\n 'chatrooms' => $chatrooms,\n ]);\n }", "public function showAllMessagesOfCurrentUserFromUser(string $senderUsername)\n {\n $token = substr($this->request->getHeaderLine('Authorization'),7);\n $pageNumber = (int)$this->request->getHeaderLine('Page-Number');\n $pageSize = (int)$this->request->getHeaderLine('Page-Size');\n\n if(\n $token == null or \n $pageNumber == null or \n $pageNumber < 1 or\n $pageSize == null or\n $pageSize < 1\n )\n {\n $this->logger->warning(\n \"Missing or bad data!\",\n [\n \"token\" => $token,\n \"pageNumber\" => $pageNumber,\n \"pageSize\" => $pageSize\n ]\n );\n return $this->badRequest(\"Missing or bad data!\");\n }\n\n $userHelper = new HelperUser();\n $currentUser = $userHelper -> authenticateWithToken($token);\n\n if ($currentUser == null)\n {\n $this->logger->warning(\n \"Unable to authorize user!\",\n [\n \"token\" => $token\n ]\n );\n return $this->unauthorized();\n }\n\n $senderUser = $userHelper -> authenticateWithUsername($senderUsername);\n\n if ($senderUser == null)\n {\n $this->logger->warning(\n \"Unable to authorize user!\",\n [\n \"username\" => $senderUsername\n ]\n );\n return $this->badRequest(\"Given user does not exist!\");\n }\n\n $messageRepository = new RepositoryMessage();\n $messages = $messageRepository->fetchMessagesOfUserFromUser(\n $currentUser,\n $senderUser,\n $pageNumber,\n $pageSize\n );\n\n return $this->responseFactory->generateResponse(\n $this->response,\n 200,\n $this->jsonFactory->generateMessagesJson($messages),\n true\n );\n }", "public function index($uid = null)\n {\n $users = TableRegistry::get('Users');\n $query = $users->find();\n $recipients = [];\n foreach ($query as $user) {\n $recipients[$user->USERID] = $user->USERNAME;\n }\n\n $uid = $this->Auth->user('USERID');\n\t$message= $this->Messages->findAllByRecipientid($uid);\n\t$this->set('messages', $message);\n $this->set('recipient', $recipients);\n\n }", "function getAllMessages(){\n\t\t$query = \"SELECT M.message_id, U1.username AS fromUser, U2.username AS toUser, M.messageTitle, M.messageText\n\t\t\tFROM Messages AS M\n\t\t\tINNER JOIN User AS U1 ON M.fromUserId = U1.user_id\n\t\t\tINNER JOIN User AS U2 ON M.toUserId = U2.user_id\";\n\t\t$result = doQuery($query);\n\t\t\n\t\t// save query results in an array\n\t\t$result_array = array();\n\t\twhile($row = mysqli_fetch_assoc($result))\n\t\t{\n \t\t$result_array[] = $row;\n\t\t}\n\t\t\n\t\treturn $result_array;\n\t}", "public function index(User $user)\n {\n $conversation= auth()->user()->sharedConversation($user);\n $messages=$conversation->messages;\n return compact('conversation','messages');\n }", "public function index()\n {\n return view('message.index', [\n 'message' => [],\n 'messages' => Message::orderBy('created_at', 'desc')->paginate(5),\n ]);\n }", "public function index($id)\n {\n $messages = Message::where([\n ['user_id', Auth::id()],\n ['reciever_id', $id]\n ])\n ->orWhere([\n ['user_id', $id],\n ['reciever_id', Auth::id()] \n ])\n ->with('user')\n ->get();\n\n return request()->ajax() ? $messages : view('chat');\n }", "public function outbox()\n {\n $uid = Auth::user()->id;\n $messages = DB::table('msgs')->where('from', $uid)->paginate(10);\n return view('msgs.outbox')->with(\n [\n 'msgs' => $messages,\n ]);\n }", "public function index()\n {\n $messages = Message::get();\n\n return view('web_messages.admin_message', compact('messages'));\n }", "public function show_messages($conv_id)\n {\n $user_id = Auth::user()->id;\n\n // Messages\n $messages = DB::table('messages')\n ->join('conversations', 'messages.conversation_id', '=', 'conversations.id')\n ->join('users', 'messages.user_id_from', '=', 'users.id')\n ->where('conversations.id', '=', $conv_id)\n ->where(\n DB::raw('(\n CASE WHEN \n messages.user_id_from = ' . $user_id . ' \n THEN \n messages.user_from_deleted = 1 \n ELSE \n messages.user_to_deleted = 1 \n END\n )'))\n ->select('messages.*', 'conversations.*','conversations.participant_1 AS user_from', 'conversations.participant_2 AS user_to', 'users.*')\n ->get();\n\n // Unreaded messages\n $unreaded_messages = self::unreaded_messages($conv_id);\n \n //Loop through unreaded messages, and set it to readed \n foreach($unreaded_messages as $message)\n {\n $message = Message::find($message->id);\n $message->readed = 1;\n $message->save();\n }\n \n return view('messages/messages')->with([\n 'messages' => $messages\n ]);\n }", "public function index()\n {\n $messages = [];\n\n $to = null;\n\n $users = User::all();\n\n $conversations = Conversation::where('from_id', Auth::user()->id)->orWhere('to_id', Auth::user()->id)->orderBy('updated_at', 'desc')->get();\n return view(\"doctor.doctormessages\")->with(\"messages\", $messages)->with(\"chats\", $conversations)->with(\"to\", $to)->with('users', $users);\n }", "public function indexAction()\n {\n $em = $this->getDoctrine()->getManager();\n\n $messages = $em->getRepository('AppBundle:Message')->findAll();\n\n return $this->render('message/index.html.twig', array(\n 'messages' => $messages,\n ));\n }", "public function messagesPanel(){\n \n $messages = Message::paginate(10);\n return view('admin.messagesPanel', [\"messages\" => $messages]);\n }", "public function notify_list(){\n\n\t\tif(!empty($_SESSION[\"notify\"][\"messages\"])){\n\n\n\t\t\techo \"<ul id=\\\"notify-messages\\\">\";\n\t\t\tforeach ($_SESSION[\"notify\"][\"messages\"] as $message) {\n\t\t\t\techo \"<li data-type=\\\"\".$message[\"type\"].\"\\\">\" . $message[\"message\"] . \"</li>\";\n\t\t\t}\n\t\t\techo \"</ul>\";\n\t\t}\n\n\t\t//limpar o queue de notifications\n\t\tself::notify_empty();\n\n\t}", "public function index()\n {\n $messages = Sms::orderBy('id', 'desc')->paginate();\n $count = Sms::get();\n return view('admin.contato.messages.index')->with(['messages' => $messages, 'count' => $count]);\n }", "public function messages();", "public function messages();", "public function messages();", "public function index() {\n\t\t$to_user_id = Input::get('to_user_id');\n\t\t$fb_id = Input::get('fb_id');\n\t\t$type = Input::get('message_type');\n\n\t\t// test the DB-Connection\n\t\ttry {\n\t $pdo = DB::connection('mysql')->getPdo();\n\t }\n\t catch(PDOException $exception) {\n\t return Response::make('Database error! ' . $exception->getCode() . ' - ' . $exception->getMessage());\n\t }\n\n\t\t$messages = new Message();\n\n\t\tif(isset($to_user_id)) {\n\t\t\t$messages = $messages->where('to_user_id', $to_user_id);\n\t }\n\n\t if(isset($fb_id)) {\n\t\t\t$messages = $messages->where('fb_id', $fb_id);\n\t }\n\n\t\tif(isset($type)) {\n\t\t\t$messages = $messages->where('message_type', $type);\n\t }\n\n\n\t\t$messages = $messages->get();\n\n\t return '{ \"messages\": '.$messages.' }';\n\t}", "public function index()\n {\n // $messages = Message::all();\n $messages = Message::get();\n return view('messages.index', compact('messages') );\n }", "public function index()\n {\n $messages = Message::orderBy('id','desc')->get();\n \n return view('admin.messages.index',compact('messages'));\n }", "function print_messages() {\n global $messages;\n foreach ($messages as $message) {\n echo \"<p class='message'><strong>\".htmlspecialchars($message).\"</strong></p>\\n\";\n }\n}", "public function index()\n\t{\n\t\t$messages = Message::all();\n\n\t\treturn View::make('messages.index', compact('messages'));\n\t}", "public function index()\n {\n $message = Message::all()->sortByDesc(\"id\");\n return view('admin.message.index', compact('message'));\n }", "public function index()\n {\n $message = Message::find('1');\n return view('Dashboard.messages', compact('message'));\n }", "public function getMessages();", "public function getMessages();", "public function getMessages();", "public function getMessages();", "public function getMessages();", "public function getMessages();", "public function getMessages();", "function ppmess_get_all_communications($logged_user){\n\t\n\tglobal $wpdb;\t \n\t\n\t$show_status = '_' . $logged_user; \n\t\n\t$query = \"SELECT * FROM {$wpdb->prefix}private_messages WHERE (sender_id = $logged_user OR receiver_id = $logged_user)\n\t\t\t\tAND message_parent = 0 AND show_status LIKE '%$show_status%' ORDER BY FIELD(sent_to, $logged_user) DESC\";\n\t\n\t$result = $wpdb->get_results( $query, ARRAY_A );\n\t\n\tif($wpdb->num_rows > 0)\n\t\treturn $result;\n}", "public function message_detail($from_id = null){\n $this->Session->write('page','m_d');\n $this->Session->write('from_id',$from_id);\n $this->paginate = array(\n 'Message' => array (\n 'limit' => 20,\n 'conditions' => array(\n 'to_id' => array($this->Session->read('Auth.User.id'),$from_id),\n 'from_id' => array ($from_id, $this->Session->read('Auth.User.id'))\n ),\n 'fields' => '*',\n 'joins' => array (\n array (\n 'type' => 'INNER',\n 'table' => 'users',\n 'alias' => 'User',\n 'conditions' => 'User.id = Message.from_id',\n\n ) \n ),\n 'order' => array('Message.id' => 'desc' )\n ), \n \"User\" => array()\n );\n $messages = $this->paginate('Message');\n $this->set(compact('messages'));\n }", "public function getMessages ()\n\t{\n\t\t$messages = array();\t//Prevent foreach loop error\n\t\t$Statement = $this->Database->prepare(\"SELECT messages.*, users.first_name, users.last_name, users.thumbnail FROM messages INNER JOIN users ON messages.sender_id = users.id WHERE reciever = ? ORDER BY id DESC LIMIT 30\");\n\t\t$Statement->execute(array($this->id));\n\t\t$messages = $Statement->fetchAll();\n\t\t\n\t\treturn $messages;\n\t}", "public function display_messagesAction(Request $request){\n\n/*Session initialization ** TO REMOVE WHEN LOG IN MODULE IS INTEGRATED** */\n\t\t\t$session = new Session();\n\t\t\tif (! $session)\n\t\t\treturn $this->render('InsariseBundle:Default:index.html.twig');\n\n\t\t$repository_Msg = $this\n\n ->getDoctrine()\n\n ->getManager()\n\n ->getRepository('InsariseMessagingBundle:Message');\n$login_co = $session->get('login');\n$type_membre = $session->get('type');\nif ($type_membre == 'Candidat'){\n\n\n\t$repository_login_co = $this\n\n\t ->getDoctrine()\n\n\t ->getManager()\n\n\t ->getRepository('InsariseMessagingBundle:Candidat');\n\t \t$membre = $repository_login_co->findOneBy(array('loginCand'=>$login_co));\n\t $id_co = $membre->getIdCand();\n\t}\nelse\n\t{\n\t\t\n\t\t$repository_login_co = $this\n\n\t ->getDoctrine()\n\n\t ->getManager()\n\n\t ->getRepository('InsariseMessagingBundle:Entreprise');\n\t $membre = $repository_login_co->findOneBy(array('loginEnt'=>$login_co));\n\t $id_co = $membre->getIdEnt();\n\n\t}\n\n$listeMsgs_to_View= array();\n $em = $this->getDoctrine()->getEntityManager();\n$query = $em->createQuery(\n 'SELECT m FROM InsariseMessagingBundle:Message m WHERE m.idDestinataireMes = :id'\n )->setParameter('id', $id_co);\n $msgs = $query->getResult();\n $i=0;\n foreach ($msgs as $m ) {\n \t$id_em = $m->getIdEmetteurMes();\n \tif ($type_membre == 'Candidat')\n \t{\n \t\t$repository = $em->getRepository('InsariseMessagingBundle:Entreprise');\n \t\t$user = $repository->findOneBy(array('idEnt'=>$id_em));\n \t\t$listeMsgs_to_View[$i]=array();\n \t\t$listeMsgs_to_View[$i]['nom']=$user->getNomEnt();\n \t\t$listeMsgs_to_View[$i]['msg']=$m;\n \t\t$i++;\n \t}\n \telse\n \t{\n \t\t$repository = $em->getRepository('InsariseMessagingBundle:Candidat');\n \t\t$user = $repository->findOneBy(array('idCand'=>$id_em));\n \t\t$ch = $user->getNomCand().\" \";\n \t\t$ch=$ch.$user->getPrenomCand();\n \t\t$listeMsgs_to_View[$i]=array();\n \t\t$listeMsgs_to_View[$i]['nom']=$ch;\n \t\t$listeMsgs_to_View[$i]['msg']=$m;\n \t\t$i++;\n \t}\n \t}\n\n \n /* }\n$listMessages = $this->getDoctrine()\n ->getRepository('InsariseMessagingBundle:Message')\n ->createQueryBuilder('e')\n ->where('e.idDestinataireMes = :id_co' )\n ->orderBy('e.dateenvoiMes', 'DESC')\n ->setParameter('id_co', $id_co)\n ->select('e')\n ->getQuery()\n ->getResult(\\Doctrine\\ORM\\Query::HYDRATE_ARRAY);\n$listeMsgs_to_View = array();\n\n\nforeach ($listMessages as $message) {\n\n\t$typeEmett = $message['typeEmetteurMes'];\n\tif ($typeEmett == 'Candidat')\n\t {\n\t$repository_etud = $this\n\n ->getDoctrine()\n\n ->getManager()\n\n ->getRepository('InsariseMessagingBundle:Candidat');\n if ($type_membre == 'entreprise'){\n $etud = $repository_etud->find($message['idEmetteurMes']);\n $msg_info = new MsgInfo();\n $msg_info->setTitre($message['titreMes']);\n $msg_info->setContenu($message['contenuMes']);\n $msg_info->setEmetteur($etud->getNomCand() . \" \" . $etud->getPrenomCand());\n $msg_info->setDate_envoi($message['dateenvoiMes']);\n $msg_info->setDate_lec($message['datelectureMes']);\n\n $listeMsgs_to_View[]=$msg_info;\n}\n\t }\n\t else\n\t {\n\n\t \t$repository_ent = $this\n\n ->getDoctrine()\n\n ->getManager()\n\n ->getRepository('InsariseMessagingBundle:Entreprise');\nif ($type_membre == 'Candidat'){\n $ent = $repository_ent->find($message['idEmetteurMes']);\n $msg_info = new MsgInfo();\n $msg_info->setTitre($message['titreMes']);\n $msg_info->setContenu($message['contenuMes']);\n $msg_info->setEmetteur($ent->getNomEnt() . \" \" );\n $msg_info->setDate_envoi($message['dateenvoiMes']);\n $msg_info->setDate_lec($message['datelectureMes']);\n\n\n $listeMsgs_to_View[]=$msg_info;\n\n}\n\t }\n}\n\n*/\nif ($type_membre == 'Candidat')\n{\n return $this->render('InsariseMessagingBundle:Default:messages.html.twig', \n array(\n \"listeMsgs_to_View\" => $listeMsgs_to_View));\n}\nelse\n{\n return $this->render('InsariseMessagingBundle:Default:messages1.html.twig', \n array(\n \"listeMsgs_to_View\" => $listeMsgs_to_View));\n}\n\nreturn $this->render('InsariseMessagingBundle:Default:messages.html.twig', \n array(\n \"listeMsgs_to_View\" => $listeMsgs_to_View));\n}", "public function outbox($uid = null)\n {\n\t$users = TableRegistry::get('Users');\n\t$query = $users->find();\n\t$recipients = [];\n\tforeach ($query as $user) {\n\t $recipients[$user->USERID] = $user->USERNAME;\n\t}\n\n $uid = $this->Auth->user('USERID');\n $message= $this->Messages->findAllBySenderid($uid);\n\t$this->set('messages', $message);\n $this->set('recipient', $recipients);\n }" ]
[ "0.8008253", "0.7676901", "0.75715816", "0.7389144", "0.73580426", "0.7332761", "0.731948", "0.7294463", "0.72401154", "0.72374475", "0.7209193", "0.71368223", "0.7112793", "0.71077985", "0.7088307", "0.70716256", "0.7021737", "0.7010448", "0.699379", "0.6989775", "0.6976915", "0.69578254", "0.69284326", "0.69250363", "0.6922418", "0.69222057", "0.6915162", "0.6904712", "0.6895108", "0.68921727", "0.68806595", "0.6856632", "0.68476653", "0.68398833", "0.6838347", "0.68293226", "0.6824986", "0.6797213", "0.67948943", "0.67898434", "0.67713225", "0.67497885", "0.67477566", "0.6740898", "0.6711279", "0.67019886", "0.6701284", "0.6700396", "0.669459", "0.66475827", "0.6646188", "0.66430205", "0.6633522", "0.6620407", "0.6601827", "0.65955174", "0.6585557", "0.65805197", "0.6576278", "0.6562554", "0.6562554", "0.6553684", "0.65492433", "0.65379107", "0.6528271", "0.65248835", "0.6514399", "0.65120834", "0.64975893", "0.64925855", "0.64904445", "0.6483011", "0.64739805", "0.64665025", "0.6461254", "0.646068", "0.6453832", "0.6445273", "0.6432134", "0.64304113", "0.64304113", "0.64304113", "0.64232785", "0.6421576", "0.6412486", "0.6402251", "0.6401216", "0.6395487", "0.6391407", "0.63840556", "0.63840556", "0.63840556", "0.63840556", "0.63840556", "0.63840556", "0.63840556", "0.63836396", "0.6372518", "0.6367051", "0.6361698", "0.63468874" ]
0.0
-1
Show all of the message threads to the user.
public function index() { // All threads, ignore deleted/archived participants $threads = Thread::getAllLatest()->get(); return response()->json($threads); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function threads()\n\t{\n\n\t\t// get sort type\n\n\n\t\t$query = Thread::where('parent_id', null)->with('user')->with('topic')->limit(20);\n\n\t\t$sort = get_string('sort', 'newest');\n\n\t\t$topic = get_int('topic', false);\n\n\t\tif($topic)\n\t\t\t$query->where('topic_id', $topic);\n\n\t\tThread::setOrder($query, $sort);\n\n\t\t$threads = $query->get();\n\n\t\t$topics = Topic::all();\n\n\t\treturn view('threads.index', compact('threads', 'sort', 'topics'));\n\t\n\t}", "public function messages(){\n $count = Auth::user()->newMessagesCount();\n $currentUserId = Auth::user()->id;\n // All threads that user is participating in\n $threads = Thread::forUser($currentUserId)->latest('updated_at')->get();\n\n return view('dashboard.messages', [\n 'heading' => 'Inbox',\n 'threads' => $threads,\n 'currentUserId' => $currentUserId,\n 'count' => $count\n ]);\n }", "public function index()\n {\n // All threads that user is participating in\n $threads = Thread::forUser(Auth::id())->latest('updated_at')->get();\n foreach ($threads as $key => $thread) {\n $users = User::whereIn('id', $thread->participantsUserIds())->get();\n $senderAvatar = str_replace('storage/owner/', 'img/cache/small-avatar/', Storage::url($users[1]->avatar_name));\n $cafe = Cafe::where('owner_id', Owner::where('user_id', $users[0]->id)->first()->id)->first();\n $threads[$key]->cafeLogo = str_replace('storage/logo/', 'img/cache/small-logo/', Storage::url($cafe->logo_path));\n $threads[$key]->users = $users;\n $threads[$key]->senderAvatar = $senderAvatar;\n }\n return view('messenger.index', compact('threads'));\n }", "public function index()\n {\n $threads = DB::table('thread')->get();\n\n return view ('threads.index') -> with ('threads', $threads );\n }", "public function showMessages()\n {\n $messages = $this->getMessages();\n foreach ($messages as $message) {\n echo $message . \"\\n\";\n }\n }", "public function index()\n {\n $threads = Thread::with('user')->paginate(5);\n return view(\"threads.index\",compact('threads'));\n }", "public function actionIndex()\n {\n $searchModel = new ThreadSearch();\n $dataProvider = $searchModel->search(Yii::$app->request->queryParams);\n\n return $this->render('index', [\n 'searchModel' => $searchModel,\n 'dataProvider' => $dataProvider,\n ]);\n }", "public function index()\n {\n $threads = Thread::all();\n $threads->load('posts', 'author');\n\n return view('threads.index', compact('threads'));\n }", "public function getThreads()\n {\n $user = request()->user();\n\n $messages = $user->threadsWithMessagesWithUsers($user->id)->get();\n\n /**\n * Returns unread messages given the userId.\n */\n //$messages = Message::unreadForUser($user->id)->get();\n\n return ThreadsResource::collection($messages);\n //return response()->json($messages);\n }", "public function index()\n {\n $threads = Thread::forUser(Auth::user()->id)->orderBy('created_at', 'desc')->get();\n $data['statues'] = \"200 Ok\";\n $data['error'] = null;\n foreach ($threads as $thread) {\n $last_message = $thread->messages()->orderBy('created_at', 'desc')->get()[0]->body;\n $participants = $thread->participants()->get();\n\n foreach ($participants as $participant) {\n if (User::find($participant->user_id)->id != $thread->messages()->orderBy('created_at', 'desc')->get()[0]->user_id) {\n $thread['receiver'] = User::find($participant->user_id);\n }\n }\n $thread['last_message'] = $last_message;\n $thread['last_sender'] = User::find($thread->messages()->orderBy('created_at', 'desc')->get()[0]->user_id);\n }\n $data['data']['threads'] = $threads;\n return response()->json($data, 200);\n }", "public function index()\n {\n\n $threads = Thread::forUser(Auth::id())->with([\n 'users' => function ($query) {\n $query->select('avatar', 'name', 'agent_name');\n },\n 'messages' => function ($query) {\n $query->latest()->first();\n },\n ])\n ->groupBy('threads.id')\n ->latest('updated_at')\n ->paginate();\n\n $threads->getCollection()->transform(function ($value) {\n $value->isUnread = $value->isUnread(Auth::id());\n\n return $value;\n });\n\n\n return response()->json($threads);\n }", "public function indexAction()\n {\n $em = $this->getDoctrine()->getManager();\n\n $entities = $em->getRepository('APiszczekDemoBundle:Thread')->findAll();\n\n return $this->render('APiszczekDemoBundle:Thread:index.html.twig', array(\n 'entities' => $entities,\n ));\n }", "public function show($id)\n {\n try {\n $thread = Thread::findOrFail($id);\n } catch (ModelNotFoundException $e) {\n Session::flash('error_message', 'The thread with ID: ' . $id . ' was not found.');\n return redirect()->route('messages');\n }\n\n $users = User::whereIn('id', $thread->participantsUserIds())->get();\n $senderAvatar = str_replace('storage/owner/', 'img/cache/small-avatar/', Storage::url($users[1]->avatar_name));\n $cafe = Cafe::where('owner_id', Owner::where('user_id', $users[0]->id)->first()->id)->first();\n $cafeLogo = str_replace('storage/logo/', 'img/cache/small-logo/', Storage::url($cafe->logo_path));\n $thread->markAsRead(Auth::id());\n $threads = Thread::forUser(Auth::id())->latest('updated_at')->get();\n foreach ($threads as $key => $list) {\n $usersThread = User::whereIn('id', $list->participantsUserIds())->get();\n $threads[$key]->users = $usersThread;\n $threads[$key]->senderAvatar = str_replace('storage/owner/', 'img/cache/small-avatar/', Storage::url($usersThread[1]->avatar_name));\n $cafe = Cafe::where('owner_id', Owner::where('user_id', $users[0]->id)->first()->id)->first();\n $threads[$key]->cafeLogo = str_replace('storage/logo/', 'img/cache/small-logo/', Storage::url($cafe->logo_path));\n }\n return view('messenger.index', compact('thread', 'users', 'cafeLogo', 'senderAvatar', 'threads'));\n }", "public function index()\n {\n if (!is_logged_in()) {\n redirect(url('user/index'));\n }\n\n $thread_count = Thread::getNumRows();\n $pagination = pagination($thread_count);\n $threads = Thread::getAll($pagination['max']);\n $this->set(get_defined_vars());\n }", "public function actionThreadLog(ParameterBag $params)\n {\n $user = $this->assertViewableUser($params->user_id);\n $page = $this->filterPage($params->page) ?: 1;\n $perPage = $this->options()->discussionsPerPage;\n\n /** @var \\XF\\Repository\\Thread $repo */\n\t\t$repo = $this->repository('XF:Thread');\n /** @var \\XF\\Finder\\Thread $finder */\n $finder = $repo->findThreadsWithPostsByUser($user['user_id']);\n $threads = $this->filterThreads($finder, $user['user_id'], $page, $perPage);\n\n $viewParams = [\n 'user' => $user,\n 'threads' => $threads,\n 'page' => $page,\n 'perPage' => $perPage,\n 'total' => $finder->total(),\n 'checked' => $this->filter('threadlog', 'str')\n ];\n\n return $this->view('Shinka\\ThreadLog:View', 'shinka_threadlog_member_threadlog', $viewParams);\n }", "public function index()\n {\n $toSmeNiwas = 'SMENiwas';\n $currentUserId = Auth::getUser()->id;\n $currentUserName = Auth::getUser()->username;\n $user = Auth::getUser();\n if ($user->isAnalyst() || $user->isAdmin() || $user->isExecutive() || $user->isManagement()) {\n $inbox = Participant::where('user_id', '=', $currentUserId)->orwhere('user_id', '=', '-1')->where('deleted_at', null)->latest('created_at')->get();\n } else {\n $inbox = Participant::where('user_id', '=', $currentUserId)->where('to_user_delete', '=', null)->where('deleted_at', null)->latest('created_at')->get();\n }\n $count = Participant::forUserWithNewMessages($currentUserId)->count();\n return view('messenger.index', compact('threads', 'inbox', 'currentUserId', 'currentUserName', 'count', 'toSmeNiwas'));\n }", "function showThreadsObject()\n\t{\n\t\t$this->tpl->setRightContent($this->getRightColumnHTML());\n\t\t$this->getCenterColumnHTML();\n\t}", "public function index()\n {\n $threads = Thread::orderBy('created_at', 'desc')->paginate(5);\n $data = [\n 'threads' => $threads\n ];\n return view('ask-index')->with('data', $data);\n }", "public function actionInbox(){\n $user_id = \\Yii::$app->user->getId();\n $user = Users::find()->where(['user_id'=>$user_id])->one();\n //$messages = Message::find()->where(['to_user'=>$user_id])->orderBy('datetimestamp DESC')->all();\n $sql = \"SELECT * FROM (SELECT * FROM message WHERE to_user = $user_id AND (status != 0 AND status != $user_id) ORDER BY datetimestamp DESC) msg GROUP BY msg.thread_id ORDER BY msg.datetimestamp DESC\";\n $messages = Message::findbySql($sql)->all();\n $sql = \"SELECT * FROM (SELECT * FROM message WHERE from_user = $user_id AND (status != 0 AND status != $user_id) ORDER BY datetimestamp DESC) msg GROUP BY msg.thread_id ORDER BY msg.datetimestamp DESC\";\n $sent = Message::findbySql($sql)->all();\n return $this->render('messages', ['user'=>$user, 'messages'=>$messages, 'sent'=>$sent]);\n }", "function performThreadsActionObject()\n\t{\n\t\tglobal $lng, $ilUser, $ilAccess;\n\n\t\tunset($_SESSION['threads2move']);\n\t\tunset($_SESSION['forums_search_submitted']);\n\t\tunset($_SESSION['frm_topic_paste_expand']);\t\n\n\t\tif (is_array($_POST['thread_ids']))\n\t\t{\n\t\t\tif ($_POST['selected_cmd'] == 'move')\n\t\t\t{\n\t\t\t\tif ($ilAccess->checkAccess('moderate_frm', '', $_GET['ref_id']))\n\t\t\t\t{\n\t\t\t\t\t$_SESSION['threads2move'] = $_POST['thread_ids'];\n\t\t\t\t\t$this->moveThreadsObject();\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if ($_POST['selected_cmd'] == 'enable_notifications' && $this->ilias->getSetting('forum_notification') != 0)\n\t\t\t{\n\t\t\t\tfor ($i = 0; $i < count($_POST['thread_ids']); $i++)\n\t\t\t\t{\n\t\t\t\t\t$tmp_obj = new ilForumTopic($_POST['thread_ids'][$i]);\n\t\t\t\t\t$tmp_obj->enableNotification($ilUser->getId());\n\t\t\t\t\tunset($tmp_obj);\n\t\t\t\t}\n\t\n\t\t\t\t$this->ctrl->redirect($this, 'showThreads');\n\t\t\t}\n\n\t\t\telse if ($_POST['selected_cmd'] == 'disable_notifications' && $this->ilias->getSetting('forum_notification') != 0)\n\t\t\t{\n\n\t\t\t\tfor ($i = 0; $i < count($_POST['thread_ids']); $i++)\n\t\t\t\t{\n\n\t\t\t\t\t$tmp_obj = new ilForumTopic($_POST['thread_ids'][$i]);\n\t\t\t\t\t$tmp_obj->disableNotification($ilUser->getId());\n\t\t\t\t\tunset($tmp_obj);\n\t\t\t\t}\n\t\n\t\t\t\t$this->ctrl->redirect($this, 'showThreads');\n\t\t\t}\n\n\t\t\telse if ($_POST['selected_cmd'] == 'close')\n\t\t\t{\n\t\t\t\t\n\t\t\t\tif ($ilAccess->checkAccess('moderate_frm', '', $_GET['ref_id']))\n\t\t\t\t{\n\n\t\t\t\t\tfor ($i = 0; $i < count($_POST['thread_ids']); $i++)\n\t\t\t\t\t{\n\n\t\t\t\t\t\t$tmp_obj = new ilForumTopic($_POST['thread_ids'][$i]);\n\t\t\t\t\t\t$tmp_obj->close();\n\t\t\t\t\t\tunset($tmp_obj);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\n\t\t\t\t$this->ctrl->redirect($this, 'showThreads');\n\t\t\t}\n\n\t\t\telse if ($_POST['selected_cmd'] == 'reopen')\n\t\t\t{\n\t\t\t\tif ($ilAccess->checkAccess('moderate_frm', '', $_GET['ref_id']))\n\t\t\t\t{\n\n\t\t\t\t\tfor ($i = 0; $i < count($_POST['thread_ids']); $i++)\n\t\t\t\t\t{\n\n\t\t\t\t\t\t$tmp_obj = new ilForumTopic($_POST['thread_ids'][$i]);\n\t\t\t\t\t\t$tmp_obj->reopen();\n\t\t\t\t\t\tunset($tmp_obj);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\n\t\t\t\t$this->ctrl->redirect($this, 'showThreads');\n\t\t\t}\n\n\t\t\telse if ($_POST['selected_cmd'] == 'makesticky')\n\t\t\t{\n\t\t\t\tif ($ilAccess->checkAccess('moderate_frm', '', $_GET['ref_id']))\n\t\t\t\t{\n\n\t\t\t\t\tfor ($i = 0; $i < count($_POST['thread_ids']); $i++)\n\t\t\t\t\t{\n\t\t\t\t\t\t$tmp_obj = new ilForumTopic($_POST['thread_ids'][$i]);\n\t\t\t\t\t\t$tmp_obj->makeSticky();\n\t\t\t\t\t\tunset($tmp_obj);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\n\t\t\t\t$this->ctrl->redirect($this, 'showThreads');\n\t\t\t}\n\n\t\t\telse if ($_POST['selected_cmd'] == 'unmakesticky')\n\t\t\t{\n\t\t\t\tif ($ilAccess->checkAccess('moderate_frm', '', $_GET['ref_id']))\n\t\t\t\t{\n\n\t\t\t\t\tfor ($i = 0; $i < count($_POST['thread_ids']); $i++)\n\t\t\t\t\t{\n\n\t\t\t\t\t\t$tmp_obj = new ilForumTopic($_POST['thread_ids'][$i]);\n\t\t\t\t\t\t$tmp_obj->unmakeSticky();\n\t\t\t\t\t\tunset($tmp_obj);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\n\t\t\t\t$this->ctrl->redirect($this, 'showThreads');\n\t\t\t}\n\n\t\t\telse if($_POST['selected_cmd'] == 'editThread')\n\t\t\t{\n\t\t\t\tif ($ilAccess->checkAccess('moderate_frm', '', $_GET['ref_id']))\n\t\t\t\t{\n\t\t\t\t\t$count = count($_POST['thread_ids']);\n\t\t\t\t\tif($count != 1)\n\t\t\t\t\t{\n\t\t\t\t\t\tilUtil::sendInfo($this->lng->txt('select_at_least_one_thread'), true);\n\t\t\t\t\t\t$this->ctrl->redirect($this, 'showThreads');\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\tforeach($_POST['thread_ids'] as $thread_id);\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\treturn $this->editThreadObject($thread_id);\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->ctrl->redirect($this, 'showThreads');\n\t\t\t}\n\t\t\telse if ($_POST['selected_cmd'] == 'html')\n\t\t\t{\n\t\t\t\t$this->ctrl->setCmd('exportHTML');\n\t\t\t\t$this->ctrl->setCmdClass('ilForumExportGUI');\n\t\t\t\t$this->executeCommand();\n\t\t\t}\n\n\t\t\telse if ($_POST['selected_cmd'] == 'confirmDeleteThreads')\n\t\t\t{\n\t\t\t\treturn $this->confirmDeleteThreads();\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tilUtil::sendInfo($this->lng->txt('topics_please_select_one_action'), true);\n\t\t\t\t$this->ctrl->redirect($this, 'showThreads');\n\t\t\t}\n\n\t\t}\n\t\telse\n\t\t{\n\t\t\tilUtil::sendInfo($this->lng->txt('select_at_least_one_thread'), true);\n\t\t\t$this->ctrl->redirect($this, 'showThreads');\n\t\t}\n\t}", "public function index()\n {\n $threads = Thread::with('user', 'votes')->withCount('replies')->latest()->paginate(10);\n // return $threads;\n return view('pertanyaan.index', compact('threads'));\n }", "function index() {\n\t\t$this->set('messageType', \"all\");\n\n\t\t$allMessages['dis'] = array($this->__loadMessage(\"dis\"),\"Discussion\");\n\t\t$allMessages['inf'] = array($this->__loadMessage(\"inf\"),\"Information\");\n\n\t\t$this->set('allMessages', $allMessages);\n\t}", "public function show(Thread $thread)\n {\n //\n }", "public function index() {\n $threads_1 = DB::table('threads')\n ->join('users','users.id', '=', 'threads.user_id')\n ->select('threads.*', 'users.name')\n ->where('threads.category', '=', '1')\n ->orderBy('updated_at', 'desc')\n ->get();\n $threads_2 = DB::table('threads')\n ->join('users','users.id', '=', 'threads.user_id')\n ->select('threads.*', 'users.name')\n ->where('category', '=', '2')\n ->orderBy('updated_at', 'desc')\n ->get();\n $threads_3 = DB::table('threads')\n ->join('users','users.id', '=', 'threads.user_id')\n ->select('threads.*', 'users.name')\n ->where('category', '=', '3')\n ->orderBy('updated_at', 'desc')\n ->get();\n $threads_4 = DB::table('threads')\n ->join('users','users.id', '=', 'threads.user_id')\n ->select('threads.*', 'users.name')\n ->where('category', '=', '4')\n ->orderBy('updated_at', 'desc')\n ->get();\n \treturn view('thread', ['threads_1' => $threads_1, 'threads_2' => $threads_2, \n 'threads_3' => $threads_3, 'threads_4' => $threads_4]);\n }", "public function show(Thread $thread)\n {\n }", "function messageThreadTree( $threadID, $showUnApprived = false, $offset = 0, $limit = 100 )\r\n {\r\n $db =& eZDB::globalDatabase();\r\n\r\n if ( !isSet( $showUnApproved ) || !$showUnApproved )\r\n $showUnApproved = \" AND IsApproved='1' \";\r\n else\r\n $showUnApproved = \" AND IsApproved='0' \";\r\n\r\n $db->array_query( $message_array, \"SELECT ID, TreeID FROM eZForum_Message\r\n WHERE ForumID='$this->ID'\r\n AND ThreadID='$threadID'\r\n AND IsTemporary='0'\r\n $showUnApproved\r\n ORDER BY TreeID DESC\",\r\n array( \"Limit\" => $limit, \"Offset\" => $offset ) );\r\n\r\n $ret = array();\r\n\r\n foreach ( $message_array as $message )\r\n {\r\n $ret[] = new eZForumMessage( $message[$db->fieldName(\"ID\")] );\r\n }\r\n\r\n return $ret;\r\n }", "public function index()\n\t{\n\n $sender_id = 2;\n $recipients = 1;\n $subject = 'Test message '.uniqid();\n $body = 'hellow world, Welcome';\n //$this->message->send_new_message($sender_id,$recipients,$subject,$body,PRIORITY_NORMAL);\n $this->global['message_threads'] = $this->message->get_all_threads($this->userId);\n $this->global['pageTitle'] = 'Mail';\n \n $this->loadViews(\"mailbox/inbox\", $this->global, NULL , NULL);\n\n\t}", "function show_all_messages($board){\n\t\tglobal $print, $x7s, $x7c, $db, $prefix;\n\n\t\t$head=\"Board \".$board['name'];\n\t\t$body=\"<script language=\\\"javascript\\\" type=\\\"text/javascript\\\">\n function do_delete(url){\n if(!confirm('Vuoi davvero cancellare il messaggio?'))\n return;\n\n window.location.href=url;\n }\n </script>\n\t\t\";\n\t\t$indice = indice_board();\n\t\t\n\t\t$maxmsg=10;\n\t\t$navigator='<p style=\"text-align: center;\">';;\n\t\t\n\t\tif(isset($_GET['startfrom'])){\n\t\t\t$limit=$_GET['startfrom'];\n\t\t}\n\t\telse\n\t\t\t$limit=0;\n\t\t\n\t\t$query = $db->DoQuery(\"SELECT count(*) AS total FROM {$prefix}boardmsg WHERE board='{$board['id']}' AND father='0'\");\n\t\t$row = $db->Do_Fetch_Assoc($query);\n\t\t$total = $row['total'];\n\t\t\n\t\tif($total > $maxmsg){\n\t\t\t$i=0;\n\t\t\twhile($total > 0){\n\t\t\t\tif((isset($_GET['startfrom']) && $_GET['startfrom'] == $i) || (!isset($_GET['startfrom']) && $i == 0))\n\t\t\t\t\t$navigator .= \"<a href=\\\"index.php?act=boards&board=$board[id]&startfrom=$i\\\"><b>[\".($i+1).\"]</b></a> \";\n\t\t\t\telse\n\t\t\t\t\t$navigator .= \"<a href=\\\"index.php?act=boards&board=$board[id]&startfrom=$i\\\">\".($i+1).\"</a> \";\n\t\t\t\t$i++;\n\t\t\t\t$total -= $maxmsg;\n\t\t\t\t\n\t\t\t}\n\t\t\t$navigator.=\"</p>\";\n\t\t}\n\t\t\n\t\t\t\n\t\t$limit_min = $limit * $maxmsg;\n\t\t$limit_max = $maxmsg;\t\t\n\t\t\n\t\t$query = $db->DoQuery(\"SELECT * FROM {$prefix}boardmsg \n\t\t\t\tWHERE board='{$board['id']}' \n\t\t\t\tAND father='0' ORDER BY last_update DESC LIMIT $limit_min, $limit_max\");\n\n\t\t\n\t\tif(!$board['readonly'] || checkIfMaster()){\n\t\t\t$body .=\"<a href=./index.php?act=boards&send=\".$board['id'].\">Nuova comunicazione</a><br>\";\n\t\t}\n\t\t\n\t\t$body.=$navigator;\n\t\t$unreads = get_unread();\n\t\twhile($row = $db->Do_Fetch_Assoc($query)){\n\t\t\t$q_new = $db->DoQuery(\"SELECT count(*) AS cnt FROM {$prefix}boardmsg msg, {$prefix}boardunread un\n\t\t\t\t\t\tWHERE\tmsg.id=un.id\n\t\t\t\t\t\tAND un.user='{$x7s->username}'\n\t\t\t\t\t\tAND board='{$board['id']}' AND father='$row[id]'\");\n\t\t\t$new_replies = $db->Do_Fetch_Assoc($q_new);\n\t\t\t\n\t\t\t$unread='';\n\t\t\tif(isset($unreads[$row['id']]))\n\t\t\t\t$unread = \"<b>(Nuovo) </b>\";\n\n\t\t\tif($new_replies['cnt']>0){\n\t\t\t\t$unread .= \"<b>(Nuove repliche: $new_replies[cnt])</b>\";\n\t\t\t}\n\t\t\t\n\t\t\t$nb = board_msg_split($row['body']);\n\t\t\t$msg = $nb[0];\n\t\t\t$object = $nb[1];\n\t\t\t$msgid=$row['id'];\n\t\t\t$user=$row['user'];\n\n\t\t\tif ($row['anonymous']) {\n\t\t\t\tif (checkIfMaster()) {\n\t\t\t\t\t$user .= \" (anonimo)\";\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\t$user = \"Anonimo\";\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t$body.=\"<p>\".$user.\"<br><a href=./index.php?act=boards&board=\".$board['id'].\"&message=\".$row['id'].\">\n\t\t\t\t <b>\".$object.\"</b> \".$unread.\"</a>\";\n\t\t\t\t\n\t\t\tif(checkIfMaster()){\n\t\t\t\t$startfrom = \"\";\n\t\t\t\tif (isset($_GET['startfrom']))\n\t\t\t\t\t$startfrom = \"&startfrom=\".$_GET['startfrom'];\n\n\t\t\t\t$body.=\" <a href=\\\"#\\\" onClick=\\\"javascript: do_delete('./index.php?act=boards&delete=$msgid$startfrom')\\\">[Delete]</a>\";\n\t\t\t\t$body.=\" <a href=./index.php?act=boards&move=$msgid>[Sposta]</a>\";\n }\n\t\t\t\n\t\t\t$body.=\"</p><hr>\";\n\t\t\n\t\t}\n\t\t$body.=$navigator;\n\t\tif(!$board['readonly'] || checkIfMaster()){\n\t\t\t$body .=\"<br><br><a href=./index.php?act=boards&send=\".$board['id'].\">Nuova comunicazione</a><br>\";\n\t\t}\n\t\t\n\t\t$print->board_window($head,$body,$indice);\n\t\t\n\t}", "public function index(Thread $thread)\n {\n return response(['messages' => $thread->messages], 200);\n }", "function threads_get()\n\t{\n\t\t$this->check_board();\n\n\t\tif ($this->get('page'))\n\t\t{\n\t\t\tif (!is_natural($this->get('page')))\n\t\t\t{\n\t\t\t\t$this->response(array('error' => __(\"Invalid value for 'page'.\")), 404);\n\t\t\t}\n\t\t\telse if ($this->get('page') > 500)\n\t\t\t{\n\t\t\t\t$this->response(array('error' => __('Unable to return more than 500 pages.')), 404);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$page = intval($this->get('page'));\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$page = 1;\n\t\t}\n\n\n\t\tif ($this->get('per_page'))\n\t\t{\n\t\t\tif (!is_natural($this->get('per_page')))\n\t\t\t{\n\t\t\t\t$this->response(array('error' => __(\"Invalid value for 'per_page'.\")), 404);\n\t\t\t}\n\t\t\telse if ($this->get('per_page') > 50)\n\t\t\t{\n\t\t\t\t$this->response(array('error' => __('Unable to return more than 50 threads per page.')),\n\t\t\t\t\t404);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$per_page = intval($this->get('per_page'));\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$per_page = 25;\n\t\t}\n\n\n\n\t\t$posts = $this->post->get_latest(get_selected_radix(), $page, array('per_page' => $per_page));\n\t\tif (count($posts) > 0)\n\t\t{\n\t\t\t$this->response($posts, 200); // 200 being the HTTP response code\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$this->response(array('error' => __('Unable to locate any threads.')), 404);\n\t\t}\n\t}", "public function index()\n {\n return view('materialadmin::message.index')->with('messages', Message::where('to_user_id', \\Auth::id())->orderBy('created_at', 'desc')->paginate(15));\n }", "public function teacherMessageList() {\n \t$teachersMessage=TeacherMessage::all();\n \treturn view('admin.teacherMessage.message-list' ,compact('teachersMessage'));\n }", "public function actionIndex()\n {\n $userid = Yii::$app->user->id;\n $messages = Message::find()->where(['to_user_id' => $userid])->orderBy(['id' => SORT_DESC])->all();\n $usersinfo = Message::find()->where(['to_user_id' => $userid])->select(['from_user_id'])->all();\n $names = Yii::$app->db->createCommand('\n SELECT DISTINCT from_user_id FROM message WHERE to_user_id='.$userid.'\n UNION ALL\n SELECT DISTINCT to_user_id FROM message WHERE from_user_id='.$userid.'\n')->queryAll();\n $dataProvider = new ActiveDataProvider([\n 'query' => Message::find(),\n ]);\n\n return $this->render('index', [\n 'dataProvider' => $dataProvider,\n 'messages' => $messages,\n 'usersinfo' => $usersinfo,\n 'names' => $names,\n ]);\n }", "function thread( $args )\n\t{\n\t $thread_id = (int)$args['id'];\n\t \n\t // check for existance, use threads model\n\t $threads_model = $this->app->\n\t model('forum_threads','forum/models');\n\t \n\t\t// boards model\n\t\t$boards_model = $this->app->\n\t\t model('forum_boards', 'forum/models'); \n\t \n\t // posts model\n\t $posts_model = $this->app->\n\t model('forum_posts','forum/models');\n\t \n\t // get item\n\t $thread = $threads_model->get_item( $thread_id );\n\t $thread = ( count($thread) > 0 ) ? $thread[0] : null;\n\t \n\t \n\t // imprtant stuffs\n\t if( $thread == null ){\n\t \n\t \t// redirect\n\t \t$this->app->redirect('forum');\n\t }\n\t \n\t \n // get board\n $board = $boards_model->get_item((int)$thread['board_id']);\n $board = $board[0];\n \n // set page title\n $this->view->add('page_title',\n 'Viewing thread: ' . $thread['name'] );\n \n // set index action\n $this->view->add('index_action',\n $this->app->form_path('forum'));\n \n // set board action\n $this->view->add('board_action',\n $this->app->form_path('forum/board/'.$board['id']));\n \n // good\n $this->view->add('board_name', $board['name'] );\n\t \n\t // need an action message\n\t $action_message = null;\n\t \n\t // init text area values\n\t $name_value = '';\n\t $post_value = '';\n\t \n\t \n\t // check for post\n\t if( $_SERVER['REQUEST_METHOD'] == 'POST' &&\n\t \tisset($_POST['name']) &&\n\t \t$_POST['name'] != null &&\n\t \tisset($_POST['post']) &&\n\t \t$_POST['name'] != null \n\t ){\n\t \t\n\t \t// add success\n\t \t$success = $posts_model->new_item( \n\t \t\t$this->app->user->get_user_id(), $thread_id, $_POST );\n\t \t\n\t \t// test for success\n\t \tif( $success ){\n\t \t\n\t \t\t// increment reply count\n\t \t\t$threads_model->increment_reply( $thread_id );\n\t \t\t\t \t\n\t \t\t$action_message = 'Post successfully added.';\n\t \t} else {\n\t \t\t$action_message = 'There was an error adding your post';\n\t \t}\n\t \t\n\t } elseif( $_SERVER['REQUEST_METHOD'] == 'POST' ) {\n\t \t\n\t \t$action_message = 'One or more required fields was not\n\t \t\tprovided';\n\t \t\t\n\t \t// update values\n\t\t\t$name_value = 'value=\"'.$_POST['name'].'\"';\n\t\t\t$post_value = $_POST['post'];\n\t }\n\t \n\t \n\t // add them\n\t $this->view->add('name_value',$name_value);\n\t $this->view->add('post_value',$post_value);\n\t \n\t // add actio message\n\t $this->view->add('action_message',$action_message);\n\t \n\t // get limits\n\t $limit = 10;\n\t \n\t // get page\n\t $page = 0;\n\t if( isset($_GET['p']) ){\n\t $page = (int)$_GET['p'];\n\t }\n\t \n\t // get replies\n\t $posts_result = $posts_model->limit($limit)->page($page)->\n\t get_all($thread_id);\n\t \n\t //\n\t $this->view->add('posts_result',$posts_result);\n\t \n\t $reply_count = ($thread==null) ? 0 :(int)$thread['reply_count'];\n\t \n\t // add paging\n\t $this->view->add('page_info',array(\n\t // posts count\n\t 'page_count' => (int)(($reply_count) / $limit)+1,\n\t 'this_page' => $page\n\t ));\n\t \n\t \n\t // add actions\n\t $this->view->add('page_action',\n\t $this->app->form_path('forum/thread/'.$thread_id.'?p='));\n\t \n\t $this->view->add('reply_action',$this->app->\n\t form_path('forum/thread/'.$thread_id.'?p='.$page));\n\t \n\t \n\t // add to the view\n\t $this->view->add('thread_result',$thread);\n\t \n\t \n\t // get wysiwyg extension\n\t $wysiwyg = $this->app->extension('wysiwyg');\n\t \n\t}", "public function notify_list(){\n\n\t\tif(!empty($_SESSION[\"notify\"][\"messages\"])){\n\n\n\t\t\techo \"<ul id=\\\"notify-messages\\\">\";\n\t\t\tforeach ($_SESSION[\"notify\"][\"messages\"] as $message) {\n\t\t\t\techo \"<li data-type=\\\"\".$message[\"type\"].\"\\\">\" . $message[\"message\"] . \"</li>\";\n\t\t\t}\n\t\t\techo \"</ul>\";\n\t\t}\n\n\t\t//limpar o queue de notifications\n\t\tself::notify_empty();\n\n\t}", "public function get_threads() {\n\n\t\t//return $query->result();\n\t}", "public function index()\n {\n $threads = Thread::orderBy('created_at', 'desc')->with('Movie', 'User')->get();\n\n foreach ($threads as $thread) {\n $thread->movie->description = shorten($thread->movie->description, 88);\n $thread->rating_slug = Str::slug($thread->rating);\n $thread->tmdb_id = (isset($thread->movie->externalid[0])) ? $thread->movie->externalid[0]->external_id : null;\n $thread->imdb_id = (isset($thread->movie->externalid[1])) ? $thread->movie->externalid[1]->external_id : null;\n if ($thread->user_id == Auth::user()->id) {\n $thread->can_edit = true;\n }\n }\n\n return response()->json($threads);\n }", "public function index()\n {\n $groups = Chat::getAllGroupConversations();\n $threads = Chat::getAllConversations();\n \n \n \n $newCollection = $threads->map(function($value,$key) {\n return $value->user->id ;\n});\n\n \n $users = User::where('id', '!=', auth()->id())->get();\n\n return view('home')->with([\n 'threads' => $threads,\n 'groups' => $groups,\n 'users'=>$users\n ]);\n }", "public function an_authenticated_user_can_participate_in_forum_threads()\n {\n //given we have an authernticated user\n $this->be($user = factory('App\\User')->create());\n // and an existing threads\n $thread = factory('App\\Thread')->create();\n // when a user adds a reply to thread\n $reply = factory('App\\Reply')->make();\n $this->post('/threads/'.$thread->id.'/replies', $reply->toArray());\n // then their reply should be visible in the page.\n $this->get($thread->path())\n -> assertSee($reply->body);\n }", "public function MyMessages(){\n\n\t\t$headerData = null;\n\t\t$sidebarData = null;\n\t\t$page = 'admin/myMessage';\n\t\t$mainData = array(\n\t\t\t'pagetitle'=> 'Messages',\n\t\t\t'londontec' => $this->setting_model->Get_All('londontec_users'),\n\t\t\t'student' => $this->setting_model->Get_All('students'),\n\t\t\t'message' => $this->setting_model->Get_All_DESCENDING('message','message_id'),\n\t\t);\n\t\t$footerData = null;\n\n\t\t$this->template($headerData, $sidebarData, $page, $mainData, $footerData);\n\t}", "public function index()\n {\n $id = Auth::user()->id; \n $messages = Message::where('to_users_id',$id)\n ->orderBy('messages.created_at', 'desc')\n ->get();\n \n $arr = array();\n \n foreach($messages as $message){\n if(!empty($message->message_reply_has_parent)){\n if(!in_array($message->message_reply_has_parent->parent_id, $arr))\n array_push($arr, $message->message_reply_has_parent->parent_id);\n } else \n array_push($arr, $message->id);\n }\n \n $new_messages = Message::whereIn('id', $arr)\n ->orderBy('messages.updated_at', 'desc')\n ->get();\n \n $data['messages'] = $new_messages;\n \n return view ('message/messages', $data);\n }", "public function index(Request $request)\n {\n $threads = Thread::with('lastReply')\n ->filter($request)\n ->orderByDesc('last_posted_at')\n ->paginate(25);\n\n return Inertia::render('forum/Index', [\n 'threads' => $threads,\n 'filters' => $request->all('search'),\n ])->withViewData([\n 'title' => 'Forum',\n 'description' => \"Les forums communautaires sont un endroit pour discuter de tout ce qui concerne le développement / le design. Laravel Cameroun offrira l'un des plus grands forum francophone sur Laravel & PHP\",\n 'openGraphURL' => url(\"/forum\")\n ]);\n }", "function mentionMeShowThreadStart()\n{\n\tglobal $mybb, $mentionScript, $mentionQuickReply,\n\t$mentionedIDs, $lang, $tid, $templates;\n\n\t// we only need the extra JS and Quick Reply additions if we are allowing multiple mentions\n\tif ($mybb->settings['mention_multiple']) {\n\t\t$multi = '_multi';\n\t\teval(\"\\$mentionQuickReply = \\\"\" . $templates->get('mentionme_quickreply_notice') . \"\\\";\");\n\n\t\t$mentionedIDs = <<<EOF\n\n\t<input type=\"hidden\" name=\"mentioned_ids\" value=\"\" id=\"mentioned_ids\" />\nEOF;\n\t}\n\n\tif ($mybb->settings['mention_minify_js']) {\n\t\t$min = '.min';\n\t}\n\n\t$mentionScript = <<<EOF\n<script type=\"text/javascript\" src=\"jscripts/MentionMe/thread{$multi}{$min}.js\"></script>\n\nEOF;\n}", "function show_thread_and_context($thread, $user, $i) {\n $thread_forum = BoincForum::lookup_id($thread->forum);\n if (!$thread_forum) return;\n if (!is_forum_visible_to_user($thread_forum, $user)) return;\n $owner = BoincUser::lookup_id($thread->owner);\n $j = $i % 2;\n echo \"<tr class=row$j><td>\\n\";\n switch($thread_forum->parent_type) {\n case 0:\n $category = BoincCategory::lookup_id($thread_forum->category);\n show_forum_title($category, $thread_forum, $thread, true);\n break;\n case 1:\n show_team_forum_title($thread_forum, $thread);\n break;\n }\n echo '\n </td><td class=\"numbers\">'.($thread->replies+1).'</td>\n <td>'.user_links($owner).'</td>\n <td class=\"numbers\">'.$thread->views.'</td>\n <td class=\"lastpost\">'.time_diff_str($thread->timestamp, time()).'</td>\n </tr>\n ';\n}", "static private function showMessages() {\n if (isset($_SESSION['messages'])) {\n\n $messages = new View(\"global.messages\", array(\"messages\" => $_SESSION['messages']));\n echo $messages->getHtml();\n // du coup on peut supprimer les messages\n unset($_SESSION['messages']);\n }\n }", "public function threads(){\n \treturn $this->HasMany('App\\Models\\MessageThread', 'room_id');\n }", "public function index()\n {\n $table = TableRegistry::get('users');\n $user= $this->Auth->user('id');\n\n $messages = $this->paginate(\n $this->Messages->find()\n ->where(['to_user' => $user])\n ->andWhere(['send' => 0])\n ->order(['created' => 'DESC']));\n\n $this->set(compact('table','user','messages'));\n $this->set('_serialize', ['messages']);\n }", "public function show($id)\n {\n $thread = Thread::findOrFail($id);\n\n $thread->messages = $thread->messages()\n ->with(['user' => function($query) {\n $query->select('id', 'avatar', 'name', 'agent_name');\n }])\n ->orderBy('created_at', 'desc')\n ->paginate();\n\n $thread->my = Auth::user()->only(['avatar', 'name']);\n\n $thread->markAsRead(Auth::user()->id);\n\n\n if (!is_null(User::select('id')->where('id', $thread->participantsUserIds())->firstOrFail())) {\n return response()->json($thread);\n }\n\n }", "function show()\n {\n $messages = $this->Session->read( 'messages' );\n $html = '';\n \n // Add a div for each message using the type as the class\n foreach ($messages as $type => $msgs)\n {\n foreach ($msgs as $msg)\n {\n if (!empty($msg)) {\n $html .= \"<div class='$type'><p>$msg</p></div>\";\n } \n }\n }\n $html .= \"</div>\";\n \n // Clear the messages array from the session\n $this->Session->del( 'messages' );\n \n return $this->output( $html );\n }", "public function run(): void\n {\n Thread::with('participants.owner')->get()->each(function (Thread $thread) {\n for ($x = 0; $x < rand(5, 20); $x++) {\n Message::factory()\n ->for($thread)\n ->owner($thread->participants->random()->owner)\n ->create();\n }\n });\n }", "public function index()\n {\n $user = Auth::user();\n\n $threads = DB::table('threads')->where('user_id', '=', $user->id)->get();\n\n $count_posts = DB::table('posts')->where('user_id', '=', $user->id)->count();\n\n $count_threads = DB::table('threads')->where('user_id', '=', $user->id)->count();\n\n return view('users/index', ['user' => $user, 'count_posts' => $count_posts, 'count_threads' => $count_threads, 'threads' => $threads]);\n\n }", "public function show($id)\n {\n //\n $thread = Thread::find($id);\n return view('threads.show', compact('thread'));\n }", "function threadShow($tally, $act, $dir='DESC', $str=''){\n\t/*\n\t * Show the general scene start for a thread and then all related posts related to that thread/topic.\n\t * $tally sets number of posts per page\n\t * $direction sets order to either ASC of DESC (Newest or Oldest post first)\n\t */\n\n\n\t#uID is the current user/viewer looking at page,\n\t#hID is the handler/creator of actual thread\n\t$uID=$hID=$hName=$priv='';\n\t#for query string\n\t$rqID=$rtID=$tTitle=$twID=$wID=$testStr=$btns='';\n\n\t#get requested thread id\n\t$rqID = $_GET['tID']; #$rID = requested thread id\n\n\n\n\t#dumpDie($_SESSION['Privilege']);\n\n\t#get user creds\n\tif(isset($_SESSION['UserID']))\t { $hID = $_SESSION['UserID']; } #uID = ''\n\tif(isset($_SESSION['Privilege'])){ $priv = $_SESSION['Privilege']; } ##priv = ''\n\n\t#get Post modifiers to pass on to 'populate' existing post with\n\tif(isset($_GET['pWeather'])){ $wID = $_GET['pWeather']; }\n\n\t$sql = \"SELECT ThreadID, CatID, PostID, UserID, ThreadFeaturing, ThreadType, ThreadTitle, ThreadRating, ThreadPhaseOfDay, ThreadTimeOfDay, ThreadWeather, ThreadLocation, ThreadContent, ThreadNotes, ThreadSummary, ThreadTag, DatePostThread, DatePullThread, DateCreated, LastUpdated FROM ma_Threads where ThreadID = {$rqID}\n\tORDER BY PostID $dir;\";\n\n\n\t$str .= '<!-- start general content -->\n\t<div class=\"col-sm-9 col-xs-12 pull-right\">';\n\n\t# connection comes first in mysqli (improved) function\n\t$result = mysqli_query(IDB::conn(),$sql) or die(trigger_error(mysqli_error(IDB::conn()), E_USER_ERROR));\n\tif (mysqli_num_rows($result) > 0)//at least one record!\n\t{//show results\n\t\twhile($row = mysqli_fetch_assoc($result))\n\t\t{# process each row\n\t\t\t$catID \t \t\t\t= (int)$row['CatID'];\n\t\t\t#$uID \t \t\t\t= (int)$row['UserID']; #owner/creator of thread\n\t\t\t$uID \t\t\t\t\t= (isset($row['UserID'])) \t? $row['UserID'] : 0;\n\n\t\t\t$rtID \t \t\t\t= (int)$row['ThreadID'];\n\n\t\t\t$tTitle \t\t\t= $row['ThreadTitle'];\n\t\t\t$titleEncoded = str_replace(' ', '_', $tTitle); #URL safe\n\n\t\t\t$tType \t\t\t\t= $row['ThreadType'];\n\t\t\t$tRate \t\t\t\t= $row['ThreadRating'];\n\t\t\t$tRateEncoded = str_replace(' ', '_', $tRate); #URL safe\n\n\t\t\t$phase \t\t\t\t= $row['ThreadPhaseOfDay'];\n\t\t\t$phaseEncoded = str_replace(' ', '_', $phase); #URL safe\n\n\t\t\t$time \t\t\t\t= $row['ThreadTimeOfDay'];\n\t\t\t#add 67 seconds to time stamp\n\t\t\t$time \t\t\t\t= date(\"m/d/Y h:i:s a\", time() + 67);\n\t\t\t$timeEncoded = str_replace(' ', '_', $time); #URL safe\n\n\t\t\t$tWeather \t\t= $row['ThreadWeather']; #thread weather\n\t\t\t$twEncoded \t\t= str_replace(' ', '_', $twID); #URL safe\n\n\t\t\t$location \t\t= $row['ThreadLocation'];\n\t\t\t$locationEncoded = str_replace(' ', '_', $location); #URL safe\n\t\t\t$when \t\t\t\t= 'when';\n\t\t\t#add 67 seconds to time stamp\n\t\t\t#$time \t\t\t\t= date(\"m/d/Y h:i:s a\", time() + 67);\n\t\t\t$whenEncoded = str_replace(' ', '_', $when); #URL safe\n\n\n\t\t\t#handler - current user viewing is X\n\t\t\t#$hID = $_SESSION['UserID'];\n\t\t\t$hID = (isset($_SESSION['UserID'])) \t? $_SESSION['UserID'] : 0;\n\n\n\t\t\t#QUERY STRINGS for buttons - this way its easier to edit/revise them all in one place\n\t\t\t$pQueryAdd = '?act=postAdd';\n\t\t\t$pQueryAdd .= '&uID=' . $hID\n\t\t\t\t\t\t\t\t\t.\t '&cat=' . $catID\n\t\t\t\t\t\t\t\t\t. '&tID=' . $rtID\n\t\t\t\t\t\t\t\t\t. '&ttl=' . $titleEncoded\n\t\t\t\t\t\t\t\t\t. '&typ=' . $tType\n\t\t\t\t\t\t\t\t\t. '&rtg=' . $tRateEncoded\n\t\t\t\t\t\t\t\t\t. '&wet=' . $twEncoded\n\t\t\t\t\t\t\t\t\t. '&phs=' . $phaseEncoded\n\t\t\t\t\t\t\t\t\t. '&tme=' . $timeEncoded\n\t\t\t\t\t\t\t\t\t. '&loc=' . $locationEncoded\n\t\t\t\t\t\t\t\t\t. '&whn=' . $whenEncoded; #addd min 67 seconds to it...\n\t\t\t#URL Sanitized\n\t\t\t$pQueryAdd = htmlspecialchars($pQueryAdd, ENT_QUOTES);\n\t\t\t#$pQueryAdd = htmlentities($pQueryAdd);\n\t\t\t#$pQueryAdd = rawurlencode ($pQueryAdd);\n\n\t\t\t#dumpDie($pQueryAdd);\n\n\t\t\t$pQueryEdit = '?act=threadEdit&tID=' . $rtID . '&title=' . $titleEncoded;\n\t\t\t#URL Sanitized\n\t\t\t$pQueryEdit = htmlspecialchars($pQueryEdit, ENT_QUOTES);\n\t\t\t$pQueryEdit = htmlentities($pQueryEdit);\n\n\t\t\t$pQueryRemove = '?act=threadRemove&tID=' . $rtID . '&title=' . $titleEncoded;\n\t\t\t#URL Sanitized\n\t\t\t$pQueryRemove = htmlspecialchars($pQueryRemove, ENT_QUOTES);\n\t\t\t$pQueryRemove = htmlentities($pQueryRemove);\n\n\t\t\t$pQueryLock = '?act=threadLock&tID=' . $rtID . '&title=' . $titleEncoded;\n\t\t\t#URL Sanitized\n\t\t\t$pQueryLock = htmlspecialchars($pQueryLock, ENT_QUOTES);\n\t\t\t$pQueryLock = htmlentities($pQueryLock);\n\n\t\t\t#if category matches selected category show\n\t\t\tif($rtID){\n\n\t\t\t\t#add leading zeros...\n\t\t\t\t$rIDformatted ='';\n\t\t\t\t$rIDformatted = str_pad( $rtID, 4, \"0\", STR_PAD_LEFT );\n\n\t\t\t\t#show threadHandler - make link to profile if logged in\n\t\t\t\tif(!empty($priv)){\n\t\t\t\t\t$hName = '<a href=\"' . VIRTUAL_PATH . 'users/userProfile.php?act=show&user=' . $uID . '\" title=\"\">' . get_hName($uID) . '</a>';\n\t\t\t\t}else{\n\t\t\t\t\t#if it's not our memeber, make link meaningless\n\t\t\t\t\t$hName = get_hName($uID);\n\t\t\t\t}\n\n\t\t\t\t#display content\n\t\t\t\t$str .= '<h2 class=\"panel-title\"><b>' . $tTitle . ' <span class=\"text-muted\"></b><small>(#TiD-' . $rtID . ')</small></span></a> <span class=\"pull-right\"><span class=\"glyphicon glyphicon-pencil text-muted\"></span> ' . $hName .'</span></h2>\n\n\t\t\t\t<p><br />'. nl2br($row['ThreadContent']) . '</p>';\n\t\t\t\t#intial description/staging for thread\n\n\n\t\t\t\t$threadTag = $row['ThreadTag'];\n\n\t\t\t\t#get Codenames of characters tagged\n\t\t\t\t#get all unique id sets\n\t\t\t\t$sqlAllTags = \"SELECT DISTINCT PostTags FROM ma_Posts WHERE ThreadID = $rtID\";\n\n\t\t\t\t$txt = '';\n\n\t\t\t\t#make tags for thread\n\t\t\t\t$resultAllTags = mysqli_query(IDB::conn(), $sqlAllTags) or die(trigger_error(mysqli_error(IDB::conn()), E_USER_ERROR));\n\n\t\t\t\t//at least one record!\n\t\t\t\tif (mysqli_num_rows($resultAllTags) > 0){//show results\n\t\t\t\t\t$count = 0;\n\n\t\t\t\t\t#process id sets into string, add duplicates removed\n\t\t\t\t\twhile ($row = mysqli_fetch_assoc($resultAllTags))\n\t\t\t\t\t{//dbOut() function is a 'wrapper' designed to strip slashes, etc. of data leaving db\n\t\t\t\t\t\t$txt .= $row['PostTags'] . 'x';\n\t\t\t\t\t}\n\n\t\t\t\t\t#remove double commas\n\t\t\t\t\t$txt = str_replace('xx',',', $txt);\n\t\t\t\t\t$txt = str_replace('x',',', $txt);\n\n\t\t\t\t\t#remove duplicates\n\t\t\t\t\t$txt = implode(',', array_unique(explode(',', $txt)));\n\n\t\t\t\t\t#format numbers to row comma quoted delinated row with\n\t\t\t\t\t$txt = \"'\" . str_replace(array(\"'\", \",\"), array(\"\\\\'\", \"','\"), $txt) . \"'\";\n\n\t\t\t\t\t#removing trailing comma and or empty/white space or combos there of.\n\t\t\t\t\t$myStr = str_replace(\",''\",'', $txt);\n\t\t\t\t}\n\n\t\t\t\t@mysqli_free_result($resultAllTags); //free resources\n\n\t\t\t\t$postTagsNew = $sqlCharTags = '';\n\t\t\t\t//we might not have any tags\n\t\t\t\tif($txt !==''){\n\t\t\t\t\t$sqlCharTags = \"SELECT Codename, CharID, Overview FROM ma_Characters WHERE CharID IN ($txt) ORDER BY Codename;\";\n\n\t\t\t\t\t$resultCharTags = mysqli_query(IDB::conn(), $sqlCharTags) or die(trigger_error(mysqli_error(IDB::conn()), E_USER_ERROR));\n\n\t\t\t\t\t//at least one record!\n\t\t\t\t\tif (mysqli_num_rows($resultCharTags) > 0)\n\t\t\t\t\t{//show results\n\n\t\t\t\t\t\t$count = 0;\n\t\t\t\t\t\t$postTagsNew .= '<p>Featuring: ';\n\n\t\t\t\t\t\twhile ($row = mysqli_fetch_assoc($resultCharTags))\n\t\t\t\t\t\t{//dbOut() function is a 'wrapper' designed to strip slashes, etc. of data leaving db\n\t\t\t\t\t\t\t$cName \t\t\t = $row['Codename'];\n\t\t\t\t\t\t\t$cNameEncode = str_replace(' ', '_', $cName); \t#URL safe\n\t\t\t\t\t\t\t#$twEncoded = str_replace(' ', '_', $twID); \t\t#URL safe\n\t\t\t\t\t\t\t#$titleEncoded = str_replace(' ', '_', $title);\t#URL safe\n\n\t\t\t\t\t\t\t$cID \t\t\t = $row['CharID'];\n\t\t\t\t\t\t\t$cOverivew = $row['Overview'];\n\n\t\t\t\t\t\t\t#add in comma/seperator\n\t\t\t\t\t\t\tIf($count++ >= 1){ $postTagsNew .= ', ';}\n\n\t\t\t\t\t\t\t$postTagsNew .= '<a href=\"' . VIRTUAL_PATH . 'characters/profile.php?CodeName=' . $cNameEncode . '&id=' . $cID . '&act=show\" data-toggle=\"tooltip\" data-placement=\"right\" title=\"' . $cOverivew . '\"\n\t\t\t\t\t\t\t>' . $cName . '</a>';\n\t\t\t\t\t\t}\n\t\t\t\t\t\t$postTagsNew .= '</p>';\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t$str .= $postTagsNew;\n\n\t\t\t\t#THREAD queries addendums (NOT POSTS!)\n\t\t\t\t#we are using $rID = requested thread id instead of $rtID\n\n\t\t\t\t#GET posts - page them\n\n\n\n\t\t\t#Make the btns\n\t\t\t/*\n\t\t\t\t#we need a handler id for edit, lock and delete options -- handler is the registered created of that post or thread...\n\t\t\t*/\n\n\n\t\t\tif(!empty($priv)){ $btns .= mk_btns4posts($priv, $hID, $uID, $pQueryAdd, $pQueryAdd, $pQueryEdit, $pQueryRemove, $pQueryLock); }\n\n\t\t\t#sbow btns before posts.....\n\t\t\t$str .= $btns; #add the btns\n\n\n\n\t\t\t#pass the btns on to get_pPaged()\n\t\t\t$testStr .= get_pPaged($rtID, $tally, $act, $btns, $tTitle, $tType,\n\t\t\t\t$catID, $titleEncoded, $tType, $tRateEncoded, $twEncoded, $phaseEncoded,\n\t\t\t\t$timeEncoded, $locationEncoded, $whenEncoded, $titleEncoded,\n\t\t\t\t$priv, $hID, $uID); #get all psots\n\n\t\t\tif($testStr != ''){\n\t\t\t\t$str .= $testStr;\n\t\t\t\t$str .= '<hr>';\n\t\t\t#no records\n\t\t\t}else{\n\t\t\t\t$str .= \"<div align=center>Houston we have problemo</div>\";\n\t\t\t}\n\t\t}\n\t\t#close it all up\n\n\t\t$str .='</div><!-- END content -->';\n\t\t@mysqli_free_result($result); //free resources\n\t\treturn $str;\n\t\t}\n\t}\n}", "public function action_messageindex()\n\t{\n\t\tglobal $txt, $board, $modSettings, $context, $options, $settings, $board_info;\n\n\t\t// Fairly often, we'll work with boards. Current board, sub-boards.\n\t\trequire_once(SUBSDIR . '/Boards.subs.php');\n\n\t\t// If this is a redirection board head off.\n\t\tif ($board_info['redirect'])\n\t\t{\n\t\t\tincrementBoard($board, 'num_posts');\n\t\t\tredirectexit($board_info['redirect']);\n\t\t}\n\n\t\ttheme()->getTemplates()->load('MessageIndex');\n\t\tloadJavascriptFile('topic.js');\n\n\t\t$bbc = ParserWrapper::instance();\n\n\t\t$context['name'] = $board_info['name'];\n\t\t$context['sub_template'] = 'topic_listing';\n\t\t$context['description'] = $bbc->parseBoard($board_info['description']);\n\t\t$template_layers = theme()->getLayers();\n\n\t\t// How many topics do we have in total?\n\t\t$board_info['total_topics'] = allowedTo('approve_posts') ? $board_info['num_topics'] + $board_info['unapproved_topics'] : $board_info['num_topics'] + $board_info['unapproved_user_topics'];\n\n\t\t// View all the topics, or just a few?\n\t\t$context['topics_per_page'] = empty($modSettings['disableCustomPerPage']) && !empty($options['topics_per_page']) ? $options['topics_per_page'] : $modSettings['defaultMaxTopics'];\n\t\t$context['messages_per_page'] = empty($modSettings['disableCustomPerPage']) && !empty($options['messages_per_page']) ? $options['messages_per_page'] : $modSettings['defaultMaxMessages'];\n\t\t$maxindex = isset($this->_req->query->all) && !empty($modSettings['enableAllMessages']) ? $board_info['total_topics'] : $context['topics_per_page'];\n\n\t\t// Right, let's only index normal stuff!\n\t\t$session_name = session_name();\n\t\tforeach ($this->_req->query as $k => $v)\n\t\t{\n\t\t\t// Don't index a sort result etc.\n\t\t\tif (!in_array($k, array('board', 'start', $session_name)))\n\t\t\t{\n\t\t\t\t$context['robot_no_index'] = true;\n\t\t\t}\n\t\t}\n\n\t\tif (!empty($this->_req->query->start) && (!is_numeric($this->_req->query->start) || $this->_req->query->start % $context['messages_per_page'] !== 0))\n\t\t{\n\t\t\t$context['robot_no_index'] = true;\n\t\t}\n\n\t\t// If we can view unapproved messages and there are some build up a list.\n\t\tif (allowedTo('approve_posts') && ($board_info['unapproved_topics'] || $board_info['unapproved_posts']))\n\t\t{\n\t\t\t$untopics = $board_info['unapproved_topics'] ? '<a href=\"' . getUrl('action', ['action' => 'moderate', 'area' => 'postmod', 'sa' => 'topics', 'brd' => $board]) . '\">' . $board_info['unapproved_topics'] . '</a>' : 0;\n\t\t\t$unposts = $board_info['unapproved_posts'] ? '<a href=\"' . getUrl('action', ['action' => 'moderate', 'area' => 'postmod', 'sa' => 'posts', 'brd' => $board]) . '\">' . ($board_info['unapproved_posts'] - $board_info['unapproved_topics']) . '</a>' : 0;\n\t\t\t$context['unapproved_posts_message'] = sprintf($txt['there_are_unapproved_topics'], $untopics, $unposts, getUrl('action', ['action' => 'moderate', 'area' => 'postmod', 'sa' => ($board_info['unapproved_topics'] ? 'topics' : 'posts'), 'brd' => $board]));\n\t\t}\n\n\t\t// And now, what we're here for: topics!\n\t\trequire_once(SUBSDIR . '/MessageIndex.subs.php');\n\n\t\t// Known sort methods.\n\t\t$sort_methods = messageIndexSort();\n\t\t$default_sort_method = 'last_post';\n\n\t\t// We only know these.\n\t\tif (isset($this->_req->query->sort) && !isset($sort_methods[$this->_req->query->sort]))\n\t\t{\n\t\t\t$this->_req->query->sort = $default_sort_method;\n\t\t}\n\n\t\t// Make sure the starting place makes sense and construct the page index.\n\t\t$sort_string = '';\n\t\tif (isset($this->_req->query->sort))\n\t\t{\n\t\t\t$sort_string = ';sort=' . $this->_req->query->sort . (isset($this->_req->query->desc) ? ';desc' : '');\n\t\t}\n\n\t\t$context['page_index'] = constructPageIndex('{scripturl}?board=' . $board . '.%1$d' . $sort_string, $this->_req->query->start, $board_info['total_topics'], $maxindex, true);\n\t\t$context['start'] = &$this->_req->query->start;\n\n\t\t// Set a canonical URL for this page.\n\t\t$context['canonical_url'] = getUrl('board', ['board' => $board, 'start' => $context['start'], 'name' => $board_info['name']]);\n\n\t\t$context['links'] += array(\n\t\t\t'prev' => $this->_req->query->start >= $context['topics_per_page'] ? getUrl('board', ['board' => $board, 'start' => $this->_req->query->start - $context['topics_per_page'], 'name' => $board_info['name']]) : '',\n\t\t\t'next' => $this->_req->query->start + $context['topics_per_page'] < $board_info['total_topics'] ? getUrl('board', ['board' => $board, 'start' => $this->_req->query->start + $context['topics_per_page'], 'name' => $board_info['name']]) : '',\n\t\t);\n\n\t\tif (isset($this->_req->query->all) && !empty($modSettings['enableAllMessages']) && $maxindex > $modSettings['enableAllMessages'])\n\t\t{\n\t\t\t$maxindex = $modSettings['enableAllMessages'];\n\t\t\t$this->_req->query->start = 0;\n\t\t}\n\n\t\t// Build a list of the board's moderators.\n\t\t$context['moderators'] = &$board_info['moderators'];\n\t\t$context['link_moderators'] = array();\n\t\tif (!empty($board_info['moderators']))\n\t\t{\n\t\t\tforeach ($board_info['moderators'] as $mod)\n\t\t\t{\n\t\t\t\t$context['link_moderators'][] = '<a href=\"' . getUrl('profile', ['action' => 'profile', 'u' => $mod['id'], 'name' => $mod['name']]) . '\" title=\"' . $txt['board_moderator'] . '\">' . $mod['name'] . '</a>';\n\t\t\t}\n\t\t}\n\n\t\t// Mark current and parent boards as seen.\n\t\tif ($this->user->is_guest === false)\n\t\t{\n\t\t\t// We can't know they read it if we allow prefetches.\n\t\t\tstop_prefetching();\n\n\t\t\t// Mark the board as read, and its parents.\n\t\t\tif (!empty($board_info['parent_boards']))\n\t\t\t{\n\t\t\t\t$board_list = array_keys($board_info['parent_boards']);\n\t\t\t\t$board_list[] = $board;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$board_list = array($board);\n\t\t\t}\n\n\t\t\t// Mark boards as read. Boards alone, no need for topics.\n\t\t\tmarkBoardsRead($board_list, false, false);\n\n\t\t\t// Clear topicseen cache\n\t\t\tif (!empty($board_info['parent_boards']))\n\t\t\t{\n\t\t\t\t// We've seen all these boards now!\n\t\t\t\tforeach ($board_info['parent_boards'] as $k => $dummy)\n\t\t\t\t{\n\t\t\t\t\tif (isset($_SESSION['topicseen_cache'][$k]))\n\t\t\t\t\t{\n\t\t\t\t\t\tunset($_SESSION['topicseen_cache'][$k]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (isset($_SESSION['topicseen_cache'][$board]))\n\t\t\t{\n\t\t\t\tunset($_SESSION['topicseen_cache'][$board]);\n\t\t\t}\n\n\t\t\t// From now on, they've seen it. So we reset notifications.\n\t\t\t$context['is_marked_notify'] = resetSentBoardNotification($this->user->id, $board);\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$context['is_marked_notify'] = false;\n\t\t}\n\n\t\t// 'Print' the header and board info.\n\t\t$context['page_title'] = strip_tags($board_info['name']);\n\n\t\t// Set the variables up for the template.\n\t\t$context['can_mark_notify'] = allowedTo('mark_notify') && $this->user->is_guest === false;\n\t\t$context['can_post_new'] = allowedTo('post_new') || ($modSettings['postmod_active'] && allowedTo('post_unapproved_topics'));\n\t\t$context['can_post_poll'] = !empty($modSettings['pollMode']) && allowedTo('poll_post') && $context['can_post_new'];\n\t\t$context['can_moderate_forum'] = allowedTo('moderate_forum');\n\t\t$context['can_approve_posts'] = allowedTo('approve_posts');\n\n\t\t// Prepare sub-boards for display.\n\t\t$boardIndexOptions = array(\n\t\t\t'include_categories' => false,\n\t\t\t'base_level' => $board_info['child_level'] + 1,\n\t\t\t'parent_id' => $board_info['id'],\n\t\t\t'set_latest_post' => false,\n\t\t\t'countChildPosts' => !empty($modSettings['countChildPosts']),\n\t\t);\n\t\t$boardlist = new BoardsList($boardIndexOptions);\n\t\t$context['boards'] = $boardlist->getBoards();\n\n\t\t// Nosey, nosey - who's viewing this board?\n\t\tif (!empty($settings['display_who_viewing']))\n\t\t{\n\t\t\trequire_once(SUBSDIR . '/Who.subs.php');\n\t\t\tformatViewers($board, 'board');\n\t\t}\n\n\t\t// They didn't pick one, default to by last post descending.\n\t\tif (!isset($this->_req->query->sort) || !isset($sort_methods[$this->_req->query->sort]))\n\t\t{\n\t\t\t$context['sort_by'] = $default_sort_method;\n\t\t\t$ascending = isset($this->_req->query->asc);\n\t\t}\n\t\t// Otherwise sort by user selection and default to ascending.\n\t\telse\n\t\t{\n\t\t\t$context['sort_by'] = $this->_req->query->sort;\n\t\t\t$ascending = !isset($this->_req->query->desc);\n\t\t}\n\n\t\t$sort_column = $sort_methods[$context['sort_by']];\n\n\t\t$context['sort_direction'] = $ascending ? 'up' : 'down';\n\t\t$context['sort_title'] = $ascending ? $txt['sort_desc'] : $txt['sort_asc'];\n\n\t\t// Trick\n\t\t$txt['starter'] = $txt['started_by'];\n\n\t\t// todo: Need to move this to theme.\n\t\tforeach ($sort_methods as $key => $val)\n\t\t{\n\t\t\tswitch ($key)\n\t\t\t{\n\t\t\t\tcase 'subject':\n\t\t\t\tcase 'starter':\n\t\t\t\tcase 'last_poster':\n\t\t\t\t\t$sorticon = 'alpha';\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\t$sorticon = 'numeric';\n\t\t\t}\n\n\t\t\t$context['topics_headers'][$key] = array(\n\t\t\t\t'url' => getUrl('board', ['board' => $context['current_board'], 'start' => $context['start'], 'sort' => $key, 'name' => $board_info['name'], $context['sort_by'] == $key && $context['sort_direction'] === 'up' ? 'desc' : '']),\n\t\t\t\t'sort_dir_img' => $context['sort_by'] == $key ? '<i class=\"icon icon-small i-sort-' . $sorticon . '-' . $context['sort_direction'] . '\" title=\"' . $context['sort_title'] . '\"><s>' . $context['sort_title'] . '</s></i>' : '',\n\t\t\t);\n\t\t}\n\n\t\t// Calculate the fastest way to get the topics.\n\t\t$start = (int) $this->_req->query->start;\n\t\tif ($start > ($board_info['total_topics'] - 1) / 2)\n\t\t{\n\t\t\t$ascending = !$ascending;\n\t\t\t$fake_ascending = true;\n\t\t\t$maxindex = $board_info['total_topics'] < $start + $maxindex + 1 ? $board_info['total_topics'] - $start : $maxindex;\n\t\t\t$start = $board_info['total_topics'] < $start + $maxindex + 1 ? 0 : $board_info['total_topics'] - $start - $maxindex;\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$fake_ascending = false;\n\t\t}\n\n\t\t$context['topics'] = array();\n\n\t\t// Set up the query options\n\t\t$indexOptions = array(\n\t\t\t'only_approved' => $modSettings['postmod_active'] && !allowedTo('approve_posts'),\n\t\t\t'previews' => !empty($modSettings['message_index_preview']) ? (empty($modSettings['preview_characters']) ? -1 : $modSettings['preview_characters']) : 0,\n\t\t\t'include_avatars' => $settings['avatars_on_indexes'],\n\t\t\t'ascending' => $ascending,\n\t\t\t'fake_ascending' => $fake_ascending\n\t\t);\n\n\t\t// Allow integration to modify / add to the $indexOptions\n\t\tcall_integration_hook('integrate_messageindex_topics', array(&$sort_column, &$indexOptions));\n\n\t\t$topics_info = messageIndexTopics($board, $this->user->id, $start, $maxindex, $context['sort_by'], $sort_column, $indexOptions);\n\n\t\t$context['topics'] = TopicUtil::prepareContext($topics_info, false, !empty($modSettings['preview_characters']) ? $modSettings['preview_characters'] : 128);\n\n\t\t// Allow addons to add to the $context['topics']\n\t\tcall_integration_hook('integrate_messageindex_listing', array($topics_info));\n\n\t\t// Fix the sequence of topics if they were retrieved in the wrong order. (for speed reasons...)\n\t\tif ($fake_ascending)\n\t\t{\n\t\t\t$context['topics'] = array_reverse($context['topics'], true);\n\t\t}\n\n\t\t$topic_ids = array_keys($context['topics']);\n\n\t\tif (!empty($modSettings['enableParticipation']) && $this->user->is_guest === false && !empty($topic_ids))\n\t\t{\n\t\t\t$topics_participated_in = topicsParticipation($this->user->id, $topic_ids);\n\t\t\tforeach ($topics_participated_in as $participated)\n\t\t\t{\n\t\t\t\t$context['topics'][$participated['id_topic']]['is_posted_in'] = true;\n\t\t\t\t$context['topics'][$participated['id_topic']]['class'] = 'my_' . $context['topics'][$participated['id_topic']]['class'];\n\t\t\t}\n\t\t}\n\n\t\t$context['jump_to'] = array(\n\t\t\t'label' => addslashes(un_htmlspecialchars($txt['jump_to'])),\n\t\t\t'board_name' => htmlspecialchars(strtr(strip_tags($board_info['name']), array('&amp;' => '&')), ENT_COMPAT, 'UTF-8'),\n\t\t\t'child_level' => $board_info['child_level'],\n\t\t);\n\n\t\t// Is Quick Moderation active/needed?\n\t\tif (!empty($options['display_quick_mod']) && !empty($context['topics']))\n\t\t{\n\t\t\t$context['can_markread'] = $context['user']['is_logged'];\n\t\t\t$context['can_lock'] = allowedTo('lock_any');\n\t\t\t$context['can_sticky'] = allowedTo('make_sticky');\n\t\t\t$context['can_move'] = allowedTo('move_any');\n\t\t\t$context['can_remove'] = allowedTo('remove_any');\n\t\t\t$context['can_merge'] = allowedTo('merge_any');\n\n\t\t\t// Ignore approving own topics as it's unlikely to come up...\n\t\t\t$context['can_approve'] = $modSettings['postmod_active'] && allowedTo('approve_posts') && !empty($board_info['unapproved_topics']);\n\n\t\t\t// Can we restore topics?\n\t\t\t$context['can_restore'] = allowedTo('move_any') && !empty($modSettings['recycle_enable']) && $modSettings['recycle_board'] == $board;\n\n\t\t\t// Set permissions for all the topics.\n\t\t\tforeach ($context['topics'] as $t => $topic)\n\t\t\t{\n\t\t\t\t$started = $topic['first_post']['member']['id'] == $this->user->id;\n\t\t\t\t$context['topics'][$t]['quick_mod'] = array(\n\t\t\t\t\t'lock' => allowedTo('lock_any') || ($started && allowedTo('lock_own')),\n\t\t\t\t\t'sticky' => allowedTo('make_sticky'),\n\t\t\t\t\t'move' => allowedTo('move_any') || ($started && allowedTo('move_own')),\n\t\t\t\t\t'modify' => allowedTo('modify_any') || ($started && allowedTo('modify_own')),\n\t\t\t\t\t'remove' => allowedTo('remove_any') || ($started && allowedTo('remove_own')),\n\t\t\t\t\t'approve' => $context['can_approve'] && $topic['unapproved_posts']\n\t\t\t\t);\n\t\t\t\t$context['can_lock'] |= ($started && allowedTo('lock_own'));\n\t\t\t\t$context['can_move'] |= ($started && allowedTo('move_own'));\n\t\t\t\t$context['can_remove'] |= ($started && allowedTo('remove_own'));\n\t\t\t}\n\n\t\t\t// Can we use quick moderation checkboxes?\n\t\t\tif ($options['display_quick_mod'] == 1)\n\t\t\t{\n\t\t\t\t$context['can_quick_mod'] = $context['user']['is_logged'] || $context['can_approve'] || $context['can_remove'] || $context['can_lock'] || $context['can_sticky'] || $context['can_move'] || $context['can_merge'] || $context['can_restore'];\n\t\t\t}\n\t\t\t// Or the icons?\n\t\t\telse\n\t\t\t{\n\t\t\t\t$context['can_quick_mod'] = $context['can_remove'] || $context['can_lock'] || $context['can_sticky'] || $context['can_move'];\n\t\t\t}\n\t\t}\n\n\t\tif (!empty($context['can_quick_mod']) && $options['display_quick_mod'] == 1)\n\t\t{\n\t\t\t$context['qmod_actions'] = array('approve', 'remove', 'lock', 'sticky', 'move', 'merge', 'restore', 'markread');\n\t\t\tcall_integration_hook('integrate_quick_mod_actions');\n\t\t}\n\n\t\tif (!empty($context['boards']) && $context['start'] == 0)\n\t\t{\n\t\t\t$template_layers->add('display_child_boards');\n\t\t}\n\n\t\t// If there are children, but no topics and no ability to post topics...\n\t\t$context['no_topic_listing'] = !empty($context['boards']) && empty($context['topics']) && !$context['can_post_new'];\n\t\t$template_layers->add('topic_listing');\n\n\t\ttheme()->addJavascriptVar(array('notification_board_notice' => $context['is_marked_notify'] ? $txt['notification_disable_board'] : $txt['notification_enable_board']), true);\n\n\t\t// Build the message index button array.\n\t\t$context['normal_buttons'] = array(\n\t\t\t'new_topic' => array('test' => 'can_post_new',\n\t\t\t\t\t\t\t\t 'text' => 'new_topic',\n\t\t\t\t\t\t\t\t 'lang' => true,\n\t\t\t\t\t\t\t\t 'url' => getUrl('action', ['action' => 'post', 'board' => $context['current_board'] . '.0']),\n\t\t\t\t\t\t\t\t 'active' => true),\n\t\t\t'notify' => array('test' => 'can_mark_notify',\n\t\t\t\t\t\t\t 'text' => $context['is_marked_notify'] ? 'unnotify' : 'notify',\n\t\t\t\t\t\t\t 'lang' => true, 'custom' => 'onclick=\"return notifyboardButton(this);\"',\n\t\t\t\t\t\t\t 'url' => getUrl('action', ['action' => 'notifyboard', 'sa' => ($context['is_marked_notify'] ? 'off' : 'on'), 'board' => $context['current_board'] . '.' . $context['start'], '{session_data}'])),\n\t\t);\n\n\t\ttheme()->addJavascriptVar(array(\n\t\t\t'txt_mark_as_read_confirm' => $txt['mark_these_as_read_confirm']\n\t\t), true);\n\n\t\t// They can only mark read if they are logged in and it's enabled!\n\t\tif ($this->user->is_guest === false && $settings['show_mark_read'])\n\t\t{\n\t\t\t$context['normal_buttons']['markread'] = array(\n\t\t\t\t'text' => 'mark_read_short',\n\t\t\t\t'lang' => true,\n\t\t\t\t'url' => getUrl('action', ['action' => 'markasread', 'sa' => 'board', 'board' => $context['current_board'] . '.0', '{session_data}']),\n\t\t\t\t'custom' => 'onclick=\"return markboardreadButton(this);\"'\n\t\t\t);\n\t\t}\n\n\t\t// Allow adding new buttons easily.\n\t\tcall_integration_hook('integrate_messageindex_buttons');\n\t}", "public function threadsWithNewMessages()\n {\n $threadsWithNewMessages = [];\n $participants = Participant::where('user_id', $this->id)->lists('last_read', 'thread_id');\n\n /**\n * @todo: see if we can fix this more in the future.\n * Illuminate\\Foundation is not available through composer, only in laravel/framework which\n * I don't want to include as a dependency for this package...it's overkill. So let's\n * exclude this check in the testing environment.\n */\n if (getenv('APP_ENV') == 'testing' || !str_contains(\\Illuminate\\Foundation\\Application::VERSION, '5.0')) {\n $participants = $participants->all();\n }\n\n if ($participants) {\n $threads = Thread::whereIn('id', array_keys($participants))->get();\n\n foreach ($threads as $thread) {\n if ($thread->updated_at > $participants[$thread->id]) {\n $threadsWithNewMessages[] = $thread->id;\n }\n }\n }\n\n return $threadsWithNewMessages;\n }", "function Forum_showThread(&$PAGEDATA, &$id) {\n\trequire_once SCRIPTBASE.'ww.incs/bb2html.php';\n\tWW_addCSS('/ww.plugins/forum/frontend/forum.css');\n\t$script='$(function(){$(\".ratings\").ratings();});';\n\tWW_addScript('ratings/ratings.js');\n\tWW_addInlineScript($script);\n\t$thread=dbRow('select * from forums_threads where id='.$id);\n\t$forum_id=$thread['forum_id'];\n\tif (!$thread || !count($thread)) {\n\t\treturn '<em class=\"error\">Error: this thread does not exist!</em>';\n\t}\n\t$c=Forum_getForumBreadcrumbs($PAGEDATA, $thread['forum_id'])\n\t\t.' &raquo; <a href=\"'.$PAGEDATA->getRelativeUrl().'?forum-f='.$forum_id\n\t\t.'&forum-t='.$id.'\">'.htmlspecialchars($thread['name']).'</a>';\n\t$c.='<table id=\"forum-posts\"><tr><th>Author</th><th>Post</th></tr>';\n\t$posts=dbAll(\n\t\t'select * from forums_posts where thread_id='\n\t\t.$id.' and moderated = 1 order by created_date'\n\t);\n\tforeach ($posts as $post) {\n\t\t$user=User::getInstance($post['author_id']);\n\t\tif ($user) {\n\t\t\t$user_name=$user->get('name');\n\t\t\t$user_id=$post['author_id'];\n\t\t\t$user_email=$user->get('email');\n\t\t}\n\t\telse {\n\t\t\t$user_name='unknown';\n\t\t\t$user_id=0;\n\t\t\t$user_email='';\n\t\t}\n\t\t$c.='<tr p-data=\\'({\"id\":'.$post['id']\n\t\t\t.',\"cdate\":\"'.$post['created_date'].'\"'\n\t\t\t.',\"uid\":'.$post['author_id'].'})\\'>'\n\t\t\t.'<td class=\"user-details\"><a name=\"forum-c-'.$post['id']\n\t\t\t.'\"></a>'.htmlspecialchars($user_name).'</td>'\n\t\t\t.'<td><div class=\"post-header\">Posted: '\n\t\t\t.Core_dateM2H($post['created_date'], 'datetime')\n\t\t\t.'</div></td></tr>';\n\t\t$count_posts=$user_id\n\t\t\t?dbOne(\n\t\t\t\t'select count(id) from forums_posts where author_id='.$user->get('id'),\n\t\t\t\t'count(id)'\n\t\t\t)\n\t\t\t:0;\n\t\t$emailHash=md5(trim(strtolower($user_email)));\n\t\t\n\t\t$c.='<tr><td><img class=\"avatar\" data-uid=\"'.$user_id.'\" />'\n\t\t\t. '<span>Posts: '.$count_posts.'</span>'\n\t\t\t. '<p>Helpfulness:'\n\t\t\t. '<span class=\"ratings\" id=\"forum_user_'.$user_email.'\"'\n\t\t\t. ' type=\"forum_user\">rating</span></p>';\t\t\t\t\n\n\t\t$c.='</td><td class=\"post\">'.bb2html($post['body'])\n\t\t\t.'</td></tr>';\n\t}\n\t$c.='</table>';\n\t// { post form\n\tif (isset($_SESSION['userdata']) && $_SESSION['userdata']['id']) {\n\t\t$c.='<div id=\"forum-post-submission-form\"><script defer=\"defer\">var forum_id='\n\t\t\t.$forum_id.',forum_thread_id='.$id.';</script></div>';\n\t\tWW_addScript('//cdn.ckeditor.com/4.4.3/standard/ckeditor.js');\n\t\tWW_addScript('//cdn.ckeditor.com/4.4.3/standard/adapters/jquery.js');\n\t\tWW_addScript('forum/frontend/forum.js');\n\t}\n\telse {\n\t\t$c.='<div class=\"forum-not-logged-in\">In order to post to this thread,'\n\t\t\t.' you must <a href=\"/_r?type=loginpage\">login'\n\t\t\t.'</a> first.</div>';\n\t}\n\t// }\n\treturn $c;\n}", "public function show($id)\n {\n $thread = Thread::find($id);\n return view ('threads.show')-> with ('thread', $thread);\n }", "public static function print_inbox_row($thread_id)\n {\n echo \"DONE!\";\n }", "function tn_messages() {\n\tdo_action( 'tn_messages' );\n}", "public function viewtopicAction($thread_id){\n\t\t$per_page = 20;\n\n\t\t# Chargement du manager\n\t\t$this->load_manager('forum', 'base_app');\n\n\t\t# On commpte le nombre de message\n\t\t$NbMessage = $this->app->db->count(PREFIX . 'forum_message', array('thread_id =' => $thread_id));\n\n\t\t# On recupere les messages\n\t\t$Messages = $this->manager->forum->getMessagesByThreadId($thread_id, $per_page, getOffset($per_page));\n\n\t\t# Recuperation infos topic\n\t\t$Thread = new Basethread($this->app->db->get_one(PREFIX . 'forum_thread', array('id =' => $thread_id)));\n\n\t\t# On traite la pagination\n\t\t$Pagination = new Zebra_Pagination();\n\t\t$Pagination->records($NbMessage);\n\t\t$Pagination->records_per_page($per_page);\n\n\t\tif( $this->isModerateur() == true ):\n\t\t\t$this->app->smarty->assign('Forums', $this->manager->forum->getAllForums());\n\t\tendif;\n\t\t\n\t\t# Envoie a smarty\n\t\t$this->app->smarty->assign(array(\n\t\t\t'ctitre'\t\t=>\t'Forum :: ' . $Thread->titre,\n\t\t\t'Messages'\t\t=>\t$Messages,\n\t\t\t'Thread'\t\t=>\t$Thread,\n\t\t\t'Pagination'\t=>\t$Pagination,\n\t\t\t'Forum'\t\t\t=>\tnew myObject( $this->app->db->get_one(PREFIX . 'forum', array('id =' => $Thread->forum_id)) )\n\t\t));\n\n\t\tif( $_SESSION['utilisateur']['id'] != 'Visiteur' ):\n\t\t\t$this->getFormValidatorJs();\n\n\t\t\t$this->app->load_web_lib('markitup/skins/simple/style.css','css');\n\t\t\t$this->app->load_web_lib('markitup/bbcode/style.css','css');\n\t\t\t$this->app->load_web_lib('markitup/jquery.markitup.js','js');\n\t\t\t$this->app->load_web_lib('markitup/bbcode/set.js','js');\n\t\tendif;\n\t\t\n\t\t# Generation de la page\n\t\treturn $this->app->smarty->fetch(BASE_APP_PATH . 'view' . DS . 'forum' . DS . 'viewtopic.tpl');\n\n\t}", "public function authenticated_user_may_participate_in_forum_threads()\n {\n \t// Given we have an authenticated user.\n \t$user = factory('App\\User')->create();\n \t$this->be($user);\n \t// Given we have a thread.\n \t$thread = factory('App\\Thread')->create();\n \t// Given we have a reply.\n \t$reply = factory('App\\Reply')->make();\n \t// The user submits a reply.\n \t// $this->post('threads/'.$thread->id.'/replies', $reply->toArray()); also works\n \t$this->post($thread->path().'/replies', $reply->toArray());\n \t$this->get($thread->path())->assertSee($reply->body);\n }", "public function getMessageThreadOverview($idMember, $storeMember = Common_Resource_MessageThread::STORE_INBOX)\n {\n $threads = array();\n\n $messageThreadResource = $this->getResource('MessageThread');\n $messsageThreadRowset = $messageThreadResource->getThreadsByMemberId(\n $idMember,\n $storeMember\n );\n\n foreach ($messsageThreadRowset as $messageThreadRow) {\n $messageThreadObj = $this->messageThreadObject($messageThreadRow);\n array_push($threads, $messageThreadObj);\n }\n\n return $threads;\n }", "public function index()\n {\n $uid = Auth::user()->id;\n $messages = Msgs::where('to', $uid);\n return view('msgs.index')->with(\n [\n 'msgs' => $messages,\n ]);\n }", "public function ReplyMessages(){\n\n\t\t$message_id = $this->uri->segment(3);\n\n\t\t$headerData = null;\n\t\t$sidebarData = null;\n\t\t$page = 'admin/reply_message';\n\t\t$mainData = array(\n\t\t\t'pagetitle'=> 'Reply Message',\n\t\t\t'student' => $this->setting_model->Get_All('students'),\n\t\t\t'londontec_users' => $this->setting_model->Get_All('londontec_users'),\n\t\t\t'messages' => $this->setting_model->Get_Single('message','message_id',$message_id)\n\t\t);\n\t\t$footerData = null;\n\n\t\t$this->template($headerData, $sidebarData, $page, $mainData, $footerData);\n\t}", "public function getAllTopThreads() {\r\n\t\t$filteredList = array();\r\n\t\tforeach ($this->threads as $thread) {\r\n\t\t\tif ($thread -> getTopTopic() == -1) {\r\n\t\t\t\tarray_push($filteredList, $thread);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn $filteredList;\r\n\t}", "function getMessagesPrint(){\r\n foreach ($this->messages as $key => $value) {\r\n echo $this->messagePrefixForPrint.$value.\"<br>\\n\";\r\n }\r\n }", "public function index()\n {\n $messages = Message::where('receiver_id','=',Auth::user()->id)->paginate(10);\n\n return view('messages.index')->with('messages', $messages);\n }", "private function fetchThreads() {\n\t\t\t$query = '';\n\t\t\t$boards = listBoards(true);\n\n\t\t\tforeach ($boards as $b) {\n\t\t\t\tif (in_array($b, $this->settings['exclude']))\n\t\t\t\t\tcontinue;\n\t\t\t\t// Threads are those posts that have no parent thread\n\t\t\t\t$query .= \"SELECT *, '$b' AS `board` FROM ``posts_$b`` \" .\n\t\t\t\t\t\"WHERE `thread` IS NULL UNION ALL \";\n\t\t\t}\n\n\t\t\t$query = preg_replace('/UNION ALL $/', 'ORDER BY `bump` DESC', $query);\n\t\t\t$result = query($query) or error(db_error());\n\n\t\t\treturn $result->fetchAll(PDO::FETCH_ASSOC);\n\t\t}", "public function getTopThreads()\n {\n $db = DB::conn();\n $threads = array();\n \n $rows = $db->rows('SELECT t.id, t.user_id, t.title, u.username, t.created, t.last_modified, u.usertype, \n COUNT(c.id) AS thread_count FROM comment c \n INNER JOIN thread t ON c.thread_id=t.id \n INNER JOIN user u ON t.user_id=u.id \n GROUP BY t.id ORDER BY COUNT(c.id) DESC, t.last_modified DESC');\n\n foreach ($rows as $row) {\n $threads[] = new Thread($row);\n }\n\n return $threads;\n }", "public function get_topics()\n {\n return $this->connection->query_select_value('threads', 'COUNT(*)');\n }", "function print_messages() {\n global $messages;\n foreach ($messages as $message) {\n echo \"<p class='message'><strong>\".htmlspecialchars($message).\"</strong></p>\\n\";\n }\n}", "function atu_showthread()\n{\n\tglobal $mybb, $atujq, $atujs, $atu_link, $tid, $fid;\n\n\tif(can_auto_update())\n\t{\n\t\n\t\t$atujq = '<script src=\"http://code.jquery.com/jquery-latest.js\"></script>\n\t<script>\n\tjQuery.noConflict();\n\t</script>';\n\t\t\n\t\t$atujs = '<script type=\"text/javascript\">\n\tvar time = '.TIME_NOW.';\n\tvar refreshId = setInterval(function()\n\t{\n\t\tjQuery.get(\\'getnewposts.php?tid='.$tid.'}&timestamp=\\'+time,\n\t\tfunction(result) {\n\t\t\tjQuery(\\'#autorefresh\\').append(\\'<span style=\"display: none;\" class=\"new-post\" name=\"post[]\">\\'+result+\\'</span>\\');\n\t\t\tjQuery(\\'#autorefresh\\').find(\".new-post:last\").fadeIn(\\'slow\\');\n\t\t});\n\n\t\ttime = Math.round((new Date()).getTime() / 1000);\n\n\t}, '.intval($mybb->settings['atu_refreshrate']).');\n\t</script>';\n\t} else {\n\t\t$atujq = '';\n\t\t$atujs = '';\n\t}\n\n\tif($mybb->usergroup['cancp'])\n\t{\n\t\t$on = true;\n\t\t$display = true;\n\t\t\n\t\tif($mybb->settings['atu_tf_wlbl'] != 'all')\n\t\t{\n\t\t\t$perms = explode(\"|\",$mybb->settings['atu_tf_wlbl']);\n\t\t\t$ids = explode(\",\",$perms[2]);\n\t\t\t\n\t\t\tif($perms[0] == 'threads')\n\t\t\t{\n\t\t\t\t$thread_in_list = in_array($tid,$ids);\n\t\t\t\t\n\t\t\t\tif($thread_in_list && $perms[1] == 'blacklist')\n\t\t\t\t{\n\t\t\t\t\t$on = false;\n\t\t\t\t} elseif(!$thread_in_list && $perms[1] == 'whitelist') {\n\t\t\t\t\t$on = false;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$display = false;\n\t\t\t}\n\t\t}\n\t\tif($display)\n\t\t{\n\t\t\tif($on)\n\t\t\t{\n\t\t\t\t$atu_link = '<a href=\"showthread.php?tid='.$tid.'&amp;toggle_atu=true&amp;my_post_key='.$mybb->post_code.'\">Turn off auto thread updating in this thread</a><br />';\n\t\t\t} else {\n\t\t\t\t$atu_link = '<a href=\"showthread.php?tid='.$tid.'&amp;toggle_atu=true&amp;my_post_key='.$mybb->post_code.'\">Turn on auto thread updating in this thread</a><br />';\n\t\t\t}\n\t\t}\n\t}\n}", "function ghost_threads_get()\n\t{\n\t\t$this->check_board();\n\n\t\tif ($this->get('page'))\n\t\t{\n\t\t\tif (!is_natural($this->get('page')))\n\t\t\t{\n\t\t\t\t$this->response(array('error' => __(\"Invalid value for 'page'.\")), 404);\n\t\t\t}\n\t\t\telse if ($this->get('page') > 500)\n\t\t\t{\n\t\t\t\t$this->response(array('error' => __('Unable to return more than 500 pages.')), 404);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$page = intval($this->get('page'));\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$page = 1;\n\t\t}\n\n\n\t\tif ($this->get('per_page'))\n\t\t{\n\t\t\tif (!is_natural($this->get('per_page')))\n\t\t\t{\n\t\t\t\t$this->response(array('error' => __(\"Invalid value for 'per_page'.\")), 404);\n\t\t\t}\n\t\t\telse if ($this->get('per_page') > 50)\n\t\t\t{\n\t\t\t\t$this->response(array('error' => __('Unable to return more than 50 threads per page.')),\n\t\t\t\t\t404);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$per_page = intval($this->get('per_page'));\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$per_page = 25;\n\t\t}\n\n\t\t$page = intval($page);\n\n\t\t$posts = $this->post->get_latest_ghost(get_selected_radix(), $page, array('per_page' => $per_page));\n\n\t\tif (count($posts) > 0)\n\t\t{\n\t\t\t$this->response($posts, 200); // 200 being the HTTP response code\n\t\t}\n\t\telse\n\t\t{\n\t\t\t// no comics\n\t\t\t$this->response(array('error' => __('Unable to locate any threads.')), 404);\n\t\t}\n\t}", "public function list()\n {\n $jabatan = Auth::user()->jabatan;\n $user_id = Auth::user()->id;\n $messages = Message::where('user_id', $user_id)->latest()->paginate(10);\n $skipped = ($messages->currentPage() * $messages->perPage()) - $messages->perPage();\n if ($jabatan == 'admin') {\n return view('layouts.admin.message.listMessage', compact('messages', 'skipped'));\n } else {\n return view('layouts.user.message', compact('messages', 'skipped'));\n }\n }", "public function showReceivedMessages()\n {\n $messageService = $this->get(MessageService::class);\n $messages = $messageService->showReceivedMessages($this->getUser());\n\n return $this->render('message/receivedMessages.html.twig', array(\n 'messages' => $messages,\n ));\n\n }", "public function threads()\n {\n return $this->hasMany(thread::class);\n }", "public function messages();", "public function messages();", "public function messages();", "public static function checkVisibilityAll($threadIDs, $reason = '') {\n\t\tif (empty($threadIDs)) return;\n\t\t\n\t\t$emptyThreads = '';\n\t\t$trashedThreads = '';\n\t\t$hiddenThreads = '';\n\t\t$enabledThreads = '';\n\t\t$restoresThreads = '';\n\t\t$sql = \"SELECT\t\tCOUNT(post.postID) AS posts,\n\t\t\t\t\tSUM(post.isDeleted) AS deletedPosts,\n\t\t\t\t\tSUM(post.isDisabled) AS hiddenPosts,\n\t\t\t\t\tthread.threadID, thread.isDeleted, thread.isDisabled\n\t\t\tFROM \t\twbb\".WBB_N.\"_thread thread\n\t\t\tLEFT JOIN \twbb\".WBB_N.\"_post post\n\t\t\tON \t\t(post.threadID = thread.threadID)\n\t\t\tWHERE \t\tthread.threadID IN (\".$threadIDs.\")\n\t\t\tGROUP BY \tthread.threadID\";\n\t\t$result = WCF::getDB()->sendQuery($sql);\n\t\twhile ($row = WCF::getDB()->fetchArray($result)) {\n\t\t\t$row['deletedPosts'] = intval($row['deletedPosts']);\n\t\t\t$row['hiddenPosts'] = intval($row['hiddenPosts']);\n\t\t\t\n\t\t\t// thread has no posts\n\t\t\t// delete thread\n\t\t\tif ($row['posts'] == 0) {\n\t\t\t\tif (!empty($emptyThreads)) $emptyThreads .= ',';\n\t\t\t\t$emptyThreads .= $row['threadID'];\n\t\t\t}\n\t\t\t\n\t\t\t// all posts of this thread are into the recylce bin\n\t\t\t// move thread also into the recylce bin \n\t\t\telse if ($row['posts'] == $row['deletedPosts']) {\n\t\t\t\tif (!empty($trashedThreads)) $trashedThreads .= ',';\n\t\t\t\t$trashedThreads .= $row['threadID'];\n\t\t\t}\n\t\t\t\n\t\t\t// all posts of this thread are hidden\n\t\t\t// hide thread also\n\t\t\telse if ($row['posts'] == $row['hiddenPosts'] || $row['posts'] == $row['hiddenPosts'] + $row['deletedPosts']) {\n\t\t\t\tif (!empty($hiddenThreads)) $hiddenThreads .= ',';\n\t\t\t\t$hiddenThreads .= $row['threadID'];\n\t\t\t}\n\t\t\t\n\t\t\t// thread is deleted, but no posts are deleted\n\t\t\t// restore thread\n\t\t\telse if (intval($row['deletedPosts']) == 0 && $row['isDeleted'] == 1) {\n\t\t\t\tif (!empty($restoresThreads)) $restoresThreads .= ',';\n\t\t\t\t$restoresThreads .= $row['threadID'];\n\t\t\t}\n\t\t\t\n\t\t\t// thread is hidden, but no posts are hidden\n\t\t\t// enable thread\n\t\t\telse if (intval($row['hiddenPosts']) == 0 && $row['isDisabled'] == 1) {\n\t\t\t\tif (!empty($enabledThreads)) $enabledThreads .= ',';\n\t\t\t\t$enabledThreads .= $row['threadID'];\n\t\t\t}\n\t\t}\n\t\t\n\t\tself::deleteAllCompletely($emptyThreads, false, false);\n\t\tself::trashAll($trashedThreads, false, $reason);\n\t\tself::disableAll($hiddenThreads, false);\n\t\tself::restoreAll($restoresThreads, false);\n\t\tself::enableAll($enabledThreads, false);\n\t}", "public function showAllForums()\n {\n $this->displayOnlyFavorites = false;\n }", "public function index()\n {\n $categories = Category::with('forums.threadsCount')->get();\n\n return view('index', compact('categories'));\n }", "public function threads(){\n return $this->belongsToMany('App\\Thread');\n }", "public function show($id)\n {\n $thread = Thread::find($id);\n if(!$thread) {\n abort(404);\n }\n\n $threads = Thread::orderBy('created_at', 'desc')->paginate(5);\n $data = [\n 'thread' => $thread,\n 'threads' => $threads\n ];\n return view('ask-view')->with('data', $data);\n }", "public function viewTicketTimelineMessages($show_private, $show_user, Ticket $object)\n {\n global $conf, $langs, $user;\n\n // Load logs in cache\n $ret = $object->loadCacheMsgsTicket();\n $action = GETPOST('action');\n\n if (is_array($object->cache_msgs_ticket) && count($object->cache_msgs_ticket) > 0) {\n print '<section id=\"cd-timeline\">';\n\n foreach ($object->cache_msgs_ticket as $id => $arraymsgs) {\n if (!$arraymsgs['private']\n || ($arraymsgs['private'] == \"1\" && $show_private)\n ) {\n print '<div class=\"cd-timeline-block\">';\n print '<div class=\"cd-timeline-img\">';\n print '<img src=\"img/messages.png\" alt=\"\">';\n print '</div> <!-- cd-timeline-img -->';\n\n print '<div class=\"cd-timeline-content\">';\n print $arraymsgs['message'];\n\n print '<span class=\"cd-date\">';\n print dol_print_date($arraymsgs['datec'], 'dayhour');\n\n if ($show_user) {\n if ($arraymsgs['fk_user_action'] > 0) {\n $userstat = new User($this->db);\n $res = $userstat->fetch($arraymsgs['fk_user_action']);\n if ($res) {\n print '<br>';\n print $userstat->getNomUrl(1);\n }\n } else {\n print '<br>';\n print $langs->trans('Customer');\n }\n }\n print '</span>';\n print '</div> <!-- cd-timeline-content -->';\n print '</div> <!-- cd-timeline-block -->';\n }\n }\n print '</section>';\n } else {\n print '<div class=\"info\">' . $langs->trans('NoMsgForThisTicket') . '</div>';\n }\n }", "public function showAllMessagesOfCurrentUser()\n {\n $token = substr($this->request->getHeaderLine('Authorization'),7);\n $pageNumber = (int)$this->request->getHeaderLine('Page-Number');\n $pageSize = (int)$this->request->getHeaderLine('Page-Size');\n \n if(\n $token == null or \n $pageNumber == null or \n $pageNumber < 1 or\n $pageSize == null or\n $pageSize < 1\n )\n {\n $this->logger->warning(\n \"Missing or bad data!\",\n [\n \"token\" => $token,\n \"pageNumber\" => $pageNumber,\n \"pageSize\" => $pageSize\n ]\n );\n return $this->badRequest(\"Missing or bad data!\");\n }\n\n $userHelper = new HelperUser();\n $currentUser = $userHelper -> authenticateWithToken($token);\n\n if ($currentUser == null)\n {\n $this->logger->warning(\n \"Unable to authorize user!\",\n [\n \"token\" => $token\n ]\n );\n return $this->unauthorized();\n }\n\n $messageRepository = new RepositoryMessage();\n $messages = $messageRepository->fetchMessagesOfUser(\n $currentUser,\n $pageNumber,\n $pageSize\n );\n\n return $this->responseFactory->generateResponse(\n $this->response,\n 200,\n $this->jsonFactory->generateMessagesJson($messages),\n true\n );\n }", "public function actionIndex()\n {\n $dataProvider=Message::findAll([\n 'uid'=>Yii::$app->user->identity->id,\n 'is_read'=>'0',\n 'is_del'=>'0'\n ]);\n return $this->render('index', [\n 'dataProvider' => $dataProvider,\n ]);\n }", "public function index()\n {\n $profile = auth()->user();\n $posts = \\App\\Post::wherePublished(1)->where('user_id', \\Auth::user()->id)->get();\n\n $threads = Thread::getAllLatest()->whereHas('participants', function ($query) {\n $query->where('user_id', auth()->user()->id);\n })->get();\n\n return view('profile.index', compact('profile', 'posts', 'threads'));\n }", "public function index()\n {\n \t$unreadMessages = Message::where('addressee', Auth::user()->id)->where('status', 0)->get();\n \t$unreadMessages->each(function ($message) {\n \t\t$message->status = 1;\n\n \t\t$message->save();\n \t});\n\n \t//Get all parent messages\n \t$messages = Message::where('addressee', Auth::user()->id)\n \t\t\t\t\t\t\t->where('parent_id', 0)\n \t\t\t\t\t\t\t->where('status', 1)\n ->with(['senders.recruiter.companyContact.companies'])\n \t\t\t\t\t\t\t->orderBy('created_at', 'DESC')\n \t\t\t\t\t\t\t->get();\n\n \treturn view('front.candidate.dashboard.message.index', ['messages' => $messages]);\n }", "public function adminMessageList()\n {\n\n $users=[];\n $em = $this->getDoctrine()->getManager();\n $messageRepository = $em->getRepository(Message::class);\n $userRepository = $em->getRepository(User::class);\n\n $Ids = $messageRepository->findByDistinct();\n foreach ($Ids as $id)\n {\n $users[] = $userRepository->findOneBy(array('id'=>$id));\n }\n return $this->render(\"admin/message/list.html.twig\",\n array(\n 'users' => $users,\n ));\n }", "public function index()\n {\n //\n $nowpage = 'message';\n $m_users = $this->message->getMessageUsers();\n\n return view('message/index',compact('nowpage','m_users'));\n }", "public function index()\n {\n\n $messages = Message::select('from_user_id')->where('to_user_id', auth()->id())->groupBy('from_user_id')->get();\n $this->views['messages'] = $messages;\n\n return view('messages.index', $this->views);\n }", "public function index()\n {\n return view('adminDashboard.message.index', ['messages' => Message::paginate(10)]);\n }", "public function index()\n {\n return view('adminDashboard.message.index', ['messages' => Message::paginate(10)]);\n }", "public function threads()\n {\n return $this->hasMany('App\\Thread');\n }", "public function threads()\n {\n return $this->hasMany('App\\Thread');\n }", "public function index()\n\t{\n\t\t$uuid = $this->get_uuid();\n\t\t$peers = $this->get_peers();\n\t\t$next_msg = 0;\n\n\t\tif (isset($peers[site_url('lab5/receive_message')]))\n\t\t{\n\t\t\t$next_msg = $peers[site_url('lab5/receive_message')][\"WeHave\"] + 1;\n\t\t}\n\n\t\t$this->load->view(\"header\");\n\t\t$this->load->view(\"view_messages\", \n\t\t\tarray(\"messages\" => $this->get_ordered_messages(), \n\t\t\t\t\"peers\" => $peers,\n\t\t\t\t\"uuid\" => $uuid,\n\t\t\t\t\"next_msg\" => $next_msg));\n\t}", "public function subscribeThreads($userid, $threads);", "public function index()\n {\n //\n \n // $search = \\Request::get('search');\n // $thread = Thread::where('name', 'like', '%' .$search. '%')->get();\n // return view('threads.index', compact('thread'));\n $search = \\Request::get('search');\n if($search){\n $thread = Thread::where('name', 'like', '%' .$search. '%')->get();\n return view('threads.result', compact('thread'));\n }\n $thread = Thread::paginate(10);\n $recent_thread = Thread::orderBy('created_at', 'desc')->take(5)->get();\n return view('threads.index', compact('thread'))->with('recent', $recent_thread);\n }", "public function index()\n {\n //\n $topics = Forum::paginate(5);\n \n \n // foreach ($topics as $topic) {\n // # code...\n // $topicCreatedByUser = $topic->user;\n // }\n // exit;\n return view('forum.forum_topics', compact('topics'));\n }" ]
[ "0.688893", "0.68419284", "0.68136936", "0.66700655", "0.6664336", "0.6558322", "0.64361095", "0.63359874", "0.63130563", "0.6303451", "0.6271517", "0.6246295", "0.6091976", "0.6054906", "0.6049513", "0.602744", "0.5999866", "0.5909828", "0.5844243", "0.5840489", "0.58394873", "0.5812444", "0.5769546", "0.5765955", "0.5763788", "0.57164645", "0.57131195", "0.56991833", "0.5690649", "0.5686594", "0.5652646", "0.5649524", "0.5636319", "0.5616322", "0.5612011", "0.56053007", "0.5597949", "0.5588092", "0.5581984", "0.55652565", "0.55572945", "0.55516", "0.55272985", "0.5526561", "0.5525834", "0.5523714", "0.55224216", "0.55048156", "0.55015975", "0.54979783", "0.5495835", "0.54897", "0.5484585", "0.54770815", "0.5475877", "0.5453918", "0.5453324", "0.5449716", "0.5443019", "0.5441762", "0.5428285", "0.54261595", "0.54210854", "0.5402651", "0.5402514", "0.53994566", "0.5391605", "0.5381416", "0.53798026", "0.53689516", "0.53650314", "0.5361484", "0.5358306", "0.53452635", "0.5344867", "0.5343139", "0.534152", "0.534152", "0.534152", "0.5338271", "0.53368026", "0.53308994", "0.532789", "0.5326024", "0.53251475", "0.53248006", "0.5321819", "0.5321154", "0.53207207", "0.53101236", "0.52985907", "0.5297722", "0.52971506", "0.52971506", "0.5296869", "0.5296869", "0.52932596", "0.5290656", "0.52846485", "0.5282812" ]
0.60990703
12
Shows a message thread.
public function show($id) { try { $thread = Thread::findOrFail($id); } catch (ModelNotFoundException $e) { return response()->json('error'); } // show current user in list if not a current participant // $users = User::whereNotIn('id', $thread->participantsUserIds())->get(); // don't show the current user in list $userId = request()->user()->id; $users = Client::whereNotIn('id', $thread->participantsUserIds($userId))->get(); $thread->markAsRead($userId); //return response()->json(['thread' => $thread, 'clients' => $users]); return new ThreadResource($thread); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function show(Thread $thread)\n {\n }", "public function show(Thread $thread)\n {\n //\n }", "static function show_message($message, $message_id=NULL) {\n\t\techo '<div class=\"wrap\"><h2></h2><div class=\"updated fade '.$message_id.'\" id=\"message\"><p>' . $message . '</p></div></div>' . \"\\n\";\n\t}", "public function show(Message $message)\n {\n //\n }", "public function show(Message $message)\n {\n //\n }", "public function show(Message $message)\n {\n //\n }", "public function show(Message $message)\n {\n //\n }", "public function show(Message $message)\n {\n //\n }", "public function show(Message $message)\n {\n //\n }", "public function show(Message $message)\n {\n //\n }", "public function show(Message $message)\n {\n //\n }", "public function show(Message $message) {\n //\n }", "public function showAction($id)\n {\n $em = $this->getDoctrine()->getManager();\n\n $entity = $em->getRepository('APiszczekDemoBundle:Thread')->find($id);\n\n if (!$entity) {\n throw $this->createNotFoundException('Unable to find Thread entity.');\n }\n\n $deleteForm = $this->createDeleteForm($id);\n\n return $this->render('APiszczekDemoBundle:Thread:show.html.twig', array(\n 'entity' => $entity,\n 'delete_form' => $deleteForm->createView(),\n ));\n }", "public static function showMessage($msg)\n {\n echo \"<div class='updated fade'><p><strong>$msg</strong></p></div>\\n\";\n }", "public function showMessage($message)\n {\n ShowMessage($message);\n }", "public function showMessages()\n {\n $messages = $this->getMessages();\n foreach ($messages as $message) {\n echo $message . \"\\n\";\n }\n }", "public function show($id)\n {\n $thread = Thread::find($id);\n return view ('threads.show')-> with ('thread', $thread);\n }", "public function show($id)\n {\n //\n $thread = Thread::find($id);\n return view('threads.show', compact('thread'));\n }", "public function show(Thread $thread)\n {\n if (auth()->check()) {\n event(new ThreadViewed($thread, auth()->user()));\n }\n }", "public function show($conv_id)\n {\n Session::put('conv_id',$conv_id);\n\n return view('messages.showthread');\n }", "public function run()\r\n\t{\r\n $this->render('MessageDisplay');\r\n\t}", "public function show(Thread $thread)\n {\n return view('thread.single', compact('thread'));\n }", "public function showMessage()\n {\n print $this->generator->getHappyMessage() . $this->name;\n }", "public function show(MessageThreadMessage $message)\n {\n $message->load(['attachments']);\n return response()->json($message);\n }", "function show_message($content, $type=\"updated fade\") {\r\n if ($content)\r\n echo \"<div id=\\\"message\\\" class='$type' ><p>\" . $content . \"</p></div>\";\r\n }", "public function show($id)\n {\n $fileDownloadUrl = null;\n $toSmeNiwas = 'SMENiwas';\n try {\n $userId = Auth::getUser()->id;\n $msg = Participant::where('id', '=', $id)->get()->first();\n $thread = Thread::where('id', '=', $msg->thread_id)->get()->first();\n\n } catch (ModelNotFoundException $e) {\n Session::flash('error_message', 'The thread with ID: ' . $id . ' was not found.');\n return redirect('messages');\n }\n $users = User::where('id', $msg->from_user_id)->get();\n $count = Participant::forUserWithNewMessages($userId)->count();\n if ($msg->user_id == $userId) {\n $msg->markAsRead($userId, $msg->id);\n }\n if (isset($msg) && $msg->upload_file != null) {\n $fileHelper = new FileHelper();\n $fileDownloadUrl = $fileHelper->getFileDownloadURL($msg->upload_file);\n }\n return view('messenger.show', compact('thread', 'users', 'msg', 'thread', 'count', 'fileDownloadUrl', 'toSmeNiwas'));\n }", "public function display($message);", "public function showMessage(){\n\t\t\n\n\t\ttry {\n\n\t\t\tif(!empty($_POST)){// si un commentaire est poter\n\t\t\t\tTchatModel::setMessage($_POST[\"message\"],$_POST[\"idUsr\"]);\n\t\t\t}\n\n\t\t\t$data = TchatModel::getMessage();\n\t\t} catch (Exception $e) {\n\t\t\t$data = TchatModel::getMessage();\n\t\t\t$warning = $e->getMessage();\n\t\t}\n\t\trequire_once'ViewFrontend/tchat.php';\n\t}", "public function show($id)\n {\n try {\n $thread = Thread::findOrFail($id);\n } catch (ModelNotFoundException $e) {\n Session::flash('error_message', 'The thread with ID: ' . $id . ' was not found.');\n return redirect()->route('messages');\n }\n\n $users = User::whereIn('id', $thread->participantsUserIds())->get();\n $senderAvatar = str_replace('storage/owner/', 'img/cache/small-avatar/', Storage::url($users[1]->avatar_name));\n $cafe = Cafe::where('owner_id', Owner::where('user_id', $users[0]->id)->first()->id)->first();\n $cafeLogo = str_replace('storage/logo/', 'img/cache/small-logo/', Storage::url($cafe->logo_path));\n $thread->markAsRead(Auth::id());\n $threads = Thread::forUser(Auth::id())->latest('updated_at')->get();\n foreach ($threads as $key => $list) {\n $usersThread = User::whereIn('id', $list->participantsUserIds())->get();\n $threads[$key]->users = $usersThread;\n $threads[$key]->senderAvatar = str_replace('storage/owner/', 'img/cache/small-avatar/', Storage::url($usersThread[1]->avatar_name));\n $cafe = Cafe::where('owner_id', Owner::where('user_id', $users[0]->id)->first()->id)->first();\n $threads[$key]->cafeLogo = str_replace('storage/logo/', 'img/cache/small-logo/', Storage::url($cafe->logo_path));\n }\n return view('messenger.index', compact('thread', 'users', 'cafeLogo', 'senderAvatar', 'threads'));\n }", "public function actionManageDisplayMessage()\n {\n $message = $_GET['message'];\n $this->render('manageDisplayMessage', array('message' => $message));\n }", "public function viewMessageClick ()\n {\n $this->createUser();\n list ($messages, $result2) = $this->_objUser->messageShow();\n If (! empty($messages)) {\n $this->showSubViews(\"viewMessage\", $messages, $result2);\n } else {\n $message = \"No messages for you<br>Have a good day :)\";\n $this->setCustomMessage(\"NoticeMessage\", $message);\n }\n }", "public function displayMessage() {}", "function thread( $args )\n\t{\n\t $thread_id = (int)$args['id'];\n\t \n\t // check for existance, use threads model\n\t $threads_model = $this->app->\n\t model('forum_threads','forum/models');\n\t \n\t\t// boards model\n\t\t$boards_model = $this->app->\n\t\t model('forum_boards', 'forum/models'); \n\t \n\t // posts model\n\t $posts_model = $this->app->\n\t model('forum_posts','forum/models');\n\t \n\t // get item\n\t $thread = $threads_model->get_item( $thread_id );\n\t $thread = ( count($thread) > 0 ) ? $thread[0] : null;\n\t \n\t \n\t // imprtant stuffs\n\t if( $thread == null ){\n\t \n\t \t// redirect\n\t \t$this->app->redirect('forum');\n\t }\n\t \n\t \n // get board\n $board = $boards_model->get_item((int)$thread['board_id']);\n $board = $board[0];\n \n // set page title\n $this->view->add('page_title',\n 'Viewing thread: ' . $thread['name'] );\n \n // set index action\n $this->view->add('index_action',\n $this->app->form_path('forum'));\n \n // set board action\n $this->view->add('board_action',\n $this->app->form_path('forum/board/'.$board['id']));\n \n // good\n $this->view->add('board_name', $board['name'] );\n\t \n\t // need an action message\n\t $action_message = null;\n\t \n\t // init text area values\n\t $name_value = '';\n\t $post_value = '';\n\t \n\t \n\t // check for post\n\t if( $_SERVER['REQUEST_METHOD'] == 'POST' &&\n\t \tisset($_POST['name']) &&\n\t \t$_POST['name'] != null &&\n\t \tisset($_POST['post']) &&\n\t \t$_POST['name'] != null \n\t ){\n\t \t\n\t \t// add success\n\t \t$success = $posts_model->new_item( \n\t \t\t$this->app->user->get_user_id(), $thread_id, $_POST );\n\t \t\n\t \t// test for success\n\t \tif( $success ){\n\t \t\n\t \t\t// increment reply count\n\t \t\t$threads_model->increment_reply( $thread_id );\n\t \t\t\t \t\n\t \t\t$action_message = 'Post successfully added.';\n\t \t} else {\n\t \t\t$action_message = 'There was an error adding your post';\n\t \t}\n\t \t\n\t } elseif( $_SERVER['REQUEST_METHOD'] == 'POST' ) {\n\t \t\n\t \t$action_message = 'One or more required fields was not\n\t \t\tprovided';\n\t \t\t\n\t \t// update values\n\t\t\t$name_value = 'value=\"'.$_POST['name'].'\"';\n\t\t\t$post_value = $_POST['post'];\n\t }\n\t \n\t \n\t // add them\n\t $this->view->add('name_value',$name_value);\n\t $this->view->add('post_value',$post_value);\n\t \n\t // add actio message\n\t $this->view->add('action_message',$action_message);\n\t \n\t // get limits\n\t $limit = 10;\n\t \n\t // get page\n\t $page = 0;\n\t if( isset($_GET['p']) ){\n\t $page = (int)$_GET['p'];\n\t }\n\t \n\t // get replies\n\t $posts_result = $posts_model->limit($limit)->page($page)->\n\t get_all($thread_id);\n\t \n\t //\n\t $this->view->add('posts_result',$posts_result);\n\t \n\t $reply_count = ($thread==null) ? 0 :(int)$thread['reply_count'];\n\t \n\t // add paging\n\t $this->view->add('page_info',array(\n\t // posts count\n\t 'page_count' => (int)(($reply_count) / $limit)+1,\n\t 'this_page' => $page\n\t ));\n\t \n\t \n\t // add actions\n\t $this->view->add('page_action',\n\t $this->app->form_path('forum/thread/'.$thread_id.'?p='));\n\t \n\t $this->view->add('reply_action',$this->app->\n\t form_path('forum/thread/'.$thread_id.'?p='.$page));\n\t \n\t \n\t // add to the view\n\t $this->view->add('thread_result',$thread);\n\t \n\t \n\t // get wysiwyg extension\n\t $wysiwyg = $this->app->extension('wysiwyg');\n\t \n\t}", "public function show(Messages $messages)\n {\n //\n }", "public function show($id)\n {\n $thread = Thread::find($id);\n if(!$thread) {\n abort(404);\n }\n\n $threads = Thread::orderBy('created_at', 'desc')->paginate(5);\n $data = [\n 'thread' => $thread,\n 'threads' => $threads\n ];\n return view('ask-view')->with('data', $data);\n }", "function display_message($message)\r\n {\r\n Display :: normal_message($message);\r\n }", "public function show($id)\n {\n $post = DB::select(\"SELECT Forum.id, Title, forum.created_at, Message, HasAttachments, Users.Username\n FROM Forum\n JOIN Users on Users.id = Author\n WHERE forum.id = $id\");\n\n $thread = DB::select(\"SELECT forum_comments.id, Users.Username, forum_comments.created_at, Message, HasAttachments\n FROM forum_comments\n JOIN users ON users.id = forum_comments.Author\n WHERE Post = $id\");\n\n return view('ForumThread', compact('post'), compact('thread'));\n }", "public function view(User $user, Thread $thread)\n {\n //da implementare\n }", "public function newAction()\n {\n $entity = new Thread();\n $form = $this->createCreateForm($entity);\n\n return $this->render('APiszczekDemoBundle:Thread:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "function _show_topic() {\n\n\t\t$_posts_per_page = !empty(module('forum')->USER_SETTINGS['POSTS_PER_PAGE']) ? module('forum')->USER_SETTINGS['POSTS_PER_PAGE'] : module('forum')->SETTINGS['NUM_POSTS_ON_PAGE'];\n\n\t\tif (!module('forum')->SETTINGS['ALLOW_PRINT_TOPIC']) {\n\t\t\treturn module('forum')->_show_error('Print topic is disabled');\n\t\t}\n\n\t\tmain()->NO_GRAPHICS = true;\n\n\t\t$topic_id = intval($_GET['id']);\n\n\t\t// Get topic info\n\t\t$topic_info = db()->query_fetch('SELECT * FROM '.db('forum_topics').' WHERE id='.intval($topic_id).' LIMIT 1');\n\t\tif (empty($topic_info)) {\n\t\t\treturn '';\n\t\t}\n\t\t?>\n<html>\n<head>\n<title><?php echo $topic_info['name']?></title>\n<style type=\"text/css\">\n<!--\ntd, p, div\n{\n\tfont: 10pt verdana;\n}\n.smallfont\n{\n\tfont-size: 11px;\n}\n.tborder\n{\n\tborder: 1px solid #808080;\n}\n.thead\n{\n\tbackground-color: #EEEEEE;\n}\n.page\n{\n\tbackground-color: #FFFFFF;\n\tcolor: #000000;\n}\n-->\n</style>\n</head>\n<body class=\"page\">\n\t\t<?php\n\n\t\techo \"<a href='\".process_url(\"./?object=forum&action=view_topic&id=\".$topic_id).\"'><b>\".$topic_info[\"name\"].\"</b></a><br/>\".PHP_EOL;\n\t\t// Prepare SQL query\n\t\t$sql = 'SELECT * FROM '.db('forum_posts').' WHERE topic='.$topic_id;\n\t\t$order_by = ' ORDER BY created ASC ';\n\t\tlist($add_sql, $pages, $topic_num_posts) = common()->divide_pages($sql, null, null, $_posts_per_page);\n\n\t\tif (!empty($pages))\n\t\t {\n\t\t\techo '<br /><small>Pages: '.$pages.'</small>'.PHP_EOL;\n\t\t }\n\n\t\techo '<BR>';\n\t\t// Init bb codes module\n\t\t$BB_OBJ = _class('bb_codes');\n\t\t// Process posts\n\t\t$Q = db()->query($sql. $order_by. $add_sql);\n\t\twhile ($post_info = db()->fetch_assoc($Q))\n\t\t {\n\t\t ?>\n<table class=\"tborder\" cellpadding=\"6\" cellspacing=\"1\" border=\"0\" width=\"100%\">\n <tr>\n\t<td class=\"page\">\n\t\t<table cellpadding=\"0\" cellspacing=\"0\" border=\"0\" width=\"100%\">\n\t\t <tr valign=\"bottom\">\n\t\t\t<td style=\"font-size:14pt\"><?php echo _prepare_html($post_info['user_name'])?></td>\n\t\t\t<td class=\"smallfont\" align=\"right\"><?php echo _format_date($post_info['created'], 'long')?></td>\n\t\t </tr>\n\t\t</table>\n\t\t<hr/>\n\t\t<div><?php echo $BB_OBJ->_process_text($post_info['text'])?></div>\n\t</td>\n </tr>\n</table>\n<br/>\n\t\t <?php\n\t\t }\n\t\techo '</body></html>';\n\t}", "function show()\n {\n $messages = $this->Session->read( 'messages' );\n $html = '';\n \n // Add a div for each message using the type as the class\n foreach ($messages as $type => $msgs)\n {\n foreach ($msgs as $msg)\n {\n if (!empty($msg)) {\n $html .= \"<div class='$type'><p>$msg</p></div>\";\n } \n }\n }\n $html .= \"</div>\";\n \n // Clear the messages array from the session\n $this->Session->del( 'messages' );\n \n return $this->output( $html );\n }", "public function viewtopicAction($thread_id){\n\t\t$per_page = 20;\n\n\t\t# Chargement du manager\n\t\t$this->load_manager('forum', 'base_app');\n\n\t\t# On commpte le nombre de message\n\t\t$NbMessage = $this->app->db->count(PREFIX . 'forum_message', array('thread_id =' => $thread_id));\n\n\t\t# On recupere les messages\n\t\t$Messages = $this->manager->forum->getMessagesByThreadId($thread_id, $per_page, getOffset($per_page));\n\n\t\t# Recuperation infos topic\n\t\t$Thread = new Basethread($this->app->db->get_one(PREFIX . 'forum_thread', array('id =' => $thread_id)));\n\n\t\t# On traite la pagination\n\t\t$Pagination = new Zebra_Pagination();\n\t\t$Pagination->records($NbMessage);\n\t\t$Pagination->records_per_page($per_page);\n\n\t\tif( $this->isModerateur() == true ):\n\t\t\t$this->app->smarty->assign('Forums', $this->manager->forum->getAllForums());\n\t\tendif;\n\t\t\n\t\t# Envoie a smarty\n\t\t$this->app->smarty->assign(array(\n\t\t\t'ctitre'\t\t=>\t'Forum :: ' . $Thread->titre,\n\t\t\t'Messages'\t\t=>\t$Messages,\n\t\t\t'Thread'\t\t=>\t$Thread,\n\t\t\t'Pagination'\t=>\t$Pagination,\n\t\t\t'Forum'\t\t\t=>\tnew myObject( $this->app->db->get_one(PREFIX . 'forum', array('id =' => $Thread->forum_id)) )\n\t\t));\n\n\t\tif( $_SESSION['utilisateur']['id'] != 'Visiteur' ):\n\t\t\t$this->getFormValidatorJs();\n\n\t\t\t$this->app->load_web_lib('markitup/skins/simple/style.css','css');\n\t\t\t$this->app->load_web_lib('markitup/bbcode/style.css','css');\n\t\t\t$this->app->load_web_lib('markitup/jquery.markitup.js','js');\n\t\t\t$this->app->load_web_lib('markitup/bbcode/set.js','js');\n\t\tendif;\n\t\t\n\t\t# Generation de la page\n\t\treturn $this->app->smarty->fetch(BASE_APP_PATH . 'view' . DS . 'forum' . DS . 'viewtopic.tpl');\n\n\t}", "public function showAction($id)\n {\n $em = $this->getDoctrine()->getManager();\n\n $message = $em->getRepository('ThiefaineReferentielBundle:Message')->find($id);\n\n if (!$message) {\n throw $this->createNotFoundException(\"Impossible de trouver le message.\");\n }\n\n $showForm = $this->createShowForm($message);\n $twig = 'ThiefaineReferentielBundle:Message:show.html.twig';\n $paramTwig = array(\n 'message' => $message,\n 'show_form' => $showForm->createView(),\n );\n\n return $this->render($twig,$paramTwig);\n }", "public function show($id)\n\t{\n\t\t$message = Message::find($id);\n\t\t$this->layout->title = $message->name;\n\n\t\t//$users = \\View::make('common/list');\n\t\t//$users->items = $message->users()->paginate();\n\n\t\t$view = \\View::make('common.tabs');\n\t\t$view->tabs = array(\n\t\t\t\t'Overview' => 'Overview',\n\t\t\t\t'Tasks' => 'Tasks',\n\t\t\t\t'Messages' => 'Messages',\n\t\t\t\t'Messages' => 'Messages',\n\t\t\t\t'Files' => 'Files',\n\t\t\t\t'Time' => 'Time',\n\t\t\t\t'Notebook' => 'Notebook',\n\t\t\t\t'Billing' => 'Billing',\n\t\t\t\t'People' => 'People'\n\t\t\t);\n\n\t\t$this->layout->content = $view;\n\t}", "public function show(MessageRecipient $messageRecipient)\n {\n //\n }", "function mentionMeShowThreadStart()\n{\n\tglobal $mybb, $mentionScript, $mentionQuickReply,\n\t$mentionedIDs, $lang, $tid, $templates;\n\n\t// we only need the extra JS and Quick Reply additions if we are allowing multiple mentions\n\tif ($mybb->settings['mention_multiple']) {\n\t\t$multi = '_multi';\n\t\teval(\"\\$mentionQuickReply = \\\"\" . $templates->get('mentionme_quickreply_notice') . \"\\\";\");\n\n\t\t$mentionedIDs = <<<EOF\n\n\t<input type=\"hidden\" name=\"mentioned_ids\" value=\"\" id=\"mentioned_ids\" />\nEOF;\n\t}\n\n\tif ($mybb->settings['mention_minify_js']) {\n\t\t$min = '.min';\n\t}\n\n\t$mentionScript = <<<EOF\n<script type=\"text/javascript\" src=\"jscripts/MentionMe/thread{$multi}{$min}.js\"></script>\n\nEOF;\n}", "public function view(User $user, CForumThread $thread)\n {\n //\n }", "public function show(Channel $channel , Thread $thread,TrendingThreads $trending)\n {\n\n $trending->push($thread);\n\n $thread->increment('views');\n \n \treturn view('threads.show',compact('channel','thread'));\n\n }", "public function show(Thread $thread)\n {\n $thread->load('posts', 'posts.author');\n\n return view('threads.show', compact('thread'));\n }", "function show_single_message($id, $board){\n\t\tglobal $print, $x7s, $x7c, $db, $prefix;\n\t\t$body=\"<script language=\\\"javascript\\\" type=\\\"text/javascript\\\">\n function do_delete(url){\n if(!confirm('Vuoi davvero cancellare il messaggio?'))\n return;\n\n window.location.href=url;\n }\n </script>\n\t\t\";\n\t\t$indice=indice_board();\n\t\t$maxmsg=10;\n\t\t$navigator='';\n\t\t\n\t\tif(isset($_GET['startfrom'])){\n\t\t\t$limit=$_GET['startfrom'];\n\t\t}\n\t\telse\n\t\t\t$limit=0;\n\t\t\n\t\t$query = $db->DoQuery(\"SELECT count(*) AS total FROM {$prefix}boardmsg WHERE id='{$id}' OR father='{$id}'\");\n\t\t$row = $db->Do_Fetch_Assoc($query);\n\t\t$total = $row['total'];\n\n\t\t\n\t\t\n\t\tif($total > $maxmsg){\n\t\t\t$i=0;\n\t\t\twhile($total > 0){\n\t\t\t\tif((isset($_GET['startfrom']) && $_GET['startfrom'] == $i) || (!isset($_GET['startfrom']) && $i == 0))\n\t\t\t\t\t$navigator .= \"<a href=\\\"index.php?act=boards&board=$board[id]&message=$id&startfrom=$i\\\"><b>[\".($i+1).\"]</b></a> \";\n\t\t\t\telse\n\t\t\t\t\t$navigator .= \"<a href=\\\"index.php?act=boards&board=$board[id]&message=$id&startfrom=$i\\\">\".($i+1).\"</a> \";\n\t\t\t\t$i++;\n\t\t\t\t$total -= $maxmsg;\n\t\t\t\t\n\t\t\t}\n\t\t\t$navigator.=\"<br>\";\n\t\t}\n\t\t\n\t\t\t\n\t\t$limit_min = $limit * $maxmsg;\n\t\t$limit_max = $maxmsg;\n\t\t\n\t\t$query = $db->DoQuery(\"SELECT \tb.id AS id,\n\t\t\t\t\t\tb.father AS father,\n\t\t\t\t\t\tb.user AS user,\n\t\t\t\t\t\tb.body AS body,\n\t\t\t\t\t\tb.board AS board,\n\t\t\t\t\t\tb.time AS time,\n\t\t\t\t\t\tb.replies AS replies,\n\t\t\t\t\t\tu.avatar AS avatar,\n\t\t\t\t\t\tb.anonymous as anonymous\n\t\t\t\t\tFROM {$prefix}boardmsg b, {$prefix}users u\n\t\t\t\t\tWHERE\tb.user = u.username AND\n\t\t\t\t\t\t(b.id='{$id}' OR father='{$id}')\n\t\t\t\t\t\tORDER BY time DESC LIMIT $limit_min, $maxmsg\");\n\t\t\n\t\t//Head message\n\t\t$unread='';\n\t\t$unreads = get_unread();\n\n\t\tif(!$board['readonly'] || checkIfMaster()){\n\t\t\t$body .=\"<a href=./index.php?act=boards&send=\".$board['id'].\"&reply=\".$id.\">Replica</a><br>\";\n\t\t}\n\t\t$body.=\"<a href=\\\"index.php?act=boards&board=\".$board['id'].\"\\\">Torna alla board</a><br>\";\n\t\t\n\t\t$body .= $navigator;\n\t\t$object = \"\";\n\t\t$url_regexp = \"/http(s)?:\\/\\/[^[:space:]]+/i\";\n\n\t\t$body .=\"<table width=\\\"100%\\\" cellspacing=0>\";\n\n\t\twhile($row = $db->Do_Fetch_Assoc($query)){\n\t\t\t$avatar=\"<br>\".date(\"j/n/Y G:i\", $row['time']);\n\t\t\tif($row['avatar']!=''){\n\t\t\t\t$avatar.=\"<br><img src=\\\"$row[avatar]\\\" width=\\\"100\\\" height=\\\"100\\\">\";\n\t\t\t}\n\t\t\t\n\t\t\t$unread='';\n\t\t\tif(isset($unreads[$row['id']])){\n\t\t\t\t$unread = \"<b>(Nuovo)</b>\";\n\t\t\t\t$db->DoQuery(\"DELETE FROM {$prefix}boardunread WHERE id='{$row['id']}' AND user='{$x7s->username}'\");\n\t\t\t}\n\t\t\t\n\t\t\t$nb = board_msg_split($row['body']);\n\t\t\t$msg = $nb[0];\n\t\t\t$object = $nb[1];\n\n\t\t\t$user = \"<a onClick=\\\"\".\n\t\t\t\tpopup_open(500, 680, \"index.php?act=sheet&pg={$row['user']}\",\n\t\t\t\t\t\t'sheet_other').\"\\\" >\".$row['user'].\"</a>\".$avatar;\n\n\t\t\tif ($row['anonymous']) {\n\t\t\t\tif (checkIfMaster()) {\n\t\t\t\t\t$user = \"<a onClick=\\\"\".\n\t\t\t\t\t\tpopup_open(500, 680, \"index.php?act=sheet&pg={$row['user']}\",\n\t\t\t\t\t\t\t\t'sheet_other').\"\\\" >\".$row['user'].\"</a><br>(anonimo)\".$avatar;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\t$user = \"Anonimo\";\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t$body.=\"<tr><td class=\\\"msg_row\\\"><b>Utente:</b> $user</td><td class=\\\"msg_row\\\"><b>Oggetto:</b> \".$object.\" \".$unread;\n\t\t\t$msgid=$row['id'];\n\t\t\t$user=$row['user'];\n\t\t\t\n\t\t\tif(($user == $x7s->username && !$board['readonly']) || checkIfMaster()){\n\t\t\t\t$body .=\" <a href=./index.php?act=boards&send=\".$board['id'].\"&modify=\".$msgid.\">[Modify]</a>\";\n\t\t\t}\n\t\t\tif(checkIfMaster()){\n\t\t\t\t$body .=\" <a href=\\\"#\\\" onClick=\\\"javascript: do_delete('./index.php?act=boards&delete=\".$msgid.\"')\\\">[Delete]</a>\";\n\t\t\t}\n\n\t\t\t$msg = preg_replace($url_regexp, '<a href=\"\\\\0\" target=\"_blank\">\\\\0</a>', $msg);\t\n\t\t\t$body.= \"<br><br>\".$msg.\"<br><br><br><br></td></tr>\\n\";\n\t\t}\n\n\t\t$body .= \"</table>\";\n\t\t\n\t\tif(!$board['readonly'] || checkIfMaster()){\n\t\t\t$body .=\"<br><br><a href=./index.php?act=boards&send=\".$board['id'].\"&reply=\".$id.\">Replica</a><br>\";\n\t\t}\n\t\t\n\t\t$body.=\"<a href=\\\"index.php?act=boards&board=\".$board['id'].\"\\\">Torna alla board</a><br>\";\n\t\t\n\t\t$body.=$navigator;\n\t\t$head = \"Board \".$board['name'].\" messaggio: \".$object;\n\t\t\n\t\t$print->board_window($head,$body,$indice);\n\t\t\n\t}", "function Forum_showThread(&$PAGEDATA, &$id) {\n\trequire_once SCRIPTBASE.'ww.incs/bb2html.php';\n\tWW_addCSS('/ww.plugins/forum/frontend/forum.css');\n\t$script='$(function(){$(\".ratings\").ratings();});';\n\tWW_addScript('ratings/ratings.js');\n\tWW_addInlineScript($script);\n\t$thread=dbRow('select * from forums_threads where id='.$id);\n\t$forum_id=$thread['forum_id'];\n\tif (!$thread || !count($thread)) {\n\t\treturn '<em class=\"error\">Error: this thread does not exist!</em>';\n\t}\n\t$c=Forum_getForumBreadcrumbs($PAGEDATA, $thread['forum_id'])\n\t\t.' &raquo; <a href=\"'.$PAGEDATA->getRelativeUrl().'?forum-f='.$forum_id\n\t\t.'&forum-t='.$id.'\">'.htmlspecialchars($thread['name']).'</a>';\n\t$c.='<table id=\"forum-posts\"><tr><th>Author</th><th>Post</th></tr>';\n\t$posts=dbAll(\n\t\t'select * from forums_posts where thread_id='\n\t\t.$id.' and moderated = 1 order by created_date'\n\t);\n\tforeach ($posts as $post) {\n\t\t$user=User::getInstance($post['author_id']);\n\t\tif ($user) {\n\t\t\t$user_name=$user->get('name');\n\t\t\t$user_id=$post['author_id'];\n\t\t\t$user_email=$user->get('email');\n\t\t}\n\t\telse {\n\t\t\t$user_name='unknown';\n\t\t\t$user_id=0;\n\t\t\t$user_email='';\n\t\t}\n\t\t$c.='<tr p-data=\\'({\"id\":'.$post['id']\n\t\t\t.',\"cdate\":\"'.$post['created_date'].'\"'\n\t\t\t.',\"uid\":'.$post['author_id'].'})\\'>'\n\t\t\t.'<td class=\"user-details\"><a name=\"forum-c-'.$post['id']\n\t\t\t.'\"></a>'.htmlspecialchars($user_name).'</td>'\n\t\t\t.'<td><div class=\"post-header\">Posted: '\n\t\t\t.Core_dateM2H($post['created_date'], 'datetime')\n\t\t\t.'</div></td></tr>';\n\t\t$count_posts=$user_id\n\t\t\t?dbOne(\n\t\t\t\t'select count(id) from forums_posts where author_id='.$user->get('id'),\n\t\t\t\t'count(id)'\n\t\t\t)\n\t\t\t:0;\n\t\t$emailHash=md5(trim(strtolower($user_email)));\n\t\t\n\t\t$c.='<tr><td><img class=\"avatar\" data-uid=\"'.$user_id.'\" />'\n\t\t\t. '<span>Posts: '.$count_posts.'</span>'\n\t\t\t. '<p>Helpfulness:'\n\t\t\t. '<span class=\"ratings\" id=\"forum_user_'.$user_email.'\"'\n\t\t\t. ' type=\"forum_user\">rating</span></p>';\t\t\t\t\n\n\t\t$c.='</td><td class=\"post\">'.bb2html($post['body'])\n\t\t\t.'</td></tr>';\n\t}\n\t$c.='</table>';\n\t// { post form\n\tif (isset($_SESSION['userdata']) && $_SESSION['userdata']['id']) {\n\t\t$c.='<div id=\"forum-post-submission-form\"><script defer=\"defer\">var forum_id='\n\t\t\t.$forum_id.',forum_thread_id='.$id.';</script></div>';\n\t\tWW_addScript('//cdn.ckeditor.com/4.4.3/standard/ckeditor.js');\n\t\tWW_addScript('//cdn.ckeditor.com/4.4.3/standard/adapters/jquery.js');\n\t\tWW_addScript('forum/frontend/forum.js');\n\t}\n\telse {\n\t\t$c.='<div class=\"forum-not-logged-in\">In order to post to this thread,'\n\t\t\t.' you must <a href=\"/_r?type=loginpage\">login'\n\t\t\t.'</a> first.</div>';\n\t}\n\t// }\n\treturn $c;\n}", "public function show($id)\n {\n //\n $message = Message::where('id', $id)->first();\n return view('back-end.message.show', compact('message'));\n }", "public function _showDisplayedMessage($message,$asString=false){\n\t\treturn $this->_showMessage($message->getContent(),$message->getType(),$message->getTimerInterval(),$message->getDismissable(),true,$asString);\n\t}", "function threadShow($tally, $act, $dir='DESC', $str=''){\n\t/*\n\t * Show the general scene start for a thread and then all related posts related to that thread/topic.\n\t * $tally sets number of posts per page\n\t * $direction sets order to either ASC of DESC (Newest or Oldest post first)\n\t */\n\n\n\t#uID is the current user/viewer looking at page,\n\t#hID is the handler/creator of actual thread\n\t$uID=$hID=$hName=$priv='';\n\t#for query string\n\t$rqID=$rtID=$tTitle=$twID=$wID=$testStr=$btns='';\n\n\t#get requested thread id\n\t$rqID = $_GET['tID']; #$rID = requested thread id\n\n\n\n\t#dumpDie($_SESSION['Privilege']);\n\n\t#get user creds\n\tif(isset($_SESSION['UserID']))\t { $hID = $_SESSION['UserID']; } #uID = ''\n\tif(isset($_SESSION['Privilege'])){ $priv = $_SESSION['Privilege']; } ##priv = ''\n\n\t#get Post modifiers to pass on to 'populate' existing post with\n\tif(isset($_GET['pWeather'])){ $wID = $_GET['pWeather']; }\n\n\t$sql = \"SELECT ThreadID, CatID, PostID, UserID, ThreadFeaturing, ThreadType, ThreadTitle, ThreadRating, ThreadPhaseOfDay, ThreadTimeOfDay, ThreadWeather, ThreadLocation, ThreadContent, ThreadNotes, ThreadSummary, ThreadTag, DatePostThread, DatePullThread, DateCreated, LastUpdated FROM ma_Threads where ThreadID = {$rqID}\n\tORDER BY PostID $dir;\";\n\n\n\t$str .= '<!-- start general content -->\n\t<div class=\"col-sm-9 col-xs-12 pull-right\">';\n\n\t# connection comes first in mysqli (improved) function\n\t$result = mysqli_query(IDB::conn(),$sql) or die(trigger_error(mysqli_error(IDB::conn()), E_USER_ERROR));\n\tif (mysqli_num_rows($result) > 0)//at least one record!\n\t{//show results\n\t\twhile($row = mysqli_fetch_assoc($result))\n\t\t{# process each row\n\t\t\t$catID \t \t\t\t= (int)$row['CatID'];\n\t\t\t#$uID \t \t\t\t= (int)$row['UserID']; #owner/creator of thread\n\t\t\t$uID \t\t\t\t\t= (isset($row['UserID'])) \t? $row['UserID'] : 0;\n\n\t\t\t$rtID \t \t\t\t= (int)$row['ThreadID'];\n\n\t\t\t$tTitle \t\t\t= $row['ThreadTitle'];\n\t\t\t$titleEncoded = str_replace(' ', '_', $tTitle); #URL safe\n\n\t\t\t$tType \t\t\t\t= $row['ThreadType'];\n\t\t\t$tRate \t\t\t\t= $row['ThreadRating'];\n\t\t\t$tRateEncoded = str_replace(' ', '_', $tRate); #URL safe\n\n\t\t\t$phase \t\t\t\t= $row['ThreadPhaseOfDay'];\n\t\t\t$phaseEncoded = str_replace(' ', '_', $phase); #URL safe\n\n\t\t\t$time \t\t\t\t= $row['ThreadTimeOfDay'];\n\t\t\t#add 67 seconds to time stamp\n\t\t\t$time \t\t\t\t= date(\"m/d/Y h:i:s a\", time() + 67);\n\t\t\t$timeEncoded = str_replace(' ', '_', $time); #URL safe\n\n\t\t\t$tWeather \t\t= $row['ThreadWeather']; #thread weather\n\t\t\t$twEncoded \t\t= str_replace(' ', '_', $twID); #URL safe\n\n\t\t\t$location \t\t= $row['ThreadLocation'];\n\t\t\t$locationEncoded = str_replace(' ', '_', $location); #URL safe\n\t\t\t$when \t\t\t\t= 'when';\n\t\t\t#add 67 seconds to time stamp\n\t\t\t#$time \t\t\t\t= date(\"m/d/Y h:i:s a\", time() + 67);\n\t\t\t$whenEncoded = str_replace(' ', '_', $when); #URL safe\n\n\n\t\t\t#handler - current user viewing is X\n\t\t\t#$hID = $_SESSION['UserID'];\n\t\t\t$hID = (isset($_SESSION['UserID'])) \t? $_SESSION['UserID'] : 0;\n\n\n\t\t\t#QUERY STRINGS for buttons - this way its easier to edit/revise them all in one place\n\t\t\t$pQueryAdd = '?act=postAdd';\n\t\t\t$pQueryAdd .= '&uID=' . $hID\n\t\t\t\t\t\t\t\t\t.\t '&cat=' . $catID\n\t\t\t\t\t\t\t\t\t. '&tID=' . $rtID\n\t\t\t\t\t\t\t\t\t. '&ttl=' . $titleEncoded\n\t\t\t\t\t\t\t\t\t. '&typ=' . $tType\n\t\t\t\t\t\t\t\t\t. '&rtg=' . $tRateEncoded\n\t\t\t\t\t\t\t\t\t. '&wet=' . $twEncoded\n\t\t\t\t\t\t\t\t\t. '&phs=' . $phaseEncoded\n\t\t\t\t\t\t\t\t\t. '&tme=' . $timeEncoded\n\t\t\t\t\t\t\t\t\t. '&loc=' . $locationEncoded\n\t\t\t\t\t\t\t\t\t. '&whn=' . $whenEncoded; #addd min 67 seconds to it...\n\t\t\t#URL Sanitized\n\t\t\t$pQueryAdd = htmlspecialchars($pQueryAdd, ENT_QUOTES);\n\t\t\t#$pQueryAdd = htmlentities($pQueryAdd);\n\t\t\t#$pQueryAdd = rawurlencode ($pQueryAdd);\n\n\t\t\t#dumpDie($pQueryAdd);\n\n\t\t\t$pQueryEdit = '?act=threadEdit&tID=' . $rtID . '&title=' . $titleEncoded;\n\t\t\t#URL Sanitized\n\t\t\t$pQueryEdit = htmlspecialchars($pQueryEdit, ENT_QUOTES);\n\t\t\t$pQueryEdit = htmlentities($pQueryEdit);\n\n\t\t\t$pQueryRemove = '?act=threadRemove&tID=' . $rtID . '&title=' . $titleEncoded;\n\t\t\t#URL Sanitized\n\t\t\t$pQueryRemove = htmlspecialchars($pQueryRemove, ENT_QUOTES);\n\t\t\t$pQueryRemove = htmlentities($pQueryRemove);\n\n\t\t\t$pQueryLock = '?act=threadLock&tID=' . $rtID . '&title=' . $titleEncoded;\n\t\t\t#URL Sanitized\n\t\t\t$pQueryLock = htmlspecialchars($pQueryLock, ENT_QUOTES);\n\t\t\t$pQueryLock = htmlentities($pQueryLock);\n\n\t\t\t#if category matches selected category show\n\t\t\tif($rtID){\n\n\t\t\t\t#add leading zeros...\n\t\t\t\t$rIDformatted ='';\n\t\t\t\t$rIDformatted = str_pad( $rtID, 4, \"0\", STR_PAD_LEFT );\n\n\t\t\t\t#show threadHandler - make link to profile if logged in\n\t\t\t\tif(!empty($priv)){\n\t\t\t\t\t$hName = '<a href=\"' . VIRTUAL_PATH . 'users/userProfile.php?act=show&user=' . $uID . '\" title=\"\">' . get_hName($uID) . '</a>';\n\t\t\t\t}else{\n\t\t\t\t\t#if it's not our memeber, make link meaningless\n\t\t\t\t\t$hName = get_hName($uID);\n\t\t\t\t}\n\n\t\t\t\t#display content\n\t\t\t\t$str .= '<h2 class=\"panel-title\"><b>' . $tTitle . ' <span class=\"text-muted\"></b><small>(#TiD-' . $rtID . ')</small></span></a> <span class=\"pull-right\"><span class=\"glyphicon glyphicon-pencil text-muted\"></span> ' . $hName .'</span></h2>\n\n\t\t\t\t<p><br />'. nl2br($row['ThreadContent']) . '</p>';\n\t\t\t\t#intial description/staging for thread\n\n\n\t\t\t\t$threadTag = $row['ThreadTag'];\n\n\t\t\t\t#get Codenames of characters tagged\n\t\t\t\t#get all unique id sets\n\t\t\t\t$sqlAllTags = \"SELECT DISTINCT PostTags FROM ma_Posts WHERE ThreadID = $rtID\";\n\n\t\t\t\t$txt = '';\n\n\t\t\t\t#make tags for thread\n\t\t\t\t$resultAllTags = mysqli_query(IDB::conn(), $sqlAllTags) or die(trigger_error(mysqli_error(IDB::conn()), E_USER_ERROR));\n\n\t\t\t\t//at least one record!\n\t\t\t\tif (mysqli_num_rows($resultAllTags) > 0){//show results\n\t\t\t\t\t$count = 0;\n\n\t\t\t\t\t#process id sets into string, add duplicates removed\n\t\t\t\t\twhile ($row = mysqli_fetch_assoc($resultAllTags))\n\t\t\t\t\t{//dbOut() function is a 'wrapper' designed to strip slashes, etc. of data leaving db\n\t\t\t\t\t\t$txt .= $row['PostTags'] . 'x';\n\t\t\t\t\t}\n\n\t\t\t\t\t#remove double commas\n\t\t\t\t\t$txt = str_replace('xx',',', $txt);\n\t\t\t\t\t$txt = str_replace('x',',', $txt);\n\n\t\t\t\t\t#remove duplicates\n\t\t\t\t\t$txt = implode(',', array_unique(explode(',', $txt)));\n\n\t\t\t\t\t#format numbers to row comma quoted delinated row with\n\t\t\t\t\t$txt = \"'\" . str_replace(array(\"'\", \",\"), array(\"\\\\'\", \"','\"), $txt) . \"'\";\n\n\t\t\t\t\t#removing trailing comma and or empty/white space or combos there of.\n\t\t\t\t\t$myStr = str_replace(\",''\",'', $txt);\n\t\t\t\t}\n\n\t\t\t\t@mysqli_free_result($resultAllTags); //free resources\n\n\t\t\t\t$postTagsNew = $sqlCharTags = '';\n\t\t\t\t//we might not have any tags\n\t\t\t\tif($txt !==''){\n\t\t\t\t\t$sqlCharTags = \"SELECT Codename, CharID, Overview FROM ma_Characters WHERE CharID IN ($txt) ORDER BY Codename;\";\n\n\t\t\t\t\t$resultCharTags = mysqli_query(IDB::conn(), $sqlCharTags) or die(trigger_error(mysqli_error(IDB::conn()), E_USER_ERROR));\n\n\t\t\t\t\t//at least one record!\n\t\t\t\t\tif (mysqli_num_rows($resultCharTags) > 0)\n\t\t\t\t\t{//show results\n\n\t\t\t\t\t\t$count = 0;\n\t\t\t\t\t\t$postTagsNew .= '<p>Featuring: ';\n\n\t\t\t\t\t\twhile ($row = mysqli_fetch_assoc($resultCharTags))\n\t\t\t\t\t\t{//dbOut() function is a 'wrapper' designed to strip slashes, etc. of data leaving db\n\t\t\t\t\t\t\t$cName \t\t\t = $row['Codename'];\n\t\t\t\t\t\t\t$cNameEncode = str_replace(' ', '_', $cName); \t#URL safe\n\t\t\t\t\t\t\t#$twEncoded = str_replace(' ', '_', $twID); \t\t#URL safe\n\t\t\t\t\t\t\t#$titleEncoded = str_replace(' ', '_', $title);\t#URL safe\n\n\t\t\t\t\t\t\t$cID \t\t\t = $row['CharID'];\n\t\t\t\t\t\t\t$cOverivew = $row['Overview'];\n\n\t\t\t\t\t\t\t#add in comma/seperator\n\t\t\t\t\t\t\tIf($count++ >= 1){ $postTagsNew .= ', ';}\n\n\t\t\t\t\t\t\t$postTagsNew .= '<a href=\"' . VIRTUAL_PATH . 'characters/profile.php?CodeName=' . $cNameEncode . '&id=' . $cID . '&act=show\" data-toggle=\"tooltip\" data-placement=\"right\" title=\"' . $cOverivew . '\"\n\t\t\t\t\t\t\t>' . $cName . '</a>';\n\t\t\t\t\t\t}\n\t\t\t\t\t\t$postTagsNew .= '</p>';\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t$str .= $postTagsNew;\n\n\t\t\t\t#THREAD queries addendums (NOT POSTS!)\n\t\t\t\t#we are using $rID = requested thread id instead of $rtID\n\n\t\t\t\t#GET posts - page them\n\n\n\n\t\t\t#Make the btns\n\t\t\t/*\n\t\t\t\t#we need a handler id for edit, lock and delete options -- handler is the registered created of that post or thread...\n\t\t\t*/\n\n\n\t\t\tif(!empty($priv)){ $btns .= mk_btns4posts($priv, $hID, $uID, $pQueryAdd, $pQueryAdd, $pQueryEdit, $pQueryRemove, $pQueryLock); }\n\n\t\t\t#sbow btns before posts.....\n\t\t\t$str .= $btns; #add the btns\n\n\n\n\t\t\t#pass the btns on to get_pPaged()\n\t\t\t$testStr .= get_pPaged($rtID, $tally, $act, $btns, $tTitle, $tType,\n\t\t\t\t$catID, $titleEncoded, $tType, $tRateEncoded, $twEncoded, $phaseEncoded,\n\t\t\t\t$timeEncoded, $locationEncoded, $whenEncoded, $titleEncoded,\n\t\t\t\t$priv, $hID, $uID); #get all psots\n\n\t\t\tif($testStr != ''){\n\t\t\t\t$str .= $testStr;\n\t\t\t\t$str .= '<hr>';\n\t\t\t#no records\n\t\t\t}else{\n\t\t\t\t$str .= \"<div align=center>Houston we have problemo</div>\";\n\t\t\t}\n\t\t}\n\t\t#close it all up\n\n\t\t$str .='</div><!-- END content -->';\n\t\t@mysqli_free_result($result); //free resources\n\t\treturn $str;\n\t\t}\n\t}\n}", "public function showAction($id)\n {\n $em = $this->getDoctrine()->getManager();\n\n $entity = $em->getRepository('APiszczekDemoBundle:Feed')->find($id);\n\n if (!$entity) {\n throw $this->createNotFoundException('Unable to find Thread entity.');\n }\n\n $deleteForm = $this->createDeleteForm($id);\n\n return $this->render('APiszczekDemoBundle:Feeds:show.html.twig', array(\n 'entity' => $entity,\n 'tags' => $em->getRepository('APiszczekDemoBundle:Tag')->findAll(),\n 'searchForm' => $this->searchCreateForm()->createView(),\n 'delete_form' => $deleteForm->createView(),\n ));\n }", "public function show($id)\n {\n $message = Message::findOrFail($id);\n /**\n * mark the message as read\n */\n $message->read = 1;\n $message->save();\n return view('adminDashboard.message.show', compact('message'));\n }", "public function show(Message $message){\n \t//$message = Message::find($id);\n\n \t//Mandar a llamar la vista\n \treturn view('messages.show',[\n \t\t'message' => $message,\n \t]);\n }", "public function show($id)\n {\n // die('ddfdfd');\n $message = message::findOrFail($id);\n // print_r($message);\n // die;\n\n return view ('message.show', compact('message'));\n }", "public function showFeedAction($identifier)\n {\n $thread = $this->container->get('fos_comment.manager.thread')->findThreadByIdentifier($identifier);\n if (!$thread) {\n throw new NotFoundHttpException(sprintf('No comment thread with identifier \"%s\"', $identifier));\n }\n\n return $this->container->get('templating')->renderResponse('FOSCommentBundle:Thread:showFeed.xml.twig', array(\n 'thread' => $thread\n ));\n }", "public function show(Tag $tag, Thread $thread)\n {\n return view(\"thread.show\", [\n \"thread\" => $thread,\n \"comments\" => $thread->comments\n ]);\n }", "public function show($id)\n {\n $message = Message::findOrFail($id);\n $message->read = 1;\n $message->save();\n return view('adminDashboard.message.show', compact('message'));\n }", "public function show($id)\n {\n //find the conversation by id\n $message = Message::findOrFail($id);\n\n return view('user.messages.index', [\n 'message' => $message\n ]);\n }", "public function show($id)\n {\n $thread = Thread::findOrFail($id);\n\n $thread->messages = $thread->messages()\n ->with(['user' => function($query) {\n $query->select('id', 'avatar', 'name', 'agent_name');\n }])\n ->orderBy('created_at', 'desc')\n ->paginate();\n\n $thread->my = Auth::user()->only(['avatar', 'name']);\n\n $thread->markAsRead(Auth::user()->id);\n\n\n if (!is_null(User::select('id')->where('id', $thread->participantsUserIds())->firstOrFail())) {\n return response()->json($thread);\n }\n\n }", "public function show($id)\n\t{\n\t\t$message = Message::findOrFail($id);\n\n\t\treturn View::make('messages.show', compact('message'));\n\t}", "public function show($id)\n {\n $message = Message::findOrFail($id);\n return view('messages.show', compact('message'));\n }", "static private function showMessages() {\n if (isset($_SESSION['messages'])) {\n\n $messages = new View(\"global.messages\", array(\"messages\" => $_SESSION['messages']));\n echo $messages->getHtml();\n // du coup on peut supprimer les messages\n unset($_SESSION['messages']);\n }\n }", "public function actionView($id)\n {\n $model = $this->findModel($id);\n if ($model->parent_id == PreForumBoard::AS_CATEGORY) {\n return $this->render('boards', [\n 'model' => $model,\n 'forum' => $model->forumModel,\n 'parentId' => $model->id,\n ]);\n }\n\n $newThread = new PreForumThread();\n\n if ($newThread->load(Yii::$app->request->post())) {\n $newThread->board_id = $model->id;\n if ($newThread->save()) {\n Yii::$app->db->createCommand()->update('{{%pre_forum_board}}', [\n 'updated_at' => time(),\n 'updated_by' => Yii::$app->user->id\n ], 'id=:id', [':id' => $model->id])->execute();\n return $this->refresh();\n }\n }\n \n return $this->render('view', [\n 'model' => $model,\n 'newThread' => $newThread,\n ]);\n }", "public function display( $message )\n {\n if( true === $this->display )\n {\n // Convert for webbrowser?\n if( isset( $_SERVER[\"HTTP_HOST\"] ) )\n {\n $message = nl2br( $message );\n }\n \n // Display\n echo $message;\n }\n }", "public function show($id)\n {\n $messageForum = $this->messageForumRepository->findWithoutFail($id);\n\n if (empty($messageForum)) {\n Flash::error('Message non trouvé.');\n\n return redirect(route('sujetForums.index'));\n }\n\n return view('message_forums.show')->with('messageForum', $messageForum);\n }", "function showThreadsObject()\n\t{\n\t\t$this->tpl->setRightContent($this->getRightColumnHTML());\n\t\t$this->getCenterColumnHTML();\n\t}", "public function actionMsg($message = 'hello world')\n { \n echo \"print with echo : $message ?\" . \"\\n\";\n $this->stdout(\"\\n print with STDOUT : $message?\\n\", Console::BOLD); // Prints a string to STDOUT\n //If you need to build string dynamically combining multiple styles it's better to use ansiFormat:\n echo $this->ansiFormat(\"\\n print with ANSI : $message?\\n\", Console::FG_YELLOW, Console::UNDERLINE); // Formats a string with ANSI codes\n $this->stderr(\"\\n print with STDERR : $message?\\n\", Console::FG_YELLOW, Console::UNDERLINE); // Prints a string to STDERR\n }", "public function show(string $channelSlug, Thread $thread){\n $thread = $this->threads->with('posts', 'user', 'channel')->find($thread->id);\n return view('admin.threads.show')->with(['thread'=>$thread]);\n }", "public function show($id)\n {\n $message = Message::findOrFail($id);\n\n if ($message->read == 0) {\n $message->read = 1;\n $message->save();\n }\n\n return view('materialadmin::message.show')->with('message', $message);\n }", "function ajax_message() {\n\t\t$message_path = $this->get_message_path();\n\t\t$query_string = _http_build_query( $_GET, '', ',' );\n\t\t$current_screen = wp_unslash( $_SERVER['REQUEST_URI'] );\n\t\t?>\n\t\t<div class=\"jetpack-jitm-message\"\n\t\t\t data-nonce=\"<?php echo wp_create_nonce( 'wp_rest' ); ?>\"\n\t\t\t data-message-path=\"<?php echo esc_attr( $message_path ); ?>\"\n\t\t\t data-query=\"<?php echo urlencode_deep( $query_string ); ?>\"\n\t\t\t data-redirect=\"<?php echo urlencode_deep( $current_screen ); ?>\"\n\t\t></div>\n\t\t<?php\n\t}", "public function actionThread($cid = null, $fid = null, $id = null, $slug = null)\r\n {\r\n $thread = Thread::verify($cid, $fid, $id, $slug, Podium::getInstance()->user->isGuest);\r\n if (empty($thread)) {\r\n $this->error(Yii::t('podium/flash', 'Sorry! We can not find the thread you are looking for.'));\r\n return $this->redirect(['forum/index']);\r\n }\r\n\r\n $this->setMetaTags(\r\n $thread->forum->keywords ?: $thread->forum->category->keywords, \r\n $thread->forum->description ?: $thread->forum->category->description\r\n );\r\n \r\n $dataProvider = (new Post)->search($thread->forum->id, $thread->id);\r\n $model = new Post;\r\n $model->subscribe = 1;\r\n\r\n return $this->render('thread', [\r\n 'model' => $model,\r\n 'dataProvider' => $dataProvider,\r\n 'thread' => $thread,\r\n ]);\r\n }", "static function message($message, $showHeader = true) {\n\t\tif(!Director::isLive()) {\n\t\t\t$caller = Debug::caller();\n\t\t\t$file = basename($caller['file']);\n\t\t\tif(Director::is_cli()) {\n\t\t\t\tif($showHeader) echo \"Debug (line $caller[line] of $file):\\n \";\n\t\t\t\techo trim($message) . \"\\n\";\n\t\t\t} else {\n\t\t\t\techo \"<p style=\\\"background-color: white; color: black; width: 95%; margin: 0.5em; padding: 0.3em; border: 1px #CCC solid\\\">\\n\";\n\t\t\t\tif($showHeader) echo \"<b>Debug (line $caller[line] of $file):</b>\\n \";\n\t\t\t\techo Convert::raw2xml(trim($message)) . \"</p>\\n\";\n\t\t\t}\n\t\t}\n\t}", "function message()\r\n\t{\r\n\t\tglobal $IN, $INFO, $SKIN, $ADMIN, $std, $MEMBER, $GROUP;\r\n\t\t$ibforums = Ibf::app();\r\n\r\n\t\t$this->common_header('domessage', 'Board Message', 'You may change the configuration below. HTML is enabled, and BBCode will be enabled in later versions.');\r\n\r\n\t\t$ADMIN->html .= $SKIN->add_td_row(array(\r\n\t\t \"<b>Turn the message system off?</b>\",\r\n\t\t $SKIN->form_yes_no(\"global_message_on\", $INFO['global_message_on'])\r\n\t\t ));\r\n\r\n\t\t$ADMIN->html .= $SKIN->add_td_row(array(\r\n\t\t \"<b>The message to display</b>\",\r\n\t\t $SKIN->form_textarea(\"global_message\", $INFO['global_message'])\r\n\t\t ));\r\n\r\n\t\t$this->common_footer();\r\n\r\n\t}", "public function messages(){\n $count = Auth::user()->newMessagesCount();\n $currentUserId = Auth::user()->id;\n // All threads that user is participating in\n $threads = Thread::forUser($currentUserId)->latest('updated_at')->get();\n\n return view('dashboard.messages', [\n 'heading' => 'Inbox',\n 'threads' => $threads,\n 'currentUserId' => $currentUserId,\n 'count' => $count\n ]);\n }", "private function _writeToScreen($message) {\n echo $message . PHP_EOL;\n }", "function show_message($type,$message) {\n\t\treturn $message;\n\t}", "function atu_showthread()\n{\n\tglobal $mybb, $atujq, $atujs, $atu_link, $tid, $fid;\n\n\tif(can_auto_update())\n\t{\n\t\n\t\t$atujq = '<script src=\"http://code.jquery.com/jquery-latest.js\"></script>\n\t<script>\n\tjQuery.noConflict();\n\t</script>';\n\t\t\n\t\t$atujs = '<script type=\"text/javascript\">\n\tvar time = '.TIME_NOW.';\n\tvar refreshId = setInterval(function()\n\t{\n\t\tjQuery.get(\\'getnewposts.php?tid='.$tid.'}&timestamp=\\'+time,\n\t\tfunction(result) {\n\t\t\tjQuery(\\'#autorefresh\\').append(\\'<span style=\"display: none;\" class=\"new-post\" name=\"post[]\">\\'+result+\\'</span>\\');\n\t\t\tjQuery(\\'#autorefresh\\').find(\".new-post:last\").fadeIn(\\'slow\\');\n\t\t});\n\n\t\ttime = Math.round((new Date()).getTime() / 1000);\n\n\t}, '.intval($mybb->settings['atu_refreshrate']).');\n\t</script>';\n\t} else {\n\t\t$atujq = '';\n\t\t$atujs = '';\n\t}\n\n\tif($mybb->usergroup['cancp'])\n\t{\n\t\t$on = true;\n\t\t$display = true;\n\t\t\n\t\tif($mybb->settings['atu_tf_wlbl'] != 'all')\n\t\t{\n\t\t\t$perms = explode(\"|\",$mybb->settings['atu_tf_wlbl']);\n\t\t\t$ids = explode(\",\",$perms[2]);\n\t\t\t\n\t\t\tif($perms[0] == 'threads')\n\t\t\t{\n\t\t\t\t$thread_in_list = in_array($tid,$ids);\n\t\t\t\t\n\t\t\t\tif($thread_in_list && $perms[1] == 'blacklist')\n\t\t\t\t{\n\t\t\t\t\t$on = false;\n\t\t\t\t} elseif(!$thread_in_list && $perms[1] == 'whitelist') {\n\t\t\t\t\t$on = false;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$display = false;\n\t\t\t}\n\t\t}\n\t\tif($display)\n\t\t{\n\t\t\tif($on)\n\t\t\t{\n\t\t\t\t$atu_link = '<a href=\"showthread.php?tid='.$tid.'&amp;toggle_atu=true&amp;my_post_key='.$mybb->post_code.'\">Turn off auto thread updating in this thread</a><br />';\n\t\t\t} else {\n\t\t\t\t$atu_link = '<a href=\"showthread.php?tid='.$tid.'&amp;toggle_atu=true&amp;my_post_key='.$mybb->post_code.'\">Turn on auto thread updating in this thread</a><br />';\n\t\t\t}\n\t\t}\n\t}\n}", "public function view(User $user, ThreadReply $threadReply)\n {\n //\n }", "public function show($id)\n {\n $message = Message::find($id);\n $message->status = 'Read';\n $message->save();\n return view('admin.message.show', compact('message'));\n }", "function wpbar_message($message) {\r\n\techo \"<div id=\\\"message\\\" class=\\\"updated fade\\\"><p>$message</p></div>\\n\";\r\n}", "function Message_Showing(&$msg, $type) {\n\n\t\t// Example:\n\t\t//if ($type == 'success') $msg = \"your success message\";\n\n\t}", "function Message_Showing(&$msg, $type) {\n\n\t\t// Example:\n\t\t//if ($type == 'success') $msg = \"your success message\";\n\n\t}", "function show_message( $message, $errormsg = false )\n\t{\n\t\tif ( $errormsg ) {\n\t\t\techo '<div id=\"message\" class=\"error\">';\n\t\t} else {\n\t\t\techo '<div id=\"message\" class=\"updated fade\">';\n\t\t}\n\t\techo \"<p><strong>$message</strong></p></div>\";\n\t}", "public function show($id)\n {\n $message = Message::find($id);\n return view('Dashboard.messages', compact('message'));\n }", "public function create()\n {\n\n return view(\"thread.create\");\n }", "public function displayMsg($message) {\n if ($this->getDebug()) {\n echo $message . \"\\n\";\n } else {\n log_message($this->getLogName(), $message);\n }\n }", "public function showMessage($msg){\n// $message += ($msg +\"<br/>\");\n// require APP . 'view/_templates/header.php';\n// require APP . 'view/home/message.php';\n// require APP . 'view/post/index.php';\n// require APP . 'view/_templates/footer.php';\n// return;\n }", "public function show($id)\n {\n $message = Message::findOrFail($id);\n return view('users.message', compact('message'));\n }", "function Message_Showing(&$msg, $type) {\n\t\tif ($type == 'success') {\n\n\t\t\t//$msg = \"your success message\";\n\t\t} elseif ($type == 'failure') {\n\n\t\t\t//$msg = \"your failure message\";\n\t\t} elseif ($type == 'warning') {\n\n\t\t\t//$msg = \"your warning message\";\n\t\t} else {\n\n\t\t\t//$msg = \"your message\";\n\t\t}\n\t}", "function Message_Showing(&$msg, $type) {\n\t\tif ($type == 'success') {\n\n\t\t\t//$msg = \"your success message\";\n\t\t} elseif ($type == 'failure') {\n\n\t\t\t//$msg = \"your failure message\";\n\t\t} elseif ($type == 'warning') {\n\n\t\t\t//$msg = \"your warning message\";\n\t\t} else {\n\n\t\t\t//$msg = \"your message\";\n\t\t}\n\t}", "function Message_Showing(&$msg, $type) {\n\t\tif ($type == 'success') {\n\n\t\t\t//$msg = \"your success message\";\n\t\t} elseif ($type == 'failure') {\n\n\t\t\t//$msg = \"your failure message\";\n\t\t} elseif ($type == 'warning') {\n\n\t\t\t//$msg = \"your warning message\";\n\t\t} else {\n\n\t\t\t//$msg = \"your message\";\n\t\t}\n\t}", "function Message_Showing(&$msg, $type) {\n\t\tif ($type == 'success') {\n\n\t\t\t//$msg = \"your success message\";\n\t\t} elseif ($type == 'failure') {\n\n\t\t\t//$msg = \"your failure message\";\n\t\t} elseif ($type == 'warning') {\n\n\t\t\t//$msg = \"your warning message\";\n\t\t} else {\n\n\t\t\t//$msg = \"your message\";\n\t\t}\n\t}", "function Message_Showing(&$msg, $type) {\n\t\tif ($type == 'success') {\n\n\t\t\t//$msg = \"your success message\";\n\t\t} elseif ($type == 'failure') {\n\n\t\t\t//$msg = \"your failure message\";\n\t\t} elseif ($type == 'warning') {\n\n\t\t\t//$msg = \"your warning message\";\n\t\t} else {\n\n\t\t\t//$msg = \"your message\";\n\t\t}\n\t}", "function Message_Showing(&$msg, $type) {\n\t\tif ($type == 'success') {\n\n\t\t\t//$msg = \"your success message\";\n\t\t} elseif ($type == 'failure') {\n\n\t\t\t//$msg = \"your failure message\";\n\t\t} elseif ($type == 'warning') {\n\n\t\t\t//$msg = \"your warning message\";\n\t\t} else {\n\n\t\t\t//$msg = \"your message\";\n\t\t}\n\t}", "function Message_Showing(&$msg, $type) {\n\t\tif ($type == 'success') {\n\n\t\t\t//$msg = \"your success message\";\n\t\t} elseif ($type == 'failure') {\n\n\t\t\t//$msg = \"your failure message\";\n\t\t} elseif ($type == 'warning') {\n\n\t\t\t//$msg = \"your warning message\";\n\t\t} else {\n\n\t\t\t//$msg = \"your message\";\n\t\t}\n\t}", "function Message_Showing(&$msg, $type) {\n\t\tif ($type == 'success') {\n\n\t\t\t//$msg = \"your success message\";\n\t\t} elseif ($type == 'failure') {\n\n\t\t\t//$msg = \"your failure message\";\n\t\t} elseif ($type == 'warning') {\n\n\t\t\t//$msg = \"your warning message\";\n\t\t} else {\n\n\t\t\t//$msg = \"your message\";\n\t\t}\n\t}", "function Message_Showing(&$msg, $type) {\n\t\tif ($type == 'success') {\n\n\t\t\t//$msg = \"your success message\";\n\t\t} elseif ($type == 'failure') {\n\n\t\t\t//$msg = \"your failure message\";\n\t\t} elseif ($type == 'warning') {\n\n\t\t\t//$msg = \"your warning message\";\n\t\t} else {\n\n\t\t\t//$msg = \"your message\";\n\t\t}\n\t}" ]
[ "0.7481545", "0.7428447", "0.67360944", "0.656908", "0.656908", "0.656908", "0.656908", "0.656908", "0.656908", "0.656908", "0.656908", "0.65352595", "0.6463864", "0.643494", "0.6424983", "0.6418731", "0.6298647", "0.6296274", "0.62384516", "0.6228405", "0.62251866", "0.6224905", "0.6146998", "0.6132969", "0.6045421", "0.60040545", "0.598849", "0.59745854", "0.5955751", "0.59497327", "0.590273", "0.5894451", "0.58941185", "0.58686507", "0.58555526", "0.5827754", "0.5819446", "0.5792388", "0.5783748", "0.5780795", "0.5771104", "0.57627153", "0.57581997", "0.5756202", "0.5749421", "0.57442933", "0.5739127", "0.57208157", "0.56906503", "0.5687852", "0.5660837", "0.5625578", "0.5622111", "0.5593011", "0.5592242", "0.55911744", "0.55816466", "0.5551951", "0.55356115", "0.55355054", "0.55239165", "0.55197155", "0.5519042", "0.55100596", "0.5502745", "0.5496844", "0.5488111", "0.54768056", "0.5472652", "0.5469258", "0.5466423", "0.5465361", "0.546157", "0.5453936", "0.5434858", "0.5431194", "0.54301524", "0.5425708", "0.5423969", "0.5423016", "0.5418231", "0.5413161", "0.5409337", "0.5380278", "0.53755414", "0.53755414", "0.53717345", "0.53682697", "0.5345543", "0.53406", "0.53393376", "0.5338213", "0.5337038", "0.5337038", "0.5337038", "0.5337038", "0.5337038", "0.5337038", "0.5337038", "0.5337038", "0.5337038" ]
0.0
-1
Stores a new message thread.
public function store() { DB::transaction(function () { $url = null; if (request()->hasFile('file')) { $url = $this->files(); } $this->thread = Thread::create([ 'subject' => bin2hex(random_bytes(10)), ]); // Message $this->message = Message::create([ 'thread_id' => $this->thread->id, 'user_id' => request()->user()->id, 'body' => request()->body ?? null, 'file_url' => $url ?? null, 'type' => request()->type ?? null ]); // Sender Participant::create([ 'thread_id' => $this->thread->id, 'user_id' => request()->user()->id, 'last_read' => new Carbon, ]); // Recipients if (request()->has('recipients')) { $this->thread->addParticipant((int) request()->recipients); } }); /** * dispatches an event */ event(new NewMessage( [ 'id' => $this->thread->id, 'users' => $this->thread->users, 'participants' => $this->thread->participants, 'extras' => collect($this->thread->users)->map(function ($user) { return [ 'profile_picture' => $user->profilePictures()->latest('created_at')->first(), 'count' => $this->thread->userUnreadMessagesCount($user->id), 'user_id' => $user->id ]; }), 'messages' => $this->thread->messages ] )); return new ThreadResource($this->thread); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function store($channelID, Request $request, Thread $thread)\n {\n //Validate incoming request\n $request->validate([\n 'reply' => 'required',\n ]);\n\n //Make a reply object and associate with the thread\n $thread->addReply([\n 'reply'=> request('reply'),\n 'expert_id' => auth('expert')->user()->id,\n ]);\n\n return back();\n }", "public function store(Request $request, Thread $thread)\n {\n $message = Message::create(['sender_id' => auth()->id(), 'receiver_id' => request('receiver_id'), \n 'message' => request('message'), 'thread_id' => $thread->id]);\n\n User::findOrFail(request('receiver_id'))->notify(new NewChatMessage($message));\n\n broadcast(new NewMessage($message))->toOthers();\n\n return response(['message' => $message], 200);\n }", "public function store()\n {\n $input = Input::all();\n $thread = Thread::create([\n 'subject' => $input['subject'],\n ]);\n\n // Message\n Message::create([\n 'thread_id' => $thread->id,\n 'user_id' => Auth::id(),\n 'body' => $input['message'],\n ]);\n\n // Sender\n Participant::create([\n 'thread_id' => $thread->id,\n 'user_id' => Auth::id(),\n 'last_read' => new Carbon,\n ]);\n\n // Recipients\n $thread->addParticipant($input['recipient']);\n\n return redirect()->route('messages.show', $thread->id);\n }", "function postNewMessage($user_id, $thread_id, $message)\n\t\t{\n\t\t\t$query=sqlite_exec($this->connection, \"INSERT INTO message(thread_id, user_id, message, date) VALUES($thread_id, $user_id, $message, NOW())\");\n\t\t}", "public function store(Thread $thread)\n {\n $thread->update(['locked' => true]);\n }", "public function store(ThreadRequest $request)\n {\n $request->merge(['user_id' => auth()->id()]);\n $thread = $this->repository->create($request->all());\n\n $thread->creator->notify(new SendSlackThread($thread));\n\n return redirect($thread->path);\n }", "public function store($channel, Thread $thread)\n {\n $thread->subscribe();\n }", "public function store(ThreadRequest $request)\n {\n Auth::user()->saveThread(Thread::new($request));\n\n return redirect()->route('threads.index')\n ->with('flash', 'Your thread has been published.');\n }", "public function store($channelId, Thread $thread, CreatePostRequest $request)\n {\n return $thread->addReply([\n 'user_id' => Auth::user()->id,\n 'body' => request('body'),\n ])->load('owner');\n }", "function store($channelId, Thread $thread, CreatePostRequest $form){\n\n\t\t// #54 remove all codes to $form CreatePostForm\n\t\t\n\t\t// if(Gate::denies('create', new Reply)){\n\t\t// \treturn response(\n\t\t// \t\t'Та дахин дахин нийтлэл оруулж байна, Түр хүлээнэ үү! :)', 429);\n\t\t// } \n\t\t// request()->validate(['body' => 'required|spamfree']);\n\t\t\n\t\treturn $thread->addReply([\t\n\t\t\t'body' => request('body'), \t\t\t\t\n\t\t\t'user_id' => auth()->id()\t\t\t\n\t\t])->load('owner');\n\n\t}", "public function store(ThreadRequest $request) {\n $thread = new Thread;\n \t$thread->title = $request->input('title');\n \t$thread->category = $request->input('category');\n $thread->user_id = Auth::user()->id;\n $thread->save();\n\n $post = new Post;\n $post->title = $request->input('title');\n $post->message = $request->input('message');\n $post->user_id = Auth::user()->id;\n $post->thread_id = $thread->id;\n $post->save();\n\n \treturn redirect('threads/'.$thread->id);\n }", "public function store(StoreThread $form)//\n {\n $channel = collect(config('channel'))->keyby('id')->get($form->channel_id);\n if(!$channel||!auth('api')->user()){abort(404);}\n\n if(auth('api')->user()->no_posting){abort(403,'禁言中');}\n\n if($channel->type==='book'&&(auth('api')->user()->level<1||auth('api')->user()->quiz_level<1)&&!auth('api')->user()->isAdmin()){abort(403,'发布书籍,必须用户等级1以上,答题等级1以上');}\n\n if($channel->type<>'book'&&(auth('api')->user()->level<4||auth('api')->user()->quiz_level<2)&&!auth('api')->user()->isAdmin()){abort(403,'发布非书籍主题,必须用户等级4以上,答题等级2以上');}\n\n if(!$channel->is_public&&!auth('api')->user()->canSeeChannel($channel->id)){abort(403,'不能访问这个channel');}\n\n if(!auth('api')->user()->isAdmin()&&Cache::has('created-thread-' . auth('api')->id())){abort(410,\"不能短时间频繁建立新主题\");}\n\n //针对创建清单进行一个数值的限制\n if($channel->type==='list'){\n $list_count = Thread::where('user_id', auth('api')->id())->withType('list')->count();\n if($list_count > auth('api')->user()->user_level){abort(410,'额度不足,不能创建更多清单');}\n }\n if($channel->type==='box'){\n $box_count = Thread::where('user_id', auth('api')->id())->withType('box')->count();\n if($box_count >=1){abort(410,'目前每个人只能建立一个问题箱');}\n }\n\n $thread = $form->generateThread($channel);\n\n Cache::put('created-thread-' . auth('api')->id(), true, 10);\n\n if($channel->type==='list'&&auth('api')->user()->info->default_list_id===0){\n auth('api')->user()->info->update(['default_list_id'=>$thread->id]);\n }\n if($channel->type==='box'&&auth('api')->user()->info->default_box_id===0){\n auth('api')->user()->info->update(['default_box_id'=>$thread->id]);\n }\n\n $thread = $this->threadProfile($thread->id);\n\n return response()->success(new ThreadProfileResource($thread));\n }", "public function store(Request $request)\n {\n $message = new MessageThreadMessage($request->all());\n $message->thread_id = $request->input('threadId');\n $message->user_id = Auth::user()->id;\n $message->save();\n // TODO: Reload user for data sent back to client\n $message->load('postedBy');\n // TODO: If there's an attachment, add it\n return response()->json($message);\n }", "public function store(StoreThread $request, Thread $thread)\n {\n if ($thread->store()) {\n return redirect('/threads/'.$thread->slug);\n }\n\n return back()->withErrors('Failed to store your threads.');\n }", "public function create()\n\t{\n\n\t\t$post = $this->store('create', '/thread/new');\n\n\t\tredirect('/threads?id=' . $post->id);\n\t}", "public function store(Request $request)\n {\n $thread = new Thread();\n $thread->category_id = $request->category;\n $thread->title = $request->title;\n $thread->body = $request->body;\n $thread->user_id = auth()->id();\n $isSave = $thread->save();\n }", "public function store($channelId, Thread $thread)\n {\n if ($thread->locked) {\n return response(\"Thread is locked\", 422);\n }\n\n try {\n if (Gate::denies('create', new Reply)) {\n return response(\"You are posting too freaquently, Please take a break :)\", 422);\n }\n\n $this->validate(request(), ['body' => ['required', new SpamFree]]);\n\n $reply = $thread->addReply([\n 'body' => request('body'),\n 'user_id' => auth()->id()\n ]);\n } catch (\\Exception $e) {\n return response(\"Sorry, your request could not be saved at the moment.\", 422);\n }\n\n return $reply->load('owner');\n }", "public function store(StoreThread $form)//\n {\n $channel = $form->channel();\n if(empty($channel)||((!$channel->is_public)&&(!auth('api')->user()->canSeeChannel($channel->id)))){abort(403);}\n\n //针对创建清单进行一个数值的限制\n if($channel->type==='list'){\n $list_count = Thread::where('user_id', auth('api')->id())->withType('list')->count();\n if($list_count > auth('api')->user()->user_level){abort(403);}\n }\n if($channel->type==='box'){\n $box_count = Thread::where('user_id', auth('api')->id())->withType('box')->count();\n if($box_count >=1){abort(403);}//暂时每个人只能建立一个问题箱\n }\n $thread = $form->generateThread();\n return response()->success(new ThreadProfileResource($thread));\n }", "public function testMessageThreadsV2MarkThread()\n {\n }", "public function addMessage($message)\n {\n $this->storage[] = $message;\n }", "function setMessage(string $msg, string $type)\n {\n global $CT;\n \n $_SESSION['msgs'][] = array(\n \"type\" => $type,\n \"msg\" => $msg\n );\n }", "public function store($channelId, Thread $thread, CreatePostForm $form)\n {\n if ($reply = $form->persist($thread)) {\n return response([\n 'success' => 'Your reply has been left.',\n 'reply' => $reply->load('user')\n ]);\n }\n }", "public function store(Request $request)\n {\n $this->validate($request, [\n 'topic' => 'required|min:10',\n 'question' => 'required|min:100'\n ]);\n\n $topic = $this->addTopic($request->input('topic'));\n\n if($topic != null) {\n $thread = new Thread;\n $thread->user_id = $this->currentUser()->id;\n $thread->id_topic = $topic->id;\n $thread->question = $request->input('question');\n\n $log = null;\n if($thread->save()) {\n $log = Common::registerLog([\n 'action' => \"membuat diskusi baru.\",\n 'target' => 'thread',\n 'prefix' => 't-create',\n 'target_id' => $thread->id,\n 'actor' => 'user',\n 'actor_id' => Common::currentUser('web')->id\n ]);\n }\n\n if($log != null && $log == true) {\n return redirect(route('user.thread.index'))->with('success', 'Pertanyaan dikirim !');\n }\n return redirect()->back()->with('failed', 'Gagal mengirim pertanyaan, silahkan coba lagi nanti.');\n }\n return redirect()->back()->with('failed', 'Gagal mengirim pertanyaan, silahkan coba lagi nanti.');\n }", "protected static function newMessage()\n {\n self::$message = \\Swift_Message::newInstance();\n }", "public function store(Request $request)\n {\n $details = $request->only('body', 'thread');\n $user = $request->user();\n\n $message = new MessageThreadMessages;\n $message->body = $details['body'];\n $message->message_thread_id = $details['thread'];\n $message->user_id = $user->id;\n $message->time_sent = now();\n $message->save();\n\n return response()->json($message);\n }", "public function addMessage($message, $type) {\n\t\t$messages = $_SESSION[$this->sessionKey];\n\t\t\n\t\t$messages[] = [\n\t\t\t'message' => $message,\n\t\t\t'type' => $type,\n\t\t];\n\t\t\n\t\t$_SESSION[$this->sessionKey] = $messages;\n\t}", "final public function post_thread(Thread $thread) {\r\n\t\tif ($this->user_id && $thread->thread_text && $thread->type) {\r\n\t\t\tif ($thread->type == 1) {\r\n\t\t\t\t$sql = \"INSERT INTO `threads` (thread_text, author_id, date_posted, type, date_play) VALUES ('$thread->thread_text', '$this->user_id', NOW(), '$thread->type', '$thread->date_play')\";\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\t$sql = \"INSERT INTO `threads` (thread_text, author_id, date_posted, type) VALUES ('$thread->thread_text', '$this->user_id', NOW(), '$thread->type')\";\r\n\t\t\t}\r\n\t\t\t$result = $this->dbc->query($sql)\r\n\t\t\tor die ($this->dbc->error);\r\n\t\t\t$thread->thread_id = $this->dbc->insert_id;\r\n\r\n\t\t\t//Push the action\r\n\t\t\t$action = new PostedThread(array(\r\n\t\t\t\t'thread' => $thread,\r\n\t\t\t\t'poster' => clone $this)\r\n\t\t\t);\r\n\t\t\tActionPusher::push_action($action);\r\n\t\t\treturn $thread;\r\n\t\t}\r\n\t\telse {\r\n\t\t\tthrow new UnexpectedValueException('UnexpectedValueException occured on method call post_thread');\r\n\t\t}\r\n\t}", "public function store(CreateMessageForumRequest $request)\n {\n\n $user = Auth::user();\n $sujet = $this->sujetForumRepository->findWithoutFail($request->sujet_forums_id);\n\n // create a MessageForum object \n $message = new MessageForum();\n $message->content= $request->content;\n $message->sujet()->associate($sujet);\n $message->user()->associate($user);\n $message->save(); \n\n Flash::success('Message enregistré avec succès.');\n return Redirect::back();\n }", "function addThread()\n{\n\tif(!isset($db) || $db = NULL || !isset($connection) || $connection = NULL)\n\t{\n\t\t$db = new Database();\n\t\t$connection = $db->mysqli_db_connect();\n\t}\n\t\n\t// Re initialize the Board class\n\tif(!isset($main) || $main = NULL)\n\t{\n\t\t$main = new Board($db, $connection);\n\t}\n\t\n\tif(isset($_SESSION['angemeldet']) && $_SESSION['angemeldet'] == true || $main->boardConfig($main->getThreadBoardID($_GET['threadID']), \"guest_posts\"))\n\t{\n\n\t\tglobal $threadAddStatusArray;\n\t\tglobal $largestNumber;\n\n\t\t$threadAddStatus = false;\n\n\t\t$_SESSION['ID'] = session_id();\n\t\t$getAuthorID = $db->query(\"SELECT id FROM $db->table_accounts WHERE sid=('\".$_SESSION['ID'].\"')\");\n\n\t\twhile ($authorID = mysqli_fetch_object($getAuthorID)) {\n\t\t\t$authorIDResult = $authorID->id;\n\t\t}\n\n\t\t// VARS\n\n\t\t// BOARD ID\n\t\tif(isset($_GET['boardview']) && !isset($_GET['threadID'])) {\n\t\t\t$actualBoard = mysqli_real_escape_string($GLOBALS['connection'], $_GET['boardview']);\n\t\t} else {\n\t\t\t$getBoard = $db->query(\"SELECT main_forum_id FROM $db->table_thread WHERE id=('\".$actualThread.\"')\");\n\t\t\t\n\t\t\twhile($boardIDData = mysqli_fetch_object($getBoard)) {\n\t\t\t\t$actualBoard = $boardIDData->main_forum_id;\n\t\t\t}\n\t\t}\n\n\t\tif ((empty($_POST[\"threadAddArea\"])) || (empty($_POST[\"threadTitleInput\"]))) {\n\t\t\techo 'Sie haben nicht alle benötigten Informationen eingegeben!';\n\n\t\t} else {\n\n\t\t\t$newThreadTitle = mysqli_real_escape_string($GLOBALS['connection'], $_POST[\"threadTitleInput\"]);\n\t\t\t$content \t\t= mysqli_real_escape_string($GLOBALS['connection'], $_POST[\"threadAddArea\"]);\n\n\t\t\tif (! isset($_SERVER['HTTP_X_FORWARDED_FOR'])) {\n\t\t\t$client_ip = $_SERVER['REMOTE_ADDR'];\n\t\t\t}\n\t\t\telse {\n\t\t\t$client_ip = $_SERVER['HTTP_X_FORWARDED_FOR'];\n\t\t\t}\n\n\t\t\tif (strlen($newThreadTitle) \n\t\t\t< 3) {\n\t\t\techo 'Der Titel muss mindestens 3 Zeichen besitzen.';\n\t\t\treturn;\n\t\t\t};\n\n\t\t\tif (strlen($newThreadTitle) >\n\t\t\t200) {\n\t\t\techo 'Der eingegebene Titel ist zu lang. Er darf maximal 200 Zeichen beinhalten.';\n\t\t\treturn;\n\t\t\t};\n\n\t\t\tif (strlen($content) \n\t\t\t< 30) {\n\t\t\techo 'Ihr Beitrag muss mindestens 30 Zeichen besitzen.';\n\t\t\treturn;\n\t\t\t};\n\n\t\t\tif (strlen($content) >\n\t\t\t30000) {\n\t\t\techo 'Ihr Beitrag ist zu lang. Er darf maximal 30000 Zeichen beinhalten.';\n\t\t\treturn;\n\t\t\t};\n\n\t\t\tif (strlen(trim($content)) == 0) {\n\t\t\techo 'Ihr Beitrag darf nicht ausschließlich aus Leerzeichen bestehen!';\n\t\t\treturn;\n\t\t\t};\n\n\t\t\t$insertTime = time();\n\n\n\t\t\t$db->query(\"INSERT INTO $db->table_thread (main_forum_id, title, date_created, last_replyTime,last_post_author_id, posts, author_id) VALUES ('\".$actualBoard.\"', '\".$newThreadTitle.\"', '\".$insertTime.\"', '\".$insertTime.\"','\".$authorIDResult.\"', '0', '\".$authorIDResult.\"')\");\n\t\t\t$db->query(\"INSERT INTO $db->table_thread_posts (thread_id, author_id, date_posted, text) VALUES ((SELECT id FROM $db->table_thread WHERE id=(SELECT max(id) FROM $db->table_thread)), '\".$authorIDResult.\"', '\".$insertTime.\"', '\".$content.\"')\");\n\t\t\t$db->query(\"UPDATE $db->table_accdata SET post_counter=post_counter+1 WHERE account_id=(SELECT id FROM $db->table_accounts WHERE sid=('\".$_SESSION['ID'].\"'))\");\n\t\t\t$db->query(\"UPDATE $db->table_thread SET last_activity=0 WHERE last_activity=1 AND main_forum_id=('\".$actualBoard.\"')\");\n\n\t\t\t$token = mysqli_real_escape_string($GLOBALS['connection'], $_GET['token']);\n\n\t\t\t$tokenCheck = $db->query(\"SELECT token FROM $db->table_thread_saves WHERE token = ('\".$token.\"') AND user_id = (SELECT id FROM $db->table_accounts WHERE sid=('\" . $_SESSION['ID'] . \"'))\");\n\t\t\tif(isset($_GET['token']) && !empty($_GET['token']) && mysqli_num_rows($tokenCheck) >= 1) $db->query(\"DELETE FROM $db->table_thread_saves WHERE token = ('\".$token.\"') AND user_id = (SELECT id FROM $db->table_accounts WHERE sid=('\" . $_SESSION['ID'] . \"'))\");\n\n\t\t\t$rowSQL = $db->query( \"SELECT MAX( id ) AS max FROM $db->table_thread\" );\n\t\t\t$row = mysqli_fetch_array( $rowSQL );\n\t\t\t$largestNumber = $row['max'];\n\t\t\t$db->query(\"UPDATE $db->table_thread SET last_activity=1 WHERE last_activity=0 AND id=('\".$largestNumber.\"')\");\n\n\t\t\t$threadAddStatus = true;\n\t\t}\n\t\t\t$threadAddStatusArray = array(\n\t\t\t'threadAddStatus' => $threadAddStatus, \n\t\t\t'newThreadID' => $largestNumber\n\t\t\t);\n\t\t\t\n\t\t\t\treturn $threadAddStatusArray;\n\t}\n\telse\n\t\treturn;\n}", "public function created(Thread $thread)\n {\n $thread->user->recordActivity('created a new thread:', $thread);\n }", "public function write() {\n\t\t$this->loadModel('Thread');\n\t\tif ($this->request->is('post')) {\n $this->Thread->set('user_id', $this->Auth->user('id'));\n $this->Thread->set('forums_id', $this->params['pass'][0]);\n if ($this->Thread->save($this->request->data)) {\n $this->Session->setFlash('Din tråd har sparats.');\n $this->redirect(array('action' => 'index'));\n } else {\n $this->Session->setFlash('Kunde inte spara tråden.');\n }\n }\n\t}", "public function store(Thread $thread, CreateReplyRequest $request)\n {\n $attributes = [\n 'body' => request('body'),\n 'user_id' => auth()->id(),\n 'thread_id' => $thread->id\n ];\n\n $reply = $thread->addReply($attributes);\n\n return $reply->load('creator');\n }", "public function store($channelId, Thread $thread, Spam $spam)\n {\n $this->validate(request(), ['body' => 'required']);\n $spam->detect(request('body'));\n\n $reply = $thread->addReply([\n 'body' => request('body'),\n 'user_id' => auth()->id()\n ]);\n\n if (request()->expectsJson()) {\n return $reply->load('owner');\n }\n\n return back()->with('flash', 'Reply successfully created!');\n }", "public function store()\n {\n $message = new Message(Request::all());\n\n $message->creator_id = user()->id;\n $message->updater_id = user()->id;\n $message->createSlug();\n $message->setReceiverByName(Request::get('receiver_name'));\n\n $okay = $message->save();\n\n if ($okay) {\n // Reset the message counter cache of the receiving user:\n Cache::forget(User::CACHE_KEY_MESSAGES.$message->receiver_id);\n\n $this->alertFlash(trans('messages::message_sent'));\n return Redirect::to('messages/outbox');\n } else {\n return Redirect::to('messages/create')->withInput()->withErrors($message->getErrors());\n }\n }", "public function store(Request $request, Thread $thread)\n {\n if ($request->hasFile('thumbnail')) {\n\n $thumbnail = $request->file('thumbnail');\n \n $filename = time() . '.' . $thumbnail->getClientOriginalExtension();\n $location = public_path('/thumbnails/' . $filename);\n \n Image::make($thumbnail)->save($location);\n }\n\n $thread = Thread::create([\n \"user_id\" => auth()->id(),\n \"tag_id\" => $request->input('tag_id'),\n \"title\" => $request->input('title'),\n \"description\" => $request->input('description'),\n \"thumbnail\" => $thread->thumbnail = $filename,\n \"body\" => $request->input('body')\n ]);\n\n flash(e('You have successfully created ' . $thread->title . '!'), 'success');\n\n return redirect(\"/threads\");\n }", "public function store($type='create', $redirect_url='/')\n\t{\n\n\t\tif(!is_logged())\n\t\t\tforbidden();\n\n\t\tif($type=='save' || $type=='reply'){\n\n\t\t\t$id = post_int('id', false);\n\n\t\t\tif(!$id) die('Invalid post');\n\n\t\t\t$post = Thread::find($id);\n\n\t\t}\n\n\t\t$rules['body'] = 'text|min:2';\n\n\t\tif($title = post_string('title', false))\n\t\t\t$rules['title'] = 'text|min:2';\n\n\t\tif($id)\n\t\t\t$redirect_url = str_replace('_id_', $id, $redirect_url);\n\n\t\t$valid = $this->validate($rules, $redirect_url);\n\n\t\tif($title)\n\t\t\t$data['title'] = sanitize_string($_POST['title']);\n\n\t\t$data['body'] = sanitize_richtext($_POST['body']);\n\n\t\t$data['topic_id'] = post_int('topic_id', null);\n\n\t\tif($type=='save'){\n\n\t\t\tThread::update($data, ['id' => $id]);\n\n\t\t\treturn $post;\n\n\t\t}elseif($type=='reply'){\n\n\t\t\t$data['user_id'] = user()->id;\n\n\t\t\t$data['parent_id'] = $id;\n\n\t\t\treturn Thread::create($data);\n\n\n\t\t}else{\n\n\t\t\t$data['user_id'] = user()->id;\n\n\t\t\treturn Thread::create($data);\n\t\t}\n\t\n\t}", "function set_message($type, $message)\n{\n $_SESSION[$type] = $message;\n $_SESSION[$type . '_time'] = time();\n}", "public function actionSave()\n\t{\n\t\t// we will get called again from\n\t\t// Tinhte_XenTag_XenForo_DataWriter_Discussion_Thread::_discussionPreSave()\n\t\t$GLOBALS[Tinhte_XenTag_Constants::GLOBALS_CONTROLLERPUBLIC_THREAD_SAVE] = $this;\n\n\t\treturn parent::actionSave();\n\t}", "public function store(VideoMessageRequest $request,\n StoreVideoMessage $storeVideoMessage,\n Thread $thread): MessageResource\n {\n $this->authorize('createVideo', [\n Message::class,\n $thread,\n ]);\n\n return $storeVideoMessage->execute(\n $thread,\n $request->validated(),\n $request->ip()\n )->getJsonResource();\n }", "public function store(Request $request)\n {\n $thread = Thread::create([\n 'subject' => $request->get('subject','new'),\n ]);\n\n // Message\n Message::create([\n 'thread_id' => $thread->id,\n 'user_id' => Auth::user()->id,\n 'body' => $request->get('message'),\n ]);\n\n // Sender\n Participant::create([\n 'thread_id' => $thread->id,\n 'user_id' => Auth::user()->id,\n 'last_read' => new Carbon,\n ]);\n\n // Recipients\n if ($request->has('recipients')) {\n $thread->addParticipant($request->get('recipients'));\n }\n\n return response()->json($thread);\n }", "public function store(Request $request)\n {\n request()->validate([\n 'title' => 'required',\n 'content' => 'required',\n ]);\n\n $thread = new Thread;\n $thread->user_id = auth()->user()->id;\n $thread->title = request('title');\n $thread->content = request('content');\n $thread->save();\n\n session()->flash('successMessage', 'Pertanyaan telah tersimpan');\n return redirect()->back();\n }", "function save() {\n \tfile_put_contents(\"threads/{$this->id}\", serialize($this));\n }", "public function insert_message($user_id, $writer_id, $message, $log_as_event, $thread_id=null)\n {\n require_once('Validator.php');\n return $this->call('gst_message_insert', $user_id, $writer_id, $message, $thread_id, $log_as_event);\n }", "function tn_add_message( $type, $message ) {\n\t$m = TN_Messages::get_instance();\n\t$m->add_message( array( $type => $message ) );\n}", "public function store(Thread $thread)\n {\n $thread->addSubscription();\n\n return response('Subscription added', 200);\n }", "public function store(Request $request)\n {\n $threadId = $request->get('threadId');\n $msg = $request->get('msg');\n $thread = Thread::findOrFail($threadId);\n $thread->activateAllParticipants();\n // Message\n $msg = Message::create(\n [\n 'thread_id' => $thread->id,\n 'user_id' => $request->user()->id,\n 'body' => $msg,\n ]\n );\n\n // Add replier as a participant\n $participant = Participant::firstOrCreate(\n [\n 'thread_id' => $thread->id,\n 'user_id' => $request->user()->id\n ]\n );\n $participant->last_read = new Carbon();\n $participant->save();\n // Recipients\n if ($request->has('recipients')) {\n $thread->addParticipants($request->get('recipients'));\n }\n $msg->load('user');\n\n return response()->json($msg);\n }", "public function store(Request $request)\n {\n $request->validate([\n 'message' => 'required',\n 'message_id' => 'required'\n ]);\n\n // Temporary logic\n $user = Auth::user();\n $message = new Message;\n \n $message->message = $request->message;\n $message->user_id = Auth::user()->id;\n if($user->hasRole('admin') || $user->hasRole('user') || $user->hasRole('ap')){\n $message->reply_to = $request->message_id;\n }\n \n $last_message = Message::where('last_message_for', $request->message_id)->first();\n if($last_message){\n $last_message->last_message_for = null;\n $last_message->save();\n }\n\n if($message->save()){\n if(!$last_message){\n Message::where('id', $message->id)->update(['last_message_for' => $request->message_id]);\n }\n\n Message::where('id', $message->id)->update(['last_message_for' => $request->message_id]);\n $new_message = Message::with('user', 'recipient')->where('id', $message->id)->get();\n broadcast(new MessageSent($user, $new_message))->toOthers();\n return $new_message;\n }\n }", "public function setMessage($message, $type = false, $key = NULL) {\r\n\t\tif ($key) {\r\n\t\t\t$this->session->messages[$key] = array('message'=>$message, 'type'=>$type);\r\n\t\t} else {\r\n\t\t\t$this->session->messages[] = array('message'=>$message, 'type'=>$type);\r\n\t\t}\r\n\t}", "public function store(Request $request)\n {\n // dd($request);\n //\n $tags = $request->tags;\n foreach ($tags as $key => $tag) {\n if (!is_numeric($tag)) {\n $tags[$key] = Tag::create(['name' => $tag])->id;\n } else {\n if (Tag::where('name', '=', $tag)->count() < 1) {\n $tags[$key] = Tag::create(['name' => $tag])->id;\n }\n }\n }\n\n $this->validate($request, [\n 'subject' => 'required|min:5',\n 'tags' => 'required',\n 'thread' => 'required|min:10',\n// 'g-recaptcha-response' => 'required|captcha'\n ]);\n\n //store\n $thread = auth()->user()->threads()->create($request->all())->tags()->attach($tags);\n // $thread->tags()->attach($request->tags);\n\n //redirect\n return back()->withMessage('Thread Created!');\n\n }", "public static function store(Request $request)\n { \n $message = new Message ();\n $message->from_users_id = Auth::user()->id;\n $message->to_users_id = $request->get('user-id');\n $message->message = $request->get('message');\n $message->offer_id = $request->get('offer-id');\n $message->is_read = 0;\n $message->save();\n \n\t\t\n\t\tif(!empty($request->get('parent_msg'))){\n\t\t\t$child_id = $message->id;\n \t$reply = MessageReplyController::store ($request, $child_id);\n Message::find($request->get('parent_msg'))\n ->touch();\n\t\t}\n \n if(is_null($request->get('offer')))\n return redirect('/message');\n \n return redirect('/offer');\n }", "public function push() {\r\n\t$clone = clone($this);\r\n\t$clone->position = count($_SESSION[\"STATE\"][$this->thread]);\r\n\t$_SESSION[\"STATE\"][$this->thread][$clone->position] = serialize($clone);\r\n\treturn $clone;\r\n}", "public function record($msg) {\r\n \r\n // Busca a sessão portoweb existente\r\n $sessao = new Zend_Session_Namespace('portoweb');\r\n \r\n // Grava a mensagem na sessao\r\n $sessao->mensagemSistema = $msg;\r\n \r\n }", "public static function addMessage($message) {\n $messages = self::popMessage();\n if (is_array($messages)) {\n $messages[] = $message;\n } else {\n $messages = array();\n $messages[] = $message;\n }\n\n setcookie(self::$_name, serialize($messages), time() + self::$_time, self::$_path);\n }", "function post_new_reply() {\n\tglobal $core, $document, $user, $boards, $threads, $posts, $db;\n\n\tif (!isset($_POST['thread_id']) || !isset($_POST['board_id']) || !isset($_POST['post_name']) || !isset($_POST['post_message'])) {\n\t\tfatal_error(\"Some or all of the information needed to post a new message are missing. Please try again\");\n\t}\n\n\t//Make fields safe\n\t$boardid = make_safe(\"int\",$_POST['board_id']);\n\t$threadid = make_safe(\"int\",$_POST['thread_id']);\n\t$postname = make_safe(\"text\",$_POST['post_name']);\n\t$postmessage = make_safe(\"text\",$_POST['post_message']);\n\n\t//Sanity check fields\n\tif (strlen($postname) < 2 || strlen($postmessage) < 10) { \n\t\tfatal_error(\"Your message title or message text is too short. Please try again\");\n\t}\n\tif (!$boards->get_board($boardid)) {\n\t\tfatal_error(\"Invalid board specified. Please try again\");\n\t} \n\tif (!$threads->get_thread($threadid)) {\n\t\tfatal_error(\"Invalid thread specified. Please try again\");\n\t}\n\n\t//Now post the message\n\t$posts->new_post($user->get(\"user_id\"),$boardid,$threadid,$postname,$postmessage);\n\n\t//Now go back to the forum\n\t$core->do_redirect(\"forumdisplay.php?f=$boardid\");\t\t\n}", "public function store(Request $request)\n {\n $this->validate($request, Thread::$rules);\n\n try {\n $movie = Movie::getOrCreate($request->input('external_url'));\n\n Thread::verifyIfExists($movie);\n\n $thread = new Thread([\n 'rating' => $request->input('rating'),\n 'comment' => ($request->input('comment') == '') ? null : $request->input('comment'),\n ]);\n $thread->user()->associate(Auth::user());\n $thread->movie()->associate($movie);\n $thread->save();\n\n $tb = new TelegramBot();\n $tb->sendMessage($thread);\n\n flash()->success('Tudo Certo!', 'O título escolhido foi indicado com sucesso!');\n\n return redirect('/');\n } catch (\\Exception $e) {\n flash()->error('Ops!', $e->getMessage());\n\n return redirect()->back()->withInput();\n }\n }", "public function sendMessage()\n {\n $userId = auth()->user()->id;\n\n // Save the message\n Message::create([\n 'room_id' => $this->roomId,\n 'user_id' => $userId,\n 'message' => $this->message,\n ]);\n\n // Remove the value of the message after saving\n $this->message = \"\";\n\n // Prompt the server that we sent a message\n $this->dispatchBrowserEvent('chat-send-message', [\n 'room_id' => $this->roomId,\n 'user_id' => $userId,\n ]);\n }", "public function queue() {\n\t\t$this->prepareMessage();\n\t\t$this->queueRepository->add($this->toArray());\n\t}", "function record_message($message) {\n global $messages;\n array_push($messages, $message);\n}", "public function store($slug, Thread $thread, ReplyRequest $request)\n {\n $reply = new Reply();\n $reply->fill($request->all());\n $reply->owner()->associate(auth()->user());\n $thread->addReply($reply);\n\n if ($request->wantsJson()) {\n return $reply->fresh();\n }\n\n return back();\n }", "public function store(Request $request)\n {\n $request->validate([\n 'reply' => 'required|max:255'\n ]);\n\n Reply::create($request->all());\n\n $url = '/thread' . '/' . $request->thread_id;\n return redirect($url);\n }", "function newthread( $args )\n\t{\n\t // if not logged in redirect\n\t if( !$this->app->user->is_logged_in() ){\n\t $this->app->redirect('user/login');\n\t }\n\t \n\t // get board id\n\t $board_id = (int) $args['id'];\n\t \n\t // get board info\n\t $boards_model = $this->app->\n\t model('forum_boards','forum/models');\n\t \n\t // get board item\n\t $board = $boards_model->get_item( $board_id );\n\t \n\t // check if board exists\n\t if( count($board) == 0 ){\n\t $this->app->redirect('forum');\n\t }\n\t \n\t // action message\n\t $action_message = null;\n\t \n\t \n\t \n\t // init failed submission values\n\t $name_value = '';\n\t $description_value = '';\n\t \n\t \n\t /* -------------------------\n\t * Check for form submission\n\t */\n\t if( $_SERVER['REQUEST_METHOD'] == 'POST' && \n\t isset( $_POST['name']) && \n\t $_POST['name'] != null &&\n\t isset( $_POST['description']) && \n\t $_POST['description'] != null\n\t ){\n\t \n\t // get threads model\n\t $threads_model = $this->app->\n\t model('forum_threads','forum/models');\n\t \n\t // add the new thread\n\t $success = $threads_model->\n\t new_item($this->app->user->get_user_id(), \n\t $board_id, $_POST );\n\t \n\t // test for success\n\t if( $success ){\n\t \n\t // get most recent thread\n\t $thread = $threads_model->last_thread();\n\t \n\t // increment thread count\n\t $boards_model->increment_thread($board_id);\n\t \n\t // redirect to the new thread\n\t $this->app->redirect('forum/thread/'.$thread['id']);\n\t }\n\t } elseif($_SERVER['REQUEST_METHOD'] == 'POST' ) {\n\t $action_message = \"One ore more required inputs were not \n\t provided.\";\n\t \n\t $name_value = 'value=\"'.$_POST['name'].'\"';\n\t $description_value = $_POST['description'];\n\t \n\t }\n\t \n\t // add init values\n\t $this->view->add('name_value',$name_value);\n\t $this->view->add('description_value',$description_value);\n\t \n\t // add action message\n\t $this->view->add('action_message',$action_message);\n\t \n\t \n\t \n\t /* -------------------------\n\t * Action paths defined here\n\t */\n\t \n\t // action on form submit\n\t $this->view->add('submit_action',\n\t $this->app->form_path('forum/newthread/'.$board_id));\n\t \n\t // get wysiwyg extension\n\t $wysiwyg = $this->app->extension('wysiwyg');\n\t \n\t // set page title\n\t $this->view->add('page_title','Create a new thread');\n\t \n\t}", "function StoreMessage($To, $CC, $Subject, $message, $MFrom, $wid) {\n\n $midq = \"SELECT mid FROM Messages ORDER BY mid\";\n\t\t$wfhist = $this->query($midq);\n\t\tforeach($wfhist as $row){\n $mid = $row['mid'] + 1;\n }\n\n $rid = $_SESSION['rid'];\n\t\t$dateSent = date('F j, Y');\n\t\t$timeSent = date('Hi');\n\t\t$timeZone = date('e');\n\t\t$MStatus = \"Unread\";\n\t\t$OpenLinkSrc = \"https://\".$_SESSION['domain'].\"/showMessage.php?mid=\".$mid.\"\";\n\n $newmessage = htmlentities($message);\n $newsubject = htmlentities($Subject);\n\t\t//echo \"New Message: \".$newmessage.\"\";\n\t\t//Insert into Messages\n $messageq = \"INSERT INTO Messages (mid,MTo,CC,Subject,Message,MFrom,rid,wid,dateSent,timeSent,timeZone,MStatus,OpenLink) VALUES ($mid,'$To','$CC','$newsubject','$newmessage','$MFrom','$rid','$wid','$dateSent','$timeSent','$timeZone','$MStatus','$OpenLinkSrc')\";\n\t\t//$messageq = \"INSERT INTO Messages (mid,MTo,CC,Subject,Message,MFrom,rid,wid) VALUES ($mid,'$To','$CC','$newsubject','$newmessage','$MFrom','$rid','$wid')\";\n $InsertMessageHistory = $this->query($messageq);\n\t\t//$InsertMessageHistory = sqlsrv_query($conn, $messageq);\n }", "function add_message($msg, $msg_type = MSG_TYPE_SUCCESS) {\n if (!isset($_SESSION['message']))\n $_SESSION['message'] = [];\n $_SESSION['message'][] = ['type' => $msg_type, 'message' => htmlentities($msg, ENT_QUOTES)];\n}", "public function store(Request $request)\n {\n $this->validate($request, [\n 'subject' => 'required',\n 'question' => 'required'\n ]);\n\n $thread = new Thread;\n $thread->ThreadSubject = $request->input('subject');\n $thread->ThreadDescription = $request->input('question');\n $thread->save();\n\n return redirect('/threads') -> with('success', 'Question Created');\n }", "function set_message_key($key, $val)\n{\n if(!isset($_SESSION[$key]))\n {\n $_SESSION[$key] = $val;\n }\n}", "function createThread($boardUrl, $subject, $comment, $user, $ip){\n R::begin();\n try {\n $board = boardByURL($boardUrl);\n $user = checkSetDefaultPoster($user, $board);\n $thread = R::dispense(TTHREAD::TABLE);\n R::store($thread);\n $post = _dispensePost($board, $subject, $comment, $user, $ip);\n $post[TPOST::ISOP] = true;\n R::store($post);\n array_push($thread[TTHREAD::POSTS], $post);\n array_push($board[TBOARD::THREADS], $thread);\n R::store($board);\n R::commit();\n } catch(Exception $e) {\n R::rollback();\n }\n \n }", "public function storeMessage($limit=null) {\n\t\t$db = GetGlobal('db');\t\n\t\tif (empty($this->messages)) return null;\n\t\tif (!$h = GetReq('hash')) return null;\n\t\t//print_r($this->messages);\n\t\t$tokens = array(); \n\t\t$lim = $limit ? $limit : 6;\n\t\t\n\t\t//insert message into db\n\t\t$sSQL = \"insert into cpmessages (hash, msg, type, owner) values (\";\n\t\t$sSQL.= $db->qstr($h) . \",\";\n\t\t$sSQL.= $db->qstr(GetReq('msg')) . \",\";\n\t\t$sSQL.= $db->qstr(GetReq('type')) . \",\";\n\t\t$sSQL.= $db->qstr($this->owner);\n\t\t$sSQL.= \")\";\n\t\t//echo $sSQL;\n\t\t$result = $db->Execute($sSQL,1);\t\t\t \n\t\t$ret = $db->Affected_Rows(); \n\t\t\n\t\tif ($ret) {\n\t\t\n\t\t\t//delete msg from session\n\t\t\t$nm = array();\n\t\t\tforeach ($this->messages as $hash=>$message) {\n\t\t\t\tif ($h!=$hash) \n\t\t\t\t\t$nm[$hash] = $message;\n\t\t\t}\n\t\t\t$this->messages = (empty($nm)) ? null : $nm;\n\t\t\tSetSessionParam('cpMessages', $nm);\n\t\t\tif (empty($nm)) return null;\n\t\t\n\t\t\t//send out rest queue\n\t\t\t$msgs = array_reverse($nm, true);\n\t\t\t$i = 0;\n\t\t\tforeach ($msgs as $n=>$m) {\n\t\t\t\t$tokens = explode('|', $m); \n\t\t\t\tswitch (array_shift($tokens)) {\n\t\t\t\t\tcase 'important' : $tmpl = 'dropdown-notification-important'; break;\n\t\t\t\t\tcase 'success' : $tmpl = 'dropdown-notification-success'; break;\n\t\t\t\t\tcase 'warning' : $tmpl = 'dropdown-notification-warning'; break;\n\t\t\t\t\tcase 'error' : $tmpl = 'dropdown-notification-error'; break;\n\t\t\t\t\tcase 'info' :\n\t\t\t\t\tdefault : $tmpl = 'dropdown-notification-info';\n\t\t\t\t\n\t\t\t\t}\n\t\t\t\t$tdata = _m(\"cmsrt.select_template use $tmpl+1\");\n\t\t\t\t$ret .= $this->combine_tokens($tdata, $tokens, true);\n\t\t\t\tunset($tokens);\t\n\t\t\t\t$i+=1;\n\t\t\t\tif ($i>$lim) break;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn ($ret);\t\t\t\n\t}", "public function addMessageAction(){\n if (!$this->_validateFormKey()) return $this->_redirect('inchoo/tickets');\n\n if ($this->getRequest()->isPost()) {\n $ticketId = $this->getRequest()->getPost('ticket_id');\n $message = Mage::getModel('inchoo_tickets/message');\n\n $message->setTicket_id($ticketId)\n ->setMessage($this->getRequest()->getPost('message'))\n ->setAuthor(true); // true=customer\n\n if ($message->validateMessage()) $message->save();\n }\n\n $this->_redirect(\"inchoo/tickets/view/ticket/$ticketId\");\n }", "public static function createThread($user_id)\n\t{\n\t\tif (!Input::has('subject')) {\n\t\t\tthrow new Exception('Your message must have a subject');\n\t\t}\n\n\t\t// set subject from input\n\t\t$subject = Input::get('subject');\n\n\t\t// make sure subject is not greater than 100 characters\n\t\tif (strlen($subject) > 100) {\n\t\t\tthrow new Exception('Please limit the subject of your message to 100 characters');\t\t\n\t\t}\n\n\t\t// make sure recipients of the thread were sent\n\t\tif(!is_array(Input::get('recipient'))) {\n\t\t\tthrow new Exception('There must be a recipient of your message');\n\t\t}\n\n\t\t// set recipients from input\n\t\t$recipients = Input::get('recipient');\n\n\t\t// loop through all the recipients and...\n\t\tforeach ($recipients as $recipient) {\n\t\t\t// make sure every recipient is numeric\n\t\t\tif (!is_numeric($recipient)) {\n\t\t\t\tthrow new Exception('Invalid recipient');\n\t\t\t}\n\t\t}\n\n\t\t// make sure message body was sent\n\t\tif (!Input::has('body')) {\n\t\t\tthrow new Exception('The body of your message may not be blank');\n\t\t}\n\n\t\t// set body from input\n\t\t$body = Input::get('body');\n\n\t\t// make sure body is not greater than 1024 characters\n\t\tif (strlen($body) > 1024) {\n\t\t\tthrow new Exception('Please limit the body of your message to 1024 characters (it currently has ' . strlen($body) . ')');\t\t\n\t\t}\n\n\t\t// create a transaction to wrap the creation of Thread, UsersThread, Message, and UsersMessage\n\t\tDB::transaction(function() use ($user_id, $subject, $recipients, $body)\n\t\t{\n\t\t\ttry {\n\t\t\t\t// create new thread\n\t\t\t\t$thread = new Thread();\n\t\t\t\t$thread->subject = $subject;\n\t\t\t\t$thread->save();\n\t\t\t} catch (Exception $e) {\n\t\t\t\tthrow new Exception('Could not create conversation');\n\t\t\t}\n\n\t\t\ttry {\n\t\t\t\t// create record of author in users_threads\n\t\t\t\t$author_thread = new UsersThread();\n\t\t\t\t$author_thread->user_id = $user_id;\n\t\t\t\t$author_thread->thread_id = $thread->id;\n\t\t\t\t$author_thread->save();\n\t\t\t} catch (Exception $e) {\n\t\t\t\tthrow new Exception('Could not create authors connection to conversation');\n\t\t\t}\n\n\t\t\t// loop through all the recipients and...\n\t\t\tforeach ($recipients as $recipient) {\n\n\t\t\t\t// make sure the recipient is not the author\n\t\t\t\tif ($recipient != $user_id) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\t// create record of recipient in users_threads\n\t\t\t\t\t\t$recipient_thread = new UsersThread();\n\t\t\t\t\t\t$recipient_thread->user_id = $recipient;\n\t\t\t\t\t\t$recipient_thread->thread_id = $thread->id;\n\t\t\t\t\t\t$recipient_thread->save();\n\t\t\t\t\t} catch (Exception $e) {\n\t\t\t\t\t\tthrow new Exception('Could not create recipients connection to conversation');\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// create message (users threads caches are deleted in createMessage)\n\t\t\tMessagesService::createMessage($thread->id, $user_id, $recipients, $body);\t\t\t\n\t\t});\n\t}", "public function message($message): void\n {\n $this->messages[] = $message;\n }", "public function addMessage($message);", "public function add($threadID = NULL) {\n if ($this->request->is('post')) {\n if ($this->Forum->save($this->request->data)) {\n $this->Session->setFlash('Your forum has been saved.');\n $this->redirect($this->referer());\n } else {\n $this->Session->setFlash('Unable to add your forum.');\n }\n }\n }", "protected function setMessageType()\n {\n }", "function saveMsgReceived($profile_id, $msg, $conv, $msg_id, $date, $template=0, $watson_context=null, $account){\n\t\tglobal $db;\n\t\t$date = gettype($date)=='string'?$date:date('Y-m-d G:i:s', $date);\n\t\t$statement = $db->prepare('INSERT INTO msg_conversation (by_bot, profile_id, conv_id, msg_id, template_msg, msg, watson_context, date, accountID) VALUES (0, :profile_id, :conv, :msg_id, :template, :msg, :watson_context, :date, :account)');\n\t\t$statement->execute(array(':profile_id' => $profile_id, ':conv' => $conv, ':msg_id' => $msg_id, ':template'=>$template, ':msg' => $msg, ':watson_context'=>$watson_context, ':date'=>$date, ':account'=>$account));\n\t}", "protected static function addMessage(stdClass $message) {\n $i = PitSession::get('PitFlash', 'i', 1);\n $msgs = PitSession::get('PitFlash', 'messages', array());\n $msgs[$i] = $message;\n PitSession::set('PitFlash', 'i', $i + 1);\n PitSession::set('PitFlash', 'messages', $msgs);\n }", "private function check_message(){\t\t\tif(isset($_SESSION['message'])){\r\n\t\t\t\t// Add it as an attribute and erase the stored version\r\n\t\t\t\t\r\n\t\t\t\t$this->message = $_SESSION['message'];\r\n\t\t\t\tunset($_SESSION['message']);\r\n\t\t\t}else{\r\n\t\t\t\t$this->message=\"\";\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\r\n\t\t}", "function setMessage($message, $status) {\n\t$_SESSION['message']['content'] = $message;\n\t$_SESSION['message']['status'] = $status;\n}", "public function push($message);", "public function store(Thread $thread, Recaptcha $recaptcha)\n {\n // dd(request()->all());\n // post https://www.google.com/recaptcha/api/siteverify\n $validated = request()->validate([\n 'title' => 'required|spamfree',\n 'body' => 'required|spamfree',\n 'channel_id' => 'required|exists:channels,id',\n 'g-recaptcha-response' => ['required', $recaptcha]\n ]);\n\n $validated['user_id'] = auth()->id();\n\n $thread = $thread->addThread($validated);\n\n if (request()->wantsJson()) {\n return response($thread, 201);\n }\n\n return redirect($thread->path())\n ->with('flash', 'Your Thread has been published');\n }", "public function add($message, $type)\n {\n $_SESSION['flash_message'] = [\n 'type' => $type,\n 'message' => $message,\n ];\n }", "private function check_message ()\n\t{\t\tif (isset($_SESSION['message']))\n\t\t{\n\t\t\t// Add it as an attribute and erase the stored version\n\t\t\t$this->message = $_SESSION['message'];\n\t\t\tunset($_SESSION['message']);\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$this->message = \"\";\n\t\t}\n\t}", "public function store(Request $request)\n {\n $input = $request->all();\n $thread = Thread::create(\n [\n 'subject' => $input['subject'],\n ]\n );\n // Message\n Message::create(\n [\n 'thread_id' => $thread->id,\n 'user_id' => Auth::user()->id,\n 'body' => $input['message'],\n ]\n );\n // Sender\n Participant::create(\n [\n 'thread_id' => $thread->id,\n 'user_id' => Auth::user()->id,\n 'last_read' => new Carbon(),\n ]\n );\n $thread->addParticipant($input['receiver']);\n $data['statues'] = \"200 Ok\";\n $data['error'] = null;\n $data['data'] = null;\n return response()->json($data, 200);\n\n }", "function text_message_submit($form, &$form_state) {\n global $user;\n if (isset($form_state['values']['id_msg'])) {\n $entity = entity_load('text_msg', array($form_state['values']['id_msg']));\n $wrapper = entity_metadata_wrapper('text_msg', $entity[$form_state['values']['id_msg']]);\n $wrapper->title = check_plain($form_state['values']['title_msg']);\n $wrapper->body = check_plain($form_state['values']['body_msg']);\n $wrapper->save();\n }\n else {\n $entity = entity_create('text_msg', array(\n 'uid' => $user->uid,\n 'type' => rand(),\n 'title' => check_plain($form_state['values']['title_msg']),\n 'body' => check_plain($form_state['values']['body_msg']),\n ));\n entity_save('text_msg', $entity);\n }\n drupal_goto('training/message');\n}", "private function create($title, $message, $type, $key = 'flash_message')\n\t{\n\t\t// Jeff says ok to do it like this vs $this->session() since it's always in the Http context\n\t\tsession()->flash($key, [\n\t\t\t'title' => $title,\n\t\t\t'message' => $message,\n\t\t\t'type' => $type\n\t\t]);\n\t}", "public function add_message($message){\n $this->messages[] = $message;\n }", "function thread( $args )\n\t{\n\t $thread_id = (int)$args['id'];\n\t \n\t // check for existance, use threads model\n\t $threads_model = $this->app->\n\t model('forum_threads','forum/models');\n\t \n\t\t// boards model\n\t\t$boards_model = $this->app->\n\t\t model('forum_boards', 'forum/models'); \n\t \n\t // posts model\n\t $posts_model = $this->app->\n\t model('forum_posts','forum/models');\n\t \n\t // get item\n\t $thread = $threads_model->get_item( $thread_id );\n\t $thread = ( count($thread) > 0 ) ? $thread[0] : null;\n\t \n\t \n\t // imprtant stuffs\n\t if( $thread == null ){\n\t \n\t \t// redirect\n\t \t$this->app->redirect('forum');\n\t }\n\t \n\t \n // get board\n $board = $boards_model->get_item((int)$thread['board_id']);\n $board = $board[0];\n \n // set page title\n $this->view->add('page_title',\n 'Viewing thread: ' . $thread['name'] );\n \n // set index action\n $this->view->add('index_action',\n $this->app->form_path('forum'));\n \n // set board action\n $this->view->add('board_action',\n $this->app->form_path('forum/board/'.$board['id']));\n \n // good\n $this->view->add('board_name', $board['name'] );\n\t \n\t // need an action message\n\t $action_message = null;\n\t \n\t // init text area values\n\t $name_value = '';\n\t $post_value = '';\n\t \n\t \n\t // check for post\n\t if( $_SERVER['REQUEST_METHOD'] == 'POST' &&\n\t \tisset($_POST['name']) &&\n\t \t$_POST['name'] != null &&\n\t \tisset($_POST['post']) &&\n\t \t$_POST['name'] != null \n\t ){\n\t \t\n\t \t// add success\n\t \t$success = $posts_model->new_item( \n\t \t\t$this->app->user->get_user_id(), $thread_id, $_POST );\n\t \t\n\t \t// test for success\n\t \tif( $success ){\n\t \t\n\t \t\t// increment reply count\n\t \t\t$threads_model->increment_reply( $thread_id );\n\t \t\t\t \t\n\t \t\t$action_message = 'Post successfully added.';\n\t \t} else {\n\t \t\t$action_message = 'There was an error adding your post';\n\t \t}\n\t \t\n\t } elseif( $_SERVER['REQUEST_METHOD'] == 'POST' ) {\n\t \t\n\t \t$action_message = 'One or more required fields was not\n\t \t\tprovided';\n\t \t\t\n\t \t// update values\n\t\t\t$name_value = 'value=\"'.$_POST['name'].'\"';\n\t\t\t$post_value = $_POST['post'];\n\t }\n\t \n\t \n\t // add them\n\t $this->view->add('name_value',$name_value);\n\t $this->view->add('post_value',$post_value);\n\t \n\t // add actio message\n\t $this->view->add('action_message',$action_message);\n\t \n\t // get limits\n\t $limit = 10;\n\t \n\t // get page\n\t $page = 0;\n\t if( isset($_GET['p']) ){\n\t $page = (int)$_GET['p'];\n\t }\n\t \n\t // get replies\n\t $posts_result = $posts_model->limit($limit)->page($page)->\n\t get_all($thread_id);\n\t \n\t //\n\t $this->view->add('posts_result',$posts_result);\n\t \n\t $reply_count = ($thread==null) ? 0 :(int)$thread['reply_count'];\n\t \n\t // add paging\n\t $this->view->add('page_info',array(\n\t // posts count\n\t 'page_count' => (int)(($reply_count) / $limit)+1,\n\t 'this_page' => $page\n\t ));\n\t \n\t \n\t // add actions\n\t $this->view->add('page_action',\n\t $this->app->form_path('forum/thread/'.$thread_id.'?p='));\n\t \n\t $this->view->add('reply_action',$this->app->\n\t form_path('forum/thread/'.$thread_id.'?p='.$page));\n\t \n\t \n\t // add to the view\n\t $this->view->add('thread_result',$thread);\n\t \n\t \n\t // get wysiwyg extension\n\t $wysiwyg = $this->app->extension('wysiwyg');\n\t \n\t}", "function store()\r\n {\r\n $db =& eZDB::globalDatabase();\r\n $db->begin();\r\n\r\n $name = $db->escapeString( $this->Name );\r\n $description = $db->escapeString( $this->Description );\r\n\r\n if ( !isSet( $this->ID ) )\r\n {\r\n $db->lock( \"eZForum_Forum\" );\r\n $nextID = $db->nextID( \"eZForum_Forum\", \"ID\" );\r\n\r\n $res = $db->query( \"INSERT INTO eZForum_Forum\r\n ( ID,\r\n Name,\r\n Description,\r\n IsModerated,\r\n IsAnonymous,\r\n ModeratorID,\r\n GroupID,\r\n IsPrivate )\r\n VALUES\r\n ( '$nextID',\r\n '$name',\r\n '$description',\r\n '$this->IsModerated',\r\n '$this->IsAnonymous',\r\n '$this->ModeratorID',\r\n '$this->GroupID',\r\n '$this->IsPrivate' )\" );\r\n\r\n $this->ID = $nextID;\r\n }\r\n else\r\n {\r\n $res = $db->query( \"UPDATE eZForum_Forum SET\r\n Name='$name',\r\n Description='$description',\r\n IsModerated='$this->IsModerated',\r\n IsAnonymous='$this->IsAnonymous',\r\n ModeratorID='$this->ModeratorID',\r\n GroupID='$this->GroupID',\r\n IsPrivate='$this->IsPrivate'\r\n WHERE ID='$this->ID'\" );\r\n }\r\n\r\n $db->unlock();\r\n\r\n if ( $res == false )\r\n $db->rollback( );\r\n else\r\n $db->commit();\r\n\r\n return true;\r\n }", "function createThread() {\n\t//create thread\n\techo $_POST[\"title\"] . \"<br/>\";\n\t$db = DB::$connection;\n\t$db->setAttribute( PDO::ATTR_ERRMODE, PDO::ERRMODE_WARNING );\n\n\t$sql = \"INSERT INTO threads(title,userid,date) VALUES (?,?,NOW())\";\n\t$stmt = $db->prepare($sql);\n\t$stmt->execute(array(htmlspecialchars($_POST[\"title\"]),$_SESSION['currentUser']));\n\t$trd_id = $db->lastInsertId();\n\techo $trd_id;\n\n\t// post to thread\n\t$db->setAttribute( PDO::ATTR_ERRMODE, PDO::ERRMODE_WARNING );\n\n\n\t$threadid = $trd_id;\n\t$postbody = $_POST[\"postbody\"];\n\t$userid = $_SESSION['currentUser'];\n\n\t// post to thread\n\t$sql = 'INSERT INTO posts(threadid,postbody,userid,date) VALUES(?,?,?,NOW())';\n\t$stmt = $db->prepare($sql);\n\t$stmt->execute(array(htmlspecialchars($threadid),($postbody),($userid)));\n\treturn $trd_id;\n}", "public function store()\n\t{\n\t\tif (!$this->validate()) {\n\t\t\treturn $this->getRedirect()\n\t\t\t->withErrors($this->validator)\n\t\t\t->withInput();\n\t\t} else {\n\t\t\t// store\n\t\t\t$message = new Message;\n\t\t\t$message->name = \\Input::get('name');\n\t\t\t$message->project_id = \\Input::get('project_id');\n\t\t\t$message->user_id = \\Input::get('user_id');\n\t\t\t$message->save();\n\n\t\t\t// redirect\n\t\t\t\\Flash::push('success', 'Successfully created message!');\n\n\t\t\treturn $this->getRedirect();\n\t\t}\n\t}", "public function save($string) {\n $_SESSION[Strings::$message] = $string;\n }", "function setMessage($message=''){\n $_SESSION['message'] = $message;\n }", "public function addMessage($type, $value)\n {\n if (!$this->hasMessages($type)) {\n $_SESSION['_zikula_messages'][$type] = array();\n }\n $_SESSION['_zikula_messages'][$type][] = $value;\n }", "function ajan_core_setup_message() {\n\n\t// Get ActivityNotifications\n\t$ajan = activitynotifications();\n\n\tif ( empty( $ajan->template_message ) && isset( $_COOKIE['ajan-message'] ) ) {\n\t\t$ajan->template_message = stripslashes( $_COOKIE['ajan-message'] );\n\t}\n\n\tif ( empty( $ajan->template_message_type ) && isset( $_COOKIE['ajan-message-type'] ) ) {\n\t\t$ajan->template_message_type = stripslashes( $_COOKIE['ajan-message-type'] );\n\t}\n\n\tadd_action( 'template_notices', 'ajan_core_render_message' );\n\n\tif ( isset( $_COOKIE['ajan-message'] ) ) {\n\t\t@setcookie( 'ajan-message', false, time() - 1000, COOKIEPATH );\n\t}\n\n\tif ( isset( $_COOKIE['ajan-message-type'] ) ) {\n\t\t@setcookie( 'ajan-message-type', false, time() - 1000, COOKIEPATH );\n\t}\n}", "public static function create($boardID, $languageID, $prefix, $subject, $text, $userID, $username, $sticky = 0, $announcement = 0, $closed = 0, $options = array(), $subscription = 0, $attachments = null, $poll = null, $disabled = 0) {\n\t\t$attachmentsAmount = $attachments != null ? count($attachments->getAttachments()) : 0;\n\t\t$polls = ($poll != null && $poll->pollID) ? 1 : 0;\n\t\t\n\t\t// insert thread\n\t\t$threadID = self::insert($subject, $boardID, array(\n\t\t\t'languageID' => $languageID,\n\t\t\t'userID' => $userID,\n\t\t\t'username' => $username,\n\t\t\t'prefix' => $prefix,\n\t\t\t'time' => TIME_NOW,\n\t\t\t'lastPostTime' => TIME_NOW,\n\t\t\t'lastPosterID' => $userID,\n\t\t\t'lastPoster' => $username,\n\t\t\t'attachments' => $attachmentsAmount,\n\t\t\t'polls' => $polls,\n\t\t\t'isSticky' => $sticky,\n\t\t\t'isAnnouncement' => $announcement,\n\t\t\t'isClosed' => $closed,\n\t\t\t'isDisabled' => $disabled,\n\t\t\t'everEnabled' => ($disabled ? 0 : 1)\n\t\t));\n\t\t\n\t\t// create post\n\t\t$post = PostEditor::create($threadID, $subject, $text, $userID, $username, $options, $attachments, $poll, null, $disabled, true);\n\t\t\n\t\t// update first post id\n\t\t$sql = \"UPDATE\twbb\".WBB_N.\"_thread\n\t\t\tSET\tfirstPostID = \".$post->postID.\"\n\t\t\tWHERE\tthreadID = \".$threadID;\n\t\tWCF::getDB()->sendQuery($sql);\n\t\t\n\t\t// update first post preview\n\t\tPostEditor::updateFirstPostPreview($threadID, $post->postID, $text, $options);\n\t\t\n\t\t// get thread object\n\t\t$thread = new ThreadEditor($threadID);\n\t\t\n\t\t// update subscription\n\t\t$thread->setSubscription($subscription);\n\t\t\n\t\t// get similar threads\n\t\tself::updateSimilarThreads($threadID, $subject, $boardID);\n\t\t\n\t\treturn $thread;\n\t}", "public function actionCreate()\n {\n $model = new Thread();\n $model->user_id = Yii::$app->user->id;\n\n $newCommentModel = new Comment();\n $newCommentModel->user_id = Yii::$app->user->id;\n\n $postData = Yii::$app->request->post();\n if ($model->load($postData) && $res = $model->save()) {\n $newCommentModel->load(Yii::$app->request->post());\n $newCommentModel->thread_id = $model->id;\n $newCommentModel->user_id = Yii::$app->user->id;\n $newCommentModel->save();\n\n return $this->redirect(['view', 'id' => $model->id]);\n } else {\n return $this->render('create', [\n 'model' => $model,\n 'newCommentModel' => $newCommentModel,\n ]);\n }\n }", "public function addFlush($type, $message)\n {\n $_SESSION['flush'][$type][] = $message;\n }", "public function create_post() {\n\t\t$data['uid'] = $this->input->get('uid');\n\t\t$data['to'] = $this->input->get('to');\n\t\t$data['text'] = $this->input->get('text');\n\t\t$data['ts'] = now();\n\n\t\t$this->Messages_model->create($data);\n\t}", "public static function insertMessageThread($id, $receivers, $text)\n\t{\n\t\t$time = date('Y-m-d H:i:s');\n\t\t$db = FrontendModel::getDB(true);\n\n\t\t// insert thread\n\t\t$threadId = (int) $db->insert('profiles_thread', array('latest_message_id' => 0));\n\n\t\t// insert message\n\t\t$messageId = (int) $db->insert(\n\t\t\t'profiles_message', \n\t\t\tarray(\n\t\t\t\t'thread_id' => $threadId,\n\t\t\t\t'user_id' => $id,\n\t\t\t\t'created_on' => $time,\n\t\t\t\t'text' => $text\n\t\t\t)\n\t\t);\n\n\t\t// update thread\n\t\t$db->update('profiles_thread', array('latest_message_id' => $messageId), 'id = ' . $threadId);\n\n\t\t// insert thread_status for every receiver\n\t\tforeach($receivers as $receiver)\n\t\t{\n\t\t\t$db->insert(\n\t\t\t\t'profiles_thread_status',\n\t\t\t\tarray(\n\t\t\t\t\t'thread_id' => $threadId,\n\t\t\t\t\t'receiver_id' => $receiver\n\t\t\t\t)\n\t\t\t);\n\t\t}\n\n\t\t// insert thread status for sender\n\t\t$db->insert(\n\t\t\t'profiles_thread_status',\n\t\t\tarray(\n\t\t\t\t'thread_id' => $threadId,\n\t\t\t\t'receiver_id' => $id,\n\t\t\t\t'status' => 'read'\n\t\t\t)\n\t\t);\n\n\t\treturn true;\n\t}", "public function store(StorePostRequest $request)\n {\n $data = $request->only('body');\n $data['thread_id'] = $request->id;\n $data['user_id'] = Auth::user()->id;\n $data['subforum_id'] = $request->subforum_id;\n\n $draft = config('app.draft');\n\n if (ThreadController::getUserRoleName(Auth::user()->id) === 'Administrator' || ThreadController::getUserRoleName(Auth::user()->id) === 'Moderator' || $draft == false) {\n $data['updated_at'] = null;\n $data['published'] = 1;\n $query = DB::table('threads')\n ->where('id', $request->id)\n ->update(['lastpost_uid' => Auth::user()->id, 'lastpost_date' => now()]);\n }\n\n $post = Post::create($data);\n\n return redirect()->route('index')->with('alert', 'Post has been saved successfully.');\n }", "public static function replyMessage($user_id, $thread_id)\n\t{\n\t\tif (!Input::has('body')) {\n\t\t\tthrow new Exception('The body of your message may not be blank');\n\t\t}\n\n\t\t// set body from input\n\t\t$body = Input::get('body');\n\n\t\t// make sure body is not greater than 1024 characters\n\t\tif (strlen($body) > 1024) {\n\t\t\tthrow new Exception('Please limit the body of your message to 1024 characters (it currently has ' . strlen($body) . ')');\t\t\n\t\t}\n\n\t\t// get list of recipients\n\t\t$recipients = UsersThread::where('thread_id', $thread_id)\n\t\t\t->lists('user_id');\n\n\t\t// create a transaction to wrap the creation of Message, and UsersMessage\n\t\tDB::transaction(function() use ($user_id, $thread_id, $recipients, $body)\n\t\t{\n\t\t\t// make sure any messages in this thread are marked as read by the author \n\t\t\t$unread_messages = DB::table('messages')\n\t\t\t\t->join('users_messages', 'messages.id', '=', 'users_messages.message_id')\n\t\t\t\t->select('users_messages.id as users_message_id')\n\t\t\t\t->where('users_messages.user_id', $user_id)\n\t\t\t\t->where('users_messages.message_read', 0)\n\t\t\t\t->where('messages.thread_id', $thread_id)\n\t\t\t\t->lists('users_message_id');\n\n\t\t\t// loop through any found to not be read\n\t\t\tforeach ($unread_messages as $unread_message) {\n\t\t\t\t// get record of users message\n\t\t\t\t$users_message = UsersMessage::find($unread_message);\n\t\t\t\t\n\t\t\t\t// mark users message as read\n\t\t\t\t$users_message->message_read = 1;\n\t\t\t\t$users_message->save();\n\t\t\t}\n\n\t\t\t// create message (users threads caches are deleted in createMessage)\n\t\t\tMessagesService::createMessage($thread_id, $user_id, $recipients, $body);\t\t\t\t\t\n\t\t});\n\t}" ]
[ "0.6249143", "0.6051935", "0.59523726", "0.5924439", "0.5920451", "0.58738524", "0.5826337", "0.5763292", "0.56713253", "0.56299657", "0.5612806", "0.5591502", "0.55003726", "0.54960275", "0.54485744", "0.5397951", "0.5385426", "0.53435093", "0.5327553", "0.53203726", "0.5285379", "0.5282093", "0.52790713", "0.52410316", "0.52086043", "0.5190446", "0.51856583", "0.5182318", "0.5174862", "0.5173756", "0.51720333", "0.5145675", "0.5141917", "0.5137598", "0.51334494", "0.5132493", "0.512824", "0.51248634", "0.5112232", "0.507518", "0.5067961", "0.50657153", "0.505045", "0.50476253", "0.5045398", "0.50395626", "0.49886274", "0.49644446", "0.4924561", "0.4914613", "0.490346", "0.4890319", "0.48847535", "0.48816934", "0.48723912", "0.4847936", "0.48211953", "0.482105", "0.4812295", "0.4812153", "0.4811143", "0.48064655", "0.47983998", "0.4793813", "0.4788847", "0.47854602", "0.4783499", "0.4771397", "0.47655442", "0.47467837", "0.4745839", "0.4734942", "0.47103497", "0.4696941", "0.46706793", "0.4664998", "0.46615094", "0.46529818", "0.4643751", "0.46382725", "0.46307662", "0.46293804", "0.46223268", "0.46221858", "0.46108848", "0.4603549", "0.46026006", "0.4596358", "0.45946467", "0.4594127", "0.45880604", "0.4585939", "0.45756003", "0.4574577", "0.45679998", "0.45666918", "0.4565952", "0.45652735", "0.456348", "0.4561936" ]
0.5638661
9
Adds a new message to a current thread.
public function update($id) { DB::transaction(function () use ($id) { $url = null; if (request()->hasFile('file')) { $url = $this->files(); } try { $this->thread = Thread::findOrFail($id); } catch (ModelNotFoundException $e) { // } $this->thread->activateAllParticipants(); // Message $this->message = Message::create([ 'thread_id' => $this->thread->id, 'user_id' => request()->user()->id, 'body' => request()->body ?? null, 'file_url' => $url ?? null, 'type' => request()->type ]); // Add replier as a participant $participant = Participant::firstOrCreate([ 'thread_id' => $this->thread->id, 'user_id' => request()->user()->id, ]); $participant->last_read = new Carbon; $participant->save(); // Recipients if (request()->has('recipients')) { $this->thread->addParticipant((int) request()->recipients); } }); /** * dispatches an event */ event(new NewMessage( [ 'id' => $this->thread->id, 'users' => $this->thread->users, 'participants' => $this->thread->participants, 'extras' => collect($this->thread->users)->map(function ($user) { return [ 'profile_picture' => $user->profilePictures()->latest('created_at')->first(), 'count' => $this->thread->userUnreadMessagesCount($user->id), 'user_id' => $user->id ]; }), 'messages' => $this->thread->messages ] )); return new ThreadResource($this->thread); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function addMessage($message);", "public function add_message($message){\n $this->messages[] = $message;\n }", "public function addMessage($message) {\n $this->messages[] = $message;\n }", "public function message($message): void\n {\n $this->messages[] = $message;\n }", "public function addMessage($message)\n {\n $this->messages[] = $message;\n }", "public function addMessage($message)\n\t{\n\t\t$this->messages[] = $message;\n\t}", "function addMessage($txt = \"\"){\t$this->mMessages\t.= $txt;\t}", "function add($message) { return; }", "function tn_add_message( $type, $message ) {\n\t$m = TN_Messages::get_instance();\n\t$m->add_message( array( $type => $message ) );\n}", "public function addMessage($message)\n {\n $this->storage[] = $message;\n }", "public function addMessage($message)\n {\n $this->_messages[] = $message;\n return $this;\n }", "public function addMessageAction(){\n if (!$this->_validateFormKey()) return $this->_redirect('inchoo/tickets');\n\n if ($this->getRequest()->isPost()) {\n $ticketId = $this->getRequest()->getPost('ticket_id');\n $message = Mage::getModel('inchoo_tickets/message');\n\n $message->setTicket_id($ticketId)\n ->setMessage($this->getRequest()->getPost('message'))\n ->setAuthor(true); // true=customer\n\n if ($message->validateMessage()) $message->save();\n }\n\n $this->_redirect(\"inchoo/tickets/view/ticket/$ticketId\");\n }", "public function add_message( $new_message ) {\t\n\n\t\t$messages = $this->_read_messages();\n\n\t\tif( !is_array( $messages ) )\n\t\t\t$messages = array();\n\n\t\tarray_push( $messages, $new_message );\n\n\t\t$this->_write_messages( $messages );\n\t}", "public function addMessage(MessageInterface $message): self;", "function postNewMessage($user_id, $thread_id, $message)\n\t\t{\n\t\t\t$query=sqlite_exec($this->connection, \"INSERT INTO message(thread_id, user_id, message, date) VALUES($thread_id, $user_id, $message, NOW())\");\n\t\t}", "public function addMessage()\n {\n if(null === $this->obj_message) {\n $this->obj_message = new Message();\n }\n return $this->obj_message;\n }", "public function add_message($msg){\r\n\t\t$this->general_messages[] = $msg;\r\n\r\n\t\t$msg_array = array(\r\n\t\t\t\t'type' => 'general',\r\n\t\t\t\t'class' => $this::GEN_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}", "public function push($message);", "public function addMessage($message, $color = self::MSG_COLOR_WHITE)\n {\n switch ($color) {\n case self::MSG_COLOR_BLACK:\n $code = \"\\033[01;30m\";\n break;\n case self::MSG_COLOR_RED:\n $code = \"\\033[01;31m\";\n break;\n case self::MSG_COLOR_GREEN:\n $code = \"\\033[01;32m\";\n break;\n case self::MSG_COLOR_BROWN:\n $code = \"\\033[01;33m\";\n break;\n case self::MSG_COLOR_BLUE:\n $code = \"\\033[01;34m\";\n break;\n case self::MSG_COLOR_MAGENTA:\n $code = \"\\033[01;35m\";\n break;\n case self::MSG_COLOR_CYAN:\n $code = \"\\033[01;36m\";\n break;\n case self::MSG_COLOR_WHITE:\n $code = \"\\033[37m\";\n break;\n }\n\n $this->_messages[] = $code . $message . \"\\033[0m\";\n return $this;\n }", "public function add($message)\n {\n $this->buffer[] = $message;\n return $this;\n }", "public function add($key, $message)\n {\n $this->messages[$key][] = $message;\n }", "public function addContent($message)\n {\n }", "protected function addMessage($type, $message)\n\t{\n\t\t$entry = [\n\t\t\t'type' => $type,\n\t\t\t'message' => $message\n\t\t];\n\n\t\t$this->messages[] = $entry;\n\t}", "protected static function addMessage(stdClass $message) {\n $i = PitSession::get('PitFlash', 'i', 1);\n $msgs = PitSession::get('PitFlash', 'messages', array());\n $msgs[$i] = $message;\n PitSession::set('PitFlash', 'i', $i + 1);\n PitSession::set('PitFlash', 'messages', $msgs);\n }", "public function add($message = ''){\r\n\t\tif ($this->options['active'])\r\n\t\t\t$this->profiler->record($message);\r\n\t}", "public function addMessage( $username = false, $message = false, $gameoperator = false )\r\n {\r\n if ($username == false || $message == false)\r\n {\r\n throw new Exception( __METHOD__. \" missing argument\");\r\n }\r\n else if ($this->getId() < 0)\r\n {\r\n throw new Exception( __METHOD__. \" invalid ticketid: \".$this->getId());\r\n } \r\n \r\n $dbhelper = DBHelper::getInstance();\r\n $dbLink = &$dbhelper->getLink(); \r\n\r\n $tMsg = new TicketMessage();\r\n $tMsg->create( $this->getId(), $username, $message, $gameoperator );\r\n $this->messages[] = $tMsg->getId(); \r\n \r\n if ( $gameoperator == true )\r\n {\r\n $this->setStatus(TICKET_STATUS_ANSWERED);\r\n }\r\n else if ( $this->getStatus() == TICKET_STATUS_ANSWERED || $this->getStatus() == TICKET_STATUS_RESOLVED )\r\n {\r\n $this->setStatus(TICKET_STATUS_WAITING);\r\n }\r\n\r\n return true;\r\n }", "public function addMessage( $message, $instance = null )\n\t{\n\t\t$sql = <<<SQL\nINSERT INTO\n\ti18n_messages\nSET\n\tmessage \t= ?,\n\tinstance\t= ?\nSQL;\n\n\t\treturn $this->Execute( $sql, array(\n\t\t 'tag' => 'Add message',\n\t\t $message,\n\t\t $instance\n\t\t ) );\n\t}", "function target_add_message($message)\n{\n\tif ($GLOBALS['VERBOSE']) pf('...'. $message['subject']);\n\n\tif (!isset($GLOBALS['forum_map'][ (int)$message['forum_id'] ])) {\n\t\tpf('WARNING: Skip message ['. $message['subject'] .']. Cannot add message to non-existing forum.');\n\t\treturn;\n\t}\n\t$file_id = write_body(bbcode2fudcode($message['body']), $len, $off, $GLOBALS['forum_map'][ (int)$message['forum_id'] ] );\n\n\tif ($message['poster_id'] == 1 && isset($GLOBALS['hack_id'])) {\n\t\t$message['poster_id'] = $GLOBALS['hack_id'];\n\t}\n\n\tq('INSERT INTO '. $GLOBALS['DBHOST_TBL_PREFIX'] .'msg\n\t\t(id, thread_id, poster_id, post_stamp, update_stamp, updated_by, subject,\n\t\t ip_addr, foff, length, file_id, msg_opt, apr\n\t) VALUES (\n\t\t'. $message['id'] .',\n\t\t'. (int)$message['thread_id'] .',\n\t\t'. (int)$message['poster_id'] .',\n\t\t'. (int)$message['post_stamp'] .',\n\t\t'. (int)$message['update_stamp'] .',\n\t\t'. (int)$message['updated_by'] .',\n\t\t'. _esc($message['subject']) .',\n\t\t'. _esc(decode_ip($message['ip_addr'])) .',\n\t\t'. $off .',\n\t\t'. $len .',\n\t\t'. $file_id .',\n\t\t'. (int)$message['msg_opt'] .',\n\t\t1)'\n\t);\n}", "public function appendMessage(MessageInterface $message): void\n {\n $this->messages[] = $message;\n }", "protected function addMessage(string $message, $type = self::MESSAGE_INFO) {\n\t\t$this->messages[$type][] = $message;\n\t}", "protected static function newMessage()\n {\n self::$message = \\Swift_Message::newInstance();\n }", "function add_message($vMessage, $index = 0) {\n\t\tif ($this->get_multiple_values()) {\n\t\t\tif (!isset($this->messages[$index])) {\n\t\t\t\t$this->messages[$index] = Array();\n\t\t\t}\t\n\t\t\tarray_push($this->messages[$index], $vMessage);\n\t\t} else {\n\t\t\tarray_push($this->messages, $vMessage);\n\t\t}\n\t}", "function record_message($message) {\n global $messages;\n array_push($messages, $message);\n}", "public function addMessage(array $post) {\n $chatModel = new ChatModel();\n $lastMessage = $chatModel->InsertMessage($post);\n }", "public function add($type, $message)\n\t{\n\t\t$this->messages[] = array(\n\t\t\t'type' => $type,\n\t\t\t'message' => $message,\n\t\t);\n\t}", "public function add(Message $flash);", "public function sendMessage()\n {\n $userId = auth()->user()->id;\n\n // Save the message\n Message::create([\n 'room_id' => $this->roomId,\n 'user_id' => $userId,\n 'message' => $this->message,\n ]);\n\n // Remove the value of the message after saving\n $this->message = \"\";\n\n // Prompt the server that we sent a message\n $this->dispatchBrowserEvent('chat-send-message', [\n 'room_id' => $this->roomId,\n 'user_id' => $userId,\n ]);\n }", "public static function addMessage($message) {\n $messages = self::popMessage();\n if (is_array($messages)) {\n $messages[] = $message;\n } else {\n $messages = array();\n $messages[] = $message;\n }\n\n setcookie(self::$_name, serialize($messages), time() + self::$_time, self::$_path);\n }", "static function message($message)\n {\n global $template_vars;\n $template_vars['messages'][] = $message;\n }", "public function appendMessage(MessageInterface $message)\n\t{\n\t\t$this->_messages[] = $message;\n\t}", "public static function add_static_message( $message ) {\n\n\t\tadd_filter( 'tn_get_messages', function( $messages ) use ( $message ) {\n\n\t\t\tarray_push( $messages, $message );\n\t\t\treturn $messages;\n\n\t\t},10 );\n\n\t}", "public function set_message($message)\n {\n $this->messages[] = $message;\n\n return $message;\n }", "public function addMessage($message, $type) {\n\t\t$messages = $_SESSION[$this->sessionKey];\n\t\t\n\t\t$messages[] = [\n\t\t\t'message' => $message,\n\t\t\t'type' => $type,\n\t\t];\n\t\t\n\t\t$_SESSION[$this->sessionKey] = $messages;\n\t}", "public function insert_message($user_id, $writer_id, $message, $log_as_event, $thread_id=null)\n {\n require_once('Validator.php');\n return $this->call('gst_message_insert', $user_id, $writer_id, $message, $thread_id, $log_as_event);\n }", "public function addMessage(MailMessage $message) {\n\t\t$this->messages[] = $message;\n\t\treturn $this;\n\t}", "public function actionWriteMessage() {\n\t\ttry {\n\t\t\treturn $this->getService('SupportMessage')->add();\n\t\t} catch (Exception $e) {\n\t\t\treturn $this->sendError('You reached some error');\n\t\t}\n\t}", "public function addMessage($message, $status = null)\n {\n $messenger = $this->getMessenger();\n $messenger->addMessage($message, $status);\n\n return $this;\n }", "function add_message($messages){\n global $messages;\n $messages[] = $messages;\n}", "public function addMessage(string $message): void\n {\n $this->errorMessages[] = $message;\n }", "public function add_message($message, $class=\"notifyproblem\", $align='center') {\n global $SESSION;\n\n if (empty($SESSION->languagelesson_messages) || !is_array($SESSION->languagelesson_messages)) {\n $SESSION->languagelesson_messages = array();\n $SESSION->languagelesson_messages[$this->properties->id] = array();\n } else if (!array_key_exists($this->properties->id, $SESSION->languagelesson_messages)) {\n $SESSION->languagelesson_messages[$this->properties->id] = array();\n }\n\n $SESSION->languagelesson_messages[$this->properties->id][] = array($message, $class, $align);\n\n return true;\n }", "public static function push($message) : void\n {\n array_push(static::$stack, (string)$message);\n \n }", "public function add_message()\n {\n $result = $this->message->verify_message();\n if($result != NULL)\n {\n $this->session->set_flashdata('errors', $result);\n redirect('/messages/'.$this->session->userdata(\"selected_user_to_view\").'');\n }\n else\n {\n $this->message->add_message($this->input->post(NULL, TRUE));\n redirect('/messages/'.$this->session->userdata(\"selected_user_to_view\").'');\n }\n }", "public function add($message, $messageType = false) {\n if ( empty($this->_queue) ) {\n return false;\n }\n\n\t\tif(false === $messageType)\n\t\t{\n\t\t\t$crcMessageType = $this->_msgType;\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$crcMessageType = sprintf(\"%u\", crc32($messageType));\n\t\t}\n\n\t\tif ( false === msg_send($this->_queue, $crcMessageType , $message, $this->_serialize, $this->_blockSend, $err) ) {\n $this->_lastError = $err;\n return false;\n }\n return true;\n }", "protected function addMessage(Request $request) {\n $message = new Message;\n\n $user = Participant::where([['user_id', Auth::user()->id], ['conversation_id', $request->conversation_id]])->first(['id']);\n if ($user == null)\n return ['saved' => false];\n\n $message->conversation_id = $request->conversation_id;\n $message->participant = $user->id;\n $message->body = $request->body;\n\n if ($message->save()) {\n $conversation = Conversation::find($message->conversation_id);\n $conversation->last_message = $message->created_at;\n $conversation->save();\n $message->conversation = $conversation;\n event(new MessageSent($message));\n return ['saved' => $message];\n }\n return ['saved' => false];\n }", "function addMessage($message)\r\n{\r\n\t$name = ($message['action']) ? '*'.$message['name'] : $message['name'];\r\n\t$text = $message['text'];\r\n\t$time = $message['time'];\r\n\r\n\tif(strlen($name) == 0)\r\n\t\treturn;\r\n\r\n\t$line = $time.'||'.$name.'||'.$text;\r\n\r\n\t// Pull the current file contents\r\n $fileContents = file(LACE_FILE);\r\n\t$size = count($fileContents);\r\n\r\n if ($size >= LACE_FILE_MAX_SIZE)\r\n {\r\n\t // Push the oldest entries out\r\n\t // and put the new one in\r\n\t for ($i = 0; $i <= $size - LACE_FILE_MAX_SIZE; $i++)\r\n\t\t array_shift($fileContents);\r\n\r\n\t $fileContents[] = $line;\r\n \t$fileContents = implode(\"\\n\", array_map('trim', $fileContents)).\"\\n\";\r\n\r\n \t// Write it to file\r\n \tfile_put_contents(LACE_FILE, trim($fileContents));\r\n }\r\n else\r\n {\r\n // No need to push anything off the stack,\r\n // just write to file\r\n \t$file = fopen(LACE_FILE, 'a');\r\n fwrite($file, $line.\"\\n\");\r\n fclose($file);\r\n }\r\n\r\n // Add to the log\r\n logMessage($line);\r\n}", "public function sendMessage($user_id, $message)\n {\n $this->_Database->query(\"INSERT INTO chat (chat_id, user_id, message, time_posted) VALUES ('', :user_id, :message, CURRENT_TIMESTAMP)\", array(':user_id' => $user_id, ':message' => $message));\n }", "public function addMessage($message, $label = 'info')\r\n {\r\n if ($this->hasCollector('messages')) {\r\n /** @var \\DebugBar\\DataCollector\\MessagesCollector $collector */\r\n $collector = $this->getCollector('messages');\r\n $collector->addMessage($message, $label);\r\n }\r\n }", "function tn_add_static_message( $type, $message ) {\n\tTN_Messages::add_static_message( array( $type => $message ) );\n}", "public function addMessage($message, $type = self::MSG_SUCCESS)\n {\n $msg = new stdClass();\n $msg->type = $type;\n $msg->message = $message;\n\n return parent::addMessage($msg);\n }", "public function addStructure(Message $message)\n {\n $this->_messages[] = $message;\n\n }", "public function AddMessage( $message )\n {\n ART_Error::AddMessage( $message );\n\n echo \"<p id=\\\"error\\\">\" . $this->message . \"</p>\\n\";\n }", "public function addMessageToQueue($message, $queue)\n {\n $this->queue->putInTube($queue, $message);\n }", "public function addMessage($message = NULL, $class = NULL)\n\t{\n\t\tif (!$message ||\n\t\t\t!is_string($message)) {\n\t\t throw new L8M_Doctrine_Import_Exception('Message needs to be specified as a string.');\n\t\t}\n\n\t\tif ($class &&\n\t\t\t!is_string($class)) {\n\t\t\tthrow new L8M_Doctrine_Import_Exception('If specified, class needs to be a string.');\n\t\t}\n\n\t\t$this->_messages[] = array(\n\t\t\t'class'=>$class,\n\t\t\t'value'=>$message,\n\t\t);\n\n\t\treturn $this;\n\t}", "protected function addNotification($message)\n {\n $event = new NotificationEvent();\n $event->setMessage($message);\n \n $this\n ->eventDispatcher\n ->dispatch(NotificationEvent::NAME, $event)\n ;\n }", "public function addFeedback($msg)\n {\n array_push($this->_feedback, $msg);\n }", "function add_message($message = 'Empty message') // here the 'Foo' from line 52 became $message variable inside function\n{\n\tglobal $messages;\n\t\n\t$messages[] = $message;\n}", "function add_message($msg, $msg_type = MSG_TYPE_SUCCESS) {\n if (!isset($_SESSION['message']))\n $_SESSION['message'] = [];\n $_SESSION['message'][] = ['type' => $msg_type, 'message' => htmlentities($msg, ENT_QUOTES)];\n}", "public function message($message);", "public function append(MessageInterface $message): void\n {\n $this->items[$message::class] = $message;\n }", "public function add($message, array $data = [])\r\n {\r\n $this->messages->add(new Message($message, $data));\r\n\r\n return $this;\r\n }", "public function addMessage($type, $value)\n {\n if (!$this->hasMessages($type)) {\n $_SESSION['_zikula_messages'][$type] = array();\n }\n $_SESSION['_zikula_messages'][$type][] = $value;\n }", "public function addMsg($pMessage,\r\n $pAdditionalMessage = null) {\r\n if ($pAdditionalMessage === null) {\r\n $this->message .= $pMessage . \". \";\r\n } else {\r\n $this->message .= $pMessage . \" (\" . $pAdditionalMessage . \"). \";\r\n }\r\n }", "public function attach(Message $message): void;", "protected function addMessage($type,$message) \n { \n $this->flashMessenger()->setNamespace($type)->addMessage(array($type => $message));\n }", "function ajan_core_add_message( $message, $type = '' ) {\n\n\t// Success is the default\n\tif ( empty( $type ) ) {\n\t\t$type = 'success';\n\t}\n\n\t// Send the values to the cookie for page reload display\n\t@setcookie( 'ajan-message', $message, time() + 60 * 60 * 24, COOKIEPATH );\n\t@setcookie( 'ajan-message-type', $type, time() + 60 * 60 * 24, COOKIEPATH );\n\n\t// Get ActivityNotifications\n\t$ajan = activitynotifications();\n\n\t/***\n\t * Send the values to the $ajan global so we can still output messages\n\t * without a page reload\n\t */\n\t$ajan->template_message = $message;\n\t$ajan->template_message_type = $type;\n}", "public function addMessage(Message $message)\n {\n $apnsMessage = new ApnsPHP_Message;\n\n if(!empty($message->deviceTokens)) {\n foreach ($message->deviceTokens as $deviceToken) {\n $apnsMessage->addRecipient($deviceToken);\n }\n }\n\n $apnsMessage->setCustomIdentifier(!empty($message->customIdentifier) ?\n $message->customIdentifier : 'Message-' . count($this->messages));\n\n if(!empty($message->badge)) {\n $apnsMessage->setBadge($message->badge);\n }\n\n $apnsMessage->setText($message->text);\n\n $apnsMessage->setSound(!empty($message->sound) ? $message->sound : 'default');\n $apnsMessage->setExpiry(!empty($message->expiry) ? $message->expiry : 30);\n\n if(!empty($message->customProperties)) {\n foreach ($message->customProperties as $key => $val) {\n $apnsMessage->setCustomProperty($key, $val);\n }\n }\n\n $this->messages[] = $apnsMessage;\n }", "private function _message($message)\n {\n if ($this->_data->channel)\n {\n $this->_irc->message(SMARTIRC_TYPE_CHANNEL, $this->_data->channel, $message);\n }\n else {\n $this->_privmessage($message, $this->_data->nick);\n }\n\n \n }", "static function addMessage($Message = null)\r\n {\r\n if ($Message === null)\r\n {\r\n return false;\r\n }\r\n\r\n $tableMessage = DatabaseManager::getNameTable('TABLE_MESSAGE');\r\n\r\n $contest = $Message->getContest();\r\n $idUserFrom = $Message->getIdUserFrom();\r\n $idUserTo = $Message->getIdUserTo();\r\n $time = $Message->getTime();\r\n\r\n $query = \"INSERT INTO $tableMessage\r\n (contest, idUserFrom, idUserTo, seen, received, time)\r\n VALUES \r\n ('$contest', '$idUserFrom', '$idUserTo', 0, 1, $time)\";\r\n \r\n return DatabaseManager::singleAffectedRow($query);\r\n }", "public function sendMessage(BotMessage $message): void;", "public function addMessage ($text, $type) {\n $array = array();\n if (isset($_SESSION['messages'])) {\n array_push($array, $text, $type);\n $_SESSION['messages'][] = $array;\n } else {\n array_push($array, $text, $type);\n $_SESSION['messages'] = array($array);\n }\n }", "function addMessage($subject, $message, $recipient, $sender) {\r\n\t\t$time = time();\r\n\t\t$query = \"INSERT INTO \".TBL_MAIL.\" (UserTo, UserFrom, Subject, Message, SentDate, status) VALUES (:recipient, :sender, :subject, :message, '$time', 'unread')\";\r\n\t\t$stmt = $this->connection->prepare($query);\r\n\t\t$stmt->execute(array(':recipient' => $recipient, ':sender' => $sender, ':subject' => $subject, ':message' => $message));\r\n\t\t$result = $this->connection->lastInsertId();\r\n\t\tif(!$result){\r\n\t\t\treturn false; // failure\r\n\t\t} else {\r\n\t\t\treturn $result; // success\r\n\t\t}\r\n\t}", "public function queue() {\n\t\t$this->prepareMessage();\n\t\t$this->queueRepository->add($this->toArray());\n\t}", "public function withMessage(Message $message): void;", "protected function setMessage($message, $method, $line) {\n global $logger;\n self::$message .= $message;\n $logger->addInfo(sprintf('[%s - %s] %s', $method, $line, strip_tags($message)));\n }", "protected function addFlashMessage($message, $code)\n {\n $flashMessage = GeneralUtility::makeInstance(FlashMessage::class,\n $message,\n '',\n $code,\n true\n );\n\n $flashMessageService = $this->objectManager->get(FlashMessageService::class);\n $messageQueue = $flashMessageService->getMessageQueueByIdentifier();\n $messageQueue->addMessage($flashMessage);\n }", "public function message( $msg ) {\n $this->message = $msg;\n return $this;\n }", "protected function sendMessage($message) {\n if ($this->currentSite != $message->site_id) {\n $this->switchToSite($message->site_id);\n $this->currentSite = $message->site_id;\n $this->mailer = new MailerTool();\n }\n\n // Proceed as normal\n parent::sendMessage($message);\n }", "public function message($message)\n {\n $this->message = $message;\n\n return $this;\n }", "public function sendMessage($message)\n\t{\n\t\tglobal $log;\n\n\t\tif (!empty($this->channel)) {\n\t\t\t$log->print(date('H:i:s', time()));\n\t\t\t$log->println(' > ' . $message, COLOR_BOT_MESSAGE);\n\t\t\t$this->send('PRIVMSG #' . $this->channel . ' : ' . $message);\n\t\t} else\n\t\t\techo '[ERROR] No channel were joined' . PHP_EOL;\n\t}", "function thrive_dashboard_add_message($message)\n{\n $messages = get_option('td_messages', array());\n\n if (is_string($message)) {\n $message = array(\n 'text' => $message,\n 'css_class' => 'info'\n );\n }\n\n $messages[] = $message;\n update_option('td_messages', $messages);\n}", "public function setMessage( $message );", "public abstract function sendMessage();", "function message($message_id)\n\t{\n\t\t//echo '<pre>'.$this->MessageFunc.'</pre>';\n\t\t$func = create_function('$id,$text',$this->MessageFunc);\n\t\t\n\t\t$func($message_id,$this->forum_text[$message_id]);\n\t\treturn false;\n\t}", "function add_message($post)\n {\n date_default_timezone_set(\"ASIA/Manila\");\n $date = date('Y/m/d H:i:s');\n $query = 'INSERT INTO messages (user_id, message, created_at) \n VALUES (?, ?, ?)';\n $values = array($post['message_sender_id'], $post['message'], $this->security->xss_clean($date));\n return $this->db->query($query, $values);\n }", "public function insert($level, $message){\r\n\t\tif($level >= self::$total_constants || $level < 0)\r\n\t\t\tthrow new Exception(\"Level value out of bounds\");\r\n\t\t\r\n\t\t$this->messages[$level][] = $message;\r\n\t\t$this->size++;\r\n\t}", "public static function send_message($message){\n\t\tglobal $DB;\n\t\tif(!is_object($message)){\n\t\t\t$message = $DB->get_record('certif_messages_log', ['id' => $message]);\n\t\t}\n\t\tif($message){\n\t\t\t$user = $DB->get_record('user', ['id' => $message->userid]);\n\t\t\t$contact = \\core_user::get_support_user();\n\t\t\tif(!$user){\n\t\t\t\t$user = clone $contact;\n\t\t\t\t$user->email = $message->email;\n\t\t\t\t$user->firstname = '';\n\t\t\t\t$user->lastname = '';\n\t\t\t}\n\n\t\t\t$message->body = nl2br($message->body);\n\t\t\temail_to_user($user, $contact, $message->subject, strip_tags($message->body), $message->body);\n\n\t\t\t$message->timesent = time();\n\t\t\t$DB->update_record('certif_messages_log', $message);\n\t\t}\n\t}", "public function create()\n {\n //\n $this->message->sendMessage();\n }", "public function add($threadID = NULL) {\n if ($this->request->is('post')) {\n if ($this->Forum->save($this->request->data)) {\n $this->Session->setFlash('Your forum has been saved.');\n $this->redirect($this->referer());\n } else {\n $this->Session->setFlash('Unable to add your forum.');\n }\n }\n }", "public function append ($message, $level = self::ok)\n {\n\n $this->_messages[] = array($message, $level);\n return $this;\n }", "function add_message_chat($roomID, $userID, $message, $send_date)\n {\n \t$message = array(\n \t\t'USER_ID' \t=> $userID,\n \t\t'ROOM_ID' \t=> $roomID,\n \t\t'CONTENT' \t=> $message,\n \t\t'SEND_DATE'\t=> $send_date\n \t);\n \t$this->db->insert('CHAT_MESSAGES', $message);\n \treturn $this->db->affected_rows();\n }", "private function _set_message($message)\n {\n // set message in $_message property\n $this->_message = $message;\n\n return;\n }" ]
[ "0.70429075", "0.679842", "0.6688809", "0.6683045", "0.6666745", "0.6664847", "0.6499021", "0.6420816", "0.6288385", "0.6238943", "0.6202987", "0.61090475", "0.6086344", "0.60697407", "0.6029736", "0.5977185", "0.5944794", "0.5938465", "0.59378135", "0.5934339", "0.59286857", "0.5925832", "0.589976", "0.58826274", "0.58544624", "0.58478147", "0.57906187", "0.57884187", "0.57752305", "0.5768625", "0.576304", "0.5747155", "0.5746029", "0.56845266", "0.5662557", "0.56270653", "0.561276", "0.5586454", "0.5580687", "0.55774", "0.55751073", "0.55554974", "0.5504664", "0.5496798", "0.5476767", "0.54722553", "0.5466134", "0.54623246", "0.54375803", "0.54101706", "0.5406662", "0.5404557", "0.54034567", "0.53989446", "0.5364756", "0.5345892", "0.5340448", "0.53302926", "0.5320889", "0.53140754", "0.5312277", "0.53104115", "0.53095734", "0.52937424", "0.5278116", "0.5272126", "0.5260553", "0.5257325", "0.5256042", "0.5255089", "0.5240705", "0.52406794", "0.52357376", "0.5233788", "0.5208895", "0.51944965", "0.5193684", "0.51926386", "0.5176579", "0.5175933", "0.5171563", "0.51712734", "0.5169265", "0.5166853", "0.5166742", "0.5156479", "0.5154821", "0.51536036", "0.514807", "0.5146413", "0.5141149", "0.51264507", "0.5116296", "0.5113491", "0.51087976", "0.50990576", "0.5097909", "0.5093952", "0.5092379", "0.50918674", "0.50887525" ]
0.0
-1
USER connected function. Handle service addition.
public function addService(array $request) { // Make sure user is connected before allowing to add a new service. $this->redirectIfNotLoggedIn('user', 'login'); if($this->isFormSubmitted()) { if($this->issetAndNotEmpty($request, 'subject', 'descriptionService')) { $subject = DB::secureData($request['subject']); $description = DB::secureData($request['descriptionService']); $service = new UserService(); $service->setSubject($subject); $service->setDescription($description); $service->setServiceDate((new \DateTime())->format('Y-m-d h:i:s')); $service->setUser($this->user); // Checking if user has uploaded a service image. if($_FILES['serviceImage']['size'] > 0) { $fileUploader = new FileUpload($_FILES['serviceImage'], '/assets/uploads/services/'); if(!$fileUploader->isSizeInThreshold() || !$fileUploader->upload()) { $this->setErrorMessage("Une erreur est survenue en envoyant l'image de votre service."); } else { $service->setImage($fileUploader->getFinalFileName()); } } $this->userServiceManager->addService($service); if($service->getId() !== null) { $this->setSuccessMessage("Votre service a bien été ajouté."); } else { $this->setErrorMessage("Une erreur est survenue en ajoutant votre service."); } } else { $this->setErrorMessage("Tous les champs requis ne sont pas remplis !"); } } $this->addCss($this->profileCss); $this->addJavaScript($this->javaScripts); $this->showView('service/createService', [ 'userProfile' => $this->userProfileManager->getUserProfile($this->user) ]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function connected($user)\n\t{\n\t}", "public function on_user_add(&$user) {\r\n\t\t$this->socket_array[(int)$user->socket] = $user;\r\n\t}", "function appConnected(){\n\n}", "public function on_start(){\r\n\t\t$u = new User();\r\n\t\tif ($u->isRegistered()) {\r\n\t\t\t$ui = UserInfo::getByID($u->getUserID());\r\n\t\t\t$this->myUI = $ui;\r\n\t\t\t$color = $ui->getUserFavoriteColor(); // \"favorite color\"\r\n\t\t\t$this->set('favoriteColor',$color);\r\n\t\t}\r\n\t\t$form = Loader::helper('form');\r\n\t\t$this->set('form', $form);\r\n\t\t$hcolor = Loader::helper('form/color');\r\n\t\t$this->set('hcolor', $hcolor);\r\n\r\n\t}", "abstract protected function connected($user);", "abstract protected function connected($user);", "private function addUser()\n {\n $this->online->addUser($this->user, $this->place, $this->loginTime);\n }", "public function connected()\n {\n }", "public function init()\n {\n $this->_service = new App_Services_User();\n }", "public function onSessionsAdd()\n\t{\n\t\t$this->onTaskAdd();\n\t}", "function is_user_connected_with($service){\n\tglobal $user_ID;\n\tswitch($service){\n\t\tcase 'facebook':\n\t\t\treturn (boolean) get_facebook_id($user_ID);\n\t\t\tbreak;\n\t\tdefault:\n\t\t\treturn false;\n\t\t\tbreak;\n\t}\n}", "function index($service_name) {\n // for checking & merging users\n $this->load->model('user_model');\n //Basically an include() for the service, found in application/libraries/Service/drivers/Service_{$service_name}.php\n $this->load->driver('service', array('adapter' => $service_name));\n if (!$this->service->is_valid($service_name)) {\n show_error('Error : ' . $service_name . ' is not a valid service name.');\n }\n \n // get user id and tokens from service\n $data = $this->service->$service_name->callback($this->input->get());\n \n if (!$data) {\n show_error('Error : Authentication of ' . $service_name . ' failed');\n }\n \n // check if service is linked to existing user\n $user = $this->user_model->get_token_by_ext_id($service_name, $data->ext_user_id);\n \n // do some if else checks\n if (!$user && !$this->session->userdata('user_id')) {\n // no user exists\n $user = $this->user_model->create(isset($data->user) ? $data->user : new stdClass());\n $user_id = $user->user_id;\n \n } else if ($user && $this->session->userdata('user_id') && $user->user_id != $this->session->userdata('user_id')) {\n // merge 2 users\n $this->user_model->merge($user->user_id, $this->session->userdata('user_id'));\n $user_id = $user->user_id;\n } else if ($user && !$this->session->userdata('user_id')) {\n // connect to previous registered logged in user\n $user_id = $user->user_id;\n } else if (!$user && $this->session->userdata('user_id')) {\n // connect to logged in user\n $user_id = $this->session->userdata('user_id');\n } else {\n // logged in and registered before\n $user_id = $this->session->userdata('user_id');\n }\n \n // log in user\n $this->session->set_userdata('user_id', (int) $user_id );\n \n // prep data\n $data = array(\n 'user_id' => (int) $user_id,\n 'service_type' => $service_name,\n );\n \n // save tokens\n $this->user_model->set_token($data);\n \n // if session auth_request is set, handle auth_request (redirect)\n if ($this->session->userdata('auth_request')) {\n $this->repeat_authorize();\n }\n \n if ($redirect = $this->session->userdata('redirect')) {\n \t$this->session->unset_userdata('redirect');\n redirect($redirect);\n } else {\n redirect('profile/plugs');\n }\n }", "public function connected()\n {\n $this->connected = true;\n }", "public function register()\n {\n //$_SESSION['prov'] = 'this will be called at bootstrapping application, before EventServicesProvider';\n }", "protected function connected ($user)\n\t\t{\n\t\t\t//Send welcome message to user\n\t\t\t$welcome_message = 'Hello!<br>Welcome to the Websocket server!<br>Type \"help\" to see what commands are available.';\n\t\t\t$this->stdout(\"\\n\\nTESTING OUTPUT\\n\\n\");\n\t\t\t$this->send($user, $welcome_message);\n\t\t}", "function onOpen(ConnectionInterface $conn)\n {\n /** @var QueryString $GET */\n $GET = $conn->WebSocket->request->getQuery();\n if(empty($this->users[$GET->get('userId')])) $this->users[$GET->get('userId')] = [];\n $this->users[$GET->get('userId')][] = $conn;\n\n echo \"New connection! ({$conn->resourceId})\".PHP_EOL;\n }", "public function track_helper_connection_start() {\n\t\tWC_Tracks::record_event( 'extensions_subscriptions_connect' );\n\t}", "public function startCommunication()\n {\n if ($this->provider->login()) {\n $this->provider->keepAuth = true;\n }\n }", "function wise_chat_after_setup_theme_action() {\n /** @var WiseChatUserService $userService */\n\t$userService = WiseChatContainer::get('services/user/WiseChatUserService');\n\t$userService->initMaintenance();\n\t$userService->switchUser();\n}", "function subscribeUser()\n\t\t{\n\t\t\techo $this->email.\"add to the database !!\";\n\t\t}", "function wsOnOpen($clientID)\n{\n\tglobal $Server;\n\t$ip = long2ip( $Server->wsClients[$clientID][6] );\n\n\t$Server->log( \"$ip ($clientID) has connected.\" );\n\t// You may have expected a message about user connecting sent to all users here, but user connected\n\t// is sent upon nick change instead, because we don't have the nickname when a user connects\n}", "public function _add_current_service() {\n // Press link to header\n $this->_urls[ _( 'Booking' ) ]['index'] = U( 'User/Booking/current' );\n $t_arr = array_reverse( $this->_urls[ _( 'Booking' ) ]['User'], true ); \n $t_arr[ _( 'Current' ) ] = array( 'icon' => '', 'url' => U( 'User/Booking/current' ) );\n $this->_urls[ _( 'Booking' ) ]['User'] = array_reverse( $t_arr, true );\n }", "protected function getUserService()\n {\n return $this->services['user'] = new \\phpbb\\user(${($_ = isset($this->services['language']) ? $this->services['language'] : $this->getLanguageService()) && false ?: '_'}, '\\\\phpbb\\\\datetime');\n }", "static function momentConnect()\r\n {\r\n $user = self::getCurrentUser();\r\n\r\n if ($user !== NULL)\r\n {\r\n $user->setOffline(0);\r\n self::updateUser($user);\r\n }\r\n }", "function user()\n {\n $this->load->library('service');\n $data = file_get_contents('php://input');\n $ret = array(\n 'out' => $this->service->handle('user', $data)\n );\n $this->output($ret);\n }", "function user_active(&$irc, &$data)\n\t{\n\t\tglobal $users;\n\t\tglobal $pickupchannel;\n global $pickup;\n\n\t\t//Remind the user they are added\n\t\tif((time() - $users->last_active($users->nicktoqauth($data->nick))) > 360)\n\t\t{\n\t\t if($pickup->is_added($users->nicktoqauth($data->nick)))\n\t\t {\n\t\t\t $irc->message(SMARTIRC_TYPE_CHANNEL, $pickupchannel, \"\\x0302,00\".$data->nick.\": Remember you are added to this pickup. If you can't play type !del\");\n\t\t\t}\n\t\t}\n\n\t\t$users->user_active($data->nick);\n\t}", "public static function userLoginSuccess(){\n self::$IntelligenceService->addToIntelligenceStack(self::USER_INTELLIGENCE_LOGIN_KEY, self::USER_INTELLIGENCE_SUCCESS);\n }", "public function configuration()\n {\n $this->socketIO->on('connection', function($socket)\n {\n $socket->loggedUser = false;\n\n // cuando se ejecute en el cliente el evento add user\n $socket->on('add user', function ($username) use($socket)\n {\n\n // guardamos al usuario en sesión\n $socket->username = $username;\n\n //añadimos al cliente a la lista global\n #$this->usernames[$username] = $username;\n array_push($this->usernames, $username);\n ++$this->numUsers;\n\n $socket->loggedUser = true;\n $socket->emit('login', array(\n 'numUsers' => $this->numUsers,\n 'usernames' => $this->usernames,\n ));\n\n // notificamos a todos que un usuario ha entrado\n $socket->broadcast->emit('user joined', array(\n 'username' => $socket->username,\n 'numUsers' => $this->numUsers,\n \"usernames\"=> $this->usernames\n ));\n\n });\n\n // cuando se ejecute en el cliente el evento new message\n $socket->on('new message', function($message) use($socket)\n {\n //me notifico del mensaje que he escrito\n $socket->emit(\"new message\", array(\n \"action\" => \"yo\",\n \"message\" => \"Yo: \" . $message\n )\n );\n\n //notificamos al resto del mensaje que he escrito\n $socket->broadcast->emit(\"new message\", array(\n \"action\" => \"chat\",\n \"message\" => $socket->username . \" dice: \" . $message\n ));\n });\n\n // cuando se ejecute en el cliente el evento status\n $socket->on('status', function () use ($socket) {\n\n $socket->emit('status', array(\n 'numUsers' => $this->numUsers,\n \"usernames\"=> array_values($this->usernames)\n ));\n });\n\n // cuando se ejecute en el cliente el evento user logout\n $socket->on('user logout', function () use($socket)\n {\n\n if($socket->loggedUser)\n {\n //actualizamos la lista de usuarios conectados\n unset($this->usernames[$socket->username]);\n $this->numUsers--;\n\n // notificamos de forma global que el usuario está fuera\n $socket->broadcast->emit('user left', array(\n 'username' => $socket->username,\n 'numUsers' => $this->numUsers,\n \"usernames\"=> $this->usernames\n ));\n }\n });\n\n //evento de socketio cada vez que un nuevo socket se desconecta (cierra la web o actualiza el navegador)\n $socket->on('disconnect', function () use($socket)\n {\n // eliminamos al usuario de la lista de usuarios\n if($socket->loggedUser) {\n //actualizamos la lista de usuarios conectados\n //unset($this->usernames[$socket->username]);\n //$this->numUsers--;\n $key = array_search($socket->username, $this->usernames);\n unset($this->usernames[$key]);\n --$this->numUsers;\n\n // notificamos de forma global que el usuario está fuera\n $socket->broadcast->emit('user left', array(\n 'username' => $socket->username,\n 'numUsers' => $this->numUsers,\n 'usernames' => $this->usernames\n ));\n }\n });\n });\n }", "protected function getConsole_Command_User_AddService()\n {\n return $this->services['console.command.user.add'] = new \\phpbb\\console\\command\\user\\add(${($_ = isset($this->services['user']) ? $this->services['user'] : $this->getUserService()) && false ?: '_'}, ${($_ = isset($this->services['dbal.conn']) ? $this->services['dbal.conn'] : ($this->services['dbal.conn'] = new \\phpbb\\db\\driver\\factory($this))) && false ?: '_'}, ${($_ = isset($this->services['config']) ? $this->services['config'] : $this->getConfigService()) && false ?: '_'}, ${($_ = isset($this->services['language']) ? $this->services['language'] : $this->getLanguageService()) && false ?: '_'}, ${($_ = isset($this->services['passwords.manager']) ? $this->services['passwords.manager'] : $this->getPasswords_ManagerService()) && false ?: '_'}, './../', 'php');\n }", "public function onOpen(ConnectionInterface $conn)\n {\n echo \"new connection from {$conn->remoteAddress}\\n\";\n $this->users->attach($conn);\n }", "abstract public function connected();", "function onUserLogin($user,$option)\n\t{\t\n\t\t$this->afterLogin($user, $option);\n\t}", "protected function callService ()\n\t{\n\t\t$this->protocol->callService( $this->data ) ;\n\t}", "public function integrate_users() { \n\t\tglobal $wpuDebug;\n\t\t\n\t\t$wpuDebug->add('Integrate users hook called.');\n\t\t\n\t\tif(!$this->has_inited()) {\n\t\t\t$wpuDebug->add('WARNING: A plugin has called set_current_user too early! Initing phpBB environment.');\n\t\t\t$this->init_plugin();\n\t\t}\n\n\t\tif($this->is_working() && $this->get_setting('integrateLogin') && !defined('WPU_DISABLE_LOGIN_INT')) {\n\t\t\twpu_integrate_login();\n\t\t}\n\t}", "function onLaunch() {\n // context and resourceLink properties of the class instance\n // to access the current user, context and resource link.\n\n//\t$this->reason = 'Incomplete data';\n// $this->ok = false;\n//\t$users = $context->getMemberships();\n\n }", "public function add_service() {\r\n if (USER_ROLE == ROLE_ONE) {\r\n $result['companies'] = $this->company_model->get_companies_id_name();\r\n $this->load->view('webpages/add_service', $result);\r\n } else {\r\n $this->load->view('webpages/404');\r\n }\r\n }", "public function addUser(){\n\t}", "function connect($servidor, $usuario, $clave) {\r\n\t\t// \"implementado en la clase <i>\" . get_class($this) . \"</i></h1>\";\r\n\t\treturn FALSE;\r\n\t}", "public function connected()\n\t{\n\t\treturn true;\n\t}", "function userConnect(){\r\n if (isset($_SESSION['user'])) {\r\n return TRUE;\r\n }else{\r\n return FALSE;\r\n }\r\n // if(isset($_SESSION['user'])) return TRUE; else return FALSE;\r\n }", "static public function on_user_login( $nick )\n\t{\n\t\tself::umode( core::$config->nickserv->nick, $nick, '+r' );\n\t}", "public function onReady() {\n\t\t$appInstance = $this; // a reference to this application instance for ExampleWebSocketRoute\n\t\t\\PHPDaemon\\WebSocket\\WebSocketServer::getInstance()->addRoute('ExamplePubSub', function ($client) use ($appInstance) {\n\t\t\treturn new ExamplePubSubWebSocketRoute($client, $appInstance);\n\t\t});\n\t\t$this->sql = \\PHPDaemon\\Clients\\MySQLClient::getInstance();\n\t\t$this->pubsub = new \\PHPDaemon\\PubSub();\n\t\t$this->pubsub->addEvent('usersNum', \\PHPDaemon\\PubSubEvent::init()\n\t\t\t\t\t\t\t\t\t\t\t\t ->onActivation(function ($pubsub) use ($appInstance) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t \\PHPDaemon\\Daemon::log('onActivation');\n\t\t\t\t\t\t\t\t\t\t\t\t\t if (isset($pubsub->event)) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t \\PHPDaemon\\Timer::setTimeout($pubsub->event, 0);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t return;\n\t\t\t\t\t\t\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t\t\t\t\t\t\t $pubsub->event = setTimeout(function ($timer) use ($pubsub, $appInstance) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t $appInstance->sql->getConnection(function ($sql) use ($pubsub) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t if (!$sql->connected) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t return;\n\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 $sql->query('SELECT COUNT(*) `num` FROM `dle_users`', function ($sql, $success) use ($pubsub) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t $pubsub->pub(sizeof($sql->resultRows) ? $sql->resultRows[0]['num'] : 'null');\n\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 });\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t $timer->timeout(5e6); // 5 seconds\n\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 })\n\t\t\t\t\t\t\t\t\t\t\t\t ->onDeactivation(function ($pubsub) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t if (isset($pubsub->event)) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t \\PHPDaemon\\Timer::cancelTimeout($pubsub->event);\n\t\t\t\t\t\t\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t\t\t\t\t\t })\n\t\t);\n\t}", "function on_start(){\n //$userID = $u->getUserID();\n \n //print \"runnin\";\n //$cartEventClassName = 'ScottcAffiliateRelation';\n //$cartEventClassPath = 'packages/scottc_affiliates/libraries/affiliate_relation.php';\n $eventClassName = 'AffiliateGateway';\n $eventClassPath = 'packages/affiliate_gateway/libraries/affiliate_gateway.php';\n \n define(\"ENABLE_APPLICATION_EVENTS\", true);\n \n Events::extend('on_start', $eventClassName, 'eventOnStart', $eventClassPath, $_GET);\n //Events::extend('on_page_view', 'AffiliateGateway', 'eventOnStart', 'packages/affiliate_gateway/libraries/affiliate_gateway.php');\n \n // if($_GET){\n // Loader::library('affiliate_relation',SCOTTECOMAFFILATESPACKAGEHANDLE);\n // $har = new ScottcAffiliateRelation($_GET);\n // }\n }", "function phpbb_user_session_handler()\n{\n\tglobal $phpbb_hook;\n\n\tif (!empty($phpbb_hook) && $phpbb_hook->call_hook(__FUNCTION__))\n\t{\n\t\tif ($phpbb_hook->hook_return(__FUNCTION__))\n\t\t{\n\t\t\treturn $phpbb_hook->hook_return_result(__FUNCTION__);\n\t\t}\n\t}\n\n\treturn;\n}", "private function preAddUser(){\n $LMS = new LMS();\n $api = $LMS->getDataXUserPass($this->_user, $this->_pass, 'https://www.sistemauno.com/source/ws/uno_wsj_login.php');\n $this->_person = \"\";\n if ($this->isObjectAPI($api)) {\n //validar Permisos\n $FilterAPI = new FilterAPI($api);\n $this->_datPerson = $FilterAPI->runFilter($this->_user, $this->_pass);\n if (is_array($this->_datPerson)) {\n //si el usuario cuenta con un perfil apropiado se le pide que valide sus coreo\n $this->validateEmailUser();\n if($this->validUniqueMail()){\n $this->sendMail();\n $this->_response = \"1|\" . $this->_datPerson[email] . \"|\" . $this->_datPerson[personId] . \"|\" . $this->_code . \"|\" . $this->_datPerson['name'];\n }else{\n $this->_response = \"2|\" . $this->_datPerson[email] . \"|\" . $this->_datPerson[personId] . \"|\" . $this->_code . \"|\" . $this->_datPerson['name'];\n }\n } else {\n $this->_response = $this->_datPerson;\n }\n } else {\n $this->_response = $api;\n }\n }", "public function track_helper_connection_complete() {\n\t\tWC_Tracks::record_event( 'extensions_subscriptions_connected' );\n\t}", "public function onOpen(ConnectionInterface $conn)\n\t{\n\t\t$this->connections[] = $conn;\n\t\t$conn->send(json_encode(['type' => 'service', 'payload' => ['notification_type' => 'info', 'notification_message' => 'Hi!']]));\n\t\techo \"New connection {$conn->resourceId} \\n\";\n\t}", "private function valUserExisting(){\n if($this->_personDB->getActive()){\n if($this->logIn()){\n $this->addUserHttpSession();\n $this->_response = 'ok';\n }\n }else{\n $this->_response = '104';\n }\n }", "public function onJoin()\n {\n $chan = ltrim(trim(strtolower($this->event->getArgument(0))), \":\");\n $nick = trim($this->event->getNick());\n\n $this->store[$chan][$nick] = self::REGULAR;\n }", "public static function isConnected() {\n return isset($_SESSION['userid']);\n }", "public function onRegister();", "protected function connecting($user) {\n // Override to handle a connecting user, after the instance of the User is created, but before\n // the handshake has completed.\n }", "public function register(): void {\n\t\tif ( false !== static::REGISTRATION_ACTION ) {\n\t\t\tadd_action(\n\t\t\t\tstatic::REGISTRATION_ACTION,\n\t\t\t\t[ $this, 'register_services' ]\n\t\t\t);\n\t\t} else {\n\t\t\t$this->register_services();\n\t\t}\n\t}", "public function addUserConnected(Request $request){\n $socket = Socket::query()->find($request->get('user_id'));\n if(is_null($socket)){\n $socket = new Socket();\n $socket->user_id = $request->get('user_id');\n $socket->socket = $request->get('socket');\n $socket->save();\n return Response::raw(201, $socket);\n }else if(!is_null($socket)){\n $socket->socket = $request->get('socket');\n $socket->update(['user_id' => $request->get('user_id'), 'socket' => $request->get('socket')]);\n return Response::raw(200, $socket);\n }else{\n return Response::raw(200, []);\n }\n }", "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 connected()\n {\n return true;\n }", "public function active_callback()\n {\n }", "public function active_callback()\n {\n }", "public function active_callback()\n {\n }", "public function active_callback()\n {\n }", "public function active_callback()\n {\n }", "public function startCommunication()\n {\n if ($this->restAPI->login()) {\n $this->restAPI->keepAuth = true;\n }\n }", "function post_logon() {\n\n\t\treturn true;\n\t}", "public function register() {\n\t\tadd_action( 'bp_loaded', [ $this, 'registerServices' ] );\n\t}", "public function onUserRegistered()\n {\n $client = $this->clientManager->createClient();\n $client->setAllowedGrantTypes(array('token', 'authorization_code', ['password']));\n $this->clientManager->updateClient($client);\n }", "function onOpen(ConnectionInterface $conn)\n {\n $this->clients->attach($conn);\n\n echo \"New connection! ({$conn->resourceId})\\n\";\n }", "function startService()\n {\n\n $this->service_link = $this->_openService($this->url . '/' . $this->service_name . $this->wsdl);\n\n }", "protected function connecting($user)\n\t{\n\t\t// Override to handle a connecting user, after the instance of the User is created, but before\n\t\t// the handshake has completed.\n\t}", "public function onOpen(ConnectionInterface $conn)\n {\n $this->clients->attach($conn);\n // Store data user from the client\n //$this->clients->offsetSet($conn, $storage);\n\n $msg = $this->messageFactory->monitoringConnexion();\n echo \"New connection ! ({$conn->resourceId})\\n\";\n }", "public function addUser(){}", "function isConnected()\n{\n return isset($_SESSION[\"userDataFileName\"]);\n}", "public function onSpeakersAdd()\n\t{\n\t\t$this->onTaskAdd();\n\t}", "abstract public function service();", "function _note_is_connected()\n {\n eval(PUBSUB_MUTATE);\n if (!$this->_connected)\n {\n $this->_connected = 1;\n kn_apply($this->_handlers['onConnect'],\n array_merge(array($this),\n $this->_handlers['args']));\n }\n }", "public function run()\n {\n $this->user();\n }", "function onesignin_client_handle_after_update_notification($account) {\n watchdog('onesignin', 'Updating user %name on request of One Signin server.', array('%name' => $account->name), WATCHDOG_INFO);\n onesignin_client_userdata_synchronize($account->server_uid);\n}", "public function index()\n\t{\n\t\t$this->our_services();\n\t}", "public function user_added( $ui ) {\n\n\t\tif( $_POST[\"skip_useradd_event\"] == 1 ) {\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif( Config::get('TWO_FACTOR_METHOD') != 'authy' ) {\n\t\t\treturn;\n\t\t}\n\t \n /*\n * So, C5 fires the on_user_add before it saved the attributes in DB\n * This sucks and requires to do a hack and rely on post data for Authy data\n */\n Loader::model('user_attributes');\n\n //get the phone number\n $phone_number_akID = UserAttributeKey::getByHandle('phone_number')->akID;\n $dirty_phone_number = $_POST[\"akID\"][$phone_number_akID][\"value\"];\n\n $cc_akID = UserAttributeKey::getByHandle('phone_country_code')->akID;\n $full_country_code = $_POST[\"akID\"][$cc_akID][\"value\"];\n \n //get email\n $email_addr = $_POST[\"uEmail\"];\n\n //request the update\n if( !empty($email_addr) && !empty($dirty_phone_number) && !empty($full_country_code) && !empty($ui) ) { \n \tself::updateUserAuthy( $ui, $email_addr, $dirty_phone_number, $full_country_code );\n }\n }", "public function isConnected()\n\t{\n\t\t// TODO: Make this check the login functionality or something..!!\n\t\treturn true;\n\t}", "public function onConnect(\\swoole_server $server, $client_id, $from_id)\n {\n }", "function connected(){\n\treturn (isset($_SESSION['id']));\n}", "function service();", "public function on_user_activation( $user_id, $pass, $meta ) {\n\t\t$blog_id = get_current_blog_id();\n\t\tmnetwork_add_user( $user_id, $blog_id );\n\t}", "private function addInstanceSystem () {\n\t\tif(defined('MYSQLSTA_PASSCRIPT') && MYSQLSTA_PASSCRIPT){\n\t\t\t$senha = application::getDecrypt(MYSQLSTA_USERPASS);\n\t\t} else {\n\t\t\t$senha = MYSQLSTA_USERPASS;\n\t\t}\n\t\tdatabase::addInstance(MYSQLSTA_DATABASE, \"default\", \"mysql\", MYSQLSTA_HOST, MYSQLSTA_PORT, MYSQLSTA_USERNAME, $senha);\n\n\t\t$logar = true;\n\t\tif(isset($_GET['cpfCnpj'])){\n\t\t\t$cpfCnpj = $_GET['cpfCnpj'];\n\t\t} elseif(isset($_POST['cpfCnpj'])){\n\t\t\t$cpfCnpj = $_POST['cpfCnpj'];\n\t\t} else {\n\t\t\t$cpfCnpj = NULL;\n\t\t}\n\t\tif(!isset(controllerRest::getSession()['cpfCnpj']))\n\t\t\tcontrollerRest::createSession('cpfCnpj', NULL);\n\t\tif(is_null($cpfCnpj))\n\t\t\t$cpfCnpj = controllerRest::getSession()['cpfCnpj'];\n\t\tcontrollerRest::createSession('cpfCnpj', $cpfCnpj);\n\n\t\tif($cpfCnpj==controllerRest::getSession()['cpfCnpj'] && isset(controllerRest::getSession()['aut']['connected']) && controllerRest::getSession()['aut']['connected']){\n\t\t\t$logar = false;\n\t\t}\n\t\t if(is_null(controllerRest::getSession()['cpfCnpj']))\n\t\t \tthrow new \\Exception(\"Acesso negado, informe cpfCnpj\");\n\n\t\t if($logar){\n\t\t \t$sql = \"SELECT * FROM cvf WHERE cgc_cpf = ?\";\n\t\t\t$param = array(controllerRest::getSession()['cpfCnpj']);\n\t\t \t$result = database::runPrepared($sql, $param);\n\n\t\t \tif($result->rowCount()==0)\n\t\t \t\tthrow new \\Exception(\"Acesso negado\");\n\t\t \t$dadosCvf = $result->fetch();\n\n\t\t\t$param = array(mysqlDinamico::TSYSTEM_SICS, $dadosCvf['codigo']);\n\t\t \t$result = database::runPrepared(\"SELECT count(*) FROM bancodedados WHERE sistema = ? AND idusuario = ?\", $param, \"sistema\");\n\t\t\tlist($clienteNetSics) = $result->fetch();\n\t\t\tif ($clienteNetSics >= 1) {\n\t\t\t\theader(\"location: \".URL_RAIZ.\"{$dadosCvf['usuario']}\");\n\t\t\t\texit;\n\t\t\t}\n\n\t\t\t$this->checarEmpresa();\n\n\t\t \tcontrollerRest::createSession('dataValidade', '01/01/2050');\n\t\t \tcontrollerRest::createSession('dataVencimento', '01/01/2050');\n\t\t \tcontrollerRest::createSession('diffVal', 365);\n\t\t \tcontrollerRest::createSession('diffVenc', 365);\n\t\t \tcontrollerRest::createSession('numMsgNaoLidas', 0);\n\n\t\t \tcontrollerRest::createSession('aut', array(\n\t\t \t\t\t'connected' => true,\n\t\t \t\t\t'user' => array (\n\t\t \t\t\t\t\t'id' => $dadosCvf['codigo'],\n\t\t \t\t\t\t\t'nome' => $dadosCvf['nome'],\n\t\t \t\t\t\t\t'tipo' => 3,\n\t\t \t\t\t\t\t'tipos' => array(auth::USERTYPE_VENDEDOR,auth::USERTYPE_ADM),\n\t\t \t\t\t\t\t'nivelacesso' => 0,\n\t\t \t\t\t\t\t'status' => auth::USERSTATUS_ATIVO,\n\t\t \t\t\t\t\t'username' => $dadosCvf['usuario'],\n\t\t \t\t\t\t\t'email' => $dadosCvf['email'],\n\t\t \t\t\t\t\t'telefone' => $dadosCvf['tel1']),\n\t\t \t\t\t'empresa' => array(\n\t\t \t\t\t\t\t'id' => ID_EMPRESA,\n\t\t \t\t\t\t\t'nome' => $dadosCvf['nome'],\n\t\t \t\t\t\t\t'cpfCnpj' => $dadosCvf['cgc_cpf'],\n\t\t \t\t\t\t\t'dados' => array(\n\t\t \t\t\t\t\t\t\t'cecod' => 0,\n\t\t \t\t\t\t\t\t\t'cerazfan' => $dadosCvf['nome'],\n\t\t \t\t\t\t\t\t\t'cerazcom' => $dadosCvf['nomefantasia'],\n\t\t \t\t\t\t\t\t\t'ceendrua' => $dadosCvf['endereco'],\n\t\t \t\t\t\t\t\t\t'ceendbai' => $dadosCvf['bairro'],\n\t\t \t\t\t\t\t\t\t'ceendcep' => $dadosCvf['cep'],\n\t\t \t\t\t\t\t\t\t'ceendcid' => $dadosCvf['cidade'],\n\t\t \t\t\t\t\t\t\t'ceendest' => $dadosCvf['uf'],\n\t\t \t\t\t\t\t\t\t'cetel1' => $dadosCvf['tel1'],\n\t\t \t\t\t\t\t\t\t'ceramal1' => $dadosCvf['ramaltel1'],\n\t\t \t\t\t\t\t\t\t'cetel2' =>$dadosCvf['tel2'],\n\t\t \t\t\t\t\t\t\t'ceramal2' => $dadosCvf['ramaltel2'],\n\t\t \t\t\t\t\t\t\t'cefax' => $dadosCvf['tel1'],\n\t\t \t\t\t\t\t\t\t'ceramalfax' => $dadosCvf['ramaltel1'],\n\t\t \t\t\t\t\t\t\t'ceemail' => $dadosCvf['email'],\n\t\t \t\t\t\t\t\t\t'ceinsc' => $dadosCvf['insc_rg'],\n\t\t \t\t\t\t\t\t\t'cecgc' => $dadosCvf['cgc_cpf'],\n\t\t \t\t\t\t\t\t\t'numero_logradouro' => $dadosCvf['nro_endereco'],\n\t\t \t\t\t\t\t\t\t'complemento_logradouro' => $dadosCvf['complemeto_endereco'],\n\t\t \t\t\t\t\t\t\t'dtcaixa' => 0,\n\t\t \t\t\t\t\t\t\t'numserie' => 0,\n\t\t \t\t\t\t\t\t\t'codmunicipio' => $dadosCvf['codmunicipio'],\n\t\t \t\t\t\t\t\t\t'numvetordll' => 0,\n\t\t \t\t\t\t\t\t\t'insc_municipal' => $dadosCvf['inscmunicipal']\n\t\t \t\t\t\t\t)\n\t\t \t\t\t)\n\t\t \t));\n\t\t \tif(isset(controllerRest::getSession()['webservices']))\n\t\t \t\tcontrollerRest::unsetSession(array('webservices'));\n\n\t\t }\n\t\t define('USA_PROJETOTSP', false);\n\n\t\t if(auth::isAuth()){\n\t\t \t$this->plano_expirou = false;\n\t\t \t$this->plano_venceu = false;\n\t\t \t$this->bloquear_login = false;\n\t\t }\n\t}", "public function registerService($service)\n {\n $this->services[] = $service;\n }", "public function handle(UserService $userService)\n {\n $userService->updateNames();\n }", "function saveService()\n {\n $this->dialogObject->save_object();\n $msgs = $this->dialogObject->check();\n if (count($msgs)) {\n foreach ($msgs as $msg) {\n msg_dialog::display(_(\"Error\"), $msg, ERROR_DIALOG);\n }\n } else {\n $this->plugins[$this->current] = $this->dialogObject;\n $tmp = get_object_vars($this->dialogObject);\n foreach ($tmp as $name => $value) {\n $this->plugins[$this->current]->$name = $value;\n }\n $this->closeDialogs();\n $this->backup = NULL;\n $this->updateActionMenu();\n }\n }", "function start()\n {\n $this->startService();\n $this->startSession();\n }", "public function onStartup($computerid, $userid, array $softwares = [], array $hardwares = [] )\n {\n\n if( $this->log->hasLog( $computerid ) == false )\n {\n\n $this->log->createLog( $computerid );\n }\n\n if( empty( $softwares ) == false )\n {\n\n $this->addSoftwares( $computerid, $userid, $softwares );\n }\n\n if( empty( $hardwares ) == false )\n {\n\n $this->addHardwares( $computerid, $hardwares );\n }\n }", "public function callback() {\n // Get a handle of the Auth0 service (we don't know if it has an alias)\n $service = \\App::make('auth0');\n\n // Try to get the user informatio\n $auth0User = $service->getUserInfo();\n if ($auth0User) {\n // If we have, we are going to log him in, buut, if\n // there is an onLogin defined we need to allow the Laravel developer\n // to implement the user as he wants an also let him store it\n if ($service->hasOnLogin()) {\n $user = $service->callOnLogin($auth0User);\n } else {\n // If not, the user will be fine\n $user = $auth0User;\n }\n \\Auth::login($user);\n }\n return \\Redirect::intended('/');\n }", "protected function login( )\r\n {\r\n $this->sendData( 'USER', $this->_nick, $this->_nick . ' ' . $this->_user . ' : ' . $this->_realName );\r\n \r\n $this->sendData( 'NICK', $this->_nick );\r\n \r\n $this->_loggedOn = true;\r\n }", "public function openUser()\n {\n $this->isUser = true;\n }", "public function clientUserAdded($client,$pwd,$send)\n\t{\n\t\tif($send)\n\t\t\t$this->emailService->sendClientCreds($client,$pwd);\n\t\t$companyname=$client->getCompanyname();\n\t\t$country=$client->getAddress()->getCountry();\n\t\t$city=$client->getAddress()->getCity();\n\t\t$this->intercomService->createNewUser($client,$companyname,$country,$city);\n\t}", "public function onOpen(ConnectionInterface $conn) \n\t{\n\t\techo \"Client connected\" . PHP_EOL;\n\t\t$this->clients->attach($conn);\n\t}", "public function connect($user){\n $this->session->set('auth',$user);\n }", "function UserManagement(){\n\t\t$this->soap=new SugarSoap('http://troycontainerline.com/sugar/soap.php?wsdl');\n\t}", "function ws_pack_users_expose_functions() {\n\telgg_ws_expose_function(\n\t\t\"users.get_logged_in_user\",\n\t\t\"ws_pack_users_get_logged_in_user\",\n\t\tarray(),\n\t\telgg_echo(\"ws_pack:api:users:get_logged_in_user\"),\n\t\t\"GET\",\n\t\ttrue,\n\t\ttrue\n\t);\n\t\n\telgg_ws_expose_function(\n\t\t\"users.register_for_push_notifications\",\n\t\t\"ws_pack_users_register_for_push_notifications\",\n\t\tarray(\n\t\t\t\"service_name\" => array(\n\t\t\t\t\"type\" => \"string\",\n\t\t\t\t\"required\" => true\n\t\t\t),\n\t\t\t\"settings\" => array(\n\t\t\t\t\"type\" => \"array\",\n\t\t\t\t\"required\" => true\n\t\t\t)\n\t\t),\n\t\telgg_echo(\"ws_pack:api:users:register_for_push_notifications\"),\n\t\t\"POST\",\n\t\ttrue,\n\t\ttrue\n\t);\n\t\n\telgg_ws_expose_function(\n\t\t\"users.unregister_from_push_notifications\",\n\t\t\"ws_pack_users_unregister_from_push_notifications\",\n\t\tarray(\n\t\t\t\"service_name\" => array(\n\t\t\t\t\"type\" => \"string\",\n\t\t\t\t\"required\" => true\n\t\t\t)\n\t\t),\n\t\telgg_echo(\"ws_pack:api:users:unregister_from_push_notifications\"),\n\t\t\"POST\",\n\t\ttrue,\n\t\ttrue\n\t);\n}", "public function ocenture_insert() {\r\n\r\n Logger::log(\"inserting user manually into ocenture\");\r\n require_once( OCENTURE_PLUGIN_DIR . 'lib/Ocenture.php' );\r\n\r\n $ocenture = new Ocenture_Client($this->clientId);\r\n\r\n $params = [\r\n 'args' => [\r\n 'ProductCode' => 'YP83815',\r\n 'ClientMemberID' => 'R26107633',\r\n 'FirstName' => 'Francoise ',\r\n 'LastName' => 'Rannis Arjaans',\r\n 'Address' => '801 W Whittier Blvd',\r\n 'City' => 'La Habra',\r\n 'State' => 'CA',\r\n 'Zipcode' => '90631-3742',\r\n 'Phone' => '(562) 883-3000',\r\n 'Email' => '[email protected]',\r\n 'Gender' => 'Female',\r\n 'RepID' => '101269477',\r\n ]\r\n ];\r\n \r\n Logger::log($params);\r\n $result = $ocenture->createAccount($params);\r\n //if ($result->Status == 'Account Created') \r\n {\r\n $params['args']['ocenture'] = $result;\r\n $this->addUser($params['args']); \r\n }\r\n Logger::log($result);\r\n \r\n }", "function subscribe() {\n\t\t\t\t\t\t //**Store the status to a global variable - debug purposes\n\t\t\t\t\t\t$GLOBALS['statusmsg'] = $GLOBALS['statusmsg'] . \"SUB-OK|\";\n\t\t\t\t}", "function onOpen(ConnectionInterface $conn)\n {\n $this->clients->attach($conn);\n\n $this->modx->log(1, print_r($conn,1));\n $this->modx->log(1, \"New connection! ({$conn->resourceId})\");\n }", "private function addDeviceToTracking()\n {\n // add device if not owned by you (owners will be able to track their devices by default)\n $owner = $this->getOwnerToken();\n if ($owner != null)\n if (strcmp($this->token, $owner) != 0) {\n $obj = $this->sql->query(\"select `device_count` from \" . tableName . \" where `uid` = '$this->token'\")->fetch_object();\n $x = $obj->device_count + 1;\n\n $str = \"update \" . tableName . \" set `device_count` = '$x' where `uid` = '$this->token';\";\n $str .= \"insert into \" . dataTableName . \" (`token`, `device_id`) VALUES ('$this->token', '$this->deviceID');\";\n\n if ($this->sql->multi_query($str))\n echo \"SUCCESS\";\n\n else die(\"FAILED\");\n } else\n die(\"Already added\");\n else\n die(\"No owners. Device may not have been registered.\");\n }" ]
[ "0.6264136", "0.61268526", "0.60272026", "0.58709216", "0.583147", "0.583147", "0.58192295", "0.5784952", "0.57675874", "0.56650543", "0.56059474", "0.55489546", "0.55466974", "0.5472857", "0.5461691", "0.5451078", "0.5447229", "0.54315275", "0.54307926", "0.542167", "0.54119515", "0.5407818", "0.53655964", "0.53611493", "0.53455925", "0.5344407", "0.5324072", "0.53209454", "0.53151816", "0.52961177", "0.5274147", "0.5268429", "0.5258864", "0.5240296", "0.523632", "0.52332246", "0.52169997", "0.52083516", "0.5201111", "0.5193825", "0.519309", "0.5190901", "0.5189742", "0.51314175", "0.51024085", "0.5101792", "0.5101239", "0.5091769", "0.508978", "0.50895154", "0.5084245", "0.508144", "0.507526", "0.5072047", "0.50612926", "0.5037489", "0.50359416", "0.50359416", "0.50359255", "0.5035711", "0.5035711", "0.5033279", "0.5032392", "0.5030362", "0.50302047", "0.50291276", "0.5018137", "0.501726", "0.5013903", "0.5010771", "0.5006248", "0.50027406", "0.5000176", "0.49981314", "0.4997375", "0.49949422", "0.49902475", "0.49866262", "0.4985613", "0.49528244", "0.49461994", "0.49446195", "0.49415836", "0.49385223", "0.49374017", "0.49358526", "0.49339956", "0.4933623", "0.49286744", "0.4926721", "0.49264833", "0.49249825", "0.49229875", "0.49226394", "0.4922495", "0.4920993", "0.49206737", "0.4910986", "0.49059403", "0.49035352", "0.49022618" ]
0.0
-1
USER connected service edition.
public function editLoggedInUserService(int $id, array $request) { $this->redirectIfNotLoggedIn('user', 'login'); $service = $this->userServiceManager->getService($id); // Edit service only if service is owned by connected user. if($service->getUser()->getId() === $this->user->getId()) { if($this->isFormSubmitted()) { if($this->issetAndNotEmpty($request, 'subject', 'descriptionService')) { $subject = DB::secureData($request['subject']); $description = DB::secureData($request['descriptionService']); $service->setSubject($subject); $service->setDescription($description); // Checking if user has uploaded a service image. if($_FILES['serviceImage']['size'] > 0) { $fileUploader = new FileUpload($_FILES['serviceImage'], '/assets/uploads/services/'); if(!$fileUploader->isSizeInThreshold() || !$fileUploader->upload()) { $this->setErrorMessage("Une erreur est survenue en envoyant l'image de votre service."); } else { $service->setImage($fileUploader->getFinalFileName()); } } // Saving service new data. if($this->userServiceManager->updateService($service)) { $this->setSuccessMessage("Votre service a bien été mis à jour."); } else { $this->setErrorMessage("Une erreur est survenue en mettant à jou votre service."); } } else { $this->setErrorMessage("Tous les champs requis ne sont pas remplis !"); } } $this->addCss($this->profileCss); $this->addJavaScript($this->javaScripts); $this->showView('service/loggedInUserServicesEdit', [ 'service' => $service, 'userProfile' => $this->userProfileManager->getUserProfile($this->user), ]); } // If service does not belong to connected user, then redirect to the services pages. $this->redirectTo('service', 'user-services'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function serviceAccessGates()\n {\n //\n }", "function modificarCuentaServSoc()\n {\n // TODO: Implement modificarCuentaServSoc() method.\n }", "function UserManagement(){\n\t\t$this->soap=new SugarSoap('http://troycontainerline.com/sugar/soap.php?wsdl');\n\t}", "public function indexApUpdate(){\n //This will be used to display in the Wizard of available Realms in the Create screens of Vouchers; Permanent Users; and Devices\n $user = $this->Aa->user_for_token($this);\n if(!$user){ //If not a valid user\n return;\n }\n $this->_doApListFor($user,'update'); \n }", "public function testUpdateService()\n {\n\n $this->browse(function (Browser $browser) {\n $user = User::factory()->create();\n $service = Service::factory()->create();\n $serviceUpdate = Service::factory()->make();\n $browser->visit('/login')\n ->pause(3000)\n ->type('email', $user->email)\n ->type('password', 'password')\n ->press('Login')\n ->pause(2000)\n ->assertPathIs('/service')\n ->visit('/service/update/'.$service->id)\n ->pause(1000)\n ->type('descricao', $serviceUpdate->descricao)\n ->type('valor', $serviceUpdate->valor)\n ->press('Editar')\n ->pause(1000)\n ->assertSee(Constantes::SUCESSO_UPDATE_SERVICE)\n ->press('OK')\n ->pause(1000);\n\n });\n }", "function saveService()\n {\n $this->dialogObject->save_object();\n $msgs = $this->dialogObject->check();\n if (count($msgs)) {\n foreach ($msgs as $msg) {\n msg_dialog::display(_(\"Error\"), $msg, ERROR_DIALOG);\n }\n } else {\n $this->plugins[$this->current] = $this->dialogObject;\n $tmp = get_object_vars($this->dialogObject);\n foreach ($tmp as $name => $value) {\n $this->plugins[$this->current]->$name = $value;\n }\n $this->closeDialogs();\n $this->backup = NULL;\n $this->updateActionMenu();\n }\n }", "public function add_service() {\r\n if (USER_ROLE == ROLE_ONE) {\r\n $result['companies'] = $this->company_model->get_companies_id_name();\r\n $this->load->view('webpages/add_service', $result);\r\n } else {\r\n $this->load->view('webpages/404');\r\n }\r\n }", "protected function getConsole_Command_User_ActivateService()\n {\n return $this->services['console.command.user.activate'] = new \\phpbb\\console\\command\\user\\activate(${($_ = isset($this->services['user']) ? $this->services['user'] : $this->getUserService()) && false ?: '_'}, ${($_ = isset($this->services['dbal.conn']) ? $this->services['dbal.conn'] : ($this->services['dbal.conn'] = new \\phpbb\\db\\driver\\factory($this))) && false ?: '_'}, ${($_ = isset($this->services['config']) ? $this->services['config'] : $this->getConfigService()) && false ?: '_'}, ${($_ = isset($this->services['language']) ? $this->services['language'] : $this->getLanguageService()) && false ?: '_'}, ${($_ = isset($this->services['log']) ? $this->services['log'] : $this->getLogService()) && false ?: '_'}, ${($_ = isset($this->services['notification_manager']) ? $this->services['notification_manager'] : $this->getNotificationManagerService()) && false ?: '_'}, ${($_ = isset($this->services['user_loader']) ? $this->services['user_loader'] : $this->getUserLoaderService()) && false ?: '_'}, './../', 'php');\n }", "function activar_usuario ($id_colaborador) {\n\t\n\t$UpdateRecords = \"UPDATE colaboradores \n\t\tSET estado='1' WHERE id_colaborador='$id_colaborador'\";\n $connection = mysql_connect($this->HOST, $this->USERNAME, $this->PASSWORD);\n\t\t$SelectedDB = mysql_select_db($this->DBNAME);\n\t\t$result = mysql_query($UpdateRecords);\n\t\tmysql_close($connection);\n\t\n\t}", "public function _add_current_service() {\n // Press link to header\n $this->_urls[ _( 'Booking' ) ]['index'] = U( 'User/Booking/current' );\n $t_arr = array_reverse( $this->_urls[ _( 'Booking' ) ]['User'], true ); \n $t_arr[ _( 'Current' ) ] = array( 'icon' => '', 'url' => U( 'User/Booking/current' ) );\n $this->_urls[ _( 'Booking' ) ]['User'] = array_reverse( $t_arr, true );\n }", "function scl_activate()\n{\n //\n}", "private function guest ()\n\t{\n\t\t;\n\t}", "public function openUser()\n {\n $this->isUser = true;\n }", "function index($service_name) {\n // for checking & merging users\n $this->load->model('user_model');\n //Basically an include() for the service, found in application/libraries/Service/drivers/Service_{$service_name}.php\n $this->load->driver('service', array('adapter' => $service_name));\n if (!$this->service->is_valid($service_name)) {\n show_error('Error : ' . $service_name . ' is not a valid service name.');\n }\n \n // get user id and tokens from service\n $data = $this->service->$service_name->callback($this->input->get());\n \n if (!$data) {\n show_error('Error : Authentication of ' . $service_name . ' failed');\n }\n \n // check if service is linked to existing user\n $user = $this->user_model->get_token_by_ext_id($service_name, $data->ext_user_id);\n \n // do some if else checks\n if (!$user && !$this->session->userdata('user_id')) {\n // no user exists\n $user = $this->user_model->create(isset($data->user) ? $data->user : new stdClass());\n $user_id = $user->user_id;\n \n } else if ($user && $this->session->userdata('user_id') && $user->user_id != $this->session->userdata('user_id')) {\n // merge 2 users\n $this->user_model->merge($user->user_id, $this->session->userdata('user_id'));\n $user_id = $user->user_id;\n } else if ($user && !$this->session->userdata('user_id')) {\n // connect to previous registered logged in user\n $user_id = $user->user_id;\n } else if (!$user && $this->session->userdata('user_id')) {\n // connect to logged in user\n $user_id = $this->session->userdata('user_id');\n } else {\n // logged in and registered before\n $user_id = $this->session->userdata('user_id');\n }\n \n // log in user\n $this->session->set_userdata('user_id', (int) $user_id );\n \n // prep data\n $data = array(\n 'user_id' => (int) $user_id,\n 'service_type' => $service_name,\n );\n \n // save tokens\n $this->user_model->set_token($data);\n \n // if session auth_request is set, handle auth_request (redirect)\n if ($this->session->userdata('auth_request')) {\n $this->repeat_authorize();\n }\n \n if ($redirect = $this->session->userdata('redirect')) {\n \t$this->session->unset_userdata('redirect');\n redirect($redirect);\n } else {\n redirect('profile/plugs');\n }\n }", "function wise_chat_after_setup_theme_action() {\n /** @var WiseChatUserService $userService */\n\t$userService = WiseChatContainer::get('services/user/WiseChatUserService');\n\t$userService->initMaintenance();\n\t$userService->switchUser();\n}", "abstract protected function getService();", "function userAdmin(){\r\n if(userConnect() && $_SESSION['user']['privilege']==1) return TRUE; else return FALSE;\r\n }", "private function _current_exist() {\n return D( 'Service' )->service_exist_verifition( array( 'usr_login_id_buyer' => ( get_session_id() ), 'service_status' => array( '2' ) ) );\n }", "public function m_Euser(){\n\t\tif ($this -> e_user !== '') {\n\t\t\techo $this -> E_inicio.$this -> e_user.$this -> E_fin;\n\t\t}\n\t}", "function pdp_user_control($pseudo){\n \t$re = new DbManager();\n \t$info = $re -> pdp_user($pseudo);\n \treturn $info ;\n }", "public function SystemAdministratorAction()\n {\n $this->requireRoleOrRedirect('SystemAdministrator');\n $this->view->setLayout('application');\n $this->view->userProfile = (new \\Apprecie\\Library\\Security\\Authentication())->getAuthenticatedUser(\n )->getUserProfile();\n }", "function queryService($uid) {\n\t\t// VERSIONING:\n\t\t// we need the hidden records as well!\n\t\t$res = $GLOBALS['TYPO3_DB']->exec_SELECTquery(\n\t\t\t\t\t\t'tx_civserv_service.uid,\n\t\t\t\t\t\t tx_civserv_service.pid,\n\t\t\t\t\t\t tx_civserv_service.sv_name,\n\t\t\t\t\t\t tx_civserv_service.sv_descr_short,\n\t\t\t\t\t\t tx_civserv_service.sv_descr_long,\n\t\t\t\t\t\t tx_civserv_service.sv_image,\n\t\t\t\t\t\t tx_civserv_service.sv_image_text,\n\t\t\t\t\t\t tx_civserv_service.sv_fees,\n\t\t\t\t\t\t tx_civserv_service.sv_documents,\n\t\t\t\t\t\t tx_civserv_service.sv_legal_local,\n\t\t\t\t\t\t tx_civserv_service.sv_legal_global,\n\t\t\t\t\t\t tx_civserv_service.sv_3rdparty_checkbox,\n\t\t\t\t\t\t tx_civserv_service.sv_3rdparty_link,\n\t\t\t\t\t\t tx_civserv_service.sv_3rdparty_name,\n\t\t\t\t\t\t tx_civserv_service.sv_model_service,\n\t\t\t\t\t\t tx_civserv_service.fe_group',\n\t\t\t\t\t\t'tx_civserv_service',\n\t\t\t\t\t\t'1 '.\n\t\t\t\t\t\t$this->cObj->enableFields('tx_civserv_service').\n\t\t\t\t\t\t' AND uid = ' . intval($uid),\n\t\t\t\t\t\t'',\n\t\t\t\t\t\t'',\n\t\t\t\t\t\t'');\n\t\treturn $res;\n\t}", "public function status( $userId = NULL ){\n\t\t$userId\t= $this->session->get( 'auth_user_id' );\n\t\tif( !$userId )\n\t\t\t$this->restart( NULL, TRUE );\n\t\ttry{\n\t\t\t$data\t= $this->resource->getUserLicenseKey( $userId );\n\t\t\t$this->addData( 'status', 'data' );\n\t\t\t$this->addData( 'data', $data );\n\t\t\t$this->addData( 'registerLicense', $this->session->get( 'register_license' ) );\n\t\t}\n\t\tcatch( Exception $e ){\n\t\t\t$msg\t\t= 'Der Provision-Server ist zur Zeit nicht erreichbar ('.$e->getMessage().'). Bitte später noch einmal probieren!';\n\t\t\t$this->env->getMessenger()->noteError( $msg );\n\t\t\t$this->redirect( 'provision' );\n\t\t\treturn;\n\t\t}\n\t\t$this->addData( 'serverUrl', $this->moduleConfig->get( 'server.url' ) );\n\t\t$this->addData( 'productId', $this->moduleConfig->get( 'productId' ) );\n\t}", "static function momentConnect()\r\n {\r\n $user = self::getCurrentUser();\r\n\r\n if ($user !== NULL)\r\n {\r\n $user->setOffline(0);\r\n self::updateUser($user);\r\n }\r\n }", "protected function getUserService()\n {\n return $this->services['user'] = new \\phpbb\\user(${($_ = isset($this->services['language']) ? $this->services['language'] : $this->getLanguageService()) && false ?: '_'}, '\\\\phpbb\\\\datetime');\n }", "public function enabled_couch_user() {\n $query = 'UPDATE couchs ';\n $query .= 'SET enabled=TRUE ';\n $query .= 'WHERE user_id=' . $this->id;\n\n $connection = get_connection();\n $query_result = $connection->query($query);\n\n $connection->close();\n\n return $query_result;\n }", "public function edit(Service $partner)\n {\n //\n }", "function cmdAdmin()\n\t{\n\t\t$cmd = $this->cmd;\n\n\t\tswitch ($this->cmd)\n\t\t{\n\t\t\tcase NULL:\n\t\t\tcase \"clientlist\":\n\t\t\t\t$this->setDisplayMode(\"view\");\n\t\t\t\t$this->displayClientList();\n\t\t\t\t$this->active_tab = \"clientlist\";\n\t\t\t\tbreak;\n\n\t\t\tcase \"changepassword\":\n\t\t\t\t$this->setDisplayMode(\"view\");\n\t\t\t\t$this->changeMasterPassword();\n\t\t\t\t$this->active_tab = \"password\";\n\t\t\t\tbreak;\n\n\t\t\tcase \"mastersettings\":\n\t\t\t\t$this->setDisplayMode(\"view\");\n\t\t\t\t$this->changeMasterSettings();\n\t\t\t\t$this->active_tab = \"basicsettings\";\n\t\t\t\tbreak;\n\n\t\t\tcase \"determineToolsPath\":\n\t\t\t\t$this->setDisplayMode(\"view\");\n\t\t\t\t$this->determineToolsPath();\n\t\t\t\tbreak;\n\n\t\t\tcase \"changedefault\":\n\t\t\t\t$this->changeDefaultClient();\n\t\t\t\tbreak;\n\n\t\t\tcase \"newclient\":\n\t\t\t\t$this->cmd = \"selectdb\";\n\t\t\t\t$this->setDisplayMode(\"setup\");\n\t\t\t\t$this->setup->ini_client_exists = $this->setup->newClient();\n\t\t\t\t$this->selectDBType();\n\t\t\t\tbreak;\n\n\t\t\tcase \"selectdbtype\":\n\t\t\tcase \"displayIni\":\n\t\t\t\t$this->cmd = \"ini\";\n\t\t\t\t$this->setDisplayMode(\"setup\");\n\t\t\t\t//$this->setup->ini_client_exists = $this->setup->newClient($this->client_id);\n\t\t\t\t$this->displayIni();\n\t\t\t\tbreak;\n\n\t\t\tcase \"startup\":\n\t\t\t\t$this->setDisplayMode(\"setup\");\n\t\t\t\t$this->setup->ini_client_exists = $this->setup->newClient();\n\t\t\t\t$this->displayStartup();\n\t\t\t\tbreak;\n\n\t\t\tcase \"delete\":\n\t\t\t\t$this->setDisplayMode(\"view\");\n\t\t\t\t$this->displayDeleteConfirmation();\n\t\t\t\tbreak;\n\n\t\t\tcase \"togglelist\":\n\t\t\t\t$this->setDisplayMode(\"view\");\n\t\t\t\t$this->toggleClientList();\n\t\t\t\tbreak;\n\n\t\t\tcase \"preliminaries\":\n\t\t\t\t$this->setup->checkPreliminaries();\n\t\t\t\t$this->displayPreliminaries();\n\t\t\t\t$this->active_tab = \"preliminaries\";\n\t\t\t\tbreak;\n\n\t\t\tcase \"updateBasicSettings\":\n\t\t\tcase \"performLogin\":\n\t\t\tcase \"performMLogin\":\n\t\t\t\t$this->$cmd();\n\t\t\t\tbreak;\n\n\t\t\tdefault:\n\t\t\t\t$this->cmdClient();\n\t\t\t\tbreak;\n\t\t}\n\t}", "protected function getConsole_Command_User_AddService()\n {\n return $this->services['console.command.user.add'] = new \\phpbb\\console\\command\\user\\add(${($_ = isset($this->services['user']) ? $this->services['user'] : $this->getUserService()) && false ?: '_'}, ${($_ = isset($this->services['dbal.conn']) ? $this->services['dbal.conn'] : ($this->services['dbal.conn'] = new \\phpbb\\db\\driver\\factory($this))) && false ?: '_'}, ${($_ = isset($this->services['config']) ? $this->services['config'] : $this->getConfigService()) && false ?: '_'}, ${($_ = isset($this->services['language']) ? $this->services['language'] : $this->getLanguageService()) && false ?: '_'}, ${($_ = isset($this->services['passwords.manager']) ? $this->services['passwords.manager'] : $this->getPasswords_ManagerService()) && false ?: '_'}, './../', 'php');\n }", "function edit(){\n $this->connect(); // open connection\n $this->disconnect(); // close connection\n }", "abstract public function service();", "protected function getInstalledServices() {}", "public function editionAction() {\r\n //inactivate header/footer\r\n $this->_includeTemplate = false;\r\n\r\n if ($_GET['checkboxAd'] == 'false') {\r\n $typeU = \"child\";\r\n } else {\r\n $typeU = \"adult\";\r\n }\r\n\r\n if ($_GET['checkboxAdmin'] == 'false') {\r\n $admin = \"0\";\r\n } else {\r\n $admin = \"1\";\r\n }\r\n\r\n //test to know if the user already exists\r\n $cpt = true;\r\n foreach ($_SESSION['members'] as $member) {\r\n\r\n if (($_GET['Name'] == $member->getName()) && ($_GET['CurrName'] != $member->getName() )) {\r\n $cpt = false;\r\n }\r\n }\r\n\r\n //if user doesn't exist\r\n if ($cpt) {\r\n //sql connection\r\n\r\n if ($_SESSION['Name'] == $_GET['CurrName'])//Current edit current\r\n $_SESSION['Name'] = $_GET['Name'];\r\n\r\n $connect = connection::getInstance();\r\n $_GET['Name'] = Users::secure($_GET['Name']);\r\n $_GET['Pass'] = Users::secure($_GET['Pass']);\r\n $_GET['Id'] = Users::secure($_GET['Id']);\r\n\r\n $sql = \"UPDATE users SET nameU='\" . $_GET['Name'] . \"', typeU='\" . $typeU . \"',password='\" . $_GET['Pass'] . \"', admin='\" . $admin . \"' where IDU ='\" . $_GET['Id'] . \"'\"; //on recupere tout les utilisateurs\r\n //sending request\r\n $req = mysql_query($sql) or die('Erreur SQL !<br>' . $sql . '<br>' . mysql_error());\r\n\r\n \r\n $_SESSION['admin'] = $admin;\r\n $_SESSION['current'] = 'members';\r\n $this->members = Users::Getuser(); //give data to view\r\n } else {\r\n $this->members = $_SESSION['members']; //give data to view\r\n }\r\n }", "private function metodo_privado() {\n }", "public function init()\n {\n $this->_service = new App_Services_User();\n }", "function ucenter() {\n //var_dump(CakeSession::read('vcode'));\n if (empty($this->Session->read('uid'))) {\n $this->redirect(\n array(\"controller\" => \"users\", \"action\" => \"login\")\n );\n }\n // user already logged in\n $uid = CakeSession::read('uid');\n\n if (Configure::read('new_user_center') == 0) {\n // user buys an account or renews an account\n // update port info\n $this->loadModel('Order');\n $order_rec = $this->Order->find('first',\n array(\n 'conditions' => array('uid' => $uid, \n 'is_paid' => $this->ALREADY_PAID),\n 'order' => array('id' => 'DESC'),\n )\n );\n\n // order record exists, user has paid for new account or renew old\n if ($order_rec) {\n $log_str = sprintf(\"uid[%s] has paid [%s] account\",\n $uid, $order_rec['Order']['acctype']);\n CakeLog::write('debug', $log_str);\n\n $up_succ = $this->update_user_port($order_rec['Order']);\n $log_str = sprintf(\"uid[%s] update [%s] account res[%s]\",\n $uid, $order_rec['Order']['acctype'], $up_succ);\n CakeLog::write('info', $log_str);\n }\n\n // fetch port info\n $this->loadModel('Port');\n $port_res = $this->Port->find('first',\n array(\n 'conditions'=>array('status' => $this->PORT_IN_USE, 'uid' => $uid),\n 'order' => array('id' => 'DESC'),\n )\n );\n\n // not exists in port table, retrieve in mtorder table\n $username = CakeSession::read('username');\n do {\n if ($port_res || !$username) {\n // already have port_res, or session[username] empty, quit\n break;\n }\n $this->loadModel('Mtorder');\n $mtorder_res = $this->Mtorder->find('first',\n array(\n 'conditions' => array('telephone' => $username),\n 'fields' => array('port_id'),\n )\n );\n\n // not found in mtorder table, quit\n if (!$mtorder_res) {\n break;\n }\n\n // var_dump($mtorder_res);\n $port_res = $this->Port->find('first',\n array(\n 'conditions'=>array(\n 'id' => $mtorder_res['Mtorder']['port_id'],\n 'status' => $this->PORT_IN_USE,\n ),\n )\n );\n } while (0);\n\n $this->set('user_port', $port_res);\n\n if ($port_res) {\n $expire_second = strtotime($port_res['Port']['expire']);\n $now_second = time();\n $remain_second = $expire_second - $now_second;\n $remain_day = (int)($remain_second / (60 * 60 * 24));\n $this->set('remain_day', $remain_day);\n $this->set('remain_second', $remain_second);\n }\n\n //fetch balance info\n $this->loadModel('Coupon');\n $conditions = array('uid' => $uid);\n $coupon_res = $this->Coupon->find('first',\n array('conditions' => $conditions)\n );\n $this->set('coupon_info', $coupon_res);\n\n $this->set('title_for_layout', \"User::ucenter\");\n $this->layout = \"ucenter\";\n\n $log_str = sprintf('uid[%s] ip[%s] in ucenter page', \n $uid, $this->request->clientIp());\n CakeLog::write('info', $log_str);\n\n } else \n\n\n/********************************************************************/\n /*****\n * the entry to new style usercenter\n * depending on the conf switch\n *******/\n if (Configure::read('new_user_center')) {\n // get total user ss count\n $this->loadModel('Port');\n $port_conditions = array(\n 'uid' => $uid,\n 'status' => $this->PORT_IN_USE,\n );\n\n $user_ports = $this->Port->find('all',\n array(\n 'conditions' => $port_conditions,\n 'limit' => $this->PORT_MAX_COUNT_PER_USER,\n )\n );\n $total_ports_num = count($user_ports);\n\n // calculate each port remaining days\n $seconds_per_day = 60 * 60 * 24;\n $expire_in_one_month = 0;\n $expire_in_one_week = 0;\n for ($idx = 0; $idx < $total_ports_num; $idx++) {\n $expire_second = strtotime($user_ports[$idx]['Port']['expire']);\n $now_second = time();\n $remain_second = $expire_second - $now_second;\n $remain_days = (int)($remain_second / $seconds_per_day);\n $user_ports[$idx]['Port']['remain_days'] = $remain_days;\n\n $one_week_later_second = strtotime('+1 week');\n $one_month_later_second = strtotime('+1 month');\n if ($one_week_later_second > $expire_second) {\n $expire_in_one_week += 1;\n }\n if ($one_month_later_second > $expire_second) {\n $expire_in_one_month += 1;\n }\n }\n\n $this->set('user_ports', $user_ports);\n $this->set('total_ports_num', $total_ports_num);\n $this->set('expire_in_one_week', $expire_in_one_week);\n $this->set('expire_in_one_month', $expire_in_one_month);\n\n $this->layout = 'ucenter_new';\n $this->view = 'ucenter_new';\n\n $log_str = sprintf('from ip[%s] uid[%d] in new ucenter', \n $this->request->clientIp(), $uid);\n CakeLog::write('info', $log_str);\n }\n }", "function admin_enable($id = null) {\n\n\t\t$user = $this->User->read(null, $id);\n\n\t\t/**\n\t\t * Read the \"Status\" component for more informations.\n\t\t * Dir : controllers/components/status.php\n\t\t */\n\t\tif (!empty($user)) {\n\n\t\t\t$user['User']['status'] = 0;\n\n\t\t\t/**\n\t\t\t * Change the user status.\n\t\t\t * Redirect the administrator to index page.\n\t\t\t */\n\t\t\tif ($this->User->save($user)) {\n\t\t\t\t$this->Session->setFlash(__d('core', 'The user has been enabled.', true));\n\t\t\t\t$this->redirect(array('action' => 'index'));\n\t\t\t}\n\t\t}\n\n\t}", "function basic_ui() {\n\t\tif ( !isset( $_REQUEST['nonce'] ) || !wp_verify_nonce( $_REQUEST['nonce'], 'keyring-manage-' . $this->get_name() ) ) {\n\t\t\tKeyring::error( __( 'Invalid/missing management nonce.', 'keyring' ) );\n\t\t\texit;\n\t\t}\n\n\t\t// Common Header\n\t\techo '<div class=\"wrap\">';\n\t\tscreen_icon( 'ms-admin' );\n\t\techo '<h2>' . __( 'Keyring Service Management', 'keyring' ) . '</h2>';\n\t\techo '<p><a href=\"' . Keyring_Util::admin_url( false, array( 'action' => 'services' ) ) . '\">' . __( '&larr; Back', 'keyring' ) . '</a></p>';\n\t\techo '<h3>' . sprintf( __( '%s API Credentials', 'keyring' ), esc_html( $this->get_label() ) ) . '</h3>';\n\n\t\t// Handle actually saving credentials\n\t\tif ( isset( $_POST['api_key'] ) && isset( $_POST['api_secret'] ) ) {\n\t\t\t// Store credentials against this service\n\t\t\t$this->update_credentials( array(\n\t\t\t\t'key' => stripslashes( $_POST['api_key'] ),\n\t\t\t\t'secret' => stripslashes( $_POST['api_secret'] ),\n\t\t\t\t'redirect_uri' => stripslashes( $_POST['redirect_uri'] ),\n\t\t\t) );\n\t\t\techo '<div class=\"updated\"><p>' . __( 'Credentials saved.', 'keyring' ) . '</p></div>';\n\t\t}\n\n\t\t$api_key = $api_secret = $redirect_uri = '';\n\t\tif ( $creds = $this->get_credentials() ) {\n\t\t\t$api_key = $creds['key'];\n\t\t\t$api_secret = $creds['secret'];\n\t\t\t$redirect_uri = $creds['redirect_uri'];\n\t\t}\n\n\t\techo apply_filters( 'keyring_' . $this->get_name() . '_basic_ui_intro', '' );\n\n\t\tif ( ! $redirect_uri ) {\n\t\t\t$redirect_uri = Keyring_Util::admin_url( $this->get_name(), array( 'action' => 'verify' ) );\n\t\t}\n\n\t\t// Output basic form for collecting key/secret\n\t\techo '<form method=\"post\" action=\"\">';\n\t\techo '<input type=\"hidden\" name=\"service\" value=\"' . esc_attr( $this->get_name() ) . '\" />';\n\t\techo '<input type=\"hidden\" name=\"action\" value=\"manage\" />';\n\t\twp_nonce_field( 'keyring-manage', 'kr_nonce', false );\n\t\twp_nonce_field( 'keyring-manage-' . $this->get_name(), 'nonce', false );\n\t\techo '<table class=\"form-table\">';\n\t\techo '<tr><th scope=\"row\">' . __( 'Client ID', 'keyring' ) . '</th>';\n\t\techo '<td><input type=\"text\" name=\"api_key\" value=\"' . esc_attr( $api_key ) . '\" id=\"api_key\" class=\"regular-text\"></td></tr>';\n\t\techo '<tr><th scope=\"row\">' . __( 'Client Secret', 'keyring' ) . '</th>';\n\t\techo '<td><input type=\"text\" name=\"api_secret\" value=\"' . esc_attr( $api_secret ) . '\" id=\"api_secret\" class=\"regular-text\"></td></tr>';\n\t\techo '<tr><th scope=\"row\">' . __( 'Redirect URI', 'keyring' ) . '</th>';\n\t\techo '<td><input type=\"text\" name=\"redirect_uri\" value=\"' . esc_attr( $redirect_uri ) . '\" id=\"redirect_uri\" class=\"regular-text\"></td></tr>';\n\t\techo '</table>';\n\t\techo '<p class=\"submitbox\">';\n\t\techo '<input type=\"submit\" name=\"submit\" value=\"' . __( 'Save Changes', 'keyring' ) . '\" id=\"submit\" class=\"button-primary\">';\n\t\techo '<a href=\"' . esc_url( $_SERVER['HTTP_REFERER'] ) . '\" class=\"submitdelete\" style=\"margin-left:2em;\">' . __( 'Cancel', 'keyring' ) . '</a>';\n\t\techo '</p>';\n\t\techo '</form>';\n\t\techo '</div>';\n\t}", "public function guest();", "public function connexionSuperAdminLogin(){\n }", "public static function admin() {\n\t\t$data = array(\"current\" => \"Utility\", \"util\" => self::$util_name, \"template\" => \"main\");\n\t\t$service_id = self::$config['service_id'];\n\t\t$service = Service_model::get($service_id);\n\t\tif(!$service) {\n\t\t\tthrow new Exception(\"Service '$service_id' does not exist.\");\n\t\t}\n\t\t\n\t\tif(isset($_POST['group_cn']) && isset($_POST['gname'])) {\n\t\t\tAuth::loadClass(\"PasswordGen\");\n\t\t\t$group_cn = trim($_POST['group_cn']);\n\t\t\tif($group_cn == \"\") {\n\t\t\t\t$group_cn = trim($_POST['gname']);\n\t\t\t}\n\t\t\tif(!$group = UserGroup_model::get_by_group_cn($group_cn)) {\n\t\t\t\t$data['message'] = \"Group $group_cn does not exist!\";\n\t\t\t\treturn $data;\n\t\t\t}\n\t\t\t$group -> populate_list_OwnerUserGroup();\n\t\t\tif(count($group -> list_OwnerUserGroup) == 0) {\n\t\t\t\t$data['message'] = \"Group '$group_cn' has no direct members.\";\n\t\t\t}\n\t\t\t\n\t\t\t$print = isset($_POST['print']);\n\t\t\t$good = $fail = 0;\n\t\t\tforeach($group -> list_OwnerUserGroup as $oug) {\n\t\t\t\t$preset = passwordGen::Generate();\n\t\t\t\t$account = Account_model::get_by_service_owner_unique($service_id, $oug -> owner_id);\n\t\t\t\tif ($account){\n\t\t\t\t\tAccountOwner_api::pwreset($oug -> AccountOwner -> owner_id, $preset, $print);\n\t\t\t\t\t$passwrd [$account -> account_login] = $preset;\n\t\t\t\t\t$good++;\n\t\t\t\t} else {\n\t\t\t\t\t$fail++;\n\t\t\t\t}\n\t\t\t\t\t\n\t\t\t}\n\t\t\t$data['message'] = \"Of \" . count($group -> list_OwnerUserGroup) . \" users in $group_cn, $good have been reset, $fail had no account in $service_id.\";\n\t\t\t$data['passwrd'] = $passwrd;\n\t\t}\n\t\t\n\t\treturn $data;\n\t}", "public function serviceActiveByAdmin($active){\n $sql = \"UPDATE servicii_prestate SET\n isActive=:isActive\n WHERE id = :id\";\n\n $stmt = $this->db->pdo->prepare($sql);\n $stmt->bindValue(':isActive', 1);\n $stmt->bindValue(':id', $active);\n $result = $stmt->execute();\n if ($result) {\n echo \"<script>location.href='service.php';</script>\";\n Session::set('msg', '<div class=\"alert alert-success alert-dismissible mt-3\" id=\"flash-msg\">\n <a href=\"#\" class=\"close\" data-dismiss=\"alert\" aria-label=\"close\">&times;</a>\n <strong>Success !</strong> Serviciu activat cu succes!</div>');\n }else{\n echo \"<script>location.href='service.php';</script>\";\n Session::set('msg', '<div class=\"alert alert-danger alert-dismissible mt-3\" id=\"flash-msg\">\n <a href=\"#\" class=\"close\" data-dismiss=\"alert\" aria-label=\"close\">&times;</a>\n <strong>Error !</strong> Serviciile nu sunt activate!</div>');\n }\n }", "function activate ()\n\t{\n\t\tswitch ($this->getAction ())\n\t\t{\n\t\t\tcase 'modifyUser':\n\t\t\t\tif ($this->getUserName () == 'test')\n\t\t\t\t{\n\t\t\t\t\tdie ('not allowed for test user');\n\t\t\t\t}\n\t\t\t\t$checkPasswd = true;\n\t\t\t\t$user = $this->itemFactory->requestToUser ($checkPasswd);\n\t\t\t\t$this->operations->modifyUser ($this->getUserName(), $user);\n\t\t\t\tHeader (\"Location: index.php\");\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tHeader (\"Location: index.php\");\n\t\t\t\tbreak;\n\t\t}\n\t}", "public function edit(Service $service)\n {\n //\n }", "public function edit(Service $service)\n {\n //\n }", "public function edit(Service $service)\n {\n //\n }", "public function edit(Service $service)\n {\n //\n }", "function afficherclient()\r\n\t{\r\n\t\t$sql=\"SElECT * From user\";\r\n\t\t$db = config::getConnexion();\r\n\t\ttry\r\n\t\t{\r\n\t\t$liste=$db->query($sql);\r\n\t\treturn $liste;\r\n\t\t}\r\n catch (Exception $e)\r\n {\r\n die('Erreur: '.$e->getMessage());\r\n }\r\n\t}", "public function getUserService()\n\t{\n\t\treturn $this->get('dxuser_service_user');\n\t}", "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 MostrarPaginaIngresarServicio()\n {\n if ($this->admin) {\n $this->viewservices->ingresarServicio();\n } else {\n header(\"Location: \" . BASE_URL);\n }\n }", "public function testUpdateService()\n {\n\n }", "public function showService(){\n \treturn View::make(\"adminservices\");\n }", "abstract protected function _getIdentityServiceId();", "public function activeUsers(): ActiveUsersService;", "public static function user()\n {\n\n }", "abstract protected function connected($user);", "abstract protected function connected($user);", "function cambiarClaveServSoc()\n {\n }", "public function execute() {\n $issuers = \\core\\oauth2\\api::get_all_issuers();\n foreach ($issuers as $issuer) {\n if ($issuer->is_system_account_connected()) {\n try {\n // Try to get an authenticated client; renew token if necessary.\n // Returns false or throws a moodle_exception on error.\n $success = \\core\\oauth2\\api::get_system_oauth_client($issuer);\n } catch (moodle_exception $e) {\n $success = false;\n }\n if ($success === false) {\n $this->notify_admins($issuer);\n }\n }\n }\n }", "public function testUpdateServiceData()\n {\n\n }", "public function executeSecure()\n {\n }", "protected function save()\n\t{\n\t\t\\XF::app()->session()->set('xenforoUpgradeService', [\n\t\t\t'cookieJar' => $this->getCookies(),\n\t\t\t'email' => $this->email,\n\t\t\t'password' => $this->password,\n\t\t\t'availableProducts' => $this->availableProducts,\n\t\t\t'availableVersions' => $this->availableVersions,\n\t\t\t'selectedLicense' => $this->selectedLicense,\n\t\t\t'selectedProduct' => $this->selectedProduct,\n\t\t\t'selectedVersion' => $this->selectedVersion\n\t\t]);\n\t}", "function connexionAdministration(){\n require 'app/views/back/connexionUsers.php';\n }", "function getAssignedDetailsByUserAndService($userID,$serviceID){\n\t\t\n\t\t$ancestorID = $this->userObj->getAncestorIDByUserID($userID);\n\t\t//echo \"<br/> ancestorID=\".$ancestorID;die;\n\t\t$isAssignedInGeneral = $this->rcggaObj->isUserAssigned($userID,$ancestorID);\n\t\t//echo \"<br/>isAssignedInGeneral=\".$isAssignedInGeneral;\n\t\tif($isAssignedInGeneral)\n\t\t\t$userID=1;//If it is assigned to general then take general(admins) gateway\n\t\t\n\t\t$res = $this->dbObj->getByUserAndService($userID,$ancestorID,$serviceID);\n\t\t//echo '<br/>Assigned gateway'.json_encode($res);\n\t\treturn $res;\n\t}", "function Access()\n\t{\n\t\t$this->clear_authentication(false);\n\t\t$this->identify();\n\t}", "function run()\r\n {\r\n $id = Request :: get(UserManager :: PARAM_USER_USER_ID);\r\n if ($id)\r\n {\r\n \tif (!UserRights :: is_allowed_in_users_subtree(UserRights :: EDIT_RIGHT, $id))\r\n\t\t {\r\n\t\t \t$this->display_header();\r\n\t\t Display :: error_message(Translation :: get(\"NotAllowed\", null, Utilities :: COMMON_LIBRARIES));\r\n\t\t $this->display_footer();\r\n\t\t exit();\r\n\t\t }\r\n\r\n\t\t $checkurl = Session :: retrieve('checkChamiloURL');\r\n\t\t Session :: clear();\r\n Session :: register('_uid', $id);\r\n Session :: register('_as_admin', $this->get_user_id());\r\n Session :: register('checkChamiloURL', $checkurl);\r\n header('Location: index.php');\r\n\r\n }\r\n else\r\n {\r\n $this->display_error_page(htmlentities(Translation :: get('NoObjectSelected', array('OBJECT'=> Translation :: get('User')), Utilities :: COMMON_LIBRARIES)));\r\n }\r\n }", "function exchange_add_user_management_for_editors() {\n\t$role = get_role( 'editor' );\n\t$caps = exchange_get_user_caps();\n\tforeach ( $caps as $cap ) {\n\t\t$role->add_cap( $cap );\n\t}\n}", "function subscribeUser()\n\t\t{\n\t\t\techo $this->email.\"add to the database !!\";\n\t\t}", "function is_user_connected_with($service){\n\tglobal $user_ID;\n\tswitch($service){\n\t\tcase 'facebook':\n\t\t\treturn (boolean) get_facebook_id($user_ID);\n\t\t\tbreak;\n\t\tdefault:\n\t\t\treturn false;\n\t\t\tbreak;\n\t}\n}", "public function afficherAdministration()\n {\n if (empty($_SESSION[\"id\"])) {\n $controllerUser = new ControllerUser();\n $controllerUser->addErreur(\"Vous devez vous connecter pour accéder à la page d'administration\");\n $controllerUser->afficherConnexion();\n } else {\n $user = new User($_SESSION[\"id\"]);\n if ($user->getAdministrateurSite() != 1) {\n $controllerUser = new ControllerUser();\n $controllerUser->addErreur(\"Vous devez vous connecter pour en tant qu'administrateur pour accéder à la page d'administration\");\n $controllerUser->afficherConnexion();\n } else {\n $this->vue = new Vue(\"Administration\");\n if (!empty($this->erreurs)) $this->vue->setErreurs($this->erreurs);\n $listeUser = new ListeUser();\n $configAdmin = new ConfigAdmin();\n $this->vue->generer(array(\"listeUsers\" => $listeUser, \"inscriptions\" => $configAdmin->getInscriptions()));\n }\n }\n }", "function newService($action = \"\")\n {\n $this->closeDialogs();\n $serv = preg_replace('/^new_/', '', $action);\n $this->plugins[$serv]->is_account = TRUE;\n $this->dialogObject = $this->plugins[$serv];\n $this->current = $serv;\n $this->dialog = TRUE;\n }", "public function transactService()\n {\n $data['liste_serv'] = $this->serviceModels->getService();\n $this->views->setData($data);\n $param['serv'] = $this->paramPOST['fk_service'];\n\n if (isset($this->paramPOST[\"datedeb\"]) & isset($this->paramPOST[\"datefin\"])) {\n\n $param['datedeb'] = Utils::date_aaaa_mm_jj($this->paramPOST['datedeb']) ;\n $param['datefin'] = Utils::date_aaaa_mm_jj($this->paramPOST['datefin']);\n\n }else{\n $param['datedeb'] = date('Y-m-d');\n $param['datefin'] = date('Y-m-d');\n }\n\n $this->views->setData($param);\n $this->views->getTemplate('reporting/transactService');\n }", "public function activate_user() {\n global $database;\n $sql = \"UPDATE user SET is_active = 1 WHERE id = \";\n $sql .= $database->escape_value($this->id);\n $database->query($sql);\n }", "private function _impersonate($arg0 = '', $arg1 = '', $arg2 = ''){\n\t\t\n\t\tKint::dump($this->vc_user);\n\t\t\n\t\t$this->load->model('model_app_data', 'app_data', true);\n\t\t$data['managers'] = $this->app_data->retrieve_all_managers();\n\t\t$data['promoters'] = $this->app_data->retrieve_all_promoters();\n\t\t$data['hosts'] = $this->app_data->retrieve_all_hosts();\n\t\t\n\t\t\t\n\t\t$this->load->view($this->view_dir . 'impersonate/view_super_admin_impersonate', $data);\n\t\t\n\t}", "public function relatorio4(){\n $this->isAdmin();\n }", "public function onlineAction() {}", "public static function setServiceCredentials()\n {\n // Get all bound services\n $allBoundServices = collect(json_decode(getenv('VCAP_SERVICES'), true));\n\n collect(self::$services)->each(function ($service) use ($allBoundServices) {\n\n // Determine whether we have the specific service key\n // among all bound services.\n if ($allBoundServices->has($service['service_key'])) {\n\n // Collect from bound services under this service key\n $services = collect($allBoundServices->get($service['service_key']));\n\n // Get the specific bound service\n $boundService = collect($services->where('name', $service['service_name'])->first());\n\n // Save each credentials in .env file\n collect($service['env_mapping'])->each(function ($envKey, $credentialKey) use ($boundService) {\n self::saveValueToEnv(\n $envKey,\n collect($boundService->get('credentials'))->get($credentialKey)\n );\n });\n }\n });\n }", "protected function index() {\n\t\t$service = new Model_Service();\n\t\t//$service->set('active',true);\n\t\t$this->payload->services = $service->find();\n\t}", "function cmdClient()\n\t{\n\t\t$cmd = $this->cmd;\n\t\tswitch ($this->cmd)\n\t\t{\n\t\t\tcase NULL:\n\t\t\tcase \"view\":\n\t\t\t\tif ($this->setup->getClient()->db_installed)\n\t\t\t\t{\n\t\t\t\t\t$this->setDisplayMode(\"view\");\n\t\t\t\t\t$this->displayClientOverview();\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t$this->cmd = \"db\";\n\t\t\t\t\t$this->displayDatabase();\n\t\t\t\t}\n\t\t\t\tbreak;\n\n\t\t\tcase \"ini\":\n\t\t\t\t// only allow access to ini if db does not exist yet\n\t\t\t\t//if ($this->setup->getClient()->db_installed)\n\t\t\t\t//{\n\t\t\t\t//\t$this->cmd = \"db\";\n\t\t\t\t//\t$this->displayDatabase();\n\t\t\t\t//}\n\t\t\t\t//else\n\t\t\t\t//{\n\t\t\t\t\t$this->displayIni();\n\t\t\t\t//}\n\t\t\t\tbreak;\n\n\t\t\tcase \"db\":\n\t\t\t\t$this->displayDatabase();\n\t\t\t\tbreak;\n\n\t\t\tcase \"dbslave\":\n\t\t\t\t$this->displayDatabaseSlave();\n\t\t\t\tbreak;\n\n\t\t\tcase \"sess\":\n\t\t\t\tif (!isset($_GET[\"lang\"]) and !$this->setup->getClient()->status[\"finish\"][\"status\"] and $_GET[\"cmd\"] == \"sess\" and $this->setup->error === true)\n\t\t\t\t{\n\t\t\t\t\t$this->jumpToFirstUnfinishedSetupStep();\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t$this->displaySessions();\n\t\t\t\t}\n\t\t\t\tbreak;\n\n\t\t\tcase \"lang\":\n\t\t\t\tif (!isset($_GET[\"lang\"]) and !$this->setup->getClient()->status[\"finish\"][\"status\"] and $_GET[\"cmd\"] == \"lang\" and $this->setup->error === true)\n\t\t\t\t{\n\t\t\t\t\t$this->jumpToFirstUnfinishedSetupStep();\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t$this->displayLanguages();\n\t\t\t\t}\n\t\t\t\tbreak;\n\n\t\t\tcase \"contact\":\n\t\t\t\tif (!isset($_GET[\"lang\"]) and !$this->setup->getClient()->status[\"finish\"][\"status\"] and $_GET[\"cmd\"] == \"contact\")\n\t\t\t\t{\n\t\t\t\t\t$this->jumpToFirstUnfinishedSetupStep();\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t$this->displayContactData();\n\t\t\t\t}\n\t\t\t\tbreak;\n\n\t\t\tcase \"proxy\":\n\t\t\t\tif (!isset($_GET[\"lang\"]) and !$this->setup->getClient()->status[\"finish\"][\"status\"] and $_GET[\"cmd\"] == \"proxy\")\n\t\t\t\t{\n\t\t\t\t\t$this->jumpToFirstUnfinishedSetupStep();\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t$this->displayProxy();\n\t\t\t\t}\n\t\t\t\tbreak;\n\n\t\t\tcase \"cache\":\n\t\t\t\t$this->displayCache();\n\t\t\t\tbreak;\n\n\n\t\t\tcase \"nic\":\n\t\t\t\tif (!isset($_GET[\"lang\"]) and !$this->setup->getClient()->status[\"finish\"][\"status\"] and $_GET[\"cmd\"] == \"nic\")\n\t\t\t\t{\n\t\t\t\t\t$this->jumpToFirstUnfinishedSetupStep();\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t$this->displayNIC();\n\t\t\t\t}\n\t\t\t\tbreak;\n\n\t\t\tcase \"finish\":\n\t\t\t\tif (!isset($_GET[\"lang\"]) and !$this->setup->getClient()->status[\"finish\"][\"status\"] and $_GET[\"cmd\"] == \"finish\")\n\t\t\t\t{\n\t\t\t\t\t$this->jumpToFirstUnfinishedSetupStep();\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t$this->displayFinishSetup();\n\t\t\t\t}\n\t\t\t\tbreak;\n\n\t\t\tcase \"changeaccess\":\n\t\t\t\t$this->changeAccessMode($_GET[\"back\"]);\n\t\t\t\tbreak;\n\n\t\t\tcase \"logout\":\n\t\t\t\t$this->displayLogout();\n\t\t\t\tbreak;\n\n\t\t\tcase \"login\":\n\t\t\t\tsession_destroy();\n\t\t\t\tilUtil::redirect(ILIAS_HTTP_PATH.\"/login.php?client_id=\".$this->setup->getClient()->getId());\n\t\t\t\tbreak;\n\n\t\t\tcase \"login_new\":\n\t\t\t\tif ($this->setup->getClient()->ini->readVariable(\"client\",\"access\") != \"1\")\n\t\t\t\t{\n\t\t\t\t\t$this->setup->getClient()->ini->setVariable(\"client\",\"access\",\"1\");\n\t\t\t\t\t$this->setup->getClient()->ini->write();\n\t\t\t\t}\n\n\t\t\t\tsession_destroy();\n\t\t\t\tilUtil::redirect(ILIAS_HTTP_PATH.\"/login.php?client_id=\".$this->setup->getClient()->getId());\n\t\t\t\tbreak;\n\n\t\t\tcase \"tools\":\n\t\t\t\t$this->displayTools();\n\t\t\t\tbreak;\n\n\t\t\tcase \"reloadStructure\":\n\t\t\t\t$this->reloadControlStructure();\n\t\t\t\tbreak;\n\n\t\t\tcase 'switchTree':\n\t\t\t\t$this->switchTree();\n\t\t\t\tbreak;\n\n\t\t\tcase \"saveClientIni\":\n\t\t\tcase \"installDatabase\":\n\t\t\tcase \"displayDatabase\":\n\t\t\tcase \"updateDatabase\":\n\t\t\tcase \"showUpdateSteps\":\n\t\t\tcase \"saveLanguages\":\n\t\t\tcase \"saveContact\":\n\t\t\tcase \"displayContactData\":\n\t\t\tcase \"displayNIC\":\n\t\t\tcase \"saveRegistration\":\n\t\t\tcase \"applyHotfix\":\n\t\t\tcase \"showHotfixSteps\":\n\t\t\tcase \"applyCustomUpdates\":\n\t\t\tcase \"changeSettingsType\":\n\t\t\tcase \"showLongerSettings\":\n\t\t\tcase \"cloneSelectSource\":\n\t\t\tcase \"cloneSaveSource\":\n\t\t\tcase \"saveProxy\":\n\t\t\tcase \"displayPassword\":\n\t\t\tcase \"savePassword\":\n\t\t\tcase \"saveDbSlave\":\n\t\t\tcase \"saveCache\":\n\t\t\t\t$this->$cmd();\n\t\t\t\tbreak;\n\n\t\t\tdefault:\n\t\t\t\t$this->displayError($this->lng->txt(\"unknown_command\"));\n\t\t\t\tbreak;\n\t\t}\n\t}", "private function getUserService()\n\t{\n\t\treturn $this->userService = new UsersService();\n\t}", "public function commandeuser() {\n\t\t$users = new Model_Users();\n\t\t$id_users = '1';\n\t\t$commandeUser = $users->commandeUsers($id_users);\n\t\trequire_once($_SERVER['DOCUMENT_ROOT'].\"/ecommerce/views/users/commandeuser.php\");\n\t}", "public function getAdministrator() {}", "abstract public function user();", "protected function connected($user)\n\t{\n\t}", "public function privileges()\n {\n $this->privileges = $this->Acces->list($_SESSION['guild_id'],'privilege');\n }", "function showAllServiciosMVCadmin()\n {\n if ($this->admin) {\n $servicios = $this->serviciosModel->getServicios();\n $this->viewservices->showAllServicesPrintAdmin($servicios);\n } else {\n header(\"Location: \" . BASE_URL);\n }\n }", "function start()\n {\n\t\t$GLOBALS['appshore_data']['api']['op'] = $_SESSION['customization']['applications']['tab_id']?$this->selectOp($_SESSION['customization']['applications']['tab_id']):'administration.customization_fields.edit'; \n\t\treturn execMethod($GLOBALS['appshore_data']['api']['op']);\t\t\n }", "public function inServiceText() {\n return 'This application is currently being serviced. Check back later.';\n }", "function enableclient()\n {\n exec('ifconfig ' . escapeshellarg($this->interface) . ' up');\n exec($this->arfilelocation['iwpriv'] . ' ' . escapeshellarg($this->interface) . ' set SiteSurvey=1');\n }", "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 }", "function saveFeed()\n {\n // And subscribe the current user to the local profile\n $user = common_current_user();\n $local = $this->oprofile->localProfile();\n if ($user->isSubscribed($local)) {\n // TRANS: OStatus remote subscription dialog error.\n $this->showForm(_m('Already subscribed!'));\n } elseif (Subscription::start($user, $local)) {\n $this->success();\n } else {\n // TRANS: OStatus remote subscription dialog error.\n $this->showForm(_m('Remote subscription failed!'));\n }\n }", "public function processGuestToCustomer()\n {\n }", "public function editAction() {\n $uid = $this->getInput('uid');\n $userInfo = Admin_Service_User::getUser(intval($uid));\n list(, $groups) = Admin_Service_Group::getAllGroup();\n $this->assign('userInfo', $userInfo);\n $this->assign('groups', $groups);\n $this->assign('status', $this->status);\n $this->assign(\"meunOn\", \"sys_user\");\n }", "protected function setupAdminUser()\n {\n $GLOBALS['current_user'] = \\BeanFactory::getBean('Users')->getSystemUser();\n }", "function listServices()\n{\n global $LANG_ADMIN, $LANG_TRB, $_CONF, $_IMAGE_TYPE, $_TABLES;\n\n require_once $_CONF['path_system'] . 'lib-admin.php';\n\n $retval = '';\n\n $header_arr = array( # display 'text' and use table field 'field'\n array('text' => $LANG_ADMIN['edit'], 'field' => 'edit', 'sort' => false),\n array('text' => $LANG_TRB['service'], 'field' => 'name', 'sort' => true),\n array('text' => $LANG_TRB['ping_method'], 'field' => 'method', 'sort' => true),\n array('text' => $LANG_TRB['service_ping_url'], 'field' => 'ping_url', 'sort' => true),\n array('text' => $LANG_ADMIN['enabled'], 'field' => 'is_enabled', 'sort' => false)\n );\n\n $defsort_arr = array('field' => 'name', 'direction' => 'asc');\n\n $menu_arr = array (\n array('url' => $_CONF['site_admin_url'] . '/trackback.php?mode=editservice',\n 'text' => $LANG_ADMIN['create_new']),\n array('url' => $_CONF['site_admin_url'],\n 'text' => $LANG_ADMIN['admin_home']));\n\n $retval .= COM_startBlock($LANG_TRB['services_headline'], '',\n COM_getBlockTemplate('_admin_block', 'header'));\n\n $retval .= ADMIN_createMenu(\n $menu_arr,\n $LANG_TRB['service_explain'],\n $_CONF['layout_url'] . '/images/icons/trackback.' . $_IMAGE_TYPE\n );\n\n $text_arr = array(\n 'has_extras' => true,\n 'form_url' => $_CONF['site_admin_url'] . '/trackback.php',\n 'help_url' => getHelpUrl() . '#ping'\n );\n\n $query_arr = array(\n 'table' => 'pingservice',\n 'sql' => \"SELECT * FROM {$_TABLES['pingservice']} WHERE 1=1\",\n 'query_fields' => array('name', 'ping_url'),\n 'default_filter' => \"\",\n 'no_data' => $LANG_TRB['no_services']\n );\n\n // this is a dummy variable so we know the form has been used if all services\n // should be disabled in order to disable the last one.\n $form_arr = array('bottom' => '<input type=\"hidden\" name=\"serviceChanger\" value=\"true\"' . XHTML . '>');\n\n $retval .= ADMIN_list('pingservice', 'ADMIN_getListField_trackback',\n $header_arr, $text_arr, $query_arr, $defsort_arr,\n '', SEC_createToken(), '', $form_arr);\n $retval .= COM_endBlock(COM_getBlockTemplate('_admin_block', 'footer'));\n\n if ($_CONF['trackback_enabled']) {\n $retval .= freshTrackback ();\n }\n if ($_CONF['pingback_enabled']) {\n $retval .= freshPingback ();\n }\n\n return $retval;\n}", "function createServiceStatus(){\n\t\t\t$serviceStatusRepo = new serviceStatusRepository;\t\t\t\n\t\t\t$serviceStatusRepo->createServiceStatus($_POST['ServiceID'], $_POST['ServiceOwnerID'], $_POST['RequesterUserID']);\n\t\t}", "abstract function get_crud_service();", "function user_action_user_edit_own($env, $vars) {\n user_action_user_edit($env, $vars);\n}", "public function testComDayCqWcmCoreImplAuthoringUIModeServiceImpl()\n {\n $client = static::createClient();\n\n $path = '/system/console/configMgr/com.day.cq.wcm.core.impl.AuthoringUIModeServiceImpl';\n\n $crawler = $client->request('POST', $path);\n }" ]
[ "0.5484974", "0.5462617", "0.5426577", "0.53682953", "0.5363418", "0.53215075", "0.52795583", "0.52249163", "0.52224857", "0.5220323", "0.5212676", "0.5198831", "0.5188419", "0.5176312", "0.5169243", "0.5160577", "0.51377", "0.51357394", "0.51255524", "0.5113209", "0.51044637", "0.51035994", "0.50865954", "0.507154", "0.5059787", "0.5048833", "0.5044142", "0.50427645", "0.5040401", "0.5036396", "0.5031762", "0.5024086", "0.5021254", "0.5019117", "0.5015436", "0.5008722", "0.5005143", "0.5004122", "0.5003463", "0.5002843", "0.49953604", "0.4994266", "0.49921203", "0.49900946", "0.49900946", "0.49900946", "0.49900946", "0.49842602", "0.49675035", "0.49627525", "0.49515444", "0.49507058", "0.4949494", "0.49479344", "0.49436748", "0.49390712", "0.49342123", "0.49342123", "0.49271172", "0.49185798", "0.49130365", "0.49053267", "0.49042282", "0.49036944", "0.48990604", "0.48958486", "0.48839393", "0.48821858", "0.48766622", "0.48725897", "0.4872334", "0.4870516", "0.4864171", "0.486252", "0.48479068", "0.48461872", "0.483957", "0.4836399", "0.48275837", "0.4827193", "0.48245636", "0.4824375", "0.48212016", "0.48211363", "0.481635", "0.48098773", "0.48030603", "0.48029077", "0.4801996", "0.47992375", "0.47987196", "0.47986194", "0.47966737", "0.47951782", "0.4784271", "0.47772458", "0.47735107", "0.47663426", "0.4758046", "0.47579014" ]
0.50350934
30
Display a single service page.
public function readService(int $id) { $service = $this->userServiceManager->getService($id); if(!is_null($service)) { $userProfile = $this->userProfileManager->getUserProfile($service->getUser()); $this->addCss([ 'services.css', 'forms.css', 'search.css', ]); $this->addJavaScript($this->javaScripts); $this->showView('service/servicePage', [ 'service' => $service, 'userProfile' => $userProfile, ]); } else { $this->redirectTo('index'); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function actionView()\n {\n $param = BaseRequest::getParamOnUrl('param');\n \n $service = $this->getOneByParam('service',['title' => $param]);\n \n return $this->render('view',['service' => $service]);\n }", "public function show($service)\n {\n $service = Service::where('slug', $service)->firstOrFail();\n return view('pages.services.show', compact('service'));\n }", "public function show(Service $service)\n {\n //\n }", "public function show(Service $service)\n {\n //\n }", "public function show(Service $service)\n {\n //\n }", "public function show(Service $service)\n {\n //\n }", "public function show(Service $service)\n {\n //\n }", "public function show(Service $service)\n {\n //\n }", "public function show(Service $service)\n {\n //\n }", "public function show($id)\n {\n $data = Service::findOrFail($id);\n\n return view(\"pages.service.show\", compact(\"data\"));\n }", "public function show(Service $service)\n {\n // backend_service_view\n // return view('back_end.pages_backend.services_backend.show',compact('service',$service));\n // front_end service view\n return view('front_end.pages_frontend.single_service',compact('service',$service));\n\n }", "public function show(Service $service)\n {\n //\n }", "public function show(Service $service)\n {\n\n }", "public function showService(){\n \treturn View::make(\"adminservices\");\n }", "public function show(Services $services)\n {\n //\n }", "public function show(Services $services)\n {\n //\n }", "public function show(Services $services)\n {\n //\n }", "public function showAction($id)\n {\n $this->require_login('ROLE_ORGANISER', 'service/show/' . $id);\n\n $service = Admin::getService($id);\n\n // Get the other information stored for this service\n $destinations = Admin::getDestinations($id);\n $pricebandgroups = Admin::getPricebandgroups($id);\n $joinings = Admin::getJoinings($id);\n $limits = Admin::getLimits($id);\n\n $this->View('service/show', array(\n 'service' => Admin::formatService($service),\n 'destinations' => $destinations,\n 'isdestinations' => !empty($destinations),\n 'pricebandgroups' => Admin::mungePricebandgroups($pricebandgroups),\n 'ispricebandgroups' => !empty($pricebandgroups),\n 'isjoinings' => !empty($joinings),\n 'joinings' => $joinings,\n 'limits' => $limits,\n 'serviceid' => $id,\n 'saved' => Session::read('saved_service', 0),\n ));\n }", "public function index()\n {\n $Services = Service::all();\n return view('pagesystem.Service.index', compact('Services'));\n }", "public function show($id)\n\t{\n\t\t$service = $this->service->findOrFail($id);\n\n\t\treturn View::make('services.show', compact('service'));\n\t}", "public function show($id)\n {\n $service = Service::findOrFail($id);\n\n return view('admin/services.service.show', compact('service'));\n }", "public function show(ServiceCode $serviceCode)\n {\n //\n }", "public function show($id)\r\n\t{\r\n\t\t$service = Service::find($id);\r\n\t\t$bp = BaseProcess::where('service_id', '=', $id)->get();\r\n\t\t$pq = Prequisite::where('parent_id', '=', $id)->get();\r\n\t\t$requirements = ServiceRequirement::where('service_id', '=', $id)->get();\r\n\t\tif(is_null($service)) {\r\n\t\t\t$services = Service::all();\r\n\t\t\tSession::flash('message', 'Service with id ' . $id . ' not found!');\r\n\t\t\treturn View::make('services.index')\r\n\t\t\t\t->with('services', $services);\r\n\t\t} else {\r\n\t\t\treturn View::make('services.show')\r\n\t\t\t\t->with('service', $service)\r\n\t\t\t\t->with('bp', $bp)\r\n\t\t\t\t->with('pq', $pq)\r\n\t\t\t\t->with('requirements', $requirements);\r\n\t\t}\r\n\t}", "public function show($id)\n {\n return view('widegts::services.show');\n }", "public function show($id)\n {\n $service = Service::find($id);\n return view('services.show',compact('service'));\n }", "public function ServiceIndex($id)\n {\n\n $service = Service::findOrFail($id);\n \n return view('admin.service.index')->with([\n 'service' => $service\n ]);\n\n }", "public function service()\n {\n //return view('pages.service', compact('title'));\n $data = array(\n 'title' => 'Well come to my laravelAPP from Service',\n 'Myservices' => ['Full stack Web Development', 'Coding', 'Real time data analysis']\n );\n return view('pages.service')->with($data);\n }", "public function index()\n\t{\n\t\t$services = $this->service->all();\n\n\t\treturn View::make('services.index', compact('services'));\n\t}", "public function index()\n {\n $services = services::all();\n return view('widegts::services.index',compact('services'));\n }", "public function index()\n {\n $services = Service::all();\n foreach ($services as $s){\n $s->urlEdit = route(\"services.edit\",$s->id);\n }\n $this->data[\"services\"] = $services;\n return view(\"admin.pages.services\",$this->data);\n }", "public function indexAction()\n {\n $em = $this->getDoctrine()->getManager();\n\n $services = $em->getRepository('AppBundle:Service')->findAll();\n\n return $this->render('default/services.html.twig', array(\n 'services' => $services,\n ));\n }", "public function index()\n {\n $services = Service::latest()->paginate(10);\n return view('admin.services.index', compact('services'));\n }", "public function index()\n {\n $services = Service::latest()->get();\n return view('admin.services.index', compact('services'));\n }", "public function index()\n {\n return view('content.service');\n }", "public function show(Service $service)\n {\n $service = Service::find($service->id);\n\n return view('services.show', compact('service'));\n }", "public function show($slug)\n {\n $servicio = Servicio::whereservice_id($slug)->firstOrFail();\n return view('client.service', compact('servicio'));\n }", "function horizon_services_section() {\n\t\tget_template_part('inc/partials/homepage', 'services');\n\t}", "function horizon_services_section() {\n\t\tget_template_part('inc/partials/homepage', 'services');\n\t}", "public function index()\r\n\t{\r\n\t\t$services = Service::all();\r\n\r\n\t\treturn View::make('services.index')\r\n\t\t\t->with('services', $services);\r\n\t}", "public function index(){\n $this->vars['page_header'] = OsMenuHelper::get_menu_items_by_id('services');\n $service_categories = new OsServiceCategoryModel();\n $service_categories = $service_categories->get_results_as_models();\n $this->vars['service_categories'] = $service_categories;\n\n $services = new OsServiceModel();\n $this->vars['uncategorized_services'] = $services->where(array('category_id' => ['OR' => [0, 'IS NULL']]))->order_by('order_number asc')->get_results_as_models();\n\n $this->format_render(__FUNCTION__);\n }", "public function index()\n {\n $services = Service::\n orderBy('status', 'asc')->\n orderBy('created_at', 'desc')->\n paginate(10);\n\n return view('services.services', compact('services'));\n }", "public function show(ServiceDetail $serviceDetail)\n {\n return view(\"backoffice.service_detail\", compact(\"serviceDetail\"));\n }", "public function index()\n {\n $services = $this->service->all();\n return view('admin.service.index')->with('services', $services);\n }", "public function index()\n {\n $services = Service::get();\n\n \n return view('dashboard.service.index',compact('services'));\n }", "public function index()\n {\n $services = Service::all();\n return view(\"admin.services.index\", compact('services'));\n }", "public function index()\n\t{\n\t\t$this->our_services();\n\t}", "public function index()\n {\n // return 0;\n $data['page_title'] = \" Service\";\n $data['mentors'] = Service::latest()->paginate(8);\n return view('admin.service.index', $data);\n }", "public function index()\n {\n return view('pages.service.index');\n }", "public function afficheDetailAction($id)\n {\n $cat=$this->getDoctrine()->getRepository(Category::class)->findOneBy(['category_id'=>$id]);\n\n $Service=$this->getDoctrine()->getRepository(Service::class)->findBy(['category'=>$cat]);\n\n return $this->render('@Client/Default/Detail.html.twig', array('Service' => $Service));\n\n }", "public function index()\n {\n return \\Response::view('service.index');\n }", "public function displayAllServices() {\n $services = $this->userServiceManager->getServices(null, true);\n $this->addCss(['search.css', 'forms.css']);\n $this->showView('service/allServices', [\n 'services' => $services,\n ]);\n }", "public function index()\n {\n $services = ServiceDetail::all();\n return view(\"backoffice.service_detail.all\", compact(\"services\"));\n }", "public function index()\n {\n $services = Service::select('id', 'name', 'price')->paginate(10);\n return view('adminlte.services.index', ['data' => $services]);\n }", "public function index()\n\t{\n\t\t$services = Service::all();\n\t\treturn View::make('services.index', array('services'=>$services));\n\t}", "public function index()\n {\n $services = Service::paginate(10);\n return view('admin.service.index')->withServices($services);\n }", "public function display($data) {\n\t\t\treturn $this->load_view($data, apply_filters('cbtb_query_services', array('data'=>$data, 'obj'=>$this, 'services'=>$this->services, 'default_title'=>$this->default_title)));\n\t\t}", "public function services()\n {\n\t return view('pages.services');\n }", "public function index()\n {\n $serviceDetails = ServiceDetail::orderBy('id','DESC')->paginate(10);\n if(count($serviceDetails) > 0){\n foreach ($serviceDetails as $detail){\n $serviceName = Service::findOrFail($detail->idService);\n $detail->serviceName = $serviceName->name;\n }\n }\n return view('backend.service-detail.index',compact('serviceDetails'));\n }", "public function showAction(Services $service)\n {\n $deleteForm = $this->createDeleteForm($service);\n $em = $this->getDoctrine()->getManager();\n $this->denyAccessUnlessGranted('IS_AUTHENTICATED_FULLY');\n $user = $this->getUser();\n $tableName = [];\n $tableSettingsName = [];\n $tableName[$em->getClassMetadata('kiraxeAdminCrmBundle:Workers')->getTableName()] = \"Сотрудники\";\n $tableName[$em->getClassMetadata('kiraxeAdminCrmBundle:Services')->getTableName()] = \"Услуги\";\n $tableSettingsName[$em->getClassMetadata('kiraxeAdminCrmBundle:User')->getTableName()] = \"Пользователи\";\n $tableName[$em->getClassMetadata('kiraxeAdminCrmBundle:Materials')->getTableName()] = \"Материалы\";\n $tableName[$em->getClassMetadata('kiraxeAdminCrmBundle:Orders')->getTableName()] = \"Заказ-наряд\";\n $tableSettingsName[$em->getClassMetadata('kiraxeAdminCrmBundle:Measure')->getTableName()] = \"Единицы измерения\";\n $tableName[$em->getClassMetadata('kiraxeAdminCrmBundle:Expenses')->getTableName()] = \"Расход\";\n $tableCars = [];\n $tableCars[$em->getClassMetadata('kiraxeAdminCrmBundle:Brand')->getTableName()] = \"Бренд автомобиля\";\n $tableCars[$em->getClassMetadata('kiraxeAdminCrmBundle:Model')->getTableName()] = \"Модель автомобиля\";\n\n return $this->render('services/show.html.twig', array(\n 'service' => $service,\n 'delete_form' => $deleteForm->createView(),\n 'tables' => $tableName,\n 'user' => $user,\n 'tableSettingsName' => $tableSettingsName,\n 'tableCars' => $tableCars,\n ));\n }", "public function show()\n {\n return view('addservice');\n }", "public function index()\n {\n return view('pages.index', [\n 'services' => Service::all(),\n ]);\n }", "public function show(InfographieService $infographieService)\n {\n //\n }", "public function renderServices()\n {\n $this->template->services = $this->projectManager->getServices();\n }", "public function index(){ \n $this->view->types = $this->_massage_type->getAll();\n $this->view->render(\"service/index\");\n }", "public function index()\n {\n $services = $this->serviceRepositories->getServices();\n\n return view('backend.services.list', compact('services'));\n }", "public function show($id)\n {\n $serviceDetail = ServiceDetail::findOrFail($id);\n $serviceName = Service::findOrFail($serviceDetail->idService);\n $serviceDetail->serviceName = $serviceName->name;\n return view('backend.service-detail.show',compact('serviceDetail'));\n }", "public function index()\n {\n $services = Service::latest()->paginate(15);\n return view('servicios.index', compact('services'));\n }", "public function index()\r\n {\r\n\r\n\r\n return view('admin.service.services.index');\r\n }", "public function show(Service $service)\n {\n //dd($service->provider->data_contact);\n $providers = Provider::select('*')->get();\n return view('service.show')->with('service', $service)->with('providers', $providers);\n }", "public function service($url='page',$page=0){\n\t\t$data \t\t\t\t\t\t= $this->data;\n\t\t$data['menu'] \t\t\t\t= 'service';\n\n\t\t$data['category'] \t\t\t= CategoryBlogModel::desc()->get();\n\t\t$data['tag'] \t\t\t\t= TagModel::desc()->get();\n\t\t$data['popular_news'] \t\t= BlogModel::notDraft()->take(4)->orderBy('view','desc')->get();\n\t\t$data['events']\t\t\t\t= EventPromoModel::notDraft()->take(4)->desc()->get();\n\n\t\tif($url==\"detail\" && $page!=0){\n\n\t\t\t$service \t\t\t\t= ServiceModel::notDraft()->find($page);\n\n\t\t\tif(!$service){\n\t\t\t\tredirect('error');\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t$service->view \t\t\t= $service->view + 1;\n\t\t\t$service->save();\n\n\t\t\t$data['service'] \t\t= $service;\n\t\t\techo $this->blade->nggambar('website.service.content',$data);\n\t\t}\n\t\telse {\n\t\t\tif(!is_numeric($page)){\n\t\t\t\t$page \t= 0;\n\t\t\t}\n\n\t\t\t$paginate\t\t\t\t\t= new Aksa_pagination;\n\t\t\t$data['page']\t\t\t\t= $page;\t\t\t\n\n\t\t\t$data['total']\t\t\t\t= ServiceModel::notDraft()->desc()->get();\n\t\t\t$data['service']\t\t\t= ServiceModel::notDraft()->take(12)->skip($page*12)->desc()->get();\n\n\t\t\t$data['pagination'] \t\t= $paginate->paginate(base_url('main/service/page/'),5,12,count($data['total']),$page);\n\t\t\techo $this->blade->nggambar('website.service.index',$data);\n\t\t\treturn;\n\t\t}\n\t}", "public function showAction($id)\n {\n $em = $this->getDoctrine()->getManager();\n\n $entity = $em->getRepository('sisconeeAppBundle:Servicio')->find($id);\n\n if (!$entity) {\n throw $this->createNotFoundException('Unable to find Servicio entity.');\n }\n\n $deleteForm = $this->createDeleteForm($id);\n\n return $this->render('sisconeeAdministracionBundle:Servicio:show.html.twig', array(\n 'entity' => $entity,\n 'delete_form' => $deleteForm->createView(),\n ));\n }", "public function index()\n {\n $data = Service::all();\n return view('admin.services.index',['data'=>$data]);\n }", "public function serviceDetail( $slug ) {\n\t\t$data[\"serviceInfo\"] = SM::getCache( 'service_' . $slug, function () use ( $slug ) {\n\t\t\treturn Service::where( \"slug\", $slug )\n\t\t\t ->where( 'status', 1 )\n\t\t\t ->first();\n\t\t} );\n\t\tif ( count( $data[\"serviceInfo\"] ) > 0 ) {\n\t\t\t$data['smAdminBarId'] = $data[\"serviceInfo\"]->id;\n\t\t\t//seo data\n\t\t\t$data['seo_title'] = $data['serviceInfo']->seo_title;\n\t\t\t$data['meta_key'] = $data['serviceInfo']->meta_key;\n\t\t\t$data['meta_description'] = $data['serviceInfo']->meta_description;\n\t\t\t$data[\"image\"] = asset( SM::sm_get_the_src( $data[\"serviceInfo\"]->image, 750, 560 ) );\n\n\t\t\treturn view( \"services.service_detail\", $data );\n\t\t} else {\n\t\t\treturn abort( 404 );\n\t\t}\n\n\t}", "public function index()\n {\n $service = Service::all();\n $product = Product::all();\n return view('dashboard.services.index', compact('service', 'product'));\n }", "public function show() {\n $this->buildPage();\n echo $this->_page;\n }", "public function index()\n {\n // $services = Service::with(['shop', 'shop.user'])\n // ->select('shop_id', 'service_name', 'service_price', 'service_duration')\n // ->get()\n // ->groupBy('shop.shop_name');\n $shops = Shop::latest()->get();\n\n return view('services.index', compact('shops'));\n }", "public function show(Servicos $servicos)\n {\n //\n }", "public function index()\n {\n\n return view('smmpro::services.index', [\n 'services' => Service::orderBy('created_at', 'desc')->get()\n ]);\n }", "public function index()\n\t{\n\t\t$data['form_data'] = $this->find_services_model->get_form_data();\n\t\t$this->load->view('include/header');\n\t\t$this->load->view('find_services_view', $data);\n\t\t$this->load->view('include/footer');\n\t}", "public function index()\n {\n $type = \"sd\";\n $services = Service::get();\n return view('index') ->with(compact('services' , 'type'));\n }", "public static function view() \n {\n $articleDAO = new ArticleDAO();\n $articles = $articleDAO->load();\n\n $dispatch = new Dispatch();\n $dispatch->render(\n 'main_page', [\n 'articles' => $articles\n ]\n );\n }", "public function index()\n {\n $services= Services::all();\n $data= array(\n 'services' => $services,\n\n );\n return view('admin.services.index')->with($data);\n }", "public function getOurServices()\n {\n $data = HomeController::getPage('our-services');\n return view('our_services')->with(['data' => $data]);\n }", "protected function renderServicesList() {}", "protected function index() {\n\t\t$service = new Model_Service();\n\t\t//$service->set('active',true);\n\t\t$this->payload->services = $service->find();\n\t}", "public function actionIndex()\n {\n $searchModel = new ServiceSearch();\n $dataProvider = $searchModel->search(Yii::$app->request->queryParams);\n\n return $this->render('index', [\n 'searchModel' => $searchModel,\n 'dataProvider' => $dataProvider,\n ]);\n }", "public function index()\n {\n $services = Services::OrderBy('sequence')->get();\n\n return view('services.list', ['services' => $services]);\n }", "public function show()\n {\n $services = DB::table('services')->get();\n // la recupperation des services de la DB :\n \n //dd($service);\n\n return view('create',array('services'=> $services));\n }", "public function show(ServiceReport $serviceReport)\n {\n //\n }", "public function index()\n {\n return view('services.index');\n }", "public function show($id)\n {\n return displaySPA();\n }", "public function index()\n {\n $services=Service::orderBy('sort')->paginate(10);\n return view('admin/service/service',compact('services'));\n }", "public function index()\n {\n $service = Service::select('*')->get();\n return view('/clients/home', ['services' => $service]);\n }", "public function index()\n {\n return view('Services');\n }", "public function index()\n {\n $title = 'Services';\n $modulo = 'services';\n $models = Service::all();\n $total = Service::all()->count();\n $fields = [\n 'id',\n 'name',\n 'description',\n 'created_at',\n 'updated_at'\n ];\n return view('list', compact('title', 'models', 'total', 'fields', 'modulo'));\n }", "public function index()\n {\n $services= Service::all();\n $data['services']=$services;\n return view('admin.services.index',$data);\n }", "public function show(Service $service)\n {\n // Try and find the service\n $this->manager->forService($service)\n ->find();\n\n if ( $this->manager->hasError() ) {\n return response()->json(['message' => $this->manager->errorMessage()], $this->manager->errorCode());\n }\n\n return response()->json([\n 'message' => $this->manager->successMessage(),\n 'data' => [\n 'service' => $this->manager->service()\n ]\n ], $this->manager->successCode());\n }", "public function index()\n {\n $services = Services::all(); \n return view('backend.fleet.services', compact('services'));\n }", "public function index()\n {\n $services = Service::with('ship')->get();\n \n return view('service.index', compact('services'));\n }", "public function index()\n {\n // $services = DB::table('services')\n // ->latest()\n // ->paginate(9);\n $services= Service::latest()->paginate('6');\n $trashedServices=Service::onlyTrashed()->latest()->paginate(5);\n return view('admin.activitie.services', compact('services','trashedServices'));\n }" ]
[ "0.7551263", "0.7392476", "0.7349446", "0.7349446", "0.7349446", "0.7349446", "0.7349446", "0.7349446", "0.7349446", "0.7335893", "0.73153913", "0.7248727", "0.72282624", "0.71384984", "0.6986105", "0.6986105", "0.6986105", "0.695824", "0.69027156", "0.68778276", "0.6789163", "0.6776106", "0.67580974", "0.675788", "0.6717967", "0.6711518", "0.6703399", "0.66733056", "0.66681683", "0.6657314", "0.6654216", "0.6645062", "0.66422933", "0.66369563", "0.66144663", "0.6612191", "0.65992767", "0.65992767", "0.65902454", "0.6587596", "0.6570587", "0.65613914", "0.65546834", "0.654772", "0.6547566", "0.65379447", "0.651994", "0.6500992", "0.64981276", "0.64800066", "0.6478362", "0.6474405", "0.6465197", "0.6447879", "0.6409968", "0.6408651", "0.6406988", "0.6381457", "0.63786376", "0.63673234", "0.6350334", "0.63419783", "0.63399017", "0.6319401", "0.63177425", "0.6316237", "0.6300555", "0.62973166", "0.62901187", "0.62856954", "0.6279122", "0.62711173", "0.6246212", "0.62403977", "0.6232809", "0.6223559", "0.6196042", "0.6183944", "0.61736864", "0.6160108", "0.6141115", "0.6136946", "0.61356074", "0.61314464", "0.6130047", "0.6125912", "0.6123591", "0.6120633", "0.61196095", "0.6115619", "0.6106811", "0.6106557", "0.61056024", "0.610102", "0.60976046", "0.60945517", "0.60939443", "0.6092158", "0.6091793", "0.6087753" ]
0.6487005
49
Display all available ( and validated ) services.
public function displayAllServices() { $services = $this->userServiceManager->getServices(null, true); $this->addCss(['search.css', 'forms.css']); $this->showView('service/allServices', [ 'services' => $services, ]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function index()\n {\n $services = Service::\n orderBy('status', 'asc')->\n orderBy('created_at', 'desc')->\n paginate(10);\n\n return view('services.services', compact('services'));\n }", "public function client_all_services(){\n $service = Service::where('user_id',Auth::user()->id)->where('status', 0)->get();\n //dd($service);\n return view('admin.pages.client_services.all_services', compact('service'));\n }", "protected function renderServicesList() {}", "public function index()\n {\n $services = $this->serviceRepositories->getServices();\n\n return view('backend.services.list', compact('services'));\n }", "function showAllServiciosMVC()\n {\n $servicios = $this->serviciosModel->getServicios();\n $this->viewservices->showAllServicesPrint($servicios);\n }", "public function getServices();", "public function index()\n {\n $services = Service::all();\n return view(\"admin.services.index\", compact('services'));\n }", "public function index()\n {\n $services = $this->service->all();\n return view('admin.service.index')->with('services', $services);\n }", "public function index()\n {\n \n $all_servive = Services::all();\n return view('all_service')->with('services', $all_servive);\n }", "public function index()\n {\n $services = services::all();\n return view('widegts::services.index',compact('services'));\n }", "public function index()\n\t{\n\t\t$services = $this->service->all();\n\n\t\treturn View::make('services.index', compact('services'));\n\t}", "public function index()\n {\n $services = Services::OrderBy('sequence')->get();\n\n return view('services.list', ['services' => $services]);\n }", "public function index()\n {\n $Services = Service::all();\n return view('pagesystem.Service.index', compact('Services'));\n }", "public function services()\n {\n $sahulatServices=$this->_service->getServices(\"Sahulat\");\n $vendorServices=$this->_service->getServices(\"Vendor\");\n return view('frontend.service.services')->with(compact('sahulatServices','vendorServices'));;\n }", "public function index()\n {\n\n return view('smmpro::services.index', [\n 'services' => Service::orderBy('created_at', 'desc')->get()\n ]);\n }", "public function index()\n {\n $services = Service::latest()->paginate(10);\n return view('admin.services.index', compact('services'));\n }", "public function index()\n {\n $services = Service::latest()->get();\n return view('admin.services.index', compact('services'));\n }", "public function listsServicesGet()\r\n {\r\n $response = Services::with('regimen')->get();\r\n return response()->json($response,200);\r\n }", "public function getList()\n {\n $service = list_services::all();\n return view('page.services',compact('service'));\n }", "public function index()\n {\n $title = 'Services';\n $modulo = 'services';\n $models = Service::all();\n $total = Service::all()->count();\n $fields = [\n 'id',\n 'name',\n 'description',\n 'created_at',\n 'updated_at'\n ];\n return view('list', compact('title', 'models', 'total', 'fields', 'modulo'));\n }", "public function indexAction() {\n $this->require_login('ROLE_ORGANISER', 'service/index');\n\n $allservices = Admin::getServices();\n\n // submitted year\n $maxyear = Admin::getFilteryear();\n $filteryear = $this->getParam('filter_year', 0);\n if ($filteryear) {\n Session::write('filteryear', $filteryear);\n } else {\n $filteryear = Session::read('filteryear', $maxyear);\n }\n \n // get possible years and filter results\n $services = array();\n $years = array();\n $years['All'] = 'All'; \n foreach ($allservices as $service) {\n\n // munge some data for template while here\n $service->showbookingbutton = $service->visible and $_ENV['enablebooking'];\n\n $servicedate = $service->date;\n $year = substr($servicedate, 0, 4);\n $years[$year] = $year;\n if ($filteryear=='All' or $filteryear=='') {\n $services[] = $service;\n } else if ($year == $filteryear) {\n $services[] = $service;\n }\n }\n\n // get booking status\n $enablebooking = $_ENV['enablebooking'];\n\n // Create form\n $form = new \\stdClass();\n $form->filter_year = Form::select('filter_year', 'Tour season', $filteryear, $years, '', array(\n '@change' => 'datechange()'\n ));\n\n $this->View('service/index', array(\n 'services' => Admin::formatServices($services),\n 'is_services' => !empty($services),\n 'enablebooking' => $enablebooking,\n 'form' => $form,\n 'years' => $years,\n 'filteryear' => $filteryear,\n ));\n }", "public function index()\r\n\t{\r\n\t\t$services = Service::all();\r\n\r\n\t\treturn View::make('services.index')\r\n\t\t\t->with('services', $services);\r\n\t}", "public function show(Services $services)\n {\n //\n }", "public function show(Services $services)\n {\n //\n }", "public function show(Services $services)\n {\n //\n }", "public function index()\n {\t\t\n return ServicesResource::collection(Services::all());\n }", "public static function getListServices () {\n return self::findByStatus(self::STATUS_ACTIVE);\n }", "public function index()\n {\n $services = Service::get();\n\n \n return view('dashboard.service.index',compact('services'));\n }", "public function index()\n {\n $services = Service::paginate(10);\n return view('admin.service.index')->withServices($services);\n }", "public function indexAction()\n {\n $em = $this->getDoctrine()->getManager();\n\n $services = $em->getRepository('AppBundle:Service')->findAll();\n\n return $this->render('default/services.html.twig', array(\n 'services' => $services,\n ));\n }", "public function getAvailableServices();", "public function services()\n {\n $services_active = true;\n\n $display_status_id = config('contants.display_status_display');\n $feedbacks = $this->feedback_services->allWithDisplayStatus($display_status_id);\n\n return view('client.services', compact('feedbacks', 'services_active'));\n }", "public function services()\n {\n\t return view('pages.services');\n }", "public function our_services(){\n $all_services = Service::all();\n return view('front_end.pages_frontend.our_services',compact('all_services'));\n }", "public function index()\n {\n $services = Service::select('id', 'name', 'price')->paginate(10);\n return view('adminlte.services.index', ['data' => $services]);\n }", "public function index(){\n $this->vars['page_header'] = OsMenuHelper::get_menu_items_by_id('services');\n $service_categories = new OsServiceCategoryModel();\n $service_categories = $service_categories->get_results_as_models();\n $this->vars['service_categories'] = $service_categories;\n\n $services = new OsServiceModel();\n $this->vars['uncategorized_services'] = $services->where(array('category_id' => ['OR' => [0, 'IS NULL']]))->order_by('order_number asc')->get_results_as_models();\n\n $this->format_render(__FUNCTION__);\n }", "public function index()\n {\n return $this->service->list();\n }", "public function getServices()\n\t\t{\n\n\t\t\t$service_id = $this->input->get('service_id') ;\n\t\t\techo json_encode($this->mdl_services->all()->result() ) ;\n\t\t}", "public function index()\n {\n return ServicesApi::collection($this->services->whereNull('deleted_at')->get());\n\n }", "public function services(){\n $data = array(\n 'title' => 'Services',\n 'services' => ['Tellen', 'Quality', 'Habitat']\n );\n return view('pages.services')->with($data);\n }", "public function listedesservicesAction()\r\n {\r\n $tservices = new Pits_Model_DbTable_TServicesplaces();\r\n $select = $tservices->select();\r\n $adapter = new Zend_Paginator_Adapter_DbTableSelect($select);\r\n $paginator = new Zend_Paginator($adapter);\r\n $paginator->setItemCountPerPage(10);\r\n $paginator->setCurrentPageNumber($this->view->page = $this->getRequest()->getParam('page', 1));\r\n $this->view->services = $paginator;\r\n }", "public function index()\n\t{\n\t\t$services = Service::all();\n\t\treturn View::make('services.index', array('services'=>$services));\n\t}", "public function services()\n {\n \t\t//$services = $data->get_services();\n \t\t//dd($cities->ZA);\n \t\t$services = KitApi::get_services();\n \t\treturn view('services', compact('services'));\n }", "public function index()\n\t{\n\t\t$this->our_services();\n\t}", "public function index()\n {\n $services = ServiceDetail::all();\n return view(\"backoffice.service_detail.all\", compact(\"services\"));\n }", "public function index()\n {\n $services = Services::all(); \n return view('backend.fleet.services', compact('services'));\n }", "public function listAllAvailableServices()\n {\n\t\t$data = $this->call(array(), \"GET\", \"sensors/services/available.json\");\n\t\t$data = $data->{'services'};\n\t\t$serviceArray = new ArrayObject();\n\t\tfor($i = 0; $i<count($data);$i++){\n\t\t\t$serviceArray->append(new Service($data[$i], $this));\n\t\t}\n\t\treturn $serviceArray;\n }", "public function index()\n {\n $service = Service::all();\n $product = Product::all();\n return view('dashboard.services.index', compact('service', 'product'));\n }", "public function actionIndex()\n {\n $searchModel = new ServiceSearch();\n $dataProvider = $searchModel->search(Yii::$app->request->queryParams);\n\n return $this->render('index', [\n 'searchModel' => $searchModel,\n 'dataProvider' => $dataProvider,\n ]);\n }", "public function services(){\n $results = DB::select('select * from services');\n return view('frontend.services')->with(['results'=>$results]);\n }", "public function services()\n {\n $navbar = NavBar::first();\n $servicehead = ServiceHead::first();\n $featurehead = FeatureHead::first();\n $testimonial = TestimonialHead::first();\n $servicebody = ServiceBody::all();\n $featurebody = FeatureBody::all();\n $testimonials = Testimonial::all();\n\n return view('pages.home.services' , compact('servicehead' , 'featurehead' , 'servicebody' , 'navbar' , 'featurebody' , 'testimonial' , 'testimonials'));\n }", "protected function getInstalledServices() {}", "public function index()\n {\n $data = Service::all();\n return view('admin.services.index',['data'=>$data]);\n }", "public function renderServices()\n {\n $this->template->services = $this->projectManager->getServices();\n }", "protected function index() {\n\t\t$service = new Model_Service();\n\t\t//$service->set('active',true);\n\t\t$this->payload->services = $service->find();\n\t}", "public function index()\n {\n $aux = new ResponseService;\n\n $services = $aux->indexTecnico();\n $clientes = Cliente::OrderBy('nombre', 'Asc')->toBase()->get(['nombre', 'apellido', 'identificacion', 'id']);\n $equipos = Equipo::OrderBy('serie', 'Asc')->toBase()->get(['serie', 'id']);\n \n return view('admin.services.index', compact('services','clientes','equipos'));\n }", "public function index()\n {\n $services= Services::all();\n $data= array(\n 'services' => $services,\n\n );\n return view('admin.services.index')->with($data);\n }", "public function getServices(): array;", "public function index()\n {\n $services = Service::with('ship')->get();\n \n return view('service.index', compact('services'));\n }", "public function index()\n {\n return Service::all();\n }", "public function index()\n {\n $services=Service::orderBy('sort')->paginate(10);\n return view('admin/service/service',compact('services'));\n }", "public function typeServices()\n {\n $display_status_id = config('contants.display_status_display');\n $feedbacks = $this->feedback_services->allWithDisplayStatus($display_status_id);\n return view('client.services', compact('feedbacks', 'services_active'));\n }", "public function index()\n {\n return $this->service->all();\n }", "public function index()\n {\n //\n\t\t$services=Services::all()->toArray();\n\t\treturn view('services.index',compact('services'));\n\t\t\n }", "public function index()\n {\n // $services = Service::with(['shop', 'shop.user'])\n // ->select('shop_id', 'service_name', 'service_price', 'service_duration')\n // ->get()\n // ->groupBy('shop.shop_name');\n $shops = Shop::latest()->get();\n\n return view('services.index', compact('shops'));\n }", "public function index()\n {\n $services = $this->serviceRepository->paginate();\n\n return ServiceResource::collection($services);\n }", "public function index()\n {\n // $services = DB::table('services')\n // ->latest()\n // ->paginate(9);\n $services= Service::latest()->paginate('6');\n $trashedServices=Service::onlyTrashed()->latest()->paginate(5);\n return view('admin.activitie.services', compact('services','trashedServices'));\n }", "public function getPostalServices()\n\t\t{\n\t\t\t$this->layout = \"index\";\n\t\t\t$this->set('title', 'Postal Service (Linnworks API)');\n\t\t}", "function wsdl_docs_services_viewer($form, $form_state) {\n drupal_set_title(t('Web Services'));\n\n // @todo: Find and list all published services\n return $form;\n}", "public function actionIndex()\n {\n $searchModel = new ClinicServicesSearch();\n $dataProvider = $searchModel->search(Yii::$app->request->queryParams);\n\n return $this->render('index', [\n 'searchModel' => $searchModel,\n 'dataProvider' => $dataProvider,\n ]);\n }", "public function index()\n {\n $display_status_id = config('contants.display_status_display');\n\n $branch = $this->branch_services->count();\n $user = $this->user_services->count();\n $service = $this->service_services->count();\n $orders = $this->order_services->count();\n $feedbacks = $this->feedback_services->allWithDisplayStatus($display_status_id);\n $slides = $this->slide_services->allDisplay('asc');\n $technicians = $this->user_services->getTechnicianWithStatus($display_status_id);\n $index_active = true;\n\n return view('client.index', compact(\n 'branch',\n 'user',\n 'service',\n 'orders',\n 'feedbacks',\n 'slides',\n 'technicians',\n 'index_active'\n )\n );\n }", "public function index()\n {\n $providers = Provider::select('*')->get();\n return view('service.index')->with('providers', $providers);\n }", "public function findServices(): array;", "public function index()\n {\n $services= Service::all();\n $data['services']=$services;\n return view('admin.services.index',$data);\n }", "function listServices()\n{\n global $LANG_ADMIN, $LANG_TRB, $_CONF, $_IMAGE_TYPE, $_TABLES;\n\n require_once $_CONF['path_system'] . 'lib-admin.php';\n\n $retval = '';\n\n $header_arr = array( # display 'text' and use table field 'field'\n array('text' => $LANG_ADMIN['edit'], 'field' => 'edit', 'sort' => false),\n array('text' => $LANG_TRB['service'], 'field' => 'name', 'sort' => true),\n array('text' => $LANG_TRB['ping_method'], 'field' => 'method', 'sort' => true),\n array('text' => $LANG_TRB['service_ping_url'], 'field' => 'ping_url', 'sort' => true),\n array('text' => $LANG_ADMIN['enabled'], 'field' => 'is_enabled', 'sort' => false)\n );\n\n $defsort_arr = array('field' => 'name', 'direction' => 'asc');\n\n $menu_arr = array (\n array('url' => $_CONF['site_admin_url'] . '/trackback.php?mode=editservice',\n 'text' => $LANG_ADMIN['create_new']),\n array('url' => $_CONF['site_admin_url'],\n 'text' => $LANG_ADMIN['admin_home']));\n\n $retval .= COM_startBlock($LANG_TRB['services_headline'], '',\n COM_getBlockTemplate('_admin_block', 'header'));\n\n $retval .= ADMIN_createMenu(\n $menu_arr,\n $LANG_TRB['service_explain'],\n $_CONF['layout_url'] . '/images/icons/trackback.' . $_IMAGE_TYPE\n );\n\n $text_arr = array(\n 'has_extras' => true,\n 'form_url' => $_CONF['site_admin_url'] . '/trackback.php',\n 'help_url' => getHelpUrl() . '#ping'\n );\n\n $query_arr = array(\n 'table' => 'pingservice',\n 'sql' => \"SELECT * FROM {$_TABLES['pingservice']} WHERE 1=1\",\n 'query_fields' => array('name', 'ping_url'),\n 'default_filter' => \"\",\n 'no_data' => $LANG_TRB['no_services']\n );\n\n // this is a dummy variable so we know the form has been used if all services\n // should be disabled in order to disable the last one.\n $form_arr = array('bottom' => '<input type=\"hidden\" name=\"serviceChanger\" value=\"true\"' . XHTML . '>');\n\n $retval .= ADMIN_list('pingservice', 'ADMIN_getListField_trackback',\n $header_arr, $text_arr, $query_arr, $defsort_arr,\n '', SEC_createToken(), '', $form_arr);\n $retval .= COM_endBlock(COM_getBlockTemplate('_admin_block', 'footer'));\n\n if ($_CONF['trackback_enabled']) {\n $retval .= freshTrackback ();\n }\n if ($_CONF['pingback_enabled']) {\n $retval .= freshPingback ();\n }\n\n return $retval;\n}", "public function index()\n {\n $services = Service::all();\n\n return response() -> json([\n \"success\" => true,\n \"services\" => $services\n ], 200);\n }", "public function get_services() {\n return $this->linkemperor_exec(null, null,\"/api/v2/customers/services.json\");\n }", "public function actionIndex()\n {\n $searchModel = new ServicesSearch();\n $dataProvider = $searchModel->search(Yii::$app->request->queryParams);\n\n $categories = ServiceCategories::find()->all();\n $categoryArray = [];\n foreach($categories as $category){\n $categoryArray[$category->id ] = $category->title;\n }\n \n $isHairdresser = false;\n if(!Yii::$app->user->isGuest){\n $hairdressers = Hairdressers::find()->where(['usersId' => Yii::$app->user->identity->id])->one();\n if(!empty($hairdressers)){\n $isHairdresser = true;\n }\n }\n \n \n return $this->render('index', [\n 'searchModel' => $searchModel,\n 'dataProvider' => $dataProvider,\n 'categories' => $categoryArray,\n 'isHairdresser' => $isHairdresser\n ]);\n }", "public function index()\r\n {\r\n\r\n\r\n return view('admin.service.services.index');\r\n }", "private function _getServiceList()\n {\n Modules_CustomServices_DataLayer::init();\n $configs = Modules_CustomServices_DataLayer::loadServiceConfigurations();\n\n // Configs are objects, but the list view needs associative arrays.\n $config_to_array = function($config) {\n return [\n 'name' => '<a href=\"' . htmlspecialchars(pm_Context::getActionUrl('index', 'view') . '/id/' . urlencode($config->unique_id)) . '\">' . htmlspecialchars($config->display_name) . '</a>',\n 'type' => self::_configTypeName($config->config_type),\n 'plesk_service_id' => '<code>' . htmlspecialchars('ext-' . pm_Context::getModuleId() . '-' . $config->unique_id) . '</code>',\n 'run_as_user' => $config->run_as_user\n ];\n };\n $data = array_map($config_to_array, $configs);\n\n // Prepare the list for presentation.\n $list = new pm_View_List_Simple($this->view, $this->_request);\n $list->setData($data);\n $list->setColumns([\n 'name' => [\n 'title' => 'Name',\n 'noEscape' => TRUE,\n 'searchable' => TRUE,\n 'sortable' => TRUE\n ],\n 'type' => [\n 'title' => 'Type',\n 'noEscape' => FALSE,\n 'searchable' => FALSE,\n 'sortable' => FALSE\n ],\n 'plesk_service_id' => [\n 'title' => 'Service ID',\n 'noEscape' => TRUE,\n 'searchable' => TRUE,\n 'sortable' => FALSE\n ],\n 'run_as_user' => [\n 'title' => 'System user',\n 'noEscape' => FALSE,\n 'searchable' => TRUE,\n 'sortable' => TRUE\n ]\n ]);\n $list->setDataUrl(['action' => 'list-data']);\n $list->setTools([\n [\n 'title' => 'Add service (simple)',\n 'description' => 'Add a new service that wraps a process',\n 'class' => 'sb-add-new',\n 'link' => pm_Context::getActionUrl('index', 'add') . '/type/process'\n ],\n [\n 'title' => 'Add service (manual)',\n 'description' => 'Add a new manually controlled service',\n 'class' => 'sb-add-new',\n 'link' => pm_Context::getActionUrl('index', 'add') . '/type/manual'\n ]\n ]);\n return $list;\n }", "public function services()\n {\n $comptes = compte::all();\n return view('pages.services')->with('comptes',$comptes);//->with($data);\n }", "public function index()\n {\n $type = \"sd\";\n $services = Service::get();\n return view('index') ->with(compact('services' , 'type'));\n }", "public function index()\n {\n try{\n return $this->successResponse(new AbstractCollection($this->services->getAll()));\n }catch(\\Exception $e){\n return $this->errorResponse($e->getMessage(), $e->getCode());\n }\n }", "public function index()\n {\n $providers = Provider::with('service', 'accepted', 'cancelled')\n ->orderBy('id', 'DESC')\n ->get();\n\n return view('admin.providers.index', compact('providers'));\n }", "public function showService(){\n \treturn View::make(\"adminservices\");\n }", "public function index()\n {\n $services = Service::all();\n $icon = Icon::all();\n return view('site.services', compact('services', 'icon'));\n }", "public function index()\n {\n return ServiceResource::collection(Service::all());\n }", "public function index()\n {\n $services = Service::latest()->paginate(15);\n return view('servicios.index', compact('services'));\n }", "public function index()\n {\n $services = Service::all();\n foreach ($services as $s){\n $s->urlEdit = route(\"services.edit\",$s->id);\n }\n $this->data[\"services\"] = $services;\n return view(\"admin.pages.services\",$this->data);\n }", "function getServices() {\n\t\t$results = \"\";\n\t\t$sql = 'SELECT * FROM Service';\n\n\t\t$results = queryDB($sql);\n\n\t\treturn $results;\n\t}", "public function getRequestedServices();", "public function getServices()\n\t{\n\t\treturn ['card', 'topup_mobile', 'topup_mobile_post', 'topup_game'];\n\t}", "function getServices() {\n $sql = 'SELECT * FROM services';\n\n $results = mysqli_query($GLOBALS['con'], $sql);\n\n if (mysqli_num_rows($results) > 0) {\n return $results;\n }\n }", "public function getServices()\n {\n $services = OurService::select('id','title','slug','description','image')\n ->where('status','=',\\DB::raw(1))\n ->take(4)\n ->get();\n if($services->count()) {\n return $services;\n }\n\n return false;\n }", "public function index(){ \n $this->view->types = $this->_massage_type->getAll();\n $this->view->render(\"service/index\");\n }", "public function service_listing() {\n // $user = array(\n // 'id' => encrypt($temp['id']),\n // 'email' => $temp['sClEmail'],\n // );\n \n $breadcrumbs = [['link' => \"/client-dashboard\", 'name' => \"Dashboard\"], ['name' => \"Service Listing\"]];\n\n $data = $this->getServiceData(\"all\", Auth::id());\n\n return view('/pages/client_user/client/client-service-listing',[\n 'breadcrumbs' => $breadcrumbs,\n // 'user'=> $user,\n ])->with(\"serviceList\", $data);\n }", "public function getService()\n {\n //\n \n $services = Service::all();\n $rates = Rate::all();\n return view('admin.service',compact('services','rates'));\n }", "public function getServices()\n {\n return $this->services;\n }", "public function getServices()\n {\n return $this->services;\n }", "public function getServices()\n {\n return $this->services;\n }" ]
[ "0.7252631", "0.7187641", "0.71697074", "0.7118057", "0.70620745", "0.7050781", "0.70186406", "0.7003626", "0.6979654", "0.6951262", "0.69470584", "0.6923756", "0.69005835", "0.68831795", "0.68758744", "0.68757296", "0.687021", "0.6865213", "0.6864922", "0.68605167", "0.68573856", "0.68520534", "0.6844966", "0.6844966", "0.6844966", "0.68407476", "0.6810367", "0.680878", "0.68076086", "0.68029594", "0.6798555", "0.6773653", "0.676841", "0.67657465", "0.67571205", "0.6705578", "0.6703455", "0.6697099", "0.6685024", "0.66838264", "0.66688555", "0.66648626", "0.6656914", "0.6656123", "0.66437143", "0.66403806", "0.6632614", "0.66168034", "0.6598792", "0.65886194", "0.65710056", "0.6558785", "0.6558618", "0.65490717", "0.6539248", "0.6522477", "0.651758", "0.65157837", "0.6512271", "0.6509758", "0.6501655", "0.64726126", "0.6470527", "0.64677125", "0.6456633", "0.6440924", "0.6431651", "0.64289707", "0.6414785", "0.641282", "0.6402606", "0.63968176", "0.63925713", "0.63812244", "0.6374189", "0.6365308", "0.6359008", "0.63501966", "0.63478667", "0.6343925", "0.6340747", "0.6334864", "0.6334744", "0.6328093", "0.6320793", "0.63184786", "0.6317477", "0.6295609", "0.6289541", "0.6254499", "0.6232642", "0.62267387", "0.6221878", "0.6221783", "0.62216717", "0.62050617", "0.620363", "0.6193739", "0.6193739", "0.6193739" ]
0.8407879
0
Allow to send message to a service.
public function sendMessage(array $request){ $this->redirectIfNotLoggedIn('service', 'show-all'); if($this->isFormSubmitted()) { if($this->issetAndNotEmpty($request, 'message', 'service-id')) { $messageContent = DB::secureData($request['message']); $serviceId = DB::secureInt($request['service-id']); $service = $this->userServiceManager->getService($serviceId); if (!is_null($service->getId())) { $messageManager = new MessageManager(); if($messageManager->sendMessages($messageContent, $service, $this->user)) { $this->setSuccessMessage("Votre message a bien été envoyé"); } else { $this->setErrorMessage("Une erreur est survenue en envoyant votre message."); } } else { $this->setErrorMessage("Le service pour lequel vous souhaitez envoyer un message n'existe pas."); } $this->readService($serviceId); } else { $this->setErrorMessage("Le message ou le service n'a pas été spécifié"); } } else { $this->redirectIfNotLoggedIn('service', 'show-all'); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function send($message)\n {\n }", "function esms_services_send_message($message, $number, $type) {\n return esms_send_message($message, $number, $type);\n}", "public function send($message);", "public function send($message);", "public function send($message);", "public function send($message);", "public abstract function sendMessage();", "public function sendMessage(){\n\n\n }", "abstract function doSend();", "private function send_msg() {\r\n }", "public function send($message, $to_phone);", "public function doSend(IMessage $Message);", "public function send()\n {\n }", "public function send()\n {\n }", "public function send()\n {\n }", "public function send() {}", "public function send() {}", "public function send() {}", "public function send() {}", "public function send() {}", "public function handleSendEvent(object $message): void;", "public function send(mixed $message): void;", "protected function callService ()\n\t{\n\t\t$this->protocol->callService( $this->data ) ;\n\t}", "public function send();", "public function send();", "public function send();", "public function send();", "public function send();", "public function send();", "public function send();", "public function send();", "public function send();", "public function send();", "public function send();", "public function send()\n {\n }", "abstract public function send($message, $msisdn);", "public function sendMessage(ShortMessageContract $message);", "public function send(string $phone)\n {\n }", "abstract function send();", "protected function send() {}", "private function send(): void\n {\n $data = [\n 'code' => $this->status,\n 'message' => $this->message,\n 'datetime' => Carbon::now()\n ];\n\n $config = config(\"tebot.$this->channelConfig\");\n\n $data['title'] = $this->title . ' ' . $config['name'];\n\n if (!empty($this->detail)) $data['detail'] = json_encode($this->detail);\n\n Http::withHeaders(['x-api-key' => $config['key']])->post($config['url'] . '/api/message', $data);\n }", "function artmo_send_private_message($to, $from, $message){\n if ($from==$to) return;\n // Create conversation and add message\n $_POST['content'] = $message;\n $conversation_id = UM()->Messaging_API()->api()->create_conversation( $to, $from );;\n $_POST['content'] = \"\";\n do_action('um_after_new_message', $to, $from, $conversation_id );\n}", "public abstract function send(Hermes_Message_Data $message);", "function send()\n {\n try{\n $client = new Client();\n $response = $client->request('POST', $this->base_url_SendSMS, [\n 'form_params' => [\n 'Userid' => $this->username,\n 'pwd' => $this->password,\n 'APIKEY' => $this->apikey,\n 'MSG' => $this->msgtext,\n 'FROM' => $this->from,\n 'To' => $this->to,\n ]\n ]);\n\n echo $response->getStatusCode(); // 200\n $response->getReasonPhrase(); // OK\n $response->getProtocolVersion(); // 1.1\n }\n catch(\\GuzzleHttp\\Exception\\ClientException $e){\n echo $e->getMessage();\n }\n catch(ErrorException $e){\n echo $e->getMessage();\n }\n }", "public function send($message, $toUser)\r\n {\r\n echo \"站内短消息形式发送:{$message} 给 {$toUser}\\n\";\r\n }", "public function sendAction()\n {\n $id = (int) $this->_request->getParam('id', 0);\n $userDto = $this->getDaoUser()->fetchOneWithAvatar('user.id',$id);\n \n if($this->_request->isPost())\n { \n $result = $this->getBusiness()->sendMessage($userDto, $this->_request->getPost('text'));\n \n $url = Qsoft_Helper_Url::generate($this->_request->getControllerName());\n $backLink = '<a href=\"' . $url . '\">' . $this->view->translate('Back to list') . '</a>';\n \n if($result['status'] === true) {\n $this->noticeMessage('Sent message successfully. %s', $backLink);\n } else {\n $this->noticeMessage('Cannot send message, check support user %s', $backLink); \n }\n } \n \n if ($id != 0 AND !$userDto) {\n $this->_redirect($this->_request->getControllerName());\n }\n \n $this->view->item = $userDto; \n }", "public function trySend(mixed $message): void;", "public function setService($service) {\r\n\t\t$this->service = $service;\r\n\t}", "public function sendMessage(BotMessage $message): void;", "function sendUserMessage($user, $message)\n\t{\n\t\t$this->sendMessage($user, $message);\n\t}", "private function sendMessage()\n {\n try\n {\n $request = $_POST;\n\n $uid = userid();\n\n if (!$uid)\n throw_error_msg( lang(\"you_not_logged_in\") ) ;\n\n if( !isset($request['username']) || $request['username']==\"\" )\n throw_error_msg(\"username not provided\");\n\n if( !isset($request['subject']) || $request['subject']==\"\" )\n throw_error_msg(\"subject not provided\");\n\n if( !isset($request['content']) || $request['content']==\"\" )\n throw_error_msg(\"content not provided\");\n\n $array['is_pm'] = true;\n $array['from'] = $uid;\n $array['to'] = $request['username'];\n $array['subj'] = mysql_clean($request['subject']);\n $array['content'] = mysql_clean($request['content']);\n\n global $cbpm;\n $rs = $cbpm->send_pm($array);\n\n if( error() )\n {\n throw_error_msg(error('single')); \n }\n\n if( msg() )\n {\n $data = array('code' => \"200\", 'status' => \"success\", \"msg\" => \"message sent successfully\", \"data\" => array());\n $this->response($this->json($data));\n } \n }\n catch(Exception $e)\n {\n $this->getExceptionDelete($e->getMessage());\n } \n\n }", "public function actionWriteMessage() {\n\t\ttry {\n\t\t\treturn $this->getService('SupportMessage')->add();\n\t\t} catch (Exception $e) {\n\t\t\treturn $this->sendError('You reached some error');\n\t\t}\n\t}", "public function __construct(MessageService $service)\n {\n $this->service = $service;\n }", "function sendGenericMessage($recipientId) {\n}", "static function sendManServiceInterestedMail($user, $service) {\t\r\n\t\tif (!MAIL || !$user->isLoaded() || NULL === $service) return;\r\n\t\t\r\n\t\t$mailTemplate = new Art_Model_Email_Template(array(\r\n\t\t\t'name' => static::EMAIL_TEMPLATE_MAN_SERVICE_INTERTESTED)\r\n\t\t);\r\n\t\t\r\n\t\tif (!$mailTemplate->isLoaded()) return;\r\n\t\t\r\n\t\t$userData = $user->getData();\r\n\t\t$telephone = Helper_TBDev::getTelephoneForUser($user);\r\n\t\t$manager = Helper_TBDev::getManagerForUser($user);\r\n\t\t$body = Art_Model_Email_Template::replaceIdentities(array(\r\n\t\t\t\t'fullnameWithDegree' => $userData->fullnameWithDegree,\r\n\t\t\t\t'email' => $userData->email,\r\n\t\t\t\t'telephone' => $telephone\r\n\t\t\t),\r\n\t\t\t$mailTemplate->body\r\n\t\t);\r\n\t\t\r\n\t\tstatic::sendMailUsingTemplate($mailTemplate, $body, $manager->getData()->email);\r\n\t}", "public function sendRequest()\n {\n }", "function send_sms()\n\t{\n\t\t$config['functions']['send_sms'] = array('function' => 'Xmlrpc.rpc_send_sms');\n\t\t$this->xmlrpcs->initialize($config);\n\t\t$this->xmlrpcs->serve();\n\t}", "abstract public function send($data);", "public function index()\n {\n// $sms= $AT->sms();\n// $sms->send([\n// 'to' => '0704522671',\n// 'message' => 'It worked'\n//\n// ]);\n\n $smsJob = (new SendSmsJob())->delay(Carbon::now()->addSeconds(3));\n dispatch($smsJob);\n\n echo 'message sent';\n\n }", "public function serviceMail( Request $request ) {\n\t\t$this->validate( $request, [\n\t\t\t'service_id' => 'required|integer',\n\t\t\t'service' => 'required',\n\t\t\t'full_name' => 'required',\n\t\t\t'email' => 'required|email',\n\t\t\t'phone' => 'required',\n\t\t] );\n\t\t$mailto = SM::sm_get_site_email();\n\t\tMail::to( $mailto )\n\t\t ->queue( new ServiceMail( (object) $request->all() ) );\n\n\t\t$data['is_success'] = 1;\n\t\t$data['mailto'] = $mailto;\n\t\t$data['message'] = \"Service Mail Successfully Sent\";\n\n\t\treturn response()->json( $data );\n\t}", "function myServiceMethod ($request, $response)\n\t\t{\n $response->data['message'] = 'I received from you: ' . $request->data['message'];\n $response->data['success'] = 'true';\n\t\t}", "public function testShouldAllowToSendSms()\n\t {\n\t\tdefine(\"GNOKII_COMMAND\", \"sh \" . __DIR__ . \"/mock/mock.sh\");\n\t\tdefine(\"SMSC_NUMBER\", \"+79043490000\");\n\n\t\t$sender = new PhpGnokii();\n\t\t$this->assertTrue($sender->send(\"+79526191914\", \"test\"));\n\t }", "public function send($object, $to);", "public function send(string $address, int $amount)\n {\n }", "function send($mobile, $message);", "function sendSMS($client, $number, $message) {\r\n $client->messages->create(\r\n $number,\r\n array(\r\n \"from\" => \"+16474901643\",\r\n \"body\" => \"Reminder: \".$message\r\n )\r\n );\r\n}", "public function handleSendMessage() {\n\t\t$json = file_get_contents(\"php://input\"); //vytánutí všech dat z POST požadavku - data ve formátu JSON\n\t\t$data = Json::decode($json); //prijata zprava dekodovana z JSONu\n\t\t$user = $this->getPresenter()->getUser();\n\t\t$addMessage = $this->addMessage($data, $user);\n\t\tif (!empty($addMessage)) {\n\t\t\t$this->sendRefreshResponse($data->lastid);\n\t\t}\n\t}", "function send_sms($message,$to,$from=null){\n if($from && strlen($from)>11){\n $from = substr($from,0,11);\n }\n $url = $this->api_base_url.\"/messages?app_id=\".$this->app_id.\"&app_secret=\".base64_encode($this->app_secret);\n $data['to'] = $to; \n $data['from']= $from;\n $data['message'] = $message;\n\n $this->result = $this->send_request($url, \"POST\", [],$data, true);\n return ($this->result->success && $this->result->message==\"MESSAGE SENT.\");\n }", "public function send($destination, Message $message);", "public function giveService($key, $Service);", "public function sendMessage()\n {\n $userId = auth()->user()->id;\n\n // Save the message\n Message::create([\n 'room_id' => $this->roomId,\n 'user_id' => $userId,\n 'message' => $this->message,\n ]);\n\n // Remove the value of the message after saving\n $this->message = \"\";\n\n // Prompt the server that we sent a message\n $this->dispatchBrowserEvent('chat-send-message', [\n 'room_id' => $this->roomId,\n 'user_id' => $userId,\n ]);\n }", "function task_send_custom_message_to_group($message) {\n \n /**\n * Verify if the parameters are given as expected.\n */\n if(!isset($message) || empty($message)) {\n \n\n new Messenger(\"The '\\$message' parameter aren't defined.\");\n\n }\n\n require 'Tasks/send_custom_message_to_group/send_custom_message_to_group.php';\n\n }", "abstract public function send(?User $user = null): bool;", "public function SendSms($to, $message): bool\n {\n\n ini_set(\"soap.wsdl_cache_enabled\", \"0\");\n\n $sms_client = new \\SoapClient(\n 'http://api.payamak-panel.com/post/send.asmx?wsdl',\n array('encoding'=>'UTF-8'));\n\n $parameters['username'] = env('SMS_USERNAME');\n $parameters['password'] = env('SMS_PASSWORD');\n $parameters['to'] = $to ; //\"912...\";\n $parameters['from'] = env('SMS_NUMBER');;\n $parameters['text'] =$message;\n $parameters['isflash'] =false;\n\n\n return $sms_client->SendSimpleSMS2($parameters)->SendSimpleSMS2Result;\n\n }", "public function setService($service)\n\t{\n\t\t$this->service = ucfirst($service);\n\t}", "public function handle()\n {\n $this->service->send();\n }", "public function __call($service, $params) {\r\n if ($service == \"dispatch\") {\r\n $factory = ZendExt_Component_Factory::getInstance();\r\n $reflection = new ReflectionClass($this->who);\r\n $direccion = $reflection->getFileName();\r\n $claimantBundle = $factory::searchClaimantBundle($direccion);\r\n foreach ($claimantBundle->getListaSourceEvent() as $source) {\r\n if ($source->getId() == $params[0]) {\r\n unset($params[0]);\r\n $source->NotifyChange($params);\r\n break;\r\n }\r\n }\r\n }\r\n }", "function msgsrv_send ($target, $cmd, $content, $link) {}", "public function send(Message $notification);", "public function send() {\r\n\t\t\t$this->sent = true;\r\n\t\t}", "public function send($to, $message,$additional_params = [], $subject = null);", "protected function beforeSending()\n {\n }", "public function send(Service $service)\n {\n $hostname = $this->hostname;\n if (!is_null($service->getExtraGetVariables()))\n {\n $hostname .= '?' . $service->getExtraGetVariables();\n }\n\n curl_setopt($this->connection, CURLOPT_URL, $hostname);\n curl_setopt($this->connection, CURLOPT_POST, count($service->getData()));\n curl_setopt($this->connection, CURLOPT_POSTFIELDS, $service->getData());\n curl_setopt($this->connection, CURLOPT_RETURNTRANSFER, true);\n curl_setopt($this->connection, CURLOPT_SSL_VERIFYHOST, 0);\n curl_setopt($this->connection, CURLOPT_SSL_VERIFYPEER, 0);\n\n //execute post\n $this->result = curl_exec($this->connection);\n\n return $this;\n }", "public function send() {\n $options = array(\n 'headers' => array(\n 'Content-Type' => 'application/xml; charset=UTF8',\n ),\n 'body' => $this->buildMessage(),\n );\n\n try {\n $client = new Client();\n $response = $client->request('POST', $this->url, $options);\n\n if ($response->getStatusCode() == 204) {\n watchdog('ting_das', 'Service returned: !code', array('!code' => $response->getStatusCode()), WATCHDOG_ERROR);\n return TRUE;\n }\n }\n catch (GuzzleException $exception) {\n watchdog_exception('ting_das', $exception);\n }\n\n return FALSE;\n }", "public function client_send($data, $command = '')\n {\n }", "abstract public function service();", "public function sendPerformed (Swift_Events_SendEvent $evt)\n {\n // Nothing to do here..\n }", "public function allowMessage()\n {\n $this->_data['Mensaje'] = 1;\n }", "public function sendBasicMessage(User $user, string $message): void {\n broadcast(new ServerMessageEvent($user, $message));\n }", "public function create()\n {\n //\n $this->message->sendMessage();\n }", "public function sendRequest( ) {\n\n }", "function ts3client_requestSendPrivateTextMsg($serverConnectionHandlerID, $message, $targetClientID) {}", "public function writeMessage ()\n {\n $authObject = new Authenticate();\n $authObject->validateWriteMessage($_GET[\"controller\"]);\n \n $body = $_POST[\"body\"];\n $subject = $_POST[\"subject\"];\n \n $sentto = $_POST[\"sentto\"];\n \n $this->createUser();\n \n if (($this->_objUser->messageSend($body, $subject, $sentto)) == false) {\n $this->setCustomMessage(\"ErrorMessage\", \"Problem in sending message\");\n } else {\n $this->setCustomMessage(\"SuccessMessage\", \"Message sent successfully\");\n }\n }", "function SendMessage($message, $object, $id, $from_public = false);", "public function send()\n\t{\n\t\t$message = $this->message ?: ucwords($this->getSystemUser()).' ran the ['.$this->task.'] task.';\n\n\t\t$payload = ['text' => $message, 'channel' => $this->channel];\n\n Request::post(\"https://{$this->team}.slack.com/services/hooks/incoming-webhook?token={$this->token}\")->sendsJson()->body($payload)->send();\n\t}", "function evel_send($message, $recipients) {\n global $evel_client;\n $params = func_get_args();\n $result = $evel_client->call('EvEl.send', $params);\n return $result;\n}", "public function send($data){\n $this->cServ->send($data) ;\n $this->close() ;\n }", "public function sendMarketing()\n {\n }", "private function send_message($ch,$username,$apikey,$masking,$to,$message){ \n\n $vendor=isset($this->SETTINGS[$this->system_setting_m->_SMS_VENDOR]) ? $this->SETTINGS[$this->system_setting_m->_SMS_VENDOR] : '';\n $base_url=$this->get_vendor_base_url($vendor);\n switch (strtolower($vendor)) {\n case 'dotclick':{\n //default vendor is akspk\n $params=array('mobile'=>$username,'key'=>$apikey,'sender'=>$masking,'receiver'=>$to,'msgdata'=>$message);\n //validate api details\n $url=$base_url.'/api_sms/api.php';\n $response=$this->do_get_request($ch,$url,$params);\n return true;\n // if(strtolower($response)!='message sent'){return false;}\n\n }\n break;\n \n default:{\n //default vendor is akspk\n $params=array('mobile'=>$username,'apikey'=>$apikey,'mask'=>$masking,'to'=>$to,'message'=>$message);\n //validate api details\n $url=$base_url.'/api/sendsms';\n $response=$this->do_get_request($ch,$url,$params);\n if(strtolower($response)!='message sent'){return false;}\n }\n break;\n }\n /////////////////////////////////////////////////\n return true;\n }", "public function test_send_returnsSelf_ifNoService()\n\t{\n\t\t$request = new Request\\Get('http://x.x.x.x');\n\t\t\n\t\t$client = new Client();\n\t\t\n\t\t$this->assertSame($client, $client->send($request));\n\t\t\n\t\treturn;\t\n\t}" ]
[ "0.6725329", "0.6615635", "0.65639323", "0.65639323", "0.65639323", "0.65639323", "0.63741654", "0.63411707", "0.6309194", "0.6282253", "0.6234335", "0.6230952", "0.6188329", "0.6188329", "0.6188329", "0.61874425", "0.61874425", "0.61874425", "0.61874425", "0.61874425", "0.6141604", "0.6139846", "0.6113044", "0.6110092", "0.6110092", "0.6110092", "0.6110092", "0.6110092", "0.6110092", "0.6110092", "0.6110092", "0.6110092", "0.6110092", "0.6110092", "0.60735416", "0.60085326", "0.6004971", "0.59848976", "0.5939943", "0.5937561", "0.5934849", "0.59200686", "0.5901993", "0.58698976", "0.57135326", "0.5704349", "0.56888413", "0.5682366", "0.5677655", "0.5656862", "0.5655268", "0.56383115", "0.56379616", "0.5628281", "0.5615355", "0.56060076", "0.5602992", "0.55960023", "0.557483", "0.55635", "0.55613303", "0.5553049", "0.5546696", "0.5543392", "0.55385804", "0.55356026", "0.5533661", "0.5522834", "0.5499174", "0.54977024", "0.5490302", "0.54785305", "0.5466883", "0.54668045", "0.5465519", "0.54627234", "0.5453403", "0.5452619", "0.54479605", "0.54377335", "0.54303145", "0.54250187", "0.5423914", "0.5422044", "0.54059106", "0.5403125", "0.5402643", "0.5397393", "0.53884554", "0.5368489", "0.53650194", "0.5365014", "0.5361945", "0.53529394", "0.5345826", "0.5345089", "0.5335028", "0.53268", "0.53173107", "0.53133035" ]
0.6428408
6
Moves the cursor to the first (key,element) pair.
function rewind();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function _nextKey() {\n if ($this->_hasKey()) {\n array_splice($this->_keys, 0, 1);\n }\n }", "function rewind (){ $this->key = -1; }", "public function firstKey();", "public function rewind()\n {\n $this->currentKey = 0;\n }", "public function next() {\n $this->currentRow = $this->result->fetchObject();\n $this->currentKey = array();\n if (!is_object($this->currentRow)) {\n $this->currentRow = NULL;\n }\n else {\n foreach ($this->sourceKeyMap as $map_field) {\n $this->currentKey[$map_field] = $this->currentRow->$map_field;\n // Leave only destination fields\n unset($this->currentRow->$map_field);\n }\n }\n }", "public function seek($key) {\n\t\t$curr_key = $this->key();\n\t\tparent::seek($key);\n\t\t\n\t\tif($key != $curr_key)\n\t\t\t$this->_result->seek($key);\n\t}", "function array_set_current(array &$array, $key)\n {\n reset($array);\n while (current($array) !== false) {\n\n if (key($array) == $key) {\n break;\n }\n\n next($array);\n }\n return current($array);\n }", "public function first(): void\n {\n $this->index = 0;\n }", "public function testFirst()\n {\n $this->collection->seek(2);\n $this->collection->first();\n $this->assertEquals(0, $this->collection->key());\n $this->assertEquals(1, $this->collection->current());\n }", "public function moveFirst()\n {\n return $this->moveTo(1);\n }", "function MoveFirst() {}", "public function rewind()\n {\n $this->iCurrentKey = 0;\n $this->strCurrentValue = $this->strStart;\n }", "public function firstKey() {\n\t\t$keys = $this->keys();\n\t\treturn array_shift($keys);\n\t}", "public function first()\r\n {\r\n $this->index = 0;\r\n }", "public function first() {\n $this->index = 0;\n }", "public function rewind(): void\n {\n $this->key = 0;\n $this->current = $this->start;\n }", "public function first()\n {\n $this->cursor = 0;\n\n return $this->at($this->cursor);\n }", "function setCurrent(&$array, $key)\n\t{\n\t reset($array);\n\t while (current($array)!==FALSE){\n\t if (key($array) == $key) {\n\t break;\n\t }\n\t next($array);\n\t }\n\t return current($array);\n\t}", "public function rewind()\n {\n $this->key = 0;\n }", "public function rewind()\n {\n $this->key = 0;\n }", "public function rewind() {\n $this->_key = 0;\n }", "public function next(): void\n {\n ++$this->key;\n\n if ($this->next) {\n $this->current = $this->current->next();\n } else {\n $this->current = $this->current->previous();\n }\n }", "public function next()\n {\n $this->currentKey++;\n }", "function key()\n\t\t{\n\t\t\t$this->current();\n\t\t\treturn $this->offset;\n\t\t}", "function first()\n{\n\t$this->rewind();\n\treturn $this->current();\n}", "public function next(): void\n {\n if ($this->index < count($this->objectListKeys)) {\n $this->index++;\n }\n }", "public function next()\n {\n $this->key++;\n }", "public function next()\n {\n $this->key++;\n }", "public function next() {\n $this->_key++;\n }", "public function getAndRemoveFirstItem ();", "public function testKey()\n {\n $this->collection->seek(2);\n $this->assertEquals(2, $this->collection->key());\n\n $this->collection->seek('a');\n $this->assertEquals('a', $this->collection->key());\n }", "public function peekFirst();", "function moveNext() {\r\n\r\n $row = $this->result->fetchRow( MDB2_FETCHMODE_ASSOC );\r\n $this->EOF = !is_array( $row );\r\n $this->fields = $row;\r\n\r\n }", "public function first()\n {\n $this->rewind();\n return $this->current();\n }", "function MoveFirst() \n\t{\n\t\tif ($this->_currentRow == 0) return true;\n\t\treturn $this->Move(0);\t\t\t\n\t}", "public function shift()\n {\n reset($this->items);\n\n return $this->pull($this->key());\n }", "function MoveNext() {}", "public function key()\n {\n return $this->_currentIndex;\n }", "public function next(): void\n {\n $this->cursor++;\n }", "public function GoToStart()\n {\n reset($this->_items);\n $this->setItemPointer(0);\n }", "public function first()\n {\n return $this->values()->shift();\n }", "function key() {\r\n return $this->_position;\r\n }", "public function current()\n {\n $prev = null;\n if ($this->index > 0) {\n $prev = KeyValue::fromArray($this->keys[$this->index - 1], $this->array);\n }\n\n $current = KeyValue::fromArray($this->keys[$this->index], $this->array);\n\n $next = null;\n if ($this->index + 1 < count($this->keys)) {\n $next = KeyValue::fromArray($this->keys[$this->index + 1], $this->array);\n }\n\n return new KeyValueEscort($prev, $current, $next);\n }", "function rewind() {\n $this->resetKeys();\n $this->position = 0;\n }", "abstract public function start($key);", "public function moveKey($section, $element, $newSection){\n\t\t$_element = $this->getKey($section, $element);\n\t\t$this->rmKey($section, $element);\n\t\t$this->setKey($newSection, array($element => $_element));\n\t}", "public function first() {\n\t\t$result = $this->get_result();\n\n\t\treturn array_shift( $result );\n\t}", "function KeyFirstList ( )\n{\n if ( count($this->_dataset) > 0 ) {\n $n = $this->_CurrPtr;\n $this->FirstRecord();\n $this->_fetch_current_key_($this->_KeyFirstList);\n $this->_CurrPtr = $n;\n }\n return $this->_KeyFirstList;\n}", "public function next(): void\n {\n $this->position++;\n if (null === $this->generator || !$this->generator->valid()) {\n return;\n }\n\n if (contains_key($this->entries, $this->position + 1)) {\n return;\n }\n\n $this->progress();\n $this->saved = false;\n if ($this->generator) {\n $this->generator->next();\n }\n\n $this->progress();\n }", "public function rewind()\n {\n $this->current = ldap_first_entry($this->handle, $this->result);\n }", "public function first() {\n\t\treturn $this->valueForKey($this->firstKey());\n\t}", "final public function next(): void\n {\n $this->sort();\n\n next($this->index);\n }", "function key() \n {\n return $this->position;\n }", "public function next()\n\t{\n\t\t$this->pointer++;\n\t\t$this->row = $this->result->get($this->pointer);\n\t}", "public function next(): void {\n next($this->items);\n }", "public function firstKey()\n\t{\n\t\treturn $this->first()->key;\n\t}", "public function key()\n {\n return $this->current;\n }", "public function previous(): void\n {\n if ($this->cursor > 0) {\n $this->cursor--;\n }\n }", "public function first($key, $wrap = ':message')\n {\n $res = $this->get($key, $wrap);\n return array_shift($res);\n }", "public function next()\n {\n $this->cursor++;\n }", "public function next() {\n next($this->elements);\n $this->pointer++;\n }", "function key()\n {\n return $this->_position;\n }", "public function firstItem();", "public function next()\n {\n next($this->iterator_data);\n }", "public function next()\n {\n next($this->array);\n }", "function _first($ar){\n\treturn array_shift(array_values($ar));\t\n}", "public function shift() {\n\t\treturn $this->removeValueForKey($this->firstKey());\n\t}", "public function rewind()\n {\n $this->_previous = 1;\n $this->_current = 0;\n $this->_key = 0;\n }", "public function first()\n {\n return reset($this->_elements);\n }", "public function offsetSet($key, $element)\n {\n $this->elements[$key] = $element;\n $this->iteratorCount = count($this->elements);\n }", "public function rewind() {\n $this->currentRow = NULL;\n $fields = array();\n foreach ($this->sourceKeyMap as $field) {\n $fields[] = $field;\n }\n foreach ($this->destinationKeyMap as $field) {\n $fields[] = $field;\n }\n\n /* TODO\n if (isset($this->options['itemlimit'])) {\n $query = $query->range(0, $this->options['itemlimit']);\n }\n */\n $this->result = $this->connection->select($this->mapTable, 'map')\n ->fields('map', $fields)\n ->execute();\n $this->next();\n }", "public function next()\n {\n $current = $this->current();\n\n if ($current) {\n $this->current = $current->getAfter();\n }\n }", "public function key()\n {\n return $this->current();\n }", "public function firstKey(): ?int;", "function getFirstItem() { return $this->m_firstItem; }", "public function next(): void\n {\n next($this->array);\n }", "#[\\ReturnTypeWillChange]\n public function key()\n {\n return current($this->keys);\n }", "public function next() {\n $this->elementsObtained++;\n $lastElement = $this->current();\n try {\n // DEBUG: Comment In\n //if ($this->elementsObtained > 5 && $this->first)\n // throw new MongoDB\\Driver\\Exception\\RuntimeException(\"cursor id exception simulation\");\n // DEBUG: Comment In\n // We just try to get the next element\n $this->iterator->next();\n } catch (MongoDB\\Driver\\Exception\\RuntimeException $e) {\n if (strpos($e->getMessage(), \"cursor id\") !== FALSE) {\n // cursor id not found exception, let's mitigate\n $options = array();\n // no skip; we already skipped everything in the first iterator\n // limit if we have a limit; we adjust it with the elements obtained\n if ($this->originalLimit !== NULL)\n $options[\"limit\"] = $this->originalLimit - $this->elementsObtained;\n // sort we keep\n if ($this->originalSort !== NULL)\n $options[\"sort\"] = $this->originalSort;\n // Adjust the query so we start after the last obtained element\n $query = $this->queryAfterElement($this->query, $lastElement, $this->originalSort);\n // DEBUG: Comment In\n //var_dump($query);\n // DEBUG: Comment In\n $this->iterator = new IteratorIterator($this->collection->find($query, $options));\n $this->iterator->rewind();\n // We don't call next on the new iterator because it already \"has\" the first element\n // not first anymore\n $this->first = FALSE;\n } else {\n // something else; let's throw this right back at the caller\n throw $e;\n }\n }\n }", "public function current()\n\t{\n\t\treturn $this->_array[$this->_keys[$this->_idx]];\n\t}", "public function next()\n {\n $this->current = ($result = ldap_next_entry($this->handle, $this->current())) ? $result : null;\n }", "public function current() {\n if (isset($this->results[$this->cursor_offset])) {\n return $this->results[$this->cursor_offset];\n }\n return $this->results[$this->cursor_offset] = $this->fetch();\n }", "public function next()\n {\n next($this->_items);\n }", "public function key()\n \t{\n \t\treturn $this->getHandle()->current;\n \t}", "public function key() {\n return $this->currentIndex;\n }", "public function next()\n {\n $this->valid = (next($this->keys) !== false);\n }", "public function findFirstByKey($key);", "function current() {\n return $this->records[$this->key()];\n }", "public function nextAssoc();", "public function first()\n {\n return reset($this->items);\n }", "protected function first()\n {\n foreach ($this->sortable as $key => $value) {\n if (is_numeric($key)) {\n return $value;\n }\n\n return $key;\n }\n\n return null;\n }", "public function next()\n {\n next($this->values);\n }", "public function rewind()\n {\n if ($this->atStart)\n return;\n \n throw new Splunk_UnsupportedOperationException(\n 'Cannot rewind after reading past the first element.');\n }", "public function key()\n\t{\n\t\treturn $this->_position;\n\t}", "public function key() {\n\t\treturn( $this->_currentRow );\n\t}", "public function first()\r\n\t{\r\n\t\treturn reset($this->_items);\r\n\t}", "protected function realiseCurrentPair(): string\n {\n if ($this->generatorFormat == self::FORMAT_PHP) {\n $key = $this->lazyTail->key();\n $value = $this->lazyTail->current();\n } else {\n [$value, $key] = $this->lazyTail->current();\n }\n\n $safeKey = is_valid_key($key) ? $key : convert_to_key($key);\n\n $this->index[$safeKey] = $key;\n $this->array[$safeKey] = $value;\n\n return $safeKey;\n }", "public function current()\n {\n return $this->offsetGet($this->key());\n }", "public function move($key, $before)\n {\n $element = $this->offsetGet($key);\n\n if ($element) {\n $this->offsetUnset($key);\n\n if ($before) {\n $before = $this->offsetGet($before->getKey());\n $this->add($before, $element->getKey(), $element->getValue());\n } else {\n $this->unshift($element->getKey(), $element->getValue());\n }\n }\n }", "function current(){ \r\n\t return current($this->array); \r\n\t }", "public function first() {\n return reset($this->list);\n }", "public function MoveFirst()\r\n\t{\r\n\t\t$this->ResetError();\r\n\t\tif( !$this->Seek(0) )\r\n\t\t{\r\n\t\t\t$this->SetError();\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\t$this->activeRow = 0;\r\n\t\t\treturn true;\r\n\t\t}\r\n\t}" ]
[ "0.63178074", "0.5970266", "0.59451956", "0.58624923", "0.5854694", "0.5831123", "0.5758813", "0.5757115", "0.5738312", "0.5715023", "0.56845015", "0.56620085", "0.56258607", "0.56226826", "0.55952984", "0.5525295", "0.5524348", "0.5524139", "0.5512945", "0.5512945", "0.55091625", "0.5499767", "0.54706377", "0.54384655", "0.5433216", "0.5392307", "0.53844035", "0.53844035", "0.5344842", "0.5337519", "0.52785003", "0.52766615", "0.524802", "0.52313584", "0.52136046", "0.51861745", "0.5170323", "0.5130743", "0.51282173", "0.5101632", "0.509769", "0.508527", "0.5081618", "0.5081551", "0.5075324", "0.50691587", "0.5063855", "0.50616217", "0.5058536", "0.50519043", "0.5043991", "0.5015942", "0.50141746", "0.50094056", "0.49892962", "0.49558184", "0.49557304", "0.4953673", "0.49520376", "0.49441388", "0.4940804", "0.49349788", "0.49319297", "0.49303323", "0.49239406", "0.4917159", "0.49081647", "0.49077332", "0.49054137", "0.49001214", "0.48984373", "0.4895382", "0.48936227", "0.48894486", "0.48852068", "0.4883809", "0.48822248", "0.48754525", "0.4866554", "0.48632884", "0.48619932", "0.48585987", "0.48580942", "0.4849152", "0.4847745", "0.48449495", "0.482982", "0.4820855", "0.48177558", "0.48155853", "0.4812906", "0.4806094", "0.48060495", "0.48060167", "0.47986573", "0.47966784", "0.47964364", "0.47887313", "0.47881913", "0.47870722", "0.47849756" ]
0.0
-1
Check if the cursor is on a valid element.
function valid();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function valid()\n {\n if (isset($this->elements[$this->position]))\n {\n return true;\n }\n\n return false;\n }", "public function valid()\n {\n return ($this->position < $this->getDomList()->length);\n }", "public function valid()\n\t{\n\t\treturn isset($this->_elementNames[$this->__position]);\n\t}", "public function valid()\n {\n return ($this->currentElement !== NULL);\n }", "function valid() {\n return ($this->pos < $this->end);\n }", "function valid()\n {\n return $this->_position == 0 || $this->_curPage->getSize() > 0;\n }", "public function valid()\n\t\t{\n\t\t\treturn $this->current() !== false;\n\t\t}", "public function valid(): bool\n {\n return $this->current() !== false;\n }", "public function valid() {\n\t\treturn ($this->current() !== false);\n\t}", "public function valid()\n {\n return !is_null($this->current());\n }", "public function valid() \n {\n return ($this->current() !== false);\n }", "public function valid()\n {\n return (! is_null($this->current()));\n }", "public function valid()\n {\n return ($this->current() !== null) ? true : false;\n }", "public function valid()\n {\n return ($this->current() !== false);\n }", "public function valid() {\n return $this->pointer < count($this->items);\n }", "public function valid()\n {\n return ($this->current() != false);\n }", "public function valid()\n {\n if (is_null($this->current)) {\n return false;\n }\n\n return true;\n }", "public function valid()\n {\n // current() should return false. Needs to be tested.\n return (bool) $this->current();\n }", "public function valid(): bool\n {\n return ($this->current() !== false);\n }", "function valid() \n {\n return $this->offsetExists($this->position);\n }", "public function valid(): bool\n {\n return $this->selection->valid();\n }", "function dolValidElement($element)\n{\n\treturn (trim($element) != '');\n}", "function dolValidElement($element)\n{\n\treturn (trim($element) != '');\n}", "public function valid()\r\n\t{\r\n\t\treturn isset($this->elements[$this->i]);\r\n\t}", "public function valid(): bool\n {\n return isset($this->nodes[$this->pointer]);\n }", "public function valid(): bool\n {\n return null !== $this->_nextScrollId;\n }", "public function valid()\n\t{\n\t\treturn !($this->current === null || $this->current === false);\n\t}", "public function valid()\n {\n return (bool) $this->current();\n }", "public function valid()\n {\n return (bool) $this->current();\n }", "public function valid(): bool\n {\n return isset($this->collection[$this->position]);\n }", "public function valid() {\n\t\t\treturn isset( $this->stat_refs[ $this->position ] );\n\t\t}", "public function valid() : bool \n {\n return isset($this->list[$this->pointer]) ? \n ($this->list[$this->pointer]->valid() || $this->hasNext()) : false;\n }", "public function valid() {\n return !is_null($this->currentIndex);\n }", "public function hasCurElementId(){\n return $this->_has(1);\n }", "public function valid() {\r\n \tif ($this->__pageItems > 0) {\r\n \t\tif ($this->key() + 1 > $this->pageEnd()) {\r\n \t\t\treturn FALSE;\r\n \t\t} else {\r\n \t\t\treturn $this->current() !== FALSE;\r\n \t\t}\r\n \t} else {\r\n \t\treturn $this->current() !== FALSE;\r\n \t}\r\n }", "protected function validationElement($_element=NULL){\n $return=TRUE;\n if(\n $_element===NULL ||\n !($_element instanceof Dadiweb_Tags_Abstract)\n ){\n $return = FALSE;\n }\n if(\n $return ===TRUE &&\n NULL!==$_element->getValidators() &&\n is_array($_element->getValidators()) &&\n count($_element->getValidators())\n ){\n \n foreach($_element->getValidators() as $item){\n \n if(FALSE===($result=$item->isValid($this->{$_element->getName()}))){\n self::setNonValidElements($_element);\n }else{\n self::setValidElements($_element);\n }\n \n $return=(TRUE===$result && TRUE!==$return)?$return:$result;\n }\n }\n return $return;\n }", "public function valid() {\n\t\treturn isset($this->data[$this->position]);\n\t}", "function valid() {\r\n return isset($this->_data[$this->_position]);\r\n }", "public function isValid()\n\t{\n\t\tif ( !parent::isValid())\n\t\t{\n\t\t\treturn false;\n\t\t}\n\n\t\t// Return Break error\n\t\t$pattern = \"'<span id=\\\"sitemap404msg\\\">(.*?)<\\/span>'s\";\n\t\tpreg_match_all($pattern, $this->xmlContent, $matches);\n\n\t\tif( !empty($matches[1][0]) )\n\t\t{\n\t\t\t$errormsg = 'COM_COMMUNITY_VIDEOS_FETCHING_VIDEO_ERROR' . strip_tags( $matches[1][0] );\n\t\t\t$this->setError\t( JText::_($errormsg) );\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t}", "public function valid()\n {\n return isset($this->collection->getItems()[$this->position]);\n }", "public function preventsElementDisplay(): bool;", "public function valid(): bool\n {\n if (contains_key($this->entries, $this->position)) {\n return true;\n }\n\n if (null === $this->generator) {\n return false;\n }\n\n if ($this->generator->valid()) {\n return true;\n }\n\n $this->generator = null;\n return false;\n }", "public function valid() { \n\t\t$page = &$this->touchPage();\n\t\treturn (key($page) !== null);\n\t}", "public function valid()\n {\n return $this->currentLine !== false;\n }", "public function valid()\r\n {\r\n return (current($this->children) !== FALSE);\r\n }", "public function valid() {\n // TODO: Check numProcessed against itemlimit\n return !is_null($this->currentRow);\n }", "public function valid() {\n return false !== current($this->components);\n }", "public function valid()\n {\n return isset($this->list[$this->position]);\n }", "public function valid()\n {\n return $this->iteratorIndex < $this->iteratorCount;\n }", "public function valid()\n {\n return $this->index <= $this->length;\n }", "public function valid()\n {\n return isset($this->_annotations[$this->_position]);\n }", "public function valid()\n {\n return (false !== \\next($this->events)) ? current($this->events) : false;\n }", "public function valid() : bool\n {\n // dd($this->position >= 65 && $this->position <= 90);\n return $this->position >= 65 && $this->position <= 90;\n }", "public function isValidElement($element): bool\n {\n $elementClass = self::elementClass();\n return (is_object($element) && $element instanceof $elementClass);\n }", "public function valid(): bool\n {\n if ($this->next) {\n return $this->current->toInteger() <= $this->end->toInteger();\n }\n\n return $this->current->toInteger() >= $this->end->toInteger();\n }", "public function valid()\n {\n return key($this->entities) !== null;\n }", "public function valid() {\n\t\treturn (current($this->_data) !== false);\n\t}", "public function valid() {\n $key = key($this->elements);\n\n $element = ($key !== NULL && $key !== FALSE);\n\n return $element;\n }", "public function valid()\n {\n return $this->_position < ExcelCell::columnIndexFromString($this->_subject->getHighestColumn());\n }", "public function valid()\n {\n return isset($this->data[$this->position]);\n }", "public function valid()\n {\n return isset($this->data[$this->position]);\n }", "public function valid(): bool\n {\n return $this->_index < $this->_count;\n }", "public static function isValidElementContent($content)\r\n {\r\n return self::isValidElement($content) || self::isValidTextNodeContent($content);\r\n }", "public function isButtonValidHtmlSourceGivenExpectTrue() {}", "public function valid()\n {\n return !empty($this->_currentRow);\n }", "public function isValid()\n {\n return $this->pos < strlen($this->buffer);\n }", "public function valid(): bool\n {\n return isset($this->intervals[$this->position]);\n }", "function valid() {\n if (isset($this->keys[$this->position])) {\n return $this->__isset($this->keys[$this->position]);\n }\n return false;\n }", "public function valid()\n {\n if (!parent::valid()) {\n return false;\n }\n\n $allowedValues = $this->getRelativeHorizontalPositionAllowableValues();\n if (!in_array($this->container['relative_horizontal_position'], $allowedValues)) {\n return false;\n }\n\n $allowedValues = $this->getRelativeVerticalPositionAllowableValues();\n if (!in_array($this->container['relative_vertical_position'], $allowedValues)) {\n return false;\n }\n\n $allowedValues = $this->getWrapTypeAllowableValues();\n if (!in_array($this->container['wrap_type'], $allowedValues)) {\n return false;\n }\n\n\n return true;\n }", "public function valid()\n {\n return isset($this->bricks[$this->position]);\n }", "public function valid(): bool\n {\n return (current($this->items) !== false);\n }", "public function valid()\n {\n return $this->_index < $this->count();\n }", "public function valid()\n\t{\n\t\treturn $this->row !== NULL;\n\t}", "public function valid(): bool\n {\n $this->_current = $this->fetch();\n $valid = $this->_current !== false;\n\n if (!$valid && $this->statement !== null) {\n $this->statement->closeCursor();\n }\n\n return $valid;\n }", "function valid()\n\t{\n\t\treturn $this->iterator->valid();\n\t}", "function check_element_validity($key,$opt){\n\n if (preg_match(STARTCHARRGX, $key) === 1 ) { //check first character\n preg_match(STARTCHARRGX,$key,$matches);\n if ($matches[0] == \"_\") {\n return false;\n }\n return true;\n }\n if ( preg_match(INVALIDCHARSRGX, $key) === 1) { //check other chars validity\n return true;\n }\n return false;\n }", "public function valid()\n {\n return isset($this->keys[$this->pointer]);\n }", "public function elementIsVisible($arg) {\n $el = $this->getSession()->getPage()->find('css', $arg);\n if($el) {\n if(!$el->isVisible()){\n throw new Exception('Element is not visible');\n }\n } else {\n throw new Exception('Element not found');\n }\n }", "public function valid()\n {\n\n if ($this->container['is_empty'] === null) {\n return false;\n }\n if ($this->container['use_autocomplete'] === null) {\n return false;\n }\n return true;\n }", "public function valid()\n {\n if ($this->container['type_of_barcode'] === null) {\n return false;\n }\n if ($this->container['text'] === null) {\n return false;\n }\n return true;\n }", "public function isButtonValidInvalidButtonGivenExpectFalse() {}", "public function valid()\n {\n return isset($this->current_scrolled_response['hits']['hits'][0]);\n }", "public function valid() {\n\t\t$this->checkResultSet();\n\n\t\tif ($this->index >= 0 && $this->index < $this->indexMax) {\n\t\t\treturn true;\n\t\t}\n\n\t\treturn false;\n\t}", "public function valid() { return isset($this->keys[$this->pos]);\n }", "public function valid () {\n return (FALSE !== current ($this->varContainer));\n }", "public function isElements() {}", "public function isValidNode();", "public function valid()\n {\n return $this->_position <= $this->_subject->getHighestRow();\n }", "public function valid() {\n\t\t// Init the recordset if needed.\n\t\t$this->initRecordSet();\n\t\t// Is current position valid?\n\t\treturn ((!$this->recordSet->EOF) and $this->currentIndex < $this->recordSet->RecordCount() );\n\t}", "public function validateElement() {\r\n if (!$this->object->validate()) {\r\n /** @var modValidator $validator */\r\n $validator = $this->object->getValidator();\r\n if ($validator->hasMessages()) {\r\n foreach ($validator->getMessages() as $message) {\r\n $this->addFieldError($message['field'], $this->modx->lexicon($message['message']));\r\n }\r\n }\r\n }\r\n }", "public function valid()\n {\n if (($this->isvalid) and (!librdf_iterator_end($this->iterator))) {\n return true;\n } else {\n return false;\n }\n }", "abstract public function valid();", "public function valid(): bool\n {\n return isset($this->parameters[$this->position]);\n }", "public function valid()\n {\n return $this->offsetExists($this->key());\n }", "public function valid()\n {\n return (current($this->objects) !== false);\n }", "public function valid()\n {\n if (!parent::valid()) {\n return false;\n }\n\n $allowedValues = $this->getStyleIdentifierAllowableValues();\n if (!in_array($this->container['style_identifier'], $allowedValues)) {\n return false;\n }\n\n $allowedValues = $this->getTextEffectAllowableValues();\n if (!in_array($this->container['text_effect'], $allowedValues)) {\n return false;\n }\n\n $allowedValues = $this->getUnderlineAllowableValues();\n if (!in_array($this->container['underline'], $allowedValues)) {\n return false;\n }\n\n\n return true;\n }", "public function theElementShouldBeVisible($element): void\n {\n $displayedNode = $this->getSession()->getPage()->find('css', $element);\n if ($displayedNode === null) {\n throw new \\Exception(\"The element '$element' was not found anywhere in the page\");\n }\n\n $message = \"The element '$element' is not visible\";\n $this->assertTrue($displayedNode->isVisible(), $message);\n }", "public function valid()\n {\n\n if ($this->container['lob_id'] === null) {\n return false;\n }\n return true;\n }", "public function valid()\n {\n $key = key($this->container);\n\n return ($key !== null && $key !== false);\n }", "public function valid() {\n\t\treturn (\n\t\t\t(isset($this->firstItems[$this->firstItemIdx])) ||\n\t\t\t(($this->endItemIdx !== null) && isset($this->lastItems[$this->endItemIdx])) ||\n\t\t\t$this->items->valid()\n\t\t);\n\t}", "public function valid()\n {\n\n if ($this->container['template'] === null) {\n return false;\n }\n return true;\n }" ]
[ "0.68799293", "0.68143797", "0.6609226", "0.6523341", "0.6365025", "0.6249499", "0.62480843", "0.62282324", "0.62214965", "0.6164572", "0.61580014", "0.6136651", "0.61364233", "0.6133429", "0.61283433", "0.6102031", "0.60988426", "0.6087529", "0.60824853", "0.6075766", "0.6034863", "0.6021899", "0.6021899", "0.60039103", "0.6001667", "0.5972485", "0.5959703", "0.59434277", "0.5935122", "0.5920157", "0.59161806", "0.59153306", "0.59103614", "0.57652384", "0.5758454", "0.57168275", "0.5695197", "0.5677356", "0.56657946", "0.56612694", "0.56520104", "0.5645701", "0.5627318", "0.56196046", "0.56187147", "0.5607586", "0.5606706", "0.56030804", "0.5591912", "0.55879974", "0.5574768", "0.55700934", "0.5560905", "0.55572844", "0.55449647", "0.55265236", "0.5523193", "0.5520252", "0.5518902", "0.5500178", "0.5500178", "0.54963416", "0.5491617", "0.5488954", "0.54843676", "0.54819405", "0.54775476", "0.54717195", "0.54702455", "0.5465847", "0.5438607", "0.5435877", "0.5434234", "0.5433405", "0.54269135", "0.54148513", "0.5408522", "0.5407244", "0.5392591", "0.5384599", "0.53632975", "0.5361791", "0.533858", "0.53358555", "0.5322372", "0.5320401", "0.5314579", "0.5308311", "0.5298258", "0.52901185", "0.5286449", "0.52820855", "0.52758616", "0.5273804", "0.5271959", "0.5271754", "0.52546656", "0.5252273", "0.52478635", "0.5246328", "0.5243078" ]
0.0
-1
Returns the key of the current (key,element) pair under the cursor. Prerequisite: the cursor must be over a valid element, or the behaviour is unspecified; implementations may throw an unchecked exception to help debugging programs.
function key();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function key()\n {\n $current = $this->current();\n\n return is_null($current) ? null : $current->getKey();\n }", "public function key()\n {\n Psl\\invariant($this->valid(), 'The Iterator is invalid.');\n if (!contains_key($this->entries, $this->position)) {\n $this->progress();\n }\n\n return $this->entries[$this->position][0];\n }", "public function key()\n {\n return $this->current;\n }", "public function key()\n {\n return $this->getKey($this->getCursor());\n }", "public function key()\n {\n return $this->current();\n }", "public function key() {\n\t\tif(($this->endItemIdx !== null) && isset($this->lastItems[$this->endItemIdx])) {\n\t\t\treturn $this->lastItems[$this->endItemIdx][0];\n\t\t} else if(isset($this->firstItems[$this->firstItemIdx])) {\n\t\t\treturn $this->firstItems[$this->firstItemIdx][0];\n\t\t} else {\n\t\t\treturn $this->items->current()->{$this->keyField};\n\t\t}\n\t}", "public function key()\n {\n return ($current = $this->current()) !== false ? $current->getDn() : null;\n }", "function key()\n\t\t{\n\t\t\t$this->current();\n\t\t\treturn $this->offset;\n\t\t}", "public function key() {\n return $this->iteratorKeys[$this->iteratorPosition];\n }", "public function key() {\n return $this->keys[$this->pos];\n }", "public function key()\n \t{\n \t\treturn $this->getHandle()->current;\n \t}", "function key() {\n return $this->keys[$this->position];\n }", "public function key()\n {\n return $this->keys[$this->pointer];\n }", "public function key()\n {\n return $this->_currentIndex;\n }", "public function key() {\n return $this->currentIndex;\n }", "public function key()\n {\n return $this->_currentKey;\n }", "public function key()\n {\n return $this->currentKey;\n }", "function key()\n {\n $current = $this->getInnerIterator()->current();\n\n if (!is_scalar($current)) {\n return (string) $current;\n }\n\n return $current;\n }", "public function getKey($cursor)\n {\n $this->calculateKeyMap();\n if (!array_key_exists($cursor, $this->keyMap)) {\n return null;\n }\n\n return $this->keyMap[ $cursor ];\n }", "public function key()\n\t{\n\t\treturn $this->pointer;\n\t}", "public function key()\n\t{\n\t\treturn $this->_position;\n\t}", "public function key()\n {\n if (isset($this->list[$this->pointer])) {\n return $this->list[$this->pointer]->key();\n }\n\n throw new OutOfRangeException(\"Pointer is out of range\");\n }", "public function key()\n\t{\n\t\treturn $this->__position;\n\t}", "public function key()\n {\n return $this->keys[$this->iterator];\n }", "public function key()\n {\n return $this->current_key;\n }", "public function key() {\n $element = key($this->elements);\n\n return $element;\n }", "public function key() {\r\n\t\treturn $this->position;\r\n\t}", "public function key() {\n\t\treturn( $this->_currentRow );\n\t}", "public function key() {\n\t\treturn $this->position;\n\t}", "public function key() {\n\t\treturn $this->position;\n\t}", "public function key() {\n\t\treturn $this->position;\n\t}", "public function key()\n\t{\n\t\treturn $this->_keys[$this->_idx];\n\t}", "public function key() {\n\n\t\t\treturn $this->position;\n\t\t}", "public function key()\n {\n return $this->_position;\n }", "public function key() {\n $key = key($this->elements);\n return $key;\n }", "function key() {\r\n return $this->_position;\r\n }", "function key()\n {\n return $this->_position;\n }", "public function key()\n {\n return $this->pointer;\n }", "public function key()\n {\n return $this->pointer;\n }", "#[\\ReturnTypeWillChange]\n public function key()\n {\n return current($this->keys);\n }", "public function key()\n {\n return current($this->keys);\n }", "public function key()\n {\n return key($this->_elements);\n }", "public function key() {\n return $this->iterator->key();\n }", "public function key()\n {\n return $this->position;\n }", "public function key()\n {\n return $this->position;\n }", "public function key()\n {\n return $this->position;\n }", "public function key()\n {\n return $this->position;\n }", "public function key()\n {\n return $this->position;\n }", "public function key()\n {\n return $this->position;\n }", "public function key()\n {\n return $this->position;\n }", "public function key()\n {\n return $this->position;\n }", "public function key()\n {\n return $this->position;\n }", "public function key()\n {\n return $this->position;\n }", "public function key()\n {\n return $this->position;\n }", "public function key()\n {\n return $this->iterator->key();\n }", "public function key() {\n return $this->position;\n }", "public function key() {\n return $this->keys[$this->index];\n }", "function key() \n {\n return $this->position;\n }", "public function key()\n {\n return $this->keys[$this->index];\n }", "public function key ()\n {\n return $this->valid() ? $this->cache[ $this->offset ][ 0 ] : NULL;\n }", "function key() {\r\n return $this->i >= 0 ? $this->i : NULL;\r\n }", "public function key()\r\n\t{\r\n\t\treturn $this->elements[$this->i]->get($this->obj->primaryKey);\r\n\t}", "public function key()\n {\n return key($this->elements);\n }", "public function key()\n {\n return $this->selection->key();\n }", "public function key() {\n\t\t$this->checkResultSet();\n\n\t\tif (! is_null($this->keyColumn)) {\n\t\t\t$row = $this->fetchRowAssoc($this->index, true);\n\t\t\treturn $row[$this->keyColumn];\n\t\t}\n\n\t\treturn $this->index;\n\t}", "public function key()\n\t{\n\t\treturn $this->grid->getDataset()->getKeyByIndex($this->c);\n\t}", "protected function key()\n {\n $value = $this->keyVal();\n return key($value);\n }", "public function key()\n {\n return key($this->iterator_data);\n }", "public function key()\n {\n return key($this->bricks[$this->position]);\n }", "public function getKey() {\n\t\treturn $this -> key;\n\t}", "public function key()\n {\n return $this->current[$this->dataStore->getIdentifier()];\n }", "public function key()\n {\n return $this->_currentRowNumber;\n }", "public function firstKey()\n\t{\n\t\treturn $this->first()->key;\n\t}", "public static function getKey();", "public static function getKey();", "public function key ()\n {\n return $this->offset;\n }", "public function key(): int\n {\n return $this->position;\n }", "public function key(): int\n {\n return $this->position;\n }", "public function key(): int\n {\n return $this->position;\n }", "public function key(): int\n {\n return $this->pointer;\n }", "public function key()\n {\n return $this->offset;\n }", "public function key()\n {\n if(is_null($this->paginationVar))\n return 0;\n return $this->curIndex + $this->paginationVar->GetOffset();\n }", "public function key() {\n\t\treturn key( $this->touchPage() )+$this->booksPerPage*($this->currentPage - 1);\n\t}", "function key()\n\t{\n\t\treturn $this->index;\n\t}", "public function key()\n\t{\n\t\treturn $this->index;\n\t}", "public function key()\n\t{\n\t\treturn $this->index;\n\t}", "#[\\ReturnTypeWillChange]\n public function key()\n {\n return key($this->items);\n }", "public function key()\n\t{\n\t\t$pageSize = $this->_dataProvider->getPagination()->getPageSize();\n\t\treturn $this->_currentPage * $pageSize + $this->_currentIndex;\n\t}", "final public function key(): string\n {\n $this->sort();\n\n return (string) key($this->index);\n }", "public function key() : int\n {\n return $this->currentRecordPos - ($this->pageSize * ($this->currentPagePos-1));\n }", "public function key()\n {\n return key($this->_items);\n }", "public function key()\n {\n if ($this->list === null)\n $this->rewind();\n $row = key($this->list);\n return $row;\n }", "public function getKey() {\n return sprintf('%d:%d', $this->row, $this->column);\n }", "#[\\ReturnTypeWillChange]\n public function key()\n {\n return key($this->_items);\n }", "public function key() {\n\t\t\treturn $this->index;\n\t\t}", "public function key()\n {\n return $this->k;\n }", "public function getKey();", "public function getKey();", "public function getKey();", "public function getKey();", "public function getKey();" ]
[ "0.753944", "0.7498053", "0.7455197", "0.74354184", "0.7386952", "0.7287376", "0.7259646", "0.72440195", "0.7223658", "0.72104764", "0.72042567", "0.716314", "0.71607965", "0.7139556", "0.7118149", "0.7115526", "0.7115036", "0.7089768", "0.70846266", "0.7071765", "0.70603335", "0.7042701", "0.7035353", "0.7028924", "0.7017388", "0.6964755", "0.69508505", "0.693255", "0.69273764", "0.69273764", "0.69273764", "0.6913668", "0.6912018", "0.685734", "0.68492573", "0.68406874", "0.6833988", "0.6825797", "0.6825797", "0.6810387", "0.6799166", "0.677513", "0.67728144", "0.67726934", "0.67726934", "0.67726934", "0.67726934", "0.67726934", "0.67726934", "0.67726934", "0.67726934", "0.67726934", "0.67726934", "0.67726934", "0.6768316", "0.67589134", "0.67095155", "0.6709166", "0.6702574", "0.6696236", "0.6686957", "0.6682078", "0.6680294", "0.66775733", "0.66750216", "0.6624598", "0.66132975", "0.65369433", "0.6535017", "0.6507558", "0.64975923", "0.64700186", "0.6460626", "0.6458662", "0.6458662", "0.6444095", "0.6437643", "0.6437643", "0.6437643", "0.6433111", "0.6410773", "0.6408109", "0.6398998", "0.6397094", "0.6382032", "0.6382032", "0.63760936", "0.637561", "0.63642323", "0.63626945", "0.63532615", "0.6351847", "0.63496673", "0.6347101", "0.63438165", "0.632925", "0.6317536", "0.6317536", "0.6317536", "0.6317536", "0.6317536" ]
0.0
-1
Returns the element of the current (key,element) pair under the cursor. Prerequisite: the cursor must be over a valid element, or the behaviour is unspecified; implementations may throw an unchecked exception to help debugging programs.
function current();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function current()\n\t{\n\t\t$name = $this->_elementNames[$this->__position];\n\t\treturn $this->get($name);\n\t}", "public function current()\n {\n return $this->collection->offsetGet($this->getKey($this->getCursor()));\n }", "public function current()\n {\n return $this->offsetGet($this->key());\n }", "public function current()\n {\n return $this->items[$this->k];\n }", "#[\\ReturnTypeWillChange]\n public function current()\n {\n return $this->collection->offsetGet($this->key());\n }", "public function current()\n {\n return $this->elements[$this->position];\n }", "public function current()\n\t{\n\t\treturn $this->_array[$this->_keys[$this->_idx]];\n\t}", "function current()\n\t{\n\t\treturn $this->get($this->pos);\n\t}", "public function current()\n {\n return $this->array[$this->key()];\n }", "public function current()\n {\n return $this->map[$this->key()];\n }", "public function current() {\n return $this->data[$this->key()];\n }", "public function current() {\n return $this->_data[$this->_key];\n }", "public function current() {\n return $this->data[$this->key()];\n }", "public function current() {\n return $this->array[$this->keys[$this->index]];\n }", "function current() \n {\n // TODO wrap this;\n return $this->offsetGet($this->position);\n }", "public function current()\n {\n Psl\\invariant($this->valid(), 'The Iterator is invalid.');\n if (!contains_key($this->entries, $this->position)) {\n $this->progress();\n }\n\n return $this->entries[$this->position][1];\n }", "public function current()\r\n\t{\r\n\t\treturn $this->elements[$this->i];\r\n\t}", "public function current(): mixed\n {\n if (-1 == $this->getItemPointer() && count($this->_items) > 0) {\n $this->setItemPointer(0);\n }\n if (is_null($this->_items[$this->getItemPointer()])) {\n trigger_error('NULL object in iterator NOT ALLOWED!', E_USER_WARNING);\n }\n\n return $this->_items[$this->getItemPointer()];\n }", "public function current() {\n $element = current($this->elements);\n return $element;\n }", "function current() {\n return $this->records[$this->key()];\n }", "public function current() {\n $element = current($this->elements);\n\n return $element;\n }", "public function current()\n {\n return $this->collection->getItems()[$this->position];\n }", "public function current() {\n\t\treturn $this->data[$this->position];\n\t}", "public function current()\n\t{\n\t\treturn $this->_items[$this->_currentIndex];\n\t}", "function current() {\n return $this->iterators->valid() ?\n $this->getInnerIterator()->current() : NULL;\n }", "public function current()\n {\n $prev = null;\n if ($this->index > 0) {\n $prev = KeyValue::fromArray($this->keys[$this->index - 1], $this->array);\n }\n\n $current = KeyValue::fromArray($this->keys[$this->index], $this->array);\n\n $next = null;\n if ($this->index + 1 < count($this->keys)) {\n $next = KeyValue::fromArray($this->keys[$this->index + 1], $this->array);\n }\n\n return new KeyValueEscort($prev, $current, $next);\n }", "public function current()\n {\n return $this->valid() ? $this->cache[ $this->offset ][ 1 ] : NULL;\n }", "function key()\n\t\t{\n\t\t\t$this->current();\n\t\t\treturn $this->offset;\n\t\t}", "public function current()\n {\n if (!is_null($this->current) && isset($this->results[$this->current])) {\n return $this->results[$this->current];\n } else {\n return null;\n }\n }", "public function current()\n {\n return $this->getItem($this->position);\n }", "public function current() {\n return $this->currentElem;\n }", "public function key()\n {\n Psl\\invariant($this->valid(), 'The Iterator is invalid.');\n if (!contains_key($this->entries, $this->position)) {\n $this->progress();\n }\n\n return $this->entries[$this->position][0];\n }", "public function current() {\n if (isset($this->results[$this->cursor_offset])) {\n return $this->results[$this->cursor_offset];\n }\n return $this->results[$this->cursor_offset] = $this->fetch();\n }", "public function current()\n {\n return $this->list[$this->position];\n }", "public function current()\n {\n return current($this->_elements);\n }", "public function current()\n {\n return $this->data[$this->position];\n }", "public function getEntry()\n {\n return $this->current();\n }", "public function key()\n \t{\n \t\treturn $this->getHandle()->current;\n \t}", "public function peek() {\n if (empty($this->_elements)) return NULL; else return $this->_elements[0];\n }", "public function current()\n {\n return $this->activeValue[$this->position];\n }", "public function current()\n {\n return current($this->elements);\n }", "public function key()\n {\n return $this->current;\n }", "public function current() {\n\t\treturn $this->offsetGet($this->currentIndex);\n\t}", "public function current()\n {\n if (! $this->getStorage()->offsetExists($this->position)) {\n\n $adapter = $this->getFactory()->getResultAdapter($this->resultAdapter, $this->getDomList()->item($this->position));\n\n $resultClass = $this->getResultClass();\n $result = new $resultClass($adapter);\n\n $this->getStorage()->offsetSet($this->position, $result);\n }\n return $this->getStorage()->offsetGet($this->position);\n }", "public function getKey($cursor)\n {\n $this->calculateKeyMap();\n if (!array_key_exists($cursor, $this->keyMap)) {\n return null;\n }\n\n return $this->keyMap[ $cursor ];\n }", "public function current()\n {\n return $this->mappers->get($this->key());\n }", "public function current()\n {\n return $this->getRow($this->pointer);\n }", "public function current() {\n\t\treturn current($this->_aSet);\n\t}", "public function current() {\n $key = $this->iteratorKeys[$this->iteratorPosition];\n return $this->mapping['properties'][$key];\n }", "public function key()\n {\n return $this->current();\n }", "public function current() \n {\n if (isset($this->list[$this->pointer])) {\n return $this->list[$this->pointer]->current();\n }\n\n throw new OutOfRangeException(\"Pointer is out of range\");\n }", "public function current() {\n\t\t$this->checkResultSet();\n\t\treturn $this->fetchRowAssoc($this->index, true);\n\t}", "function current() {\r\n return $this->list[$this->index];\r\n }", "public function getOne()\n\t{\n\t\tif ($this->count() > 0)\n\t\t{\n\t\t\t$this->seek(0);\n\t\t\treturn $this->current();\n\t\t} else\n\t\t\treturn null;\n\t}", "public function current()\n {\n $map = $this->__getSerialisablePropertyMap();\n $mapKeys = array_keys($map);\n return $map[$mapKeys[$this->iteratorPosition]];\n }", "public function key()\n {\n return ($current = $this->current()) !== false ? $current->getDn() : null;\n }", "public function getCurrent($key)\n\t{\n\t\tif (in_array($key, $this->_keys))\n\t\t{\n\t\t\treturn $this->_current[$key];\n\t\t}\n\t\t\n\t\treturn null;\n\t}", "function current()\n\t{\n\t\tif (isset($this->objects[$this->keys[$this->index]]))\n\t\t\treturn $this->objects[$this->keys[$this->index]];\n\t\telse\n\t\t\treturn false;\n\t}", "public function current() {\n return $this->iterator->current();\n }", "public function current()\n {\n return $this->iterator->current();\n }", "public function current()\n {\n return $this->offsetGet($this->index);\n }", "public function current() {\n\t\treturn current($this->_value);\n\t}", "public function first()\n {\n $this->cursor = 0;\n\n return $this->at($this->cursor);\n }", "public function current() {\n\t\tif(($this->endItemIdx !== null) && isset($this->lastItems[$this->endItemIdx])) {\n\t\t\treturn $this->lastItems[$this->endItemIdx][1];\n\t\t} else if(isset($this->firstItems[$this->firstItemIdx])) {\n\t\t\treturn $this->firstItems[$this->firstItemIdx][1];\n\t\t} else {\n\t\t\tif($this->items->current()->hasMethod($this->titleField)) {\n\t\t\t\treturn $this->items->current()->{$this->titleField}();\n\t\t\t}\n\n\t\t\treturn $this->items->current()->{$this->titleField};\n\t\t}\n\t}", "public function current()\n {\n return $this->records[$this->position];\n }", "public function current()\n {\n return $this->getItem($this->getCurrentIndex());\n }", "public function key() {\n\t\tif(($this->endItemIdx !== null) && isset($this->lastItems[$this->endItemIdx])) {\n\t\t\treturn $this->lastItems[$this->endItemIdx][0];\n\t\t} else if(isset($this->firstItems[$this->firstItemIdx])) {\n\t\t\treturn $this->firstItems[$this->firstItemIdx][0];\n\t\t} else {\n\t\t\treturn $this->items->current()->{$this->keyField};\n\t\t}\n\t}", "public function key()\n {\n return $this->getKey($this->getCursor());\n }", "public function first()\n {\n $this->rewind();\n return $this->current();\n }", "public function key()\n {\n return $this->_currentIndex;\n }", "public function current() {\n\t\treturn $this->_dataobjects[$this->_pointer];\n\t}", "function first()\n{\n\t$this->rewind();\n\treturn $this->current();\n}", "public function current(): mixed {\n return current($this->items);\n }", "public function current()\n {\n return current($this->iterator_data);\n }", "public function key() {\n return $this->keys[$this->pos];\n }", "function key() {\n return $this->keys[$this->position];\n }", "#[\\ReturnTypeWillChange]\n public function current()\n {\n return $this->currentRecordSet[$this->key()];\n }", "public function current() {\n\t\treturn current($this->array);\n\t}", "public function current()\n\t{\n\t\treturn $this->current;\n\t}", "function current ($key)\n {\n return static::$_current[$key];\n }", "public function key()\n {\n $current = $this->current();\n\n return is_null($current) ? null : $current->getKey();\n }", "public function getElement();", "public function getElement();", "public function get($key) \r\n {\r\n if (is_null($key))\r\n {\r\n throw new ArgumentNullException(\"key is null.\");\r\n }\r\n return $this->elements[$key];\r\n }", "public function current()\n {\n return $this->_row;\n }", "public function getCurrent()\n {\n return $this->cur;\n }", "public function getElement()\n {\n if ($this->element_id != 0) {\n return $this->getTable('Element')->find($this->element_id);\n }\n }", "public function current()\n {\n return $this->currentElement;\n }", "public function current()\n {\n return current($this->entities);\n }", "public function current()\n\t{\n\t\treturn $this->row;\n\t}", "function key()\n {\n $current = $this->getInnerIterator()->current();\n\n if (!is_scalar($current)) {\n return (string) $current;\n }\n\n return $current;\n }", "public function current()\n {\n return current($this->array);\n }", "public function current()\n {\n return current($this->array);\n }", "public function current()\n {\n return current($this->_items);\n }", "public function nextItem() {\n\t\treturn $this->next()->current();\n\t}", "public function current()\n {\n return $this->_current;\n }", "public function current()\n {\n return $this->_current;\n }", "public function current()\n {\n return $this->_current;\n }", "public function current()\n {\n if ($this->list === null)\n $this->rewind();\n $row = current($this->list);\n return $row;\n }", "public function current()\n {\n\t\treturn current($this->_data);\n\t}", "protected function getCurrent($key)\n {\n if (isset($this->current[$key])) {\n return $this->current[$key];\n }\n return null;\n }" ]
[ "0.7000492", "0.69502574", "0.6859093", "0.68116564", "0.6774951", "0.67434156", "0.66892093", "0.6659115", "0.6656839", "0.664411", "0.66232145", "0.66084445", "0.65891343", "0.6568677", "0.6557492", "0.65332794", "0.65108246", "0.6451404", "0.6444339", "0.64229035", "0.6404804", "0.6358529", "0.63379586", "0.6326297", "0.63262475", "0.63255614", "0.6316109", "0.6313496", "0.63059783", "0.6304103", "0.6290074", "0.6280126", "0.62733346", "0.6268305", "0.6246079", "0.62456656", "0.62340695", "0.6212134", "0.6206835", "0.62004644", "0.6191277", "0.61789477", "0.61705536", "0.61698353", "0.61652535", "0.6158053", "0.61325914", "0.61279196", "0.6127067", "0.6126571", "0.612311", "0.61129445", "0.61090726", "0.6097994", "0.60772115", "0.60566956", "0.60539764", "0.6042148", "0.6034563", "0.60233843", "0.6022261", "0.60213256", "0.6020864", "0.60104245", "0.60101515", "0.6001362", "0.6000102", "0.5985255", "0.5984445", "0.59775937", "0.5964467", "0.5964172", "0.59416586", "0.5941321", "0.59398836", "0.59367293", "0.5925322", "0.5901146", "0.58965904", "0.5894745", "0.5892568", "0.5884224", "0.5884224", "0.58762634", "0.58616394", "0.585387", "0.5851657", "0.58504444", "0.58238477", "0.582175", "0.5820534", "0.5816823", "0.5816823", "0.5816592", "0.58158714", "0.58102375", "0.58102375", "0.58102375", "0.5809513", "0.57988286", "0.57935023" ]
0.0
-1
Move the cursor to the next (key,element) pair, if any. If the cursor is already beyond the last pair, does nothing.
function next();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function next()\n {\n $this->currentKey++;\n }", "public function next(): void\n {\n if ($this->index < count($this->objectListKeys)) {\n $this->index++;\n }\n }", "public function next(): void\n {\n $this->position++;\n if (null === $this->generator || !$this->generator->valid()) {\n return;\n }\n\n if (contains_key($this->entries, $this->position + 1)) {\n return;\n }\n\n $this->progress();\n $this->saved = false;\n if ($this->generator) {\n $this->generator->next();\n }\n\n $this->progress();\n }", "public function next() {\n $this->currentRow = $this->result->fetchObject();\n $this->currentKey = array();\n if (!is_object($this->currentRow)) {\n $this->currentRow = NULL;\n }\n else {\n foreach ($this->sourceKeyMap as $map_field) {\n $this->currentKey[$map_field] = $this->currentRow->$map_field;\n // Leave only destination fields\n unset($this->currentRow->$map_field);\n }\n }\n }", "public function next(): void\n {\n ++$this->key;\n\n if ($this->next) {\n $this->current = $this->current->next();\n } else {\n $this->current = $this->current->previous();\n }\n }", "public function next() {\n $this->_key++;\n }", "private function _nextKey() {\n if ($this->_hasKey()) {\n array_splice($this->_keys, 0, 1);\n }\n }", "public function next()\n {\n $this->key++;\n }", "public function next()\n {\n $this->key++;\n }", "public function next()\n {\n $newPrevious = $this->_current;\n $this->_current += $this->_previous;\n $this->_previous = $newPrevious;\n $this->_key++;\n }", "public function next()\n {\n $current = $this->current();\n\n if ($current) {\n $this->current = $current->getAfter();\n }\n }", "public function next()\n {\n $this->current = ($result = ldap_next_entry($this->handle, $this->current())) ? $result : null;\n }", "function moveNext() {\r\n\r\n $row = $this->result->fetchRow( MDB2_FETCHMODE_ASSOC );\r\n $this->EOF = !is_array( $row );\r\n $this->fields = $row;\r\n\r\n }", "public function next()\n {\n $this->valid = (next($this->keys) !== false);\n }", "public function next() {\n next($this->elements);\n $this->pointer++;\n }", "public function next() {\n $this->elementsObtained++;\n $lastElement = $this->current();\n try {\n // DEBUG: Comment In\n //if ($this->elementsObtained > 5 && $this->first)\n // throw new MongoDB\\Driver\\Exception\\RuntimeException(\"cursor id exception simulation\");\n // DEBUG: Comment In\n // We just try to get the next element\n $this->iterator->next();\n } catch (MongoDB\\Driver\\Exception\\RuntimeException $e) {\n if (strpos($e->getMessage(), \"cursor id\") !== FALSE) {\n // cursor id not found exception, let's mitigate\n $options = array();\n // no skip; we already skipped everything in the first iterator\n // limit if we have a limit; we adjust it with the elements obtained\n if ($this->originalLimit !== NULL)\n $options[\"limit\"] = $this->originalLimit - $this->elementsObtained;\n // sort we keep\n if ($this->originalSort !== NULL)\n $options[\"sort\"] = $this->originalSort;\n // Adjust the query so we start after the last obtained element\n $query = $this->queryAfterElement($this->query, $lastElement, $this->originalSort);\n // DEBUG: Comment In\n //var_dump($query);\n // DEBUG: Comment In\n $this->iterator = new IteratorIterator($this->collection->find($query, $options));\n $this->iterator->rewind();\n // We don't call next on the new iterator because it already \"has\" the first element\n // not first anymore\n $this->first = FALSE;\n } else {\n // something else; let's throw this right back at the caller\n throw $e;\n }\n }\n }", "public function next(): void\n {\n $this->cursor++;\n }", "public function next()\n {\n $this->cursor++;\n }", "public function next()\n\t{\n\t\t$this->pointer++;\n\t\t$this->row = $this->result->get($this->pointer);\n\t}", "public function next() {\n\t\t$this->firstItemIdx++;\n\n\t\tif(isset($this->firstItems[$this->firstItemIdx])) {\n\t\t\treturn $this->firstItems[$this->firstItemIdx][1];\n\t\t} else {\n\t\t\tif(!isset($this->firstItems[$this->firstItemIdx-1])) {\n\t\t\t\t$this->items->next();\n\t\t\t}\n\n\t\t\tif($this->excludedItems) {\n\t\t\t\twhile(($c = $this->items->current()) && in_array($c->{$this->keyField}, $this->excludedItems, true)) {\n\t\t\t\t\t$this->items->next();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif(!$this->items->valid()) {\n\t\t\t// iterator has passed the preface items, off the end of the items\n\t\t\t// list. Track through the end items to go through to the next\n\t\t\tif($this->endItemIdx === null) {\n\t\t\t\t$this->endItemIdx = -1;\n\t\t\t}\n\n\t\t\t$this->endItemIdx++;\n\n\t\t\tif(isset($this->lastItems[$this->endItemIdx])) {\n\t\t\t\treturn $this->lastItems[$this->endItemIdx];\n\t\t\t}\n\n\t\t\treturn false;\n\t\t}\n\t}", "public function next() {\n\t\t++$this->position;\n\t}", "public function next()\n {\n next($this->values);\n }", "public function next()\n {\n do {\n $this->iterated->attach($this->current());\n parent::next();\n } while ($this->valid() && (!$this->passes($this->current()) || $this->iterated->contains($this->current())));\n }", "function next() {\n $this->position++;\n }", "public function next() {\n\t\t$this->position ++;\n\t}", "public function next()\n {\n if ($this->isvalid) {\n $this->rewindable = false;\n $ret = librdf_iterator_next($this->iterator);\n if ($ret) {\n $this->isvalid = false;\n } else {\n $this->key++;\n }\n }\n }", "public function next()\n\t{\n\t\t$this->__position++;\n\t}", "public function next()\n\t{\n\t\t$this->_position++;\n\t}", "function MoveNext() {}", "#[\\ReturnTypeWillChange]\n public function next()\n {\n $this->valid = (next($this->keys) !== false);\n }", "public function next()\n {\n next($this->_items);\n }", "public function next(): void\n {\n if (count($this->data) > 0) {\n array_shift($this->data);\n }\n ++$this->position;\n\n if ($this->position > $this->numberOfRecords()) {\n return;\n }\n\n if (count($this->data) == 0) {\n $this->fetchMore();\n }\n }", "public function next()\n {\n next($this->array);\n }", "function next()\n {\n ++$this->_position;\n }", "public function next()\n {\n $this->position++;\n }", "public function next()\n {\n $this->position++;\n }", "public function next()\n {\n $this->_position++;\n }", "public function next() {\n ++ $this->_position;\n }", "public function next() {\n $this->nextElem();\n }", "public function next()\n {\n $this->pointer++;\n }", "public function next(): void {\n next($this->items);\n }", "public function moveNext() {\n\t\tif($this->getPointer() <= $this->getLast()) {\n\t\t\t$this->pointer++;\n\t\t\t\n\t\t\treturn $this->pointer;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "public function next(): mixed\n {\n $item = false;\n if ($this->getItemPointer() < $this->Length()) {\n $item = $this->Current();\n $this->setItemPointer($this->getItemPointer() + 1);\n }\n\n return $item;\n }", "public function next()\n\t{\n\t\t$this->current = $this->runFetch();\n\n\t\tif ($this->current) {\n\t\t\t$this->index++;\n\t\t}\n\t}", "public function next(): void\n {\n next($this->array);\n }", "public function next ()\n {\n if ( isset($this->iterator) && $this->offset == $this->internalOffset ) {\n $this->internalOffset++;\n $this->iterator->next();\n $this->storeNext();\n }\n\n $this->offset++;\n }", "public function next()\n {\n do {\n ++$this->pointer;\n } while ($this->valid() && !$this->current()->isEnabled());\n }", "public function next() {\n\t\t$this->_currentRow++;\n\t}", "public function next()\n {\n $this->storage->next();\n }", "final public function next(): void\n {\n $this->sort();\n\n next($this->index);\n }", "public function next()\n {\n $this->k++;\n }", "public function next()\n {\n $this->iteratorPosition++;\n }", "public function next()\n {\n # Pegando a posição atual do array e com ternario, verificando se é reverso e aplicando a operação.\n $this->posicao = $this->posicao + ($this->reverso ? -1 : 1);\n }", "public function next()\n\t{\n\t\t$this->_idx++;\n\t}", "public function next() {\n $this->pos++;\n }", "public function next()\r\n {\r\n if ($this->index < $this->aggregate->size()) {\r\n $this->index = $this->index+1;\r\n }\r\n }", "public function testNext()\n {\n $this->collection->next();\n $this->assertEquals(1, $this->collection->key());\n $this->assertEquals(2, $this->collection->current());\n\n $this->collection->last();\n $this->collection->next();\n $this->assertNull($this->collection->key());\n $this->assertFalse($this->collection->current());\n }", "function next() {\n # Returns the next item in the sequence or NULL if no more items.\n return NULL;\n }", "public function next()\n {\n next($this->iterator_data);\n }", "public function next()\n {\n // If the current element is the last element, return null\n if ($this->current === ($this->count() - 1)) {\n $this->current = null;\n\n return;\n }\n\n // If the next element is greater than the result count, and this is the last page, return null\n if (($this->current + 1) > count($this->results) && (($this->page + 1) > $this->pages)) {\n $this->current = null;\n\n return;\n }\n\n // Advance to the next page\n $this->request->getQuery()->set(\"page\", ++$this->page);\n\n // Retrieve the next page\n $response = $this->request->send()->json();\n\n // Append the results to the results array\n $this->results = array_merge($this->results, $response[\"results\"]);\n\n // Advance to the next element\n $this->current++;\n\n return;\n }", "public function next(): void\n {\n ++$this->position;\n }", "public function next(): void\n {\n ++$this->position;\n }", "public function next(): void\n {\n ++$this->position;\n }", "public function nextElement();", "public function nextElement();", "public function next()\n {\n $this->currentElement = $this->readNextElement();\n $this->atStart = FALSE;\n }", "#[\\ReturnTypeWillChange]\n public function next()\n {\n $this->index++;\n return next($this->items);\n }", "public function next()\n {\n $row = $this->getRow($this->pointer);\n if($row){\n $this->pointer++;\n }\n return $row;\n }", "public function next()\n\t{\n\t\t$this->databaseResult->next();\n\t}", "public function next()\n {\n ++$this->position;\n }", "public function next()\n {\n ++$this->position;\n }", "public function next()\n {\n ++$this->position;\n }", "public function next()\n {\n ++$this->position;\n }", "public function next()\n {\n ++$this->position;\n }", "public function next()\n {\n ++$this->position;\n }", "public function next()\n {\n ++$this->position;\n }", "public function next()\n {\n ++$this->position;\n }", "public function next()\n {\n ++$this->position;\n }", "public function next()\n {\n\t\tnext($this->_data);\n $this->_index++;\n\t}", "public function next() {\n ++$this->iteratorPosition;\n }", "public function next() {\n // Intentionally empty, cursor is forwaded inside valid()\n }", "function MoveNext() \r\n\t{\r\n\t\tif (!$this->EOF) {\r\n\t\t\t$this->_currentRow++;\r\n\t\t\tif ($this->_numOfRows < 0 || $this->_numOfRows > $this->_currentRow) {\r\n\t\t\t\t$this->fields = @pg_fetch_array($this->_queryID,$this->_currentRow,$this->fetchMode);\r\n\t\t\t\r\n\t\t\t\tif (is_array($this->fields)) {\r\n\t\t\t\t\tif (isset($this->_blobArr)) $this->_fixblobs();\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t$this->fields = false;\r\n\t\t\t$this->EOF = true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "public function next () {\n next($this->__fields);\n }", "public function nextAssoc();", "public function next()\n {\n ++$this->offset;\n }", "public function next()\n {\n next($this->entities);\n }", "public function next()\n\t{\n\t\t// Init a query to the first shard\n\t\tif ($this->query === null)\n\t\t\t$this->nextShard();\n\n\t\tdo\n\t\t{\n\t\t\t$this->query->next();\n\t\t}\n\t\t// Move to the next shard after the last row from the current shard\n\t\twhile (!$this->valid() && $this->nextShard());\n\n\t\t$this->index++;\n\t}", "public function next()\n {\n $this->iCurrentKey++;\n $this->strCurrentValue = strftime('%Y-%m-%d', strtotime($this->strCurrentValue . ' +1 day'));\n }", "public function next()\n {\n $this->index++;\n }", "public function next(): void\n {\n $this->_index++;\n }", "function MoveNext()\n\t{\n\t\tif (!$this->EOF) {\n\t\t\t$this->_currentRow++;\n\t\t\tif ($this->_numOfRows < 0 || $this->_numOfRows > $this->_currentRow) {\n\t\t\t\t$this->fields = @pg_fetch_array($this->_queryID,$this->_currentRow,$this->fetchMode);\n\t\t\t\tif (is_array($this->fields) && $this->fields) {\n\t\t\t\t\tif (isset($this->_blobArr)) $this->_fixblobs();\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t\t$this->fields = false;\n\t\t\t$this->EOF = true;\n\t\t}\n\t\treturn false;\n\t}", "public function next()\n {\n next($this->data);\n }", "public function next()\n {\n next($this->data);\n }", "public function next()\n {\n next($this->data);\n }", "public function next() {\n next($this->data);\n }", "public function next() {\n next($this->data);\n }", "public function next(): void\n {\n ++$this->pointer;\n }", "public function next()\n {\n next($this->properties);\n }", "function next()\n {\n if(!$this->buffer_row){\n $this->z->next('TABLE');\n }\n\n $this->position++ ;\n }", "public function next()\r\n\t{\r\n\t\t$this->i++;\r\n\t\tif( isset($this->elements[$this->i]) )\r\n\t\t{\r\n\t\t\treturn $this->elements[$this->i];\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "public function next(){\n return next($this->items);\n }" ]
[ "0.67864305", "0.67590654", "0.6659518", "0.6657714", "0.6648324", "0.65684897", "0.65386885", "0.65237534", "0.65237534", "0.63256395", "0.6324827", "0.6274607", "0.62663347", "0.62638795", "0.6248387", "0.6242589", "0.6185723", "0.61857027", "0.6178574", "0.61759716", "0.6153423", "0.61258674", "0.61223197", "0.6109987", "0.6107823", "0.6089318", "0.6088084", "0.60865015", "0.6063823", "0.6040027", "0.59817827", "0.5980848", "0.59740627", "0.59705853", "0.5967276", "0.5967276", "0.5967191", "0.59535307", "0.590688", "0.5906256", "0.5903685", "0.58952254", "0.58848286", "0.58794343", "0.58673453", "0.5853467", "0.5853453", "0.5852444", "0.58512574", "0.58391935", "0.58266634", "0.5823646", "0.58225226", "0.58223176", "0.580885", "0.5806126", "0.58059615", "0.5798404", "0.57909167", "0.5772196", "0.5771563", "0.5771563", "0.5771563", "0.57562155", "0.57562155", "0.575153", "0.57210475", "0.572091", "0.5704742", "0.5696668", "0.5696668", "0.5696668", "0.5696668", "0.5696668", "0.5696668", "0.5696668", "0.5696668", "0.5696668", "0.5685731", "0.5667682", "0.56557715", "0.56444657", "0.5629609", "0.5628402", "0.5619426", "0.56177354", "0.56050014", "0.5597521", "0.55960745", "0.55726737", "0.55665326", "0.5562894", "0.5562894", "0.5562894", "0.5558191", "0.5558191", "0.5556658", "0.5552075", "0.5546589", "0.5543574", "0.5541557" ]
0.0
-1
FIMXE: adding missing implementations: /. int .
function count(){}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract protected function _unimplemented() : Exception;", "abstract protected function _unimplemented() : Exception;", "abstract protected function _unimplemented() : Exception;", "function insta_f_install(){\n}", "function method_no_specs() {}", "public function testEverythingImplemented() {\n id(new PhutilSymbolLoader())->selectAndLoadSymbols();\n }", "public function checkFeatureImplemented();", "private function missingDependencies() {\n }", "function upgrade_290()\n {\n }", "function upgrade_460()\n {\n }", "public function testPHPThreeThrowsExceptionWithDIMD()\n { \n $con = new Container;\n $con->enableInjecterDetection(array(), '5.3.0');\n }", "function bug516_2(): void\n {\n $module_handler = \\Drupal::moduleHandler();\n $enabled_modules = $module_handler->getModuleList();\n\n foreach (array_keys($enabled_modules) as $module) {\n $module_handler->loadInclude($module, 'install');\n }\n }", "protected function getMissingPhpModulesOfExtensions() {}", "public static function install(){\n\t}", "function upgrade_372()\n {\n }", "abstract public function install_OSF_Drupal();", "protected function getClassImplementations()\n {\n }", "public function testGettersPHP56()\n {\n if (PHP_VERSION_ID < 50600) {\n $this->markTestSkipped(\"Can not test new features on old version of PHP\");\n }\n\n $fileName = stream_resolve_include_path(__DIR__ . self::STUB_FILE56);\n $fileNode = ReflectionEngine::parseFile($fileName);\n $reflectionFile = new ReflectionFile($fileName, $fileNode);\n\n include_once $fileName;\n\n $parsedFileNamespace = $reflectionFile->getFileNamespace('Go\\ParserReflection\\Stub');\n foreach ($parsedFileNamespace->getClasses() as $parsedRefClass) {\n $this->performGeneralMethodComparison($parsedRefClass);\n }\n }", "function upgrade_230()\n {\n }", "public function verifyImplementation()\n {\n }", "function __construct() {\n self::add_extension();\n self::require_php_api();\n self::define_globals();\n self::require_subclasses();\n }", "abstract protected function requiredOperations1(): void;", "public function missingMethod($parameters = array()) {\n \n }", "public function missingMethod($parameters = array()) {\n \n }", "function isPartOfFactoryDefault() ;", "public function defaultAddons(){\n\t $this->addRule('oid.pen', function($in){\n\t \t $tok = '1.3.6.1.4.1';\n\t\t $tl = strlen($tok);\n\t\t $l = strlen($in);\n\t \t $r = valFormats::is($in,'oid'); \n\t \t return (false !== $r && $tok === substr($in,0,$tl) && $l > $tl) ? true : false;\n\t });\n\t \n\t $this->addRule('oid.weid', function($in){\n\t \t $tok = '1.3.6.1.4.1.37553.8';\n\t \t $r = valFormats::is($in,'oid'); \n\t \t return (false !== $r && $tok === substr($in,0,strlen($tok))) ? true : false;\n\t });\t\n\t \n\t $this->addRule('impolite', function($in){\n\t \t return (preg_match(\"/porn|fucker|sex|asshole/i\", $in)) ? true : false;\n\t });\t\n\t \n\t \n\t /**\n\t * german aliasis\n\t */\n\t $this->addRule('ungerade', function($in){\n\t \t return valFormats::create()->is($in, 'odd');\n\t });\t \t \n\n\t $this->addRule('gerade', function($in){\n\t \t return valFormats::create()->is($in, 'even');\n\t });\n\t \n\n\t $this->addRule('primzahl', function($in){\n\t \t return valFormats::create()->is($in, 'prime');\n\t });\t\n\t \n\t return $this;\t\t \t\t \t\n }", "public function get_lookup(/* ... */)\n {\n throw new \\RuntimeException('Method not implemented');\n }", "function install() {}", "function install_definitions() {\n $db = DB::getInstance();\n if(!$db->query(file_get_contents(CORE_INSTALLER_FILES_PATH.'/db/system_definitions.sql'))->error()) {\n return true;\n }\n else {\n System::addMessage('error', rt('An error occurred during the creation of the default system definitions'));\n }\n return false;\n}", "function chouXiang()\n {\n echo '必须继承重写的抽象类的抽象方法'.'</br>';\n }", "protected abstract function registerClasses(): void;", "public function testAddInvalids()\n {\n $this->todo('stub');\n }", "function test_install(){\n \t}", "private static function support()\n {\n require_once static::$root.'Support'.'/'.'FunctionArgs.php';\n }", "function broken() { }", "private static function checkRequiredPhpExtensions(): void\n {\n /**\n * Warning about mbstring.\n */\n if (! function_exists('mb_detect_encoding')) {\n Core::warnMissingExtension('mbstring');\n }\n\n /**\n * We really need this one!\n */\n if (! function_exists('preg_replace')) {\n Core::warnMissingExtension('pcre', true);\n }\n\n /**\n * JSON is required in several places.\n */\n if (! function_exists('json_encode')) {\n Core::warnMissingExtension('json', true);\n }\n\n /**\n * ctype is required for Twig.\n */\n if (! function_exists('ctype_alpha')) {\n Core::warnMissingExtension('ctype', true);\n }\n\n /**\n * hash is required for cookie authentication.\n */\n if (function_exists('hash_hmac')) {\n return;\n }\n\n Core::warnMissingExtension('hash', true);\n }", "public function testAddInvalid()\n {\n $this->todo('stub');\n }", "function install(){}", "public function implementation_pending(): void\n {\n }", "function upgrade_431()\n {\n }", "function install()\n {\n }", "function upgrade_340()\n {\n }", "#[@test, @expect('lang.ElementNotFoundException')]\n public function non_existant() {\n \\lang\\ClassLoader::registerPath('@@non-existant@@');\n }", "abstract protected function registerFunctions();", "public function install(){\r\n\t\t\r\n\t}", "public function give($implementation);", "public function extension() {}", "function upgrade_500()\n {\n }", "function upgrade_210()\n {\n }", "public function install()\n {\n }", "public function install()\n {\n }", "protected function raiseNotImplemented() {\n $calling_method_name = debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS,2)[1]['function'];\n storeErrorMsg($calling_method_name. \" function not implemented!\");\n }", "public function __construct() {\n\t\t$this->hasExistsMethod = function_exists('apc_exists');\n\t}", "function upgrade_510()\n {\n }", "function upgrade_280()\n {\n }", "function upgrade_270()\n {\n }", "function f4missing($a) {\n\n // check SimpleFunctionCall::outputCPPParamOrderControlled\n // !m_valid, !m_className.empty() cases\n\n // m_validClass\n echo \"Calling G object 'f4missing' 3 == \";\n\n //php53 echo parent::f4missing(3),\"\\n\";\n // fatals in PHP\n\n // !m_validClass, m_class\n $b=\"B\";\n // $b::f4(4);\n // task 217171\n echo \"static parent method B::f4, 16 == \", B::f4(4),\"\\n\";\n // should work\n\n // call an non-existent method on the one object via dynamic class name\n //php53 if($fix249639) echo \"Calling G object method 'f4bogus' 5 == \", $b::f4bogus(5); __call,\n // call existing method on the one object via dynamic class name\n //php53 if($fix249639) echo \"Calling G object method 'f4missing' 5 == \", $b::f4missing(5);\n\n // $b=\"Bbogus\"; $b::f4bogus(6);\n // report error\n // !m_validClass, !m_class // DDD need this test yet\n //echo \"missing 3 \", Bbogus::f4bogus(6),\"\\n\";\n // fatals in PHP\n\n }", "protected function createFakeExtension() {}", "public function testGetFunctionsFromExtension()\n {\n if (is_null($this->ref)) {\n return;\n }\n\n foreach ($this->ref['extensions'] as $extname => $opt) {\n $ext = get_extension_funcs($extname);\n if (!is_array($ext)) {\n // At least, for sqlite3 (PHP Bug ?)\n continue;\n }\n\n foreach ($ext as $fctname) {\n if (!in_array($fctname, $this->ignoredfunctions)) {\n $this->assertArrayHasKey(\n $fctname,\n $this->ref['functions'],\n \"Defined function '$fctname' not known in Reference.\"\n );\n }\n }\n }\n }", "abstract public function testSniff(): void;", "public function notice_missing_extensions() {\n\n ?>\n <div class=\"error\">\n <p><strong><?php _e( 'The GD or Imagick libraries are not installed on your server. Envira Gallery requires at least one (preferably Imagick) in order to crop images and may not work properly without it. Please contact your webhost and ask them to compile GD or Imagick for your PHP install.', 'envira-gallery' ); ?></strong></p>\n </div>\n <?php\n\n }", "public function test_listUnsupportedFileTypes() {\n\n }", "function runkit_method_add($classname, $methodname, $args, $code, $flags = RUNKIT_ACC_PUBLIC)\n{\n}", "public function testGetMethodsForType()\n {\n // TODO: implement\n $this->markTestIncomplete('Not implemented');\n }", "function upgrade_110()\n {\n }", "public function mt_supportedMethods()\n {\n }", "public function install() {\r\n \r\n }", "public function testNotChangingOtherLibraries() {\n $libraries = [];\n \\mask_library_info_alter($libraries, 'foo');\n\n $this->assertEmpty($libraries);\n }", "function initialBasicFixes()\r\n{\r\n /**\r\n * bypass date & timezone-related warnings with php 5.1\r\n */\r\n if (function_exists('date_default_timezone_set')) {\r\n $tz= @date_default_timezone_get();\r\n date_default_timezone_set($tz);\r\n }\r\n\r\n ini_set('zend.ze1_compatibility_mode', 0);\r\n ini_set(\"pcre.backtrack_limit\", -1); # fix 5.2.0 prce bug with render_wiki\r\n if(function_exists('mb_internal_encoding')) {\r\n mb_internal_encoding(\"UTF-8\");\r\n }\r\n #ini_set(\"mbstring.func_overload\", 2);\r\n\r\n /**\r\n * add rough php-version check to at least avoid parsing errors.\r\n * fine version-check follows further down\r\n */\r\n if(phpversion() < \"5.0.0\") {\r\n echo \"Sorry, but Streber requires php5 or higher.\";\r\n exit();\r\n }\r\n}", "#[Pure]\nfunction http_support($feature = null) {}", "public function ruta_absoluta_base()\n {\n throw new Exception( 'Definir.' );\n }", "private static function initVersionCompatibility()\n {\n $reflection = new ReflectionClass('Iterator');\n $extension = strtolower($reflection->getExtensionName());\n $extension = ($extension === '' ? 'standard' : $extension);\n\n if (defined('CORE_PACKAGE') === false ) {\n define('CORE_PACKAGE', '+' . $extension);\n }\n }", "public function getDefaultMethodNotMain()\n {\n return 2;\n }", "function upgrade_350()\n {\n }", "function upgrade_590()\n {\n }", "function upgrade_420()\n {\n }", "abstract protected function interface();", "public function testNonGroupingIntegration() {\n $this->markTestSkipped('Not yet implemented.');\n }", "public function testCreateExpedicao()\n {\n }", "abstract public function installPhp();", "public static function dummy() {}", "public function testCanFindClasses()\n {\n foreach ($this->classes as $class) {\n $this->assertTrue(class_exists($class) || interface_exists($class));\n }\n }", "public function testNotOperational1()\r\n {\r\n global $pretend;\r\n\r\n $gd = $this->createGd('test.png');\r\n self::resetPretending();\r\n\r\n $pretend['functionsNotExisting'] = ['imagewebp'];\r\n $this->expectException(SystemRequirementsNotMetException::class);\r\n $gd->checkOperationality();\r\n }", "public function install();", "public function install();", "function CIR_WorkaroundForMissingModulesDep()\n{\n\techo('\n\t[ -d \"/lib/modules/$(uname -r)\" ] || mkdir \"/lib/modules/$(uname -r)\"\n\t[ -f \"/lib/modules/$(uname -r)/modules.dep\" ] || cat /lib/modules/*/modules.dep > \"/lib/modules/$(uname -r)/modules.dep\";\n\t');\n}", "public function testUnknownExpectedProduct()\n {\n $tierApp = new TierApp(new Injector(), new NullCallback());\n\n $fn1 = function() {\n return \\Tier\\TierApp::PROCESS_CONTINUE;\n };\n \n $fn2 = function() {\n return \\Tier\\TierApp::PROCESS_END;\n };\n\n $tierApp->addExpectedProduct('StdClass');\n $executable = new Executable($fn2, null, null, 'UnknownClass');\n \n $tierApp->addExecutable(0, $fn1);\n $tierApp->addExecutable(2, $executable);\n $tierApp->executeInternal();\n }", "function upgrade_440()\n {\n }", "public function testGetFeaturedMods()\n {\n // TODO: implement\n $this->markTestIncomplete('Not implemented');\n }", "private function check_compatibility()\n\t{\n\t\tif ( ! extension_loaded( 'curl' ) || ! extension_loaded( 'json' ) )\n\t\t{\n\t\t\tthrow new CentrifugeException('There is missing dependant extensions - please ensure both cURL and JSON modules are installed');\n\t\t}\n\n\t\tif ( ! in_array( 'md5', hash_algos() ) )\n\t\t{\n\t\t\tthrow new CentrifugeException('md5 appears to be unsupported - make sure you have support for it, or upgrade your version of PHP.');\n\t\t}\n\n\t}", "public function testExtendThrowsExceptionWhenUnregisteredDefinitionIsGiven()\n {\n $this->setExpectedException('InvalidArgumentException');\n\n $c = new Container;\n $c->extend('does_not_exist');\n }", "function upgrade_370()\n {\n }", "protected function registerExtDirectComponents() {}", "protected function _havePIMChanges()\n {\n throw new Horde_ActiveSync_Exception('Must be implemented in concrete class.');\n }", "function upgrade_450()\n {\n }", "public function get_test_php_extensions()\n {\n }", "public function ___install() {\n\t\t$disabled = explode(', ', @ini_get('disable_functions'));\n\t\tif(in_array('exec', $disabled)) $this->error('exec functions disabled, web server optimization tools will not work.');\n\t}", "protected function loadBaseExtensions() {}", "function upgrade_101()\n {\n }", "function get_entry_points()\n\t{\n\t\treturn array('misc'=>'XML_DATA_MANAGEMENT');\n\t}", "public function testFaqInstall()\r\n {\r\n\t\t$this->faqClass->moduleInstall();\r\n\t\t$needUpdate = $this->faqClass->checkUpdate();\r\n\t\tif($needUpdate)\r\n\t\t\t$this->faqClass->moduleUpdate();\r\n\t}" ]
[ "0.5983213", "0.5983213", "0.5983213", "0.5891894", "0.58690315", "0.5754535", "0.5721911", "0.57005894", "0.5415413", "0.5405313", "0.53200257", "0.5316233", "0.5313178", "0.5305039", "0.53041005", "0.5263034", "0.5260784", "0.52383024", "0.52001685", "0.518799", "0.5183389", "0.5141913", "0.51318", "0.51318", "0.513047", "0.5120698", "0.510501", "0.5098504", "0.5095966", "0.50872844", "0.5084381", "0.50793475", "0.50776744", "0.50770336", "0.50763696", "0.5061516", "0.5061423", "0.50610477", "0.505295", "0.5049093", "0.50383556", "0.5033508", "0.502974", "0.5028781", "0.50270075", "0.50205916", "0.50048697", "0.50008315", "0.49994722", "0.4994982", "0.4994982", "0.49912947", "0.49898055", "0.49834806", "0.49833786", "0.49781123", "0.4976962", "0.49738544", "0.49654752", "0.49645635", "0.49595353", "0.49570176", "0.49525672", "0.49409294", "0.4936021", "0.49293402", "0.49279335", "0.49229023", "0.4920735", "0.49186668", "0.49124247", "0.49113566", "0.49112317", "0.49108618", "0.4905106", "0.48985896", "0.48969227", "0.48953182", "0.48947418", "0.4892127", "0.48865768", "0.48849016", "0.48820654", "0.4880106", "0.4880106", "0.48669916", "0.48662782", "0.48622054", "0.48600584", "0.48546362", "0.4854354", "0.48528302", "0.48488677", "0.48470384", "0.48447847", "0.4843204", "0.48398545", "0.48372278", "0.483609", "0.4833422", "0.4831831" ]
0.0
-1
FIXME: adding missing implementations: /. mixed .
function current(){}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function __construct() {\n\t\t$this->set_format( '/.*/', 'replace' );\n\t}", "public function helper()\n\t{\n\t\n\t}", "abstract protected function external();", "abstract protected function paths();", "abstract protected function uri($uri);", "abstract public function acceptedExtension(): string;", "public function extension();", "function variant_imp($left, $right) {}", "abstract function getExtension(): string;", "function specialop() {\n\n\n\t}", "abstract protected function mini(): string;", "public function extension() {}", "abstract protected function _process();", "abstract protected function _process();", "function overload() { }", "function overload() { }", "public function slashJsDataProvider() {}", "abstract protected function getMethodPattern(): string;", "public function custom()\n\t{\n\t}", "protected function parsePath() {\n\t}", "protected function normalize() {}", "abstract protected function handle();", "abstract protected function content();", "public function validPathStrDataProvider() {}", "public function defaultAddons(){\n\t $this->addRule('oid.pen', function($in){\n\t \t $tok = '1.3.6.1.4.1';\n\t\t $tl = strlen($tok);\n\t\t $l = strlen($in);\n\t \t $r = valFormats::is($in,'oid'); \n\t \t return (false !== $r && $tok === substr($in,0,$tl) && $l > $tl) ? true : false;\n\t });\n\t \n\t $this->addRule('oid.weid', function($in){\n\t \t $tok = '1.3.6.1.4.1.37553.8';\n\t \t $r = valFormats::is($in,'oid'); \n\t \t return (false !== $r && $tok === substr($in,0,strlen($tok))) ? true : false;\n\t });\t\n\t \n\t $this->addRule('impolite', function($in){\n\t \t return (preg_match(\"/porn|fucker|sex|asshole/i\", $in)) ? true : false;\n\t });\t\n\t \n\t \n\t /**\n\t * german aliasis\n\t */\n\t $this->addRule('ungerade', function($in){\n\t \t return valFormats::create()->is($in, 'odd');\n\t });\t \t \n\n\t $this->addRule('gerade', function($in){\n\t \t return valFormats::create()->is($in, 'even');\n\t });\n\t \n\n\t $this->addRule('primzahl', function($in){\n\t \t return valFormats::create()->is($in, 'prime');\n\t });\t\n\t \n\t return $this;\t\t \t\t \t\n }", "abstract public function toPhp();", "abstract public function otherfoo();", "public function includeLL() {}", "public function includeLL() {}", "function notation_autoriser(){}", "abstract protected function appliesTo(): string;", "private function normalizeExtension()\n {\n $explodedUri = WingedLib::explodePath(static::$uri);\n $dir = WingedLib::normalizePath();\n $beforeConcatDir = WingedLib::normalizePath();\n if ($explodedUri) {\n foreach ($explodedUri as $key => $uriPart) {\n $dir .= $uriPart;\n $dir = WingedLib::normalizePath($dir);\n if (is_directory(WingedLib::clearPath(DOCUMENT_ROOT . $dir) . '/')) {\n unset($explodedUri[$key]);\n $beforeConcatDir = $dir;\n }\n }\n static::$parent = $beforeConcatDir;\n $beforeConcatDir = WingedLib::clearPath($beforeConcatDir);\n\n static::$parentUri = WingedLib::clearPath(WingedLib::clearPath(str_replace($beforeConcatDir, '', static::$uri)));\n if (!static::$parentUri) {\n static::$parentUri = './';\n } else {\n static::$parentUri = './' . static::$parentUri . '/';\n }\n\n if (static::$uri != static::$parentUri) {\n $explodedUri = WingedLib::explodePath(static::$parentUri);\n }\n\n static::$httpsParent = static::$https . $beforeConcatDir . '/';\n static::$httpParent = static::$http . $beforeConcatDir . '/';\n static::$protocolParent = static::$protocol . $beforeConcatDir . '/';\n\n if (static::$freeGet != '') {\n static::$fullUrlProvider = static::$protocol . WingedLib::clearPath(static::$pureUri) . '?' . static::$freeGet;\n } else {\n static::$fullUrlProvider = static::$protocol . WingedLib::clearPath(static::$pureUri);\n }\n if (count7($explodedUri) == 0) {\n static::$controllerName = 'IndexController';\n static::$controllerAction = 'actionIndex';\n static::$isIndex = true;\n } else {\n $explodedUri = array_values($explodedUri);\n $page = $explodedUri[0];\n unset($explodedUri[0]);\n $uriParameters = [];\n foreach ($explodedUri as $key => $value) {\n array_push($uriParameters, $value);\n }\n static::$controllerName = Formater::camelCaseClass($page) . 'Controller';\n if (count($uriParameters) > 0) {\n static::$controllerAction = 'action' . Formater::camelCaseMethod($uriParameters[0]);\n } else {\n static::$controllerAction = 'actionIndex';\n }\n static::$isIndex = true;\n static::$uriParameters = $uriParameters;\n }\n } else {\n static::$parentUri = './';\n static::$httpsParent = static::$https;\n static::$httpParent = static::$http;\n static::$protocolParent = static::$protocol;\n if (static::$freeGet != '') {\n static::$fullUrlProvider = static::$protocol . WingedLib::clearPath(static::$pureUri) . '?' . static::$freeGet;\n } else {\n static::$fullUrlProvider = static::$protocol . WingedLib::clearPath(static::$pureUri);\n }\n static::$isIndex = true;\n static::$controllerName = 'IndexController';\n static::$controllerAction = 'actionIndex';\n static::$parent = './';\n }\n return $this;\n }", "public function __construct()\r\n\t{\r\n\t\techo \"Implements Function overloading\";\r\n\t}", "abstract protected function interface();", "abstract public function assemble();", "abstract public function render(): string;", "abstract public function render(): string;", "abstract public function render(): string;", "abstract public function render(): string;", "abstract public function uri(): string;", "public function native();", "public function specialization() {\n }", "public function overload(): void;", "final private function __construct() {}", "final private function __construct() {}", "abstract protected function __construct();", "abstract protected function getPattern(): string;", "abstract protected function getPattern(): string;", "private function __construct()\t{}", "protected function parse() {}", "protected function __init__() { }", "private function __() {\n }", "function autoLoad($class){\r\n\r\n $class = str_replace(\"\\\\\",SEPARATOR,$class);\r\n include_once(BASEDIR. SEPARATOR. $class. \".class.php\");\r\n \r\n}", "private function _i() {\n }", "function _mixed($mixed)\n {\n return $mixed;\n }", "public function test_FName__Weirdos(): void\n {\n $filename = '..';\n $f = new FName($filename);\n $this->assertEqualsCanonicalizing(['','..','','..'], [$f->path, $f->body, $f->ext, $f->filename]);\n\n //single dot is a filename without extension (body only)\n $filename = '.';\n $f = new FName($filename);\n $this->assertEqualsCanonicalizing(['','.','','.'], [$f->path, $f->body, $f->ext, $f->filename]);\n\n //lots of dots is still considered a filename without extension (body only)\n $filename = '......';\n $f = new FName($filename);\n $this->assertEqualsCanonicalizing(['','......','','......'], [$f->path, $f->body, $f->ext, $f->filename]);\n\n //lots of dots as body with an added extension - last dot is always consumed when separating the extension\n $filename = '......ext';\n $f = new FName($filename);\n $this->assertEqualsCanonicalizing(['','.....','ext','......ext'], [$f->path, $f->body, $f->ext, $f->filename]);\n\n //Multiple dots in filename\n $filename = '/var/www/whatever/manci...neni.meg.a.madarak...ext';\n $f = new FName($filename);\n $this->assertEqualsCanonicalizing\n (\n ['/var/www/whatever/','manci...neni.meg.a.madarak..','ext','manci...neni.meg.a.madarak...ext'],\n [$f->path, $f->body, $f->ext, $f->filename]\n );\n\n //Unicode madness...\n $filename = '/var/w™ww/whateverḊḋḞ/very😎😏...ne🌎🌏ni.meg.a.mУФХadarak...ぴふべ';\n $f = new FName($filename);\n $this->assertEqualsCanonicalizing\n (\n ['/var/w™ww/whateverḊḋḞ/','very😎😏...ne🌎🌏ni.meg.a.mУФХadarak..','ぴふべ','very😎😏...ne🌎🌏ni.meg.a.mУФХadarak...ぴふべ'],\n [$f->path, $f->body, $f->ext, $f->filename]\n );\n }", "protected function real($source)\n {\n // variables\n $output = $source;\n $input = str_replace('\\\\', '/', $source);\n\n // test input\n if(preg_match('%^.{1,2}/|/\\.{1,2}|/{2,}/%', $input))\n {\n // variables\n $root = '';\n $path = $input;\n\n // respect drive or UNC\n if(preg_match('%^(\\w:/|//\\w+/)(.*)%', $input, $matches))\n {\n $root = $matches[1];\n $path = $matches[2];\n }\n\n // split input\n $src = explode('/', $path);\n\n // build output\n $trg = array();\n while(count($src))\n {\n $str = array_shift($src);\n if($str == '.' || $str == '')\n {\n continue;\n }\n else if($str == '..')\n {\n array_pop($trg);\n }\n else\n {\n $trg[] = $str;\n }\n }\n\n // convert to string\n $output = implode('/', $trg);\n\n // re-add drive or UNC\n $output = $root . $output;\n\n // respect leading and trailing slashes\n if(substr($input, 0, 1) == '/')\n {\n $output = '/' . $output;\n }\n if(substr($input, -1) == '/' && substr($output, -1) != '/')\n {\n $output = $output . '/';\n }\n\n // if windows format, convert back\n if($this->separator === '\\\\')\n {\n $output = str_replace('/', '\\\\', $output);\n }\n }\n\n // test path\n if($this->testpaths)\n {\n if( ! file_exists($output) )\n {\n $output = false;\n }\n }\n\n // output\n return $output;\n }", "public function extensions();", "abstract protected function namespace(): string;", "public function getBase(): void {}", "public function Extension();", "abstract public function parse ();", "final private function __construct() { }", "final private function __construct() { }", "final private function __construct() { }", "public function generic_strings()\n {\n }", "private final function __construct() {}", "abstract public function version();", "abstract public function version();", "public static function normalizeProvider(): array\n {\n return [\n ['/a/b/c/./../../g', '/a/g'],\n ['mid/content=5/../6', 'mid/6'],\n ['a/b/c', 'a/b/c'],\n ['a/b/c/.', 'a/b/c/'],\n ['/a/b/c', '/a/b/c'],\n ];\n }", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}" ]
[ "0.5323996", "0.5310943", "0.5280173", "0.52676445", "0.5221362", "0.51298296", "0.5122064", "0.51147664", "0.51063675", "0.510622", "0.5103768", "0.5086067", "0.50606114", "0.50606114", "0.50464725", "0.50464725", "0.50400007", "0.5035765", "0.50261337", "0.50140053", "0.50118625", "0.49932384", "0.49713185", "0.4953377", "0.49311936", "0.4923617", "0.4900343", "0.48815298", "0.48815298", "0.4874337", "0.48718244", "0.48716718", "0.48695874", "0.48667642", "0.48569673", "0.4849487", "0.4849487", "0.4849487", "0.4849487", "0.4842765", "0.4825856", "0.4823429", "0.48209354", "0.48192453", "0.48192453", "0.48049873", "0.47966903", "0.47966903", "0.4794134", "0.47888187", "0.47862545", "0.47845978", "0.4784561", "0.47829086", "0.47788233", "0.47728178", "0.47685978", "0.47486773", "0.4748087", "0.47340566", "0.47277388", "0.47231373", "0.47204685", "0.47204685", "0.47204685", "0.47155717", "0.47141403", "0.47024348", "0.47024348", "0.4700711", "0.46974507", "0.469665", "0.469665", "0.469665", "0.469665", "0.469665", "0.469665", "0.469665", "0.469665", "0.469665", "0.469665", "0.469665", "0.469665", "0.469665", "0.469665", "0.469665", "0.469665", "0.469665", "0.469665", "0.469665", "0.469665", "0.469665", "0.469665", "0.469665", "0.469665", "0.469665", "0.469665", "0.469665", "0.469665", "0.469665", "0.469665" ]
0.0
-1
FIXME: adding missing implementations: /. RecursiveDirectoryIterator .
function current(){}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function recursivelyIterateDirectory()\n\t{\n\t\treturn new RecursiveIteratorIterator(new RecursiveDirectoryIterator($this->getPath()));\n\t}", "public function iterateDirectory()\n\t{\n\t\treturn new FilesystemIterator($this->getPath());\t\n\t}", "function directory_mapper($path)\n{\n $maxDepth = 3;\n $minDepth = 3;\n $iterator = new RecursiveIteratorIterator(\n new RecursiveDirectoryIterator($path, RecursiveDirectoryIterator::SKIP_DOTS),\n RecursiveIteratorIterator::SELF_FIRST,\n RecursiveIteratorIterator::CATCH_GET_CHILD// Ignore \"Permission denied\"\n );\n $iterator->setMaxDepth($maxDepth);\n\n $paths = array($path);\n foreach ($iterator as $path => $dir) {\n if ($iterator->getDepth() >= $minDepth) {\n if ($dir->isDir()) {\n if (file_exists($dir . DIRECTORY_SEPARATOR . \"meta\")) {\n $paths[] = $path;\n }\n }\n }\n }\n array_shift($paths);\n return $paths;\n}", "function toIterator($root) {\n $root = realpath($root);\n $iterator = new \\AppendIterator();\n\n if(!file_exists($root))\n die('The components folder could not be found');\n\n $iterator = new RecursiveIteratorIterator(new RecursiveDirectoryIterator($root));\n //$directoryIterator->setFlags(\\RecursiveDirectoryIterator::SKIP_DOTS);\n\n return $iterator;\n }", "abstract protected function yieldSearchPaths(): Generator;", "private function getDirIterator(string $sPath): RecursiveDirectoryIterator\n {\n return new RecursiveDirectoryIterator($sPath);\n }", "private function getIterator(string $dir): Iterator\n {\n return new RecursiveIteratorIterator(\n new RecursiveDirectoryIterator(\n $dir,\n FilesystemIterator::SKIP_DOTS\n ),\n RecursiveIteratorIterator::CHILD_FIRST\n );\n }", "public function dir_readdir() {}", "private function listFolderFiles($dir){\n $children = false;\n $isRoot = false;\n if($dir==$this->file_storage){\n $isRoot = true;\n }\n\n $folderName = $this->getFolderName($dir);\n if(!$isRoot){\n //$this->info('Directory Name: '.$folderName['child']);\n //$this->info('Parent Name: '.$folderName['parent']);\n }\n\n //$this->info('Folder: '.$dir);\n\n foreach (new \\DirectoryIterator($dir) as $fileInfo) {\n if (!$fileInfo->isDot()) {\n if ($fileInfo->isDir()) {\n $this->listFolderFiles($fileInfo->getPathname());\n }else{\n $rename = false;\n //$this->info('File: '.$fileInfo->getFilename());\n //$info = new SplFileInfo($dir.'/'.$fileInfo->getFilename());\n $ext = \".\".pathinfo($fileInfo->getFilename(), PATHINFO_EXTENSION);\n //$ext = \".\"$info->getExtension();\n //$this->info('File: extension '.$ext);\n $filebreak = str_replace($ext,\"\",$fileInfo->getFilename());\n if (strpos($filebreak, '.') !== false || strpos($filebreak, \"'\") !== false || strpos($filebreak, \"#\") !== false) {\n $rename = true;\n }\n if($rename){\n $replace = array(\".\", \"'\", \"#\", \";\", \"/\", \"?\", \":\", \"@\", \"=\", \"&\", \",\");\n //“;”, “/”, “?”, “:”, “@”, “=” and “&\n $fileraw = str_replace($replace,\" \",$filebreak);\n //$this->info('File: raw '.$fileraw);\n $newfilename = $fileraw . $ext;\n //$this->info('File: new '.$newfilename);\n $prod_filename = $newfilename;\n rename($dir.'/'.$fileInfo->getFilename(),$dir.'/'.$newfilename);\n }else{\n $prod_filename = $fileInfo->getFilename();\n }\n $this->checkFileExtension($dir.'/'.$prod_filename, $prod_filename, $dir);\n }\n $children = true;\n }else{\n $children = false;\n }\n }\n //$this->info('Children: '.$children);\n\n if(!$isRoot){\n $this->folders[$this->count]['name'] \t\t\t= $folderName['child'];\n $this->folders[$this->count]['parent'] \t\t= $folderName['parent'];\n $this->folders[$this->count]['full_path']\t= $dir;\n $this->folders[$this->count]['children']\t= $children;\n $this->count++;\n }\n //$this->info('#################');\n }", "public function getDirectoryTreeList();", "public function scanDirPathsRecursive(callable $filter = null): Generator\n {\n /**\n * @var Generator<string, string>\n */\n return $this->scanRawRecursive(false, true, $filter, false);\n }", "function recursiveDirectory($directory){\n foreach(glob(\"{$directory}/*\") as $file)\n {\n //echo \"recorriendo el FICHERO $file<br>\";\n\n if(is_dir($file)) {\n //echo \"directorio $directory fichero $file<br>\";\n anadirImagen($file);\n recursiveDirectory($file);\n } else {\n\n anadirImagen($file);\n\n }\n }\n anadirImagen($directory);\n $parent = dirname($directory);\n while (strcmp($parent, 'Repositorio') != 0) {\n anadirImagen($parent);\n $parent = dirname($parent);\n }\n}", "static function getDirectoryListing();", "function scan_directory_recursively($directory, $filter=FALSE)\n{\n\tif(substr($directory,-1) == '/')\n\t{\n\t\t$directory = substr($directory,0,-1);\n\t}\n\tif(!file_exists($directory) || !is_dir($directory))\n\t{\n\t\treturn FALSE;\n\t}elseif(is_readable($directory))\n\t{\n\t\t$directory_list = opendir($directory);\n\t\twhile($file = readdir($directory_list))\n\t\t{\n\t\t\tif($file != '.' && $file != '..' && $file != '.DS_Store' && $file != '.svn')\n\t\t\t{\n\t\t\t\t$path = $directory.'/'.$file;\n\t\t\t\tif(is_readable($path))\n\t\t\t\t{\n\t\t\t\t\t$subdirectories = explode('/',$path);\n\t\t\t\t\tif(is_dir($path))\n\t\t\t\t\t{\n\t\t\t\t\t\t$directory_tree[] = array(\n\t\t\t\t\t\t\t'path' => $path,\n\t\t\t\t\t\t\t'name' => end($subdirectories),\n\t\t\t\t\t\t\t'modified'\t=> filemtime($path),\n\t\t\t\t\t\t\t'kind' => 'directory',\n\t\t\t\t\t\t\t'content' => scan_directory_recursively($path, $filter));\n\t\t\t\t\t}elseif(is_file($path))\n\t\t\t\t\t{\n\t\t\t\t\t\t$extension = end(explode('.',end($subdirectories)));\n\t\t\t\t\t\tif($filter === FALSE || $filter == $extension)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t// Get metadata and image dimensions\n\t\t\t\t\t\t\t$size = getimagesize($path, $info);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t// Get containing directory of file\n\t\t\t\t\t\t\t$directory_array = explode('/', $path);\n\t\t\t\t\t\t\t$parent_folder = min($directory_array);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t// Reset title, caption, tags\n\t\t\t\t\t\t\t$title = $caption = $taglist = $tags = '';\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t$directory_tree[] = array(\n\t\t\t\t\t\t\t'path'\t\t=> dirname($path),\n\t\t\t\t\t\t\t'group'\t\t=> $parent_folder,\n\t\t\t\t\t\t\t'file'\t\t=> end($subdirectories),\n\t\t\t\t\t\t\t'extension' => $extension,\n\t\t\t\t\t\t\t'size'\t\t=> filesize($path),\n\t\t\t\t\t\t\t'width'\t\t=> $size[0],\n\t\t\t\t\t\t\t'height'\t=> $size[1],\n\t\t\t\t\t\t\t'modified'\t=> filemtime($path),\n\t\t\t\t\t\t\t'title'\t\t=> $title,\n\t\t\t\t\t\t\t'caption'\t=> $caption,\n\t\t\t\t\t\t\t'tags'\t\t=> $tags,\n\t\t\t\t\t\t\t'kind'\t\t=> 'file');\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tclosedir($directory_list); \n\t\treturn $directory_tree;\n\t}else{\n\t\treturn FALSE;\t\n\t}\n}", "public function test_scan_directories()\n {\n $content = array('.','..','application','.git','nbproject','system');\n $object = Directory::factory(ROOT);\n $res = $object->scan(Directory::SORT_ASC, Directory::SCAN_DIRS);\n \n $this->assertEquals(count($content), count($res));\n foreach($res as $path=>$dir){\n $this->assertTrue(in_array($dir->get_base_name(), $content));\n $this->assertInstanceOf('\\Kaili\\Directory', $dir);\n }\n }", "public function addDirectory(IDirectory $directory): IDirectoryIterator;", "protected function getFiles()\n {\n $directoryIterator = new RecursiveDirectoryIterator(realpath(Settings::FILE_PATH),\n RecursiveDirectoryIterator::SKIP_DOTS);\n\n return new RecursiveIteratorIterator($directoryIterator);\n }", "function dir_list($file)\n{\n $file_list = scandir($file);\n foreach($file_list as $item)\n {\n if($item == '.' || $item == '..')continue;\n \n $file_path = $file . '/' . $item;\n if(is_dir($file_path))\n {\n echo \"<font color='red'>$file_path</font><br/>\";\n dir_list($file_path);\n }\n else{\n echo $file_path . \"<br>\";\n }\n }\n}", "private function get_iterator( $path ) {\r\n\t\ttry {\r\n\t\t\t$iterator = new DirectoryIterator( $path );\r\n\t\t} catch ( Exception $e ) {\r\n\t\t\t// No action required, as logging not enabled.\r\n\t\t\t$iterator = [];\r\n\t\t}\r\n\r\n\t\treturn $iterator;\r\n\t}", "function dir_enter($entry_dir='/', $depth=0)\r\n{\r\n\t$found = 0;\r\n\r\n\t# Remove the last trailing slash and void dual writing\r\n\t$entry_dir = preg_replace('/\\/$/i', '', $entry_dir);\r\n\r\n\t$skip_list = array(\r\n\t\t'.', # self\r\n\t\t'..', # parent\r\n\t);\r\n\r\n\tif($dir_handle = opendir($entry_dir))\r\n\t{\r\n\t\twhile(false !== ($filename = readdir($dir_handle)))\r\n\t\t{\r\n\t\t\tif(in_array($filename, $skip_list))\r\n\t\t\t{\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t$full_file_path = \"{$entry_dir}/{$filename}\";\r\n\t\t\t\r\n\t\t\tif(is_dir($full_file_path))\r\n\t\t\t{\r\n\t\t\t\t# Need to loop here inside the directory\r\n\r\n\t\t\t\tfecho(str_repeat(' ', $depth)); # depth marker\r\n\t\t\t\t#fecho(\"{$full_file_path}\");\r\n\t\t\t\tfecho(\"{$filename}\");\r\n\r\n\t\t\t\t\r\n\t\t\t\t# Recurse through the file\r\n\t\t\t\t$function = __FUNCTION__;\r\n\t\t\t\t$found += $function($full_file_path, $depth+1);\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\t#fecho(str_repeat(' ', $depth)); # depth marker\r\n\t\t\t\t#fecho(\"{$full_file_path}\");\r\n\t\t\t\t#fecho(\"{$filename}\");\r\n\r\n\t\t\t\t++$found;\r\n\t\t\t\tprocess_file($full_file_path, $depth);\r\n\t\t\t}\r\n\t\t}\r\n\t\tclosedir($dir_handle);\r\n\t}\r\n\t\r\n\treturn $found;\r\n}", "public function scanDirsRecursive(callable $filter = null): Generator\n {\n /**\n * @var Generator<string, Dir>\n */\n return $this->scanRawRecursive(false, true, $filter, true);\n }", "function directoryRecursive($subDirectory){\n\t\n\tglobal $imgCount;\n\tglobal $allowedExtensions;\n\tglobal $finalSetOfFiles;\n\t\n\t$subDirFiles = scandir($subDirectory);\n\t\n\t//removing the first 2 position by default\n\tunset($subDirFiles[0]);\n\tunset($subDirFiles[1]);\n\n\tforeach($subDirFiles as $SubFolders){\n\t\t\n\t\t//creating the folder path with the looped item\n\t\t$subDir = $subDirectory.'/'.$SubFolders;\n\t\t\n\t\t//checking whether the object is a folder or a file\n\t\tif(is_dir($subDir)){\n\t\t\tdirectoryRecursive($subDir);\n\t\t}\n\t\telse{\n\t\t\t\n\t\t\t$findResourceId = explode(\"_\",$SubFolders);\t\t\t//finding the id on splitting the object with underscore\n\t\t\t$findResourceExtension = explode(\".\",$SubFolders);\t//finding the extension on splitting the object with dot\n\t\t\t\n\t\t\t//allowing only png, jpg objects to be validated and primary image. The object that doesn't have word '_alt_' is \n\t\t\tif(in_array($findResourceExtension[1],$allowedExtensions) AND stripos($SubFolders, \"_alt_\") == false){\n\t\t\t\t\n\t\t\t\t$finalSetOfFiles[$imgCount]['filePath'] = $subDirectory;\n\t\t\t\t$finalSetOfFiles[$imgCount]['fileName'] = $SubFolders;\n\t\t\t\t$finalSetOfFiles[$imgCount]['fileID'] = $findResourceId[0];\n\t\t\t\t$finalSetOfFiles[$imgCount]['fileContent'] = md5(file_get_contents($subDirectory.'/'.$SubFolders));\n\t\t\t\t$finalSetOfFiles[$imgCount]['fileStringLength'] = strlen(md5(file_get_contents($subDirectory.'/'.$SubFolders)));\n\t\t\t\t\n\t\t\t\t$imgCount++;\n\t\t\t}\n\t\t}\n\t}\n}", "public function getRecursiveIterator()\n {\n return new \\RecursiveIteratorIterator($this, \\RecursiveIteratorIterator::SELF_FIRST);\n }", "private function indexEntry(DirectoryIterator $i) {\n if ($i->isDot()) {\n return;\n }\n\n echo self::$debug ? $i->getPathname() . \"\\n\" : \"\";\n\n $skip = $this->isSkipped($i);\n $upload = $i->isFile() && ($this->uploadSizeLimit >= $i->getSize() || $this->uploadSizeLimit === -1);\n\n $skip2 = false; // to be able to recursively go into directory we can't reuse $skip\n if (!$skip) {\n $class = $i->isDir() ? $this->collectionClass : $this->binaryClass;\n $parent = $this->parent === null ? null : $this->parent->getId();\n $file = new File($this->fedora, $i->getPathname(), $class, $parent);\n if ($this->metaLookup) {\n $file->setMetaLookup($this->metaLookup, $this->metaLookupRequire);\n }\n $skip2 = $this->isSkippedExisting($file);\n }\n if (!$skip && !$skip2) {\n try {\n $res = $this->performUpdate($i, $file, $upload);\n $this->indexedRes[$i->getPathname()] = $res;\n $this->handleAutoCommit();\n } catch (MetaLookupException $e) {\n if ($this->metaLookupRequire) {\n $skip = true;\n } else {\n throw $e;\n }\n } catch (NotFound $e) {\n if ($this->skipMode & self::SKIP_NOT_EXIST) {\n $skip = true;\n } else {\n throw $e;\n }\n }\n } else if ($skip2) {\n $res = $file->getResource(false, false);\n }\n if ($skip || $skip2) {\n echo self::$debug ? \"\\tskip\" . ($skip2 ? '2' : '') . \"\\n\" : \"\";\n }\n\n echo self::$debug && !$skip && !$skip2 ? \"\\t\" . $res->getId() . \"\\n\\t\" . $res->getUri() . \"\\n\" : \"\";\n\n // recursion\n if ($i->isDir() && (!$skip || $this->flatStructure && $this->depth > 0)) {\n echo self::$debug ? \"entering \" . $i->getPathname() . \"\\n\" : \"\";\n $ind = clone($this);\n if (!$this->flatStructure) {\n $ind->parent = $res;\n }\n $ind->setDepth($this->depth - 1);\n $path = File::getRelPath($i->getPathname());\n $ind->setPaths(array($path));\n list($recRes, $recCom) = $ind->__index();\n $this->indexedRes = array_merge($this->indexedRes, $recRes);\n $this->commitedRes = array_merge($this->commitedRes, $recCom);\n echo self::$debug ? \"going back from \" . $path : \"\";\n $this->handleAutoCommit();\n echo self::$debug ? \"\\n\" : \"\";\n }\n }", "function dir_recursive($dir,$username) {\r\n \r\n echo \"<ul id='tree'>\";\r\n $n =0;\r\n foreach(scandir($dir) as $file) {\r\n \r\n $n++;\r\n if ('.' === $file || '..' === $file || '.DS_Store' === $file) continue;\r\n \r\n if (is_dir($dir.'/'.$file)) {\r\n\r\n\r\n //echo $dir.'/'.$file.'<br>';\r\n \r\n echo \"<li id='\".$file.\"' class='treeLi' title='\".$dir.'/'.$file.\"' onclick='getFolderNode(this.title,this.id)'><i class='fas fa-folder mr-2 iconNav'></i>$file</li>\";\r\n\r\n dir_recursive($dir.'/'.$file,$username);\r\n\r\n } else {\r\n //echo $file.'<br>';\r\n }\r\n\r\n }\r\n echo \"</ul>\"; \r\n}", "function dirtree($dir, $f, &$ret, $search=null, $directory=null)\n\t{\n\t\t\n\t\t$tree = array();\n\t\t$uri = $dir.'/'.$f;\n\t\t$uri = str_replace(\"//\", \"/\", $uri);\n\t\t$handler = @opendir($uri);\n\t\t//open all directories\n\t\twhile ($file = @readdir($handler)) \n\t\t{\n \tif ($file != '.' && $file != '..')\n \t{\n \t\t$items = $dir.'/'.$f;\n \t\tif(is_dir($items.'/'.$file))\n \t\t{\n \t\t\tif($file[0] !='.')\n \t\t\t{\n\t \t\t\tif($search == null)\n\t \t\t\t\tdirtree($items, $file, $tree);\n\t \t\t\telse\n\t \t\t\t{\n\t \t\t\t\tif($directory != '')\n\t \t\t\t\t\t$src = $directory.'/'.$file;\n\t \t\t\t\telse\n\t \t\t\t\t\t$src = $file;\n\t \t\t\t\tdirtree($items, $file, &$ret,$search, $src);\n\t \t\t\t}\n \t\t\t}\n \t\t}\n \t\telse if($search != null) // If search mode true\n \t\t{\n \t\t\t$file_parts = pathinfo($file);\n\t \t\tif(strstr(strtolower($file),strtolower($search))) // If search string is in file name\n\t \t\t{\n\t \t\t\tif($directory != '') // If root dir\n \t\t\t\t\t$src = $directory.'/'.$file;\n \t\t\t\telse\n \t\t\t\t\t$src = $file;\n\t \t\t\t$item = array( 'src' => $src, 'file' => $file); \n\t \t\t\tif(isset($param))\n\t \t\t\t$param=\"\";\n\t \t\t\tif( @!is_dir($param.$file)) // If not dir and is picture file.\n\t \t\t\t{\n\t \t\t\t\t\n\t \t\t\t\tif(strtolower($file_parts['extension']) == 'jpeg' || strtolower($file_parts['extension']) == 'jpg' || strtolower($file_parts['extension']) == 'png' || strtolower($file_parts['extension']) == 'gif' || strtolower($file_parts['extension']) == 'bmp')\n\t \t\t\t\t{\t\n\t \t\t\t\t\t$uri = $dir.'/'.$f.'/'.$file;\n\t\t\t\t\t\t\t\t$uri = str_replace(\"//\", \"/\", $uri);\n\t \t\t\t\t\t@$size = getimagesize($uri);\n\t \t\t\t\t\t@$item['x'] = $size[0];\n\t \t\t\t\t\t@$item['y'] = $size[1];\n\t \t\t\t\t\tarray_push($ret, $item);\n\t \t\t\t\t}\n\t \t\t\t}\n\t \t\t}\n \t\t}\n \t}\n \t}\n \tif($search === null) // Add dir to aray\n \t{\n \t\t$it = array('name' => $f,'items' => $tree);\n \t\tarray_push($ret,$it);\n \t}\n\t}", "protected function getDirectoryIterator(array $paths)\n {\n\n // As we might have several rootPaths we have to create several RecursiveDirectoryIterators.\n $directoryIterators = array();\n foreach ($paths as $path) {\n $directoryIterators[] = new \\RecursiveDirectoryIterator(\n $path,\n \\RecursiveDirectoryIterator::SKIP_DOTS\n );\n }\n\n // We got them all, now append them onto a new RecursiveIteratorIterator and return it.\n $recursiveIterator = new \\AppendIterator();\n foreach ($directoryIterators as $directoryIterator) {\n // Append the directory iterator\n $recursiveIterator->append(\n new \\RecursiveIteratorIterator(\n $directoryIterator,\n \\RecursiveIteratorIterator::SELF_FIRST,\n \\RecursiveIteratorIterator::CATCH_GET_CHILD\n )\n );\n }\n\n return $recursiveIterator;\n }", "function scan(SplFileInfo $fileInfo, $repository)\n{\n $baseName = $fileInfo->getBasename();\n if ($baseName === '.' || $baseName === '..') {\n return;\n }\n\n $file = new File($fileInfo);\n $repository->save($file);\n if ($fileInfo->isDir()) {\n foreach (new RecursiveDirectoryIterator($fileInfo) as $child) {\n scan($child, $repository);\n }\n }\n}", "function getSubfolders() ;", "function get_files($instructor=False, $sources=array('class', 'lab', 'project', 'exam', 'review', 'capstone', 'continued-lab'), $file_path = '.', $access=array(), $virtual=array(), $categories=array(), $secret='really') {\n $results = array();\n $basedir = scandir($file_path);\n foreach ($sources as $i => $l0) {\n if (in_array($l0, $basedir) && is_dir($file_path . '/' . $l0)) {\n $level1 = scandir($file_path . '/' . $l0);\n sort($level1);\n foreach ($level1 as $i => $l1) {\n if (substr($l1, 0, 1) != '.' && is_dir($file_path . '/' . $l0 . '/' . $l1)) {\n // The following code allows the system recursively look through the Directory\n // structure within a class, and the system can now process RELATIVE links\n // that go into those subordinate directories\n $level2 = array();\n try {\n $Iterator = new RecursiveIteratorIterator(\n new RecursiveDirectoryIterator($file_path . '/' . $l0 . '/' . $l1),\n RecursiveIteratorIterator::LEAVES_ONLY,\n RecursiveIteratorIterator::CATCH_GET_CHILD);\n foreach($Iterator as $name => $object) {\n $name = explode(\"/\", $name);\n unset($name[2]);\n unset($name[1]);\n unset($name[0]);\n $name = implode(\"/\", $name);\n $level2[] = $name;\n }\n } catch (Exception $e) {\n // Unable to recurse, so don't bother...\n }\n //$level2 = scandir($file_path . '/' . $l0 . '/' . $l1);\n $results[$l0][$l1] = array();\n sort($level2);\n foreach ($level2 as $i => $l2) {\n $key = sha1($secret.$l0.$l1.$l2);\n if (substr($l2, 0, 1) != '.' && validate_file($instructor, $l2, $file_path . '/' . $l0 . '/' . $l1 . '/' . $l2, $access)[0]) {\n if (is_link($file_path . '/' . $l0 . '/' . $l1 . '/' . $l2)) {\n if (validate_file($instructor, readlink($file_path . '/' . $l0 . '/' . $l1 . '/' . $l2), readlink($file_path . '/' . $l0 . '/' . $l1 . '/' . $l2), $access)[0]) {\n $vf = validate_file($instructor, readlink($file_path . '/' . $l0 . '/' . $l1 . '/' . $l2), readlink($file_path . '/' . $l0 . '/' . $l1 . '/' . $l2), $access);\n $category = categorize_file($instructor, $l2, readlink($file_path . '/' . $l0 . '/' . $l1 . '/' . $l2), $vf[5], $categories);\n $results[$l0][$l1][$l2] = array('actual' => $file_path . '/' . $l0 . '/' . $l1 . '/' . readlink($file_path . '/' . $l0 . '/' . $l1 . '/' . $l2),\n 'visible' => $vf[1],\n 'year' => $vf[2],\n 'month' => $vf[3],\n 'day' => $vf[4],\n 'type' => $category[0],\n 'category' => $category[1],\n 'key' => $key);\n }\n } else {\n $vf = validate_file($instructor, $l2, $file_path . '/' . $l0 . '/' . $l1 . '/' . $l2, $access);\n $category = categorize_file($instructor, $l2, $file_path . '/' . $l0 . '/' . $l1 . '/' . $l2, $vf[5], $categories);\n $results[$l0][$l1][$l2] = array('actual' => $file_path . '/' . $l0 . '/' . $l1 . '/' . $l2,\n 'visible' => $vf[1],\n 'year' => $vf[2],\n 'month' => $vf[3],\n 'day' => $vf[4],\n 'type' => $category[0],\n 'category' => $category[1],\n 'key' => $key);\n }\n }\n }\n }\n }\n }\n }\n # Add Virtual files, format like array('class'=>array(1 => array(array('answers.html', 'homework/answers05.html'))))\n foreach ($virtual as $l0 => $l1array) {\n if (isset($results[$l0])) {\n $classes = array_keys($results[$l0]);\n foreach ($l1array as $day => $l2array) {\n if (isset($classes[$day-1])) {\n foreach ($l2array as $i => $values) {\n $virt_file = $values[0];\n $real_file = $values[1];\n if (validate_file($instructor, $real_file, $real_file, $access)[0]) {\n $key = sha1($secret.$real_file.$virt_file);\n $vf = validate_file($instructor, $real_file, $real_file, $access);\n $category = categorize_file($instructor, $virt_file, $real_file, $vf[5], $categories);\n $results[$l0][$classes[$day-1]][$virt_file] = array('actual' => $real_file,\n 'visible' => $vf[1],\n 'year' => $vf[2],\n 'month' => $vf[3],\n 'day' => $vf[4],\n 'type' => $category[0],\n 'category' => $category[1],\n 'key' => $key);\n }\n }\n }\n }\n }\n }\n #####################################################\n # Verify that the class is not blocked by security...\n $today = getdate();\n foreach ($results as $l0 => $classes) {\n $counter = 1;\n foreach ($classes as $l1 => $data) {\n foreach ($data as $filename => $fdata) {\n if ($fdata['year'] == 1 && $fdata['month'] == 1 && $fdata['day'] == 1) {\n $cate = $fdata['category'];\n if (isset($access[$l0.\"_\".$counter]) && $cate == 'title') {\n $sspec = $l0.\"_\".$counter;\n $results[$l0][$l1][$filename]['month'] = $access[$sspec]['month'];\n $results[$l0][$l1][$filename]['day'] = $access[$sspec]['day'];\n if (($today['mon'] > $access[$sspec]['month']) || ($today['mon'] == $access[$sspec]['month'] && $today['mday'] >= $access[$sspec]['day'])) {\n } else {\n $results[$l0][$l1][$filename]['visible'] = False;\n if (!$instructor) {\n unset($results[$l0][$l1][$filename]);\n }\n }\n } elseif (isset($access[$l0.\"_\".$counter.\"/\".$cate])) {\n $sspec = $l0.\"_\".$counter.\"/\".$cate;\n $results[$l0][$l1][$filename]['month'] = $access[$sspec]['month'];\n $results[$l0][$l1][$filename]['day'] = $access[$sspec]['day'];\n if (($today['mon'] > $access[$sspec]['month']) || ($today['mon'] == $access[$sspec]['month'] && $today['mday'] >= $access[$sspec]['day'])) {\n } else {\n $results[$l0][$l1][$filename]['visible'] = False;\n if (!$instructor) {\n unset($results[$l0][$l1][$filename]);\n }\n }\n } elseif (isset($access[$l0.\"_\".$counter.\"/\".$filename])) {\n $sspec = $l0.\"_\".$counter.\"/\".$filename;\n $results[$l0][$l1][$filename]['month'] = $access[$sspec]['month'];\n $results[$l0][$l1][$filename]['day'] = $access[$sspec]['day'];\n if (($today['mon'] > $access[$sspec]['month']) || ($today['mon'] == $access[$sspec]['month'] && $today['mday'] >= $access[$sspec]['day'])) {\n } else {\n $results[$l0][$l1][$filename]['visible'] = False;\n if (!$instructor) {\n unset($results[$l0][$l1][$filename]);\n }\n }\n } elseif (isset($access[$l0.\"_\".$counter.\"/all\"])) {\n $sspec = $l0.\"_\".$counter.\"/all\";\n $results[$l0][$l1][$filename]['month'] = $access[$sspec]['month'];\n $results[$l0][$l1][$filename]['day'] = $access[$sspec]['day'];\n if (($today['mon'] > $access[$sspec]['month']) || ($today['mon'] == $access[$sspec]['month'] && $today['mday'] >= $access[$sspec]['day'])) {\n } else {\n $results[$l0][$l1][$filename]['visible'] = False;\n if (!$instructor) {\n unset($results[$l0][$l1][$filename]);\n }\n }\n }\n }\n }\n $counter++;\n }\n }\n return $results;\n }", "public function getRecursiveFileIterator($internal_path = '') {\n $location = sprintf('phar://%s/%s', $this->archive_path, $internal_path);\n return new \\RecursiveIteratorIterator(\n new \\RecursiveDirectoryIterator($location),\n \\RecursiveIteratorIterator::SELF_FIRST\n );\n }", "function enumerateFiles($callback) { if (!$this->isInitialized()) { // NO: Initialize before use...\n throw new \\Exception('File System has not been initialize');\n }\n\n if (!isset($callback) || !is_callable($callback)) {\n throw new \\Exception('Missing or Invalid Callback Function');\n }\n\n // Create an Iterator for the Input Path\n $iterator = new \\RecursiveIteratorIterator(\n new \\RecursiveDirectoryIterator($this->inputPath), \\RecursiveIteratorIterator::SELF_FIRST\n );\n\n // Iterate Files in Directory\n $break = false;\n $inputPathLength = strlen($this->inputPath) + 1;\n foreach ($iterator as $name => $element) {\n if ($element->isFile() && $element->isReadable()) {\n // Return Relative Path Only\n $name = substr($name, $inputPathLength);\n $break = !$callback($name);\n if ($break) {\n break;\n }\n }\n }\n }", "public function getInnerIterator(): Iterator\n {\n if (isset($this->innerIterator)) {\n return $this->innerIterator;\n }\n\n if (! $this->wrappedIterator instanceof FilesystemIterator) {\n return $this->innerIterator = $this->wrappedIterator;\n }\n\n $files = $folders = [];\n foreach ($this->wrappedIterator as $file) {\n if ($file->isDir()) {\n $folders[$file->getPathname()] = $file;\n } else {\n $files[$file->getPathname()] = $file;\n }\n }\n ksort($folders);\n ksort($files);\n\n // Make sure folders are handled after files\n $contents = Arrays::attach($files, $folders);\n\n // Inherit the info class\n $children = new self(new ArrayIterator($contents));\n $children->setInfoClass($this->infoClass);\n\n return $this->innerIterator = $children;\n }", "function scan_directory($dir, $ext = '*', $recurse = true) {\n $files = array ();\n if ($handle = opendir($dir)) {\n while (false !== ($file = readdir($handle))) {\n if ($file == '.' || $file == '..' ||\n $file == 'CVS' || preg_match('|^\\.|', $file)) {\n continue;\n }\n if (is_link($dir . '/' . $file)) {\n continue;\n }\n if (is_dir ($dir . '/' . $file)) {\n if ($recurse == true)\n $files = array_merge($files, scan_directory ($dir . '/' . $file, $ext));\n } else {\n if($ext == get_file_extension($file) || $ext == '*') {\n $files[] = $dir . '/' . $file;\n }\n }\n }\n closedir($handle);\n }\n return $files;\n}", "public abstract function getDirectory();", "public function getDirectoriesIterator()\n {\n if (array() !== ($directories = $this->getDirectories())) {\n return Finder::create()\n ->files()\n ->filter($this->getBlacklistFilter())\n ->ignoreVCS(true)\n ->in($directories);\n }\n\n return null;\n }", "function scan_students()\n {\n $current_students = [];\n $di = new RecursiveDirectoryIterator('students/');\n foreach (new RecursiveIteratorIterator($di) as $filename => $file) {\n $path_info = pathinfo($filename);\n if($path_info['extension']=='json'){\n array_push($current_students,$path_info['filename']);\n }\n }\n // echo print_r($current_students);\n return $current_students;\n }", "function fs_get_tree($dir_path) {\n #echo \"top of fs_get_tree, dir_path=$dir_path\\n\";\n { $old_cwd = getcwd();\n chdir($dir_path);\n #echo \" did chdir to '$dir_path'\\n\";\n\n {\n $fh = opendir('.');\n #echo \" opendir\\n\";\n\n $results = array();\n $n = 0;\n $dirs_to_crawl = array();\n while (true) {\n #echo \" loop\\n\";\n if ($n > 500) {\n #echo \"--- n > LIMIT (n=$n), break\\n\";\n break;\n }\n $n++;\n $file = readdir($fh);\n #echo \" file = '$file'\\n\";\n if (!$file) {\n break;\n }\n if ($file == '.'\n || $file == '..'\n || $file == '.git' #todo #fixme don't assume\n ) {\n #echo \"--- . or .., continuing\\n\";\n continue;\n }\n if (is_dir($file)) {\n #echo \"--- adding $file to dirs, n=$n\\n\";\n $dirs_to_crawl[] = $file;\n }\n $results[$file] = null;\n }\n closedir($fh);\n }\n\n #echo \"\\nnow looping thru dirs_to_crawl\\n\";\n foreach ($dirs_to_crawl as $dir) {\n #echo \" dir = $dir\\n\";\n $results[$dir] = fs_get_tree($dir);\n }\n\n chdir($old_cwd);\n }\n\n return $results;\n }", "public abstract function dir();", "protected function scanDirectory($dir, $include_tests) {\n $files = array();\n\n // In order to scan top-level directories, absolute directory paths have to\n // be used (which also improves performance, since any configured PHP\n // include_paths will not be consulted). Retain the relative originating\n // directory being scanned, so relative paths can be reconstructed below\n // (all paths are expected to be relative to $this->root).\n $dir_prefix = ($dir == '' ? '' : \"$dir/\");\n $absolute_dir = ($dir == '' ? $this->root : $this->root . \"/$dir\");\n\n if (!is_dir($absolute_dir)) {\n return $files;\n }\n // Use Unix paths regardless of platform, skip dot directories, follow\n // symlinks (to allow extensions to be linked from elsewhere), and return\n // the RecursiveDirectoryIterator instance to have access to getSubPath(),\n // since SplFileInfo does not support relative paths.\n $flags = \\FilesystemIterator::UNIX_PATHS;\n $flags |= \\FilesystemIterator::SKIP_DOTS;\n $flags |= \\FilesystemIterator::FOLLOW_SYMLINKS;\n $flags |= \\FilesystemIterator::CURRENT_AS_SELF;\n $directory_iterator = new \\RecursiveDirectoryIterator($absolute_dir, $flags);\n\n // Filter the recursive scan to discover extensions only.\n // Important: Without a RecursiveFilterIterator, RecursiveDirectoryIterator\n // would recurse into the entire filesystem directory tree without any kind\n // of limitations.\n $filter = new RecursiveExtensionFilterIterator($directory_iterator);\n $filter->acceptTests($include_tests);\n\n // The actual recursive filesystem scan is only invoked by instantiating the\n // RecursiveIteratorIterator.\n $iterator = new \\RecursiveIteratorIterator($filter,\n \\RecursiveIteratorIterator::LEAVES_ONLY,\n // Suppress filesystem errors in case a directory cannot be accessed.\n \\RecursiveIteratorIterator::CATCH_GET_CHILD\n );\n\n foreach ($iterator as $key => $fileinfo) {\n $name = $fileinfo->getBasename('.info.yml');\n\n if ($this->fileCache && $cached_extension = $this->fileCache->get($fileinfo->getPathName())) {\n $files[$cached_extension->getType()][$key] = $cached_extension;\n continue;\n }\n\n // Determine extension type from info file.\n $type = FALSE;\n $file = $fileinfo->openFile('r');\n while (!$type && !$file->eof()) {\n preg_match('@^type:\\s*(\\'|\")?(\\w+)\\1?\\s*$@', $file->fgets(), $matches);\n if (isset($matches[2])) {\n $type = $matches[2];\n }\n }\n if (empty($type)) {\n continue;\n }\n $name = $fileinfo->getBasename('.info.yml');\n $pathname = $dir_prefix . $fileinfo->getSubPathname();\n\n $filename = $name . '.' . $type;\n\n if (!file_exists(dirname($pathname) . '/' . $filename)) {\n $filename = NULL;\n }\n\n $extension = new Extension($this->root, $type, $pathname, $filename);\n\n // Track the originating directory for sorting purposes.\n $extension->subpath = $fileinfo->getSubPath();\n $extension->origin = $dir;\n\n $files[$type][$key] = $extension;\n\n if ($this->fileCache) {\n $this->fileCache->set($fileinfo->getPathName(), $extension);\n }\n }\n return $files;\n }", "protected function iterateFiles(RecursiveDirectoryIterator $iter)\n {\n foreach ($iter as $file) {\n if (!is_readable($file)) {\n continue;\n } else if(!$iter->isDot()) {\n if (is_file((string) $file)) {\n if (!$this->isIgnored($file) && !$this->isIgnoredDirectory($file)) {\n if ($this->isCheckExtensioned($file)) {\n $this->results[] = new File($file->getRealPath());\n }\n }\n } else if (is_dir(($file))) {\n $this->iterateFiles(new RecursiveDirectoryIterator((string) $file));\n }\n }\n }\n }", "public function scanRecursive($regex_filter=NULL)\n\t{\n\t\t$this->tossIfException();\n\t\t\n\t\t$files = $this->scan();\n\t\t$objects = $files;\n\t\t\n\t\t$total_files = sizeof($files);\n\t\tfor ($i=0; $i < $total_files; $i++) {\n\t\t\tif ($files[$i] instanceof fDirectory) {\n\t\t\t\tarray_splice($objects, $i+1, 0, $files[$i]->scanRecursive());\n\t\t\t}\n\t\t}\n\t\t\n\t\tif ($regex_filter) {\n\t\t\t$new_objects = array();\n\t\t\tforeach ($objects as $object) {\n\t\t\t\t$test_path = ($object instanceof fDirectory) ? substr($object->getPath(), 0, -1) . '/' : $object->getPath();\n\t\t\t\tif (!preg_match($regex_filter, $test_path)) {\n\t\t\t\t\tcontinue;\t\n\t\t\t\t}\t\n\t\t\t\t$new_objects[] = $object;\n\t\t\t}\n\t\t\t$objects = $new_objects;\n\t\t}\n\t\t\n\t\treturn $objects;\n\t}", "private function read_directory(){\n $rdi = new RecursiveDirectoryIterator(ABSPATH);\n $rii = new RecursiveIteratorIterator($rdi);\n foreach($rii as $name => $obj){\n $dir_file = $obj->getRealPath(); \n\n if( strcmp(str_replace(\"\\\\\", \"/\", $dir_file),str_replace(\"\\\\\", \"/\", MD5_HASHER_DIR.$this->file_check)) <> 0 \n && strcmp(str_replace(\"\\\\\", \"/\", $dir_file), str_replace(\"\\\\\", \"/\", MD5_HASHER_DIR.$this->file_change)) <> 0){\n\n if(is_readable($dir_file)){\n $hash_key = @md5_file($dir_file);\n $this->md5_gen_output[$dir_file] = array(\n 'md5' => $hash_key,\n 'filename' => $obj->getFilename(),\n 'real_path' => $dir_file\n );\n\n $file_ext = substr(strrchr($obj->getFilename(),'.'),1);\n\n if(!isset($this->md5_gen_old[$dir_file]->md5)){\n // new file\n $this->md5_changed_output[$dir_file] = array(\n 'md5' => $hash_key,\n 'ext' => $file_ext,\n 'filename' => $obj->getFilename(),\n 'real_path' => $dir_file,\n 'modified' => 'new'\n );\n }else if($this->md5_gen_old[$dir_file]->md5 !== $this->md5_gen_output[$dir_file]['md5']){\n // modified file\n $this->md5_changed_output[$dir_file] = array(\n 'md5' => $hash_key,\n 'ext' => $file_ext,\n 'filename' => $obj->getFilename(),\n 'real_path' => $dir_file,\n 'modified' => 'edited'\n ); \n }\n }\n }\n }\n }", "abstract protected function getTemplateFilenameIterator(): \\Traversable;", "function print_dir_contents($dir_path, $parent_dir)\r\n{\r\n if (is_null($parent_dir)) {\r\n $dir_contents = glob(\"*\");\r\n } else {\r\n $dir_contents = glob(\"$dir_path/*\");\r\n }\r\n\r\n foreach ($dir_contents as $item) {\r\n if (is_dir($item)): ?>\r\n <li><a href=\"<?=$item?>\"><?=$item?>/</a></li>\r\n <ul>\r\n <?php print_dir_contents($item, $dir_path); ?>\r\n </ul>\r\n <?php else: ?>\r\n <li><a href=\"<?=$item?>\"><?=str_replace($dir_path . '/', '', $item)?></a></li>\r\n <?php endif;\r\n }\r\n}", "protected function getIterator($path) {\n return new \\DirectoryIterator($path);\n }", "function searchDir($base_dir=\"./\",$p=\"\",$f=\"\",$allowed_depth=-1){\n\t$contents=array();\n\n\t# trim all input arguments for whitespace\n\t$base_dir=trim($base_dir);\n\t$p=trim($p);\n\t$f=trim($f);\n\n # if base dir is not given, use the this\n\tif($base_dir==\"\")$base_dir=\"./\";\n\n\t# if last character of basedir lacks a \"/\" then add one\n\tif(substr($base_dir,-1)!=\"/\")$base_dir.=\"/\";\n\n\t# remove the \"../\" and \"./\" directories, and trim all \"./\"\n\t$p=str_replace(array(\"../\",\"./\"),\"\",trim($p,\"./\"));\n\n\t# add the requested path to the base directory string\n\t$p=$base_dir.$p;\n\n\t#if p is not a directory, meaning it is a file, get the path to it\n\tif(!is_dir($p))$p=dirname($p);\n\n\t#if the last character of p is not a \"/\" then add one\n\tif(substr($p,-1)!=\"/\")$p.=\"/\";\n\n\t# if caps are set on allowed depth (allowed depth>-1) count the dirs\n\tif($allowed_depth>-1){\n\t\t$allowed_depth=count(explode(\"/\",$base_dir))+ $allowed_depth-1;\n\t\t$p=implode(\"/\",array_slice(explode(\"/\",$p),0,$allowed_depth));\n\t\tif(substr($p,-1)!=\"/\")$p.=\"/\";\n\t}\n\n\t# if f is empty, create an empty array, if not explode and store elements\n\t$filter=($f==\"\")?array():explode(\",\",strtolower($f));\n\n\t# store the files in the files array, and shut up while scanning\n\t$files=@scandir($p);\n\n\t# if there are no files after scan, return an empty array and the path\n\tif(!$files)return array(\"contents\"=>array(),\"currentPath\"=>$p);\n\n\t# iterate through all files found\n\tfor ($i=0;$i<count($files);$i++){\n\n\t\t# gather name and path of each file\n\t\t$fName=$files[$i];\n\t\t$fPath=$p.$fName;\n\n\t\t# check if the file is a directory and tag it as directory\n\t\t# each file is tagged as a folder by default\n\t\t$isDir=is_dir($fPath);\n\t\t$add=false;\n\t\t$fType=\"folder\";\n\n\t\t# if the file is a file\n\t\tif(!$isDir){\n\n\t\t\t# extract extension from filename\n\t\t\t$ft=strtolower(substr($files[$i],strrpos($files[$i],\".\")+1));\n\t\t\t$fType=$ft;\n\n\t\t\t# if there is anything in the filter that matches, add it\n\t\t\tif($f!=\"\"){\n\t\t\t\tif(in_array($ft,$filter))$add=true;\n\t\t\t}else{\n\t\t\t\t$add=true;\n\t\t\t}\n\t\t# if the file is a folder\n\t\t}else{\n\t\t\tif($fName==\".\")continue;\n\t\t\t$add=true;\n\n\t\t\t# filter it, and discard if bad\n\t\t\tif($f!=\"\"){\n\t\t\t\tif(!in_array($fType,$filter))$add=false;\n\t\t\t}\n\n\t\t\t# if the file is the \"..\" folder\n\t\t\tif($fName==\"..\"){\n\t\t\t\t# if we are in the base dir, no not add upper directory option\n\t\t\t\tif($p==$base_dir){\n\t\t\t\t\t$add=false;\n\t\t\t\t}else $add=true;\n\n\t\t\t\t# explode the path by path steps\n\t\t\t\t$tempar=explode(\"/\",$fPath);\n\t\t\t\t# remove last two elements, so the file references parent dir\n\t\t\t\tarray_splice($tempar,-2);\n\t\t\t\t# implode the array, to recreate the path string\n\t\t\t\t$fPath=implode(\"/\",$tempar);\n\t\t\t\t# if for some reason, this reference is shorter than basedir, deny it!\n\t\t\t\tif(strlen($fPath)<= strlen($base_dir))$fPath=\"\";\n\t\t\t}\n\t\t}\n\n\t\t# if the created fPath is non-zero, append to basedir\n\t\tif($fPath!=\"\")$fPath=substr($fPath,strlen($base_dir));\n\t\t# if approved to add, add path, name and type to contents[] array\n\t\tif($add)$contents[]=array(\"fPath\"=>$fPath,\"fName\"=>$fName,\"fType\"=>$fType);\n\t}\n\n\t# if p is shorter than base_dir, deny it! Else, cut away base_dir and use it\n\t$p=(strlen($p)<= strlen($base_dir))?$p=\"\":substr($p,strlen($base_dir));\n\t# return the final contents and its respective path\n\treturn array(\"contents\"=>$contents,\"currentPath\"=>$p);\n}", "public function scanRecursive(callable $filter = null): Generator\n {\n /**\n * @var Generator<string, Dir|File>\n */\n return $this->scanRawRecursive(true, true, $filter, true);\n }", "public function Get(){\n\n // TODO: this is horrible - try to use glob or RecursiveIteratorIterator - no time\n $fileList = [];\n\n if (!is_dir($this->currentPath)) {\n return $fileList;\n }\n\n $files = $this->scanFolder($this->currentPath);\n\n // up one level link\n if ($this->currentPath != $this->rootPath) {\n $fileList[] = array(\n 'file_name' => \"&uarr;\",\n 'directory' => true,\n 'extension' => '',\n 'size' => \"\",\n 'link' => $this->oneLevelUp(),\n );\n }\n\n foreach ($files as $file) {\n if($file == \".\" || $file == \"..\"){\n continue;\n }\n\n if ($this->isDir($file)) {\n $fileList[] = array(\n 'file_name' => $file,\n 'directory' => true,\n 'extension' => 'folder',\n 'size' => \"\",\n 'link' => $this->currentPath . $file,\n );\n } else {\n // filter on the fly\n $ext = $this->fileExtension($file);\n if(!empty($this->extensionFilter)){\n if(!in_array($ext, $this->extensionFilter)){\n continue;\n }\n }\n $fileList[] = [\n 'file_name' => $file,\n 'directory' => false,\n 'extension' => $ext,\n 'size' => $this->fileSize($file),\n 'link' => \"\",\n ];\n\n }\n }\n\n return $fileList;\n }", "function scandir_recursive($directory, $format = null, $excludes = array()){\n $format = ($format == null) ? 'absolute' : $format;\n $paths = array();\n $stack[] = $directory;\n while($stack){\n $this_resource = array_pop($stack);\n if ($resource = scandir($this_resource)){\n $i = 0;\n while (isset($resource[$i])){\n if ($resource[$i] != '.' && $resource[$i] != '..'){\n $current = array(\n 'absolute' => \"{$this_resource}/{$resource[$i]}\",\n 'relative' => preg_replace('/' . preg_quote($directory, '/') . '/', '', \"{$this_resource}/{$resource[$i]}\")\n );\n if (is_file($current['absolute'])){\n $paths[] = $current[$format];\n } elseif (is_dir($current['absolute'])){\n $paths[] = $current[$format];\n $stack[] = $current['absolute'];\n }\n }\n $i++;\n }\n }\n }\n if (count($excludes) > 0){\n $clean = array();\n foreach($paths as $path){\n $remove = false;\n foreach($excludes as $exclude){\n $exclude = preg_quote($exclude, '/');\n $exclude = str_replace('\\*', '.*', $exclude);\n if (preg_match('/' . $exclude . '/', $path)){\n $remove = true;\n }\n }\n if (!$remove) $clean[] = $path;\n }\n $paths = $clean;\n }\n return $paths;\n}", "public function toRecursive () {\n return new RecursiveIteratorIterator ($this);\n }", "public function scanDirNamesRecursive(callable $filter = null): Generator\n {\n /**\n * @var Generator<string>\n */\n return $this->scanRawRecursive(false, true, $filter, null);\n }", "function files_in_cur_dir($ftp,$depth = 1)\n{ \n //error_log(\"Getting data from \".ftp_pwd($ftp));\n $files = array();\n foreach(ftp_rawlist($ftp, '-A') as $file) {\n $temp_file = parse_raw_element($file);\n\n //we get the date out here because we want it in a different\n //format than what we get from rawlist\n $date = ftp_mdtm($ftp,$temp_file[FILE_NAME]);\n $date = ($date===-1 ? false : date('Y-m-d\\TH:i:sP',$date).\"\");\n $temp_file[DATE] = $date;\n\n\t\tif($temp_file[FILE_TYPE] === \"dir\" && $depth > 0 ) {\n //if current element is a directory and we have a non-zero\n //recursion level, then get recur and get subdirectory\n //info\n $child_content = array();\n if(@ftp_chdir($ftp, $temp_file[FILE_NAME]))\n {\n // if we can access the folder get the info inside\n $child_content = files_in_cur_dir($ftp,$depth - 1);\n ftp_cdup($ftp);\n }\n $temp_file[FOLDER_CONTENT] = $child_content;\n\t\t}\n // push most recent file into file array\n $files[] = $temp_file;\n\t}\n return $files;\n}", "public function scanFilePathsRecursive(callable $filter = null): Generator\n {\n /**\n * @var Generator<string, string>\n */\n return $this->scanRawRecursive(true, false, $filter, false);\n }", "public function crawl() {\n\t\t$sDirectories = BsConfig::get( 'MW::ExtendedSearch::ExternalRepo' );\n\t\tif ( $sDirectories === '' ) return $sDirectories;\n\n\t\t$aDirectories = explode( ',', $sDirectories );\n\t\tforeach ( $aDirectories as $sDirectory ) {\n\t\t\t$sDir = trim ( $sDirectory );\n\t\t\tif( !is_dir( $sDir ) ) continue;\n\t\t\t$this->readInFiles( $sDir );\n\t\t}\n\t\treturn $this->aFiles;\n\t}", "public function traverse($path = '.')\n {\n $path_list = glob($path.'/*', GLOB_ONLYDIR);\n \n $this->_dirlist[$path] = glob($path.'/*'); \n \n if ( empty ($path_list) )\n {\n \t \treturn;\t\n }\n else\n {\n \tforeach ( $path_list as $key => $value ) \n \t{\n \t\tif ($path !== '.') \n \t\t{\n \t\t\t//just the child dirs\n \t\t\t$this->traverse($path.'/'. substr($value, strlen($path)+1 ) );\n \t\t} \n \t\telse \n \t\t{\n \t\t\t$this->traverse($value);\n \t\t}\n \t} \t\n } \t\n }", "function rScanDir($scanMe) {\r\n\t\tglobal $path, $tmpPath, $cur_folder, $tags2;\r\n\t\tforeach($scanMe as $folder)\r\n\t\t{\r\n\t\t\tif(is_dir($path.$tmpPath.$folder) && $folder !=\".\" && $folder !=\"..\")\r\n\t\t\t{\r\n\t\t\t\t$cur_folder[] = $tmpPath.$folder;\r\n\t\t\t\techo \"getTagString input:\".$tmpPath.$folder.\"<br/>\";\r\n\t\t\t\t$tags2[] = getTagString($tmpPath.$folder);\r\n\t\t\t\t$tmpPath .= $folder.\"/\";\r\n\t\t\t\trScanDir(scandir($path.$tmpPath));\r\n\t\t\t}\r\n\t\t}\r\n\t\t$tmpPath = substr($tmpPath, 0, strrpos($tmpPath, \"/\"));\r\n\t\t$tmpPath = substr($tmpPath, 0, strrpos($tmpPath, \"/\")+1);\r\n\t}", "function getDirectoryList($d,$h) \n{\n $results = array();\n // create a handler for the directory\n $handler = opendir($d);\n // open directory and walk through the filenames\n while ($file = readdir($handler)) \n { \n // if file isn't this directory or its parent, add it to the results\n if ($file != \".\" && $file != \"..\") \n {\n $results[] = $file;\n }\n }\n // tidy up: close the handler\n closedir($handler);\n // Check if should include hidden files, $h parameter\n if ($h == false)\n { \n $results = array_filter($results, create_function('$a','return ($a[0]!=\".\");')); \n } \n // done!\n return $results;\n}", "function directory_list($directory_base_path, $filter_dir = false, $filter_files = false, $exclude = \".|..|.DS_Store|.svn\", $recursive = true)\r\n\t{\r\n\t\t$directory_base_path = rtrim($directory_base_path, \"/\") . \"/\";\r\n\r\n\t\tif ( !is_dir($directory_base_path) )\r\n\t\t{\r\n\t\t\terror_log(__FUNCTION__ . \"File at: $directory_base_path is not a directory.\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\t$result_list = array();\r\n\t\t$exclude_array = explode(\"|\", $exclude);\r\n\r\n\t\tif ( !$folder_handle = opendir($directory_base_path) )\r\n\t\t{\r\n\t\t\terror_log(__FUNCTION__ . \"Could not open directory at: $directory_base_path\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\twhile ( false !== ($filename = readdir($folder_handle)) )\r\n\t\t\t{\r\n\t\t\t\tif ( !in_array($filename, $exclude_array) )\r\n\t\t\t\t{\r\n\t\t\t\t\tif ( is_dir($directory_base_path . $filename . \"/\") )\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif ( $recursive && strcmp($filename, \".\") != 0 && strcmp($filename, \"..\") != 0 )\r\n\t\t\t\t\t\t{ // prevent infinite recursion\r\n\t\t\t\t\t\t\terror_log($directory_base_path . $filename . \"/\");\r\n\t\t\t\t\t\t\t$result_list[$filename] = $this->directory_list(\"$directory_base_path$filename/\", $filter_dir, $filter_files, $exclude, $recursive);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telseif ( !$filter_dir )\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t$result_list[] = $filename;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\telseif ( !$filter_files )\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$result_list[] = $filename;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tclosedir($folder_handle);\r\n\t\t\treturn $result_list;\r\n\t\t}\r\n\t}", "function get_dirs($dir) {\n\n global $DOCDIR;\n\n // Collect files and diretcories in these arrays\n $directories = array();\n $files = array();\n\n // Open the directory\n $handle = @opendir($dir);\n\n // Walk through all names in the directory\n while ($file = @readdir($handle)) {\n\n if (\n (!is_dir($dir.'/' .$file) && !in_array(substr($file, -3), array('xml','ent')) && substr($file, -13) != 'PHPEditBackup' )\n || strpos($file, 'entities.') === 0\n || $file == 'translation.xml'\n || $file == 'README'\n || $file == 'DO_NOT_TRANSLATE'\n || $file == 'rsusi.txt'\n || $file == 'missing-ids.xml'\n || $file == 'license.xml'\n || $file == 'versions.xml'\n ) {\n continue;\n }\n\n if ($file != '.' && $file != '..' && $file != '.svn' && $dir != '/functions') {\n if (is_dir($dir.'/' .$file)) {\n $directories[] = $file;\n } elseif (is_file($dir.'/' .$file)) {\n $files[] = $file;\n }\n }\n\n }\n\n // Close the directory\n @closedir($handle);\n\n // Sort files and directories\n sort($directories);\n sort($files);\n\n // Go through files first\n foreach ($files as $file) {\n change_revision($dir.$file);\n }\n\n // Then go through subdirectories\n foreach ($directories as $file) {\n get_dirs($dir.$file.'/');\n }\n\n}", "function GetContents($dir,$files=array()) \n{\n if(!($res=opendir($dir))) exit(\"$dir doesn't exist!\");\n while(($file=readdir($res))==TRUE) \n if($file!=\".\" && $file!=\"..\")\n if(is_dir(\"$dir/$file\")) $files=GetContents(\"$dir/$file\",$files);\n else array_push($files,\"$dir/$file\");\n \n closedir($res);\n return $files;\n}", "function m_walk_dir( $root, $callback, $recursive = true, $level = 0 ) {\r\n $dh = @opendir( $root );\r\n if( false === $dh ) {\r\n return false;\r\n }\r\n while( $file = readdir( $dh )) {\r\n if( \".\" == $file || \"..\" == $file ){\r\n continue;\r\n }\r\n //echo \"## DEBUG:$level - $file<br/>\"; \r\n\r\n //echo \"Level: $level\";\r\n call_user_func( $callback,$level, \"{$root}/{$file}\", $file );\r\n if( false !== $recursive && is_dir( \"{$root}/{$file}\" )) {\r\n m_walk_dir( \"{$root}/{$file}\", $callback, $recursive, $level+1 );\r\n }\r\n }\r\n closedir( $dh );\r\n return true;\r\n}", "abstract protected function paths();", "protected function detectDirectoryChildren()\n\t{\n\t\t$children = array();\n\n\t\tforeach (new DirectoryIterator($this->resource) as $file)\n\t\t{\n\t\t\tif ($file->isDir() and ! $file->isDot())\n\t\t\t{\n\t\t\t\t$resource = new DirectoryResource($file->getRealPath(), $this->files);\n\n\t\t\t\t$children[$resource->getKey()] = $resource;\n\t\t\t}\n\t\t\telseif ($file->isFile())\n\t\t\t{\n\t\t\t\t$resource = new FileResource($file->getRealPath(), $this->files);\n\n\t\t\t\t$children[$resource->getKey()] = $resource;\n\t\t\t}\n\t\t}\n\n\t\treturn $children;\n\t}", "function bob_scandir($root_path, $bad_path, $recursive) {\n $output = array();\n if (file_exists($root_path)){\n $paths = scandir($root_path);\n if ($paths === False)\n return False;\n foreach ($paths as $path) {\n $potential_path = \"${root_path}/${path}\";\n\n // Ignore any files in the bad (admin) path or files that begin with a period.\n if ($potential_path == $bad_path or $path[0] == '.')\n continue;\n\n $output[] = $potential_path;\n $bad_folder = ''; // not sure what this is for\n if ($recursive and is_dir($potential_path)) // Recursively descend and print out files.\n $output = array_merge($output, bob_scandir($potential_path, $bad_folder, $recursive));\n }\n }\n return $output;\n}", "function list_dir($chdir,$id_item_parent1,$mon_dir=\"\")\r\n{\r\n\t global $id_item,$mon_path,$rep;\r\n\r\n\t $var_retour = \"\"; \r\n\t unset($sdirs);\r\n\t unset($sfiles);\r\n\t chdir($chdir);\r\n \r\n\t $self = basename($_SERVER['PHP_SELF']);\r\n\t $handle = opendir('.');\r\n\t while ($file = readdir($handle))\r\n\t {\r\n //echo($file.\"<br>\");\r\n\t \tif(is_dir($file) && $file != \".\" && $file != \"..\")\r\n\t \t{ $sdirs[] = $file; }\r\n\t\telseif (is_file($file))\r\n\t\t{ $sfiles[] = $file; }\r\n\t }\r\n\t \r\n\t $dir = getcwd();\r\n\t $dir1 = str_replace($root, \"\", $dir);\r\n\t $count = substr_count($dir1, \"/\") + substr_count($dir1, \"\\\\\");\r\n \r\n\t if(is_array($sdirs))\r\n\t {\r\n\t\t sort($sdirs);\r\n\t \t reset($sdirs);\r\n\t\t \r\n\t \t for($y=0; $y<sizeof($sdirs); $y++)\r\n\t \t {\r\n\t\t\t $id_item++;\r\n\t\t\t // on n'affiche pas les répertoires\r\n\t\t\t //echo htmlentities($sdirs[$y]);\r\n \r\n\t\t\t $cwd1[0] = $dir;\r\n\t \t\t $cwd1[1] = $sdirs[$y];\r\n\t\t\t $chdir = join(\"/\", $cwd1);\r\n\t\t\t \r\n\t\t\t $var_retour = $var_retour.list_dir($chdir,$id_item,$chdir);\r\n\t\t }\r\n\t }\r\n\t \t\t \r\n\t chdir($chdir);\r\n\t \r\n\t if(is_array($sfiles))\r\n\t {\r\n\t \t sort($sfiles);\r\n\t \t reset($sfiles);\r\n\t\t \r\n\t\t $sizeof = sizeof($sfiles);\r\n\t\t \r\n\t\t for($y=0; $y<$sizeof; $y++)\r\n\t\t {\r\n\t\t\t $id_item++;\r\n\t\t\t if ($mon_dir) {\r\n\t\t\t\t $nom_path = str_replace($mon_path,\"\",$mon_dir).\"/\";\r\n\t\t\t }\r\n\t\t\t else {\r\n\t\t\t\t $nom_path = $rep;\r\n\t\t\t }\r\n\r\n\t\t\t$var_retour = $var_retour.\"<option value=\\\"\".$sfiles[$y].\"\\\">\".$sfiles[$y].\"</option>\"; \r\n\t\t }\r\n\t }\r\n\r\n\t return $var_retour;\r\n}", "function _quail_server_get_directory($directory, $filter=FALSE) {\n\tif (substr($directory, -1) == '/') {\n\t\t$directory = substr($directory, 0, -1);\n\t}\n\tif (!file_exists($directory) || !is_dir($directory)) {\n\t\treturn FALSE;\n\t}elseif (is_readable($directory)) {\n\t\t$directory_list = opendir($directory);\n\t\twhile (FALSE !== ($file = readdir($directory_list))) {\n\t\t\tif ($file != '.' && $file != '..') {\n\t\t\t\t$path = $directory.'/'.$file;\n\t\t\t\tif (is_readable($path)) {\n\t\t\t\t\t$subdirectories = explode('/', $path);\n\t\t\t\t\tif (is_dir($path)) {\n\t\t\t\t\t\t$directory_tree[] = array(\n\t\t\t\t\t\t\t'path' => $path,\n\t\t\t\t\t\t\t'name' => end($subdirectories),\n\t\t\t\t\t\t\t'kind' => 'directory',\n\t\t\t\t\t\t\t'content' => '');\n\t\t\t\t\t\t$directory_tree = array_merge($directory_tree, _quail_server_get_directory($path, $filter));\n\t\t\t\t\t}elseif (is_file($path)) {\n\t\t\t\t\t\t$extension = end(explode('.', end($subdirectories)));\n\t\t\t\t\t\tif ($filter === FALSE || $filter == $extension) {\n\t\t\t\t\t\t\t$directory_tree[] = array(\n\t\t\t\t\t\t\t\t'path' => $path,\n\t\t\t\t\t\t\t\t'name' => end($subdirectories),\n\t\t\t\t\t\t\t\t'extension' => $extension,\n\t\t\t\t\t\t\t\t'size' => filesize($path),\n\t\t\t\t\t\t\t\t'kind' => 'file');\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tclosedir($directory_list);\n\n\t\treturn $directory_tree;\n\n\t}else {\n\t\treturn FALSE;\n\t}\n}", "abstract public function traverse(array $files);", "function RecursiveScanDir($dir, $prefix = '') {\n\t$dir = rtrim($dir, '\\\\/');\n\t$result = array();\n\tforeach (scandir($dir) as $f) {\n if (\n preg_match('`/tmp/`', \"$dir/$f\")\n || preg_match('`/fpdf.php$`', \"$dir/$f\")\n || preg_match('`/libs/pi_barcode.php$`', \"$dir/$f\")\n || preg_match('`/libs/phpmailer/`', \"$dir/$f\")\n || preg_match('`/libs/securimage/`', \"$dir/$f\")\n || preg_match('`/libs/Smarty/`', \"$dir/$f\")\n )\n continue;\n\t\tif ($f !== '.' and $f !== '..') {\n\t\t\tif (is_dir(\"$dir/$f\")) {\n\t\t\t\t$result = array_merge($result, RecursiveScanDir(\"$dir/$f\", \"$prefix$f/\"));\n\t\t\t} else {\n\t\t\t\tif ( strtolower(substr(pathinfo($f,PATHINFO_EXTENSION),0,3)) == \"php\" && pathinfo(__FILE__,PATHINFO_BASENAME ) != pathinfo($f,PATHINFO_BASENAME ) )\n\t\t\t\t\t$result[] = $prefix.$f;\n\t\t\t}\n\t\t}\n\t}\n\treturn $result;\n}", "function cli_tree($path, $exceptions = false, $type = null) {\n\t$files = array();\n\t$directories = array($path);\n\n\tif (is_array($exceptions)) {\n\t\t$exceptions = array_flip($exceptions);\n\t}\n\t$skipHidden = false;\n\tif ($exceptions === true) {\n\t\t$skipHidden = true;\n\t} elseif (isset($exceptions['.'])) {\n\t\t$skipHidden = true;\n\t\tunset($exceptions['.']);\n\t}\n\n\ttry {\n\t\t$directory = new RecursiveDirectoryIterator($path, RecursiveDirectoryIterator::KEY_AS_PATHNAME | RecursiveDirectoryIterator::CURRENT_AS_SELF);\n\t\t$iterator = new RecursiveIteratorIterator($directory, RecursiveIteratorIterator::SELF_FIRST);\n\t} catch (Exception $e) {\n\t\tif ($type === null) {\n\t\t\treturn array(array(), array());\n\t\t}\n\t\treturn array();\n\t}\n\n\tforeach ($iterator as $itemPath => $fsIterator) {\n\t\tif ($skipHidden) {\n\t\t\t$subPathName = $fsIterator->getSubPathname();\n\t\t\tif ($subPathName{0} == '.' || strpos($subPathName, DS . '.') !== false) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t}\n\t\t$item = $fsIterator->current();\n\t\tif (!empty($exceptions) && isset($exceptions[$item->getFilename()])) {\n\t\t\tcontinue;\n\t\t}\n\n\t\tif ($item->isFile()) {\n\t\t\t$files[] = $itemPath;\n\t\t} elseif ($item->isDir() && !$item->isDot()) {\n\t\t\t$directories[] = $itemPath;\n\t\t}\n\t}\n\tif ($type === null) {\n\t\treturn array($directories, $files);\n\t}\n\tif ($type === 'dir') {\n\t\treturn $directories;\n\t}\n\treturn $files;\n}", "public function scanPathsRecursive(callable $filter = null): Generator\n {\n /**\n * @var Generator<string, string>\n */\n return $this->scanRawRecursive(true, true, $filter, false);\n }", "function thescandir($dir, $level){\n\t$is_dir = true;\n\t\n\tif( !($files = @scandir($dir)) ) // s'il y a une erreur au scandir c'est que c'est un fichier.\n\t{\n\t\t$basename = pathinfo($dir,PATHINFO_BASENAME);\n\t\t$is_dir = false;\n\t\t\n\t\t// si c'est bien un fichier PHP\n\t\tif( substr(strtolower(strrchr(basename($basename), \".\")), 1) == 'php' ){\n\t\t\t// On ajoute le fichier au listing\n\t\t\t$offset = count( $_SESSION['Listing_Fichiers'] );\n\t\t\t$_SESSION['Listing_Fichiers'][$offset] = $dir;//$basename;\n\t\t\t//echo \"base : \".$basename.\" | dir : \".$dir.\"<br/>\";\n\t\t}\n\t}\n\telse\n\t{\n\t\tif($dir != \".\" and $dir != \"..\" )\n\t\t{\n\n\t\t}\n\t\t$is_dir = true;\n\t\t$level ++;\n\t}\n\t\n\tif($dir != \".\" and $dir != \"..\" )\n\t{\n\t\t$extension = pathinfo($dir,PATHINFO_EXTENSION);\n\t\t$basename = pathinfo($dir,PATHINFO_BASENAME);\n\t\t\n\t}\n\t\n\t// recursivité\n\t$i=0;\n\twhile( @$files[$i] )\n\t{\n\t\tif($files[$i] != \".\" and $files[$i] != \"..\")\n\t\t{\t\t\t\t\n\t\t\t$newdir = $dir.\"/\".$files[$i];//concatène les noms de dossiers\n\t\t\t\t\n\t\t\tif($dir == \".\")\n\t\t\t\t$newdir = $files[$i];\n\t\t\t\t\n\t\t\tthescandir($newdir, $level); \n\t\t}\n\t\t\n\t\t$i++;\n\t}\n\n\t\n}", "function DNUI_scan_dir($dirBase) {\r\n return array_diff(scandir($dirBase), array('..', '.'));\r\n}", "public function php_file_tree_dir($directory, $return_link, $extensions = array(), $first_call = true) {\n \n // Get and sort directories/files\n if( function_exists(\"scandir\") ) $file = scandir($directory); else $file = php4_scandir($directory);\n natcasesort($file);\n // Make directories first\n $files = $dirs = array();\n foreach($file as $this_file) {\n if( is_dir(\"$directory/$this_file\" ) ) $dirs[] = $this_file; else $files[] = $this_file;\n }\n $file = array_merge($dirs, $files);\n \n // Filter unwanted extensions\n if( !empty($extensions) ) {\n foreach( array_keys($file) as $key ) {\n if( !is_dir(\"$directory/$file[$key]\") ) {\n $ext = substr($file[$key], strrpos($file[$key], \".\") + 1); \n if( !in_array($ext, $extensions) ) unset($file[$key]);\n }\n }\n }\n \n if( count($file) > 2 ) { // Use 2 instead of 0 to account for . and .. \"directories\"\n $php_file_tree = \"<ul\";\n if( $first_call ) { $php_file_tree .= \" class=\\\"php-file-tree\\\"\"; $first_call = false; }\n $php_file_tree .= \">\";\n foreach( $file as $this_file ) {\n if( $this_file != \".\" && $this_file != \"..\" ) {\n if( is_dir(\"$directory/$this_file\") ) {\n // Directory\n $php_file_tree .= \"<li class=\\\"pft-directory\\\"><a href=\\\"#\\\">\" . htmlspecialchars($this_file) . \"</a>\";\n $php_file_tree .= php_file_tree_dir(\"$directory/$this_file\", $return_link ,$extensions, false);\n $php_file_tree .= \"</li>\";\n } else {\n // File\n // Get extension (prepend 'ext-' to prevent invalid classes from extensions that begin with numbers)\n $ext = \"ext-\" . substr($this_file, strrpos($this_file, \".\") + 1); \n $link = str_replace(\"[link]\", \"$directory/\" . urlencode($this_file), $return_link);\n $php_file_tree .= \"<li class=\\\"pft-file \" . strtolower($ext) . \"\\\"><a href=\\\"$link\\\">\" . htmlspecialchars($this_file) . \"</a></li>\";\n }\n }\n }\n $php_file_tree .= \"</ul>\";\n }\n return $php_file_tree;\n }", "function list_files($directory = '.')\n{\n if ($directory != '.')\n {\n $directory = rtrim($directory, '/') . '/';\n }\n \n if ($handle = opendir($directory))\n {\n while (false !== ($file = readdir($handle)))\n {\n if ($file != '.' && $file != '..')\n {\n echo $file.'<br>';\n }\n }\n \n closedir($handle);\n }\n}", "public function getTreeStructure()\n {\n $result = array();\n $search = function($folder, $prefix) use (&$result, &$search)\n {\n foreach (new \\DirectoryIterator($folder) as $node)\n {\n if ($node->isDir() && !$node->isDot())\n {\n $result[] = $prefix.$node->getFilename();\n $search($node->getPathname(), $prefix.$node->getFilename().'/');\n }\n }\n };\n\n $search($this->path, \"\");\n sort($result);\n return $result;\n }", "public function getDirectory();", "public function getDirectory();", "function listFolderFiles($dir, $updir = \"\", $array = array()){\n $ffs = scandir($dir);\n foreach($ffs as $ff){\n if($ff != '.' && $ff != '..' ){\n if(count(explode(\".\", $ff))!=1){\n $array[]=$updir.explode(\".\", $ff)[0];\n }\n else {\n $array = listFolderFiles($dir.\"/\".$ff, $updir .$ff.\"/\", $array);\n }\n }\n }\n return $array;\n}", "function getFiles(){\r\n\r\n global $dirPtr, $theFiles;\r\n \r\n chdir(\".\");\r\n $dirPtr = openDir(\".\");\r\n $currentFile = readDir($dirPtr);\r\n while ($currentFile !== false){\r\n $theFiles[] = $currentFile;\r\n $currentFile = readDir($dirPtr);\r\n } // end while\r\n \r\n}", "function scanDir($cfg) //$view, $tdir , $subdir='', $match)\n {\n $ff = HTML_FlexyFramework::get();\n \n $subdir = $cfg['subdir'];\n $scandir = $cfg['tdir']. (empty($subdir) ? '' : '/') . $subdir;\n \n if (in_array($subdir, $cfg['skipdir'])) {\n return array();\n }\n // skip dom_templates\n \n if (!file_exists($scandir)) {\n return array();\n }\n $dh = opendir($scandir);\n if(!$dh){\n return array(); // something went wrong!?\n }\n $ret = array();\n \n while (($fn = readdir($dh)) !== false) {\n // do we care that it will try and parse the template directory??? - not really..\n // as we are only looking for php files..\n if(empty($fn) || $fn[0] == '.'){\n continue;\n }\n \n $fullpath = $scandir.(empty($scandir) ? '' : \"/\").$fn;\n // echo \"filename: $fullpath \\n\";\n \n if (is_link($fullpath)) {\n continue;\n }\n \n if(is_dir($fullpath)){\n // then recursively call self...\n $cfg['subdir'] = $subdir . (empty($subdir) ? '' : '/') . $fn;\n $children = $this->scanDir($cfg);\n if (count($children)) {\n $ret = array_merge($ret, $children);\n \n }\n continue;\n \n }\n \n if (!preg_match($cfg['match'], $fn) || !is_file($fullpath)) {\n continue;\n }\n \n \n \n $ret[] = $subdir . (empty($subdir) ? '' : '/'). $fn; /// this used to be strtolower?? why???\n\n \n \n }\n// print_r($ret);\n \n return $ret;\n \n \n \n \n }", "function dirList($directory) \n{\n $results = array();\n // create a handler for the directory\n $handler = opendir($directory);\n // keep going until all files in directory have been read\n while ($file = readdir($handler)) {\n // if $file isn't this directory or its parent, \n // add it to the results array\n if ($file != '.' && $file != '..')\n $results[] = $directory.$file;\n }\n // tidy up: close the handler\n closedir($handler);\n // done!\n return $results;\n}", "protected function getProjectIterator()\n {\n // If we already got it we can return it directly\n if (isset($this->projectIterator)) {\n return $this->projectIterator;\n }\n\n // Save our result for later reuse\n $this->projectIterator = $this->getDirectoryIterator($this->rootPaths);\n\n return $this->projectIterator;\n }", "public function test_scan_files()\n {\n $content = array('.gitignore','.htaccess','index.php','README');\n $object = Directory::factory(ROOT);\n $res = $object->scan(Directory::SORT_ASC, Directory::SCAN_FILES);\n \n $this->assertEquals(count($content), count($res));\n foreach($res as $path=>$dir){\n $this->assertTrue(in_array($dir->get_base_name(), $content));\n $this->assertInstanceOf('\\Kaili\\File', $dir);\n }\n }", "function wp_find_hierarchy_loop($callback, $start, $start_parent, $callback_args = array())\n {\n }", "function recursive($dir,$outdir)\n{\n static $deep = 0;\n static $countDirs = 0;\n static $countFiles = 0;\n \n $odir = opendir($dir);\n \n while (($file = readdir($odir)) !== FALSE)\n {\n if ($file == '.' || $file == '..')\n {\n continue;\n }\n else\n {\n\t\t if(!is_dir($dir.DIRECTORY_SEPARATOR.$file)){ \n\t\t\tUnoconv::convertToPdf($dir.DIRECTORY_SEPARATOR.$file, $outdir.DIRECTORY_SEPARATOR.$file); \n\t\t\t$countFiles++;\n\t\t}\n //echo str_repeat('---', $deep).$dir.DIRECTORY_SEPARATOR.$file.'<br>';\n echo str_repeat('---', $deep).$file.'<br>';\n }\n \n if (is_dir($dir.DIRECTORY_SEPARATOR.$file))\n {\n\t\t $countDirs++; \n $deep ++;\n $current_dir_name=$file;\n recursive($dir.DIRECTORY_SEPARATOR.$file,$outdir.DIRECTORY_SEPARATOR.$current_dir_name);\n $deep --;\n }\n }\n closedir($odir);\n return ['folders'=>$countDirs, 'files'=>$countFiles];\n}", "function rscandir($base='', &$data=array()) {\n if(is_dir($base)) {\n $array = array_diff(scandir($base), array('.', '..'));\n foreach($array as $value) {\n if (is_dir($base.$value)) {\n $data[] = $base.$value.'/';\n $data = rscandir($base.$value.'/', $data);\n }\n elseif (is_file($base.$value)) {\n $data[] = $base.$value;\n }\n }\n }\n return $data;\n}", "function recurseFind($dir, $pattern, $depthRemaining )\n{\n\tglobal $filesep;\n\t$subFiles = array();\n\t$subDirs = array();\n\n\t$dh = opendir($dir);\n\twhile ( false != ($file = readdir($dh)) ) { \n\t\tif ( $file != '.' && $file != '..' ) {\n\n\t\t\t$fullFile = $dir . DIRECTORY_SEPARATOR . $file;\n\n\t\t\tif ( is_dir($fullFile) ) { \n\t\t\t\tarray_push($subDirs, $fullFile);\n\t\t\t} else {\n\t\t\t\tif ( preg_match($pattern, $fullFile) ) { \n\t\t\t\t\tarray_push($subFiles, $fullFile);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\tclosedir($dh);\n\n\t// 2016-Aug-28 -- Limiting the recursion\n\tif ( $depthRemaining > 0 ) { \n\n\tforeach ( $subDirs as $subDir ) { \n\t\tforeach ( recurseFind($subDir, $pattern, $depthRemaining-- ) as $subsubFile ) {\n\t\t\tarray_push($subFiles, $subsubFile );\n\t\t}\n\t}\n\n\t}\n\n\treturn $subFiles;\n}", "function retornaArquivosDir($diretorio){\n if (is_dir($diretorio)){\n $dir = dir($diretorio);\n try {\n while(($arquivo = $dir->read()) !== false) {\n yield $arquivo;\n }\n } finally {\n $dir->close();\n }\n } else {\n throw new Exception('Diretório inválido');\n }\n}", "public function scanFilesRecursive(callable $filter = null): Generator\n {\n /**\n * @var Generator<string, File>\n */\n return $this->scanRawRecursive(true, false, $filter, true);\n }", "private function build_directory_list($thisdir, &$directory_list) {\n\t\t$thisdir = dir($thisdir.'/'); //include the trailing slash\n\t\twhile(($file = $thisdir->read()) !== false) {\n\t\t\tif ($file != '.' && $file != '..') {\n\t\t\t\t$path = $thisdir->path.$file;\n\t\t\t\tif(is_dir($path)) {\n\t\t\t\t\tarray_push($directory_list, $path);\n\t\t\t\t\t$this->build_directory_list($path, $directory_list);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn;\n\t}", "private function directoryScan($dir) {\n\t\t\n\t\t// check for the validity of input / working directory\n\t\t\n\t\tif (!is_dir($dir)) {\n\t\t\tdie(\"'$dir' is not a directory.\".LE);\n\t\t}\n\t\t\n\t\t// listing directory contents\n\t\t\n\t\t$result = [];\n\t\t\n\t\t$root = scandir($dir);\n\t\tforeach($root as $value)\n\t\t{\n\t\t\t// removing dots & output directory\n\t\t\t\n\t\t\tif($value === '.' || $value === '..') {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t\n\t\t\t// listing only files\n\t\t\t\n\t\t\tif(is_file(\"$dir\".DS.\"$value\")) {\n\t\t\t\t$result[$value]=\"$dir\".DS.\"$value\";\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t// recursive call to self(this method) so we can get files listing recursively\n\t\t\t\n\t\t\tforeach($this->directoryScan(\"$dir\".DS.\"$value\") as $value1)\n\t\t\t{\n\t\t\t\t$result[basename($value1)]=$value1;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn $result;\n\t}", "public function listDirPathsRecursive(callable $filter = null): array\n {\n return iterator_to_array($this->scanDirPathsRecursive($filter));\n }", "function listFilesAndFolders(Array $directory) {\r\n global $currentPath;\r\n\r\n removeElement('.', $directory);\r\n removeElement('..', $directory);\r\n\r\n if (count($directory) == 0) {\r\n echo '(Folder is empty)';\r\n } else {\r\n foreach ($directory as $key => $fileOrFolderName) {\r\n $targetPath = $currentPath . \"/\" . $fileOrFolderName;\r\n if (is_file($targetPath)) {\r\n echo \"<a href=$fileOrFolderName>\" . $fileOrFolderName . \"</a>\" . \"<br>\";\r\n } else {\r\n echo $fileOrFolderName . ' ';\r\n addForwardButton($targetPath); // A button is added next to each folder to enable us to go into the folder.\r\n }\r\n }\r\n }\r\n}", "function list_directory($dir, &$list)\r\n\t{\r\n\t\tif ($dh = @opendir($dir)) \r\n\t\t{\r\n\t\t\twhile(($file = readdir($dh)) !== false)\r\n\t\t\t{\r\n\t\t\t\tif( $file != \".\" and $file != \"..\") \r\n\t\t\t\t{\r\n\t\t\t\t\tif(!is_dir($dir.$file))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$list[] = str_replace(\"\\\\\", \"/\", $dir.$file);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(is_dir($dir.$file)) \r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$newdir = $dir.$file.\"/\";\r\n\t\t\t\t\t\tchdir($newdir);\r\n\t\t\t\t\t\tlist_directory($newdir, $list);\r\n\t\t\t\t\t} \r\n\t\t\t\t} \r\n\t\t\t}\r\n\t\t\tchdir(\"..\");\r\n\t\t}\r\n\t\treturn $list;\r\n\t}", "public function scanDirPaths(callable $filter = null): Generator\n {\n /**\n * @var Generator<string, string>\n */\n return $this->scanRaw(false, true, $filter, false);\n }", "public function directory();", "function rd_do_dir($dir)\n{\n\t$out=array();\n\t$_dir=($dir=='')?'.':$dir;\n\t$dh=@opendir($_dir);\n\tif ($dh!==false)\n\t{\n\t\twhile (($file=readdir($dh))!==false)\n\t\t{\n\t\t\tif (!in_array($file,array('.','..','git','.svn','CVS','_vti_cnf')))\n\t\t\t{\n\t\t\t\tif (is_file($_dir.'/'.$file))\n\t\t\t\t{\n\t\t\t\t\t$path=$dir.(($dir!='')?'/':'').$file;\n\t\t\t\t\t$out[]=$path;\n\t\t\t\t} elseif (is_dir($_dir.'/'.$file))\n\t\t\t\t{\n\t\t\t\t\t$out=array_merge($out,rd_do_dir($dir.(($dir!='')?'/':'').$file));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\treturn $out;\n}", "public function getDirectories(DirectoryInterface $directory): array;", "abstract protected function mapDirectories(array $directories): array;", "function searchFile($directory, $file)\n{\n // Blacklisted directory names - not doing so will provoke an endless loop\n $blacklist = array ( '.idea', '.git', '.', '..');\n\n // Getting a handle on the directory\n $dir_handle = opendir($directory);\n\n // Looping on all the directorie's entry to find the right file\n while(false !== ($entry = readdir($dir_handle)))\n {\n //if($entry != '.' && $entry != '..' && $entry != '.idea' && $entry != '.git')\n if(!in_array($entry, $blacklist))\n {\n // if it's a directory - call back the same function recursively\n if(is_dir($directory. DIRECTORY_SEPARATOR .$entry))\n {\n searchFile($directory . DIRECTORY_SEPARATOR . $entry, $file);\n }\n // If it's a file, test against class name to know if it is the right file\n else if(str_replace(\".php\", \"\", $entry) == get_class_name($file))\n {\n $path = $directory . DIRECTORY_SEPARATOR . $entry;\n add_to_cache($file, $path);\n\n return;\n }\n }\n }\n\n closedir($dir_handle);\n\n\n}" ]
[ "0.7941342", "0.7352913", "0.7056333", "0.7005682", "0.69427925", "0.6740426", "0.66586167", "0.64463055", "0.63827604", "0.6372467", "0.63719535", "0.637", "0.6364044", "0.63629836", "0.6274981", "0.6266122", "0.6224125", "0.62141275", "0.6177503", "0.6159302", "0.61426026", "0.61271703", "0.60914266", "0.60592383", "0.6056463", "0.60400075", "0.6033432", "0.6028989", "0.602615", "0.6016892", "0.5984015", "0.59802634", "0.59778506", "0.59774715", "0.5969283", "0.59526235", "0.5943911", "0.59414536", "0.59281945", "0.5928035", "0.5907539", "0.58907026", "0.5879785", "0.58624274", "0.58550113", "0.5854264", "0.58307326", "0.5826029", "0.581967", "0.5818607", "0.58130616", "0.5802512", "0.5793281", "0.57909274", "0.57892424", "0.57843125", "0.5784216", "0.57783914", "0.57783103", "0.57747346", "0.576017", "0.5754233", "0.5745657", "0.5742852", "0.5739048", "0.57216144", "0.5712573", "0.5705701", "0.57024753", "0.56872743", "0.5684555", "0.5681439", "0.56771106", "0.5675085", "0.5669787", "0.5651525", "0.56481457", "0.56481457", "0.56472206", "0.56357265", "0.5630497", "0.5629911", "0.5629617", "0.5626022", "0.5622301", "0.5617471", "0.5615668", "0.5606927", "0.5602748", "0.5602299", "0.5600738", "0.55907816", "0.5581434", "0.55788344", "0.5574657", "0.5572597", "0.555931", "0.5539261", "0.5531151", "0.55140233", "0.55087644" ]
0.0
-1
FIXME: adding missing implementations: /. mixed .
function current(){}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function __construct() {\n\t\t$this->set_format( '/.*/', 'replace' );\n\t}", "public function helper()\n\t{\n\t\n\t}", "abstract protected function external();", "abstract protected function paths();", "abstract protected function uri($uri);", "abstract public function acceptedExtension(): string;", "public function extension();", "function variant_imp($left, $right) {}", "abstract function getExtension(): string;", "function specialop() {\n\n\n\t}", "abstract protected function mini(): string;", "public function extension() {}", "abstract protected function _process();", "abstract protected function _process();", "function overload() { }", "function overload() { }", "public function slashJsDataProvider() {}", "abstract protected function getMethodPattern(): string;", "public function custom()\n\t{\n\t}", "protected function parsePath() {\n\t}", "protected function normalize() {}", "abstract protected function handle();", "abstract protected function content();", "public function validPathStrDataProvider() {}", "public function defaultAddons(){\n\t $this->addRule('oid.pen', function($in){\n\t \t $tok = '1.3.6.1.4.1';\n\t\t $tl = strlen($tok);\n\t\t $l = strlen($in);\n\t \t $r = valFormats::is($in,'oid'); \n\t \t return (false !== $r && $tok === substr($in,0,$tl) && $l > $tl) ? true : false;\n\t });\n\t \n\t $this->addRule('oid.weid', function($in){\n\t \t $tok = '1.3.6.1.4.1.37553.8';\n\t \t $r = valFormats::is($in,'oid'); \n\t \t return (false !== $r && $tok === substr($in,0,strlen($tok))) ? true : false;\n\t });\t\n\t \n\t $this->addRule('impolite', function($in){\n\t \t return (preg_match(\"/porn|fucker|sex|asshole/i\", $in)) ? true : false;\n\t });\t\n\t \n\t \n\t /**\n\t * german aliasis\n\t */\n\t $this->addRule('ungerade', function($in){\n\t \t return valFormats::create()->is($in, 'odd');\n\t });\t \t \n\n\t $this->addRule('gerade', function($in){\n\t \t return valFormats::create()->is($in, 'even');\n\t });\n\t \n\n\t $this->addRule('primzahl', function($in){\n\t \t return valFormats::create()->is($in, 'prime');\n\t });\t\n\t \n\t return $this;\t\t \t\t \t\n }", "abstract public function toPhp();", "abstract public function otherfoo();", "public function includeLL() {}", "public function includeLL() {}", "private function normalizeExtension()\n {\n $explodedUri = WingedLib::explodePath(static::$uri);\n $dir = WingedLib::normalizePath();\n $beforeConcatDir = WingedLib::normalizePath();\n if ($explodedUri) {\n foreach ($explodedUri as $key => $uriPart) {\n $dir .= $uriPart;\n $dir = WingedLib::normalizePath($dir);\n if (is_directory(WingedLib::clearPath(DOCUMENT_ROOT . $dir) . '/')) {\n unset($explodedUri[$key]);\n $beforeConcatDir = $dir;\n }\n }\n static::$parent = $beforeConcatDir;\n $beforeConcatDir = WingedLib::clearPath($beforeConcatDir);\n\n static::$parentUri = WingedLib::clearPath(WingedLib::clearPath(str_replace($beforeConcatDir, '', static::$uri)));\n if (!static::$parentUri) {\n static::$parentUri = './';\n } else {\n static::$parentUri = './' . static::$parentUri . '/';\n }\n\n if (static::$uri != static::$parentUri) {\n $explodedUri = WingedLib::explodePath(static::$parentUri);\n }\n\n static::$httpsParent = static::$https . $beforeConcatDir . '/';\n static::$httpParent = static::$http . $beforeConcatDir . '/';\n static::$protocolParent = static::$protocol . $beforeConcatDir . '/';\n\n if (static::$freeGet != '') {\n static::$fullUrlProvider = static::$protocol . WingedLib::clearPath(static::$pureUri) . '?' . static::$freeGet;\n } else {\n static::$fullUrlProvider = static::$protocol . WingedLib::clearPath(static::$pureUri);\n }\n if (count7($explodedUri) == 0) {\n static::$controllerName = 'IndexController';\n static::$controllerAction = 'actionIndex';\n static::$isIndex = true;\n } else {\n $explodedUri = array_values($explodedUri);\n $page = $explodedUri[0];\n unset($explodedUri[0]);\n $uriParameters = [];\n foreach ($explodedUri as $key => $value) {\n array_push($uriParameters, $value);\n }\n static::$controllerName = Formater::camelCaseClass($page) . 'Controller';\n if (count($uriParameters) > 0) {\n static::$controllerAction = 'action' . Formater::camelCaseMethod($uriParameters[0]);\n } else {\n static::$controllerAction = 'actionIndex';\n }\n static::$isIndex = true;\n static::$uriParameters = $uriParameters;\n }\n } else {\n static::$parentUri = './';\n static::$httpsParent = static::$https;\n static::$httpParent = static::$http;\n static::$protocolParent = static::$protocol;\n if (static::$freeGet != '') {\n static::$fullUrlProvider = static::$protocol . WingedLib::clearPath(static::$pureUri) . '?' . static::$freeGet;\n } else {\n static::$fullUrlProvider = static::$protocol . WingedLib::clearPath(static::$pureUri);\n }\n static::$isIndex = true;\n static::$controllerName = 'IndexController';\n static::$controllerAction = 'actionIndex';\n static::$parent = './';\n }\n return $this;\n }", "function notation_autoriser(){}", "abstract protected function appliesTo(): string;", "public function __construct()\r\n\t{\r\n\t\techo \"Implements Function overloading\";\r\n\t}", "abstract protected function interface();", "abstract public function assemble();", "abstract public function render(): string;", "abstract public function render(): string;", "abstract public function render(): string;", "abstract public function render(): string;", "abstract public function uri(): string;", "public function native();", "public function specialization() {\n }", "public function overload(): void;", "final private function __construct() {}", "final private function __construct() {}", "abstract protected function __construct();", "abstract protected function getPattern(): string;", "abstract protected function getPattern(): string;", "private function __construct()\t{}", "function autoLoad($class){\r\n\r\n $class = str_replace(\"\\\\\",SEPARATOR,$class);\r\n include_once(BASEDIR. SEPARATOR. $class. \".class.php\");\r\n \r\n}", "protected function parse() {}", "protected function __init__() { }", "private function __() {\n }", "private function _i() {\n }", "public function test_FName__Weirdos(): void\n {\n $filename = '..';\n $f = new FName($filename);\n $this->assertEqualsCanonicalizing(['','..','','..'], [$f->path, $f->body, $f->ext, $f->filename]);\n\n //single dot is a filename without extension (body only)\n $filename = '.';\n $f = new FName($filename);\n $this->assertEqualsCanonicalizing(['','.','','.'], [$f->path, $f->body, $f->ext, $f->filename]);\n\n //lots of dots is still considered a filename without extension (body only)\n $filename = '......';\n $f = new FName($filename);\n $this->assertEqualsCanonicalizing(['','......','','......'], [$f->path, $f->body, $f->ext, $f->filename]);\n\n //lots of dots as body with an added extension - last dot is always consumed when separating the extension\n $filename = '......ext';\n $f = new FName($filename);\n $this->assertEqualsCanonicalizing(['','.....','ext','......ext'], [$f->path, $f->body, $f->ext, $f->filename]);\n\n //Multiple dots in filename\n $filename = '/var/www/whatever/manci...neni.meg.a.madarak...ext';\n $f = new FName($filename);\n $this->assertEqualsCanonicalizing\n (\n ['/var/www/whatever/','manci...neni.meg.a.madarak..','ext','manci...neni.meg.a.madarak...ext'],\n [$f->path, $f->body, $f->ext, $f->filename]\n );\n\n //Unicode madness...\n $filename = '/var/w™ww/whateverḊḋḞ/very😎😏...ne🌎🌏ni.meg.a.mУФХadarak...ぴふべ';\n $f = new FName($filename);\n $this->assertEqualsCanonicalizing\n (\n ['/var/w™ww/whateverḊḋḞ/','very😎😏...ne🌎🌏ni.meg.a.mУФХadarak..','ぴふべ','very😎😏...ne🌎🌏ni.meg.a.mУФХadarak...ぴふべ'],\n [$f->path, $f->body, $f->ext, $f->filename]\n );\n }", "function _mixed($mixed)\n {\n return $mixed;\n }", "protected function real($source)\n {\n // variables\n $output = $source;\n $input = str_replace('\\\\', '/', $source);\n\n // test input\n if(preg_match('%^.{1,2}/|/\\.{1,2}|/{2,}/%', $input))\n {\n // variables\n $root = '';\n $path = $input;\n\n // respect drive or UNC\n if(preg_match('%^(\\w:/|//\\w+/)(.*)%', $input, $matches))\n {\n $root = $matches[1];\n $path = $matches[2];\n }\n\n // split input\n $src = explode('/', $path);\n\n // build output\n $trg = array();\n while(count($src))\n {\n $str = array_shift($src);\n if($str == '.' || $str == '')\n {\n continue;\n }\n else if($str == '..')\n {\n array_pop($trg);\n }\n else\n {\n $trg[] = $str;\n }\n }\n\n // convert to string\n $output = implode('/', $trg);\n\n // re-add drive or UNC\n $output = $root . $output;\n\n // respect leading and trailing slashes\n if(substr($input, 0, 1) == '/')\n {\n $output = '/' . $output;\n }\n if(substr($input, -1) == '/' && substr($output, -1) != '/')\n {\n $output = $output . '/';\n }\n\n // if windows format, convert back\n if($this->separator === '\\\\')\n {\n $output = str_replace('/', '\\\\', $output);\n }\n }\n\n // test path\n if($this->testpaths)\n {\n if( ! file_exists($output) )\n {\n $output = false;\n }\n }\n\n // output\n return $output;\n }", "public function extensions();", "abstract protected function namespace(): string;", "public function getBase(): void {}", "public function Extension();", "abstract public function parse ();", "final private function __construct() { }", "final private function __construct() { }", "final private function __construct() { }", "public function generic_strings()\n {\n }", "private final function __construct() {}", "public static function normalizeProvider(): array\n {\n return [\n ['/a/b/c/./../../g', '/a/g'],\n ['mid/content=5/../6', 'mid/6'],\n ['a/b/c', 'a/b/c'],\n ['a/b/c/.', 'a/b/c/'],\n ['/a/b/c', '/a/b/c'],\n ];\n }", "abstract public function version();", "abstract public function version();", "public function render_stub() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}" ]
[ "0.53273344", "0.53081626", "0.5276324", "0.5268259", "0.52212125", "0.5131803", "0.5120861", "0.51145494", "0.51078653", "0.51045835", "0.5102225", "0.50849533", "0.5058744", "0.5058744", "0.5043587", "0.5043587", "0.5040168", "0.5036583", "0.50216556", "0.50162536", "0.5011899", "0.49896973", "0.49684137", "0.49549136", "0.49308243", "0.4922101", "0.48961264", "0.488212", "0.488212", "0.48752648", "0.48741242", "0.48709655", "0.48663273", "0.4860861", "0.4853991", "0.48495707", "0.48495707", "0.48495707", "0.48495707", "0.48435235", "0.48243004", "0.4821795", "0.48183072", "0.48158607", "0.48158607", "0.4801448", "0.47976995", "0.47976995", "0.47909895", "0.47868133", "0.4786368", "0.47829944", "0.47821996", "0.4779517", "0.47766706", "0.4776654", "0.47724205", "0.47482842", "0.47479752", "0.47317046", "0.4727191", "0.47211778", "0.47173557", "0.47173557", "0.47173557", "0.4715285", "0.47108918", "0.47035548", "0.47010058", "0.47010058", "0.46952632", "0.46944132", "0.46936104", "0.46936104", "0.46936104", "0.46936104", "0.46936104", "0.46936104", "0.46936104", "0.46936104", "0.46936104", "0.46936104", "0.46936104", "0.46936104", "0.46936104", "0.46936104", "0.46936104", "0.46936104", "0.46936104", "0.46936104", "0.46936104", "0.46936104", "0.46936104", "0.46936104", "0.46936104", "0.46936104", "0.46936104", "0.46936104", "0.46936104", "0.46936104", "0.46936104" ]
0.0
-1
FIXME: adding missing implementations: /. mixed .
function current(){}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function __construct() {\n\t\t$this->set_format( '/.*/', 'replace' );\n\t}", "public function helper()\n\t{\n\t\n\t}", "abstract protected function external();", "abstract protected function paths();", "abstract protected function uri($uri);", "abstract public function acceptedExtension(): string;", "public function extension();", "function variant_imp($left, $right) {}", "abstract function getExtension(): string;", "function specialop() {\n\n\n\t}", "abstract protected function mini(): string;", "public function extension() {}", "abstract protected function _process();", "abstract protected function _process();", "function overload() { }", "function overload() { }", "public function slashJsDataProvider() {}", "abstract protected function getMethodPattern(): string;", "public function custom()\n\t{\n\t}", "protected function parsePath() {\n\t}", "protected function normalize() {}", "abstract protected function handle();", "abstract protected function content();", "public function validPathStrDataProvider() {}", "public function defaultAddons(){\n\t $this->addRule('oid.pen', function($in){\n\t \t $tok = '1.3.6.1.4.1';\n\t\t $tl = strlen($tok);\n\t\t $l = strlen($in);\n\t \t $r = valFormats::is($in,'oid'); \n\t \t return (false !== $r && $tok === substr($in,0,$tl) && $l > $tl) ? true : false;\n\t });\n\t \n\t $this->addRule('oid.weid', function($in){\n\t \t $tok = '1.3.6.1.4.1.37553.8';\n\t \t $r = valFormats::is($in,'oid'); \n\t \t return (false !== $r && $tok === substr($in,0,strlen($tok))) ? true : false;\n\t });\t\n\t \n\t $this->addRule('impolite', function($in){\n\t \t return (preg_match(\"/porn|fucker|sex|asshole/i\", $in)) ? true : false;\n\t });\t\n\t \n\t \n\t /**\n\t * german aliasis\n\t */\n\t $this->addRule('ungerade', function($in){\n\t \t return valFormats::create()->is($in, 'odd');\n\t });\t \t \n\n\t $this->addRule('gerade', function($in){\n\t \t return valFormats::create()->is($in, 'even');\n\t });\n\t \n\n\t $this->addRule('primzahl', function($in){\n\t \t return valFormats::create()->is($in, 'prime');\n\t });\t\n\t \n\t return $this;\t\t \t\t \t\n }", "abstract public function toPhp();", "abstract public function otherfoo();", "public function includeLL() {}", "public function includeLL() {}", "private function normalizeExtension()\n {\n $explodedUri = WingedLib::explodePath(static::$uri);\n $dir = WingedLib::normalizePath();\n $beforeConcatDir = WingedLib::normalizePath();\n if ($explodedUri) {\n foreach ($explodedUri as $key => $uriPart) {\n $dir .= $uriPart;\n $dir = WingedLib::normalizePath($dir);\n if (is_directory(WingedLib::clearPath(DOCUMENT_ROOT . $dir) . '/')) {\n unset($explodedUri[$key]);\n $beforeConcatDir = $dir;\n }\n }\n static::$parent = $beforeConcatDir;\n $beforeConcatDir = WingedLib::clearPath($beforeConcatDir);\n\n static::$parentUri = WingedLib::clearPath(WingedLib::clearPath(str_replace($beforeConcatDir, '', static::$uri)));\n if (!static::$parentUri) {\n static::$parentUri = './';\n } else {\n static::$parentUri = './' . static::$parentUri . '/';\n }\n\n if (static::$uri != static::$parentUri) {\n $explodedUri = WingedLib::explodePath(static::$parentUri);\n }\n\n static::$httpsParent = static::$https . $beforeConcatDir . '/';\n static::$httpParent = static::$http . $beforeConcatDir . '/';\n static::$protocolParent = static::$protocol . $beforeConcatDir . '/';\n\n if (static::$freeGet != '') {\n static::$fullUrlProvider = static::$protocol . WingedLib::clearPath(static::$pureUri) . '?' . static::$freeGet;\n } else {\n static::$fullUrlProvider = static::$protocol . WingedLib::clearPath(static::$pureUri);\n }\n if (count7($explodedUri) == 0) {\n static::$controllerName = 'IndexController';\n static::$controllerAction = 'actionIndex';\n static::$isIndex = true;\n } else {\n $explodedUri = array_values($explodedUri);\n $page = $explodedUri[0];\n unset($explodedUri[0]);\n $uriParameters = [];\n foreach ($explodedUri as $key => $value) {\n array_push($uriParameters, $value);\n }\n static::$controllerName = Formater::camelCaseClass($page) . 'Controller';\n if (count($uriParameters) > 0) {\n static::$controllerAction = 'action' . Formater::camelCaseMethod($uriParameters[0]);\n } else {\n static::$controllerAction = 'actionIndex';\n }\n static::$isIndex = true;\n static::$uriParameters = $uriParameters;\n }\n } else {\n static::$parentUri = './';\n static::$httpsParent = static::$https;\n static::$httpParent = static::$http;\n static::$protocolParent = static::$protocol;\n if (static::$freeGet != '') {\n static::$fullUrlProvider = static::$protocol . WingedLib::clearPath(static::$pureUri) . '?' . static::$freeGet;\n } else {\n static::$fullUrlProvider = static::$protocol . WingedLib::clearPath(static::$pureUri);\n }\n static::$isIndex = true;\n static::$controllerName = 'IndexController';\n static::$controllerAction = 'actionIndex';\n static::$parent = './';\n }\n return $this;\n }", "function notation_autoriser(){}", "abstract protected function appliesTo(): string;", "public function __construct()\r\n\t{\r\n\t\techo \"Implements Function overloading\";\r\n\t}", "abstract protected function interface();", "abstract public function assemble();", "abstract public function render(): string;", "abstract public function render(): string;", "abstract public function render(): string;", "abstract public function render(): string;", "abstract public function uri(): string;", "public function native();", "public function specialization() {\n }", "public function overload(): void;", "final private function __construct() {}", "final private function __construct() {}", "abstract protected function __construct();", "abstract protected function getPattern(): string;", "abstract protected function getPattern(): string;", "private function __construct()\t{}", "function autoLoad($class){\r\n\r\n $class = str_replace(\"\\\\\",SEPARATOR,$class);\r\n include_once(BASEDIR. SEPARATOR. $class. \".class.php\");\r\n \r\n}", "protected function parse() {}", "protected function __init__() { }", "private function __() {\n }", "private function _i() {\n }", "public function test_FName__Weirdos(): void\n {\n $filename = '..';\n $f = new FName($filename);\n $this->assertEqualsCanonicalizing(['','..','','..'], [$f->path, $f->body, $f->ext, $f->filename]);\n\n //single dot is a filename without extension (body only)\n $filename = '.';\n $f = new FName($filename);\n $this->assertEqualsCanonicalizing(['','.','','.'], [$f->path, $f->body, $f->ext, $f->filename]);\n\n //lots of dots is still considered a filename without extension (body only)\n $filename = '......';\n $f = new FName($filename);\n $this->assertEqualsCanonicalizing(['','......','','......'], [$f->path, $f->body, $f->ext, $f->filename]);\n\n //lots of dots as body with an added extension - last dot is always consumed when separating the extension\n $filename = '......ext';\n $f = new FName($filename);\n $this->assertEqualsCanonicalizing(['','.....','ext','......ext'], [$f->path, $f->body, $f->ext, $f->filename]);\n\n //Multiple dots in filename\n $filename = '/var/www/whatever/manci...neni.meg.a.madarak...ext';\n $f = new FName($filename);\n $this->assertEqualsCanonicalizing\n (\n ['/var/www/whatever/','manci...neni.meg.a.madarak..','ext','manci...neni.meg.a.madarak...ext'],\n [$f->path, $f->body, $f->ext, $f->filename]\n );\n\n //Unicode madness...\n $filename = '/var/w™ww/whateverḊḋḞ/very😎😏...ne🌎🌏ni.meg.a.mУФХadarak...ぴふべ';\n $f = new FName($filename);\n $this->assertEqualsCanonicalizing\n (\n ['/var/w™ww/whateverḊḋḞ/','very😎😏...ne🌎🌏ni.meg.a.mУФХadarak..','ぴふべ','very😎😏...ne🌎🌏ni.meg.a.mУФХadarak...ぴふべ'],\n [$f->path, $f->body, $f->ext, $f->filename]\n );\n }", "function _mixed($mixed)\n {\n return $mixed;\n }", "protected function real($source)\n {\n // variables\n $output = $source;\n $input = str_replace('\\\\', '/', $source);\n\n // test input\n if(preg_match('%^.{1,2}/|/\\.{1,2}|/{2,}/%', $input))\n {\n // variables\n $root = '';\n $path = $input;\n\n // respect drive or UNC\n if(preg_match('%^(\\w:/|//\\w+/)(.*)%', $input, $matches))\n {\n $root = $matches[1];\n $path = $matches[2];\n }\n\n // split input\n $src = explode('/', $path);\n\n // build output\n $trg = array();\n while(count($src))\n {\n $str = array_shift($src);\n if($str == '.' || $str == '')\n {\n continue;\n }\n else if($str == '..')\n {\n array_pop($trg);\n }\n else\n {\n $trg[] = $str;\n }\n }\n\n // convert to string\n $output = implode('/', $trg);\n\n // re-add drive or UNC\n $output = $root . $output;\n\n // respect leading and trailing slashes\n if(substr($input, 0, 1) == '/')\n {\n $output = '/' . $output;\n }\n if(substr($input, -1) == '/' && substr($output, -1) != '/')\n {\n $output = $output . '/';\n }\n\n // if windows format, convert back\n if($this->separator === '\\\\')\n {\n $output = str_replace('/', '\\\\', $output);\n }\n }\n\n // test path\n if($this->testpaths)\n {\n if( ! file_exists($output) )\n {\n $output = false;\n }\n }\n\n // output\n return $output;\n }", "public function extensions();", "abstract protected function namespace(): string;", "public function getBase(): void {}", "public function Extension();", "abstract public function parse ();", "final private function __construct() { }", "final private function __construct() { }", "final private function __construct() { }", "public function generic_strings()\n {\n }", "private final function __construct() {}", "public static function normalizeProvider(): array\n {\n return [\n ['/a/b/c/./../../g', '/a/g'],\n ['mid/content=5/../6', 'mid/6'],\n ['a/b/c', 'a/b/c'],\n ['a/b/c/.', 'a/b/c/'],\n ['/a/b/c', '/a/b/c'],\n ];\n }", "abstract public function version();", "abstract public function version();", "public function render_stub() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}" ]
[ "0.53273344", "0.53081626", "0.5276324", "0.5268259", "0.52212125", "0.5131803", "0.5120861", "0.51145494", "0.51078653", "0.51045835", "0.5102225", "0.50849533", "0.5058744", "0.5058744", "0.5043587", "0.5043587", "0.5040168", "0.5036583", "0.50216556", "0.50162536", "0.5011899", "0.49896973", "0.49684137", "0.49549136", "0.49308243", "0.4922101", "0.48961264", "0.488212", "0.488212", "0.48752648", "0.48741242", "0.48709655", "0.48663273", "0.4860861", "0.4853991", "0.48495707", "0.48495707", "0.48495707", "0.48495707", "0.48435235", "0.48243004", "0.4821795", "0.48183072", "0.48158607", "0.48158607", "0.4801448", "0.47976995", "0.47976995", "0.47909895", "0.47868133", "0.4786368", "0.47829944", "0.47821996", "0.4779517", "0.47766706", "0.4776654", "0.47724205", "0.47482842", "0.47479752", "0.47317046", "0.4727191", "0.47211778", "0.47173557", "0.47173557", "0.47173557", "0.4715285", "0.47108918", "0.47035548", "0.47010058", "0.47010058", "0.46952632", "0.46944132", "0.46936104", "0.46936104", "0.46936104", "0.46936104", "0.46936104", "0.46936104", "0.46936104", "0.46936104", "0.46936104", "0.46936104", "0.46936104", "0.46936104", "0.46936104", "0.46936104", "0.46936104", "0.46936104", "0.46936104", "0.46936104", "0.46936104", "0.46936104", "0.46936104", "0.46936104", "0.46936104", "0.46936104", "0.46936104", "0.46936104", "0.46936104", "0.46936104", "0.46936104" ]
0.0
-1
FIXME: adding missing implementations: /. mixed .
function current(){}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function __construct() {\n\t\t$this->set_format( '/.*/', 'replace' );\n\t}", "public function helper()\n\t{\n\t\n\t}", "abstract protected function external();", "abstract protected function paths();", "abstract protected function uri($uri);", "abstract public function acceptedExtension(): string;", "public function extension();", "function variant_imp($left, $right) {}", "abstract function getExtension(): string;", "function specialop() {\n\n\n\t}", "abstract protected function mini(): string;", "public function extension() {}", "abstract protected function _process();", "abstract protected function _process();", "function overload() { }", "function overload() { }", "public function slashJsDataProvider() {}", "abstract protected function getMethodPattern(): string;", "public function custom()\n\t{\n\t}", "protected function parsePath() {\n\t}", "protected function normalize() {}", "abstract protected function handle();", "abstract protected function content();", "public function validPathStrDataProvider() {}", "public function defaultAddons(){\n\t $this->addRule('oid.pen', function($in){\n\t \t $tok = '1.3.6.1.4.1';\n\t\t $tl = strlen($tok);\n\t\t $l = strlen($in);\n\t \t $r = valFormats::is($in,'oid'); \n\t \t return (false !== $r && $tok === substr($in,0,$tl) && $l > $tl) ? true : false;\n\t });\n\t \n\t $this->addRule('oid.weid', function($in){\n\t \t $tok = '1.3.6.1.4.1.37553.8';\n\t \t $r = valFormats::is($in,'oid'); \n\t \t return (false !== $r && $tok === substr($in,0,strlen($tok))) ? true : false;\n\t });\t\n\t \n\t $this->addRule('impolite', function($in){\n\t \t return (preg_match(\"/porn|fucker|sex|asshole/i\", $in)) ? true : false;\n\t });\t\n\t \n\t \n\t /**\n\t * german aliasis\n\t */\n\t $this->addRule('ungerade', function($in){\n\t \t return valFormats::create()->is($in, 'odd');\n\t });\t \t \n\n\t $this->addRule('gerade', function($in){\n\t \t return valFormats::create()->is($in, 'even');\n\t });\n\t \n\n\t $this->addRule('primzahl', function($in){\n\t \t return valFormats::create()->is($in, 'prime');\n\t });\t\n\t \n\t return $this;\t\t \t\t \t\n }", "abstract public function toPhp();", "abstract public function otherfoo();", "public function includeLL() {}", "public function includeLL() {}", "function notation_autoriser(){}", "abstract protected function appliesTo(): string;", "private function normalizeExtension()\n {\n $explodedUri = WingedLib::explodePath(static::$uri);\n $dir = WingedLib::normalizePath();\n $beforeConcatDir = WingedLib::normalizePath();\n if ($explodedUri) {\n foreach ($explodedUri as $key => $uriPart) {\n $dir .= $uriPart;\n $dir = WingedLib::normalizePath($dir);\n if (is_directory(WingedLib::clearPath(DOCUMENT_ROOT . $dir) . '/')) {\n unset($explodedUri[$key]);\n $beforeConcatDir = $dir;\n }\n }\n static::$parent = $beforeConcatDir;\n $beforeConcatDir = WingedLib::clearPath($beforeConcatDir);\n\n static::$parentUri = WingedLib::clearPath(WingedLib::clearPath(str_replace($beforeConcatDir, '', static::$uri)));\n if (!static::$parentUri) {\n static::$parentUri = './';\n } else {\n static::$parentUri = './' . static::$parentUri . '/';\n }\n\n if (static::$uri != static::$parentUri) {\n $explodedUri = WingedLib::explodePath(static::$parentUri);\n }\n\n static::$httpsParent = static::$https . $beforeConcatDir . '/';\n static::$httpParent = static::$http . $beforeConcatDir . '/';\n static::$protocolParent = static::$protocol . $beforeConcatDir . '/';\n\n if (static::$freeGet != '') {\n static::$fullUrlProvider = static::$protocol . WingedLib::clearPath(static::$pureUri) . '?' . static::$freeGet;\n } else {\n static::$fullUrlProvider = static::$protocol . WingedLib::clearPath(static::$pureUri);\n }\n if (count7($explodedUri) == 0) {\n static::$controllerName = 'IndexController';\n static::$controllerAction = 'actionIndex';\n static::$isIndex = true;\n } else {\n $explodedUri = array_values($explodedUri);\n $page = $explodedUri[0];\n unset($explodedUri[0]);\n $uriParameters = [];\n foreach ($explodedUri as $key => $value) {\n array_push($uriParameters, $value);\n }\n static::$controllerName = Formater::camelCaseClass($page) . 'Controller';\n if (count($uriParameters) > 0) {\n static::$controllerAction = 'action' . Formater::camelCaseMethod($uriParameters[0]);\n } else {\n static::$controllerAction = 'actionIndex';\n }\n static::$isIndex = true;\n static::$uriParameters = $uriParameters;\n }\n } else {\n static::$parentUri = './';\n static::$httpsParent = static::$https;\n static::$httpParent = static::$http;\n static::$protocolParent = static::$protocol;\n if (static::$freeGet != '') {\n static::$fullUrlProvider = static::$protocol . WingedLib::clearPath(static::$pureUri) . '?' . static::$freeGet;\n } else {\n static::$fullUrlProvider = static::$protocol . WingedLib::clearPath(static::$pureUri);\n }\n static::$isIndex = true;\n static::$controllerName = 'IndexController';\n static::$controllerAction = 'actionIndex';\n static::$parent = './';\n }\n return $this;\n }", "public function __construct()\r\n\t{\r\n\t\techo \"Implements Function overloading\";\r\n\t}", "abstract protected function interface();", "abstract public function assemble();", "abstract public function render(): string;", "abstract public function render(): string;", "abstract public function render(): string;", "abstract public function render(): string;", "abstract public function uri(): string;", "public function native();", "public function specialization() {\n }", "public function overload(): void;", "final private function __construct() {}", "final private function __construct() {}", "abstract protected function __construct();", "abstract protected function getPattern(): string;", "abstract protected function getPattern(): string;", "private function __construct()\t{}", "protected function parse() {}", "protected function __init__() { }", "private function __() {\n }", "function autoLoad($class){\r\n\r\n $class = str_replace(\"\\\\\",SEPARATOR,$class);\r\n include_once(BASEDIR. SEPARATOR. $class. \".class.php\");\r\n \r\n}", "private function _i() {\n }", "function _mixed($mixed)\n {\n return $mixed;\n }", "public function test_FName__Weirdos(): void\n {\n $filename = '..';\n $f = new FName($filename);\n $this->assertEqualsCanonicalizing(['','..','','..'], [$f->path, $f->body, $f->ext, $f->filename]);\n\n //single dot is a filename without extension (body only)\n $filename = '.';\n $f = new FName($filename);\n $this->assertEqualsCanonicalizing(['','.','','.'], [$f->path, $f->body, $f->ext, $f->filename]);\n\n //lots of dots is still considered a filename without extension (body only)\n $filename = '......';\n $f = new FName($filename);\n $this->assertEqualsCanonicalizing(['','......','','......'], [$f->path, $f->body, $f->ext, $f->filename]);\n\n //lots of dots as body with an added extension - last dot is always consumed when separating the extension\n $filename = '......ext';\n $f = new FName($filename);\n $this->assertEqualsCanonicalizing(['','.....','ext','......ext'], [$f->path, $f->body, $f->ext, $f->filename]);\n\n //Multiple dots in filename\n $filename = '/var/www/whatever/manci...neni.meg.a.madarak...ext';\n $f = new FName($filename);\n $this->assertEqualsCanonicalizing\n (\n ['/var/www/whatever/','manci...neni.meg.a.madarak..','ext','manci...neni.meg.a.madarak...ext'],\n [$f->path, $f->body, $f->ext, $f->filename]\n );\n\n //Unicode madness...\n $filename = '/var/w™ww/whateverḊḋḞ/very😎😏...ne🌎🌏ni.meg.a.mУФХadarak...ぴふべ';\n $f = new FName($filename);\n $this->assertEqualsCanonicalizing\n (\n ['/var/w™ww/whateverḊḋḞ/','very😎😏...ne🌎🌏ni.meg.a.mУФХadarak..','ぴふべ','very😎😏...ne🌎🌏ni.meg.a.mУФХadarak...ぴふべ'],\n [$f->path, $f->body, $f->ext, $f->filename]\n );\n }", "protected function real($source)\n {\n // variables\n $output = $source;\n $input = str_replace('\\\\', '/', $source);\n\n // test input\n if(preg_match('%^.{1,2}/|/\\.{1,2}|/{2,}/%', $input))\n {\n // variables\n $root = '';\n $path = $input;\n\n // respect drive or UNC\n if(preg_match('%^(\\w:/|//\\w+/)(.*)%', $input, $matches))\n {\n $root = $matches[1];\n $path = $matches[2];\n }\n\n // split input\n $src = explode('/', $path);\n\n // build output\n $trg = array();\n while(count($src))\n {\n $str = array_shift($src);\n if($str == '.' || $str == '')\n {\n continue;\n }\n else if($str == '..')\n {\n array_pop($trg);\n }\n else\n {\n $trg[] = $str;\n }\n }\n\n // convert to string\n $output = implode('/', $trg);\n\n // re-add drive or UNC\n $output = $root . $output;\n\n // respect leading and trailing slashes\n if(substr($input, 0, 1) == '/')\n {\n $output = '/' . $output;\n }\n if(substr($input, -1) == '/' && substr($output, -1) != '/')\n {\n $output = $output . '/';\n }\n\n // if windows format, convert back\n if($this->separator === '\\\\')\n {\n $output = str_replace('/', '\\\\', $output);\n }\n }\n\n // test path\n if($this->testpaths)\n {\n if( ! file_exists($output) )\n {\n $output = false;\n }\n }\n\n // output\n return $output;\n }", "public function extensions();", "abstract protected function namespace(): string;", "public function getBase(): void {}", "public function Extension();", "abstract public function parse ();", "final private function __construct() { }", "final private function __construct() { }", "final private function __construct() { }", "public function generic_strings()\n {\n }", "private final function __construct() {}", "abstract public function version();", "abstract public function version();", "public static function normalizeProvider(): array\n {\n return [\n ['/a/b/c/./../../g', '/a/g'],\n ['mid/content=5/../6', 'mid/6'],\n ['a/b/c', 'a/b/c'],\n ['a/b/c/.', 'a/b/c/'],\n ['/a/b/c', '/a/b/c'],\n ];\n }", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}" ]
[ "0.5323996", "0.5310943", "0.5280173", "0.52676445", "0.5221362", "0.51298296", "0.5122064", "0.51147664", "0.51063675", "0.510622", "0.5103768", "0.5086067", "0.50606114", "0.50606114", "0.50464725", "0.50464725", "0.50400007", "0.5035765", "0.50261337", "0.50140053", "0.50118625", "0.49932384", "0.49713185", "0.4953377", "0.49311936", "0.4923617", "0.4900343", "0.48815298", "0.48815298", "0.4874337", "0.48718244", "0.48716718", "0.48695874", "0.48667642", "0.48569673", "0.4849487", "0.4849487", "0.4849487", "0.4849487", "0.4842765", "0.4825856", "0.4823429", "0.48209354", "0.48192453", "0.48192453", "0.48049873", "0.47966903", "0.47966903", "0.4794134", "0.47888187", "0.47862545", "0.47845978", "0.4784561", "0.47829086", "0.47788233", "0.47728178", "0.47685978", "0.47486773", "0.4748087", "0.47340566", "0.47277388", "0.47231373", "0.47204685", "0.47204685", "0.47204685", "0.47155717", "0.47141403", "0.47024348", "0.47024348", "0.4700711", "0.46974507", "0.469665", "0.469665", "0.469665", "0.469665", "0.469665", "0.469665", "0.469665", "0.469665", "0.469665", "0.469665", "0.469665", "0.469665", "0.469665", "0.469665", "0.469665", "0.469665", "0.469665", "0.469665", "0.469665", "0.469665", "0.469665", "0.469665", "0.469665", "0.469665", "0.469665", "0.469665", "0.469665", "0.469665", "0.469665", "0.469665" ]
0.0
-1
$object_ MUST be mixed to comply with interface: /. boolean .
function offsetExists(/*. mixed .*/ $object_){}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected abstract function supportsObject($object);", "function rest_is_object($maybe_object)\n {\n }", "private function changelog_validate_object () {\n\t\t# set valid objects\n\t\t$objects = array(\n\t\t\t\t\t\t\"ip_addr\",\n\t\t\t\t\t\t\"subnet\",\n\t\t\t\t\t\t\"section\"\n\t\t\t\t\t\t);\n\t\t# check\n\t\treturn in_array($this->object_type, $objects) ? true : false;\n\t}", "public function getIsObject() {\n $primitives = array(\"boolean\", \"integer\", \"int\", \"string\", \"float\");\n return !is_numeric(array_search($this->getType(), $primitives));\n }", "public function isAok($object) \n {\n return $object instanceof $this; \n }", "public function hasObject();", "public function isObject(): bool\n {\n return $this->phpType === self::OBJECT;\n }", "abstract public function matches($object) : bool;", "protected function validateObject(&$object) {\n // types of objects that people can create. Will expand later.\n $test_array = [ \"Note\" ];\n // make sure it is an accepted ActivityPub object type\n if (!isset($object['type']) || !in_array($object['type'],$test_array)) return false;\n // require all objects to have a declared attribution\n if (!isset($object['attributedTo'])) return false;\n // there needs to be something actually being posted\n if (!isset($object['content'])) return false;\n \n return true;\n }", "static private function checkRequirments($object) {\n if (!is_object($object)) {\n self::fail('Must pass an object');\n }\n if (!self::getConfig('allowBlank') && empty((array)$object)) {\n self::fail('Empty object, and allowBlank is disabled');\n }\n if (!isset($object->_id) || empty($object->_id)) {\n $object->_id = self::getId();\n }\n if (!isset($object->_type) || empty($object->_type)) {\n $object->_type = self::getType($object);\n }\n return $object;\n }", "public function testEmptyObjectCastedToBoolGivesTrue() {\n\t\t$this->asserttrue((bool)new stdClass());\n\t}", "public function isNoValidationTypeDetermined($object): bool;", "abstract public function object();", "abstract public function objectIsComplete($object);", "private function check_object($value) : bool\n {\n if (!is_object($value) && !is_array($value))\n return false;\n\n return true;\n }", "public function check(object $subject): bool;", "public function published($object) {\n $bool = $this->_properties['publication_bool_property'];\n if (!empty($bool)) {\n return (bool) $object->get($bool);\n }\n // @todo publication start / end\n\t}", "public function is_user_object_data() {\n return false;\n }", "public function handlesObject(object $object, ?string $statusName = null): bool;", "public function createObjectCanDoConstructorInjectionWithBooleanValuesAndObjects() {\n\t\t$firstValue = TRUE;\n\t\t$thirdValue = new \\ArrayObject(array('foo' => 'bar'));\n\t\t$objectConfiguration = new \\F3\\FLOW3\\Object\\Configuration\\Configuration('F3\\FLOW3\\Tests\\Object\\Fixture\\ClassWithOptionalArguments');\n\t\t$objectConfiguration->setArguments(array(\n\t\t\tnew \\F3\\FLOW3\\Object\\Configuration\\ConfigurationArgument(1, $firstValue, \\F3\\FLOW3\\Object\\Configuration\\ConfigurationArgument::ARGUMENT_TYPES_STRAIGHTVALUE),\n\t\t\tnew \\F3\\FLOW3\\Object\\Configuration\\ConfigurationArgument(3, $thirdValue, \\F3\\FLOW3\\Object\\Configuration\\ConfigurationArgument::ARGUMENT_TYPES_STRAIGHTVALUE)\n\t\t));\n\n\t\t$object = $this->objectBuilder->createObject('F3\\FLOW3\\Tests\\Object\\Fixture\\ClassWithOptionalArguments', $objectConfiguration);\n\t\t$this->assertEquals($firstValue, $object->argument1, 'The first value (boolean) has not been constructor-injected although it should have been.');\n\t\t$this->assertEquals($thirdValue, $object->argument3, 'The third argument (an object) has not been constructor-injected although it should have been.');\n\t}", "public function testIsObject() {\n\t\t$array = array('one' => 1, 'two' => 2);\n\t\t$object = (object)$array;\n\t\t$result = _::isObject($object);\n\t\t$this->assertTrue($result);\n\n\t\t// test that an object is an object\n\t\t$result = _::isObject($array);\n\t\t$this->assertFalse($result);\n\t}", "public function isObject()\n {\n return \\is_object($this->value);\n }", "abstract protected function isValid(\\stdClass $data): bool;", "public static function jsonable($object): bool\n {\n if (!is_object($object)) {\n return false;\n }\n\n return method_exists($object, 'toJson');\n }", "function dry() {\n\t\treturn is_null($this->object);\n\t}", "public static function is_stringable_object($input)\n {\n }", "protected function testObject() {\n }", "public static function isHandler($object): bool;", "function isInstanceOf($object, $class) {\n return $object instanceof $class;\n}", "public function canValidate($object)\n {\n return $object instanceof AbstractEntity;\n }", "public function isInstanceOfMediaType($object) : bool;", "function is_a($object, $class_name)\n {\n if (empty ($object)) {\n return false;\n }\n $object = is_object($object) ? get_class($object) : $object;\n if (strtolower($object) == strtolower($class_name)) {\n return true;\n }\n return is_a(get_parent_class($object), $class_name);\n }", "public function checkObject($value)\n {\n return $this->checkHasType($value, 'object');\n }", "abstract public function is_have();", "static function isStringObject($var){\n\t\tif(self::isInstanceOf($var, 'Webiny\\Component\\StdLib\\StdObject\\StringObject\\StringObject')){\n\t\t\treturn true;\n\t\t}\n\n\t\treturn false;\n\t}", "function isObject ($value)\r\n{\r\n\treturn is_object ($value);\r\n}", "protected function isObjectAccessorMode() {}", "public function object($object)\n {\n $this->is_object = $object;\n return $this;\n }", "public function checkExtObj() {}", "function instance_of($object, $class)\n{\n return $object instanceof $class;\n}", "public function checkExtObj() {}", "function _isObjectCallback($sFunction)\n\t{\n\t\tif (array_key_exists($sFunction, $this->aObjects)) return true;\n\t\treturn false;\n\t}", "function rest_is_boolean($maybe_bool)\n {\n }", "public static function toBoolean($obj)\n {\n return filter_var($obj, FILTER_VALIDATE_BOOLEAN);\n }", "function rest_sanitize_object($maybe_object)\n {\n }", "public function allowBody($object)\n\t{\n\t\treturn (($object instanceof PNavMenuItem) || ($object instanceof PNavMenuItemContainer));\n\t}", "public static function stringable($object): bool\n {\n if (!is_object($object)) {\n return false;\n }\n\n return method_exists($object, '__toString');\n }", "public function isAnnotationValidation($object): bool;", "function loadObject( &$object ) {\n\t\tif ($object != null) {\n\t\t\tif (!($cur = $this->query())) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tif ($array = mysql_fetch_assoc( $cur )) {\n\t\t\t\tmysql_free_result( $cur );\n\t\t\t\tmosBindArrayToObject( $array, $object, null, null, false );\n\t\t\t\treturn true;\n\t\t\t} else {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t} else {\n\t\t\tif ($cur = $this->query()) {\n\t\t\t\tif ($object = mysql_fetch_object( $cur )) {\n\t\t\t\t\tmysql_free_result( $cur );\n\t\t\t\t\treturn true;\n\t\t\t\t} else {\n\t\t\t\t\t$object = null;\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t}", "public function hasObject()\n {\n return (bool)!empty($this->object);\n }", "function is_model($obj)\n {\n return is_subclass_of($obj, 'C_DataMapper_Model') or get_class($obj) == 'C_DataMapper_Model';\n }", "public static function isObject(?string $input): bool\n {\n return self::detectType($input) == self::OBJECT;\n }", "public function testSetAndRetrieveObject(): void\n {\n $obj = new \\stdClass;\n $obj->animal = \"Frog\";\n $obj->mineral = \"Quartz\";\n $obj->vegetable = \"Spinach\";\n $testObj = new \\stdClass;\n $testObj->testInt = 5;\n $testObj->testFloat = 3.278;\n $testObj->testString = \"WooHoo\";\n $testObj->testBoolean = true;\n $testObj->testNull = null;\n $testObj->testArray = array(1,2,3,4,5);\n $testObj->testObject = $obj;\n $key = \"TestObject\";\n $this->testNotStrict->set($key, $testObj);\n $a = $this->testNotStrict->get($key);\n $bool = is_object($a);\n $this->assertTrue($bool);\n $this->assertEquals($testObj->testInt, $a->testInt);\n $this->assertEquals($testObj->testFloat, $a->testFloat);\n $this->assertEquals($testObj->testString, $a->testString);\n $this->assertEquals($testObj->testBoolean, $a->testBoolean);\n $this->assertNull($a->testNull);\n $this->assertEquals($testObj->testArray, $a->testArray);\n $this->assertEquals($testObj->testObject, $a->testObject);\n }", "protected function isExpectedObject($object)\n {\n return $object instanceof Page;\n }", "abstract public function objType();", "function setObject($object);", "public function sendObject($obj){\n try{\n $valores = get_object_vars($obj);\n return ($this->enviar($valores));\n }\n catch(Exception $e){\n return false;\n }\n }", "public static function has_og_metadata_interface( \\Charcoal_Base $object )\n\t{\n\t\treturn ( is_object( $object ) && $object instanceof Interface_Content_Metadata_OpenGraph );\n\t}", "public static function post_is_object(){\n if( count($_POST)>=1) return (object)$_POST;\n }", "public function someFunction(object $someObject)\n {\n }", "protected function testObjects() {\n }", "public function isIncompleteObject($object)\n {\n return !is_object($object) && gettype($object) == 'object';\n }", "public function is_allowed_to_set_content_object_rights();", "public function isinstanceof($class,$instance=null);", "function isSubTypeOf ($object, $className)\r\n{\r\n\treturn $object instanceof $className;\r\n}", "private function checkAccepted(object $object): void\n {\n if (!$object instanceof $this->accepted) {\n throw new InvalidTypeException($this->accepted, get_class($object));\n }\n }", "function isValidTarget($target) :bool {\n if (gettype($target) === 'object') {\n return true; //// TODO: Test insuffisant???\n }\n return false;\n }", "public abstract function create($object);", "public function isEntityFilled(Pickup $object);", "public function willPublishStory($object) {\n return $object;\n }", "public static function validateClass( $object ) {\n return is_object( $object ) &&\n in_array( \n get_class($object),\n ['UKMNorge\\Arrangement\\Program\\Hendelse']\n );\n }", "public function checkSubExtObj() {}", "static function isArrayObject($var){\n\t\tif(self::isInstanceOf($var, 'Webiny\\Component\\StdLib\\StdObject\\ArrayObject\\ArrayObject')){\n\t\t\treturn true;\n\t\t}\n\n\t\treturn false;\n\t}", "public function requiresInstance() : bool;", "function o_castBool($value) {\n\t\t\treturn Obj::singleton()->castBool($value);\n\t\t}", "static function isUrlObject($var){\n\t\tif(self::isInstanceOf($var, 'Webiny\\Component\\StdLib\\StdObject\\UrlObject\\UrlObject')){\n\t\t\treturn true;\n\t\t}\n\n\t\treturn false;\n\t}", "public function as_object($class = TRUE, $arguments = array());", "public function isGranted($name, ?object $object = null): bool;", "public function setObject(object $object): void;", "function rest_sanitize_boolean($value)\n {\n }", "public function expectObject($var, $strict = false, $byValue = false) {\n\t\t\t$object_id = ($byValue) ? $var : (int) getRequest($var);\n\t\t\t$object = umiObjectsCollection::getInstance()->getObject((int) $object_id);\n\n\t\t\tif($object instanceof umiObject) {\n\t\t\t\treturn $object;\n\t\t\t} else {\n\t\t\t\tif($strict) {\n\t\t\t\t\tthrow new expectObjectException(getLabel(\"error-expect-object\"));\n\t\t\t\t} else {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t}", "public function ensureObject(\\SetaPDF_Core_Type_IndirectObjectInterface $indirectObject) {}", "protected function is_datetime_object($var){\n return gettype($var)=='object' && get_class($var) == 'DateTime';\n }", "public function equals(Object $object);", "public function equals($obj): bool;", "public function testInterface()\n {\n \t$this->assertType('Util_Format_Interface', $this->object);\n }", "public function testInterface()\n {\n \t$this->assertType('Util_Format_Interface', $this->object);\n }", "function cargo_is_json( $obj ) {\n\treturn is_string( $obj ) && is_array( json_decode( $obj, true ) ) && json_last_error() === JSON_ERROR_NONE;\n}", "public function canSetTheContentObjectClassMapAndGetARegisteredContentObject() {}", "public function getBool(): bool;", "public static function is()\n {\n }", "function CheckForDBobject(&$dbh, $objectname, $dml_sql = '')\n {\n $sp = array('obj' => $objectname);\n $result = $dbh->QueryHash(\"SELECT COUNT(*) AS CNT FROM USER_OBJECTS WHERE OBJECT_NAME = :obj\", OCI_ASSOC, 0, $sp);\n if(intval($result['CNT']) > 0)\n {\n return(true);\n }\n /* If no sql to create object is supplied we return false as object does not exist. */\n if($dml_sql == '')\n {\n return(false);\n }\n /* If $dml_sql != '' we try to create the object in question, and if this does not work we return false. */\n $result = $dbh->Query($dml_sql,OCI_ASSOC, 1);\n if($result)\n {\n $d = WhichBR();\n $error = $dbh->GetErrorText();\n printf(\"OCI ERROR: %s-%s%s\",$result,$error,$d['LF']);\n return(false);\n }\n /* All is okay return true now. */\n return(true);\n }", "abstract protected function checkDomainObjectType(DomainObjectInterface $domainObject): void;", "function isFraction ($obj) {\n return (is_object($obj)\n && isset($obj->classname)\n && $obj->classname == \"Fraction\");\n }", "public function metaExport($object = false);", "function objectAndClass(object|ClassName $var) {}", "public static function ensureObject($value)\n\t{\n\t\treturn (object)$value;\n\t}", "public static function is_a($object, string $class_name): bool {\n // and instenace of operator doesn't work with variables...\n if (self::str_starts_with($class_name, '\\\\')) {\n $class_name = (string)substr($class_name, 1);\n }\n return get_class($object) === $class_name;\n }", "public function testObjectPassThrough() {\n\t\t$result = $this->Js->object(array('one' => 'first', 'two' => 'second'));\n\t\t$expected = '{\"one\":\"first\",\"two\":\"second\"}';\n\t\t$this->assertEquals($expected, $result);\n\t}", "public function GCheck (\\stdClass $param);" ]
[ "0.7699856", "0.6934189", "0.69066846", "0.6860779", "0.6824494", "0.67020553", "0.6596764", "0.64479655", "0.63994914", "0.63970125", "0.6368422", "0.63616765", "0.63323635", "0.6279313", "0.6196108", "0.61414397", "0.61353135", "0.6123403", "0.6116995", "0.60847497", "0.60823655", "0.60776997", "0.60653186", "0.60287523", "0.6001017", "0.5981709", "0.59642875", "0.593753", "0.5936938", "0.5887264", "0.5884471", "0.5869189", "0.5858747", "0.58048147", "0.5800139", "0.5799984", "0.57687783", "0.5757667", "0.57491916", "0.57482386", "0.5748028", "0.5744874", "0.572152", "0.5715978", "0.5708377", "0.5703851", "0.56459826", "0.56281066", "0.560662", "0.55957544", "0.55866647", "0.5586284", "0.55560094", "0.5553647", "0.5552842", "0.5550363", "0.5547194", "0.55420625", "0.5539272", "0.5525441", "0.5523034", "0.551354", "0.5508291", "0.5503085", "0.5485073", "0.5483631", "0.54418606", "0.5438784", "0.5422995", "0.54208255", "0.54201525", "0.5413737", "0.5407163", "0.5404057", "0.5386479", "0.53843707", "0.5380685", "0.5374835", "0.5373186", "0.5370833", "0.5367869", "0.5355428", "0.5354746", "0.5354155", "0.5340698", "0.53387165", "0.53387165", "0.5337088", "0.53219813", "0.5311028", "0.529705", "0.52965176", "0.5289779", "0.52887493", "0.5287619", "0.52873564", "0.5280389", "0.5267309", "0.5261935", "0.525983" ]
0.5354807
82
$object_ MUST be mixed to comply with interface: /. mixed .
function offsetGet(/*. mixed .*/ $object_){}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract public function object();", "protected abstract function supportsObject($object);", "function rest_is_object($maybe_object)\n {\n }", "function rest_sanitize_object($maybe_object)\n {\n }", "private function changelog_validate_object () {\n\t\t# set valid objects\n\t\t$objects = array(\n\t\t\t\t\t\t\"ip_addr\",\n\t\t\t\t\t\t\"subnet\",\n\t\t\t\t\t\t\"section\"\n\t\t\t\t\t\t);\n\t\t# check\n\t\treturn in_array($this->object_type, $objects) ? true : false;\n\t}", "public static function is_stringable_object($input)\n {\n }", "public function scrubObject(object $data) : object;", "public function someFunction(object $someObject)\n {\n }", "abstract public function load_object(array $args);", "protected function testObject() {\n }", "static private function checkRequirments($object) {\n if (!is_object($object)) {\n self::fail('Must pass an object');\n }\n if (!self::getConfig('allowBlank') && empty((array)$object)) {\n self::fail('Empty object, and allowBlank is disabled');\n }\n if (!isset($object->_id) || empty($object->_id)) {\n $object->_id = self::getId();\n }\n if (!isset($object->_type) || empty($object->_type)) {\n $object->_type = self::getType($object);\n }\n return $object;\n }", "abstract public function objType();", "public abstract function create($object);", "abstract public function matches($object) : bool;", "function setObject($object);", "public function setObject(object $object): void;", "public function load( &$object );", "protected function testObjects() {\n }", "public function base (\\stdClass $param);", "abstract function objectAsString($object);", "protected function miss($obj, $interface) {\n\t\t$atoms = explode('\\\\', $interface);\n\t\t$method = \"set\".end($atoms);\n\t\t$v = new \\ReflectionParameter(array(get_class($obj), $method), 0);\n\t\t$c = $v->__toString();\n\t\t$ref = explode(\" \",$c)[4];\n\t\tif(preg_match('/Model$/', $ref, $d) == 1) {\n\t\t\tif(isset($atoms[1])) {\n\t\t\t\t$atoms = array_slice($atoms, 0, -1);\n\t\t\t\t$ref = implode('.',$atoms).\".\".substr($ref, 0,-5);\n\t\t\t}\n\t\t\t$m = $this->modelLoader->load($ref);\n\t\t\t$obj->$method($m);\n\t\t} else \n\t\tif(preg_match('/Plugin$/', $ref) == 1) {\n\t\t\tif(isset($atoms[1]))\n\t\t\t\t$ref = \"{$atoms[0]}.\".substr($ref, 0,-5);\n\t\t\t$this->controllerLoader->load($ref);\n\t\t} else {\n\t\t\tthrow new \\Exception(\"Cannot initialise object with interface $interface\");\n\t\t}\n\t\t\n\t}", "function objectAndClass(object|ClassName $var) {}", "public function testIsObject() {\n\t\t$array = array('one' => 1, 'two' => 2);\n\t\t$object = (object)$array;\n\t\t$result = _::isObject($object);\n\t\t$this->assertTrue($result);\n\n\t\t// test that an object is an object\n\t\t$result = _::isObject($array);\n\t\t$this->assertFalse($result);\n\t}", "public function requestBodyConverter($object)\n {\n }", "function mix($object)\n\t{\n\t\t$class_name = is_object($object)?get_class($object):$object;\n\n\t\tforeach(t(new ReflectionClass($object))->getMethods(ReflectionMethod::IS_PUBLIC) as $method) \n\t\t\tif(substr($method->name, 0, 2) == \"__\") continue;\n\t\t\telse\n\t\t\t\t$this->{$method->name} = $method->isStatic()?\n\t\t\t\t\tarray($class_name, $method->name):array($object, $method->name);\n\t}", "protected function validateObject(&$object) {\n // types of objects that people can create. Will expand later.\n $test_array = [ \"Note\" ];\n // make sure it is an accepted ActivityPub object type\n if (!isset($object['type']) || !in_array($object['type'],$test_array)) return false;\n // require all objects to have a declared attribution\n if (!isset($object['attributedTo'])) return false;\n // there needs to be something actually being posted\n if (!isset($object['content'])) return false;\n \n return true;\n }", "public function dispatch($object);", "public function handle($obj)\n {\n\n }", "public function setMetaFrom($object);", "public function testObjectPassThrough() {\n\t\t$result = $this->Js->object(array('one' => 'first', 'two' => 'second'));\n\t\t$expected = '{\"one\":\"first\",\"two\":\"second\"}';\n\t\t$this->assertEquals($expected, $result);\n\t}", "abstract protected function createObject();", "abstract public function object_data(&$data);", "function clean_object_forX5GON($orig_object, $target_object){\n\n $course_allowedfields='id,fullname,shortname,summary,lang,timecreated,timemodified,courseurl';\n $course_allowedfieldsarray=explode(',',$course_allowedfields);\n $category_allowedfields='id,name,description,parent,coursecount';\n $category_allowedfieldsarray=explode(',',$category_allowedfields);\n $module_allowedfields='id,course,added,modname,moduleurl';\n $module_allowedfieldsarray=explode(',',$module_allowedfields);\n $moduleinstance_allowedfields='name,timemodified';\n $moduleinstance_allowedfieldsarray=explode(',',$moduleinstance_allowedfields);\n $context_allowedfields='contextlevel';\n $context_allowedfieldsarray=explode(',',$context_allowedfields);\n $file_allowedfields='filename,filesize,mimetype,author,license,timecreated,timemodified,fileurl';\n $file_allowedfieldsarray=explode(',',$file_allowedfields);\n $licence_allowedfields='shortname,fullname,source,version';\n $licence_allowedfieldsarray=explode(',',$licence_allowedfields);\n\n $treated_object =new stdClass();\n\n switch ($target_object) {\n case 'courseinfos':\n $treated_object = clean_object($orig_object, $course_allowedfieldsarray);\n break;\n\n case 'categoryinfos':\n $treated_object = clean_object($orig_object, $category_allowedfieldsarray);\n break;\n\n case 'moduleinfos':\n $treated_object = clean_object($orig_object, $module_allowedfieldsarray);\n break;\n\n case 'moduleinstanceinfos':\n $treated_object = clean_object($orig_object, $moduleinstance_allowedfieldsarray);\n break;\n\n case 'contextinfos':\n $treated_object = clean_object($orig_object, $context_allowedfieldsarray);\n break;\n\n case 'fileinfos':\n $treated_object = clean_object($orig_object, $file_allowedfieldsarray);\n break;\n\n case 'licenceinfos':\n $treated_object = clean_object($orig_object, $licence_allowedfieldsarray);\n break;\n\n default:\n break;\n }\n return $treated_object;\n }", "public function setObject(object $object): self;", "public abstract function update($object);", "public function checkExtObj() {}", "public function checkExtObj() {}", "public function testObjectReplacement()\n {\n $this->assertInstanceOf(\n 'KoderHut\\RssFeedster\\Tests\\Mock\\DataSource\\MockDataSource',\n DataSource::getFacadeRoot()\n );\n\n $this->assertInstanceOf(\n 'KoderHut\\RssFeedster\\Tests\\Mock\\View\\MockJsonRenderer',\n Renderer::getFacadeRoot()\n );\n }", "public function create( &$object );", "static function isStringObject($var){\n\t\tif(self::isInstanceOf($var, 'Webiny\\Component\\StdLib\\StdObject\\StringObject\\StringObject')){\n\t\t\treturn true;\n\t\t}\n\n\t\treturn false;\n\t}", "protected function get_object_type()\n {\n }", "public function getIsObject() {\n $primitives = array(\"boolean\", \"integer\", \"int\", \"string\", \"float\");\n return !is_numeric(array_search($this->getType(), $primitives));\n }", "public function isObject(): bool\n {\n return $this->phpType === self::OBJECT;\n }", "public function getObject(): object;", "abstract protected function getObjectTag();", "public function testInterface()\n {\n \t$this->assertType('Util_Format_Interface', $this->object);\n }", "public function testInterface()\n {\n \t$this->assertType('Util_Format_Interface', $this->object);\n }", "function isSubTypeOf ($object, $className)\r\n{\r\n\treturn $object instanceof $className;\r\n}", "public function aObjeto() {\t}", "public function checkObject(): object\n {\n if (!is_object($this->getValue())) {\n throw new TypeInvalidException('object', gettype($this->getValue()));\n }\n\n return $this->getValue();\n }", "public function createObjectSecurity(object $object): void;", "public function as_object($class = TRUE, $arguments = array());", "public function isAok($object) \n {\n return $object instanceof $this; \n }", "function _Parser($object)\n\t{\n\t\t$this->object = $object;\n\t}", "static function unittest_objectConstraintGuarantee () {\n PhlintTest::assertIssues('\n function foo ($obj) {\n if (is_object($obj))\n return get_class($obj) . $obj->bar();\n return $obj;\n }\n foo(2);\n foo(\"Hello world\");\n foo(new stdClass());\n ', [\n '\n Unable to invoke undefined *stdClass::bar* for the expression *$obj->bar()* on line 3.\n Trace #1: Function *foo(stdClass $obj)* specialized for the expression *foo(new stdClass())* on line 8.\n ',\n ]);\n }", "public static function full($object)\n\t{\n\t\tif (is_string($object)) \n\t\t\treturn str_replace('.', '\\\\', $object);\n\t\t\n\t\tif (is_object($object)) \n\t\t\treturn trim(get_class($object), '\\\\');\n\t\t\n\t\tthrow new \\InvalidArgumentException(\n\t\t\tsprintf(\"[%s]: Esperavamos um objeto ou uma string, recebemos um(a) %s.\", __CLASS__, gettype($object))\n\t\t);\n\t}", "static function autopsy($object=null): void {\r\n\t\twp_die(sprintf('<pre>%s</pre>', print_r($object, true)));\r\n\t}", "public function getObj();", "public function isNoValidationTypeDetermined($object): bool;", "public function getObject(): mixed\n {\n // how can i derive this class from a string?\n if (!$object = call_user_func('App\\\\'.ucfirst($this->object_type).'::find', $this->object_id)) {\n return $object;\n }\n\n return null;\n }", "public abstract function getObjectMembers(string $sObject):?object;", "function get_object_subtype($rule)\n {\n }", "public function __construct($object)\n {\n $this->object = $object;\n }", "public function __construct($object)\n {\n $this->object = $object;\n }", "function isInstanceOf($object, $class) {\n return $object instanceof $class;\n}", "final protected function invoke($object)\n {\n return $object;\n }", "function fix_object($object)\n {\n // preg_replace_callback handler. Needed to calculate new key-length.\n $fix_key = create_function('$matches', 'return \":\" . strlen( $matches[1] ) . \":\\\"\" . $matches[1] . \"\\\"\";');\n\n // 1. Serialize the object to a string.\n $dump = serialize($object);\n\n // 2. Change class-type to 'stdClass'.\n $dump = preg_replace('/^O:\\d+:\"[^\"]++\"/', 'O:8:\"stdClass\"', $dump);\n\n // 3. Make private and protected properties public.\n $dump = preg_replace_callback('/:\\d+:\"\\0.*?\\0([^\"]+)\"/', $fix_key, $dump);\n\n // 4. Unserialize the modified object again.\n return unserialize($dump);\n }", "protected function initializeObject() {}", "abstract protected function interface();", "public function setObject($object) {\n $this->object = $object;\n }", "public static function ensureObject($value)\n\t{\n\t\treturn (object)$value;\n\t}", "function _wp_http_get_object()\n {\n }", "public function validate(\\GraphQL\\Type\\Definition\\InputObjectType $inputObj) : void\n {\n }", "abstract protected function loadExposedObjects();", "public function allowBody($object)\n\t{\n\t\treturn (($object instanceof PNavMenuItem) || ($object instanceof PNavMenuItemContainer));\n\t}", "public function object($object)\n {\n $this->is_object = $object;\n return $this;\n }", "public function hasObject();", "public function getObject();", "public function getObject();", "function get_object_subtype($object_type, $object_id)\n {\n }", "protected static function _castIfObject($in)\n\t{\n\t\t//\tThis could be any type\n\t\tif (is_object($in)) {\n\t\t\tswitch (true) {\n\t\t\t\tcase $in instanceof AtomicInterface:\n\t\t\t\t\treturn $in->get();\n\n\t\t\t\tcase method_exists($in, '__toString'):\n\t\t\t\t\treturn $in->__toString();\n\n\t\t\t\tcase method_exists($in, 'format'):\n\t\t\t\t\treturn $in->format('c');\n\n\t\t\t\tcase method_exists($in, 'toArray'):\n\t\t\t\t\treturn $in->toArray();\n\t\t\t}\n\n\t\t\treturn (array) $in;\n\t\t}\n\n\t\treturn $in;\n\t}", "public function load( &$object ) {\n\t\t// TODO: Implement load() method.\n\t}", "public function getObjectType() : string;", "public function isInstanceOfMediaType($object) : bool;", "public abstract function FetchObject();", "public function checkSubExtObj() {}", "public abstract function fetchObject();", "public function checkSubExtObj()\n {\n if (is_object($this->extObj)) {\n $this->extObj->checkExtObj();\n }\n }", "private function objectify(mixed $input): mixed\n {\n if (is_object($input)) {\n $input = new static($input);\n } elseif (is_array($input)) {\n foreach ($input as $key => $value) {\n $input[$key] = $this->objectify($value);\n }\n }\n\n return $input;\n }", "private function checkAccepted(object $object): void\n {\n if (!$object instanceof $this->accepted) {\n throw new InvalidTypeException($this->accepted, get_class($object));\n }\n }", "function loadObject( &$object ) {\n\t\tif ($object != null) {\n\t\t\tif (!($cur = $this->query())) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tif ($array = mysql_fetch_assoc( $cur )) {\n\t\t\t\tmysql_free_result( $cur );\n\t\t\t\tmosBindArrayToObject( $array, $object, null, null, false );\n\t\t\t\treturn true;\n\t\t\t} else {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t} else {\n\t\t\tif ($cur = $this->query()) {\n\t\t\t\tif ($object = mysql_fetch_object( $cur )) {\n\t\t\t\t\tmysql_free_result( $cur );\n\t\t\t\t\treturn true;\n\t\t\t\t} else {\n\t\t\t\t\t$object = null;\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t}", "private function setObject($object) {\n $this->object = $object;\n }", "public static function replace($object)\n\t{\n\t\tif (is_object($object) === false) {\n\t\t\tthrow new InvalidArgumentException('Unsupported value: ' . gettype($object));\n\t\t}\n\n\t\t$kirby = App::instance();\n\t\t$class = get_class($object);\n\t\t$name = strtolower($class);\n\n\t\t// 1. Is $object class explicitly blocked?\n\t\t// get list of blocked classes from config\n\t\t$blocked = $kirby->option('kql.classes.blocked', []);\n\t\t$blocked = array_map('strtolower', $blocked);\n\n\t\t// check in the block list from the config\n\t\tif (in_array($name, $blocked) === true) {\n\t\t\tthrow new PermissionException('Access to the class \"' . $class . '\" is blocked');\n\t\t}\n\n\t\t// 2. Is $object already an interceptor?\n\t\t// directly return interceptor objects\n\t\tif ($object instanceof Interceptor) {\n\t\t\treturn $object;\n\t\t}\n\n\t\t// 3. Does an interceptor class for $object exist?\n\t\t// check for an interceptor class\n\t\t$interceptors = $kirby->option('kql.interceptors', []);\n\t\t$interceptors = array_change_key_case($interceptors, CASE_LOWER);\n\t\t// load an interceptor from config if it exists and otherwise fall back to a built-in interceptor\n\t\t$interceptor = $interceptors[$name] ?? static::class($class);\n\n\t\t// check for a valid interceptor class\n\t\tif ($class !== $interceptor && class_exists($interceptor) === true) {\n\t\t\treturn new $interceptor($object);\n\t\t}\n\n\t\t// 4. Also check for parent classes of $object\n\t\t// go through parents of the current object to use their interceptors as fallback\n\t\tforeach (class_parents($object) as $parent) {\n\t\t\t$interceptor = static::class($parent);\n\n\t\t\tif (class_exists($interceptor) === true) {\n\t\t\t\treturn new $interceptor($object);\n\t\t\t}\n\t\t}\n\n\t\t// 5. $object has no interceptor but is explicitly allowed?\n\t\t// check for a class in the allow list\n\t\t$allowed = $kirby->option('kql.classes.allowed', []);\n\t\t$allowed = array_map('strtolower', $allowed);\n\n\t\t// return the plain object if it is allowed\n\t\tif (in_array($name, $allowed) === true) {\n\t\t\treturn $object;\n\t\t}\n\n\t\t// 6. None of the above? Block class.\n\t\tthrow new PermissionException('Access to the class \"' . $class . '\" is not supported');\n\t}", "abstract public function objectIsComplete($object);", "private function PREPARE_OBJECT_VARIABLE_METHOD()\r\r {\r\r if($this->_type === 'POST')\r\r {\r\r foreach($this->_fields as $key=>$field)\r\r {\r\r $this->_object[$key]['VALUE'] = isset($_POST[$key])?$_POST[$key]:false;\r\r } \r\r } \r\r else if($this->_type === 'GET')\r\r {\r\r foreach($this->_fields as $key=>$field)\r\r {\r\r $this->_object[$key]['VALUE'] = isset($_GET[$key])?$_GET[$key]:false;\r\r } \r\r } \r\r }", "public function someFunction($someObject)\n {\n }", "public function testObject()\n {\n $this->assertEquals('ExampleSvn\\Pre\\Id', get_class($this->oIdListener));\n }", "public function update(AbstractObject $obj)\n {\n\n }", "abstract protected function checkDomainObjectType(DomainObjectInterface $domainObject): void;", "public function ensureObject(\\SetaPDF_Core_Type_IndirectObjectInterface $indirectObject) {}" ]
[ "0.6998059", "0.69080234", "0.66477835", "0.6471842", "0.61738837", "0.61677223", "0.6146446", "0.6082478", "0.60785186", "0.6077212", "0.6059412", "0.59828377", "0.5878154", "0.58571786", "0.5852465", "0.583582", "0.582441", "0.582047", "0.57991946", "0.5786723", "0.57271135", "0.5723631", "0.57143825", "0.57133144", "0.56730676", "0.5658801", "0.5652009", "0.564843", "0.56446797", "0.5634952", "0.56286854", "0.5613109", "0.5604634", "0.55944777", "0.55803216", "0.557725", "0.55753684", "0.5571693", "0.5571457", "0.55682415", "0.5565875", "0.55568695", "0.55427635", "0.55421025", "0.5541031", "0.5535522", "0.5535522", "0.55347335", "0.5527225", "0.55081725", "0.5506187", "0.548836", "0.5450042", "0.5434852", "0.54347587", "0.5432981", "0.5426414", "0.5424322", "0.5418524", "0.5407666", "0.5405567", "0.5400912", "0.5398521", "0.5398521", "0.53904057", "0.53865755", "0.5385079", "0.5383763", "0.5378492", "0.5375931", "0.5370599", "0.53628814", "0.53533655", "0.53529376", "0.53452134", "0.5336142", "0.53308153", "0.53228796", "0.53228796", "0.5309458", "0.5308945", "0.5303588", "0.53025603", "0.52976435", "0.52956164", "0.52939165", "0.52894783", "0.5289024", "0.5288536", "0.5285652", "0.52825135", "0.527365", "0.5269137", "0.52646947", "0.52630264", "0.52499735", "0.5248105", "0.5247897", "0.5247849", "0.52455777" ]
0.5249164
96
$object_ MUST be mixed to comply with interface: /. void .
function offsetSet(/*. mixed .*/ $object_, /*. mixed .*/ $info){}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract public function object();", "public function setObject(object $object): void;", "protected abstract function supportsObject($object);", "protected function testObject() {\n }", "public function someFunction(object $someObject)\n {\n }", "public function createObjectSecurity(object $object): void;", "static function autopsy($object=null): void {\r\n\t\twp_die(sprintf('<pre>%s</pre>', print_r($object, true)));\r\n\t}", "public function dispatch($object);", "public function remove($object): void;", "public function update($object): void;", "function rest_is_object($maybe_object)\n {\n }", "protected function testObjects() {\n }", "function rest_sanitize_object($maybe_object)\n {\n }", "public function scrubObject(object $data) : object;", "abstract function delete(&$object);", "public function aObjeto() {\t}", "public function handle($obj)\n {\n\n }", "function setObject($object);", "public function add($object): void;", "public function delete($object)\n {\n }", "public abstract function create($object);", "public function postProcess($object);", "public abstract function update($object);", "abstract public function objectIsComplete($object);", "public function delete($object) {\r\n \r\n }", "protected function miss($obj, $interface) {\n\t\t$atoms = explode('\\\\', $interface);\n\t\t$method = \"set\".end($atoms);\n\t\t$v = new \\ReflectionParameter(array(get_class($obj), $method), 0);\n\t\t$c = $v->__toString();\n\t\t$ref = explode(\" \",$c)[4];\n\t\tif(preg_match('/Model$/', $ref, $d) == 1) {\n\t\t\tif(isset($atoms[1])) {\n\t\t\t\t$atoms = array_slice($atoms, 0, -1);\n\t\t\t\t$ref = implode('.',$atoms).\".\".substr($ref, 0,-5);\n\t\t\t}\n\t\t\t$m = $this->modelLoader->load($ref);\n\t\t\t$obj->$method($m);\n\t\t} else \n\t\tif(preg_match('/Plugin$/', $ref) == 1) {\n\t\t\tif(isset($atoms[1]))\n\t\t\t\t$ref = \"{$atoms[0]}.\".substr($ref, 0,-5);\n\t\t\t$this->controllerLoader->load($ref);\n\t\t} else {\n\t\t\tthrow new \\Exception(\"Cannot initialise object with interface $interface\");\n\t\t}\n\t\t\n\t}", "public function handlesObject(object $object, ?string $statusName = null): bool;", "public function someFunction($someObject)\n {\n }", "public function __construct($object)\n {\n $this->object = $object;\n }", "public function __construct($object)\n {\n $this->object = $object;\n }", "public function _init_obj()\n {\n // dummy\n }", "public function remove($object);", "public function remove($object);", "public function setObject($object) {\n $this->object = $object;\n }", "public function postProcess(string $id, $object): void\n {\n // Do nothing\n }", "public function update(AbstractObject $obj)\n {\n\n }", "public function setObject(object $object): self;", "abstract function actionInstruction(ObjectInterface $object, EnvironmentInterface $environment);", "private function setObject($object) {\n $this->object = $object;\n }", "abstract protected function interface();", "private function changelog_validate_object () {\n\t\t# set valid objects\n\t\t$objects = array(\n\t\t\t\t\t\t\"ip_addr\",\n\t\t\t\t\t\t\"subnet\",\n\t\t\t\t\t\t\"section\"\n\t\t\t\t\t\t);\n\t\t# check\n\t\treturn in_array($this->object_type, $objects) ? true : false;\n\t}", "public function remove ($obj) {}", "static private function checkRequirments($object) {\n if (!is_object($object)) {\n self::fail('Must pass an object');\n }\n if (!self::getConfig('allowBlank') && empty((array)$object)) {\n self::fail('Empty object, and allowBlank is disabled');\n }\n if (!isset($object->_id) || empty($object->_id)) {\n $object->_id = self::getId();\n }\n if (!isset($object->_type) || empty($object->_type)) {\n $object->_type = self::getType($object);\n }\n return $object;\n }", "protected function initializeObject() {}", "function _init_obj()\r\n{\r\n\t//\tdummy\r\n}", "public function delete(AbstractObject $obj)\n {\n\n }", "abstract public function object_data(&$data);", "public function create( &$object );", "abstract protected function createObject();", "final protected function invoke($object)\n {\n return $object;\n }", "private function checkAccepted(object $object): void\n {\n if (!$object instanceof $this->accepted) {\n throw new InvalidTypeException($this->accepted, get_class($object));\n }\n }", "public function preProcess($object);", "public function removeWithoutUsageChecks($object)\n {\n parent::remove($object);\n $this->assetService->emitAssetRemoved($object);\n }", "public function validate(\\GraphQL\\Type\\Definition\\InputObjectType $inputObj) : void\n {\n }", "protected function doInsert( \\gb\\domain\\DomainObject $object ) {\n }", "public function update( &$object );", "abstract public function load_object(array $args);", "abstract protected function checkDomainObjectType(DomainObjectInterface $domainObject): void;", "public function initializeObject() {}", "public function initializeObject() {}", "public function initializeObject() {}", "public function initializeObject() {}", "public function initializeObject() {}", "public function initializeObject() {}", "public function initializeObject() {}", "public function initializeObject() {}", "public function initializeObject() {}", "public function initializeObject() {}", "public function initializeObject() {}", "public function initializeObject() {}", "protected function postCreateHook($object) { }", "public function setObject(string $object): void\n {\n $this->_object = $object;\n }", "public function setObject(string $object): void\n {\n $this->_object = $object;\n }", "public function testNewObject()\n {\n $this->skip('abstract method');\n }", "public function hasObject();", "public function delete( &$object );", "function createObject() {\n\t\t// must be implemented by sub-classes\n\t\tassert(false);\n\t}", "public function register($object);", "public function remove($object)\n {\n parent::delete($object); // TODO: Change the autogenerated stub\n }", "public function deleteObject(\\SetaPDF_Core_Type_IndirectObjectInterface $object) {}", "static function unittest_objectConstraintGuarantee () {\n PhlintTest::assertIssues('\n function foo ($obj) {\n if (is_object($obj))\n return get_class($obj) . $obj->bar();\n return $obj;\n }\n foo(2);\n foo(\"Hello world\");\n foo(new stdClass());\n ', [\n '\n Unable to invoke undefined *stdClass::bar* for the expression *$obj->bar()* on line 3.\n Trace #1: Function *foo(stdClass $obj)* specialized for the expression *foo(new stdClass())* on line 8.\n ',\n ]);\n }", "abstract protected function getObjectTag();", "function _Parser($object)\n\t{\n\t\t$this->object = $object;\n\t}", "abstract public function matches($object) : bool;", "function delete($obj)\n {\n }", "public function reveal($object);", "abstract public function prepare_response( $object, $context );", "public function isAok($object) \n {\n return $object instanceof $this; \n }", "abstract public function updateItem(&$object);", "public function update(MappableObject $object)\n {\n }", "public function remove($object)\n {\n $this->assetService->validateRemoval($object);\n parent::remove($object);\n $this->assetService->emitAssetRemoved($object);\n }", "protected function preCreateHook($object) { }", "function uploadObject();", "public function releaseObject(\\SetaPDF_Core_Type_IndirectObject $object) {}", "public function base (\\stdClass $param);", "public function save($object);", "public function add(\\wkhtmltox\\PDF\\Object $object): void {}", "public function populate($object)\n {\n }", "public function ensureObject(\\SetaPDF_Core_Type_IndirectObjectInterface $indirectObject) {}", "protected function validateObject(&$object) {\n // types of objects that people can create. Will expand later.\n $test_array = [ \"Note\" ];\n // make sure it is an accepted ActivityPub object type\n if (!isset($object['type']) || !in_array($object['type'],$test_array)) return false;\n // require all objects to have a declared attribution\n if (!isset($object['attributedTo'])) return false;\n // there needs to be something actually being posted\n if (!isset($object['content'])) return false;\n \n return true;\n }", "public function removeObjectReallyRemovesTheObjectFromStorage() {\n\t\t$originalObject = new \\F3\\FLOW3\\Fixture\\DummyClass();\n\t\t$this->objectRegistry->putObject('DummyObject', $originalObject);\n\t\t$this->objectRegistry->removeObject('DummyObject');\n\t\t$this->assertFalse($this->objectRegistry->objectExists('DummyObject'), 'removeObject() did not really remove the object.');\n\t}" ]
[ "0.7166231", "0.68920916", "0.66815597", "0.66016454", "0.65531063", "0.6517156", "0.65083563", "0.6465932", "0.62993604", "0.62711054", "0.62652063", "0.6249632", "0.61309814", "0.61253893", "0.6114775", "0.61074114", "0.60719305", "0.60696596", "0.60543597", "0.5999409", "0.59937745", "0.5986897", "0.5983604", "0.59662", "0.5948886", "0.5896884", "0.5861763", "0.5852618", "0.5843525", "0.5843525", "0.5829884", "0.5818979", "0.5818979", "0.58144844", "0.5797255", "0.57767284", "0.57748353", "0.5770922", "0.57619286", "0.5756218", "0.5752462", "0.5745106", "0.57346344", "0.5732518", "0.5732471", "0.5719835", "0.57144564", "0.5711867", "0.5691934", "0.567584", "0.56753904", "0.5670393", "0.56638515", "0.56272006", "0.56198007", "0.56163573", "0.5613698", "0.56127256", "0.56007695", "0.56007695", "0.56007695", "0.56005216", "0.56005216", "0.56005216", "0.56005216", "0.56005216", "0.56005216", "0.56005216", "0.56005216", "0.56005216", "0.5596945", "0.55945563", "0.55945563", "0.55840063", "0.55818754", "0.5574996", "0.5562366", "0.555577", "0.5553855", "0.55525154", "0.5548938", "0.55477136", "0.554718", "0.55297714", "0.5529386", "0.5521957", "0.5509944", "0.5498979", "0.54982585", "0.5491353", "0.5487131", "0.54796076", "0.54779357", "0.5471264", "0.546925", "0.54688805", "0.5468353", "0.54666454", "0.54528785", "0.54347736", "0.5433184" ]
0.0
-1
$object_ MUST be mixed to comply with interface: /. void .
function offsetUnset(/*. mixed .*/ $object_){}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract public function object();", "public function setObject(object $object): void;", "protected abstract function supportsObject($object);", "protected function testObject() {\n }", "public function someFunction(object $someObject)\n {\n }", "public function createObjectSecurity(object $object): void;", "static function autopsy($object=null): void {\r\n\t\twp_die(sprintf('<pre>%s</pre>', print_r($object, true)));\r\n\t}", "public function dispatch($object);", "public function remove($object): void;", "public function update($object): void;", "function rest_is_object($maybe_object)\n {\n }", "protected function testObjects() {\n }", "function rest_sanitize_object($maybe_object)\n {\n }", "public function scrubObject(object $data) : object;", "abstract function delete(&$object);", "public function aObjeto() {\t}", "function setObject($object);", "public function handle($obj)\n {\n\n }", "public function add($object): void;", "public function delete($object)\n {\n }", "public abstract function create($object);", "public function postProcess($object);", "public abstract function update($object);", "abstract public function objectIsComplete($object);", "public function delete($object) {\r\n \r\n }", "protected function miss($obj, $interface) {\n\t\t$atoms = explode('\\\\', $interface);\n\t\t$method = \"set\".end($atoms);\n\t\t$v = new \\ReflectionParameter(array(get_class($obj), $method), 0);\n\t\t$c = $v->__toString();\n\t\t$ref = explode(\" \",$c)[4];\n\t\tif(preg_match('/Model$/', $ref, $d) == 1) {\n\t\t\tif(isset($atoms[1])) {\n\t\t\t\t$atoms = array_slice($atoms, 0, -1);\n\t\t\t\t$ref = implode('.',$atoms).\".\".substr($ref, 0,-5);\n\t\t\t}\n\t\t\t$m = $this->modelLoader->load($ref);\n\t\t\t$obj->$method($m);\n\t\t} else \n\t\tif(preg_match('/Plugin$/', $ref) == 1) {\n\t\t\tif(isset($atoms[1]))\n\t\t\t\t$ref = \"{$atoms[0]}.\".substr($ref, 0,-5);\n\t\t\t$this->controllerLoader->load($ref);\n\t\t} else {\n\t\t\tthrow new \\Exception(\"Cannot initialise object with interface $interface\");\n\t\t}\n\t\t\n\t}", "public function handlesObject(object $object, ?string $statusName = null): bool;", "public function someFunction($someObject)\n {\n }", "public function __construct($object)\n {\n $this->object = $object;\n }", "public function __construct($object)\n {\n $this->object = $object;\n }", "public function _init_obj()\n {\n // dummy\n }", "public function remove($object);", "public function remove($object);", "public function setObject($object) {\n $this->object = $object;\n }", "public function postProcess(string $id, $object): void\n {\n // Do nothing\n }", "public function setObject(object $object): self;", "public function update(AbstractObject $obj)\n {\n\n }", "abstract function actionInstruction(ObjectInterface $object, EnvironmentInterface $environment);", "private function setObject($object) {\n $this->object = $object;\n }", "abstract protected function interface();", "private function changelog_validate_object () {\n\t\t# set valid objects\n\t\t$objects = array(\n\t\t\t\t\t\t\"ip_addr\",\n\t\t\t\t\t\t\"subnet\",\n\t\t\t\t\t\t\"section\"\n\t\t\t\t\t\t);\n\t\t# check\n\t\treturn in_array($this->object_type, $objects) ? true : false;\n\t}", "public function remove ($obj) {}", "static private function checkRequirments($object) {\n if (!is_object($object)) {\n self::fail('Must pass an object');\n }\n if (!self::getConfig('allowBlank') && empty((array)$object)) {\n self::fail('Empty object, and allowBlank is disabled');\n }\n if (!isset($object->_id) || empty($object->_id)) {\n $object->_id = self::getId();\n }\n if (!isset($object->_type) || empty($object->_type)) {\n $object->_type = self::getType($object);\n }\n return $object;\n }", "function _init_obj()\r\n{\r\n\t//\tdummy\r\n}", "protected function initializeObject() {}", "public function delete(AbstractObject $obj)\n {\n\n }", "abstract public function object_data(&$data);", "public function create( &$object );", "abstract protected function createObject();", "final protected function invoke($object)\n {\n return $object;\n }", "private function checkAccepted(object $object): void\n {\n if (!$object instanceof $this->accepted) {\n throw new InvalidTypeException($this->accepted, get_class($object));\n }\n }", "public function preProcess($object);", "public function removeWithoutUsageChecks($object)\n {\n parent::remove($object);\n $this->assetService->emitAssetRemoved($object);\n }", "public function validate(\\GraphQL\\Type\\Definition\\InputObjectType $inputObj) : void\n {\n }", "protected function doInsert( \\gb\\domain\\DomainObject $object ) {\n }", "public function update( &$object );", "abstract public function load_object(array $args);", "abstract protected function checkDomainObjectType(DomainObjectInterface $domainObject): void;", "public function initializeObject() {}", "public function initializeObject() {}", "public function initializeObject() {}", "public function initializeObject() {}", "public function initializeObject() {}", "public function initializeObject() {}", "public function initializeObject() {}", "public function initializeObject() {}", "public function initializeObject() {}", "public function initializeObject() {}", "public function initializeObject() {}", "public function initializeObject() {}", "protected function postCreateHook($object) { }", "public function setObject(string $object): void\n {\n $this->_object = $object;\n }", "public function setObject(string $object): void\n {\n $this->_object = $object;\n }", "public function hasObject();", "public function testNewObject()\n {\n $this->skip('abstract method');\n }", "public function delete( &$object );", "function createObject() {\n\t\t// must be implemented by sub-classes\n\t\tassert(false);\n\t}", "public function register($object);", "public function remove($object)\n {\n parent::delete($object); // TODO: Change the autogenerated stub\n }", "public function deleteObject(\\SetaPDF_Core_Type_IndirectObjectInterface $object) {}", "function _Parser($object)\n\t{\n\t\t$this->object = $object;\n\t}", "static function unittest_objectConstraintGuarantee () {\n PhlintTest::assertIssues('\n function foo ($obj) {\n if (is_object($obj))\n return get_class($obj) . $obj->bar();\n return $obj;\n }\n foo(2);\n foo(\"Hello world\");\n foo(new stdClass());\n ', [\n '\n Unable to invoke undefined *stdClass::bar* for the expression *$obj->bar()* on line 3.\n Trace #1: Function *foo(stdClass $obj)* specialized for the expression *foo(new stdClass())* on line 8.\n ',\n ]);\n }", "abstract protected function getObjectTag();", "abstract public function matches($object) : bool;", "function delete($obj)\n {\n }", "public function reveal($object);", "abstract public function prepare_response( $object, $context );", "public function isAok($object) \n {\n return $object instanceof $this; \n }", "abstract public function updateItem(&$object);", "public function update(MappableObject $object)\n {\n }", "public function remove($object)\n {\n $this->assetService->validateRemoval($object);\n parent::remove($object);\n $this->assetService->emitAssetRemoved($object);\n }", "protected function preCreateHook($object) { }", "function uploadObject();", "public function releaseObject(\\SetaPDF_Core_Type_IndirectObject $object) {}", "public function save($object);", "public function populate($object)\n {\n }", "public function base (\\stdClass $param);", "public function add(\\wkhtmltox\\PDF\\Object $object): void {}", "public function ensureObject(\\SetaPDF_Core_Type_IndirectObjectInterface $indirectObject) {}", "protected function validateObject(&$object) {\n // types of objects that people can create. Will expand later.\n $test_array = [ \"Note\" ];\n // make sure it is an accepted ActivityPub object type\n if (!isset($object['type']) || !in_array($object['type'],$test_array)) return false;\n // require all objects to have a declared attribution\n if (!isset($object['attributedTo'])) return false;\n // there needs to be something actually being posted\n if (!isset($object['content'])) return false;\n \n return true;\n }", "public function load( &$object );" ]
[ "0.7165587", "0.6894218", "0.66831386", "0.6601385", "0.655419", "0.651845", "0.6512592", "0.6468155", "0.6300939", "0.6273115", "0.6268443", "0.62488395", "0.61340225", "0.61273587", "0.61141884", "0.61062217", "0.60734725", "0.6073119", "0.60556424", "0.60002357", "0.59947443", "0.5987741", "0.5984892", "0.59680885", "0.59485024", "0.5899295", "0.5863254", "0.58529955", "0.58469737", "0.58469737", "0.58326125", "0.5821484", "0.5821484", "0.5817955", "0.5797961", "0.5777857", "0.57774186", "0.5771633", "0.5765896", "0.57544917", "0.57541615", "0.5746213", "0.5739518", "0.5735828", "0.57346565", "0.5718969", "0.5714425", "0.57138854", "0.56910473", "0.56792945", "0.5679124", "0.5674043", "0.56665653", "0.56294626", "0.5622196", "0.56187457", "0.561521", "0.5611639", "0.5603069", "0.5603069", "0.5603069", "0.5602817", "0.5602817", "0.5602817", "0.5602817", "0.5602817", "0.5602817", "0.5602817", "0.5602817", "0.5602817", "0.55991024", "0.5597924", "0.5597924", "0.55823463", "0.5581525", "0.55757177", "0.5561171", "0.555942", "0.5556071", "0.5554224", "0.555098", "0.5550313", "0.55498564", "0.55313194", "0.5529738", "0.5525222", "0.5513219", "0.55018383", "0.5498773", "0.5493431", "0.5488338", "0.54828906", "0.54768634", "0.5472922", "0.547042", "0.547023", "0.54700637", "0.5469543", "0.5454317", "0.543605", "0.54343057" ]
0.0
-1
Construct the collection object
public function __construct($config = []) { $defaults = ['filters' => [], 'method' => null, 'params' => []]; $config += $defaults; $this->_filters= $config['filters']; $this->_method = $config['method']; $this->_params = $config['params']; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function __construct(){\r\n\t\t$this->collection = new Collection();\r\n\t}", "public function __construct()\n {\n $this->_collection = new Collection();\n }", "protected function createCollection()\n {\n return $this->_setUpNewNode(\n new Collection()\n );\n }", "public function __construct()\n {\n $this->categories = new ArrayCollection();\n $this->families = new ArrayCollection();\n $this->types = new ArrayCollection();\n $this->designations = new ArrayCollection();\n $this->makes = new ArrayCollection();\n }", "public function __construct()\n {\n $this->items = new Collection;\n }", "public function __construct()\n {\n $this->items = new Collection;\n }", "private function create_collection() {\n\n\t\treturn new MapCollection();\n\t}", "protected function createCollection()\n {\n $model = $this->getModel();\n return $model->asCollection();\n }", "private function createCollection()\n {\n $class = get_class($this->data);\n\n $this->name = strtolower(class_basename($class));\n\n $result = $this->callEvent($class, [$class => $this->data]);\n\n if ($result instanceof $this->data) {\n $this->data = $result;\n }\n\n $this->makePaginator();\n }", "static function collection()\n {\n return new Collection();\n }", "protected function _prepareCollection()\n {\n $collection = $this->collectionFactory->create();\n $this->setCollection($collection);\n\n return parent::_prepareCollection();\n }", "public function __construct()\n {\n $this->articles = new ArrayCollection();\n $this->commentaires = new ArrayCollection();\n }", "public function createCollection()\n\t{\n\t\t$tag = $this->tag;\n\n\t\tif ($this->hasPaginator) {\n\t\t\t$tag = $this->tag->getCollection();\n\t\t}\n\n\t\t$this->tagCollection = new Collection(\n\t\t\t$tag, \n\t\t\tnew TagTransformer\n\t\t);\n\n\t\treturn $this;\n\t}", "public function __construct($collection) {\n\t\t\t$this->collection = $collection;\n\t\t}", "public function __construct()\n {\n $this->tasks = new ArrayCollection();\n $this->comments = new ArrayCollection();\n $this->timeEntries = new ArrayCollection();\n }", "public function __construct() {\n $this->items = new ArrayCollection;\n $this->orderProducts = new ArrayCollection;\n $this->promotions = new ArrayCollection();\n\n }", "public function __construct()\n {\n parent::__construct();\n\n $this->organismes = new ArrayCollection();\n $this->reponses = new ArrayCollection();\n $this->tags = new ArrayCollection(); \n $this->categories = new \\Doctrine\\Common\\Collections\\ArrayCollection();\n }", "public function __construct(Collection $collection)\n {\n $this->collection = $collection;\n }", "public function __construct()\n {\n $this->postules = new ArrayCollection();\n $this->competences = new ArrayCollection();\n $this->habilitations = new ArrayCollection();\n }", "public function createCollection()\n\t{\n\t\t$ticket = $this->ticket;\n\n\t\tif ($this->hasPaginator) {\n\t\t\t$ticket = $this->ticket->getCollection();\n\t\t}\n\n\t\t$this->ticketCollection = new Collection(\n\t\t\t$ticket, \n\t\t\tnew TicketTransformer\n\t\t);\n\n\t\treturn $this;\n\t}", "public function __construct() {\n\t\t// creating a collection for storing menus\n\t\t$this->collection = new Collection ();\n\t}", "public function __construct(&$collection)\n\t{\n\t\t// Set params\n\t\t$this->collection = $collection;\n\t}", "public function __construct() {\n $this->disciplinas = new \\Doctrine\\Common\\Collections\\ArrayCollection();\n $this->tendencias = new \\Doctrine\\Common\\Collections\\ArrayCollection();\n $this->institucionalEstrategias = new \\Doctrine\\Common\\Collections\\ArrayCollection();\n $this->ofertas = new \\Doctrine\\Common\\Collections\\ArrayCollection();\n $this->estrategiaCampos = new \\Doctrine\\Common\\Collections\\ArrayCollection();\n $this->eventos = new \\Doctrine\\Common\\Collections\\ArrayCollection();\n $this->encuestas = new \\Doctrine\\Common\\Collections\\ArrayCollection();\n }", "public function __construct($collection)\n\t{\n\t\t// Assign params\n\t\t$this->collection = $collection;\n\n\t\t// Compile if needed\n\t\t$this->collection->compile();\n\t}", "public function createCollection()\n\t{\n\t\t/** @var $collection \\Magento\\Catalog\\Model\\ResourceModel\\Product\\Collection */\n\t\t$collection = $this->productCollectionFactory->create();\n\t\t$collection->setVisibility($this->catalogProductVisibility->getVisibleInCatalogIds());\n\n\t\t$collection = $this->_addProductAttributesAndPrices($collection)\n\t\t\t->addStoreFilter()\n\t\t\t->setPageSize($this->getPageSize())\n\t\t\t->setCurPage($this->getRequest()->getParam(self::PAGE_VAR_NAME, 1));\n\n\t\t$conditions = $this->getConditions();\n\t\t$conditions->collectValidatedAttributes($collection);\n\t\t$this->sqlBuilder->attachConditionToCollection($collection, $conditions);\n\n\t\treturn $collection;\n\t}", "public function __construct()\n {\n $this->categories = new ArrayCollection();\n }", "public function __construct()\n {\n $this->categories = new ArrayCollection();\n }", "public function __construct()\n {\n $this->questions = new ArrayCollection();\n $this->openids = new ArrayCollection();\n $this->createdAt = new \\DateTime();\n }", "public function __construct() {\n $this->bestellijn = new ArrayCollection();\n }", "public function __construct()\n {\n $this->placas = new ArrayCollection();\n }", "public function __construct()\n {\n $this->commentaires = new ArrayCollection();\n $this->photos = new ArrayCollection();\n }", "public function __construct()\n {\n $this->posts = new ArrayCollection();\n $this->parameters = new ArrayCollection();\n }", "public function __construct()\n {\n $this->plants = new ArrayCollection();\n \n // NOTICE custom property not mapped with BDD\n // $this->tutus = new ArrayCollection();\n\n $this->createdAt = new \\DateTime();\n }", "public function __construct()\n {\n \t$this->cities = new ArrayCollection();\n }", "public function __construct(){\n $this->create_at = new DateTime();\n $this->options = new ArrayCollection();\n }", "public function __construct()\n {\n parent::__construct();\n $this->createdUsers = new ArrayCollection();\n $this->createdDistributors = new ArrayCollection();\n $this->createdCompanies = new ArrayCollection();\n $this->createdManufacturer = new ArrayCollection();\n $this->createdSuppliers = new ArrayCollection();\n $this->createdTickets = new ArrayCollection();\n $this->assignedTickets = new ArrayCollection();\n $this->resolvedTickets = new ArrayCollection();\n $this->departments = new ArrayCollection();\n \n if (null == $this->createdAt)\n $this->createdAt = new DateTime();\n\n if (null == $this->updatedAt)\n $this->updatedAt = new DateTime();\n\n if (null == $this->plainPassword) {\n $this->plainPassword = substr\n (str_shuffle('abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'), 0, 10);\n }\n\n }", "public function createCollection($data = array());", "public function __construct()\n\t{\n\t\t// creating a collection for storing menus\n\t\t$this->collection = new Collection();\n\t}", "public function __construct()\n {\n self::$clients = new Collection();\n }", "public function _construct(){\n $this->KcsPoll = new ArrayCollection();\n }", "protected function _prepareCollection()\n {\n /** @var $collection ChazkiExpressCollection */\n $collection = $this->_collectionFactory->create();\n $collection->setWebsiteFilter($this->getWebsiteId());\n\n $this->setCollection($collection);\n\n return parent::_prepareCollection();\n }", "public function __construct() {\n $this->columnas = new ArrayCollection();\n }", "protected function _getCollection()\n\t{\n\t\t//Check collection\n\t\tif($this->_collection)\n\t\t\treturn $this->_collection;\n\n\t\t//Get collection\n\t\t$this->_collection = new \\Framework\\Database\\Drivers\\Mongo\\CDatabaseModelCollection($this, $this->execute());\n\t\treturn $this->_collection;\n\t}", "public function __construct()\n {\n $this->users = new ArrayCollection();\n }", "public function __construct($collections = array())\n {\n $this->setCollections($collections);\n }", "public function collection() {\n \t$db = $this->db;\n\t\t$sql = $this->sql();\n\t\t$rows = $db::execute($sql);\n\t\t$model = $this->model;\n\t\treturn new \\Collection($model::arrayFactoryFromRows($rows));\n\t}", "protected function makeData()\n {\n $Collection = new Collection();\n for($i = 0; $i < 35; $i++){\n $Collection->push([\n 'name' => $this->Faker->name,\n 'email' => $this->Faker->email,\n 'birthday' => $this->Faker->date,\n 'phone_number' => $this->Faker->phoneNumber,\n 'bio' => $this->Faker->text,\n ]);\n }\n\n return $Collection;\n }", "protected function _createCollection()\n {\n return Mage::getModel('wishlist/item')->getCollection()\n ->setWebsiteId($this->_getCustomer()->getWebsiteId())\n ->setCustomerGroupId($this->_getCustomer()->getGroupId());\n }", "public function __construct()\n {\n $this->userTodos = new ArrayCollection();\n }", "public function __construct() {\n $this->configs = new ArrayCollection();\n }", "protected function _prepareCollection()\n {\n $collection = $this->_createCollection()->addCustomerIdFilter($this->_getCustomer()->getId())\n ->resetSortOrder()\n ->addDaysInWishlist()\n ->addStoreData();\n $this->setCollection($collection);\n\n return parent::_prepareCollection();\n }", "public function __construct()\n {\n $this->setCreatedAt(new \\DateTime());\n if ($this->getModifiedAt() == null) {\n $this->setModifiedAt(new \\DateTime());\n }\n $this->books = new ArrayCollection();\n\n\n }", "public function __construct()\n {\n $this->feeds = new ArrayCollection();\n }", "public function __construct()\n {\n parent::__construct();\n $this->evenements = new ArrayCollection();\n $this->createdAt = new \\DateTime(date('Y-m-d'));\n }", "public function __construct()\n {\n $this->genres = new Genres();\n $this->productionCompanies = new GenericCollection();\n $this->productionCountries = new GenericCollection();\n $this->spokenLanguages = new GenericCollection();\n $this->alternativeTitles = new GenericCollection();\n $this->changes = new GenericCollection();\n $this->credits = new CreditsCollection();\n $this->externalIds = new ExternalIds();\n $this->images = new Images();\n $this->keywords = new GenericCollection();\n $this->lists = new GenericCollection();\n $this->releases = new GenericCollection();\n $this->release_dates = new GenericCollection();\n $this->similar = new GenericCollection();\n $this->recommendations = new GenericCollection();\n $this->translations = new GenericCollection();\n $this->videos = new Videos();\n $this->watchProviders = new GenericCollection();\n }", "public function __construct()\n {\n $this->attachments = new ArrayCollection();\n $this->history = new ArrayCollection();\n }", "public function __construct()\n {\n $this->places = new ArrayCollection();\n $this->transitions = new ArrayCollection();\n }", "protected function _prepareCollection()\n {\n $collection = Mage::getResourceModel($this->_getCollectionClass());\n $collection->setOrder('ID','DESC');\n $this->setCollection($collection);\n return parent::_prepareCollection();\n }", "public function __construct()\n {\n $this->programs = new ArrayCollection();\n }", "public function __construct()\n {\n $this->programs = new ArrayCollection();\n }", "public function __construct()\n {\n $this->movieCredits = new CreditsCollection\\MovieCredits();\n $this->tvCredits = new CreditsCollection\\TvCredits();\n $this->combinedCredits = new CreditsCollection\\CombinedCredits();\n $this->images = new Images();\n $this->changes = new GenericCollection();\n $this->externalIds = new ExternalIds();\n $this->knownFor = new GenericCollection();\n }", "public function __construct() {\n $this->reservations = new ArrayCollection();\n }", "private function buildCollection(): void\n {\n //todo 這邊可以在sql裡面處理,但因為時程的關係,先用這種方法處理\n $userId = auth()->user()->id;\n $this->collection->map(function ($item) use ($userId) {\n $item->isAuthor = ($item->user_id == $userId);\n $item->user_id = null;\n });\n }", "public function __construct()\n {\n /*initialize the notes property to a new ArrayCollection*/\n $this->notes = new ArrayCollection();\n }", "public function getCollection()\n {\n $collection = trim(str_replace('\\\\', '_', $this->collection), '_');\n return $this->$collection()\n ->setDatabase($this->database)\n ->setTable($this->table)\n ->setModel($this->model)\n ->set($this->getRows());\n }", "public function __construct() {\n $this->groups = new \\Doctrine\\Common\\Collections\\ArrayCollection();\n parent::__construct();\n }", "public function __construct(Collection $config)\n {\n $this->config = $config;\n }", "protected function newCollection(array $data)\n {\n return new Collection($data);\n }", "public function __construct()\n {\n $this->uuid = Uuid::uuid4()->toString();\n $this->createdDate = new \\DateTime();\n $this->items = new ArrayCollection();\n }", "protected function _prepareCollection() {\n /**\n * \n * @var unknown\n */\n /**\n * Calling the parent Construct Method.\n * \n * Getting collection for bank details\n */\n $managebankdetailsCollection = Mage::getModel ( 'airhotels/managebankdetails' )->getCollection ();\n $this->setCollection ( $managebankdetailsCollection ); \n return parent::_prepareCollection ();\n /**\n * return _prepareCollection\n */\n }", "public function __construct()\n {\n $this->lastEditDate = new \\DateTime();\n $this->equipments = new ArrayCollection();\n }", "protected function _prepareCollection()\n {\n $collection = Mage::getResourceModel($this->_getCollectionClass());\n $this->setCollection($collection);\n\n return parent::_prepareCollection();\n }", "protected function _prepareCollection() {\n $website_id = Mage::app()->getWebsite()->getId();\n $collection = Mage::getModel('inchoo_supportticket/ticket')\n ->getCollection();\n $this->setCollection($collection);\n parent::_prepareCollection();\n return $this;\n }", "public function __construct()\n {\n $this->commentaire=new ArrayCollection();\n }", "public function __construct()\n {\n $this->references = new ArrayCollection();\n }", "public function __construct()\n {\n $this->events = new ArrayCollection();\n }", "public function __construct()\n {\n $this->roles = new ArrayCollection();\n $this->users = new ArrayCollection();\n $this->rolesNames = null;\n }", "abstract protected function _generateDataCollection();", "public function createCollectionFromArray($data)\n {\n $data['hidden'] = (bool) ArrayUtils::get($data, 'hidden');\n $data['single'] = (bool) ArrayUtils::get($data, 'single');\n $data['managed'] = (bool) ArrayUtils::get($data, 'managed');\n\n return new Collection($data);\n }", "protected function _prepareCollection()\n\t{\n\t\t$collection = Mage::getResourceModel($this->_getCollectionClass());\n\t\t$this->setCollection($collection);\n\t\t \n\t\treturn parent::_prepareCollection();\n\t}", "public function __construct()\n {\n $this->recepten = new ArrayCollection();\n }", "public function getCollection() ;", "public function __construct(Collection $collection = null)\r\n {\r\n $this->collection = $collection ?: new Collection;\r\n }", "public function __construct() {\n $this->topics = new \\Doctrine\\Common\\Collections\\ArrayCollection();\n }", "public function _construct()\n {\n $this->_initProductCollection();\n parent::_construct();\n }", "public function __construct()\n {\n $this->itemPrices = new ArrayCollection();\n }", "public function __construct()\n {\n $this->tickets = new ArrayCollection();\n }", "public function createCollection($name) {}", "public function __construct()\n {\n $this->tags = new ArrayCollection();\n }", "public function __construct()\n\t{\n\t\t$this->roles = new ArrayCollection();\n\t}", "public function __construct($data = null)\n {\n $this->created = new DateTime('now', new DateTimeZone('UTC'));\n $this->dish = new ArrayCollection();\n\n return parent::__construct($data);\n }", "public function __construct()\n {\n //$this->contrats = new ArrayCollection();\n }", "public function __construct()\n {\n $this->accounts = new ArrayCollection();\n }", "public function Panier() \n {\n $this->CollProduit = new Collection;\n }", "public function __construct(){\n $this->variables = new \\Doctrine\\Common\\Collections\\ArrayCollection();\n }", "protected function createEmptyCollection(): Collection\n {\n /** @var Collection<TEntity> $emptyCollection */\n $emptyCollection = new Collection($this->db);\n return $emptyCollection;\n }", "public function __construct()\n {\n $this->defendants = new ArrayCollection();\n $this->interpreterEvents = new ArrayCollection();\n }", "public function __construct()\n {\n $this->forumPostTb = new ArrayCollection;\n }", "public function __construct()\n {\n $this->inscriptions = new ArrayCollection();\n }", "public function __construct()\n\t{\n\t\t// then the array will be the collection's only element. We don't want\n\t\t// this behavior for Form_Columns because we want to quickly build\n\t\t// a column with an array of fields.\n\t\t$args = func_get_args();\n\t\tif(count($args) == 1 && is_array($args[0])){\n\t\t\tforeach($args[0] as $element){\n\t\t\t\t$this->add($element);\n\t\t\t}\n\t\t} else {\n\t\t\t// In all other cases, fall back to the parent constructor.\n\t\t\tcall_user_func_array(array('parent', '__construct'), $args);\n\t\t}\n\t}", "protected static function newCollection( &$result = null )\n\t{\n\t\t$collection = new Collection();\n\t\t\n\t\tif( $result !== null )\n\t\t{\n\t\t\tforeach( $result as $item )\n\t\t\t{\n\t\t\t\t$collection->items[] = self::newItem($item);\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn $collection;\n\t}" ]
[ "0.7758162", "0.7757604", "0.76650566", "0.7484198", "0.7403004", "0.7403004", "0.7390469", "0.7373494", "0.7360607", "0.7314571", "0.7256234", "0.7079973", "0.7079612", "0.70713276", "0.7065453", "0.704876", "0.7031476", "0.7016841", "0.69983166", "0.69643825", "0.69278973", "0.69217175", "0.6903484", "0.68985724", "0.68952775", "0.6876499", "0.6876499", "0.6874266", "0.68729085", "0.6857401", "0.6852451", "0.6846964", "0.68446344", "0.6817846", "0.68151873", "0.68009746", "0.68007106", "0.6777759", "0.67684823", "0.67397636", "0.6732688", "0.6730853", "0.67199624", "0.67142946", "0.670381", "0.66952944", "0.6688048", "0.6654794", "0.6641551", "0.66269386", "0.6610561", "0.6600555", "0.65980256", "0.6592448", "0.65847397", "0.6581996", "0.65761304", "0.6559772", "0.6552827", "0.6552827", "0.65478826", "0.65431046", "0.6537071", "0.6536804", "0.6527613", "0.65233445", "0.65201545", "0.65163463", "0.65124905", "0.6507395", "0.6506249", "0.6499009", "0.64860046", "0.64656514", "0.64560485", "0.6452262", "0.642372", "0.6417575", "0.64168453", "0.64139843", "0.6411813", "0.64082533", "0.6406399", "0.6404729", "0.6402861", "0.6400485", "0.63957304", "0.6379282", "0.6370626", "0.63702327", "0.6364582", "0.6358094", "0.6356846", "0.6343465", "0.63317674", "0.633104", "0.63174284", "0.63138354", "0.6306361", "0.63056433", "0.6302921" ]
0.0
-1
Gets the params associated with this filter chain.
public function params() { return $this->_params; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get_params() {\n\t\treturn $this->params;\n\t}", "public function getParams()\n {\n return $this->params;\n }", "public function getParams()\n {\n return $this->params;\n }", "public function getParams()\n {\n return $this->params;\n }", "public function getParams()\n {\n return $this->params;\n }", "public function getParams()\n {\n return $this->params;\n }", "public function getParams()\n {\n return $this->params;\n }", "public function getParams()\n {\n return $this->params;\n }", "public function getParams()\n {\n return $this->params;\n }", "public function getParams()\n {\n return $this->params;\n }", "public function getParams()\n {\n return $this->params;\n }", "public function getParams()\n {\n return $this->params;\n }", "public function getParams()\n {\n return $this->params;\n }", "public function getParams()\n {\n return $this->params;\n }", "public function getParams()\n {\n return $this->params;\n }", "public function getParams()\n {\n return $this->params;\n }", "public function getParams()\n {\n return $this->params;\n }", "public function getParams()\n {\n return $this->params;\n }", "public function getParams() {\n return $this->params;\n }", "public function getParams()\r\n\t{\r\n\t\treturn $this->params;\r\n\t}", "public function getWhereParameters()\n {\n $params = [];\n foreach ($this->filters as $filter) {\n $params = array_merge($params, $filter->getParameters());\n }\n\n return $params;\n }", "public function getParams() {\n\t\treturn $this->params;\n\t}", "public function getParams()\n\t{\n\t\treturn $this->params;\n\t}", "public function getParams()\n {\n return $this->params;\n }", "public function getParams()\n {\n return $this->params;\n }", "public function getParams()\n {\n return $this->params;\n }", "public function getParams()\n {\n return $this->getAttribute('params', false, null);\n }", "public static function getParams()\n {\n return self::$params;\n }", "function getParams() {\n\t\treturn $this->params;\n\t}", "public function getParams()\n {\n return $this->_params;\n }", "public function getParams()\n {\n return $this->_params;\n }", "public function getParams()\n {\n return $this->_params;\n }", "public function getParams()\n {\n return $this->_params;\n }", "public function getParams() {\n return $this->_params;\n }", "public function getParams() {\n\n\t\treturn $this->_params;\n\t}", "public function getParams() {\n \n return $this->_params;\n }", "function getParams() {\n return $this->params;\n }", "public function getParams()\n\t{\n\t\treturn $this->_params;\n\t}", "public function getRequestParams()\n {\n return array_merge(\n array(\n 'page' => $this->getPage(),\n 'pageSize' => $this->getPageSize(),\n 'filter' => urldecode($this->getFiltersString())\n ),\n $this->getAdditionalParams()\n );\n }", "public function params()\n {\n return $this->params;\n }", "public function getParams(){\n\t\treturn $this->params;\n\t}", "public function getParams()\n {\n return $this->getEvent()->getRouteMatch()->getParams();\n }", "public function getParameters()\n {\n return $this->params;\n }", "public function getParameters()\n {\n return $this->params;\n }", "public function getParameters()\n {\n return $this->params;\n }", "public function getParameters()\n {\n return $this->params;\n }", "public function getParameters()\n {\n $parameters = $this->getUnfilteredParameters();\n foreach ($this->parameterFilters as $filter) {\n /** @var \\Airbrake\\Filter\\FilterInterface $filter */\n $filter->filter($parameters);\n }\n return $parameters;\n }", "public function getParams() : array {\n return $this->params;\n }", "public function getWhereParams()\n {\n return (isset($this->whereBuilder))? $this->whereBuilder->getConditionParameters() : [];\n }", "public function getParameters() {\n \n return $this->params;\n \n }", "public function get_params() {\n return $this->param;\n }", "protected function getParams(): array\n {\n return $this->params;\n }", "public function getParams(): array\n {\n return $this->params;\n }", "public function getParams(): array\n {\n return $this->params;\n }", "public function getParams(): array\n {\n return $this->params;\n }", "public function getParams(): array\n {\n return $this->params;\n }", "public function getParams(): array\n {\n return $this->params;\n }", "public function getControllerParams() {\n return $this->params;\n }", "public function getParameters(/* ... */)\n {\n return $this->_params;\n }", "public function getParams() {\n\t\treturn $this -> v_params;\n\t}", "public function getParams(): Params\n {\n return $this->params;\n }", "public function getParams()\n {\n return $this->_invokeParams;\n }", "public function get_filters_query_params() {\n\n\t\t$params = [\n\t\t\t'search' => $this->get_filtered_search_parts(),\n\t\t\t'status' => $this->get_filtered_status(),\n\t\t\t'date' => $this->get_filtered_dates(),\n\t\t];\n\n\t\treturn array_filter(\n\t\t\t$params,\n\t\t\tfunction ( $v ) {\n\n\t\t\t\treturn $v !== false;\n\t\t\t}\n\t\t);\n\t}", "public function getParams()\n {\n // TODO: Implement getParams() method.\n }", "public function params() : DeepList {\n return $this->_params;\n }", "public function getParams()\n {\n return $this->wrapped->getParams();\n }", "public function getFilterParameters(): array;", "public function get_params()\n {\n }", "public function get_params()\n {\n }", "public function getParams() {}", "public function getParams(){\n return $this->params;\n }", "protected function getQueryParams() {\n\t\treturn $this->request->getQueryParams();\n\t}", "public function url_parameters()\n {\n return $this->_params;\n }", "public function params()\n {\n if (empty($this->params)) {\n return null;\n }\n\n $params = isset($this->params) ? $this->params : array();\n\n $many = $this->hasMany('params');\n\n return array(\n 'title' => $many ? 'Options' : 'Option',\n 'txt' => $many\n ? 'The following request parameters are available:'\n : 'The following request parameter is available:',\n 'items' => array_values($params)\n );\n }", "public static function params()\n\t{\n\t\treturn self::$router->getParams();\n\t}", "public function get_query_params()\n {\n }", "public function getParams();", "public function getParams();", "public function getParams();", "public function getParams();", "public function getParams();", "public function getParams();", "public function getParams();", "public function getParams();", "public function getParams();", "public function getParams();", "public function getRequestParameters()\n\t{\n\t\treturn $this->aParameters;\n\t}", "function _params()\n {\n return $this->_params;\n }", "public function getParams()\n {\n $params = explode('/', $this->getPath());\n array_shift($params);\n return $params;\n }", "public function get_parameters()\n\t{\n\t\treturn $this->set_params;\n\t}", "public function getParams()\n {\n $data = $this->_data['params'];\n $data = unserialize($data);\n return $data;\n }", "public function getRequestParams()\n {\n return $this->getKey('RequestParams');\n }", "function getParameters() {\n\t\treturn $this->inputParameters;\n\t}", "public function getParams()\n {\n $params = $this->getQueryParams();\n $postParams = $this->getParsedBody();\n if ($postParams) {\n $params = array_merge($params, (array)$postParams);\n }\n\n return $params;\n }", "public function getAllParam()\n {\n return isset($this->params) ? $this->params : null;\n }", "public function getParams() :array\n \t{\n \t\treturn $this->finalParams;\n \t}", "public function getAdditionalParams()\n {\n return array_filter($this->additionalParams);\n }", "protected function getUrlParameters() {\n return $this->getAttributes();\n }", "public function getParams(): array\n {\n return $this->getParams;\n }", "public static function getParams()\n\t{\n\t\t$params = self::getPostParams();\n\t\tif ($params) {\n\t\t\treturn $params;\n\t\t}\n\t\t$params = self::getURLParams();\n\t\tif ($params) {\n\t\t\treturn $params;\n\t\t}\n\t\treturn self::getGetParams();\n\t}" ]
[ "0.7566858", "0.7498647", "0.7498647", "0.7498647", "0.7498647", "0.7498647", "0.7498647", "0.7498647", "0.7498647", "0.7498647", "0.7498647", "0.7498647", "0.7498647", "0.7498647", "0.7498647", "0.7498647", "0.7498647", "0.7498647", "0.74876523", "0.74850404", "0.7462731", "0.74529576", "0.7447554", "0.7414731", "0.7409562", "0.7409562", "0.7402999", "0.7400408", "0.73637486", "0.73382235", "0.73382235", "0.73382235", "0.73382235", "0.7334731", "0.7332156", "0.73304886", "0.7318325", "0.72928035", "0.7241192", "0.72397095", "0.7236998", "0.7218963", "0.71789795", "0.71789795", "0.71789795", "0.71789795", "0.7158109", "0.7138342", "0.7133473", "0.711261", "0.710673", "0.70807993", "0.70799786", "0.70799786", "0.70799786", "0.70799786", "0.70799786", "0.7033041", "0.7029241", "0.7009545", "0.69808567", "0.69758826", "0.6952669", "0.6935339", "0.69341767", "0.6907006", "0.68817276", "0.6845842", "0.6845842", "0.6828979", "0.6828098", "0.6807281", "0.6801956", "0.6794517", "0.6777918", "0.6735921", "0.67167985", "0.67167985", "0.67167985", "0.67167985", "0.67167985", "0.67167985", "0.67167985", "0.67167985", "0.67167985", "0.67167985", "0.6691686", "0.66911936", "0.6666414", "0.664792", "0.66458297", "0.6640179", "0.6622675", "0.6593439", "0.65901", "0.6588402", "0.65766054", "0.6576274", "0.65429527", "0.6530634" ]
0.7095185
51
Gets the method name associated with this filter chain. This is the method being filtered.
public function method() { return $this->_method; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getMethodName()\n {\n return $this->method;\n }", "public function getMethodName() {\r\n\t\treturn($this->method_name);\r\n\t}", "public function getMethodName()\n {\n return PhandArr::last(explode('@', $this->getMethodInvokerName()));\n }", "public function getMethodName()\n {\n return $this->methodName;\n }", "public function getMethodName()\n {\n return $this->methodName;\n }", "public function method() {\n\t\treturn strtoupper($this->getMethod());\n\t}", "public function getMethodName() {\n return $this->methodName;\n }", "public function getMethodName() : string\n {\n\n return $this->methodName;\n }", "public function getMethodInvokerName()\n {\n return $this->action['controller'] ?? 'Closure';\n }", "public function method()\n {\n return $this->method;\n }", "public function method()\n {\n return $this->method;\n }", "public function method()\n {\n return $this->method;\n }", "public function method() {\n return $this->method;\n }", "public function get_method() {\n return $this->_method;\n }", "public function method(): string\n {\n return $this->getMethod();\n }", "public function method(){\n return $this->__method;\n }", "public function getMethodName();", "public function getMethodName();", "public function getMethodName();", "public function method(): string\n {\n return $this->method;\n }", "public function method() {\n return $this->method;\n }", "public function get_method() {\n\t\treturn $this->method;\n\t}", "public function getMethod(): string\n {\n return $this->method;\n }", "public function getMethod(): string\n {\n return $this->method;\n }", "public function getMethod()\n {\n return $this->method->getMethod();\n }", "public function method(): string{\n return $this->_method;\n }", "public function getMethod()\n {\n return $this->_method;\n }", "public function getMethod() : string\n {\n return $this->method;\n }", "public function getActionMethod()\n {\n return array_last(explode('@', $this->getActionName()));\n }", "public function getMethod()\n {\n return $this->method;\n }", "public function getMethod()\n {\n return $this->method;\n }", "public function getMethod()\n {\n return $this->method;\n }", "public function getMethod()\n {\n return $this->method;\n }", "public function getMethod()\n {\n return $this->method;\n }", "public function getMethod()\n {\n return $this->method;\n }", "public function getMethod()\n {\n return $this->method;\n }", "public function getMethod()\n {\n return $this->method;\n }", "public function getMethod()\n {\n return $this->method;\n }", "public function getMethod()\n {\n return $this->method;\n }", "public function getMethod()\n {\n return $this->method;\n }", "public function getMethod()\n {\n return $this->method;\n }", "public function getMethod()\n {\n return $this->method;\n }", "public function getMethod()\n {\n return $this->method;\n }", "public function getMethod()\n {\n return $this->method;\n }", "public function getMethod()\n {\n return $this->method;\n }", "public function getMethod()\n {\n return $this->method;\n }", "public function getMethod()\n {\n return $this->method;\n }", "public function getMethod()\n {\n return $this->wrapped->getMethod();\n }", "public function GetMethod () {\n\t\treturn $this->method;\n\t}", "public function getMethod() : string\n {\n\n return $this->method;\n }", "public static function getMethod()\n {\n return self::$__method;\n }", "protected function getMethod() {\n return $this->method;\n }", "public function getMethod()\r\n {\r\n return $this->method;\r\n }", "public function getMethod() {\n return $this->method;\n }", "public function getMethod() {\n return $this->method;\n }", "public function getMethod() {\n return $this->method;\n }", "public function getMethod()\n {\n return $this->method;\n }", "public function getMethod ()\n {\n\n return $this->method;\n\n }", "public function getMethod() \n {\n return $this->method;\n }", "public function getMethod() { return $this->_method; }", "public function getMethod() : string\n {\n return static::$method;\n }", "public function getMethod()\n {\n if($this->_method == NULL || !isset($this->_method))\n {\n $this->_method = substr(get_class($this),3);\n }\n \n return $this->_method;\n }", "public function getMethod() {\r\n\t\treturn $this->method;\r\n\t}", "public function getMethod ()\n {\n return $this->method;\n }", "public function getMethod() {\n\t\treturn $this->method;\n\t}", "public function getMethod() {\n\t\treturn $this->method;\n\t}", "public function getMethod() {\n\t\treturn $this->method;\n\t}", "public function method(): string\n {\n return \\strtoupper($this->request()->getMethod());\n }", "public function getMethod()\t{\n\t\tif ($this->class != \"NoRoute\")\t{\n\t\t\treturn $this->method;\n\t\t}\n\t\treturn \"invoke\";\n\t}", "public function getMethod()\n\t{\n\t\treturn $this->method;\n\t}", "public function getMethod()\n\t{\n\t\treturn $this->method;\n\t}", "public function getMethod() {\n \n return $this->method;\n \n }", "function getMethod()\n {\n return $this->method;\n }", "public function getMethod()\n {\n return $this->values[\"method\"];\n }", "public function getMethod()\n {\n return $this->getAttribute('method', 'get');\n }", "abstract public function getFilterName();", "public function getSortFilterName(): string\n {\n return $this->sortFilterName;\n }", "public static function getAfterFilterName()\n {\n return self::$afterFilterName;\n }", "protected function getMethod(): string\n {\n if (strlen($this->method) == 0) {\n $this->method = 'get';\n }\n return $this->method;\n }", "public function getName()\n\t{\n\t\treturn $this->actionName;\n\t}", "public function getMethod(){\n return $this->method;\n }", "public function getMethod()\n {\n return $this->getBody()->getMethod();\n }", "protected function filterName(): string\n {\n return Str::snake(class_basename($this));\n }", "public function getMethod(): string {\n\n return strtoupper($_SERVER['REQUEST_METHOD']);\n }", "public function getHttpMethodName() : string \n {\n return $this->method;\n }", "public static function getFiltername(): string\n {\n return self::FILTERNAME;\n }", "protected function getMethodName($key){\n\t\t$method = $this->getMethod($key);\n\t\t\n\t\treturn $method->getName();\n\t}", "public function getControllerMethod()\n {\n return $this->parseControllerCallback()[1];\n }", "public function method(): string\n {\n return $this->request->getMethod();\n }", "public function method(): string\n {\n return $this->request->getMethod();\n }", "public function method(): string\n {\n return $this->request->getMethod();\n }", "public function getMethod()\n\t{\n\t\treturn strtoupper($this->_internal_request->get_normalized_http_method());\n\t}", "protected function getRouteNameFilter()\n {\n if ($this->routeNameFilter instanceof FilterChain) {\n return $this->routeNameFilter;\n }\n\n $this->routeNameFilter = new FilterChain();\n $this->routeNameFilter->attachByName('WordCamelCaseToDash')\n ->attachByName('StringToLower');\n return $this->routeNameFilter;\n }", "public function getMethod()\n {\n return strtoupper($this->server['REQUEST_METHOD']);\n }", "public function getMethod()\n {\n if (isset($_POST[$this->methodParam])) {\n return strtoupper($_POST[$this->methodParam]);\n } elseif (isset($_SERVER['HTTP_X_HTTP_METHOD_OVERRIDE'])) {\n return strtoupper($_SERVER['HTTP_X_HTTP_METHOD_OVERRIDE']);\n } else {\n return isset($_SERVER['REQUEST_METHOD']) ? strtoupper($_SERVER['REQUEST_METHOD']) : 'GET';\n }\n }", "public function get_method();", "public function getActionName()\n {\n return isset($this->action['controller']) ? $this->action['controller'] : 'Closure';\n }", "public static function getMethod()\n {\n $method = strtoupper($_SERVER['REQUEST_METHOD']);\n\n return $method;\n }", "public function getMethod() {\n\t\tif (isset($_GET[$this->config->get('methodParam')]))\n\t\t\t$method = urldecode($_GET[$this->config->get('methodParam')]);\n\t\telse\n\t\t\t$method = $this->config->get('defaultMethod');\n\t\t\n\t\treturn strtolower($method);\n\t}" ]
[ "0.75489455", "0.7485717", "0.7316801", "0.7280778", "0.7280778", "0.7254169", "0.7231847", "0.7106086", "0.6964137", "0.6920529", "0.6920529", "0.6920529", "0.687897", "0.6872903", "0.68469715", "0.6789751", "0.67593515", "0.67593515", "0.67593515", "0.6754956", "0.6754794", "0.6734717", "0.6659531", "0.6659531", "0.6645673", "0.65755844", "0.65663433", "0.6519934", "0.6505921", "0.65014166", "0.65014166", "0.65014166", "0.65014166", "0.65014166", "0.65014166", "0.65014166", "0.65014166", "0.65014166", "0.65014166", "0.65014166", "0.65014166", "0.65014166", "0.65014166", "0.65014166", "0.65014166", "0.65014166", "0.65014166", "0.6500203", "0.64924276", "0.64859706", "0.64790857", "0.64577824", "0.6455068", "0.6443972", "0.6443972", "0.6443972", "0.64297575", "0.6427004", "0.64261186", "0.6411178", "0.6402571", "0.6397276", "0.6376083", "0.6358618", "0.6357607", "0.6357607", "0.6357607", "0.63439643", "0.6339604", "0.6338601", "0.6338601", "0.6317258", "0.6300216", "0.6292163", "0.6276303", "0.62632906", "0.6257672", "0.6255767", "0.6244174", "0.62437224", "0.62380815", "0.6225794", "0.6205529", "0.6201977", "0.61968064", "0.6186059", "0.61744076", "0.61675906", "0.6137631", "0.6137631", "0.6137631", "0.6123741", "0.60977924", "0.60890055", "0.6087994", "0.60820603", "0.60690165", "0.6042352", "0.601789" ]
0.6948232
9
Returns the current item.
public function current() { return current($this->_filters); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function getCurrentItem()\n {\n return $this->current_item;\n }", "public function currentItem()\r\n {\r\n return $this->aggregate->get($this->index);\r\n }", "public function current()\n {\n return current($this->_items);\n }", "public function current(){\n return current($this->items);\n }", "public function current(){\n return current($this->items);\n }", "public function current()\n {\n return $this->getItem($this->getCurrentIndex());\n }", "public function current()\n\t{\n\t\treturn $this->_items[$this->_currentIndex];\n\t}", "public function current(): mixed {\n return current($this->items);\n }", "public function current()\n {\n return $this->getItem($this->position);\n }", "#[\\ReturnTypeWillChange]\n public function current()\n {\n return Item::create(current($this->data));\n }", "public function get_item() {\n\t\treturn $this->item;\n\t}", "public function getItem() {\n\t\treturn $this->item;\n\t}", "public function current() {\n\t\tif(($this->endItemIdx !== null) && isset($this->lastItems[$this->endItemIdx])) {\n\t\t\treturn $this->lastItems[$this->endItemIdx][1];\n\t\t} else if(isset($this->firstItems[$this->firstItemIdx])) {\n\t\t\treturn $this->firstItems[$this->firstItemIdx][1];\n\t\t} else {\n\t\t\tif($this->items->current()->hasMethod($this->titleField)) {\n\t\t\t\treturn $this->items->current()->{$this->titleField}();\n\t\t\t}\n\n\t\t\treturn $this->items->current()->{$this->titleField};\n\t\t}\n\t}", "public function current()\n {\n return $this->items[$this->k];\n }", "public function getCurrentContentItem()\n {\n return $this->currentContentItem;\n }", "public function current()\n {\n return $this->collection->getItems()[$this->position];\n }", "#[\\ReturnTypeWillChange]\n public function current()\n {\n return current($this->_items);\n }", "public function current(): mixed\n {\n if (-1 == $this->getItemPointer() && count($this->_items) > 0) {\n $this->setItemPointer(0);\n }\n if (is_null($this->_items[$this->getItemPointer()])) {\n trigger_error('NULL object in iterator NOT ALLOWED!', E_USER_WARNING);\n }\n\n return $this->_items[$this->getItemPointer()];\n }", "public function getItem()\n {\n return $this->item;\n }", "public function getItem()\n {\n return $this->item;\n }", "public function getItem()\n {\n return $this->item;\n }", "public function getItem()\n {\n return $this->item;\n }", "public function getItem()\n {\n return $this->item;\n }", "public function getItem()\n {\n return $this->item;\n }", "public function getItem()\n {\n return $this->item;\n }", "public function getItem()\n {\n return $this->item;\n }", "public function getItem()\n {\n return $this->item;\n }", "public function getItem() {\n return $this->item;\n }", "public function getCurrent() {\n $this->prepare();\n return $this->_current;\n }", "public function current()\n {\n return \\current($this->responseData->_embedded->items);\n }", "public function getItem() {\n return $this->item;\n }", "public function getCurrent() {\r\n\t\treturn $this->current;\r\n\t}", "function current() {\r\n return $this->list[$this->index];\r\n }", "public function getCurrent()\n {\n return $this->current;\n }", "public function getCurrent()\n {\n return $this->current;\n }", "public function current() {\n return $this->data[$this->key()];\n }", "public function current() {\n return $this->_data[$this->_key];\n }", "public function current()\n {\n return $this->list[$this->position];\n }", "public function current() {\n return $this->data[$this->key()];\n }", "public function current()\n {\n return $this->_current;\n }", "public function current()\n {\n return $this->_current;\n }", "public function current()\n {\n return $this->_current;\n }", "public function current() {\n\t\treturn $this->offsetGet($this->currentIndex);\n\t}", "public function current()\n {\n return current( $this->data );\n }", "public function current()\n\t{\n\t\treturn parent::current();\n\t}", "public function current()\n\t{\n\t\treturn parent::current();\n\t}", "public function current()\n\t{\n\t\treturn parent::current();\n\t}", "public function current()\n\t{\n\t\treturn parent::current();\n\t}", "public function current()\n\t{\n\t\treturn parent::current();\n\t}", "public function current()\n\t{\n\t\treturn parent::current();\n\t}", "public function current()\n\t{\n\t\treturn parent::current();\n\t}", "public function current()\n\t{\n\t\treturn parent::current();\n\t}", "public function current()\n\t{\n\t\treturn parent::current();\n\t}", "public function current()\n\t{\n\t\treturn parent::current();\n\t}", "public function current()\n\t{\n\t\treturn parent::current();\n\t}", "public function current()\n\t{\n\t\treturn parent::current();\n\t}", "public function current()\n\t{\n\t\treturn parent::current();\n\t}", "public function current()\n\t{\n\t\treturn parent::current();\n\t}", "public function current()\n\t{\n\t\treturn parent::current();\n\t}", "public function current()\n\t{\n\t\treturn parent::current();\n\t}", "public function current()\n\t{\n\t\treturn parent::current();\n\t}", "public function current()\n\t{\n\t\treturn parent::current();\n\t}", "public function current()\n\t{\n\t\treturn parent::current();\n\t}", "public function current()\n\t{\n\t\treturn parent::current();\n\t}", "public function current()\n\t{\n\t\treturn parent::current();\n\t}", "public function current()\n\t{\n\t\treturn parent::current();\n\t}", "public function current()\n {\n return parent::current();\n }", "public function current()\n {\n return parent::current();\n }", "public function current()\n {\n return parent::current();\n }", "public function current()\n {\n return parent::current();\n }", "public function current()\n {\n return parent::current();\n }", "public function current()\n {\n return parent::current();\n }", "public function current()\n {\n return parent::current();\n }", "public function current()\n {\n return parent::current();\n }", "public function current()\n {\n return parent::current();\n }", "public function current()\n {\n return parent::current();\n }", "public function current()\n {\n return parent::current();\n }", "public function current()\n {\n return parent::current();\n }", "public function current()\n {\n return parent::current();\n }", "public function current()\n {\n return parent::current();\n }", "public function current()\n {\n return parent::current();\n }", "public function current()\n {\n return parent::current();\n }", "#[\\ReturnTypeWillChange]\n public function current(): mixed\n {\n return current($this->items);\n }", "function current()\n\t{\n\t\treturn $this->get($this->pos);\n\t}", "public function current()\n {\n return current($this->data);\n }", "public function current()\n {\n return current($this->data);\n }", "public function current()\n {\n return current($this->data);\n }", "public function current()\n {\n return current($this->data);\n }", "public function current()\n {\n\t\treturn current($this->_data);\n\t}", "public function current()\n {\n return $this->current;\n }", "public function current()\n {\n return $this->current;\n }", "public function current()\n {\n return $this->current;\n }", "public function getItem()\n {\n return $this->get(self::ITEM);\n }", "public function current()\n {\n return current($this->_object);\n }", "public function current() {\n return current($this->data);\n }", "public function current()\n {\n return $this->offsetGet($this->key());\n }", "public function current()\n\t{\n\t\treturn $this->current;\n\t}", "public function current()\n {\n return $this->storage->current();\n }", "public function MenuCurrentItem() {\n return $this->MainMenu()->find('Code', 'KapostAdmin');\n }", "#[\\ReturnTypeWillChange]\n public function current()\n {\n return $this->collection->offsetGet($this->key());\n }", "public function current() {\n\t\treturn current($this->_data);\n\t}" ]
[ "0.9146505", "0.88903713", "0.85530424", "0.852284", "0.852284", "0.8443427", "0.8439753", "0.8368101", "0.8321118", "0.82231444", "0.82016957", "0.8171082", "0.8156244", "0.8131882", "0.8105071", "0.8093172", "0.8068058", "0.801028", "0.800141", "0.800141", "0.800141", "0.800141", "0.800141", "0.800141", "0.800141", "0.800141", "0.800141", "0.7989142", "0.7976518", "0.7957523", "0.7929657", "0.7913399", "0.79000324", "0.789254", "0.789254", "0.7858061", "0.7857505", "0.78549165", "0.78512204", "0.78490347", "0.78490347", "0.78490347", "0.7836656", "0.7817903", "0.781459", "0.781459", "0.781459", "0.781459", "0.781459", "0.781459", "0.781459", "0.781459", "0.781459", "0.781459", "0.781459", "0.781459", "0.781459", "0.781459", "0.781459", "0.781459", "0.781459", "0.781459", "0.781459", "0.781459", "0.781459", "0.781459", "0.7812159", "0.7812159", "0.7812159", "0.7812159", "0.7812159", "0.7812159", "0.7812159", "0.7812159", "0.7812159", "0.7812159", "0.7812159", "0.7812159", "0.7812159", "0.7812159", "0.7812159", "0.7812159", "0.78050447", "0.77907884", "0.7790438", "0.7790438", "0.7790438", "0.7790438", "0.7778876", "0.7778535", "0.7778535", "0.7778535", "0.77772605", "0.77653056", "0.7745912", "0.7738837", "0.77349013", "0.77064234", "0.77031153", "0.7699829", "0.76983684" ]
0.0
-1
Returns the key of the current item.
public function key() { return key($this->_filters); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function key() {\n\t\tif(($this->endItemIdx !== null) && isset($this->lastItems[$this->endItemIdx])) {\n\t\t\treturn $this->lastItems[$this->endItemIdx][0];\n\t\t} else if(isset($this->firstItems[$this->firstItemIdx])) {\n\t\t\treturn $this->firstItems[$this->firstItemIdx][0];\n\t\t} else {\n\t\t\treturn $this->items->current()->{$this->keyField};\n\t\t}\n\t}", "public function key()\n {\n return $this->current_key;\n }", "public function key()\n {\n return $this->currentKey;\n }", "public function key()\n {\n return $this->current();\n }", "public function key()\n {\n return $this->_currentKey;\n }", "public function key(): mixed {\n return key($this->items);\n }", "public function key()\n {\n return $this->current;\n }", "public function key()\n {\n return key($this->_items);\n }", "public function key(){\n return key($this->items);\n }", "public function key(){\n return key($this->items);\n }", "public function key()\n {\n $current = $this->current();\n\n return is_null($current) ? null : $current->getKey();\n }", "public function key() {\n return $this->currentIndex;\n }", "public function getItemKey($item) {\n\t\treturn $item->id;\n\t}", "public function key() {\n return $this->keys[$this->index];\n }", "public function key()\n {\n return $this->keys[$this->index];\n }", "public function key()\n {\n return current($this->keys);\n }", "public function key()\n {\n return $this->current[$this->dataStore->getIdentifier()];\n }", "public function key()\n {\n return $this->_currentIndex;\n }", "function key() {\n return $this->keys[$this->position];\n }", "public function key() {\n return $this->keys[$this->pos];\n }", "#[\\ReturnTypeWillChange]\n public function key()\n {\n return key($this->_items);\n }", "public function key()\n {\n return $this->keys[$this->iterator];\n }", "public function key()\n {\n return $this->keys[$this->pointer];\n }", "#[\\ReturnTypeWillChange]\n public function key()\n {\n return key($this->items);\n }", "public function key()\n\t{\n\t\treturn $this->_keys[$this->_idx];\n\t}", "public function key()\n \t{\n \t\treturn $this->getHandle()->current;\n \t}", "public function key($item);", "public function key() {\n return $this->iteratorKeys[$this->iteratorPosition];\n }", "public function getKey() {\n\t\treturn $this -> key;\n\t}", "public function key() {\n return $this->iterator->key();\n }", "public function key()\n {\n return $this->iterator->key();\n }", "#[\\ReturnTypeWillChange]\n public function key()\n {\n return current($this->keys);\n }", "public function key()\n {\n return $this->getKey($this->getCursor());\n }", "public function key() {\n if($this->items!==false)\n return key($this->items);\n return false;\n }", "public function getKey()\n {\n return $this->__key;\n }", "public function key()\n {\n Psl\\invariant($this->valid(), 'The Iterator is invalid.');\n if (!contains_key($this->entries, $this->position)) {\n $this->progress();\n }\n\n return $this->entries[$this->position][0];\n }", "function key()\n {\n $current = $this->getInnerIterator()->current();\n\n if (!is_scalar($current)) {\n return (string) $current;\n }\n\n return $current;\n }", "public function key() {\n return serialize($this->currentKey);\n }", "public function getKey()\n {\n return $this->__get(\"key\");\n }", "protected function key()\n {\n $value = $this->keyVal();\n return key($value);\n }", "public function key() {\n\t\treturn $this->_key;\n\t}", "public function key() {\n\t\treturn $this->key;\n\t}", "public function get_key() {\n\t\treturn array_get($this->attributes, static::$key);\n\t}", "public function key() {\r\n return key($this->collection);\r\n }", "public function key() {\n\n\t\t\treturn $this->position;\n\t\t}", "public function key()\n {\n return key($this->collection);\n }", "public function key()\n {\n return $this->_key;\n }", "public function getKey()\n\t{\n\t\treturn $this->data['key'];\n\t}", "public function getKey()\n\t{\n\t\treturn $this->key;\n\t}", "public function getKey()\n\t{\n\t\treturn $this->key;\n\t}", "public function getKey()\n\t{\n\t\treturn $this->key;\n\t}", "public function getKey()\n\t{\n\t\treturn $this->key;\n\t}", "public function getKey()\n\t{\n\t\treturn $this->key;\n\t}", "public function key() {\n\t\t\treturn $this->index;\n\t\t}", "public function key()\n {\n return key( $this->data );\n }", "public function getKey()\n {\n return $this->getId();\n }", "public function key() {\n return $this->_key;\n }", "public function key() { return $this->_m_key; }", "public function key()\n\t{\n\t\treturn $this->__position;\n\t}", "public function key() {\n return key($this->data);\n }", "public function key() {\n return key($this->data);\n }", "public function key() {\r\n\t\treturn $this->position;\r\n\t}", "public function key()\n {\n return $this->key;\n }", "public function key()\n {\n return $this->key;\n }", "public function key()\n {\n return $this->key;\n }", "public function key()\n {\n return $this->key;\n }", "public function key()\n {\n return $this->key;\n }", "public function key()\n {\n return key($this->_data);\n }", "public function key()\n\t{\n\t\treturn $this->_position;\n\t}", "public function key()\n\t{\n\t\treturn $this->index;\n\t}", "public function key()\n\t{\n\t\treturn $this->index;\n\t}", "public function getKey()\n {\n return $this->object->getKey();\n }", "public function getKey()\n {\n return $this->object->getKey();\n }", "function key()\n {\n return $this->key;\n }", "public function key() {\n\t\treturn $this->position;\n\t}", "public function key() {\n\t\treturn $this->position;\n\t}", "public function key() {\n\t\treturn $this->position;\n\t}", "public function key() {\n\t\treturn key($this->_data);\n\t}", "public function key()\n {\n return key($this->_object);\n }", "function key()\n\t{\n\t\treturn $this->index;\n\t}", "public function key()\n {\n return key($this->data);\n }", "public function key()\n {\n return key($this->data);\n }", "public function key()\n {\n return key($this->data);\n }", "public function key()\n {\n return key($this->data);\n }", "public function key()\n {\n return key($this->data);\n }", "public function key()\n {\n return key($this->data);\n }", "public function key()\n {\n return key($this->data);\n }", "public function key()\n {\n\t\treturn key($this->_data);\n\t}", "public function getKey()\n {\n return $this->id;\n }", "public function key(): mixed\n {\n return key($this->data);\n }", "function key()\n\t\t{\n\t\t\t$this->current();\n\t\t\treturn $this->offset;\n\t\t}", "public function getKey()\n {\n return $this->data['key'];\n }", "public function firstKey()\n\t{\n\t\treturn $this->first()->key;\n\t}", "public function getKey()\n {\n return $this->key;\n }", "public function getKey()\n {\n return $this->key;\n }", "public function getKey()\n {\n return $this->key;\n }", "public function getKey()\n {\n return $this->key;\n }", "public function getKey()\n {\n return $this->key;\n }", "public function getKey()\n {\n return $this->key;\n }", "public function getKey()\n {\n return $this->key;\n }", "public function getKey()\n {\n return $this->key;\n }" ]
[ "0.8474533", "0.83055395", "0.8250932", "0.8235875", "0.82185507", "0.821842", "0.82012755", "0.81822485", "0.81785166", "0.81785166", "0.8162944", "0.8079658", "0.8043197", "0.80410355", "0.80190426", "0.79994994", "0.79846114", "0.79518354", "0.7939115", "0.7930308", "0.7903247", "0.7871919", "0.7869541", "0.78659016", "0.7844557", "0.7834", "0.7825875", "0.782214", "0.7765288", "0.7731277", "0.7708114", "0.76613975", "0.76489913", "0.7626262", "0.76128906", "0.76020956", "0.760162", "0.7593687", "0.75768286", "0.75684303", "0.7564425", "0.756309", "0.7550861", "0.75478834", "0.75320315", "0.7529132", "0.7521855", "0.7517475", "0.751724", "0.751724", "0.751724", "0.751724", "0.751724", "0.75169176", "0.75135195", "0.748599", "0.7477836", "0.7472292", "0.7464253", "0.7463644", "0.7463644", "0.7459228", "0.7457574", "0.7457574", "0.7457574", "0.7457574", "0.7457574", "0.7457285", "0.7456783", "0.74555105", "0.74555105", "0.74528956", "0.74528956", "0.74527663", "0.7450986", "0.7450986", "0.7450986", "0.74500555", "0.7447234", "0.7435669", "0.7426066", "0.7426066", "0.7426066", "0.7426066", "0.7426066", "0.7426066", "0.7426066", "0.7422588", "0.74205637", "0.74130046", "0.7411699", "0.7410348", "0.7396573", "0.7395541", "0.7395541", "0.7395541", "0.7395541", "0.7395541", "0.7395541", "0.7395541", "0.7395541" ]
0.0
-1
Provides shorthand convenience syntax for filter chaining.
public function next() { next($this->_filters); if (($closure = current($this->_filters)) === false) { return false; } $params = $this->_params = func_get_args() + $this->_params; array_unshift($params, $this); return call_user_func_array($closure, $params); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function filter();", "public function filter() {\n\t\t// If there is no arguments, return $this\n\t\t$numArgs = func_num_args();\n\t\tif($numArgs == 0){\n\t\t\treturn $this;\n\t\t}\n\t\t\n\t\t// If only a lone array is passed use it as parameters\n\t\t$firstArgument = func_get_arg(0);\n\t\tif ($numArgs == 1 and isset($firstArgument[0]) and is_array($firstArgument[0])) {\n\t\t\treturn $this->_f(true, $firstArgument);\n\t\t}\n\n\t\t// General case of filtering: arguments are conditions\n\t\treturn $this->_f(true, func_get_args());\n\t}", "public function filter(/* variable arguments */) {\n $args = func_get_args();\n $filterName = array_shift($args);\n $this->filters[$filterName] = $args;\n return $this;\n }", "function filter($func, $xs) {\n return new \\std\\_FilterIterator($func, $xs);\n}", "public function filter(...$args)\n {\n $filter = Filter::factory(...$args);\n\n $qs = clone $this;\n $qs->addFilter($filter);\n return $qs;\n }", "protected abstract function filter();", "public abstract function filter(callable|UnaryFunction|FilterOperator $filter): Stream;", "public function filter($filterChain);", "public function filter($predicate);", "function filter($callback = null);", "public function filter() {\n\t\t$args = func_get_args();\n\t\t$r = Core_Types::reflection_for($this->sets[':default']);\n\t\t$m = $r->getMethod('filter');\n\t\treturn $m->invokeArgs($this->sets[':default'],$args);\n\t}", "public function filter(callable $predicate)\n {\n return self::from(Iterables::filter($this, $predicate));\n }", "public function filter(callable $predicate): static\n {\n $this->iterator = Iterators::filter($this->iterator, $predicate);\n return $this;\n }", "public function filter()\n {\n list($column, $operator, $value, $boolean) = func_get_args();\n empty($operator) && $operator = null;\n empty($value) && $value = null;\n empty($boolean) && $boolean = null;\n if($this->hasFilter) {\n $this->model = $this->model->where($column, $operator, $value, $boolean);\n } else {\n $this->model = $this->model->newQuery()->where($column, $operator, $value, $boolean);\n $this->hasFilter = true;\n }\n\n return $this;\n }", "public function filter(callable $predicate): Listt;", "public function filter(callable $c = null);", "public function filter($args = array(), $operator = 'AND')\n {\n }", "public function filter($criteria, $filter, $args=[]);", "public function filtering();", "public function filterAll($filter, $args=[]);", "public function filter(callable $predicate): Set;", "public function filter($filter) {\n $exists = array_search($filter, $this->filters, true);\n if ($exists === false) {\n $this->filters[] = $filter;\n }\n return $this;\n }", "public function filter(callable ...$callbacks): self;", "public function filter ($filter, array $options=[])\n {\n $this->filters[$filter] = $options;\n return $this;\n }", "function filter (callable $fn)\n {\n $this->A = array_filter ($this->A, $fn, ARRAY_FILTER_USE_BOTH);\n return $this;\n }", "private static function _getFilter() {}", "public function filter(\\Closure $callback);", "function filter(\\Closure $f) {\r\n return new ListM(array_values(array_filter($this->list, $f)));\r\n }", "public function filter($data);", "public function filter($input, $as, $cond): static;", "public function filter(Closure $func = null): ReadableCollection;", "public function filter(callable $callback = null)\n {\n return $this->toBase()->filter($callback);\n }", "public function filter( $filters=array() ){\n\t\t$items_filtered = $this->getItems();\n\t\tforeach($filters as $key=>$values){\n\n\t\t\tif(empty($values))\n\t\t\t\tcontinue;\n\n\t\t\tif(!is_array($values) && !empty($values)){\n\t\t\t\t$values = array($values);\n\t\t\t}\n\t\t\t\n\t\t\tforeach( $items_filtered as $i=>$item ){\n\t\t\t\tif(!in_array($this->dotNotationExtract($item, $key),$values)){\n\t\t\t\t\tunset($items_filtered[$i]);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t$this->items_filtered = $items_filtered;\n\t\t$this->update();\n\t\treturn $this;\n\t}", "public function filter ($selector = null) {\r\n\t\t\r\n\t\tif (!isset($selector) OR $this->length === 0) return $this;\r\n\t\t\r\n\t\t$this->xml_query = $this;\r\n\t\treturn $this->select($selector, null, XDT::SELECT_FILTER);\r\n\t}", "protected function filter(callable $filter)\n {\n return $this->setFilter($filter);\n }", "abstract public function filters();", "abstract public function filter(callable $func);", "private function filter()\n {\n if ($this->allowsFilter()) {\n if ($this->hasFilters()) {\n $tmp = [];\n foreach ($this->filters as $filter) {\n // check, if it is a \"forbidden\" query parameter\n if ($this->isExcludedParameter($filter['key'])) {\n continue;\n }\n $tmp[] = $filter;\n }\n\n $this->filters = $tmp;\n\n return $this->operator->filter($this->filters);\n }\n }\n }", "public function filter(\\Closure $filter) {\n $this->source = $filter($this->getSource());\n\n return $this;\n }", "public function filter ( $name ) {\n\t\t$this->opts['filter'] = $name;\n\t\treturn $this;\n\t}", "public function filter(callable $callback = null);", "public function Filter(string $filter, string $start = '', string $stop = '') {\n \n $this->setOption('filt', $filter);\n\n if ($start) $this->setOption('start', $start);\n\n if ($stop) $this->setOption('stop', $stop);\n\n return $this;\n }", "public function filter($filter = null)\n\t{\n\t\tif ($filter instanceof StackFilter) $filter = $filter->closure();\n\n\t\treturn $this->copy(array_values(array_filter($this->frames, $filter)));\n\t}", "public function filter(callable $filter)\n {\n $this->models = array_filter($this->all(), $filter);\n return $this;\n }", "public function filter($input);", "public function filter($name, $value=null)\n {\n $clone = $this->makeClone(true);\n if (is_array($name)) {\n $filters = $name;\n foreach ($filters as $name => $value) {\n $clone->setFilter($name, $value);\n }\n } else {\n $clone->setFilter($name, $value);\n }\n return $clone;\n }", "public function filter($filter)\n {\n $callback = is_array($filter) ? $this->_filterFromArray($filter) : $filter;\n $data = array_filter($this->_data, $callback);\n return new static($data);\n }", "public function filter(callable $callback);", "public function filter($switch = true)\n {\n $this->filter = $switch ?: false;\n return $this;\n }", "public function filter($value) {\n return $this->setProperty('filter', $value);\n }", "public function where($filters)\n {\n $this->filters = array_merge($this->filters, $filters);\n return $this;\n }", "public function filter(callable $callback = null): self\n {\n if (!$callback) {\n $callback = [$this, 'falsyFilter'];\n }\n $new = clone $this;\n $items = &$new->items();\n foreach ($items as $key => $item) {\n if (!$callback($item)) {\n unset($items[$key]);\n }\n }\n\n return $new;\n }", "public function filter(callable $callback = null): Sequence;", "public function filter(callable $callback = null)\n {\n if ($callback) {\n return new static(Arr::where($this->items, $callback));\n }\n\n return new static(array_filter($this->items));\n }", "public function filter() {\n\t\t$args = func_get_args();\n\t\t$methods = array();\n\t\t\n\t\tif( !empty($args) ) {\n\t\t\tif( is_string($args) && !empty(trim($args)) ) {\n\t\t\t\t$methods[] = $args;\n\t\t\t} elseif( is_array($args) ) {\n\t\t\t\t$methods = array_merge($this->methods, $args);\n\t\t\t\t$methods = array_unique(array_filter($methods));\n\t\t\t}\n\t\t\t\n\t\t\t$this->methods = $methods;\n\t\t}\n\t\t\n\t\treturn $this;\n\t}", "public function filter(callable $callback) : self\n {\n return new static(array_filter($this->items, $callback));\n }", "public function filter($in, $out, &$consumed, $closing);", "public function filter($filter)\n {\n $this->data['filter'] = $filter;\n\n return $this;\n }", "public function filter($callback)\n {\n return Collection::new(array_filter($this->items, $callback));\n }", "public function filter($callback)\n {\n $this->args = array_map($callback, $this->args);\n\n return $this;\n }", "public function having(array $filter): static\n {\n return $this->withProperty('filter', array_merge($this->filter, $filter));\n }", "public function filterVisible(): self;", "public function filters($filters)\n\t{\n\t\tif ($filters)\n\t\t{\n\t\t\tif (is_string($filters)) $filters = array($filters);\n\t\t\tif (is_array($filters)) $this->filters = array_merge($this->filters, $filters);\n\t\t}\n\n\t\treturn $this;\n\t}", "public function filter(Record $record);", "function filter($iterable, $lambda) {\n $out = array();\n foreach ($iterable as $v) if ($lambda($v)) $out[] = $v;\n return $out;\n}", "static function select($collection, $function)\n {\n return Ruby::wrap(array_filter($collection, $function));\n }", "public function filter($name, $filter)\n {\n $this->jade->filter($name, $filter);\n\n return $this;\n }", "public function filter(callable $callback): \\IvoPetkov\\DataList\n {\n $this->actions[] = ['filter', $callback];\n return $this;\n }", "public function filter($value, $filter) {\n if (is_array($value)) {\n foreach ($value as $i => $val)\n $value[$i] = $this->filter($val, $filter);\n }\n else if (is_array($filter)) {\n foreach ($filter as $f)\n $value = $this->filter($value, $f);\n }\n else {\n $fname = \"filter\";\n $arr = explode(\"_\", $filter);\n foreach ($arr as $a)\n $fname.= ucwords($a);\n if (is_callable([$this, $fname]))\n return $this->$fname($value);\n else\n return $value;\n }\n return $value;\n }", "public function where() {\r\n\t\t$args = func_get_args();\r\n\t\treturn call_user_func_array(array($this, 'andWhere'), $args);\r\n\t}", "public function filterOne(array $filter)\n\t{\n\t\t// foreach ($filters as $column => $value) {\n\t\t// \tif($value->isValueSet()) {\n\t\t// \t\t$this->data_source->addFilter(array($column => $value->getValue()));\n\t\t// \t}\n\t\t// }\n\t\t//dump(\"filterOne\");\n\t\treturn $this;\n\t}", "public function filter(callable $callback = null): Collection\n {\n if ($callback) {\n return new static(array_filter($this->store, $callback, ARRAY_FILTER_USE_BOTH));\n }\n\n return new static(array_filter($this->store));\n }", "public function filter(callable $callback)\n {\n $this->items = array_filter($this->items, $callback, ARRAY_FILTER_USE_BOTH);\n return $this;\n }", "public function filter(Closure $predicate): self\n {\n $intervals = array_filter($this->periods, $predicate, ARRAY_FILTER_USE_BOTH);\n if ($intervals === $this->periods) {\n return $this;\n }\n\n return new self(...$intervals);\n }", "public function filter(callable $hof);", "public static function filter($var)\n {\n //TODO\n }", "public function filter(Closure $filter): Column\n {\n $filter = Closure::bind($filter, $this);\n $this->filter = $filter;\n\n return $this;\n }", "public function filter($callback = null)\n {\n $test = array_filter($this->data, $callback);\n $clone = clone $this;\n return $clone->reset($test);\n }", "public function isFiltered() : bool;", "public function withFilters(array $filters = array());", "public function filter(callable $callback)\n {\n return new static(array_filter($this->objects, $callback, ARRAY_FILTER_USE_BOTH));\n }", "public function exclude() {\n\t\t// If there is no arguments, return $this\n\t\t$numArgs = func_num_args();\n\t\tif($numArgs == 0){ return $this; }\n\t\t\n\t\t// If only a lone array is passed use it as parameters\n\t\t$firstArgument = func_get_arg(0);\n\t\tif ($numArgs == 1 and isset($firstArgument[0]) and is_array($firstArgument[0])) {\n\t\t\treturn $this->_f(false, $firstArgument);\n\t\t}\n\n\t\t// General case of filtering: arguments are conditions\n\t\treturn $this->_f(false, func_get_args());\n\t}", "public function getFilter();", "public function getFilter();", "public function filter(callable $callback): self {\n\t\treturn new static(array_filter($this->array, $callback));\n\t}", "public function filter(callable $predicate): self\n {\n $filterClass = new class {\n public function filter(callable $predicate, $value): bool\n {\n return $predicate($value);\n }\n };\n if ($filterClass->filter($predicate, $this->value)) {\n return self::ofNullable($this->value);\n }\n return self::empty();\n }", "private function filters() {\n\n\n\t}", "public function filtering(): string;", "function GetFilter ( )\n{\n\treturn $this->FilterExp();\n}", "public function filter($filter)\n {\n }", "public function filter(): FilterRequestBuilder {\n return new FilterRequestBuilder($this->pathParameters, $this->requestAdapter);\n }", "function pickBy(callable $function, iterable $items) : iterable\n{\n return filter($function, $items);\n}", "function filter(callable $function, iterable $items) : iterable\n{\n return _arrayOrIterator($items, function($items) use($function) {\n foreach ($items as $key => $value) {\n if ($function($value, $key)) {\n yield $key => $value;\n }\n }\n });\n}", "final public function filter(): \\RecursiveCallbackFilterIterator\n {\n //filter\n return new \\RecursiveCallbackFilterIterator(\n //callback is not documented yet. All params are of mixed type\n $this->dirIterator, function ($current, $key, $iterator) {\n\n // Allow recursion\n assert($iterator instanceof \\RecursiveDirectoryIterator);\n if ($iterator->hasChildren()) {\n return true;\n }\n\n assert($current instanceof \\SplFileInfo);\n // skip hidden files\n if ($current->getBasename()[0] === '.') {\n return false;\n }\n\n // Check for audio and cover files\n if ($current->isFile() && in_array(strtolower($current->getExtension()), $this->allowedTypes)) {\n return true;\n }\n\n return false;\n }\n );\n }", "public function filter(array $filterData = [])\r\n {\r\n return $this->all()->filter($filterData);\r\n }", "function kfilter($iterable, $lambda) {\n $out = array();\n foreach ($iterable as $k => $v) if ($lambda($v)) $out[$k] = $v;\n return $out;\n}", "public function filterBy($className)\n {\n return self::from(Iterables::filterBy($this, $className));\n }", "public function filter(callable $callback): self\n {\n return Factory::create(array_filter($this->items, $callback, ARRAY_FILTER_USE_BOTH));\n }", "public function filterAll(callable $filterer, bool $copy_keys=false, bool $bind_callback_to_this=true, bool $remove_filtered_items=false): CollectionInterface;", "public function filter($index, $filter=null)\n {\n if (!is_array($index)) {\n $index = array($index => $filter);\n }\n foreach ($index as $i => $value) {\n if (is_array($value)) {\n foreach ($value as $f) {\n $this->filter->add($i, $f);\n }\n } else {\n $this->filter->add($i, $filter);\n }\n }\n return $this;\n }", "public function filter(callable $func)\n {\n return new static(array_filter($this->elements, $func));\n }" ]
[ "0.68074226", "0.66905236", "0.66714364", "0.652522", "0.6470367", "0.64542574", "0.639264", "0.6373145", "0.6314814", "0.630675", "0.628654", "0.62790185", "0.62060714", "0.61116207", "0.608417", "0.6059461", "0.5989201", "0.5985725", "0.59605724", "0.5950973", "0.5944012", "0.5940013", "0.593804", "0.5902021", "0.5885628", "0.5862427", "0.58579063", "0.5841314", "0.5832373", "0.5831824", "0.5787467", "0.5779067", "0.57764417", "0.5763311", "0.5756301", "0.5741623", "0.57315576", "0.5706732", "0.56881607", "0.5658259", "0.5650334", "0.56382614", "0.5628315", "0.56186277", "0.55952454", "0.55918914", "0.5523408", "0.550461", "0.5496033", "0.54897654", "0.5481823", "0.5471456", "0.5453806", "0.54387546", "0.54370266", "0.54335344", "0.5399674", "0.5398729", "0.5378775", "0.53744143", "0.5373471", "0.53733456", "0.5371612", "0.5370991", "0.5355698", "0.5338386", "0.532924", "0.53279036", "0.531819", "0.53152186", "0.53137714", "0.53106564", "0.53046465", "0.53037167", "0.5299916", "0.5294833", "0.5294604", "0.5292109", "0.52761066", "0.5268726", "0.526837", "0.5267982", "0.5262853", "0.5262853", "0.52613395", "0.5242855", "0.52402997", "0.52396053", "0.5236682", "0.52337956", "0.5225156", "0.52233267", "0.5218951", "0.5216577", "0.52100945", "0.5204018", "0.51916623", "0.51897526", "0.5189692", "0.5143351", "0.5135809" ]
0.0
-1
Rewinds to the first item.
public function rewind() { reset($this->_filters); return current($this->_filters); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function rewind(): void {\n reset($this->items);\n }", "public function rewind(): void\n {\n reset($this->_items);\n }", "public function rewind() {\n if($this->items!==false)\n reset($this->items);\n }", "public function rewind()\n {\n reset($this->_items);\n }", "public function rewind() {\r\n reset($this->itemList);\r\n }", "public function rewind(){\n return reset($this->items);\n }", "public function rewind(){\n return reset($this->items);\n }", "public function rewind_items() {\n\n\t\t$this->{$this->loop_vars['current_item']} = -1;\n\n\t\tif ( $this->{$this->loop_vars['item_count']} > 0 ) {\n\t\t\t$this->{$this->loop_vars['item_name']} = $this->{$this->loop_vars['item_name_plural']}[0];\n\t\t}\n\t}", "public function rewind(): void\n {\n if ($this->_index === 0) {\n return;\n }\n\n $this->_index = 0;\n }", "public function rewind() \n {\n $this->pointer = 0;\n if (isset($this->list[$this->pointer])) {\n $this->list[$this->pointer]->rewind();\n }\n }", "public function rewind(): void\n {\n $this->key = 0;\n $this->current = $this->start;\n }", "public function rewind(){\n $this->index = 0;\n }", "public function rewind() {\n\t\t\t$this->index = 0;\n\t\t}", "public function rewind()\n {\n if ($this->atStart)\n return;\n \n throw new Splunk_UnsupportedOperationException(\n 'Cannot rewind after reading past the first element.');\n }", "public function rewind() {\n $this->index = 0;\n }", "function rewind (){ $this->key = -1; }", "public function first(): void\n {\n $this->index = 0;\n }", "public function rewind()\n {\n rewind($this->_handle);\n $this->_currentIndex = -1;\n $this->next();\n }", "public function shift() { \n $item = $this->offsetGet(0);\n \n $this->itemsCollection()->update(array(), array('$pop' => array(\n self::ITEMS_OBJECT_NAME => -1\n )));\n \n $this->decrementLength();\n \n return $item;\n }", "public function rewind()\n {\n $this->current = 0;\n }", "public function rewind() {\n $this->_key = 0;\n }", "public function rewind()\n {\n $this->index = 0;\n }", "public function rewind(): void\n {\n if ($this->position != 1) {\n $this->position = 1;\n $this->data = [];\n $this->fetchMore();\n }\n }", "public function rewind()\n {\n $this->key = 0;\n }", "public function rewind()\n {\n $this->key = 0;\n }", "public function rewind()\n {\n $this->pointer = -1;\n $this->next();\n }", "public function rewind()\n {\n reset($this->data);\n $this->current_index = 0;\n }", "public function rewind()\n {\n $this->currentKey = 0;\n }", "public function rewind(): void\n {\n reset($this->array);\n }", "public function rewind() {\n do {\n $this->collections[$this->_current]->rewind(); \n } while ($this->_current-- > 0);\n }", "public function rewind()\n {\n if (count($this->pathItemList) > 0) {\n $this->index = 0;\n }\n else {\n $this->index = NULL;\n }\n }", "public function rewind()\n {\n $this->current = null;\n }", "public function first() {\n $this->index = 0;\n }", "public function rewind(): void\n {\n $this->_skipNextIteration = false;\n reset($this->_data);\n $this->_index = 0;\n }", "public function rewind() {\n reset($this->elements);\n $this->pointer = 0;\n }", "public function first()\r\n {\r\n $this->index = 0;\r\n }", "public function rewind()\n {\n $this->_previous = 1;\n $this->_current = 0;\n $this->_key = 0;\n }", "public function shift()\n {\n reset($this->items);\n\n return $this->pull($this->key());\n }", "public function rewind()\n {\n $this->current = $this->bottom();\n }", "public function rewind(): void\n {\n \\reset($this->responseData->_embedded->items);\n }", "public function rewind()\n {\n $this->offset = 0;\n }", "public function shift()\n {\n return array_shift($this->items);\n }", "public function shift()\n {\n return array_shift($this->items);\n }", "public function rewind() {\n\t\t$this->firstItemIdx = 0;\n\t\t$this->endItemIdx = null;\n\n\t\t$rewoundItem = $this->items->rewind();\n\n\t\tif(isset($this->firstItems[$this->firstItemIdx])) {\n\t\t\treturn $this->firstItems[$this->firstItemIdx][1];\n\t\t} else {\n\t\t\tif($rewoundItem) {\n\t\t\t\tif($rewoundItem->hasMethod($this->titleField)) {\n\t\t\t\t\treturn $rewoundItem->{$this->titleField}();\n\t\t\t\t}\n\n\t\t\t\treturn $rewoundItem->{$this->titleField};\n\t\t\t} else if(!$this->items->valid() && $this->lastItems) {\n\t\t\t\t$this->endItemIdx = 0;\n\n\t\t\t\treturn $this->lastItems[0][1];\n\t\t\t}\n\t\t}\n\t}", "public function rewind()\n {\n\t\treset($this->_data);\n $this->_index = 0;\n\t}", "private function resetCurrentItem()\n {\n $this->current_item = 0;\n }", "public function rewind() {\n $this->pos = 0;\n }", "public function rewind(): void\n {\n reset($this->data);\n }", "public function rewind() {\n\t\t$this->position = 0;\n\t}", "public function rewind() {\n\t\t$this->position = 0;\n\t}", "public function shift()\n\t{\n\t\treturn array_shift($this->items);\n\t}", "public function rewind()\n {\n $this->cursor = 0;\n $data = $this->collection->getArrayCopy();\n reset($data);\n $this->collection->exchangeArray($data);\n\n return $this->current();\n }", "public function rewind()\n {\n $this->_counter = 0;\n }", "final public function rewind(): void\n {\n $this->sort();\n\n reset($this->index);\n }", "public function rewind()\n {\n $this->_skipNextIteration = false;\n reset($this->_data);\n $this->_index = 0; \n }", "public function rewind() {\n reset($this->elements);\n }", "public function rewind() {\n reset($this->data);\n }", "public function rewind() {\n reset($this->data);\n }", "function rewind()\n\t{\n\t\t$this->_iIndex = 0;\n\t}", "public function getAndRemoveFirstItem ();", "public function rewind() {\n\t\t// Init the recordset if needed.\n\t\t$this->initRecordSet();\n\t\t// Move to first element\n\t\t$this->recordSet->MoveFirst();\n\t\t// Current index is the first index\n\t\t$this->currentIndex = 0;\n\t}", "function rewind() {\r\n $this->_position = 0;\r\n }", "public function rewind()\n\t{\n\t\t$this->__position = 0;\n\t}", "public function rewind(): void\n {\n $this->position = 0;\n }", "public function rewind()\n {\n $this->skipNextIteration = false;\n reset($this->data);\n }", "public function rewind()\n {\n $this->skipNextIteration = false;\n reset($this->data);\n }", "public function rewind() {\n $this->_position = 0;\n }", "function rewind() {\n $this->resetKeys();\n $this->position = 0;\n }", "public function rewind()\n\t\t{\n\t\t\treset($this->source);\n\t\t}", "public function rewind()\n {\n $this->current = ldap_first_entry($this->handle, $this->result);\n }", "public function rewind(){\n \t$this->load();\n reset($this->bookings);\n }", "public function rewind()\n {\n reset($this->data);\n }", "public function rewind()\n {\n reset($this->data);\n }", "public function rewind()\n {\n reset($this->data);\n }", "public function rewind() {\n\n\t\t\t$this->position = 0;\n\t\t}", "public function rewind(): void\n {\n $this->pointer = 0;\n }", "public function rewind()\n\t{\n\t\t$this->_position = 0;\n\t}", "function rewind() {\n $this->position = 0;\n }", "public function rewind()\n {\n $this->seek(0);\n }", "public function rewind()\n {\n $this->seek(0);\n }", "public function rewind()\n {\n $this->seek(0);\n }", "public function rewind()\n {\n $this->pointer = 0;\n }", "public function rewind()\n {\n $this->pointer = 0;\n }", "public function rewind() {\r\n\t\t$this->position = 0;\r\n\t\trewind($this->handle);\r\n\t\t$this->next();\r\n\t}", "public function rewind()\n {\n echo __METHOD__,PHP_EOL;\n reset($this->a);\n }", "public function rewind()\n {\n $this->_position = 0;\n }", "public function rewind()\n\t{\n\t\tif ($this->index < 0)\n\t\t\t$this->next();\n\t\telse\n\t\t\tthrow new CDbException('ShardDataReader cannot rewind. It is a forward-only reader.');\n\t}", "public function rewind()\n {\n $this->position = 0;\n }", "public function rewind()\n {\n $this->position = 0;\n }", "public function rewind()\n {\n $this->position = 0;\n }", "public function rewind()\n {\n $this->position = 0;\n }", "public function rewind()\n {\n $this->position = 0;\n }", "public function rewind()\n {\n $this->position = 0;\n }", "public function rewind()\n {\n $this->position = 0;\n }", "public function rewind()\n {\n $this->position = 0;\n }", "public function rewind()\n {\n $this->position = 0;\n }", "public function rewind() : void\n {\n $this->page(1);\n }", "public function rewind() {}", "public function rewind() {}", "public function rewind() {}", "public function rewind() {}" ]
[ "0.8040184", "0.80162424", "0.7925407", "0.7793285", "0.7708375", "0.7693523", "0.7693523", "0.7480463", "0.7417602", "0.7352691", "0.73521674", "0.7302642", "0.725251", "0.7240798", "0.719924", "0.71629715", "0.7158425", "0.7137214", "0.71124303", "0.71015936", "0.70962703", "0.70945734", "0.7063394", "0.7058989", "0.7058989", "0.7040326", "0.7030651", "0.7004594", "0.69989866", "0.69810444", "0.69731873", "0.696253", "0.6936574", "0.6928563", "0.6916374", "0.69153845", "0.6878195", "0.68751496", "0.6872592", "0.68512505", "0.68378186", "0.68308496", "0.68308496", "0.68308187", "0.6827255", "0.6824916", "0.67800176", "0.6772137", "0.6761096", "0.6761096", "0.6756479", "0.6753083", "0.67434704", "0.67372584", "0.67328495", "0.6725978", "0.67158777", "0.67158777", "0.67150784", "0.6705604", "0.66942024", "0.66899484", "0.6687719", "0.66862905", "0.66796666", "0.66796666", "0.6678347", "0.6675363", "0.666982", "0.666966", "0.6666083", "0.6649099", "0.6649099", "0.6649099", "0.664303", "0.6634659", "0.6629736", "0.66201913", "0.66195756", "0.66195756", "0.66195756", "0.6614918", "0.6614918", "0.6611194", "0.660989", "0.65930116", "0.65851194", "0.6581985", "0.6581985", "0.6581985", "0.6581985", "0.6581985", "0.6581985", "0.6581985", "0.6581985", "0.6581985", "0.6574177", "0.65721273", "0.65721273", "0.6572114", "0.6572114" ]
0.0
-1
Checks if current position is valid.
public function valid() { return key($this->_filters) !== null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function valid() {\n return ($this->pos < $this->end);\n }", "function valid() \n {\n return $this->offsetExists($this->position);\n }", "function valid()\n {\n return $this->_position == 0 || $this->_curPage->getSize() > 0;\n }", "public function valid() {\n\t\t\treturn isset( $this->stat_refs[ $this->position ] );\n\t\t}", "public function valid() {\n\t\treturn isset($this->data[$this->position]);\n\t}", "function valid() {\r\n return isset($this->_data[$this->_position]);\r\n }", "public function valid()\n {\n if (isset($this->elements[$this->position]))\n {\n return true;\n }\n\n return false;\n }", "public function isValid()\n {\n return $this->pos < strlen($this->buffer);\n }", "public function valid(): bool\n {\n return $this->current() !== false;\n }", "public function valid(): bool\n {\n return isset($this->collection[$this->position]);\n }", "public function valid()\n {\n if (is_null($this->current)) {\n return false;\n }\n\n return true;\n }", "public function valid() {\n return !is_null($this->currentIndex);\n }", "public function valid()\n {\n return isset($this->data[$this->position]);\n }", "public function valid()\n {\n return isset($this->data[$this->position]);\n }", "public function valid()\n {\n return $this->index <= $this->length;\n }", "public function valid(): bool\n {\n return isset($this->parameters[$this->position]);\n }", "public function valid(): bool\n {\n return ($this->current() !== false);\n }", "public function valid() {\n return $this->pointer < count($this->items);\n }", "public function valid()\n {\n // current() should return false. Needs to be tested.\n return (bool) $this->current();\n }", "public function valid()\n {\n return $this->currentLine !== false;\n }", "public function valid(): bool\n {\n if (contains_key($this->entries, $this->position)) {\n return true;\n }\n\n if (null === $this->generator) {\n return false;\n }\n\n if ($this->generator->valid()) {\n return true;\n }\n\n $this->generator = null;\n return false;\n }", "public function valid() : bool\n {\n // dd($this->position >= 65 && $this->position <= 90);\n return $this->position >= 65 && $this->position <= 90;\n }", "function valid() {\n if (isset($this->keys[$this->position])) {\n return $this->__isset($this->keys[$this->position]);\n }\n return false;\n }", "public function valid() \n {\n return ($this->current() !== false);\n }", "public function valid()\n {\n return ($this->position < $this->getDomList()->length);\n }", "public function valid()\n {\n return ($this->current() !== false);\n }", "public function valid() {\n\t\treturn ($this->current() !== false);\n\t}", "public function valid()\n\t\t{\n\t\t\treturn $this->current() !== false;\n\t\t}", "public function valid()\n {\n return $this->_position <= $this->_subject->getHighestRow();\n }", "public function valid(): bool\n {\n return isset($this->intervals[$this->position]);\n }", "public function valid()\n {\n return !is_null($this->current());\n }", "public function valid()\n {\n return ($this->current() != false);\n }", "public function valid(): bool\n {\n return $this->_index < $this->_count;\n }", "public function valid() {\n // TODO: Check numProcessed against itemlimit\n return !is_null($this->currentRow);\n }", "public function valid()\n {\n return (! is_null($this->current()));\n }", "public function checkPosition($position)\n\t{\n\t\tif(!in_array($position, $this->getFreeCell())) {\n\t\t\tthrow ExceptionFactory::runtime(\"Wrong position\");\n\t\t}\n\t}", "public function valid()\n {\n return (bool) $this->current();\n }", "public function valid()\n {\n return $this->_position < ExcelCell::columnIndexFromString($this->_subject->getHighestColumn());\n }", "public function valid()\n {\n return isset($this->list[$this->position]);\n }", "public function valid()\n {\n return isset($this->collection->getItems()[$this->position]);\n }", "public function valid() {\n\t\t// Init the recordset if needed.\n\t\t$this->initRecordSet();\n\t\t// Is current position valid?\n\t\treturn ((!$this->recordSet->EOF) and $this->currentIndex < $this->recordSet->RecordCount() );\n\t}", "public function valid()\n {\n if (!parent::valid()) {\n return false;\n }\n\n $allowedValues = $this->getRelativeHorizontalPositionAllowableValues();\n if (!in_array($this->container['relative_horizontal_position'], $allowedValues)) {\n return false;\n }\n\n $allowedValues = $this->getRelativeVerticalPositionAllowableValues();\n if (!in_array($this->container['relative_vertical_position'], $allowedValues)) {\n return false;\n }\n\n $allowedValues = $this->getWrapTypeAllowableValues();\n if (!in_array($this->container['wrap_type'], $allowedValues)) {\n return false;\n }\n\n\n return true;\n }", "public function valid()\n\t{\n\t\treturn !($this->current === null || $this->current === false);\n\t}", "public function valid()\n {\n return (bool) $this->current();\n }", "public function valid()\n {\n return isset($this->bricks[$this->position]);\n }", "public function valid()\n\t{\n\t\treturn isset ($this->_messages[$this->_position]);\n\t}", "public function valid() { return isset($this->keys[$this->pos]);\n }", "public function valid()\n {\n return $this->_index < $this->count();\n }", "public function isValidPosition($position) {\n if ($this->isNull($position)) {\n return false;\n }\n return !$this->words[$position]['processed'];\n }", "public function valid()\n {\n return ($this->current() !== null) ? true : false;\n }", "public function valid(): bool\n {\n if ($this->next) {\n return $this->current->toInteger() <= $this->end->toInteger();\n }\n\n return $this->current->toInteger() >= $this->end->toInteger();\n }", "public function valid ()\n {\n return isset($this->offset) && isset($this->cache[ $this->offset ]);\n }", "public function valid()\n {\n return $this->offsetExists($this->key());\n }", "public function valid(): bool\n {\n return null !== $this->_nextScrollId;\n }", "public function valid()\n {\n return !empty($this->_currentRow);\n }", "final public function valid(): bool\n {\n $this->sort();\n\n return false !== current($this->index) && null !== current($this->index);\n }", "public function IsValidCoordinate()\n {\n return $this->Coords->IsValid();\n }", "public function valid() {\n\t\t\treturn (isset($this->data[$this->index]));\n\t\t}", "public function isValidMove()\n {\n if ($this->getXCor() != $this->getEndXCor()\n && $this->getYCor() != $this->getEndYCor()\n ) {\n return false;\n }\n\n return true;\n }", "public function valid() {\n\t\t$this->checkResultSet();\n\n\t\tif ($this->index >= 0 && $this->index < $this->indexMax) {\n\t\t\treturn true;\n\t\t}\n\n\t\treturn false;\n\t}", "public function valid() {\n\t\treturn (current($this->_data) !== false);\n\t}", "public function valid()\n {\n return isset($this->records[$this->position]);\n }", "public function isValid()\n {\n return $this->lat >= -90 && $this->lat <= 90 &&\n $this->lon >= -180 && $this->lon <= 180;\n }", "public function valid()\n {\n return isset($this->_annotations[$this->_position]);\n }", "public function valid() : bool \n {\n return isset($this->list[$this->pointer]) ? \n ($this->list[$this->pointer]->valid() || $this->hasNext()) : false;\n }", "public function hasPos(){\n return $this->_has(1);\n }", "public function hasPos(){\n return $this->_has(1);\n }", "public function valid()\n {\n return array_key_exists($this->position, $this->aliases);\n }", "public function valid()\n {\n if (!$this->isBuffered())\n $return = $this->getCurrentData();\n else\n $return = $this->position < $this->resultOrigin->num_rows;\n\n return $return;\n }", "public function valid(): bool\n {\n return $this->selection->valid();\n }", "public function valid () {\n return (FALSE !== current ($this->varContainer));\n }", "public function valid()\n {\n return false !== current($this->data);\n }", "public function valid()\n {\n return $this->key === 0;\n }", "public function valid()\n {\n return $this->iteratorIndex < $this->iteratorCount;\n }", "public function valid(): bool\n {\n return (current($this->items) !== false);\n }", "public function valid()\n {\n $this->fileIterator->seek($this->position);\n return $this->fileIterator->valid();\n }", "public function valid() {\r\n \tif ($this->__pageItems > 0) {\r\n \t\tif ($this->key() + 1 > $this->pageEnd()) {\r\n \t\t\treturn FALSE;\r\n \t\t} else {\r\n \t\t\treturn $this->current() !== FALSE;\r\n \t\t}\r\n \t} else {\r\n \t\treturn $this->current() !== FALSE;\r\n \t}\r\n }", "public function valid()\n\t{\n\t\treturn isset($this->_elementNames[$this->__position]);\n\t}", "public function valid(): bool\n {\n return isset($this->nodes[$this->pointer]);\n }", "public function valid() {\n return ( current($this->_path) !== false );\n }", "public function valid()\n {\n return isset($this->keys[$this->pointer]);\n }", "abstract public function valid();", "public function valid()\n {\n return ( current( $this->data ) !== false );\n }", "public function valid()\n {\n return $this->_key + 1 <= $this->_limit;\n }", "public function valid() {\n\t\treturn (\n\t\t\t(isset($this->firstItems[$this->firstItemIdx])) ||\n\t\t\t(($this->endItemIdx !== null) && isset($this->lastItems[$this->endItemIdx])) ||\n\t\t\t$this->items->valid()\n\t\t);\n\t}", "public function isPositionValid(Position $position)\n {\n return $this->isReachable($position->x, $position->y);\n }", "public function valid()\n\t{\n\t\treturn array_key_exists($this->_idx, $this->_keys);\n\t}", "public function originIsValid(): bool;", "public function isValid() {\n if ($this->__totalSteps > 0) {\n if ($this->__currentStep < ($this->__totalSteps - 1)) return false;\n $PrevData = $this->__getFormData();\n if (!isset ($PrevData['__current_step']) || $PrevData['__current_step'] < $this->__currentStep) return false;\n }\n return $this->isCurrentValid();\n }", "public function isValid(): bool {\n\t\treturn $this->getGlobeObj()->coordinatesAreValid( $this->lat, $this->lon );\n\t}", "public function valid() {\n return isset ( $this->_iterableFiles [$this->_position] );\n }", "public function valid() : bool\n {\n return !($this->key() >= count($this->currentRecordSet) && count($this->currentRecordSet) != $this->pageSize);\n }", "public function valid()\n {\n return ($this->currentElement !== NULL);\n }", "public function valid() {\n return isset($this->keys[$this->index]);\n }", "public function valid() {\n return false !== current($this->components);\n }", "public function valid() {\n\t\tif( ! isset( $this->_recordset[ $this->_currentRow ] ) ) {\n\t\t\t$this->_currentRow--;\n\t\t\treturn( false );\n\t\t}\n\t\treturn( true );\n\t}", "public function valid()\n {\n return array_key_exists($this->index, $this->keys);\n }", "public function isValid()\n {\n return $this->isBound() ? count($this->errors)==0 : false; // TESTME\n }", "public function valid(): bool\n {\n return current($this->revs) !== false;\n }", "public function valid() {}", "public function valid() {}" ]
[ "0.77952045", "0.7704004", "0.7682876", "0.7341352", "0.72905356", "0.7282062", "0.72594506", "0.72115016", "0.7175756", "0.71586627", "0.7156666", "0.7132078", "0.71155494", "0.71155494", "0.7094378", "0.7069854", "0.70690125", "0.7049169", "0.7040837", "0.7040826", "0.7039575", "0.7016937", "0.7006287", "0.6991213", "0.6984604", "0.69821143", "0.69798076", "0.69620097", "0.69607085", "0.6956926", "0.6948834", "0.6944377", "0.69348025", "0.6911251", "0.69048166", "0.68824637", "0.68806225", "0.68473107", "0.6847124", "0.68048406", "0.67869633", "0.6784628", "0.67834073", "0.67699826", "0.67531353", "0.67220986", "0.67177945", "0.67177325", "0.66975385", "0.6687767", "0.66608435", "0.6659785", "0.6643961", "0.6635815", "0.65977985", "0.65939313", "0.6566107", "0.65608454", "0.654454", "0.65241057", "0.65168583", "0.6516648", "0.64769983", "0.6456209", "0.64388955", "0.6435288", "0.6435288", "0.64347404", "0.6419601", "0.64172935", "0.6412415", "0.63936806", "0.63745266", "0.6373564", "0.6356999", "0.6338335", "0.63272864", "0.63089615", "0.63071483", "0.6300948", "0.6298873", "0.62938523", "0.6282877", "0.6280911", "0.6278206", "0.6231306", "0.6230546", "0.62302047", "0.6209181", "0.6203438", "0.6196389", "0.619578", "0.61932415", "0.61913556", "0.61903924", "0.617899", "0.61788166", "0.6163578", "0.6148719", "0.6146209", "0.6146209" ]
0.0
-1
Returns the number of filters.
public function count() { return count($this->_filters); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function count($filters = array()) {\n\n return 1000;\n }", "public static function countActiveFilters()\n {\n return count(self::$_activeFilters);\n }", "public function getFilteredCount()\n\t{\n\t\treturn $this->filteredCount;\n\t}", "public function count($filters)\n {\n $nb = $this->getQueryBuilderForAll($filters)\n ->getQuery()\n ->execute()\n ->count()\n ;\n return $nb;\n }", "public function getCount()\n\t{\n\t\treturn $this->getFilteredCollection()->count();\n\t}", "public function countAppliedFilters(Request $request): int\n {\n return collect($this->filters($request))\n ->filter->isSet($request)\n ->count();\n }", "public function count($filters = array())\n\t{\n\t\t$sql = \"SELECT COUNT(*) FROM {$this->_tbl}\";\n\t\t$sql .= $this->_buildQuery($filters);\n\n\t\t$this->_db->setQuery($sql);\n\t\treturn $this->_db->loadResult();\n\t}", "public function countByFilter(array $filter);", "public function getSizeBeforeFiltersHaveBeenApplied() : int\n {\n return $this->getLoader()->getSizeBeforeFiltersHaveBeenApplied();\n }", "public function getTotalItemCount($filters = [])\n {\n $itemCount = 0;\n foreach($this->items as $item) {\n if ($item->passFilters($filters)) {\n $itemCount++;\n };\n };\n return $itemCount;\n }", "public function getTotalNumberOfRows(array $filters = array())\n {\n return 5;\n }", "public function getFilteredTotal(): int\n {\n return $this->filteredCount;\n }", "public function count(array $filters = array())\n {\n $select = $this->select();\n \n /*\n * Calling function from function/switchcase proccessFIlters\n */\n $this->processFilters($filters, $select);\n \n //Zend reset previously set columns\n //Also we can reset all queries LIKE:\n // WHERE, COLUMNS.\n $select->reset('columns');\n \n //set one column/field to fetch and it is function\n $select->from($this->_name,'COUNT(*) AS total');\n \n //Fetch/GET just one row from DB table\n $row = $this->fetchRow($select)->toArray();\n \n return $row['total'];\n }", "public function count()\n {\n return count($this->getPipes());\n }", "public final function count($filter='', $param=array())\n {\n if ($filter)\n $this->filter = $filter;\n\n if ($param)\n $this->param = $param;\n\n return $this->read('num');\n }", "public static function fetchCount(array $filter = array())\n {\n return self::count( self::definition(), $filter);\n }", "public function countByFilter(VisitFilter $filter) : int;", "public function count()\n {\n return count($this->parameters);\n }", "public function get_count($filter = array()) {\n\t\t$this -> db -> from('Question');\n\t\t$this -> filter($filter);\n\t\treturn $this -> db -> count_all_results();\n\t}", "function count_filtered()\n {\n $this->_get_datatables_query();\n $query = $this->db->get();\n return $query->num_rows();\n }", "public function getParamsCount()\n {\n return $this->count(self::_PARAMS);\n }", "public function getParamsCount()\n {\n return $this->count(self::_PARAMS);\n }", "public function count($filters) {\n $this->_filters($filters);\n $count = $this->db->count_all_results('products');\n return (object)array(\n 'status' => 'success',\n 'code' => 'products.success.count',\n 'data' => array('count' => $count)\n );\n }", "public function count(array $locales = null, array $filters = null);", "public function getRecordsFiltered(): int;", "public function getBrandsListCount($filter = array())\n {\n $whereClause = $this->getElmFilter($filter, 'entities\\Brand', 'c', array('country'));\n if (!empty($whereClause)) {\n $whereClause = \" WHERE \" . $whereClause;\n }\n $query = $this->em->createQuery(\"SELECT COUNT(c) FROM entities\\Brand c \".$whereClause);\n return $query->getSingleScalarResult();\n }", "public function getCount($filters=array())\n\t{\n\t\t$query = \"SELECT count(*) FROM $this->_tbl AS a\";\n\t\t$where = array();\n\t\tif ($filters['catid'] > 0)\n\t\t{\n\t\t\t$where[] = \"a.catid='\" . intval($filters['catid']) . \"'\";\n\t\t}\n\t\tif ($filters['search'])\n\t\t{\n\t\t\t$where[] = \"LOWER(a.title) LIKE \" . $this->_db->quote('%' . $filters['search'] . '%');\n\t\t}\n\n\t\t//did we pass in a scope id filter\n\t\tif (isset($filters['scope_id']) && $filters['scope_id'] != '' && $filters['scope_id'] != 0)\n\t\t{\n\t\t\t$where[] = \"a.scope=\" . $this->_db->quote('group');\n\t\t\t$where[] = \"a.scope_id=\" . $this->_db->quote($filters['scope_id']);\n\t\t}\n\n\t\t$query .= (count($where)) ? \" WHERE \" . implode(' AND ', $where) : \"\";\n\t\t$this->_db->setQuery($query);\n\t\treturn $this->_db->loadResult();\n\t}", "public function Count($filters = array(), $options = array()) {\n\t\tif (!is_array($filters)) {\n\t\t\treturn false;\n\t\t}\n\t\tif (!is_array($options)) {\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\tlist($whereCondition, $aParams) = db::filters($filters);\n\t\tlist($searchCondition, $searchParams) = db::searchFilter($options);\n\t\t\n\t\tif (count($searchParams) > 0 && !empty($searchCondition)) {\n \t\t$whereCondition .= $searchCondition;\n \t\t$aParams = array_merge($aParams, $searchParams);\n\t\t}\n\t\t\n\t\t$sql = \"SELECT COUNT(*) AS cnt FROM \".$this->getTableName()\n\t\t\t\t.\" WHERE \".$whereCondition;\n\t\t$row = db::querySelect($sql, $aParams);\n\t\tif (isset($row['cnt'])) {\n\t\t\treturn $row['cnt'];\n\t\t}\n\t\treturn false;\n\t}", "public function count_filtered(){\n $this->datatables_query();\n $query = $this->db->get();\n return $query->num_rows();\n }", "public static function getCount()\n\t{\n\t\treturn self::find()->count();\n\t}", "private function getCountFilteredResults()\n {\n $qb = $this->em->createQueryBuilder();\n $qb->select('count(distinct ' . $this->tableName . '.' . $this->rootEntityIdentifier . ')');\n $qb->from($this->metadata->getName(), $this->tableName);\n\n $this->setLeftJoin($qb);\n $this->setWhere($qb);\n $this->setWhereCallbacks($qb);\n\n return (int) $qb->getQuery()->getSingleScalarResult();\n }", "public function getFilterCounts($filter_name)\n {\n\n $model = new $this->urlData->params['model'];\n\n $query = $model->with(isset($this->urlData->settings['relationships']) ? $this->urlData->settings['relationships'] : []);\n\n $this->addFilters($query);\n\n $column = $this->getBaseColumnName($this->urlData->settings['filters'][$filter_name]['table_column']);\n\n $valuesCount = [];\n\n $filterRelation = $this->checkFilterRelation($filter_name);\n $filterScope = $this->checkFilterScope($filter_name);\n\n if ($filterRelation) {\n if (method_exists($model->$filterRelation(), 'getTable')) {\n $relatedTable = $model->$filterRelation()->getTable();\n } else {\n $relatedTable = $model->$filterRelation()->getRelated()->getTable();\n }\n $relatedColumn = $this->urlData->settings['filters'][$filter_name]['related_column'];\n $groupColumn = $this->urlData->settings['filters'][$filter_name]['group_column'];\n $baseColumn = $this->urlData->settings['filters'][$filter_name]['base_column'];\n $baseTable = $model->getTable();\n\n $results = $query->join($relatedTable, $relatedTable . '.' . $relatedColumn, '=', $baseTable . '.' . $baseColumn)\n ->select($relatedTable . '.' . $groupColumn . ' as value', \\DB::raw('count(' . $relatedTable . '.' . $groupColumn . ') as count'))\n ->groupBy($relatedTable . '.' . $groupColumn)\n ->get();\n\n } elseif ($filterScope) {\n $scope = $this->urlData->settings['filters'][$filter_name]['counter_scope'];\n\n $results = $query->$scope()->get();\n\n } else {\n $results = $query->groupBy($column)->get([$column . ' as value', \\DB::raw('count(' . $column . ') as count')]);\n }\n\n\n foreach ($results as $result) {\n $valuesCount[$result->value] = $result->count;\n };\n\n //dd($valuesCount);\n return $valuesCount;\n }", "public function countByFilterParam(FilterManager $fm, $filterparam, $limitcount = null);", "public function searchCount(Tinebase_Model_Filter_FilterGroup $_filter) {\n return 30;\n }", "public function getQueryCount();", "abstract public function prepareFilteredCount();", "public function count( $request, BaseFilter $filter = null ) {\n\t $search = $request->search;\n\t return $this->crudRepository->count( $this->model, $search, $filter);\n }", "public function getCount()\n {\n return count($this->getModels());\n }", "public function getCount()\n {\n return count($this->getModels());\n }", "function count($filter=NULL,array $options=NULL,$ttl=0) {\n\t\t$now=microtime(TRUE);\n\t\t$out=count($this->find($filter,$options,$ttl,FALSE));\n\t\t$this->db->jot('('.sprintf('%.1f',1e3*(microtime(TRUE)-$now)).'ms) '.\n\t\t\t$this->file.' [count] '.($filter?json_encode($filter):''));\n\t\treturn $out;\n\t}", "public function getParamsIntCount()\n {\n return $this->count(self::PARAMS_INT);\n }", "function count_actions($filters, $filterable, $debug = false) {\n\t\t$q = (new QueryBuilder())->table('useractions');\n\t\t$q->field($q->expr('COUNT(*)'));\n\t\t$q->generate_filters($filters, $filterable);\n\n\t\t$sql = DplusWire::wire('database')->prepare($q->render());\n\n\t\tif ($debug) {\n\t\t\treturn $q->generate_sqlquery($q->params);\n\t\t} else {\n\t\t\t$sql->execute($q->params);\n\t\t\treturn $sql->fetchColumn();\n\t\t}\n\t}", "public function getCount()\n\t{\n\t\treturn $this->data_source->count();\n\t}", "public function getCount()\n\t{\n\t\treturn $this->count;\n\t}", "public function count()\n {\n $this->setIteratorFilter(self::FLIST_NOCONTAINER | self::FLIST_UNSUB);\n return count(iterator_to_array($this));\n }", "public function count(array $conditions = []): int;", "public static function totalMovies($filters=array()){\n $movies = self::setFilters($filters);\n return $movies->count();\n }", "public function countItems($filter = null, $complyAll = true)\n {\n if ($this->isEmpty()) {\n return 0;\n }\n\n return count($this->getItems($filter, $complyAll));\n }", "public function count() {\n\t\treturn count($this->getData());\n\t}", "public static function getCount()\n {\n return static::find()->count();\n }", "public function count()\n {\n return sizeof($this->allStates);\n }", "public function count($tableSpec, array $filters = [])\n {\n $filters['_id.type'] = $tableSpec;\n return $this->getCollectionForTableSpec($tableSpec)->count($filters);\n }", "public function hasFilter(){\n return $this->_has(5);\n }", "public function getCount()\n {\n return count($this->items);\n }", "public function getCount() {\n return $this->getFlagCount();\n }", "public function getPartCount(PartFilter $filter = null)\n {\n return count($this->getAllParts($filter));\n }", "public function getAppliersCount()\n {\n return $this->count(self::_APPLIERS);\n }", "public function count(): int\n\t{\n\t\treturn count($this->all());\n\t}", "public static function count($parameters=null) {}", "public function getExportStatsCount($filterBy = []);", "public function count()\n {\n return $this->pager->count();\n }", "public function count()\n {\n return count($this->_models);\n }", "public function count()\n {\n return count($this->getIteratorArray());\n }", "public function getCount()\n\t{\n\t\treturn $this->_count;\n\t}", "public static function count($parameters = null);", "public function count(): int {\n return count($this->toArray());\n }", "public function count() {\n return count($this->scale);\n }", "public function getCount() {\n \treturn $this->count();\n }", "public function getNumberOfParameters()\n\t{\n\t\treturn 0;\n\t}", "function payment_count_filtered()\n {\n $this->_get_datatables_payment_query();\n $query = $this->company_db->get();\n return $query->num_rows();\n }", "public function getCount()\n {\n return $this->model->count();\n }", "public function getCount ()\n {\n return count ( $this->_list ) ;\n }", "public function count() {\n\t\treturn count($this->data);\n\t}", "public function getCount()\n\t{\n\t\treturn count($this->_d);\n\t}", "final public function count(): int\n {\n return count($this->all());\n }", "public function count()\n\t\t{\n\t\t\treturn count($this->source);\n\t\t}", "public function countMembers($filters=array())\n\t{\n\t\t$query = \"SELECT COUNT(DISTINCT v.username) \";\n\t\t$query .= $this->_buildMembersQuery($filters);\n\n\t\t$this->_db->setQuery($query);\n\t\treturn $this->_db->loadResult();\n\t}", "public function countItems();", "public function count() {\r\n\t\treturn count($this->collection);\r\n\t}", "public function count()\n {\n return count($this->container);\n }", "public function count()\n {\n return count($this->channels);\n }", "public function count()\n {\n return count($this->groups);\n }", "public function getCount()\n\t{\n\t\treturn $this->Count;\n\t}", "public function count()\n\t{\n\t\treturn count($this->items);\n\t}", "public function count()\n\t{\n\t\treturn count($this->items);\n\t}", "public function count()\n {\n return count($this->getResults());\n }", "final public static function count( ) {\n\t\treturn self::$intQueryCount;\n\t}", "public function count() {\n return count($this->components);\n }", "public function count() {\n\t\treturn count($this->array);\n\t}", "public function getQueryCount()\n\t{\n\t\treturn $this->query_count;\n\t}", "public function count(): int\n {\n return count($this->resources);\n }", "public function count()\n {\n return count($this->activeValue);\n }", "public function count()\n\t{\n\t\treturn $this->all()->count();\n\t}", "public function count() {\n\t\treturn count($this->getIterator());\n\t}", "public function count() {\n return count($this->_items);\n\n }", "function count() {\n\t\treturn count($this->data);\n\t}", "public function count()\n {\n return count($this->fields);\n }", "public function count()\n {\n return count($this->fields);\n }", "public function count()\n\t{\n\t\treturn $this->getCount();\n\t}", "public function count(): int\n {\n return count( $this->toArray() );\n }" ]
[ "0.8212421", "0.8071703", "0.7509339", "0.7496974", "0.7416118", "0.7332905", "0.7168981", "0.7036285", "0.6982051", "0.69567597", "0.6922746", "0.6825242", "0.6785987", "0.6777178", "0.6705086", "0.67007613", "0.66974866", "0.6685318", "0.663803", "0.6606071", "0.65987265", "0.65987265", "0.6582089", "0.6581597", "0.65696657", "0.64884746", "0.64821213", "0.6450234", "0.64376485", "0.6403884", "0.6373756", "0.6372715", "0.63605934", "0.63400584", "0.63161325", "0.6299874", "0.6299057", "0.6294069", "0.6294069", "0.6292678", "0.6280505", "0.62496877", "0.62491715", "0.624557", "0.6241228", "0.6213905", "0.62114966", "0.62099797", "0.6199417", "0.61928874", "0.6191746", "0.6182679", "0.6174421", "0.6152345", "0.61500025", "0.61430454", "0.61309487", "0.612255", "0.6120849", "0.6095512", "0.6095336", "0.6083625", "0.6083306", "0.6082967", "0.6078928", "0.60752183", "0.6073822", "0.60718906", "0.60679466", "0.6066144", "0.60654145", "0.60615194", "0.6059266", "0.6058834", "0.6058762", "0.6058713", "0.60577923", "0.6056272", "0.60558766", "0.6054832", "0.60524344", "0.60521656", "0.60509545", "0.60489166", "0.60489166", "0.604723", "0.60364574", "0.60349655", "0.6032311", "0.6032193", "0.6028282", "0.60279596", "0.6027156", "0.6026506", "0.6021745", "0.602108", "0.60206735", "0.60206735", "0.60193133", "0.6012098" ]
0.8786861
0
author: Gabriel Grimello Data 03/09/2019
function __construct() { parent::__construct(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function AggiornaPrezzi(){\n\t}", "public function boleta()\n\t{\n\t\t//\n\t}", "public function get_data()\n\t\t{\t\t// Should there be a common method for this?\n\t\t}", "public function serch()\n {\n }", "public function masodik()\n {\n }", "private function _i() {\n }", "public function nadar()\n {\n }", "abstract public function getDataDesc();", "function __toString () {\n \n \n \n }", "abstract protected function data();", "public function getBrodcastData() { \n die('Amit');\n }", "abstract public function getPasiekimai();", "final private function __construct(){\r\r\n\t}", "public function inOriginal();", "final private function __construct() { }", "final private function __construct() { }", "final private function __construct() { }", "final private function __construct() {}", "final private function __construct() {}", "function extract()\n {\n }", "public function elso()\n {\n }", "final function velcom(){\n }", "private function __construct() {\n \n }", "private function __construct() {\n \n }", "private function __construct() {\n \n }", "public function tampilDataGalang(){\n\t\t\n\t}", "function factures_autoriser(){}", "public function ogs()\r\n {\r\n }", "public function values()\n {\n }", "public function data();", "public function data();", "public function getD() {}", "abstract protected function _generateDataCollection();", "public function liberar() {}", "private function __construct () {}", "public function objectIdentifierExposureTestData() {}", "public function helper()\n\t{\n\t\n\t}", "protected function __init__() { }", "public function obtener()\n {\n }", "private final function __construct() {}", "protected final function __construct() {}", "private function __() {\n }", "public function extract()\n {\n }", "abstract public function information();", "public function getHival() {}", "public function get_data()\n {\n }", "public function get_data()\n {\n }", "public function get_data()\n {\n }", "public function get_data()\n {\n }", "public function getAlternate() {}", "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() {}" ]
[ "0.5293824", "0.52031916", "0.51663697", "0.51448315", "0.5126044", "0.51154715", "0.5111417", "0.50785685", "0.50399804", "0.5032388", "0.50225663", "0.5012455", "0.50086147", "0.49981764", "0.49779522", "0.49779522", "0.49779522", "0.49588194", "0.49588194", "0.49517316", "0.4932202", "0.4924664", "0.49001077", "0.49001077", "0.49001077", "0.4898742", "0.48776138", "0.487377", "0.48529908", "0.48513508", "0.48513508", "0.48461398", "0.48356658", "0.48281863", "0.48240817", "0.48217136", "0.481552", "0.48093343", "0.48092404", "0.47885132", "0.47852007", "0.47796637", "0.477541", "0.47682375", "0.47645068", "0.4763722", "0.47636667", "0.47636667", "0.47636667", "0.4763389", "0.4748899", "0.47475067", "0.47475067", "0.47475067", "0.47475067", "0.47475067", "0.47475067", "0.47475067", "0.47475067", "0.47475067", "0.47475067", "0.47475067", "0.47475067", "0.47475067", "0.47475067", "0.47475067", "0.47475067", "0.47475067", "0.47475067", "0.47475067", "0.47475067", "0.47475067", "0.47475067", "0.47475067", "0.47475067", "0.47475067", "0.47475067", "0.47475067", "0.47475067", "0.47475067", "0.47475067", "0.47475067", "0.47475067", "0.47475067", "0.47475067", "0.47475067", "0.47475067", "0.47475067", "0.47475067", "0.47475067", "0.47475067", "0.47475067", "0.47475067", "0.47475067", "0.47475067", "0.47475067", "0.47475067", "0.47475067", "0.47475067", "0.47475067", "0.47475067" ]
0.0
-1
Several functions were moved from cancel_computer.php3 as they were only ever used in this file and I didn't want to have to copy it to the newly created cancel_multi_computer.php
function SendConfirmation($computer, $cancel_data) // Send a confirmation message to customers // who have been suspended, UNLESS suspention // is due to AUP violation or non-payment. { // I would have passed these as parameters, // but it looks like the other functions // in this file use a lot of global data too. GLOBAL $db; $is_AUP = $db->GetVal(" select 1 from offline_reasons where reason_number = $cancel_data[reason_number] and category_group in ( 500, 2900) limit 1 "); $is_NonPay = $db->GetVal(" select 1 from offline_reasons where reason_number = $cancel_data[reason_number] and category_group in ( 400, 3000 ) limit 1 "); // Set up Mail Message $parser = new core_parser; $mailer = new core_mailer; $mailer->SetAccountNumber( $computer->customer_number ); $mailer->AddAccountAddress(ONYX_ACCOUNT_ROLE_PRIMARY); $mailer->SetAccountFrom(ACCOUNT_ROLE_ACCOUNT_EXECUTIVE); $target_date = $cancel_data["sec_due_offline"]; $target_date = date("D F j, Y", $target_date); $parser->AddVar('target_date', $target_date); $parser->SetAccount($computer->account); $parser->SetComputer($computer); if( $is_NonPay ) { // this call actually set variables inside th parser //hence it needs to come before access to "subject" $mailer->Body = $parser->ParseTextMessage( 27 ); $mailer->Subject = $parser->subject; // "Device Cancellation: Failure to Pay"; // pseudo: SUBJECT: "Device Cancellation: Failure to Pay" // pseudo:+ FROM: AE // pseudo:+ TO: Primary Contact // pseudo:+ BODY: Prefab(27) // pseudo:+ is NonPay // pseudo:+ Send a confirmation message to customers who have been suspended, unless nonpay $mailer->Send(); } elseif ( $is_AUP ) { // Do Nothing } else { // Normal Cancellation error_log("**normal cancellation\n"); $mailer->Body = $parser->ParseTextMessage( 12 ); $mailer->Subject = $parser->subject; // "Device Cancellation Confirmation"; // pseudo: SUBJECT: "Device Cancellation Confirmation" // pseudo:+ FROM: AE // pseudo:+ TO: Primary Contact // pseudo:+ BODY: Prefab(12) // pseudo:+ is AUP // pseudo:+ Send a confirmation message to customers who have been suspended, unless AUP $mailer->Send(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function cancel();", "public function cancel(): void;", "protected function _cancelOperation() {}", "public function cancel(): int;", "public function cancel()\n {\n }", "public function cancel()\n {\n }", "protected function cancel(): void\n {\n }", "function ajax_cancelNow()\n{\n $cc = new CapabilityCheck('cancelNow', $_POST);\n if (!$cc->checkCapability()) {\n return;\n }\n\n check_ajax_referer('CPWP');\n\n $_POST['json'] = 1;\n $cpjm = new CPJobManager('cancelNow', $_POST);\n $cpjm->RunJob();\n\n}", "public function cancelRequests()\n {\n $this->prepareCancel();\n\n $url = $this->urlbase.$this->urlbranch;\n\n $query = $this->genQuery();\n\n $path = $this->options['Action'].'Result';\n\n if ($this->mockMode) {\n $xml = $this->fetchMockFile()->$path;\n } else {\n $response = $this->sendRequest($url, ['Post' => $query]);\n\n if (! $this->checkResponse($response)) {\n return false;\n }\n\n $xml = simplexml_load_string($response['body'])->$path;\n }\n\n $this->parseXML($xml);\n }", "function cancelar()\r\n\t{\r\n\t\t$this->_log->debug( $this->get_txt() . \"[ cancelar ]\", 'toba');\r\n\t\t$this->limpiar_memoria();\r\n\t}", "function MakeCancelMsg() \n\t{\n\t\t$this->log->WriteLog( INFO, \"Make Cancel Msg Start\" );\n\t\tif( strcmp( $this->REQUEST[\"AuthTy\"], \"card\" ) == 0 )\n\t\t{\n\t\t\tif( strcmp( $this->REQUEST[\"SubTy\"], \"isp\" ) == 0 )\n\t\t\t{\n\t\t\t\t\n\t\t\t\t/****************************************************************************\n\t\t\t\t*\n\t\t\t\t* [1-1] 신용카드승인취소 - ISP\n\t\t\t\t*\n\t\t\t\t* -- 이부분은 취소 승인 처리를 위해 PG서버Process와 Socket통신하는 부분이다.\n\t\t\t\t* 가장 핵심이 되는 부분이므로 수정후에는 실제 서비스전까지 적절한 테스트를 하여야 한다.\n\t\t\t\t* -- 데이터 길이는 매뉴얼 참고\n\t\t\t\t*\t \n\t\t\t\t* -- 취소 승인 요청 전문 포멧\n\t\t\t\t* + 데이터길이(6) + 암호화여부(1) + 데이터\n\t\t\t\t* + 데이터 포멧(데이터 구분은 \"|\"로 한다.\n\t\t\t\t* 결제종류(6)\t| 업체아이디(20) \t| 승인번호(20) \t| 승인시간(8)\t| 거래고유번호(6) |\n\t\t\t\t*\n\t\t\t\t* -- 취소 승인 응답 전문 포멧\n\t\t\t\t* + 데이터길이(6) + 데이터\n\t\t\t\t* + 데이터 포멧(데이터 구분은 \"|\"로 한다.\n\t\t\t\t* 업체ID(20)\t| 승인번호(20)\t| 승인시각(8)\t| 전문코드(4)\t| 거래고유번호(6)\t| 성공여부(1)\t|\n\t\t\t\t*\t\t \n\t\t\t\t****************************************************************************/\n\t\t\t\t\n\t\t\t\t$this->ENCTYPE = 2;\n\t\t\t\t\n\t\t\t\t/****************************************************************************\n\t\t\t\t* \n\t\t\t\t* 전송 전문 Make\n\t\t\t\t* \n\t\t\t\t****************************************************************************/\n\t\t\t\t\t\t\n\t\t\t\t$this->sDataMsg = $this->ENCTYPE.\n\t\t\t\t\"cancel\".\"|\".\n\t\t\t\t$this->GetResult(\"StoreId\").\"|\".\n\t\t\t\t$this->GetResult(\"rApprNo\").\"|\".\n\t\t\t\tsubstr($this->GetResult(\"rApprTm\"),0,8).\"|\".\n\t\t\t\t$this->GetResult(\"rDealNo\").\"|\".\n\t\t\t\t$this->GetResult(\"NetCancID\").\"|\";\n \n\t\t\t\t$this->sSendMsg = sprintf( \"%06d%s\", strlen( $this->sDataMsg ), $this->sDataMsg );\n\t\t\t\t$this->log->WriteLog( INFO, $this->REQUEST[\"AuthTy\"].\"-\".$this->REQUEST[\"SubTy\"].\" \".\"Make Cancel MSG OK \" );\n\t\t\t}\n\t\t\telse if( ( strcmp( $this->REQUEST[\"SubTy\"], \"visa3d\" ) == 0 ) || ( strcmp( $this->REQUEST[\"SubTy\"], \"normal\" ) == 0 ) )\n\t\t\t{\n\t\t\t\t/****************************************************************************\n\t\t\t\t*\n\t\t\t\t* [1-2] 신용카드승인취소 - VISA3D, 일반\n\t\t\t\t*\n\t\t\t\t* -- 이부분은 취소 승인 처리를 위해 암호화Process와 Socket통신하는 부분이다.\n\t\t\t\t* 가장 핵심이 되는 부분이므로 수정후에는 실제 서비스전까지 적절한 테스트를 하여야 한다.\n\t\t\t\t*\n\t\t\t\t* -- 취소 승인 요청 전문 포멧\n\t\t\t\t* + 데이터길이(6) + 암호화여부(1) + 데이터\n\t\t\t\t* + 데이터 포멧(데이터 구분은 \"|\"로 하며 카드번호,유효기간,비밀번호,주민번호는 암호화된다.)\n\t\t\t\t* 결제종류(6)\t| 업체아이디(20) \t| 승인번호(8) \t| 승인시간(14) \t| 카드번호(16) \t|\n\t\t\t\t*\n\t\t\t\t* -- 취소 승인 응답 전문 포멧\n\t\t\t\t* + 데이터길이(6) + 데이터\n\t\t\t\t* + 데이터 포멧(데이터 구분은 \"|\"로 하며 암호화Process에서 해독된후 실데이터를 수신하게 된다.\n\t\t\t\t* 업체ID(20)\t| 승인번호(8)\t| 승인시각(14)\t| 전문코드(4)\t| 성공여부(1)\t|\n\t\t\t\t* 주문번호(20)\t| 할부개월(2)\t| 결제금액(20)\t| 카드사명(20)\t| 카드사코드(4) \t|\n\t\t\t\t* 가맹점번호(15)\t| 매입사코드(4)\t| 매입사명(20)\t| 전표번호(6)\n\t\t\t\t*\t\t \n\t\t\t\t****************************************************************************/\n\t\t\t\t\n\t\t\t\t$this->ENCTYPE = 0;\n\t\t\t\t\n\t\t\t\t/****************************************************************************\n\t\t\t\t* \n\t\t\t\t* 전송 전문 Make\n\t\t\t\t* \n\t\t\t\t****************************************************************************/\n\n\t\t\t\t$this->sDataMsg = $this->ENCTYPE.\n\t\t\t\t\"cancel\".\"|\".\n\t\t\t\t$this->GetResult(\"StoreId\").\"|\".\n\t\t\t\t$this->GetResult(\"rApprNo\").\"|\".\n\t\t\t\tsubstr($this->GetResult(\"rApprTm\"),0,8).\"|\".\n\t\t\t\t$this->GetResult(\"rDealNo\").\"|\".\n\t\t\t\t$this->GetResult(\"NetCancID\").\"|\";\n\n\t\t\t\t$this->sSendMsg = sprintf( \"%06d%s\", strlen( $this->sDataMsg ), $this->sDataMsg );\n\t\t\t\t$this->log->WriteLog( INFO, $this->REQUEST[\"AuthTy\"].\"-\".$this->REQUEST[\"SubTy\"].\" \".\"Make Cancel MSG OK \" );\n\t\t\t}\n\t\t}else if( strcmp( $this->REQUEST[\"AuthTy\"], \"iche\" ) == 0 && strcmp( $this->REQUEST[\"ICHE_SOCKETYN\"], \"Y\" ) == 0){\n\t\t\t\n\t\t\t\t/****************************************************************************\n\t\t\t\t* \n\t\t\t\t* [2-1] 인터넷뱅킹 계좌이체(소켓) 취소처리\n\t\t\t\t* \n\t\t\t\t* -- 이부분은 인터넷뱅킹 결제 취소처리를 위해 암호화Process와 Socket통신하는 부분이다.\n\t\t\t\t* 가장 핵심이 되는 부분이므로 수정후에는 실제 서비스전까지 적절한 테스트를 하여야 한다.\n\t\t\t\t* -- 데이터 길이는 매뉴얼 참고\n\t\t\t\t* \n\t\t\t\t* -- 인터넷뱅킹 결제 요청 전문 포멧\n\t\t\t\t* + 데이터길이(6) + 암호화여부(1) + 데이터\n\t\t\t\t* + 데이터 포멧(데이터 구분은 \"|\"로 한다.)\n\t\t\t\t* 결제종류(10)\t\t| 업체ID(20)\t\t| MTID(계좌이체결제 결과값)\t\t| 결제금액(8)\t\t| 은행코드(2)\n\t\t\t\t* \n\t\t\t\t****************************************************************************/\n\n\t\t\t\t$this->ENCTYPE = R;\n\t\t\t\t\n\t\t\t\t/****************************************************************************\n\t\t\t\t* \n\t\t\t\t* 전송 전문 Make\n\t\t\t\t* \n\t\t\t\t****************************************************************************/\n\n\t\t\t\t$this->sDataMsg = $this->ENCTYPE.\n\t\t\t\t\t\"RB-CanReq\".\"|\".\n\t\t\t\t\t$this->GetResult(\"StoreId\").\"|\".\n\t\t\t\t\t$this->GetResult(\"ICHE_POSMTID\").\"|\".\n\t\t\t\t\t$this->GetResult(\"Amt\").\"|\".\n\t\t\t\t\t$this->GetResult(\"ICHE_OUTBANKNAME\").\"|\".\n\t\t\t\t\t$this->GetResult(\"NetCancID\").\"|\";\n\t\t\t\t\t\n\t\t\t\t$this->sSendMsg = sprintf( \"%06d%s\", strlen( $this->sDataMsg ), $this->sDataMsg );\n\t\t\t\t$this->log->WriteLog( INFO, $this->REQUEST[\"AuthTy\"].\" \".\"Make Cancel MSG OK \" );\n\t\t\n\t\t}else if( strcmp( $this->REQUEST[\"AuthTy\"], \"iche\" ) == 0 && strcmp( $this->REQUEST[\"ICHEARS_SOCKETYN\"], \"Y\" ) == 0){\n\t\t\t\t\n\t\t\t\t/****************************************************************************\n\t\t\t\t* \n\t\t\t\t* [2-1] 텔레뱅킹 계좌이체(소켓) 취소처리\n\t\t\t\t* \n\t\t\t\t* -- 이부분은 텔레뱅킹 결제 취소처리를 위해 암호화Process와 Socket통신하는 부분이다.\n\t\t\t\t* 가장 핵심이 되는 부분이므로 수정후에는 실제 서비스전까지 적절한 테스트를 하여야 한다.\n\t\t\t\t* -- 데이터 길이는 매뉴얼 참고\n\t\t\t\t* \n\t\t\t\t* -- 텔레뱅킹 결제 요청 전문 포멧\n\t\t\t\t* + 데이터길이(6) + 암호화여부(1) + 데이터\n\t\t\t\t* + 데이터 포멧(데이터 구분은 \"|\"로 한다.)\n\t\t\t\t* 결제종류(10)\t\t| 업체ID(20)\t\t| MTID(계좌이체결제 결과값)\t\t| 결제금액(8)\t\t| 은행코드(2)\n\t\t\t\t* \n\t\t\t\t****************************************************************************/\n\n\t\t\t\t$this->ENCTYPE = B;\n\t\t\t\t\n\t\t\t\t/****************************************************************************\n\t\t\t\t* \n\t\t\t\t* 전송 전문 Make\n\t\t\t\t* \n\t\t\t\t****************************************************************************/\n\n\t\t\t\t$this->sDataMsg = $this->ENCTYPE.\n\t\t\t\t\t\"TB-CanReq\".\"|\".\n\t\t\t\t\t$this->GetResult(\"StoreId\").\"|\".\n\t\t\t\t\t\"\".\"|\".\n\t\t\t\t\t\"\".\"|\".\n\t\t\t\t\t$this->GetResult(\"NetCancID\").\"|\";\n\t\t\t\t\t\n\t\t\t\t$this->sSendMsg = sprintf( \"%06d%s\", strlen( $this->sDataMsg ), $this->sDataMsg );\n\t\t\t\t$this->log->WriteLog( INFO, $this->REQUEST[\"AuthTy\"].\" \".\"Make Cancel MSG OK \" );\n\t\t\n\t\t}else if( strcmp( $this->REQUEST[\"AuthTy\"], \"hp\" ) == 0 ){\n\t\t\t\t\n\t\t\t\t/****************************************************************************\n\t\t\t\t* \n\t\t\t\t* [3] 핸드폰 취소처리\n\t\t\t\t* \n\t\t\t\t* -- 이부분은 핸드폰 결제 취소처리를 위해 암호화Process와 Socket통신하는 부분이다.\n\t\t\t\t* 가장 핵심이 되는 부분이므로 수정후에는 실제 서비스전까지 적절한 테스트를 하여야 한다.\n\t\t\t\t* -- 데이터 길이는 매뉴얼 참고\n\t\t\t\t* \n\t\t\t\t* -- 핸드폰 결제 요청 전문 포멧\n\t\t\t\t* + 데이터길이(6) + 암호화여부(1) + 데이터\n\t\t\t\t* + 데이터 포멧(데이터 구분은 \"|\"로 한다.)\n\t\t\t\t* 결제종류(10)\t\t| 업체ID(20)\t| NetCancID\t\t|\n\t\t\t\t* \n\t\t\t\t****************************************************************************/\n\n\t\t\t\t$this->ENCTYPE = H;\n\t\t\t\t\n\t\t\t\t/****************************************************************************\n\t\t\t\t* \n\t\t\t\t* 전송 전문 Make\n\t\t\t\t* \n\t\t\t\t****************************************************************************/\n\t\t\t\t$this->sDataMsg = $this->ENCTYPE.\n\t\t\t\t\t\"MobileCanReq\".\"|\".\n\t\t\t\t\t$this->GetResult(\"StoreId\").\"|\".\n\t\t\t\t\t$this->GetResult(\"NetCancID\").\"|\";\n\t\t\t\t\t\n\t\t\t\t$this->sSendMsg = sprintf( \"%06d%s\", strlen( $this->sDataMsg ), $this->sDataMsg );\n\t\t\t\t$this->log->WriteLog( INFO, $this->REQUEST[\"AuthTy\"].\" \".\"Make Cancel MSG OK \" );\n\t\t\n\t\t}else if( strcmp( $this->REQUEST[\"AuthTy\"], \"ars\" ) == 0 ){\n\t\t\t\t\n\t\t\t\t/****************************************************************************\n\t\t\t\t* \n\t\t\t\t* [4] ARS 취소처리\n\t\t\t\t* \n\t\t\t\t* -- 이부분은 ARS 결제 취소처리를 위해 암호화Process와 Socket통신하는 부분이다.\n\t\t\t\t* 가장 핵심이 되는 부분이므로 수정후에는 실제 서비스전까지 적절한 테스트를 하여야 한다.\n\t\t\t\t* -- 데이터 길이는 매뉴얼 참고\n\t\t\t\t* \n\t\t\t\t* -- ARS 결제 요청 전문 포멧\n\t\t\t\t* + 데이터길이(6) + 암호화여부(1) + 데이터\n\t\t\t\t* + 데이터 포멧(데이터 구분은 \"|\"로 한다.)\n\t\t\t\t* 결제종류(10)\t\t| 업체ID(20)\t| NetCancID\t\t|\n\t\t\t\t* \n\t\t\t\t****************************************************************************/\n\n\t\t\t\t$this->ENCTYPE = A;\n\t\t\t\t\n\t\t\t\t/****************************************************************************\n\t\t\t\t* \n\t\t\t\t* 전송 전문 Make\n\t\t\t\t* \n\t\t\t\t****************************************************************************/\n\t\t\t\t$this->sDataMsg = $this->ENCTYPE.\n\t\t\t\t\t\"ARSCanReq\".\"|\".\n\t\t\t\t\t$this->GetResult(\"StoreId\").\"|\".\n\t\t\t\t\t$this->GetResult(\"NetCancID\").\"|\";\n\t\t\t\t\t\n\t\t\t\t$this->sSendMsg = sprintf( \"%06d%s\", strlen( $this->sDataMsg ), $this->sDataMsg );\n\t\t\t\t$this->log->WriteLog( INFO, $this->REQUEST[\"AuthTy\"].\" \".\"Make Cancel MSG OK \" );\n\t\t\n\t\t}else{\n\t\t\t//신용카드,계좌이체 이외의 결제수단은 취소기능 적용되지 않음.\n\t\t\t$this->log->WriteLog( WARN, \"Cancel Passed. AuthTy : [\".$this->REQUEST[\"AuthTy\"].\"-\".$this->REQUEST[\"SubTy\"].\"] \" );\n\t\t\t$this->RESULT[\"rCancelSuccYn\"] = \"n\";\n\t\t\t$this->RESULT[\"rCancelResMsg\"] = \"Cannot Cancel AuthTy[\".$this->REQUEST[\"AuthTy\"].\"]\";\t\t\t\t\t\n\t\t\treturn false;\n\t\t}\n\t\t$this->log->WriteLog( INFO, \"Make Cancel Msg End\" );\n\t\treturn true;\n\t}", "public function cancel_traveler_booking($tourwise_id, $traveler_id_arr, $first_names_arr)\n{\n begin_t();\n for($i=0; $i<sizeof($traveler_id_arr); $i++)\n {\n $sq_cancel = mysql_query(\"update travelers_details set status='Cancel' where traveler_id='$traveler_id_arr[$i]'\");\n if(!$sq_cancel)\n {\n $GLOBALS['flag'] = false;\n echo \"error--Sorry, some members are not canceled.\";\n //exit;\n } \n } \n\n\n if($GLOBALS['flag']){\n commit_t();\n //Cancelation mail send\n $this->traveler_cancelation_mail_send($tourwise_id, $traveler_id_arr);\n\n //Cancelation sms send\n $this->traveler_cancelation_sms_send($tourwise_id);\n\n echo \"Group Booking Cancellation is successfully done.\";\n exit;\n }\n else{\n rollback_t();\n exit;\n }\n\n \n}", "function cancelUser( $option ) {\r\n\tmosRedirect( 'index2.php?ca='. $option .'&task=view' );\r\n}", "public function actionCancel()\n {\n }", "function PKG_discardJobs($client)\n{\n\tCHECK_FW(CC_clientname, $client);\n\t$sql=\"DELETE FROM clientjobs WHERE client='$client' AND status='wait4acc';\";\n\tDB_query($sql); //FW ok\n}", "protected function cancelEdit()\n {\n if ($this->backup == NULL && $this->current) {\n $this->plugins[$this->current] = new $this->current($this->dn, $this);\n $this->plugins[$this->current]->set_acl_base($this->acl_base);\n $this->plugins[$this->current]->set_acl_category(preg_replace(\"/\\/$/\", \"\", $this->acl_category));\n\n } elseif (is_array($this->backup)) {\n foreach ($this->backup as $name => $value) {\n $this->plugins[$this->current]->$name = $value;\n }\n }\n $this->backup = NULL;\n $this->current = \"\";\n $this->closeDialogs();\n }", "function PKG_discardJob($client, $package)\n{\n\tCHECK_FW(CC_clientname, $client, CC_package, $package);\n\t$sql=\"DELETE FROM clientjobs WHERE client='$client' AND status='wait4acc' AND package='$package';\";\n\tDB_query($sql); //FW ok\n}", "function cancel() {\n\n\n echo \"<br/><p><b>The order was canceled!</b></p><br />\";\n foreach ($_POST as $key => $value) {\n echo \"$key: $value<br>\";\n }\n }", "function PKG_discardNormalJob($client,$packageName)\n{\n\tCHECK_FW(CC_clientname, $client, CC_package, $packageName);\n\t$sql = \"DELETE FROM `clientjobs` WHERE client='$client' AND status='wait4acc' AND package='m23normal' AND normalPackage='$packageName';\";\n\n\tDB_query($sql); //FW ok\n}", "function cancel(){\n\t\t//echo \"In Cancel\";\n\t\t\n\t\t//echo 'Das aktuelle Datum und die aktuelle Zeit ist: ';\n\t\t//echo JFactory::getDate('now', JFactory::getApplication()->getCfg('offset'))->toFormat() . \"\\n<br/><br/>\";\n\t\t\n\t\t//$date = JFactory::getDate();\n\t\t//$date->setOffset(JFactory::getApplication()->getCfg('offset'));\n\t \n\t \t//echo \"Offset: \" . JFactory::getApplication()->getCfg('offset');\n\t\t//echo 'Das aktuelle Datum und die aktuelle Zeit ist: ' . $date->toFormat() . \"\\n\";\n\t\t$date =& JFactory::getDate($time= 'now', $tzOffset=0);\n\n\t\t//$date->setOffset($mainframe->getCfg('offset'));\n\t\t//echo 'Das aktuelle Datum und die aktuelle Zeit ist: ' . $date->toFormat();\n\t\t\n\t\t//echo \"New date: \" . date('Y-m-d H:i:s');\n\n\t\t//return false;\n\t\t\n\t\t$insData =new stdClass();\n\t\t$insData->idt_drivin_event_apply = $_POST['appCanId'];\n\n\t\t//$date = new DateTime();\n\t\t$insData->dt_cancel = date('Y-m-d H:i:s'); //'CURRENT_TIMESTAMP';//$date->getTimestamp();\n\t\t\n\t\t$db = JFactory::getDBO();\n\t\tif(!$db->updateObject( '#__jevent_events_apply', $insData, 'idt_drivin_event_apply' )){\n\t\t\techo $database->stderr();\n\t\t\treturn false;\n\t\t}\n\t\treturn true;//resendCancelEmailById($insData->idt_drivin_event_apply);\n\t}", "function updateCancelInMain($village)\n{\n\tglobal $db;\n\tif(!empty($_GET['cancel']) && is_numeric($_GET['cancel']))\n\t{\n\t\t$sql=\"DELETE FROM wg_status WHERE id=\".$_GET['cancel'].\" AND village_id=$village AND type=17 AND status=0\";\n\t\t$db->setQuery($sql);\n\t\t$db->query();\n\t\tif($db->getAffectedRows()==0)\n\t\t{\n\t\t\tglobalError2('function updateCancelInMain:'.$sql);\n\t\t}\n\t\theader(\"Location:build.php?id=\".$_GET['id'].\"\");\n\t\texit();\n\t}\n\treturn NULL;\n}", "function deactivate_ipc(){\n\t\t\n\t\t}", "public function cancel() {\n # cleanup code before cancellng job\n $ret = array('message'=>'You cancelled this job at '.date('H:i:s'));\n return $ret;\n }", "function PKG_discardRemoveJob($client,$packageName)\n{\n\tCHECK_FW(CC_clientname, $client, CC_package, $packageName);\n\n\t$sql = \"DELETE FROM `clientjobs` WHERE client='$client' AND status='wait4acc' AND package='m23normalRemove' AND normalPackage='$packageName';\";\n\n\tDB_query($sql); //FW ok\n}", "function PKG_rmSelectedPackages($amount,$client)\n{\n$count=0;\nfor ($i=0; $i < $amount; $i++)\n\t{\n\t\t$var=\"CB_rmNormalpkg\".$i;\n\t\tif (!empty($_POST[$var]))\n\t\t\t{\n\t\t\t\tPKG_discardNormalJob($client,$_POST[$var]);\n\t\t\t\t$count++;\n\t\t\t}\n\t\telse\n\t\t\t{\n\t\t\t\t$var=\"CB_rmpkg\".$i;\n\t\t\t\tif (!empty($_POST[$var]))\n\t\t\t\t\t{\n\t\t\t\t\t\tPKG_discardJob($client, $_POST[$var]);\n\t\t\t\t\t\t$count++;\n\t\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\t$var=\"CB_rmNormalRemovepkg\".$i;\n\t\t\t\t\t\tif (!empty($_POST[$var]))\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tPKG_discardRemoveJob($client,$_POST[$var]);\n\t\t\t\t\t\t\t\t$count++;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t}\n\t}\nreturn($counter);\n}", "public function delete_computer(){\r\n\t\t$result = $this->c->delete_computer();\r\n\t\t$msg['success'] = false;\r\n\t\tif($result){\r\n\t\t\t$msg['success'] = true;\r\n\t\t}\r\n\t\techo json_encode($msg);\r\n\t}", "function ajax_serverActions()\n{\n\n $cc = new CapabilityCheck('serverActions', $_POST);\n if (!$cc->checkCapability()) {\n return;\n }\n\n check_ajax_referer('CPWP');\n\n $cpjm = new CPJobManager('serverActions', $_POST);\n $cpjm->RunJob();\n\n}", "public function cancel_request() {\n\n $pending_request_exists = $this->micro_relation_exists($this->from, $this->to, \"P\");\n\n if($pending_request_exists) {\n $this->delete_relation(\"P\");\n }\n }", "protected function prepareCancel()\n {\n include $this->env;\n $this->options['Action'] = 'CancelReportRequests';\n if (isset($THROTTLE_LIMIT_REPORTREQUESTLIST)) {\n $this->throttleLimit = $THROTTLE_LIMIT_REPORTREQUESTLIST;\n }\n if (isset($THROTTLE_TIME_REPORTREQUESTLIST)) {\n $this->throttleTime = $THROTTLE_TIME_REPORTREQUESTLIST;\n }\n $this->throttleGroup = 'CancelReportRequests';\n unset($this->options['MaxCount']);\n unset($this->options['NextToken']);\n }", "public function cancelClassByStudent_post()\n {\n /* code goes here */\n }", "public function cancelAction()\n\t{\n\t\t$this->processToken = null;\n\t\t$this->isNewProcess = true;\n\n\t\t$this->dropTempFile();\n\n\t\t$this->instanceBucket();\n\n\t\tif ($this->bucket instanceof \\CCloudStorageBucket)\n\t\t{\n\t\t\tif ($this->bucket->FileExists($this->uploadPath))\n\t\t\t{\n\t\t\t\tif (!$this->bucket->DeleteFile($this->uploadPath))\n\t\t\t\t{\n\t\t\t\t\t$this->addError(new Error('Cloud drop error.'));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t$this->clearProgressParameters();\n\n\t\t$result = $this->preformAnswer(self::ACTION_CANCEL);\n\n\t\t$result['STATUS'] = self::STATUS_COMPLETED;\n\n\t\treturn $result;\n\t}", "function PKG_acceptJobs($client,$showMsg)\n{\n\tCHECK_FW(CC_clientname, $client);\n\tinclude(\"/m23/inc/i18n/\".$GLOBALS[\"m23_language\"].\"/m23base.php\");\n\n\tif ($showMsg)\n\t\tMSG_showInfo(PKG_countSelectedpackages($client).\" $I18N_additional_jobs_from_package_selection_were_added\");\n\n\t//Combine all waiting for accept normal installation jobs to one job\n\t$packagesA = array();\n\t$res = DB_query(\"SELECT * FROM clientjobs WHERE client='$client' AND package='m23normal' AND status='wait4acc';\"); //FW ok\n\t\n\tif (mysql_num_rows($res) > 0)\n\t{\n\t\t//Get all waiting for accept normal installation jobs\n\t\twhile( $data = mysql_fetch_array($res))\n\t\t\t$packagesA[$data['priority']].=$data['normalPackage'].\" \";\n\t\n\t\tforeach ($packagesA as $priority => $packages)\n\t\t\t//Create a new normal installation job with all packages\n\t\t\tPKG_addNormalJob($client, $packages, $priority);\n\t\n\t\t//Delete all waiting for accept normal installation jobs\n\t\tDB_query(\"DELETE FROM clientjobs WHERE client='$client' AND package='m23normal' AND status='wait4acc';\");\n\t}\n\n\n\n\t//Combine all waiting for accept normal deinstallation jobs to one job\n\t$packagesA = array();\n\t$res = DB_query(\"SELECT * FROM clientjobs WHERE client='$client' AND package='m23normalRemove' AND status='wait4acc';\"); //FW ok\n\n\tif (mysql_num_rows($res) > 0)\n\t{\n\t\t//Get all waiting for accept normal deinstallation jobs\n\t\twhile( $data = mysql_fetch_array($res))\n\t\t\t$packagesA[$data['priority']].=$data['normalPackage'].\" \";\n\t\n\t\tforeach ($packagesA as $priority => $packages)\n\t\t\t//Create a new normal deinstallation job with all packages\n\t\t\tPKG_rmNormalJob($client, $packages, $priority);\n\t\n\t\t//Delete all waiting for accept normal deinstallation jobs\n\t\tDB_query(\"DELETE FROM clientjobs WHERE client='$client' AND package='m23normalRemove' AND status='wait4acc';\");\n\t}\n\n\n\n\t//Add all other jobs\n\t$sql = \"UPDATE clientjobs SET status='waiting' WHERE client='$client' AND status='wait4acc';\";\n\tDB_query($sql); //FW ok\n}", "public function cancel_booking_payment()\n\t{\n\t\tif ($this->checkLogin('A') == ''){\n\t\t\tredirect('admin');\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$this->data['heading'] = 'Rental Cancellation Payments';\n\t\t\t$condition = array('cancelled','Yes');\n\t\t\t$CustomerDetails = $this->product_model->get_all_cancelled_users();\n\t\t\t\n\t\t\t\n\t\t\tforeach($CustomerDetails->result() as $customer)\n\t\t\t{\n $booking_no = $customer->Bookingno;\n\t\t\t\t$cancel[] = $this->product_model->get_all_commission_tracking_user($booking_no);\n\t\t\t\t//$this->data['paypalData'][$HostEmail] = $customer->paypal_email;\t\t\t\t\t\t\t\n\t\t\t}\n\t\t\t$this->data['trackingDetails'] = $cancel;\n\t\t\t// echo \"<pre>\";\n\t\t\t// print_r($this->data['trackingDetails']); exit;\n\t\t\t$this->load->view('admin/dispute/display_cancel_payment_lists',$this->data);\n\t\t}\n\t}", "function cancelFriendRequest($params) {\n $username1 = $params['username1'];\n $username2 = $params['username2'];\n\n $response = rejectFriendRequest($username1, $username2);\n\n if ($response['status'] == 'SUCCESS') {\n echo json_encode($response['response']);\n } else {\n errorHandler($response['status'], $response['code']);\n }\n }", "function cancel() {\n\n\t\tif (KRequest::getVar('return')) {\n\t\t\t$url = KLink::base64UrlDecode(KRequest::getVar('return'));\n\t\t}\n\t\telse {\n\t\t\t$controllerName = KenedoController::getControllerNameFromClass(get_class($this));\n\t\t\t$url = KLink::getRoute('index.php?option='.$this->component.'&controller='.$controllerName, false);\n\t\t}\n\n\t\t$this->setRedirect($url);\n\n\t}", "public function dockCancel(){\n\t\treturn $this->_sendPacketToController(self::DOCK_CANCEL);\n\t}", "function _cancel($info)\n\t{\n\t // Gan trang thai xac thuc\n\t $data = array();\n\t $data['status'] = mod('order')->status('canceled');\n\t\n\t // Cap nhat du lieu vao data\n\t model('user_bank')->update($info->id, $data);\n\t // Gui thong bao\n\t set_message(lang('notice_update_success'));\n\t return TRUE;\n\t}", "function cancel_experiment($expId)\n{\n global $airavataclient;\n\n try\n {\n $airavataclient->terminateExperiment($expId);\n\n print_success_message(\"Experiment canceled!\");\n }\n catch (InvalidRequestException $ire)\n {\n print_error_message('<p>There was a problem canceling the experiment.\n Please try again later or submit a bug report using the link in the Help menu.</p>' .\n '<p>InvalidRequestException: ' . $ire->getMessage() . '</p>');\n }\n catch (ExperimentNotFoundException $enf)\n {\n print_error_message('<p>There was a problem canceling the experiment.\n Please try again later or submit a bug report using the link in the Help menu.</p>' .\n '<p>ExperimentNotFoundException: ' . $enf->getMessage() . '</p>');\n }\n catch (AiravataClientException $ace)\n {\n print_error_message('<p>There was a problem canceling the experiment.\n Please try again later or submit a bug report using the link in the Help menu.</p>' .\n '<p>AiravataClientException: ' . $ace->getMessage() . '</p>');\n }\n catch (AiravataSystemException $ase)\n {\n print_error_message('<p>There was a problem canceling the experiment.\n Please try again later or submit a bug report using the link in the Help menu.</p>' .\n '<p>AiravataSystemException: ' . $ase->getMessage() . '</p>');\n }\n catch (TTransportException $tte)\n {\n print_error_message('<p>There was a problem canceling the experiment.\n Please try again later or submit a bug report using the link in the Help menu.</p>' .\n '<p>TTransportException: ' . $tte->getMessage() . '</p>');\n }\n catch (Exception $e)\n {\n print_error_message('<p>There was a problem canceling the experiment.\n Please try again later or submit a bug report using the link in the Help menu.</p>' .\n '<p>Exception: ' . $e->getMessage() . '</p>');\n }\n}", "public function handleCancel() {\n // logit('HC: ' . print_r($this->data, true));\n if ($this->data['submit_button'] == 'Cancel') {\n $this->data = array();\n $this->error = array();\n $this->_redirector->gotoUrl($this->mainpage);\n }\n }", "function cancelPending() {\n\t\tself::$_db->saveQry(\"SELECT `ID` FROM `#_reservations` \".\n\t\t\t\t\"WHERE (`status` = 'pending' OR `status` = 'prefered') \".\n\t\t\t\t\"AND ? >= `startTime` \",\n\t\t\t\tCalendar::startCancel());\n\t\t\n\n\t\twhile($res = self::$_db->fetch_assoc())\n\t\t\tReservation::load($res['ID'])->failed();\n\t\t\n\t\t\n\t\t// TagesEnde - BuchungsCancelZeit ist kleiner als Aktueller Zeitblock\n\t\tif(Calendar::calculateTomorrow()) {\n\t\t\t$opening = Calendar::opening(date('Y-m-d', strtotime(\"tomorrow\")));\n\t\t\tself::$_db->saveQry(\"SELECT * FROM `#_reservations` \".\n\t\t\t\t\t\"WHERE (`status` = 'pending' OR `status` = 'prefered') \".\n\t\t\t\t\t\"AND ? <= `startTime` AND `startTime` <= ? \",\n\t\t\t\t\t$opening->format(\"Y-m-d H:i\"), \n\t\t\t\t\tCalendar::startCancel($opening));\n\t\t\t\n\t\t\twhile($res = self::$_db->fetch_assoc())\n\t\t\t\tReservation::load($res['ID'])->failed();\n\t\t}\n\t\t\n\t}", "public function cancel_booking_list()\n\t{\n\t\tif ($this->checkLogin('A') == '')\n\t\t{\n\t\t\tredirect('admin');\n\t\t}\n\t\telse {\n\t\t\t$this->data['time_val'] = date('Y-m-d');\n\t\t\t$this->data['heading'] = 'Rental Cancel booking list';\n\t\t\t$condition = array();\n\t\t\t$this->data['disputecancelbooking'] = $this->review_model->get_all_dispute_cancel_booking();\t\n\t\t\t$this->load->view('admin/dispute/display_cancel_booking',$this->data);\n\t\t}\n\t}", "public function cancelAction()\n\t{\n\t\t$this->_redirect('checkout/onepage/failure');\n\t}", "function tripal_jobs_cancel ($job_id){\n $sql = \"select * from {tripal_jobs} where job_id = %d\";\n $job = db_fetch_object(db_query($sql,$job_id));\n\n // set the end time for this job\n if($job->start_time == 0){\n $record = new stdClass();\n $record->job_id = $job->job_id;\n\t $record->end_time = time();\n\t $record->status = 'Cancelled';\n\t $record->progress = '0';\n\t drupal_write_record('tripal_jobs',$record,'job_id');\n drupal_set_message(\"Job #$job_id cancelled\");\n } else {\n drupal_set_message(\"Job #$job_id cannot be cancelled. It is in progress or has finished.\");\n }\n drupal_goto(\"admin/tripal/tripal_jobs\");\n}", "function eve_api_subtask_cancel(&$form_state) {\n // Clear our ctools cache object. It's good housekeeping.\n eve_api_clear_page_cache('signup');\n}", "function cancel_transaction() {\n $cancel = @$_POST['cancel'];\n if(!empty($_SESSION['quantity_details']) && !empty($_SESSION['seats_selected'])) {\n unset($_SESSION['quantity_details']);\n unset($_SESSION['cart_details']);\n unset($_SESSION['cart']);\n unset($_SESSION['seats_selected']);\n unset($_SESSION['tcount']);\n unset($_SESSION['itotal']);\n unset($_SESSION['total']);\n \n echo \"success\";\n } else if(!empty($_SESSION['cart'])) {\n unset($_SESSION['quantity_details']);\n unset($_SESSION['cart']);\n unset($_SESSION['tcount']);\n unset($_SESSION['itotal']);\n unset($_SESSION['total']);\n\n echo \"success\";\n } else {\n echo \"failure\";\n }\n }", "public function cancelMyReserved($id);", "function okcomputer($allowed) {\n\n $allowed_hosts = array($allowed);\n if (!isset($_SERVER['HTTP_HOST']) || !in_array($_SERVER['HTTP_HOST'], $allowed_hosts)) {\n header($_SERVER['SERVER_PROTOCOL'].' 400 Bad Request');\n exit;\n }\n}", "function cancel()\n\t{\n\t\tif ($_GET[\"obj_id\"] != 0)\n\t\t{\n\t\t\tif ($_GET[\"new_type\"] == \"pg\")\n\t\t\t{\n\t\t\t\t$this->ctrl->redirect($this, \"view\");\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$this->ctrl->redirect($this, \"subchap\");\n\t\t\t}\n\t\t}\n\t}", "public function cancel(){\n\t\t$this->getBasics();\n\t\t$this->getParams();\n\t\t$this->getLanguage();\n\n\t\t// load additonal language (for breadcrumbs)\n\t\t$this->language->load( 'checkout/success' );\n\n\t\t$this->load->library( 'encryption' );\n\t\t$encryption = new Encryption( $this->config->get( 'config_encryption' ) );\n\n\t\t// get order id\n\t\tif( isset( $this->request->get['order_id'] ) ) {\n\t\t\t$order_id = $encryption->decrypt( $this->request->get['order_id'] );\n\t\t}else{\n\t\t\t$order_id = 0;\n\t\t}\n\n\t\t// get project id\n\t\t$project_id = $this->getRequest( 'pid', 0 );\n\n\t\t// write log\n\t\t$msg = sprintf( $this->language->get( 'text_log_return_cancel'), $project_id, $order_id );\n\t\t$this->writeLog( $msg, 4 );\n\n\t\t$this->data['heading_title']\t= $this->language->get( 'text_cancel' );\n\t\t$this->data['text_message']\t\t= sprintf(\n\t\t\t$this->language->get( 'text_cancel_message' ),\n\t\t\t$this->buildUrl( 'information/contact' )\n\t\t);\n\t\t$this->data['button_continue']\t= $this->language->get( 'button_continue' );\n\t\t$this->data['continue']\t\t\t= $this->buildUrl( 'common/home' );\n\n\t\tif( $this->_ocversion == '1.4' ) {\n\t\t\t$breadcrumbs = array(\n\t\t\t\tarray(\n\t\t \t'href' => $this->buildUrl( 'common/home' ),\n\t\t \t'text' => $this->language->get( 'text_home' ),\n\t\t \t'separator' => false\n\t\t \t),\n\t\t \tarray(\n\t\t \t'href' => $this->buildUrl( 'checkout/cart' ),\n\t\t \t'text' => $this->language->get( 'text_basket' ),\n\t\t \t'separator' => $this->language->get( 'text_separator' )\n\t\t \t)\n\t\t\t);\n\n\t\t\tif( $this->customer->isLogged() ) {\n\t\t\t\t$breadcrumbs_add = array(\n\t\t\t\t\tarray(\n\t\t\t\t\t\t'href' => $this->buildUrl( 'checkout/shipping' ),\n\t\t\t\t\t\t'text' => $this->language->get( 'text_shipping' ),\n\t\t\t\t\t\t'separator' => $this->language->get( 'text_separator' )\n\t\t\t\t\t),\n\t\t\t\t\tarray(\n\t\t\t\t\t\t'href' => $this->buildUrl( 'checkout/payment' ),\n\t\t\t\t\t\t'text' => $this->language->get( 'text_payment' ),\n\t\t\t\t\t\t'separator' => $this->language->get( 'text_separator' )\n\t\t\t\t\t),\n\t\t\t\t\tarray(\n\t\t\t\t\t\t'href' => $this->buildUrl( 'checkout/confirm' ),\n\t\t\t\t\t\t'text' => $this->language->get( 'text_failed' ),\n\t\t\t\t\t\t'separator' => $this->language->get( 'text_separator' )\n\t\t\t\t\t)\n\t\t\t\t);\n\t\t\t}else{\n\t\t\t\t$breadcrumbs_add = array(\n\t\t\t\t\tarray(\n\t\t\t\t\t\t'href' => $this->buildUrl( 'checkout/guest' ),\n\t\t\t\t\t\t'text' => $this->language->get( 'text_guest' ),\n\t\t\t\t\t\t'separator' => $this->language->get( 'text_separator' )\n\t\t\t\t\t),\n\t\t\t\t\tarray(\n\t\t\t\t\t\t'href' => $this->buildUrl( 'checkout/guest/confirm' ),\n\t\t\t\t\t\t'text' => $this->language->get( 'text_failed' ),\n\t\t\t\t\t\t'separator' => $this->language->get( 'text_separator' )\n\t\t\t\t\t)\n\t\t\t\t);\n\t\t\t}\n\n\t\t\t$breadcrumbs = array_merge( $breadcrumbs, $breadcrumbs_add );\n\n\t \t$breadcrumbs[] = array(\n\t \t'href' => $this->buildUrl( 'checkout/success' ),\n\t \t'text' => $this->language->get( 'text_failed' ),\n\t \t'separator' => $this->language->get( 'text_separator' )\n\t \t);\n\t\t}else{\n\t\t\t$breadcrumbs = array(\n\t\t\t\tarray(\n\t\t\t\t\t'href' => $this->buildUrl( 'common/home' ),\n\t\t \t'text' => $this->language->get( 'text_home' ),\n\t\t \t'separator' => false\n\t\t\t\t),\n\t \tarray(\n\t\t \t'href' => $this->buildUrl( 'checkout/cart' ),\n\t\t \t'text' => $this->language->get( 'text_basket' ),\n\t\t \t'separator' => $this->language->get( 'text_separator' )\n\t\t \t),\n\t\t \tarray(\n\t\t\t\t\t'href' => $this->buildUrl( 'checkout/checkout', '', 'SSL' ),\n\t\t\t\t\t'text' => $this->language->get( 'text_checkout' ),\n\t\t\t\t\t'separator' => $this->language->get( 'text_separator' )\n\t\t\t\t),\n\t\t\t\tarray(\n\t\t \t'href' => $this->buildUrl( 'checkout/success' ),\n\t\t \t'text' => $this->language->get( 'text_failed' ),\n\t\t \t'separator' => $this->language->get( 'text_separator' )\n\t\t \t)\n\t \t);\n\t\t}\n\n\t\t$this->getTemplate( '/template/common/success.tpl' );\n\t\t$this->buildBreadcrumbs( $breadcrumbs );\n\t\t$this->buildTitle( $this->language->get( 'text_cancel' ) );\n\t\t$this->getChildren();\n\t\t$this->buildResponse();\n\t}", "function handle_multiple_actions()\r\n{\r\n\tglobal $_user, $is_courseAdmin, $is_courseTutor;\r\n\r\n\t// STEP 1: are we performing the actions on the received or on the sent files?\r\n\tif($_POST['action']=='delete_received' || $_POST['action']=='download_received')\r\n\t{\r\n\t\t$part = 'received';\r\n\t}\r\n\telseif($_POST['action']=='delete_sent' || $_POST['action']=='download_sent')\r\n\t{\r\n\t\t$part = 'sent';\r\n\t}\r\n\r\n\t// STEP 2: at least one file has to be selected. If not we return an error message\r\n\tforeach ($_POST as $key=>$value)\r\n\t{\r\n\t\tif (strstr($value,$part.'_') AND $key!='view_received_category' AND $key!='view_sent_category')\r\n\t\t{\r\n\t\t\t$checked_files=true;\r\n\t\t\t$checked_file_ids[]=intval(substr($value,strrpos($value,'_')));\r\n\t\t}\r\n\t}\r\n\t$checked_file_ids = $_POST['id'];\r\n\r\n\tif (!is_array($checked_file_ids) || count($checked_file_ids)==0)\r\n\t{\r\n\t\treturn get_lang('CheckAtLeastOneFile');\r\n\t}\r\n\r\n\r\n\t// STEP 3A: deleting\r\n\tif ($_POST['action']=='delete_received' || $_POST['action']=='delete_sent')\r\n\t{\r\n\t\t$dropboxfile=new Dropbox_Person( $_user['user_id'], $is_courseAdmin, $is_courseTutor);\r\n\t\tforeach ($checked_file_ids as $key=>$value)\r\n\t\t{\r\n\t\t\tif ($_GET['view']=='received' OR !$_GET['view'])\r\n\t\t\t{\r\n\t\t\t\t$dropboxfile->deleteReceivedWork($value);\r\n\t\t\t\t$message=get_lang('ReceivedFileDeleted');\r\n\t\t\t}\r\n\t\t\tif ($_GET['view']=='sent')\r\n\t\t\t{\r\n\t\t\t\t$dropboxfile->deleteSentWork($value);\r\n\t\t\t\t$message=get_lang('SentFileDeleted');\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn $message;\r\n\t}\r\n\r\n\t// STEP 3B: giving comment\r\n\tif ($_POST['actions']=='comment')\r\n\t{\r\n\t\t// This has not been implemented.\r\n\t\t// The idea was that it would be possible to write the same feedback for the selected documents.\r\n\t}\r\n\r\n\t// STEP 3C: moving\r\n\tif (strstr($_POST['actions'], 'move_'))\r\n\t{\r\n\t\t$target=str_replace('move_', '',$_POST['actions']);\r\n\r\n\t\tforeach ($checked_file_ids as $key=>$value)\r\n\t\t{\r\n\t\t\tstore_move($value, $target, $part);\r\n\t\t}\r\n\t\treturn get_lang('FilesMoved');\r\n\t}\r\n\r\n\t// STEP 3D: downloading\r\n\tif ($_POST['action']=='download_sent' || $_POST['action']=='download_received')\r\n\t{\r\n\t\tzip_download($checked_file_ids);\r\n\t}\r\n\r\n}", "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}", "function cancel()\n\t{\n\t\t// Get some objects from the JApplication\n\t\t$user\t= & JFactory::getUser();\n\n\t\t// Must be logged in\n\t\tif ($user->get('id') < 1) {\n\t\t\tJError::raiseError(403, JText::_('ALERTNOTAUTH'));\n\t\t\treturn;\n\t\t}\n\n\t\t// Checkin the weblink\n\t\t$model = $this->getModel('weblink');\n\t\t$model->checkin();\n\n\t\t$this->setRedirect(JRoute::_('index.php?option=com_weblinks&view=categories', false));\n\t}", "function ParseCancelMsg() \n\t{\n\t\t$this->log->WriteLog( INFO, \"Parse Cancel Msg Start\" );\n\t\tif( strcmp( $this->REQUEST[\"AuthTy\"], \"card\" ) == 0 )\n\t\t{\n\t\t\tif( strcmp( $this->REQUEST[\"SubTy\"], \"isp\" ) == 0 )\n\t\t\t{\n\t\t\t\t/* [1-1] 안전결제ISP 처리 */\t\t\t\t\t\n\n\t\t\t\t$this->RESULT[\"rStoreId\"] = $this->RecvValArray[0];\n\t\t\t\t$this->RESULT[\"rApprNo\"] = $this->RecvValArray[1];\n\t\t\t\t$this->RESULT[\"rApprTm\"] = $this->RecvValArray[2];\n\t\t\t\t$this->RESULT[\"rBusiCd\"] = $this->RecvValArray[3];\n\t\t\t\t$this->RESULT[\"rDealNo\"] = $this->RecvValArray[4];\n\t\t\t\t$this->RESULT[\"rCancelSuccYn\"] = $this->RecvValArray[5];\n\t\t\t\t$this->RESULT[\"rCancelResMsg\"] = $this->RecvValArray[6];\n\t\t\t\t\n\t\t\t\t$this->log->WriteLog( INFO, $this->REQUEST[\"AuthTy\"].\"-\".$this->REQUEST[\"SubTy\"].\" \".\"RECV MSG Parsing OK \" );\n\t\t\t}\n\t\t\telse if( ( strcmp( $this->REQUEST[\"SubTy\"], \"visa3d\" ) == 0 ) || ( strcmp( $this->REQUEST[\"SubTy\"], \"normal\" ) == 0 ) )\n\t\t\t{\n\t\t\t\t/* [1-2] 안심클릭 or 일반결제 처리 */\t\n\t\t\t\t$this->RESULT[\"rStoreId\"] = $this->RecvValArray[0];\n\t\t\t\t$this->RESULT[\"rApprNo\"] = $this->RecvValArray[1];\n\t\t\t\t$this->RESULT[\"rApprTm\"] = $this->RecvValArray[2];\n\t\t\t\t$this->RESULT[\"rBusiCd\"] = $this->RecvValArray[3];\n\t\t\t\t$this->RESULT[\"rCancelSuccYn\"] = $this->RecvValArray[4];\n\t\t\t\t$this->RESULT[\"rOrdNo\"] = $this->RecvValArray[5];\n\t\t\t\t$this->RESULT[\"rInstmt\"] = $this->RecvValArray[6];\n\t\t\t\t$this->RESULT[\"rAmt\"] = $this->RecvValArray[7];\n\t\t\t\t$this->RESULT[\"rCardNm\"] = $this->RecvValArray[8];\n\t\t\t\t$this->RESULT[\"rCardCd\"] = $this->RecvValArray[9];\n\t\t\t\t$this->RESULT[\"rMembNo\"] = $this->RecvValArray[10];\n\t\t\t\t$this->RESULT[\"rAquiCd\"] = $this->RecvValArray[11];\n\t\t\t\t$this->RESULT[\"rAquiNm\"] = $this->RecvValArray[12];\n\t\t\t\t$this->RESULT[\"rDealNo\"] = $this->RecvValArray[13];\n\n\t\t\t\tif($this->RESULT[\"rCancelSuccYn\"] == \"y\")\n\t\t\t\t{\n\t\t\t\t\t$this->RESULT[\"rCancelResMsg\"] = \"정상취소\";\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t$this->RESULT[\"rCancelResMsg\"] = \"취소실패\";\n\t\t\t\t}\n\n\n\t\t\t\t$this->log->WriteLog( INFO, $this->REQUEST[\"AuthTy\"].\"-\".$this->REQUEST[\"SubTy\"].\" \".\"RECV MSG Parsing OK \" );\n\t\t\t}\n\t\t\n\t\t}\n\t\telse if( strcmp( $this->REQUEST[\"AuthTy\"], \"iche\" ) == 0 && strcmp( $this->REQUEST[\"ICHE_SOCKETYN\"], \"Y\" ) == 0)\n\t\t{\n\t\t\t/* [2-1] 계좌이체 인터넷뱅킹 취소*/\t\n\t\t\t/* \t[RB-CanRes|상점ID|posmTid|주문번호|y|취소성공|] */\n\t\t\t$this->RESULT[\"rStoreId\"] = $this->RecvValArray[1];\n\t\t\t$this->RESULT[\"ICHE_POSMTID\"] = $this->RecvValArray[2];\n\t\t\t$this->RESULT[\"rOrdNo\"] = $this->RecvValArray[3];\n\t\t\t$this->RESULT[\"rCancelSuccYn\"] = $this->RecvValArray[4];\n\t\t\t$this->RESULT[\"rCancelResMsg\"] = $this->RecvValArray[5];\t\t\t\t\n\n\t\t}\n\t\telse if( strcmp( $this->REQUEST[\"AuthTy\"], \"iche\" ) == 0 && strcmp( $this->REQUEST[\"ICHEARS_SOCKETYN\"], \"Y\" ) == 0)\n\t\t{\n\t\t\t/* [2-2] 계좌이체 텔레뱅킹 취소*/\t\n\t\t\t/* \t[TB-CanRes|상점ID|posmTid|주문번호|y|취소성공|] */\n\t\t\t$this->RESULT[\"rStoreId\"] = $this->RecvValArray[1];\n\t\t\t$this->RESULT[\"rMTid\"] = $this->RecvValArray[2];\n\t\t\t$this->RESULT[\"rCancelSuccYn\"] = $this->RecvValArray[3];\n\t\t\t$this->RESULT[\"rCancelResMsg\"] = $this->RecvValArray[4];\t\t\t\t\t\t\n\t\t\t\n\t\t}\n\t\telse if( strcmp( $this->REQUEST[\"AuthTy\"], \"hp\" ) == 0 )\n\t\t{\n\t\t\t/****************************************************************************\n\t\t\t*\n\t\t\t* [4] 핸드폰 결제 취소\n\t\t\t*\n\t\t\t* -- 취소 응답 전문 포멧\n\t\t\t* + 데이터길이(6) + 데이터\n\t\t\t* + 데이터 포멧(데이터 구분은 \"|\"로 하며 암호화Process에서 해독된후 실데이터를 수신하게 된다.\n\t\t\t* |\tMobileCanRes\t|\t업체ID(20)\t| 성공여부(1)\t|\t결과메세지\t|\t취소처리일시\t|\t이용기관주문번호\t|\n\t\t\t*\t\t \n\t\t\t****************************************************************************/\n\t\t\t\n\t\t\t/* \t[MobileCanRes|상점ID|결과(y/n)|결과메세지|취소일시|이용기관주문번호|] */\n\t\t\t$this->RESULT[\"rStoreId\"] = $this->RecvValArray[1];\n\t\t\t$this->RESULT[\"rCancelSuccYn\"] = $this->RecvValArray[2];\n\t\t\t$this->RESULT[\"rCancelResMsg\"] = $this->RecvValArray[3];\n\t\t\t$this->RESULT[\"rCancelDate\"] = $this->RecvValArray[4];\n\t\t\t$this->RESULT[\"rTid\"] = $this->RecvValArray[5];\t\t\t\t\t\t\n\t\t\t\n\t\t}\n\t\telse if( strcmp( $this->REQUEST[\"AuthTy\"], \"ars\" ) == 0 )\n\t\t{\n\t\t\t/****************************************************************************\n\t\t\t*\n\t\t\t* [5] ARS 결제 취소\n\t\t\t*\n\t\t\t* -- 취소 응답 전문 포멧\n\t\t\t* + 데이터길이(6) + 데이터\n\t\t\t* + 데이터 포멧(데이터 구분은 \"|\"로 하며 암호화Process에서 해독된후 실데이터를 수신하게 된다.\n\t\t\t* |\tArsCanRes\t|\t업체ID(20)\t| 성공여부(1)\t|\t결과메세지\t|\t취소처리일시\t|\t이용기관주문번호\t|\n\t\t\t*\t\t \n\t\t\t****************************************************************************/\n\t\t\t\n\t\t\t/* \t[ArsCanRes|상점ID|결과(y/n)|결과메세지|취소일시|이용기관주문번호|] */\n\t\t\t$this->RESULT[\"rStoreId\"] = $this->RecvValArray[1];\n\t\t\t$this->RESULT[\"rCancelSuccYn\"] = $this->RecvValArray[2];\n\t\t\t$this->RESULT[\"rCancelResMsg\"] = $this->RecvValArray[3];\n\t\t\t$this->RESULT[\"rCancelDate\"] = $this->RecvValArray[4];\n\t\t\t$this->RESULT[\"rTid\"] = $this->RecvValArray[5];\t\t\t\t\t\t\n\t\t\t\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$this->log->WriteLog( INFO, $this->REQUEST[\"AuthTy\"].\" \".\"Parse CancelMSG Passed \" );\n\t\t\t$this->RESULT[\"rCancelSuccYn\"] = \"n\";\n\t\t\t$this->RESULT[\"rCancelResMsg\"] = \"Cannot Cancel AuthTy[\".$this->REQUEST[\"AuthTy\"].\"]\";\t\n\t\t\treturn false;\n\t\t}\n\t\t$this->log->WriteLog( INFO, \"Parse Cancel Msg End\" );\n\t\treturn true;\n\t}", "public function cancelAllMonitors () {\n $this->callMethod( 'cancelAllMonitors');\n $this->_handlersMonitorFile = array();\n }", "public function cancelOperation() {\n printf(\"Cancelling...\\n\");\n $this->_cancelled = true;\n posix_kill($this->_pid, SIGKILL);\n pcntl_signal_dispatch();\n }", "function request_action() {\r\n //skip this function for AJAX\r\n if ( defined( 'DOING_AJAX' ) )\r\n return '';\r\n\r\n //hide dashbord/backend - redirect Client and Staff to my-hub page\r\n if ( ( current_user_can( 'wpc_client' ) || current_user_can( 'wpc_client_staff' ) ) && !current_user_can( 'manage_network_options' ) ) {\r\n $wpc_settings = get_option( 'wpc_settings' );\r\n //hide dashbord/backend\r\n if ( isset( $wpc_settings['hide_dashboard'] ) && 'yes' == $wpc_settings['hide_dashboard'] ) {\r\n wp_redirect( wpc_client_get_slug( 'hub_page_id' ) );\r\n exit();\r\n }\r\n }\r\n\r\n //check admin capability and add if admin haven't\r\n if ( current_user_can( 'manage_options' ) && !current_user_can( 'manage_network_options' ) && !current_user_can( 'edit_clientpages' ) ) {\r\n global $wp_roles;\r\n\r\n $capability_map = array(\r\n 'read_clientpages' => 'View Portal Page.',\r\n 'publish_clientpages' => 'Add Portal Page.',\r\n 'edit_clientpages' => 'Edit Portal Pages.',\r\n 'edit_published_clientpages' => 'Edit Portal Pages.',\r\n 'delete_published_clientpages' => 'Delete Portal Pages.',\r\n 'edit_others_clientpages' => 'Edit others Client Pages.',\r\n 'delete_others_clientpages' => 'Delete others Portal Pages.',\r\n );\r\n\r\n //set capability for Portal Pages to Admin\r\n foreach ( array_keys( $capability_map ) as $capability ) {\r\n $wp_roles->add_cap( 'administrator', $capability );\r\n }\r\n }\r\n\r\n //Uninstall plugin - delete all plugin data\r\n if ( !defined( 'DOING_AJAX' ) && isset( $_GET['action'] ) && 'wpclient_uninstall' == $_GET['action'] ) {\r\n define( 'WP_UNINSTALL_PLUGIN', '1' );\r\n\r\n //deactivate the plugin\r\n $plugins = get_option( 'active_plugins' );\r\n if ( is_array( $plugins ) && 0 < count( $plugins ) ) {\r\n $new_plugins = array();\r\n foreach( $plugins as $plugin )\r\n if ( 'wp-client-client-portals-file-upload-invoices-billing/wp-client-lite.php' != $plugin )\r\n $new_plugins[] = $plugin;\r\n }\r\n update_option( 'active_plugins', $new_plugins );\r\n\r\n delete_option( 'wpc_run_activated_functions' );\r\n //uninstall\r\n include 'wp-client-uninstall.php';\r\n\r\n wp_redirect( get_admin_url() . 'plugins.php' );\r\n exit;\r\n }\r\n\r\n //private actions of the plugin\r\n if ( isset( $_REQUEST['wpc_action'] ) && ( current_user_can( 'manage_options' ) || current_user_can( 'wpc_manager' ) || current_user_can( 'manage_network_options' ) ) ) {\r\n switch( $_REQUEST['wpc_action'] ) {\r\n //action for create new Client Circle\r\n case 'create_group':\r\n $args = array(\r\n 'group_id' => '0',\r\n 'group_name' => ( isset( $_REQUEST['group_name'] ) ) ? $_REQUEST['group_name'] : '',\r\n 'auto_select' => ( isset( $_REQUEST['auto_select'] ) ) ? '1' : '0',\r\n 'auto_add_clients' => ( isset( $_REQUEST['auto_add_clients'] ) ) ? '1' : '0',\r\n 'assign_all' => ( isset( $_REQUEST['assign_all'] ) ) ? '1' : '0',\r\n );\r\n $this->create_group( $args );\r\n break;\r\n\r\n //action for edit Client Circle\r\n case 'edit_group':\r\n $args = array(\r\n 'group_id' => ( isset( $_REQUEST['group_id'] ) && 0 < $_REQUEST['group_id'] ) ? $_REQUEST['group_id'] : '0',\r\n 'group_name' => ( isset( $_REQUEST['group_name'] ) ) ? $_REQUEST['group_name'] : '',\r\n 'auto_select' => ( isset( $_REQUEST['auto_select'] ) ) ? '1' : '0',\r\n 'auto_add_clients' => ( isset( $_REQUEST['auto_add_clients'] ) ) ? '1' : '0',\r\n 'assign_all' => '0',\r\n );\r\n $this->create_group( $args );\r\n break;\r\n\r\n //action for delete Client Circle\r\n case 'delete_group':\r\n $this->delete_group( $_REQUEST['group_id'] );\r\n break;\r\n\r\n //action for assign clients to Client Circle\r\n case 'save_group_clients':\r\n $this->assign_clients_group();\r\n break;\r\n }\r\n }\r\n\r\n }", "public function cancel_experience_booking_payment()\n\t{\t\n\t\tif ($this->checkLogin('A') == ''){\n\t\t\tredirect('admin');\n\t\t}\n\t\telse\n\t\t{\n\t\t\t\n\t\t\t$this->data['heading'] = 'Experience Cancellation Payments';\n\t\t\t\n\t\t\t$condition = array('cancelled','Yes');\n\t\t\t$CustomerDetails = $this->review_model->get_all_experienced_cancelled_users();\t\t\n\t\t\t\n\t\t\tforeach($CustomerDetails->result() as $customer)\n\t\t\t{\n\t\t\t\t$customer_id = $customer->id;\n\t\t\t\t$cancel[] = $this->review_model->get_all_experience_commission_tracking($customer_id);\n\t\t\t\t$this->data['paypalData'][$HostEmail] = $customer->paypal_email;\t\t\t\t\n\t\t\t}\n\n\t\t\t$this->data['trackingDetails'] = $cancel;\n\t\t\t$this->load->view('admin/dispute/display_experience_cancel_payment_lists',$this->data);\n\t\t}\n\t}", "function PKG_remNormalPackages($amount,$client)\n{\n$count=0;\n\nfor ($i=0; $i < $amount; $i++)\n\t{\n\t\t$var=\"CB_pkg\".$i;\t \n\t\t\n\t\tif (!empty($_POST[$var]))\n\t\t\t{\n\t\t\t\tPKG_addRemovePackagesToWait4Aac($client,25,$_POST[$var]);\n\t\t\t\t$count++;\n\t\t\t}\n\t}\nreturn($counter);\n}", "public function friendly_stop() {\n global $OUTPUT;\n\n $riskyediting = ($this->surveypro->riskyeditdeadline > time());\n $utilitylayoutman = new utility_layout($this->cm, $this->surveypro);\n $hassubmissions = $utilitylayoutman->has_submissions();\n\n if ($hassubmissions && (!$riskyediting)) {\n echo $OUTPUT->notification(get_string('applyusertemplatedenied01', 'mod_surveypro'), 'notifyproblem');\n $url = new \\moodle_url('/mod/surveypro/view_submissions.php', ['s' => $this->surveypro->id]);\n echo $OUTPUT->continue_button($url);\n echo $OUTPUT->footer();\n die();\n }\n\n if ($this->surveypro->template && (!$riskyediting)) { // This survey comes from a master template so it is multilang.\n echo $OUTPUT->notification(get_string('applyusertemplatedenied02', 'mod_surveypro'), 'notifyproblem');\n $url = new \\moodle_url('/mod/surveypro/view_userform.php', ['s' => $this->surveypro->id]);\n echo $OUTPUT->continue_button($url);\n echo $OUTPUT->footer();\n die();\n }\n }", "protected function cancelAppointmentRequest($args) {\n\n $returned = $this->_validate_token($args['ent_sess_token'], $args['ent_dev_id'], '2');\n\n if (is_array($returned))\n return $returned;\n\n $checkBookingsQry = \"select appointment_id from appointment where slave_id = '\" . $this->User['entityId'] . \"' and status IN (6,7,8)\";\n $checkBookingsRes = mysql_query($checkBookingsQry, $this->db->conn);\n\n if (mysql_num_rows($checkBookingsRes) > 0)\n return $this->_getStatusMessage(93, 93);\n\n if ($this->_updateSlvApptStatus($this->User['entityId'], '3') == 0)\n return $this->_getStatusMessage(74, 74);\n else\n return $this->_getStatusMessage(3, 1);\n }", "public function cancel_membership() {\n \t$membership_id = $this->uri->segment(3);\n\n \t$data = [\n \t\t'id' => $membership_id,\n \t\t'status' => 'Cancelled'\n \t];\n\n \t$this->Member_Model->update_membership($data);\n\n \tredirect('members/list/active');\n }", "public function cancelAction() \n {\n \t\t$tblVote = Facebook_Vote::Table();\n\t\t$objSession = new App_Session_Namespace( 'facebook' );\n\t\t\n\t\tif ( is_object( $objSession )) {\n\t\t\t$nUserId = $objSession->user->fbu_id;\n\t\t\t$nVoteId = $this->_getIntParam( 'fbv_vote_id', 1 );\n\t\t\t\n\t\t\t$objVote = $tblVote->findVote( $nUserId, $nVoteId );\n\t\t\tif ( is_object( $objVote ) ) {\n \t\t\t\t$objVote->delete();\n\t\t\t}\n\t\t}\n\t\t$this->view->return = $this->_getParam( 'return' );\n }", "function cancelObject($in_rep = false)\n\t{\n\t\tilUtil::sendInfo($this->lng->txt('msg_cancel'), true);\n\t\t// TODO: check this\n\t\tilUtil::redirect('repository.php?cmd=frameset&ref_id='.$_GET['ref_id']);\n\t}", "function cancel() \r\n\t\t{\r\n\t $msg = JText::_('COM_QRCODE_CANCEL');\r\n\t $this->setRedirect(JRoute::_('index.php?option=com_qrcode', false), $msg);\r\n\t }", "public function executeCancelSenderId()\n {\n $sms = new Lib\\SMS();\n $result = $sms->cancelSenderId();\n if ( $result === false ) {\n wp_send_json_error( array( 'message' => current( $sms->getErrors() ) ) );\n } else {\n wp_send_json_success();\n }\n }", "public function cancelRequest(){\n //the other users Id\n $otherUserId = $_POST[\"otherUserId\"];\n //deletes the record in the database\n $this->individualGroupModel->cancelGroupRequestInvitation($otherUserId); \n //redirects\n $path = '/IndividualGroupController/individualGroup?groupId=' . $_SESSION['current_group']; \n redirect($path);\n }", "function quitar_inyect(){\n\tfix_request();\n\treturn true;\n}", "function PKG_rmAllSpecialPackagesByName($clientName,$packageName)\n{\n\tCHECK_FW(CC_clientname, $clientName, CC_package, $packageName);\n\t$sql=\"DELETE FROM `clientjobs` WHERE client=\\\"$clientName\\\" AND package=\\\"$packageName\\\";\";\n\n\tdb_query($sql); //FW ok\n}", "function autoCancelContest($CronID, $CancelType = \"Cancelled\", $MatchID = \"\")\n {\n ini_set('max_execution_time', 300);\n\n /* Get Contest Data */\n if (!empty($MatchID)) {\n $ContestsUsers = $this->db->query('SELECT C.ContestID,C.UnfilledWinningPercent,C.Privacy,C.EntryFee,C.ContestFormat,C.ContestSize,C.IsConfirm,C.CustomizeWinning,M.MatchStartDateTime,(SELECT COUNT(TotalPoints) FROM sports_contest_join WHERE ContestID = C.ContestID ) TotalJoined FROM tbl_entity E, sports_contest C, sports_matches M WHERE E.EntityID = C.ContestID AND C.MatchID = M.MatchID AND C.MatchID = ' . $MatchID . ' AND E.StatusID IN(1,2) AND LeagueType = \"Dfs\" AND DATE(M.MatchStartDateTime) <= \"' . date('Y-m-d') . '\" ORDER BY M.MatchStartDateTime ASC');\n } else {\n $ContestsUsers = $this->db->query('SELECT C.ContestID,C.UnfilledWinningPercent,C.Privacy,C.EntryFee,C.ContestFormat,C.ContestSize,C.IsConfirm,C.CustomizeWinning,M.MatchStartDateTime,(SELECT COUNT(TotalPoints) FROM sports_contest_join WHERE ContestID = C.ContestID ) TotalJoined FROM tbl_entity E, sports_contest C, sports_matches M WHERE E.EntityID = C.ContestID AND C.MatchID = M.MatchID AND E.StatusID IN(1,2) AND LeagueType = \"Dfs\" AND DATE(M.MatchStartDateTime) <= \"' . date('Y-m-d') . '\" ORDER BY M.MatchStartDateTime ASC');\n }\n if ($ContestsUsers->num_rows() == 0) {\n return FALSE;\n }\n\n $ContestIds = array();\n foreach ($ContestsUsers->result_array() as $Value) {\n if ($CancelType == \"Cancelled\") {\n\n if (((strtotime($Value['MatchStartDateTime'])) - strtotime(date('Y-m-d H:i:s'))) > 0) {\n continue;\n }\n\n /* To Check Unfilled Contest */\n if(($Value['UnfilledWinningPercent'] == 'Yes') && $Value['ContestSize'] != $Value['TotalJoined']){\n if($Value['TotalJoined'] == 0){\n \n /* Update Contest Status */\n $this->db->where('EntityID', $Value['ContestID']);\n $this->db->limit(1);\n $this->db->update('tbl_entity', array('ModifiedDate' => date('Y-m-d H:i:s'), 'StatusID' => 3));\n }else{\n $TotalCollection = $Value['EntryFee'] * $Value['TotalJoined'];\n foreach(json_decode($Value['CustomizeWinning'],TRUE) as $WinningValue){\n $NewCustomizeWinning[] = array(\n 'From' => $WinningValue['From'],\n 'To' => $WinningValue['To'],\n 'Percent' => $WinningValue['Percent'],\n 'WinningAmount' => round(($TotalCollection*$WinningValue['Percent'])/100,2)\n );\n }\n \n /* Update Contest New Customize Winning */\n if(!empty($NewCustomizeWinning)){\n $this->db->where('ContestID', $Value['ContestID']);\n $this->db->limit(1);\n $this->db->update('sports_contest', array('CustomizeWinning' => json_encode($NewCustomizeWinning))); \n }\n }\n continue;\n }\n\n /* To check contest cancel condition */\n $IsCancelled = 0;\n if ($Value['Privacy'] == 'Yes') { // Should be 100% filled\n $IsCancelled = ($Value['ContestSize'] != $Value['TotalJoined']) ? 1 : 0;\n } else {\n if ($Value['ContestFormat'] == 'Head to Head') {\n $IsCancelled = ($Value['TotalJoined'] == 2) ? 0 : 1;\n } else {\n if($Value['IsConfirm'] == 'Yes'){\n $IsCancelled = 0;\n }else{\n $JoinedPercent = ($Value['TotalJoined'] * 100)/$Value['ContestSize'];\n $IsCancelled = ($JoinedPercent >= CONTEST_FILL_PERCENT_LIMIT) ? 0 : 1;\n }\n }\n }\n if ($IsCancelled == 0) {\n continue;\n }\n }\n $ContestIds[] = $Value['ContestID'];\n }\n\n /* Update Contest Status */\n $TotalContests = count($ContestIds);\n if($TotalContests > 0){\n\n /* Update Status */\n $this->db->where_in('EntityID', $ContestIds);\n $this->db->limit($TotalContests);\n $this->db->update('tbl_entity', array('ModifiedDate' => date('Y-m-d H:i:s'), 'StatusID' => 3));\n\n /* Update Cancelled By */\n $this->db->where_in('ContestID', $ContestIds);\n $this->db->limit($TotalContests);\n $this->db->update('sports_contest', array('CancelledBy' => 'Automated'));\n }\n }", "public function control(){\r\n $result=\"\";\r\n // TODO : if planned changed so that left is null, control still blocks\r\n // if (isset($this->WorkElement)) {\r\n // $this->WorkElement->leftWork=$this->WorkElement->plannedWork-$this->WorkElement->realWork;\r\n // }\r\n if (trim($this->idActivity)) { \r\n $parentActivity=new Activity($this->idActivity);\r\n if ($parentActivity->idProject!=$this->idProject) {\r\n $result.='<br/>' . i18n('msgParentActivityInSameProject');\r\n }\r\n }\r\n if ($this->idTicket) {\r\n \tif ($this->idTicket==$this->id) {\r\n \t\t$result.='<br/>' . i18n('duplicateIsSame');\r\n \t} else {\r\n \t $duplicate=new Ticket($this->idTicket);\r\n \t if ($duplicate->idTicket and $duplicate->idTicket!=$this->id) {\r\n \t\t $result.='<br/>' . i18n('duplicateAlreadyLinked');\r\n \t }\r\n \t}\r\n }\r\n \r\n \r\n $defaultControl=parent::control();\r\n if ($defaultControl!='OK') {\r\n $result.=$defaultControl;\r\n }\r\n if ($result==\"\") {\r\n $result='OK';\r\n }\r\n return $result;\r\n }", "public function cancelAction() {\n /**\n * Admin configuration for order cancel request active status.\n */\n $orderCancelStatusFlag = Mage::getStoreConfig ( 'marketplace/admin_approval_seller_registration/order_cancel_request' );\n $data = $this->getRequest ()->getPost ();\n $emailSent = '';\n /**\n * Get order id\n * @var int\n */\n $orderId = $data ['order_id'];\n $loggedInCustomerId = '';\n /**\n * Check that customer login or not.\n */\n if (Mage::getSingleton ( 'customer/session' )->isLoggedIn () && isset ( $orderId )) {\n /**\n * Get customer data\n * @var id\n */\n $customerData = Mage::getSingleton ( 'customer/session' )->getCustomer ();\n $loggedInCustomerId = $customerData->getId ();\n $customerid = Mage::getModel ( 'sales/order' )->load ( $data ['order_id'] )->getCustomerId ();\n } else {\n /**\n * Error message for the when unwanted person access these request.\n */\n Mage::getSingleton ( 'core/session' )->addError ( $this->__ ( \"You do not have permission to access this page\" ) );\n $this->_redirect ( 'sales/order/history' );\n return;\n }\n if ($orderCancelStatusFlag == 1 && ! empty ( $loggedInCustomerId ) && $customerid == $loggedInCustomerId) {\n $shippingStatus = 0;\n try {\n /**\n * Get templete id for the order cancel request notification.\n */\n $templateId = ( int ) Mage::getStoreConfig ( 'marketplace/admin_approval_seller_registration/order_cancel_request_notification_template_selection' );\n if ($templateId) {\n /**\n * Load email templete.\n */\n $emailTemplate = Mage::helper ( 'marketplace/marketplace' )->loadEmailTemplate ( $templateId );\n } else {\n $emailTemplate = Mage::getModel ( 'core/email_template' )->loadDefault ( 'marketplace_cancel_order_admin_email_template_selection' );\n }\n /**\n * Load order product details based on the orde id.\n */\n $_order = Mage::getModel ( 'sales/order' )->load ( $orderId );\n /**\n * Get increment id\n * @var int\n */\n $incrementId = $_order->getIncrementId ();\n $sellerProductDetails = array ();\n $selectedProducts = $data ['products'];\n $selectedItemproductId = '';\n /**\n * Get the order item from the order.\n */\n foreach ( $_order->getAllItems () as $item ) {\n /**\n * Get Product id\n * @var int\n */\n $itemProductId = $item->getProductId ();\n $orderItem = $item;\n if (in_array ( $itemProductId, $selectedProducts )) {\n $shippingStatus = $this->getShippingStatus ( $orderItem );\n\n $sellerId = Mage::getModel ( 'catalog/product' )->load ( $itemProductId )->getSellerId ();\n $selectedItemproductId = $itemProductId;\n $sellerProductDetails [$sellerId] [] = $item->getName ();\n }\n }\n /**\n * Get seller product details.\n */\n foreach ( $sellerProductDetails as $key => $productDetails ) {\n $productDetailsHtml = \"<ul>\";\n /**\n * Increment foreach loop\n */\n foreach ( $productDetails as $productDetail ) {\n $productDetailsHtml .= \"<li>\";\n $productDetailsHtml .= $productDetail;\n $productDetailsHtml .= \"</li>\";\n }\n $productDetailsHtml .= \"</ul>\";\n $customer = Mage::getModel ( 'customer/customer' )->load ( $loggedInCustomerId );\n $seller = Mage::getModel ( 'customer/customer' )->load ( $key );\n /**\n * Get customer name and customer email id.\n */\n $buyerName = $customer->getName ();\n $buyerEmail = $customer->getEmail ();\n $sellerEmail = $seller->getEmail ();\n $sellerName = $seller->getName ();\n $recipient = $sellerEmail;\n if (empty ( $sellerEmail )) {\n $adminEmailIdVal = Mage::getStoreConfig ( 'marketplace/marketplace/admin_email_id' );\n /**\n * Get the to mail id\n */\n $getToMailId = Mage::getStoreConfig ( \"trans_email/ident_$adminEmailIdVal/email\" );\n $recipient = $getToMailId;\n }\n $emailTemplate->setSenderName ( $buyerName );\n $emailTemplate->setSenderEmail ( $buyerEmail );\n /**\n * To set cancel/refund request sent\n */\n if ($shippingStatus == 1) {\n $requestedType = $this->__ ( 'cancellation' );\n Mage::getModel ( 'marketplace/order' )->updateSellerRequest ( $selectedItemproductId, $orderId, $loggedInCustomerId, $sellerId, 0 );\n } else {\n $requestedType = $this->__ ( 'return' );\n Mage::getModel ( 'marketplace/order' )->updateSellerRequest ( $selectedItemproductId, $orderId, $loggedInCustomerId, $sellerId, 1 );\n }\n $emailTemplateVariables = array (\n 'ownername' => $sellerName,'productdetails' => $productDetailsHtml, 'order_id' => $incrementId,\n 'customer_email' => $buyerEmail,'customer_firstname' => $buyerName,\n 'reason' => $data ['reason'],'requesttype' => $requestedType,\n 'requestperson' => $this->__ ( 'Customer' )\n );\n $emailTemplate->setDesignConfig ( array ('area' => 'frontend') );\n /**\n * Sending email to admin\n */\n $emailTemplate->getProcessedTemplate ( $emailTemplateVariables );\n $emailSent = $emailTemplate->send ( $recipient, $sellerName, $emailTemplateVariables );\n }\n if ($shippingStatus == 1) {\n Mage::getSingleton ( 'core/session' )->addSuccess ( $this->__ ( \"Item cancellation request has been sent successfully.\" ) );\n } else {\n Mage::getSingleton ( 'core/session' )->addSuccess ( $this->__ ( \"Item return request has been sent successfully.\" ) );\n }\n $this->_redirect ( 'sales/order/view/order_id/' . $data ['order_id'] );\n } catch ( Exception $e ) {\n Mage::getSingleton ( 'core/session' )->addError ( $this->__ ( $e->getMessage () ) );\n $this->_redirect ( 'sales/order/view/order_id/' . $data ['order_id'] );\n }\n } else {\n Mage::getSingleton ( 'core/session' )->addError ( $this->__ ( \"You do not have permission to access this page\" ) );\n $this->_redirect ( 'sales/order/view/order_id/' . $orderId );\n }\n }", "function jx_cancel_paf()\r\n\t{\r\n\t\t$this->auth(PAF_ROLE);\r\n\t\tif(!$_POST)\r\n\t\t\tdie();\r\n\t\t$output = array();\r\n\t\t$user = $this->auth(true);\r\n\t\t \r\n\t\t$id = $this->input->post('id');\r\n\t\t$this->db->query('update t_paf_list set paf_status=3,cancelled_on=?,cancelled_by=? where id = ? and paf_status = 1',array(date('Y-m-d H:i:s'),$user['userid'],$id));\r\n\t\tif($this->db->affected_rows())\r\n\t\t{\r\n\t\t\t$output['status'] = 'success';\r\n\t\t\t$output['message'] = 'Cancelled Successfully';\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\t$output['status'] = 'error';\r\n\t\t\t$output['message'] = 'Unable to cancel this paf';\r\n\t\t}\r\n\t\techo json_encode($output);\r\n\t}", "function cancel()\n\t{\n\t\tJRequest::checkToken() or jexit( 'Invalid Token' );\n\n\t\t// Checkin the weblink\n\t\t$model = $this->getModel('weblink');\n\t\t$model->checkin();\n\n\t\t$this->setRedirect( 'index.php?option=com_weblinks' );\n\t}", "function plugin_action($Server_ID, $Plugin_ID, $Plugin_Action_ID) {\n\n\t$Box_ID = getBOX($Server_ID);\n\n\tif ($Plugin_Action_ID == 1) {\n\t\tif (!function_exists(\"ssh2_connect\")) {\n\t\t\t$return = false;\n\t\t}\n\n\t\tif(!($ssh_conn = ssh2_connect(server_ip($Server_ID), box_ssh($Box_ID)))) {\n\t\t $return = false;\n\t\t} else {\n\t\t\tif(!ssh2_auth_password($ssh_conn, server_username($Server_ID), server_password($Server_ID))) {\n\t\t \t$return = false;\n\t\t } else {\n\t\t \t\t$stream = ssh2_shell($ssh_conn, 'xterm');\n\n\t\t \t\tfwrite($stream, 'cd cstrike/addons/amxmodx/plugins/'.PHP_EOL);\n\t\t\t\tsleep(1);\n\n\t\t\t\tfwrite($stream, 'wget http://gb-hoster.me/assets/plugin/'.plugin_amxx($Plugin_ID).PHP_EOL);\n\t\t\t\tsleep(2);\n\n\t\t\t\t$add_to_pl_list = add_to_plugin_list($Server_ID, $Plugin_ID);\n\t\t\t\tif (!$add_to_pl_list) {\n\t\t\t\t\t$return = false;\n\t\t\t\t} else {\n\t\t\t\t\t$return = true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t} else if ($Plugin_Action_ID == 2) {\n\t\tif (!function_exists(\"ssh2_connect\")) {\n\t\t\t$return = false;\n\t\t}\n\n\t\tif(!($ssh_conn = ssh2_connect(server_ip($Server_ID), box_ssh($Box_ID)))) {\n\t\t $return = false;\n\t\t} else {\n\t\t\tif(!ssh2_auth_password($ssh_conn, server_username($Server_ID), server_password($Server_ID))) {\n\t\t \t$return = false;\n\t\t } else {\n\t\t \t\t$stream = ssh2_shell($ssh_conn, 'xterm');\n\n\t\t \t\tfwrite($stream, 'cd cstrike/addons/amxmodx/plugins/'.PHP_EOL);\n\t\t\t\tsleep(1);\n\n\t\t\t\tfwrite($stream, 'rm '.plugin_amxx($Plugin_ID).PHP_EOL);\n\t\t\t\tsleep(2);\n\n\t\t\t\t$add_to_pl_list = delete_p_line_plugin_list($Server_ID, $Plugin_ID);\n\t\t\t\tif (!$add_to_pl_list) {\n\t\t\t\t\t$return = false;\n\t\t\t\t} else {\n\t\t\t\t\t$return = true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\treturn $return;\n}", "public function cancelRequestWaiverWireUserTeam_post() {\n $this->form_validation->set_rules('SessionKey', 'SessionKey', 'trim|required|callback_validateSession');\n $this->form_validation->set_rules('ContestGUID', 'ContestGUID', 'trim|required|callback_validateEntityGUID[Contest,ContestID]');\n $this->form_validation->set_rules('WireID', 'WireID', 'trim|required');\n $this->form_validation->validation($this); /* Run validation */\n\n $IsApply = $this->SnakeDrafts_model->cancelRequestWaiverWireUserTeam($this->ContestID, $this->SessionUserID, $this->Post['WireID']);\n if ($IsApply) {\n $this->Return['Message'] = \"Successfully request cancelled\";\n } else {\n $this->Return['ResponseCode'] = 500;\n $this->Return['Message'] = \"Sorry the cancel request failed, Please try gain.\";\n }\n }", "function handleCancelProgramItemEditor(EventContext $context)\n {\n $context->setForward(dirname(__FILE__) . \"/program_item_selector.php\");\n }", "public function cancel()\n {\n $user = Auth::user();\n\n if ( $user->cancel_rank() )\n flash('Your place request was canceled.')->success()->important();\n\n if ( $user->cancel_place() )\n flash('Your place as been removed.')->success()->important();\n\n return redirect()->back();\n }", "function handleCancelProgramItemSelector(EventContext $context)\n {\n $context->setForward(dirname(__FILE__) . \"/index.php\");\n }", "function cancel() {\r\n\t\t$this->setRedirect ( 'index.php' );\r\n\t}", "public function cancel()\n {\n $this->confirmationArchived = false;\n }", "function cancelCheque($connection,$ref_no){\r\n // $sql = \"SELECT check_ref,debit,accno from _transactionshistory WHERE check_ref= :check_ref AND cancelled_cheque=0\";\r\n // $statement = $connection->prepare($sql);\r\n // $statement->execute(array(':check_ref' => $ref_no));\r\n // $row = $statement->fetchall();\r\n // if(sizeof($row)<1){\r\n // return false;\r\n // }\r\n // $debit;\r\n // $accno;\r\n // foreach ($row as $key => $value) {\r\n // $debit = $value['debit'];\r\n // $accno =$value['accno'];\r\n // }\r\n\r\n // $initial = $debit;\r\n //update balances and mark check as cancelled\r\n //$accno = $_SESSION['accno'];\r\n //$update_sql = \"UPDATE _accounts SET balance = :balance WHERE accno = :account\";\r\n //$update_statement = $connection->prepare($update_sql);\r\n\r\n //balance as of now\r\n // $debit = $debit + Services::getServiceBal($connection)-Services::charges($initial);\r\n\r\n //execute UPDATE\r\n //$update_statement->execute(array(':balance' => $debit,':account'=>$accno));\r\n\r\n //update cheque as cancelled;\r\n $cancel_update = \"UPDATE _transactionshistory SET cancelled_cheque=1 WHERE check_ref= :check_ref AND cancelled_cheque=0 \";\r\n $cancel_stmt = $connection->prepare($cancel_update);\r\n $cancel_stmt->execute(array(':check_ref' => $ref_no));\r\n\r\n if($cancel_stmt->rowCount()){\r\n return true;\r\n }\r\n\r\n //record the transaction history\r\n // $history_sql = \"INSERT INTO _transactionshistory (accno,date,debit,credit,check_ref,cancelled_cheque,balance) VALUES(:accno,:date,:debit,:credit,:check_ref,:cancelled,:balance)\";\r\n // $history_stmt = $connection->prepare($history_sql);\r\n // $history_stmt->execute(array(':accno'=>$accno,':date'=>date(\"Y/m/d\"),':debit'=>0,':credit'=>$initial,\r\n // ':check_ref'=>$ref_no,':cancelled'=>1,':balance'=>$debit));//-Services::charges($initial)\r\n\r\n return false;\r\n\r\n }", "public function cancel()\n\t{\n\t\tJSession::checkToken('request') or jexit(JText::_('JINVALID_TOKEN'));\n\t\t$this->setRedirect('index.php');\n\t}", "function resendCancelEmail(){\n\t\t//echo \"resend...\";\n\t\t$db\t\t= JFactory::getDbo();\n\t\t$query\t= $db->getQuery(true);\n\t\tif($_POST['cancelReId'] == '')\n\t\t\t$nId = $_POST['appCanId'];\n\t\telse\n\t\t\t$nId = $_POST['cancelReId'];\n\n\t\t$query->select($db->nameQuote('s_name'));\n\t\t$query->select($db->nameQuote('s_prename'));\n\t\t$query->select($db->nameQuote('s_address'));\n\t\t$query->select($db->nameQuote('s_plz'));\n\t\t$query->select($db->nameQuote('s_city'));\n\t\t$query->select($db->nameQuote('s_phone'));\n\t\t$query->select($db->nameQuote('s_email'));\n\t\t$query->select($db->nameQuote('idt_drivin_event_apply')); \n\t\t$query->select($db->nameQuote('s_title'));\t\t\n\t\t$query->from($db->nameQuote('#__jevent_events_apply'));\n\t\t$this->_id2 = $nId;\n\t\t$query->where($db->nameQuote('idt_drivin_event_apply') . '=' . $nId);\n\t\t//if(!$bCanceled)\n\t\t//\t$query->where($db->nameQuote('dt_Cancel') . ' is null');\n\t\t//else\n\t\t\t$query->where($db->nameQuote('dt_Cancel') . ' is not null');\n\t\t//echo \"SQLSTRING: \" . $query;\n\t\t$db->setQuery($query);\n\t\tif ($link = $db->loadRowList()) {\n\t\t\t$mailer = new jEventMailer();\n\t\t\t//$mailer->test();\n\t\t\t\n\t\t\tif(!$mailer->sendApplicationEmail2(1, $link, $this->getEventById2(), true)){\n\t\t\t\t$this->setError($mailer->error);\n\t\t\t\techo \"Eroooor \" . $mailer->error;\n\t\t\t}\n\t\t}else{\n\t\t\techo \"No Record Found! ReID: \". $nId;\n\t\t}\n\t\treturn true;\n\t\n\t}", "function cancelReservation2($IID){\n $connection = initDB();\n $query2;\n $query2 = \"SELECT * FROM Itinerary WHERE IID='\".$IID.\"'\";\n $result2 = mysql_query($query2);\n //or die (\"Query Failed \".mysql_error());\n $SID;\n while($row2 = mysql_fetch_array($result2)){ \n $SID = $row2['SID']; \n }\n //Remove Itinerary information\n $query2 = \"DELETE FROM Schedule WHERE SID='\".$SID.\"'\";\n $result2 = mysql_query($query2);\n //or die (\"Query Failed \".mysql_error()); \n \n //Remove Schedule information\n $query2 = \"DELETE FROM Itinerary WHERE IID='\".$IID.\"'\";\n $result2 = mysql_query($query2);\n //or die (\"Query Failed \".mysql_error());\n\n closeDB($connection);\n return 0;\n}", "function cancel()\n\t{\n\t\t// Initialize some variables\n\t\t$db = & JFactory::getDBO();\n\t\t$user = & JFactory::getUser();\n\n\t\t// Get an article table object and bind post variabes to it [We don't need a full model here]\n\t\t$article = & JTable::getInstance( 'content' );\n\t\t$article->bind( JRequest::get( 'post' ) );\n\n\t\tif ( $user->authorize( 'com_content', 'edit', 'content', 'all' ) || ($user->authorize( 'com_content', 'edit', 'content', 'own' ) && $article->created_by == $user->get( 'id' )) )\n\t\t{\n\t\t\t$article->checkin();\n\t\t}\n\n\t\t// If the task was edit or cancel, we go back to the content item\n\t\t$referer = JRequest::getString( 'ret', base64_encode( JURI::base() ), 'get' );\n\t\t$referer = base64_decode( $referer );\n\t\tif ( !JURI::isInternal( $referer ) )\n\t\t{\n\t\t\t$referer = '';\n\t\t}\n\t\t$this->setRedirect( $referer );\n\n\t}", "public function cancellationRequested() : bool;", "function deactivate_cps() {\n\trequire_once plugin_dir_path( __FILE__ ) . 'includes/class-cps-deactivator.php';\n\tcps_Deactivator::deactivate();\n}", "public function actionCancel()\n {\n $this->render('cancel');\n }", "abstract public function cancel_payment( Payment $payment );", "function cancelsettings()\r\n {\r\n $this->setRedirect('index.php?option=com_jfusionconnect&view=cpanel', $msg, $msgType);\r\n }", "function cleanOnline(){\nglobal $XUSER, $SERVER, $ROOMS;\n$q = DoQuery(\"SELECT * FROM $SERVER[TBL_PREFIX]online\");\nwhile($row = Do_Fetch_Row($q)){\nif($row[4] <= $SERVER['EXP_ONLINE']){\nforceexit($row[3],$row[1]);\nDoQuery(\"DELETE FROM $SERVER[TBL_PREFIX]online WHERE id=$row[0]\");\n}\n}\n}", "function RevokeAll()\n \t{\n \t\t\n \t}", "public function cancelAction() {\n $this->chekcingForMarketplaceSellerOrNot ();\n $orderId = $this->getRequest ()->getParam ( 'id' );\n $produtId = $this->getRequest ()->getParam ( 'item' );\n $sellerId = Mage::getSingleton ( 'customer/session' )->getId ();\n /**\n * Prepare product collection for cancel\n */\n $products = Mage::getModel ( 'marketplace/commission' )->getCollection ();\n $products->addFieldToSelect ( '*' );\n $products->addFieldToFilter ( 'seller_id', $sellerId );\n $products->addFieldToFilter ( 'order_id', $orderId );\n $products->addFieldToFilter ( 'product_id', $produtId );\n $collectionId = $products->getFirstItem ()->getId ();\n $orderStatusFlag = Mage::getStoreConfig ( 'marketplace/admin_approval_seller_registration/order_manage' );\n if (! empty ( $collectionId ) && $orderStatusFlag == 1) {\n try {\n $data = array (\n 'order_status' => 'canceled',\n 'customer_id' => 0,\n 'credited' => 1,\n 'item_order_status' => 'canceled'\n );\n $commissionModel = Mage::getModel ( 'marketplace/commission' )->load ( $collectionId )->addData ( $data );\n $commissionModel->setId ( $collectionId )->save ();\n\n /**\n * Load order details based on the order id.\n */\n $_order = Mage::getModel ( 'sales/order' )->load ( $orderId );\n /**\n * Update order items to cancel status\n */\n foreach ( $_order->getAllItems () as $item ) {\n if ($this->getRequest ()->getParam ( 'item' ) == $item->getId ()) {\n $item->cancel ();\n }\n }\n /**\n * Send cancel notification for admin\n */\n Mage::helper('marketplace/general')->sendCancelOrderAdminNotification($orderId,$produtId,$sellerId);\n\n Mage::helper('marketplace/general')->sendCancelOrderBuyerNotification($_order);\n /**\n * Redirect to order view page\n */\n Mage::getSingleton ( 'core/session' )->addSuccess ( $this->__ ( $this->__ ( 'The item has been cancelled.' ) ) );\n $this->_redirect ( 'marketplace/order/vieworder/orderid/' . $orderId );\n } catch ( Exception $e ) {\n Mage::getSingleton ( 'core/session' )->addError ( $this->__ ( $e->getMessage () ) );\n $this->_redirect ( 'marketplace/order/vieworder/orderid/' . $orderId );\n }\n } else {\n /**\n * Return to order manage page\n */\n Mage::getSingleton ( 'core/session' )->addError ( $this->__ ( 'You do not have permission to access this page' ) );\n $this->_redirect ( 'marketplace/order/manage' );\n return false;\n }\n }", "function __WooZone_unblock_cron( $istab = '' ) {\n\tglobal $WooZone;\n \n\t$html = array();\n\t\n\t$html[] = '<div class=\"WooZone-bug-fix panel-body WooZone-panel-body WooZone-form-row unblock_cron' . ($istab!='' ? ' '.$istab : '') . '\">';\n\n\t$html[] = '<label class=\"WooZone-form-label\" for=\"options_prefix_change\">' . __('Unblock CRON jobs:', $WooZone->localizationName) . '</label>';\n\n?>\n\t<select id=\"unblock_cron\" name=\"unblock_cron\" style=\"width:120px; margin-left: 18px;\">\n\t\t\t<?php\n\t\t\tforeach (array('yes' => 'YES', 'no' => 'NO') as $kk => $vv){\n\t\t\t\techo '<option value=\"' . ( $vv ) . '\" ' . ( $val == $vv ? 'selected=\"true\"' : '' ) . '>' . ( $vv ) . '</option>';\n\t\t\t} \n\t\t\t?>\n\t\t</select>&nbsp;&nbsp;\n\t<?php\n\t$html[] = ob_get_contents();\n\tob_end_clean();\n\n\t$html[] = '<input type=\"button\" class=\"' . ( WooZone()->alias ) . '-form-button-small ' . ( WooZone()->alias ) . '-form-button-primary\" id=\"WooZone-unblock_cron\" value=\"' . ( __('Unblock Now ', $WooZone->localizationName) ) . '\">\n\t<div style=\"width: 100%; display: none; margin-top: 10px; \" class=\"WooZone-response-options WooZone-callout WooZone-callout-info\"></div>';\n\n\t$html[] = '</div>';\n\n\t// view page button\n\tob_start();\n\t?>\n\t<script>\n\t(function($) {\n\t\tvar ajaxurl = '<?php echo admin_url('admin-ajax.php');?>'\n\n\t\t$(\"body\").on(\"click\", \"#WooZone-unblock_cron\", function(){\n\n\t\t\t$.post(ajaxurl, {\n\t\t\t\t'action' \t\t: 'WooZone_fix_issues',\n\t\t\t\t'sub_action'\t: 'unblock_cron'\n\t\t\t}, function(response) {\n\n\t\t\t\tvar $box = $('.unblock_cron'), $res = $box.find('.WooZone-response-options');\n\t\t\t\t$res.html( response.msg_html ).show();\n\t\t\t\tif ( response.status == 'valid' )\n\t\t\t\t\treturn true;\n\t\t\t\treturn false;\n\t\t\t}, 'json');\n\t\t});\n\t})(jQuery);\n\t</script>\n<?php\n\t$__js = ob_get_contents();\n\tob_end_clean();\n\t$html[] = $__js;\n \n\treturn implode( \"\\n\", $html );\n}", "public function massCancelAction()\n {\n $this->_ratepayMassEvent('cancel');\n \n $this->_redirect('*/*/index');\n }", "function CancelUserTagsQueue( $uid, $cancellevels = '' ){\n\t\t\t$levels = (array) $cancellevels;\n\t\t\tforeach ( $levels as $key => $level ) {\n\t\t\t\tif ( strrpos( $level,\"U-\" ) !== false ) {\n \t\t\t\tunset( $levels[$key] );\n \t\t\t}\n\t\t\t}\n\t\t\tif ( count( $levels ) <= 0 ) return;\n\n\t\t\t$data = array(\n\t\t\t\t\"uid\"=>$uid,\n\t\t\t\t\"action\"=>\"cancel\",\n\t\t\t\t\"levels\"=>$cancellevels\n\t\t\t);\n\t\t\t$this->ifscAddQueue($data);\n\t\t}", "function PKG_getClientjobsStatus($client,$package,$distr,$params,$normalPackage)\n{\n\tCHECK_FW(CC_clientname, $client, CC_package, $package, CC_nochecknow, $params, CC_package, $normalPackage);\n\tinclude(\"/m23/inc/i18n/\".$GLOBALS[\"m23_language\"].\"/m23base.php\");\n\n\t$sql=\"SELECT status,id FROM `clientjobs` WHERE client='$client' AND package='$package' OR (params='$params' AND normalPackage='$normalPackage')\";\t\n\n\t$result = db_query($sql); //FW ok\n\t$line=mysql_fetch_row($result);\n\n\tif (strstr($line[0],\"wait4acc\"))\n\t\t$action=$I18N_preselected;\n\t\t\n\tif (!empty($distr))\n\t\t{\n\t\t\tinclude_once(\"/m23/inc/distr/$distr/packages.php\");\n\t\t\t$status = PKG_translateClientjobsStatus($line[0]);\n\n\t\t\t$outStatus=\"$status / $action\";\n\t\t}\n\telse\n\t\t$outStatus=$action;\n\n\treturn($outStatus);\n}", "function removeRequisitionClin_l2($clin_l2_number)\n{\n\t$url = API_HOST_URL.\"get_all_clin_l3_by_clin2.php?clin_l2_number=\".$clin_l2_number;\n\t$clin_l3_arr = requestByCURL($url); \n\tif(count($clin_l3_arr['data'])>0)\n\t{\n\t\tfor($k=0; $k<count($clin_l3_arr['data']); $k++)\n\t\t{ \n\t\t\t$clin_l3_number = $clin_l3_arr['data'][$k]['clin_number'];\n\t\t\t$url = API_HOST_URL.\"get_all_clin_l4_by_clin3.php?clin_l3_number=\".$clin_l3_number;\n\t\t\t$clin_l4_arr = requestByCURL($url);\n\t\t\tif(count($clin_l4_arr['data'])>0)\n\t\t\t{\n\t\t\t\tfor($l=0; $l<count($clin_l4_arr['data']); $l++)\n\t\t\t\t{\n\t\t\t\t\t$clin_l4_number = $clin_l4_arr['data'][$l]['clin_number'];\n\t\t\t\t\t### Update as remove ===================\n\t\t\t\t\tupdateReqClinAsRemove($clin_l4_number);\n\t\t\t\t\tupdateReqClinAsRemove($clin_l3_number);\n\t\t\t\t\tupdateReqClinAsRemove($clin_l2_number);\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tupdateReqClinAsRemove($clin_l3_number);\n\t\t\t\tupdateReqClinAsRemove($clin_l2_number);\n\t\t\t}\n\t\t}\n\t}\n\telse\n\t{\n\t\tupdateReqClinAsRemove($clin_l2_number);\n\t}\n}", "function clearCompetition($cid) {\n global $mysqli;\n \n $tables = array(0=>\"mopControl\", \"mopClass\", \"mopOrganization\", \"mopCompetitor\",\n \"mopTeam\", \"mopTeamMember\", \"mopClassControl\", \"mopRadio\");\n\n foreach($tables as $table) {\n\t$sql = \"DELETE FROM $table WHERE cid=$cid\";\n\t$mysqli->query($sql);\n }\n}", "function cancelSave ($items, $userInput, $filename) \n{\n if ($userInput == 'n') {\n return;\n } else {\n saveFile($filename, $items);\n echo \"Your save was successful!\\n\"; \n } \n}" ]
[ "0.6159684", "0.59867156", "0.5975934", "0.59523803", "0.5910269", "0.5910269", "0.58630073", "0.56682074", "0.56491554", "0.5522898", "0.5480505", "0.54304194", "0.54165524", "0.5416165", "0.53679794", "0.53427505", "0.5339265", "0.5290827", "0.52850544", "0.5284578", "0.52791816", "0.52691895", "0.5255548", "0.525002", "0.5245143", "0.5173895", "0.5171447", "0.51593196", "0.51406205", "0.5123563", "0.5118108", "0.50988126", "0.5091405", "0.5072787", "0.5065483", "0.50624263", "0.5058691", "0.50487614", "0.50232154", "0.50152135", "0.50129634", "0.500657", "0.50061774", "0.5005629", "0.49775913", "0.49735057", "0.49722138", "0.49721342", "0.49657333", "0.49637493", "0.4962007", "0.49465868", "0.49395943", "0.49359113", "0.4929146", "0.49161106", "0.49140808", "0.4905375", "0.48990208", "0.48963636", "0.4887319", "0.48815268", "0.48740327", "0.4867184", "0.48604563", "0.4846504", "0.48364455", "0.4823493", "0.4819037", "0.48169854", "0.47939703", "0.47923556", "0.47866973", "0.4783454", "0.47700772", "0.4769771", "0.47695944", "0.47688982", "0.47575226", "0.4749116", "0.47456157", "0.47408733", "0.47401303", "0.4730075", "0.47221738", "0.4708361", "0.47024843", "0.47021893", "0.46998662", "0.4698733", "0.46982104", "0.46959108", "0.46918276", "0.46898112", "0.46851403", "0.46715584", "0.4661563", "0.4654245", "0.46473506", "0.46455008" ]
0.63469315
0
Given a reason number, it resolves the numeric category group to a name
function getReasonCategory($reason_number) { global $db; $category_group_info = $db->GetVal(" SELECT category_group_name FROM offline_reasons JOIN offline_reason_groups USING (category_group) WHERE reason_number = $reason_number"); return($category_group_info); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function groups_parse_name($format, $groupnumber) {\n if (strstr($format, '@') !== false) { // Convert $groupnumber to a character series\n $letter = 'A';\n for($i=0; $i<$groupnumber; $i++) {\n $letter++;\n }\n $str = str_replace('@', $letter, $format);\n } else {\n $str = str_replace('#', $groupnumber+1, $format);\n }\n return($str);\n}", "function TestCase_lookup_category_id_by_name($name) {\n\t// Create call\n\t$call = new xmlrpcmsg('TestCase.lookup_category_id_by_name', array(new xmlrpcval($name, \"string\")));\n\n\t// Do call and return value\n\treturn do_call($call);\n}", "public function addCategoryToGroupByName($gorup_name, $category_name);", "function TestCase_lookup_category_name_by_id($category_id) {\n\t// Create call\n\t$call = new xmlrpcmsg('TestCase.lookup_category_name_by_id', array(new xmlrpcval($category_id, \"int\")));\n\n\t// Do call and return value\n\treturn do_call($call);\n}", "private function refine($category)\n {\n $category = trim(ucwords(strtolower($category)));\n if ($category == 'Lifestyle (sociology)') {\n return 'Lifestyle';\n }\n if ($category == 'Sports') {\n return 'Sport';\n }\n if ($category == 'Humor') {\n return 'Comedy';\n }\n if ($category == 'Humour') {\n return 'Comedy';\n }\n if ($category == 'Pet') {\n return 'Animals';\n }\n if ($category == 'Diy') {\n return 'DIY';\n }\n if ($category == 'Association Football') {\n return 'Soccer';\n }\n return $category;\n }", "protected function ordinal($number)\n {\n return (isset($this->dict[$number]))\n ? $this->dict[$number]\n : 'th';\n }", "private function getCategoryNameById($categoryId)\n {\n if (!isset($this->categories[$categoryId])) {\n throw new Exception('No such category found.');\n }\n\n return $this->categories[$categoryId];\n }", "public function getOrdinalSuffix($number) {\n $number = abs($number);\n $lastChar = substr($number, -1, 1);\n switch ($lastChar) {\n case '1' : return ($number == '11') ? 'th' : 'st';\n case '2' : return ($number == '12') ? 'th' : 'nd';\n case '3' : return ($number == '13') ? 'th' : 'rd';\n }\n return 'th';\n }", "public function getGroupName()\n {\n switch($this->group) {\n case \"lower_secondary\":\n return \"Lower Secondary\";\n case \"upper_secondary\":\n return \"Upper Secondary\";\n case \"undergraduate\":\n return \"Undergraduate\";\n default:\n return \"Unknown\";\n }\n }", "function cat_id_to_name($id) {\r\n\tforeach((array)(get_categories()) as $category) {\r\n \tif ($id == $category->cat_ID) { return $category->cat_name; break; }\r\n\t}\r\n}", "function getGroupShortName($group)\n {\n return '';\n }", "function ordinal_suffix($number)\n {\n $ends = array('th', 'st', 'nd', 'rd', 'th', 'th', 'th', 'th', 'th', 'th');\n if ((($number % 100) >= 11) && (($number % 100) <= 13)) {\n return $number . 'th';\n } else {\n return $number . $ends[$number % 10];\n }\n }", "function _getOrdinal($nr) {\n $digit = substr($nr, -1);\n if (!in_array($digit, array(1, 2, 3)) || in_array($nr, array(11, 12, 13))) {\n return 'th';\n }\n switch ($digit) {\n case 1:\n return 'st';\n case 2:\n return 'nd';\n case 3:\n return 'rd';\n }\n return 'th';\n }", "public function convert_category_titles()\n\t{\n\t\t$category \t= $split_cat = ee()->TMPL->fetch_param('category');\n\n\t\tif (strtolower(substr($split_cat, 0, 3)) == 'not')\n\t\t{\n\t\t\t$split_cat = substr($split_cat, 3);\n\t\t}\n\n\t\t$categories = preg_split(\n\t\t\t'/' . preg_quote('&') . '|' . preg_quote('|') . '/',\n\t\t\t$split_cat,\n\t\t\t-1,\n\t\t\tPREG_SPLIT_NO_EMPTY\n\t\t);\n\n\t\t$to_fix = array();\n\n\t\tforeach ($categories as $cat)\n\t\t{\n\t\t\tif (preg_match('/\\w+/', trim($cat)))\n\t\t\t{\n\t\t\t\t$to_fix[trim($cat)] = 0;\n\t\t\t}\n\t\t}\n\n\t\tif ( ! empty ($to_fix))\n\t\t{\n\t\t\t$cats = ee()->db->query(\n\t\t\t\t\"SELECT cat_id, cat_url_title\n\t\t\t\t FROM \texp_categories\n\t\t\t\t WHERE \tcat_url_title\n\t\t\t\t IN \t('\" . implode(\"','\", ee()->db->escape_str(array_keys($to_fix))) . \"')\"\n\t\t\t);\n\n\t\t\tforeach ($cats->result_array() as $row)\n\t\t\t{\n\t\t\t\t$to_fix[$row['cat_url_title']] = $row['cat_id'];\n\t\t\t}\n\n\t\t\tkrsort($to_fix);\n\n\t\t\tforeach ($to_fix as $cat => $id)\n\t\t\t{\n\t\t\t\tif ($id != 0)\n\t\t\t\t{\n\t\t\t\t\t$category = str_replace($cat, $id, $category);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tee()->TMPL->tagparams['category'] = $category;\n\t\t}\n\t}", "private function getReasonIdByName($dataset, $reason)\n {\n $result = $this->getTwoArraysLookup($dataset, $reason);\n\n return Reason::where('work_not_proceeding_reason', '=', $result)\n ->first()\n ->id;\n }", "function get_descriptive_classification( $classification ) {\n switch ( $classification ) {\n case 1: $out = 'LL'; break;\n case 2: $out = 'LS'; break;\n case 3: $out = 'LH'; break;\n case 4: $out = 'LE'; break;\n\t\t\tcase 5: $out = 'OHS'; break;\n\t\t\tcase 6: $out = 'Q'; break;\n\t\t\tcase 7: $out = 'P'; break;\n default: $out = 'Undefined'; break;\n }\n return $out;\n }", "function _dcngettext($domain, $singular, $plural, $number, $category)\r\n\t{\r\n\t\t$l10n = _get_reader($domain, $category);\r\n\t\treturn _encode($l10n->ngettext($singular, $plural, $number));\r\n\t}", "public function get_cat_name() {\n $c = $this->cat;\n $tmp = \"\";\n switch($c) {\n case 1:\n $tmp = \"News\";\n break;\n case 2:\n $tmp = \"Eventi\";\n break;\n case 3:\n $tmp = \"Pubblicazioni\";\n break;\n }\n return $tmp;\n }", "function ordinal_suffix($n) {\n $n_last = $n % 100;\n if (($n_last > 10 && $n_last < 14) || $n == 0){\n return \"{$n}th\";\n }\n switch(substr($n, -1)) {\n case '1': return \"{$n}st\";\n case '2': return \"{$n}nd\";\n case '3': return \"{$n}rd\";\n default: return \"{$n}th\";\n }\n}", "public static function code($category) {\n\t\treturn strtolower(substr($category['displayName'], 0, 2));\n\t}", "function getCategory($pid) {\n srand(MAGIC_KEY * $pid);\n return (rand() % 12) + 1;\n}", "public function getDayName($day_number, $abbreviation = false);", "function surveyCodeToName($surveyCode) {\n\tswitch($surveyCode) {\n\t\tcase HW_PROJECT_VALUE:\n\t\t\treturn HW_PROJECT_NAME;\n\t\tcase CHD_PROJECT_VALUE:\n\t\t\treturn CHD_PROJECT_NAME;\n\t\tcase COMB_PROJECT_VALUE:\n\t\t\treturn COMB_PROJECT_NAME;\n\t}\n}", "public function categoryName() {\n $categories = array(\n 'Fantasy',\n 'Technology',\n 'Thriller',\n 'Documentation',\n );\n\n return $categories[array_rand($categories)];\n }", "abstract public function getGroupName();", "function number_suffix($number){\n\t\tif ( is_numeric($number)){\n\t\t\t// Get the last two digits (only once)\n\t\t\t$n = $number % 100;\n\t\t} else {\n\t\t\t// If the last two characters are numbers\n\t\t\tif ( preg_match( '/[0-9]?[0-9]$/', $number, $matches )){\n\t\t\t\t// Return the last one or two digits\n\t\t\t\t$n = array_pop($matches);\n\t\t\t} else {\n\t\t\t\t// Return the string, we can add a suffix to it\n\t\t\t\treturn $number;\n\t\t\t}\n\t\t}\n\t\t// Skip the switch for as many numbers as possible.\n\t\tif ( $n > 3 && $n < 21 )\n\t\t\treturn $number . 'th';\n\t\t// Determine the suffix for numbers ending in 1, 2 or 3, otherwise add a 'th'\n\t\tswitch ( $n % 10 ){\n\t\tcase '1': return $number . 'st';\n\t\tcase '2': return $number . 'nd';\n\t\tcase '3': return $number . 'rd';\n\t\tdefault: return $number . 'th';\n\t\t}\n\t}", "public static function getKindName(int $kind): string\n {\n $name = self::KIND_LOOKUP[$kind] ?? null;\n if (!$name) {\n throw new \\LogicException(\"Unknown kind $kind\");\n }\n return $name;\n }", "public function getCategoryIndexFromStringOrNumberReturnsIndexDataProvider() {}", "private function getNumberToText(int $number): string {\n\t\tswitch($number) {\n\t\t\tcase 0:\n\t\t\t\treturn Language::out()->get0Name();\n\t\t\tcase 1:\n\t\t\t\treturn Language::out()->get1Name();\n\t\t\tcase 2:\n\t\t\t\treturn Language::out()->get2Name();\n\t\t\tcase 3:\n\t\t\t\treturn Language::out()->get3Name();\n\t\t\tcase 4:\n\t\t\t\treturn Language::out()->get4Name();\n\t\t\tcase 5:\n\t\t\t\treturn Language::out()->get5Name();\n\t\t\tcase 6:\n\t\t\t\treturn Language::out()->get6Name();\n\t\t\tcase 7:\n\t\t\t\treturn Language::out()->get7Name();\n\t\t\tcase 8:\n\t\t\t\treturn Language::out()->get8Name();\n\t\t\tcase 9:\n\t\t\t\treturn Language::out()->get9Name();\n\t\t\tdefault:\n\t\t\t\treturn (string) $number;\n\t\t}\n\t}", "public function number_to_ranking($number) {\n \t//array with all rankings as number and offcial name (//if 5 points two possibilities: N.G. / C+30/5)\n \t$rankings = ['5'\t=> 'C+30/5',\n \t\t\t\t '10'\t=> 'C+30/4',\n \t\t\t\t '15'\t=> 'C+30/3',\n \t\t\t\t '20'\t=> 'C+30/2',\n \t\t\t\t '25'\t=> 'C+30/1',\n \t\t\t\t '30'\t=> 'C+30',\n \t\t\t\t '35'\t=> 'C+15/5',\n \t\t\t\t '40'\t=> 'C+15/4',\n \t\t\t\t '45'\t=> 'C+15/3',\n \t\t\t\t '50'\t=> 'C+15/2',\n \t\t\t\t '55'\t=> 'C+15/1',\n \t\t\t\t '60'\t=> 'C+15',\n \t\t\t\t '65'\t=> 'B+4/6',\n \t\t\t\t '70'\t=> 'B+2/6',\n \t\t\t\t '75'\t=> 'B0',\n \t\t\t\t '80'\t=> 'B-2/6',\n \t\t\t\t '85'\t=> 'B-4/6',\n \t\t\t\t '90'\t=> 'B-15',\n \t\t\t\t '95'\t=> 'B-15/1',\n \t\t\t\t '100'\t=> 'B-15/2',\n \t\t\t\t '105'\t=> 'B-15/4',\n \t\t\t\t '110'\t=> 'A nationaal',\n \t\t\t\t '115'\t=> 'A internationaal'];\n \tif($number) {\n \t\t$ranking = $rankings[$number] . ' (' . $number . ')';\n \t}\n \telse {\n \t\t$ranking = null;\n \t}\n \treturn $ranking;\n }", "private function retrieve_category() {\n\t\t$replacement = null;\n\n\t\tif ( ! empty( $this->args->ID ) ) {\n\t\t\t$cat = $this->get_terms( $this->args->ID, 'category' );\n\t\t\tif ( $cat !== '' ) {\n\t\t\t\t$replacement = $cat;\n\t\t\t}\n\t\t}\n\n\t\tif ( ( ! isset( $replacement ) || $replacement === '' ) && ( isset( $this->args->cat_name ) && ! empty( $this->args->cat_name ) ) ) {\n\t\t\t$replacement = $this->args->cat_name;\n\t\t}\n\n\t\treturn $replacement;\n\t}", "public function displayReason() {\n switch ($this->reason) { //Reasons should only hold an int 0-4\n case 0:\n return \"Invalid\";\n case 1:\n return \"Recommend\";\n case 2:\n return \"Criticism\";\n case 3:\n return \"Question\";\n case 4:\n return \"Other\";\n }\n }", "function getnote($num)\n{\n\tswitch ($num) {\n\t\tcase 1 : return 'Insuffisant';\n\t\tcase 3 : return 'Suffisant';\n\t\tcase 4 : return 'Bon';\n\t\tcase 5 : return 'Tres bon';\n\t}\n}", "public static function ordinalSuffix ($number)\r\n\t{\r\n\t\t# Obtain the last character in the number\r\n\t\t$last = substr ($number, -1);\r\n\t\t\r\n\t\t# Obtain the penultimate number\r\n\t\tif (strlen ($number) < 2) {\r\n\t\t\t$penultimate = 0;\r\n\t\t} else {\r\n\t\t\t$penultimate = substr ($number, -2);\r\n\t\t}\r\n\t\t\r\n\t\t# Assign the suffix\r\n\t\tif ($penultimate >= 10 && $penultimate < 20) {\r\n\t\t\t$suffix = 'th';\r\n\t\t} else if ($last == 1) {\r\n\t\t\t$suffix = 'st';\r\n\t\t} else if ($last == 2) {\r\n\t\t\t$suffix = 'nd';\r\n\t\t} else if ($last == 3) {\r\n\t\t\t$suffix = 'rd';\r\n\t\t} else {\r\n\t\t\t$suffix = 'th';\r\n\t\t}\r\n\t\t\r\n\t\t# Return the result\r\n\t\treturn number_format ($number) . $suffix;\r\n\t}", "function get_cat_name($cat_id)\n {\n }", "function rename_categories() {\n global $wp_taxonomies;\n $labels = &$wp_taxonomies['category']->labels;\n $labels->name = 'Groups';\n $labels->singular_name = 'Group';\n $labels->add_new = 'Add Group';\n $labels->add_new_item = 'Add Group';\n $labels->edit_item = 'Edit Group';\n $labels->new_item = 'Group';\n $labels->view_item = 'View Group';\n $labels->search_items = 'Search Groups';\n $labels->not_found = 'No Groups found';\n $labels->not_found_in_trash = 'No Groups found in Trash';\n $labels->all_items = 'All Groups';\n $labels->menu_name = 'Groups';\n $labels->name_admin_bar = 'Groups';\n}", "function get_catname($cat_id)\n {\n }", "function GetOrdinal($num) {\n // first convert to string if needed\n $the_num = (string) $num;\n // now we grab the last digit of the number\n $last_digit = substr($the_num, -1, 1);\n // if the string is more than 2 chars long, we get\n // the second to last character to evaluate\n if (strlen($the_num)>1) {\n $next_to_last = substr($the_num, -2, 1);\n } else {\n $next_to_last = \"\";\n }\n // now iterate through possibilities in a switch\n switch($last_digit) {\n case \"1\":\n // testing the second from last digit here\n switch($next_to_last) {\n case \"1\":\n $the_num.=\"th\";\n break;\n default:\n $the_num.=\"st\";\n }\n break;\n case \"2\":\n // testing the second from last digit here\n switch($next_to_last) {\n case \"1\":\n $the_num.=\"th\";\n break;\n default:\n $the_num.=\"nd\";\n }\n break;\n // if last digit is a 3\n case \"3\":\n // testing the second from last digit here\n switch($next_to_last) {\n case \"1\":\n $the_num.=\"th\";\n break;\n default:\n $the_num.=\"rd\";\n }\n break;\n // for all the other numbers we use \"th\"\n default:\n $the_num.=\"th\";\n }\n\n // finally, return our string with it's new suffix\n return $the_num;\n}", "function NameTest($n) {\n // This function tests for common Titles at the beginning of a Participant's name.\n // Titles or Honors should go in a different blank so we test for it.\n // Because of the fuzzy nature of this test, we can only warn of the discovery and not kick it back as in error just\n // in case the title we test for shares the first few letters with an otherwise valid name.\n $EntryCaution = 0;\n SWITCH ($n) {\n CASE strncasecmp($n, \"king\", 4):\n $_SESSION['Caution'] = \"It appears as if you have indicated the rider's titles in their name.<BR>Please insure that only the rider's name appears in the Name blank, their titles should go in the Honors blank.<BR>\\n\";\n $EntryCaution++;\n BREAK;\n CASE strncasecmp($n, \"queen\", 5):\n $_SESSION['Caution'] = \"It appears as if you have indicated the rider's titles in their name.<BR>Please insure that only the rider's name appears in the Name blank, their titles should go in the Honors blank.<BR>\\n\";\n $EntryCaution++;\n BREAK;\n CASE strncasecmp($n, \"princ\", 5):\n $_SESSION['Caution'] = \"It appears as if you have indicated the rider's titles in their name.<BR>Please insure that only the rider's name appears in the Name blank, their titles should go in the Honors blank.<BR>\\n\";\n $EntryCaution++;\n BREAK;\n CASE strncasecmp($n, \"duke\", 4):\n $_SESSION['Caution'] = \"It appears as if you have indicated the rider's titles in their name.<BR>Please insure that only the rider's name appears in the Name blank, their titles should go in the Honors blank.<BR>\\n\";\n $EntryCaution++;\n BREAK;\n CASE strncasecmp($n, \"dutc\", 4):\n $_SESSION['Caution'] = \"It appears as if you have indicated the rider's titles in their name.<BR>Please insure that only the rider's name appears in the Name blank, their titles should go in the Honors blank.<BR>\\n\";\n $EntryCaution++;\n BREAK;\n CASE strncasecmp($n, \"earl\", 4):\n $_SESSION['Caution'] = \"It appears as if you have indicated the rider's titles in their name.<BR>Please insure that only the rider's name appears in the Name blank, their titles should go in the Honors blank.<BR>\\n\";\n $EntryCaution++;\n BREAK;\n CASE strncasecmp($n, \"visc\", 4):\n $_SESSION['Caution'] = \"It appears as if you have indicated the rider's titles in their name.<BR>Please insure that only the rider's name appears in the Name blank, their titles should go in the Honors blank.<BR>\\n\";\n $EntryCaution++;\n BREAK;\n CASE strncasecmp($n, \"count\", 5):\n $_SESSION['Caution'] = \"It appears as if you have indicated the rider's titles in their name.<BR>Please insure that only the rider's name appears in the Name blank, their titles should go in the Honors blank.<BR>\\n\";\n $EntryCaution++;\n BREAK;\n CASE strncasecmp($n, \"baron\", 5):\n $_SESSION['Caution'] = \"It appears as if you have indicated the rider's titles in their name.<BR>Please insure that only the rider's name appears in the Name blank, their titles should go in the Honors blank.<BR>\\n\";\n $EntryCaution++;\n BREAK;\n CASE strncasecmp($n, \"sir \", 4):\n $_SESSION['Caution'] = \"It appears as if you have indicated the rider's titles in their name.<BR>Please insure that only the rider's name appears in the Name blank, their titles should go in the Honors blank.<BR>\\n\";\n $EntryCaution++;\n BREAK;\n CASE strncasecmp($n, \"dame \", 5):\n $_SESSION['Caution'] = \"It appears as if you have indicated the rider's titles in their name.<BR>Please insure that only the rider's name appears in the Name blank, their titles should go in the Honors blank.<BR>\\n\";\n $EntryCaution++;\n BREAK;\n CASE strncasecmp($n, \"master\", 6):\n $_SESSION['Caution'] = \"It appears as if you have indicated the rider's titles in their name.<BR>Please insure that only the rider's name appears in the Name blank, their titles should go in the Honors blank.<BR>\\n\";\n $EntryCaution++;\n BREAK;\n CASE strncasecmp($n, \"mistress\", 8):\n $_SESSION['Caution'] = \"It appears as if you have indicated the rider's titles in their name.<BR>Please insure that only the rider's name appears in the Name blank, their titles should go in the Honors blank.<BR>\\n\";\n $EntryCaution++;\n BREAK;\n CASE strncasecmp($n, \"squire\", 6):\n $_SESSION['Caution'] = \"It appears as if you have indicated the rider's titles in their name.<BR>Please insure that only the rider's name appears in the Name blank, their titles should go in the Honors blank.<BR>\\n\";\n $EntryCaution++;\n BREAK;\n CASE strncasecmp($n, \"protege\", 7):\n $_SESSION['Caution'] = \"It appears as if you have indicated the rider's titles in their name.<BR>Please insure that only the rider's name appears in the Name blank, their titles should go in the Honors blank.<BR>\\n\";\n $EntryCaution++;\n BREAK;\n CASE strncasecmp($n, \"apprentice\", 10):\n $_SESSION['Caution'] = \"It appears as if you have indicated the rider's titles in their name.<BR>Please insure that only the rider's name appears in the Name blank, their titles should go in the Honors blank.<BR>\\n\";\n $EntryCaution++;\n BREAK;\n \n }\n \n return ($EntryCaution);\n \n}", "function ordinal($number) {\r\n\r\n // when fed a number, adds the English ordinal suffix. Works for any\r\n // number, even negatives\r\n\r\n if ($number % 100 > 10 && $number %100 < 14):\r\n $suffix = \"th\";\r\n else:\r\n switch($number % 10) {\r\n\r\n case 0:\r\n $suffix = \"th\";\r\n break;\r\n\r\n case 1:\r\n $suffix = \"st\";\r\n break;\r\n\r\n case 2:\r\n $suffix = \"nd\";\r\n break;\r\n\r\n case 3:\r\n $suffix = \"rd\";\r\n break;\r\n\r\n default:\r\n $suffix = \"th\";\r\n break;\r\n }\r\n\r\n endif;\r\n\r\n return \"${number}$suffix\";\r\n\r\n}", "function stpb_number_to_text($n){\r switch($n){\r case 1:\r $class ='one';\r break;\r case 2:\r $class ='two';\r break;\r case 3:\r $class ='three';\r break;\r case 4:\r $class ='four';\r break;\r case 5:\r $class ='five';\r break;\r case 6:\r $class ='six';\r break;\r case 7:\r $class ='seven';\r break;\r case 8:\r $class ='eight';\r break;\r case 9:\r $class ='nine';\r break;\r case 10:\r $class ='ten';\r break;\r case 10:\r $class ='eleven';\r break;\r\r default :\r $class ='twelve';\r\r }\r return $class;\r}", "function l1NodeCategory($x) {\n global $dom;\n $root = $dom->documentElement;\n $children = $root->childNodes;\n\n $node = $children->item($x);\n $nodeName = $node->nodeName;\n\n switch($nodeName) {\n case p:\n $category = \"pOrBlockquote\";\n break;\n case blockquote:\n $category = \"pOrBlockquote\";\n break;\n case h2:\n $category = \"h\";\n break;\n case h3:\n $category = \"h\";\n break;\n case h4:\n $category = \"h\";\n break;\n case h5:\n $category = \"h\";\n break;\n case pre:\n $category = \"pre\";\n break;\n case hr:\n $category = \"hr\";\n break;\n case table:\n $category = \"table\";\n break;\n case ol:\n $category = \"list\";\n break;\n case ul:\n $category = \"list\";\n break;\n case div:\n // If the first grandchild's nodeName is img then $category is image.\n if ($node->hasChildNodes()) {\n $grandChildren = $node->childNodes;\n $firstGChild = $grandChildren->item(0);\n $fGCNodeName = $firstGChild->nodeName;\n if ($fGCNodeName == \"img\") {\n $category = \"image\";\n break;\n }\n }\n // If there is a class attribute whose value is remarkbox then\n // $category is remark.\n $classAtt = $node->getAttribute(\"class\");\n if ($classAtt == \"remarkbox\") {\n $category = \"remark\";\n break;\n }\n form_destroy();\n die('The div is weird. Err 5187854. -Programmer.');\n default:\n form_destroy();\n die('Node category undefined. Err 6644297. -Programmer.');\n }\n\n return $category;\n}", "function getCategoryName($categoryId)\n {\n // include the name retriever class and retrieve the category name\n require_once(\"class_libraries/NameRetriever.php\");\n $nameRetriever = new NameRetriever(\"category_id\");\n \n // retrieve the name\n $categoryName = $nameRetriever -> getName($categoryId);\n \n return $categoryName;\n }", "private function parseCategoryUrl() {\n $sql = \"SELECT\n id,\n name\n FROM\n categories\";\n if(!$stmt = $this->db->prepare($sql)){return $this->db->error;}\n if(!$stmt->execute()) {return $result->error;}\n $stmt->bind_result($id, $name);\n while($stmt->fetch()) {\n $name = lowerCat($name);\n if($this->cat == $name) {\n $this->catId = $id;\n break;\n }\n }\n $stmt->close();\n if($this->catId !== -1) {\n $this->parsedUrl = '/'.$this->catId.'/'.$this->cat;\n }\n }", "function fs_get_category_id( $cat_name ) {\r\n\t$term = get_term_by( 'name', $cat_name, 'category' );\r\n\treturn $term->term_id;\r\n}", "function get_suffix($num)\n{\n// Can be found at http://www.handyphp.com\n// Do not remove this header!\n\n\tif( is_numeric($num) )\n\t{\n\t\tif( substr($num, -2, 2) == 11 || substr($num, -2, 2) == 12 || substr($num, -2, 2) == 13 )\n\t\t{\n\t\t\t$suffix = 'th';\n\t\t}\n\t\telseif( substr($num, -1, 1) == 1 )\n\t\t{\n\t\t\t$suffix = 'st';\n\t\t}\n\t\telseif( substr($num, -1, 1) == 2 )\n\t\t{\n\t\t\t$suffix = 'nd';\n\t\t}\n\t\telseif( substr($num, -1, 1) == 3 )\n\t\t{\n\t\t\t$suffix = 'rd';\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$suffix = 'th';\n\t\t}\n\t\treturn $num.$suffix;\n\t}\n\telse\n\t{\n\t\treturn NULL;\n\t}\n}", "function detect_category_name($name){\n \tglobal $db;\n \t$query = \n ' SELECT cat_categoryName \n FROM categories \n WHERE cat_categoryName = :name'; \t\n $statement = $db->prepare($query);\n $statement->bindValue(':name', $name);\n \t$statement->execute();\n $testValue = $statement->fetch();\n $statement->closeCursor();\n return $testValue;\n}", "public function ordinalize($number)\n\t{\n\t\tif (in_array(($number % 100),range(11,13))){\n\t\t\treturn $number.'th';\n\t\t}else{\n\t\t\tswitch (($number % 10)) {\n\t\t\tcase 1:\n\t\t\t\treturn $number.'st';\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\treturn $number.'nd';\n\t\t\t\tbreak;\n\t\t\tcase 3:\n\t\t\t\treturn $number.'rd';\n\t\t\tdefault:\n\t\t\t\treturn $number.'th';\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}", "protected function resolveCategoryId($category)\n {\n if (!is_numeric($category)) {\n $categoryTrim = trim($category);\n $categoryId = Category::query()->where('name', 'like', \"%$categoryTrim%\")->get(['id'])->toArray()[0]['id'];\n } else {\n $categoryId = $category;\n }\n return $categoryId;\n }", "function buildGroup($group_name) {\n return check_plain($group_name);\n }", "function GetCatName($code){\r\n\tif($code==1){\r\n\t\treturn(\"Attitude <img src=../assets/att.png height=55>\");\r\n\t}elseif($code==2){\r\n\t\treturn(\"<font color=green>Funny </font><img src=../assets/funny.png height=55>\");\r\n\t}elseif($code==3){\r\n\t\treturn(\"<font color=blue>Cool </font><img src=../assets/cool.png height=55>\");\r\n\t}elseif($code==4){\r\n\t\treturn(\"<font color=red>Flirt </font><img src=../assets/flrt.png height=55>\");\r\n\t}elseif($code==5){\r\n\t\treturn(\"<font color=brown>Dumb </font><img src=../assets/dumb.png height=55>\");\r\n\t}\r\n}", "function pluralize($noun){\n $lowercased_noun = strtolower($noun);\n\n foreach($_ENV['INFLECTION_EXCEPTIONS']['uncountable'] as $uncountable){\n if(substr($lowercased_noun,(-1*strlen($uncountable))) == $uncountable){\n return $noun;\n }\n }\n\n foreach($_ENV['INFLECTION_EXCEPTIONS']['irregular'] as $plural => $singular){\n if (preg_match('/('.$plural.')$/i', $noun, $arr)){\n return preg_replace('/('.$plural.')$/i', substr($arr[0],0,1).substr($singular,1), $noun);\n }\n }\n\n foreach($_ENV['INFLECTION_EXCEPTIONS']['plural'] as $rule => $replacement){\n if (preg_match($rule, $noun)){\n return preg_replace($rule, $replacement, $noun);\n }\n }\n\n return $noun;\n}", "function num2words($num, $c=0) {\n $ZERO = 'zero';\n $MINUS = 'minus';\n $lowName = array(\n /* zero is shown as \"\" since it is never used in combined forms */\n /* 0 .. 19 */\n \"\", \"One\", \"Two\", \"Three\", \"Four\", \"Five\",\n \"Six\", \"Seven\", \"Eight\", \"Nine\", \"Ten\",\n \"Eleven\", \"Twelve\", \"Thirteen\", \"Fourteen\", \"Fifteen\",\n \"Sixteen\", \"Seventeen\", \"Eighteen\", \"Nineteen\");\n \n $tys = array(\n /* 0, 10, 20, 30 ... 90 */\n \"\", \"\", \"Twenty\", \"Thirty\", \"Forty\", \"Fifty\",\n \"Sixty\", \"Seventy\", \"Eighty\", \"Ninety\");\n \n $groupName = array(\n /* We only need up to a quintillion, since a long is about 9 * 10 ^ 18 */\n /* American: unit, hundred, thousand, million, billion, trillion, quadrillion, quintillion */\n \"\", \"Hundred\", \"Thousand\", \"Million\", \"Billion\",\n \"Trillion\", \"Quadrillion\", \"Quintillion\");\n \n $divisor = array(\n /* How many of this group is needed to form one of the succeeding group. */\n /* American: unit, hundred, thousand, million, billion, trillion, quadrillion, quintillion */\n 100, 10, 1000, 1000, 1000, 1000, 1000, 1000) ;\n \n $num = str_replace(\",\",\"\",$num);\n $num = number_format($num,2,'.','');\n $cents = substr($num,strlen($num)-2,strlen($num)-1);\n $num = (int)$num;\n \n $s = \"\";\n \n if ( $num == 0 ) $s = $ZERO;\n $negative = ($num < 0 );\n if ( $negative ) $num = -$num;\n // Work least significant digit to most, right to left.\n // until high order part is all 0s.\n for ( $i=0; $num>0; $i++ ) {\n $remdr = (int)($num % $divisor[$i]);\n $num = $num / $divisor[$i];\n // check for 1100 .. 1999, 2100..2999, ... 5200..5999\n // but not 1000..1099, 2000..2099, ...\n // Special case written as fifty-nine hundred.\n // e.g. thousands digit is 1..5 and hundreds digit is 1..9\n // Only when no further higher order.\n if ( $i == 1 /* doing hundreds */ && 1 <= $num && $num <= 5 ){\n if ( $remdr > 0 ){\n $remdr = ($num * 10);\n $num = 0;\n } // end if\n } // end if\n if ( $remdr == 0 ){\n continue;\n }\n $t = \"\";\n if ( $remdr < 20 ){\n $t = $lowName[$remdr];\n }\n else if ( $remdr < 100 ){\n $units = (int)$remdr % 10;\n $tens = (int)$remdr / 10;\n $t = $tys [$tens];\n if ( $units != 0 ){\n $t .= \"-\" . $lowName[$units];\n }\n }else {\n $t = num2words($remdr, 0);\n }\n $s = $t.\" \".$groupName[$i].\" \".$s;\n $num = (int)$num;\n } // end for\n $s = trim($s);\n if ( $negative ){\n $s = $MINUS . \" \" . $s;\n }\n \n if ($c == 1) $s .= \" and $cents/100\";\n \n return $s;\n}", "private function parseKindValue($kind_value)\r\n {\r\n return strtolower(substr($kind_value, 3));\r\n }", "function dcngettext($domain, $msgid1, $msgid2, $n, $category) {\n }", "function getGroupName($gid)\n {\n return '';\n }", "protected static final function mung($thing) {\n\t\treturn preg_replace_callback('/([A-Z])/', function ($m) { return '_' . strtolower($m[1]); }, lcfirst($thing));\n\t}", "function section_id_convert($name) {\n\n\t// remove the hyphen\n\t$id = str_replace(\"-\", \"\", $name);\n\t\n\t// make lowercase\n\t$id = strtolower($id);\n\t\n\t// return clean value\n\treturn $id;\n\t\n}", "function readable_name($variable){\n\t$variable = ucfirst($variable);\n\t$variable = str_replace('_',' ',$variable);\n\t$variable = preg_replace('/[0-9]+/','',$variable);\n\treturn $variable;\n}", "public function find_category_id($category_name)\n {\n $result = array(\n \"status\" => \"\" ,\n \"body\" => array(\n \"category\" => array(\n \"id\" => 0,\n \"category_name\" => \"\"\n ),\n \"count\" => 0\n ),\n \"error\" => array()\n );\n $stmt = $this->db->prepare(\"SELECT * FROM categories WHERE categoryName LIKE ?\");\n if (!($stmt))\n {\n trigger_error(\"Prepare failed: (\" . $this->db->errno . \") \" . $this->db->error,\n E_USER_ERROR);\n }\n if (!$stmt->bind_param('s', $category_name)){\n trigger_error(\"Binding parameters failed: (\" . $stmt->errno . \") \" . $stmt->error,\n E_ERROR);\n }\n if (!$stmt->execute()) {\n trigger_error(\"Execute failed: (\" . $stmt->errno . \") \" . $stmt->error,\n E_CORE_ERROR);\n $result[\"error\"] = $stmt->error;\n }\n $res = $stmt->get_result();\n $row = $res->fetch_assoc();\n if ($row[\"id\"] != null){\n $result[\"status\"] = \"Query successful\";\n $result[\"body\"] = array(\n \"category\" => array(\n \"id\" => $row[\"id\"],\n \"category_name\" => $row[\"categoryName\"]\n )\n );\n return $result;\n } else {\n $result['status'] = \"No category with that name exists\";\n }\n return $result;\n }", "function _toWordsWithCase($num, &$case, $gender = 1)\n {\n $ret = '';\n $case = 3;\n \n $num = trim($num);\n \n $sign = \"\";\n if (substr($num, 0, 1) == '-') {\n $sign = $this->_minus . $this->_sep;\n $num = substr($num, 1);\n }\n\n while (strlen($num) % 3) {\n $num = '0' . $num;\n }\n\n if ($num == 0 || $num == '') {\n $ret .= $this->_digits[$gender][0];\n } else {\n $power = 0;\n\n while ($power < strlen($num)) {\n if (!$power) {\n $groupgender = $gender;\n } elseif ($power == 3) {\n $groupgender = 2;\n } else {\n $groupgender = 1;\n }\n\n $group = $this->_groupToWords(substr($num, -$power-3, 3), $groupgender, $_case);\n if (!$power) {\n $case = $_case;\n }\n\n if ($power == 3) {\n if ($_case == 1) {\n $group .= $this->_sep . 'тысяча';\n } elseif ($_case == 2) {\n $group .= $this->_sep . 'тысячи';\n } else {\n $group .= $this->_sep . 'тысяч';\n }\n } elseif ($group && $power>3 && isset($this->_exponent[$power])) {\n $group .= $this->_sep . $this->_exponent[$power];\n if ($_case == 2) {\n $group .= 'а';\n } elseif ($_case == 3) {\n $group .= 'ов';\n }\n }\n\n if ($group) {\n $ret = $group . $this->_sep . $ret;\n }\n\n $power += 3;\n }\n }\n\n return $sign . $ret;\n }", "function getCategoryNameById($id = null){\n\t}", "public function get_form_category_name($form_id,$hierarchy_id){\n $sql = 'SELECT fc.cat_id,c.category_name from form_category as fc\n JOIN category as c ON c.cat_id = fc.cat_id\n where fc.form_id = '.$form_id.' and fc.form_hierarchy_id = '.$hierarchy_id.' and c.status = 1';\n $res = $this->db->query($sql);\n return $res->row();\n }", "private function pluralise($singular) {\n\n $last_letter = strtolower($singular[strlen($singular)-1]);\n switch($last_letter) {\n case 'y':\n return substr($singular,0,-1).'ies';\n case 's':\n return $singular.'es';\n default:\n return $singular.'s';\n }\n\n}", "function nice_names($groups){\n\n $group_array=array();\n for ($i=0; $i<$groups[\"count\"]; $i++) { //for each group\n if (isset($groups[$i])) { // Patched by SysCo/al\n $line=trim($groups[$i]);\n \n if (strlen($line)>0){ \n //more presumptions, they're all prefixed with CN= (but no more yet, patched by SysCo/al\n //so we ditch the first three characters and the group\n //name goes up to the first comma\n $bits=explode(\",\",$line);\n if (1== count($bits)) {\n $group_array[]=$bits[0]; // Patched by SysCo/al\n } else {\n $prefix_len=strpos($bits[0], \"=\"); // Patched by SysCo/al to allow also various length (not only 3)\n if (FALSE === $prefix_len) {\n $group_array[]=$bits[0];\n } else {\n $group_array[]=substr($bits[0],$prefix_len+1); // Patched by SysCo/al\n }\n }\n }\n }\n }\n return ($group_array);\t\n }", "public static function ordinalize($number)\n {\n if (in_array((intval($number) % 100),range(11,13))){\n return $number.'th';\n }else{\n switch (($number % 10)) {\n case 1:\n return $number.'st';\n break;\n case 2:\n return $number.'nd';\n break;\n case 3:\n return $number.'rd';\n default:\n return $number.'th';\n break;\n }\n }\n }", "public static function class2id($name) {\n $nameWithoutNumber = preg_replace('/\\d/', '', $name);\n if (!ctype_upper($nameWithoutNumber)) {\n $spacedWord = preg_replace('/(?<![A-Z])[A-Z]/', ' \\0', $name);\n $words = explode(' ', trim($spacedWord, ' '));\n $words[0] = strtolower($words[0]);\n $nameID = \"\";\n foreach ($words as $word) {\n $nameID .= $word;\n }\n } else {\n $nameID = $name;\n }\n return $nameID;\n }", "function defineCategoriaCompetidor(string $nome, string $idade) : ?string\n{\n $categorias = ['infantil', 'adulto', 'adolescente' ];\n\n if (validaNome($nome) && validaIdade($idade))\n {\n removerMensagemErro();\n if ($idade >= 0 && $idade <= 12)\n {\n foreach ($categorias as $keys => $value)\n {\n if($value == 'infantil')\n {\n setarMensagemSucesso('O nadador '.$nome.' pertence a categoria '.$value);\n return null;\n }\n }\n }\n elseif ($idade >= 13 && $idade <= 17)\n {\n foreach ($categorias as $keys => $value)\n {\n if ($value == 'adolescente')\n {\n setarMensagemSucesso('O nadador '.$nome.' pertence a categoria '.$value);\n return null;\n }\n }\n }\n else\n {\n foreach ($categorias as $keys => $value)\n {\n if ($value == 'adulto')\n {\n setarMensagemSucesso('O nadador '.$nome.' pertence a categoria '.$value);\n return null;\n }\n }\n }\n\n }\n removerMensagemSucesso();\n return obterMensagemErro();\n}", "public static function inflect($number)\n {\n if (!is_numeric($number)) {\n\n throw new \\InvalidArgumentException(sprintf('$number should be numeric, \"%s\" given', gettype($number)));\n }\n\n if (0 == $number) {\n\n return 'Zero';\n }\n\n $numbers = str_split($number, 1);\n krsort($numbers);\n $chunks = array_chunk($numbers, 3);\n krsort($chunks);\n\n $finalNumber = array();\n foreach ($chunks as $k => $v) {\n // Keep a consistent map, so we fix the index\n $k = $k - 1;\n ksort($v);\n $temp = trim(self::parseNumber(implode('', $v)));\n if ($temp != '') {\n $finalNumber[$k] = $temp;\n if (isset(self::$otherNumbers[$k]) && self::$otherNumbers[$k] != '') {\n $finalNumber[$k] .= ' ' . self::$otherNumbers[$k];\n }\n }\n }\n\n return implode(', ', $finalNumber);\n }", "protected function getGroupName() {\n\t\treturn 'oredict';\n\t}", "static public function getCategoryNameByUid($uid) {\n\t\tlist($row) = $GLOBALS['TYPO3_DB']->exec_SELECTgetRows(\n\t\t\t'catname', 'tx_t3blog_cat', 'uid=' . intval($uid),\n\t\t\t'', '', '1'\n\t\t);\n\t\treturn (is_array($row) ? $row['catname'] : '');\n\t}", "function getNameFromNumber( int $num ): string {\n\t\t$numeric = $num % 26;\n\t\t$letter = chr( 65 + $numeric );\n\t\t$num2 = intval( $num / 26 );\n\t\tif ( $num2 > 0 ) {\n\t\t\treturn getNameFromNumber( $num2 - 1 ) . $letter;\n\t\t} else {\n\t\t\treturn $letter;\n\t\t}\n\t}", "function pluralize($num, $word, $plural) {\n return $num . ' ' . ($num == 1 ? $word : $plural);\n}", "public function getAgeGroup($runnerAge)\n {\n if ($runnerAge >= 18 && $runnerAge <= 25) {\n return 'cat_18_25';\n } else if($runnerAge > 25 && $runnerAge <= 35) {\n return 'cat_26_35';\n } else if($runnerAge > 35 && $runnerAge <= 45) {\n return 'cat_36_45';\n } else if($runnerAge > 45 && $runnerAge <= 55) {\n return 'cat_46_55';\n } else if($runnerAge > 55) {\n return 'cat_55';\n }\n\n return null;\n }", "public static function pluralize($str){\n\t\t//if(substr($str, -7) == 'ctivity') return substr($str,0,-7).'ctivities';\n\t\treturn ActiveRecord\\Utils::pluralize($str);\n\t}", "private function guessName () : string {\n return $this->inflector()->pluralize($this->inflector()->tableize(class_basename($this)));\n }", "function getCategoryById($categoryId){\n\n\t\tglobal $conn;\n\n\t\t$query = \"SELECT name FROM Category WHERE id='\". $categoryId . \"'\";\n\n\t\t$result = $conn->query($query);\n\n\t\tif($result->num_rows != 1){\n\t\t\techo \"Error selecting \" . $categoryId . \" details\";\n\t\t}else{\n\t\t\treturn $result->fetch_assoc()['name'];\n\t\t}\n\n\t}", "function translate2id($value) {\n switch($value) {\n //payment instruments\n case \"Überweisung\":\n return 4;\n case \"Bankeinzug\":\n return 2;\n case \"Bar\":\n return 3;\n \n //financial types\n case \"Erstattung Rücklastschriftgebühr\":\n return 12;\n case \"Mitgliedsbeitrag\":\n return 2; \n case \"Patenschaft\":\n return 7;\n case \"Spende\":\n return 10;\n }\n \n return $value;\n}", "function get_omfg_category_id($cat_name){\n\t$term = get_term_by('name', $cat_name, 'omfg_mobile_themes');\n\treturn $term->term_id;\n}", "public function ordinalize($number)\n {\n if (in_array($number % 100, range(11, 13))) {\n return $number . 'th';\n }\n switch ($number % 10) {\n case 1:\n return $number . 'st';\n case 2:\n return $number . 'nd';\n case 3:\n return $number . 'rd';\n default:\n return $number . 'th';\n }\n }", "public function classify( $value ) {\n\t\t$search = array( '_', '-', '.', '/' );\n\n\t\treturn str_replace( ' ', '_', $this->title( str_replace( $search, ' ', $value ) ) );\n\t}", "static public function SQLfrag_CatNum() {\n\t$sqlDept = vctDepts::SQLfrag_CatNum();\n\treturn \"CONCAT($sqlDept,'-',UPPER(t.CatKey))\";\n//\treturn \"UPPER(CONCAT_WS('-',s.CatKey,d.CatKey,t.CatKey))\";\n }", "public function getCategoryId(): string\n {\n return $this->categoryId;\n }", "public static function classify($value)\n\t{\n\t\t$search = array('_', '-', '.', '/');\n\n\t\treturn str_replace(' ', '_', static::title(str_replace($search, ' ', $value)));\n\t}", "public function getCategoryName($category_value)\n {\n $category_name='';\n $categories=explode(\",\",$category_value);\n $categories_array=$this->_arrayDb->loadArrayv2(\"EP_ARTICLE_CATEGORY\", $this->_lang);\n $cnt=0;\n foreach($categories as $category)\n {\n if($cnt==4)\n break;\n $category_name.=$categories_array[$category].\", \";\n $cnt++;\n }\n $category_name=substr($category_name,0,-2);\n return $category_name;\n }", "abstract protected function getRankingName();", "function select_string($n) {\n $string = $this->get_plural_forms();\n $string = str_replace('nplurals',\"\\$total\",$string);\n $string = str_replace(\"n\",$n,$string);\n $string = str_replace('plural',\"\\$plural\",$string);\n\n $total = 0;\n $plural = 0;\n\n eval(\"$string\");\n if ($plural>=$total) $plural = 0;\n return $plural;\n }", "function get_category_id( $cat_name ){\n\t$term = get_term_by( 'name', $cat_name, 'category' );\n\treturn $term->term_id;\n}", "function get_category_id( $cat_name ){\n\t$term = get_term_by( 'name', $cat_name, 'category' );\n\treturn $term->term_id;\n}", "public function transform($category)\n {\n if (empty($category)) {\n return '';\n }\n\n if (is_numeric($category)) return $category;\n else return $category->getId();\n }", "private function threedigits($num)\n { if($this->discrete[substr($num,0,1)]!=\"\" && $this->twodigits(substr($num,1,2))!=\"\")\n return $this->discrete[substr($num,0,1)].' hundred and '.$this->twodigits(substr($num,1,2));\n else if($this->discrete[substr($num,0,1)]!=\"\")\n return $this->discrete[substr($num,0,1)].' hundred';\n else\n return \"\";\n }", "public function getCategoryName($categoryId) {\n\t\ttry {\n\t\t\t$categoryName = DB::select('SELECT categoryName from categories WHERE categoryId=' . $categoryId);\n\t\t\treturn $categoryName[0]->categoryName;\n\n\t\t} catch (\\Exception $ex) {\n\t\t\tprint_r($ex->getMessage());\n\n\t\t} catch (Exception $ex) {\n\t\t\tprint_r($ex->getMessage());\n\n\t\t}\n\t}", "public static function getSuffix($number)\n {\n if($number < 1){ return NULL;}\n\n $ends = array('th', 'st', 'nd', 'rd', 'th', 'th', 'th', 'th', 'th', 'th');\n if ((($number % 100) >= 11) && (($number % 100) <= 13))\n return $number . '<sup>th</sup>';\n else\n return $number . '<sup>' . $ends[$number % 10] . '</sup>';\n }", "public static function number_to_position_word($number){\n if($number == NULL || $number == ''){\n\n echo \"Not Applicable\";\n return false;\n\n }else{\n switch ($number){\n case \"1\" :\n\n echo \"First\";\n\n break;\n\n case \"2\" :\n\n echo \"Second\";\n\n break;\n\n case \"3\" :\n\n echo \"Third\";\n\n break;\n\n case \"4\" :\n\n echo \"Fourth\";\n\n break;\n\n case \"5\" :\n\n echo \"Fifth\";\n\n break;\n\n }\n\n } \n }", "public static function getStateName($stateNumber)\n {\n $locale = app()->getLocale();\n switch ($locale) {\n case Language::ARABIC:\n switch ($stateNumber) {\n case self::REVIEW:\n return \"قيد المراجعة\";\n break;\n case self::ACCEPT:\n return \"قبول\";\n break;\n case self::REJECT:\n return \"رفض\";\n break;\n }\n break;\n case Language::ENGLISH:\n switch ($stateNumber) {\n case self::REVIEW:\n return \"Under Review\";\n break;\n case self::ACCEPT:\n return \"Accept\";\n break;\n case self::REJECT:\n return \"Reject\";\n break;\n }\n break;\n }\n\n return \"\";\n }", "private function convertToOrdinal($number)\n {\n $error_code = $this->checkParamaters($number, 'o');\n\n if ($error_code > 0) {\n return self::$error_codes[$error_code];\n }\n\n $small_number = (int) substr($number, strlen($number) - 1);\n $big_number = (int) ($number - $small_number);\n\n $string = '';\n\n // Numbers between 20 and 99.\n if ($big_number > 0 && $number > 19 && $number < 100) {\n return $this->convertToWord($big_number).' '.$this->convertToOrdinal($small_number);\n }\n\n // Numbers over 100.\n if ($number >= 100) {\n $string = $this->convertToWord(str_pad(substr($number, 0, 1), strlen($number), '0')).'th';\n\n if ($small_number > 0) {\n $string .= ' and '.$this->convertToWord($small_number);\n }\n\n return $string;\n }\n\n return $this->small_number_string[$number];\n }", "protected function determineCategoryRelationName()\n {\n // pick a name and see if it conflicts with anything\n $tryNames = config('pxlcms.generator.standard_models.category_relation_names', []);\n\n $this->categoryRelationName = null;\n\n foreach ($tryNames as $tryName) {\n\n $tryName = trim($tryName);\n\n if ( ! $this->doesRelationNameConflict($tryName)) {\n\n $this->categoryRelationName = $tryName;\n break;\n }\n }\n\n if (empty($this->categoryRelationName)) {\n $this->context->log(\n \"Unable to find a non-conflicting category relation name for model #{$this->data->module}. \"\n . \"Relation omitted.\",\n Generator::LOG_LEVEL_ERROR\n );\n }\n\n return $this->categoryRelationName;\n }", "private function getClassCategory($root) {\n\t\treturn \"Science\";\n\t}", "function deeez_cats2($category){\n$space_holder = \"\";\n$cat_string = \"\";\n\tforeach ($category as $categorysingle) {\n\t$cat_string .= $space_holder . $categorysingle->name;\n\t$space_holder = \"_\";\n\t}\n\treturn $cat_string;\n}", "public static function getCategoryId($category, $subcategory)\n {\n switch ($category) {\n case 'filmvideo':\n switch ($subcategory) {\n case 'animation':\n $category_id = self::CATEGORY_FILMVIDEO_ANIMATION;\n break;\n case 'animationserie':\n $category_id = self::CATEGORY_FILMVIDEO_ANIMATIONSERIE;\n break;\n case 'concert':\n $category_id = self::CATEGORY_FILMVIDEO_CONCERT;\n break;\n case 'documentaire':\n $category_id = self::CATEGORY_FILMVIDEO_DOCUMENTAIRE;\n break;\n case 'emissiontv':\n $category_id = self::CATEGORY_FILMVIDEO_EMISSIONTV;\n break;\n case 'film':\n $category_id = self::CATEGORY_FILMVIDEO_FILM;\n break;\n case 'serietv':\n $category_id = self::CATEGORY_FILMVIDEO_SERIETV;\n break;\n case 'spectacle':\n $category_id = self::CATEGORY_FILMVIDEO_SPECTACLE;\n break;\n case 'sport':\n $category_id = self::CATEGORY_FILMVIDEO_SPORT;\n break;\n case 'videoclips':\n $category_id = self::CATEGORY_FILMVIDEO_VIDEOCLIP;\n break;\n default:\n $category_id = self::CATEGORY_FILMVIDEO;\n break;\n }\n break;\n case 'audio':\n switch ($subcategory) {\n case 'karaoke':\n $category_id = self::CATEGORY_AUDIO_KARAOKE;\n break;\n case 'musique':\n $category_id = self::CATEGORY_AUDIO_MUSIQUE;\n break;\n case 'podcastradio':\n $category_id = self::CATEGORY_AUDIO_PODCASTRADIO;\n break;\n case 'samples':\n $category_id = self::CATEGORY_AUDIO_SAMPLES;\n break;\n default:\n $category_id = self::CATEGORY_AUDIO;\n break;\n }\n break;\n case 'application':\n switch ($subcategory) {\n case 'autre':\n $category_id = self::CATEGORY_APPLICATION_AUTRE;\n break;\n case 'formation':\n $category_id = self::CATEGORY_APPLICATION_FORMATION;\n break;\n case 'linux':\n $category_id = self::CATEGORY_APPLICATION_LINUX;\n break;\n case 'macos':\n $category_id = self::CATEGORY_APPLICATION_MACOS;\n break;\n case 'smartphone':\n $category_id = self::CATEGORY_APPLICATION_SMARTPHONE;\n break;\n case 'tablette':\n $category_id = self::CATEGORY_APPLICATION_TABLETTE;\n break;\n case 'windows':\n $category_id = self::CATEGORY_APPLICATION_WINDOWS;\n break;\n default:\n $category_id = self::CATEGORY_APPLICATION;\n break;\n }\n break;\n case 'jeuvideo':\n switch ($subcategory) {\n case 'autre':\n $category_id = self::CATEGORY_JEUVIDEO_AUTRE;\n break;\n case 'linux':\n $category_id = self::CATEGORY_JEUVIDEO_LINUX;\n break;\n case 'macos':\n $category_id = self::CATEGORY_JEUVIDEO_MACOS;\n break;\n case 'microsoft':\n $category_id = self::CATEGORY_JEUVIDEO_MICROSOFT;\n break;\n case 'nintendo':\n $category_id = self::CATEGORY_JEUVIDEO_NINTENDO;\n break;\n case 'smartphone':\n $category_id = self::CATEGORY_JEUVIDEO_SMARTPHONE;\n break;\n case 'sony':\n $category_id = self::CATEGORY_JEUVIDEO_SONY;\n break;\n case 'tablette':\n $category_id = self::CATEGORY_JEUVIDEO_TABLETTE;\n break;\n case 'windows':\n $category_id = self::CATEGORY_JEUVIDEO_WINDOWS;\n break;\n default:\n $category_id = self::CATEGORY_JEUVIDEO;\n break;\n }\n break;\n case 'ebook':\n switch ($subcategory) {\n case 'audio':\n $category_id = self::CATEGORY_EBOOK_AUDIO;\n break;\n case 'bds':\n $category_id = self::CATEGORY_EBOOK_BDS;\n break;\n case 'comics':\n $category_id = self::CATEGORY_EBOOK_COMICS;\n break;\n case 'livres':\n $category_id = self::CATEGORY_EBOOK_LIVRES;\n break;\n case 'mangas':\n $category_id = self::CATEGORY_EBOOK_MANGAS;\n break;\n case 'presse':\n $category_id = self::CATEGORY_EBOOK_PRESSE;\n break;\n default:\n $category_id = self::CATEGORY_EBOOK;\n break;\n }\n break;\n case 'emulation':\n switch ($subcategory) {\n case 'emulateurs':\n $category_id = self::CATEGORY_EMULATION_EMULATEURS;\n break;\n case 'roms':\n $category_id = self::CATEGORY_EMULATION_ROMS;\n break;\n default:\n $category_id = self::CATEGORY_EMULATION;\n break;\n }\n break;\n case 'gps':\n switch ($subcategory) {\n case 'applications':\n $category_id = self::CATEGORY_GPS_APPLICATIONS;\n break;\n case 'cartes':\n $category_id = self::CATEGORY_GPS_CARTES;\n break;\n case 'divers':\n $category_id = self::CATEGORY_GPS_DIVERS;\n break;\n default:\n $category_id = self::CATEGORY_GPS;\n break;\n }\n break;\n case 'xxx':\n switch ($subcategory) {\n case 'films':\n $category_id = self::CATEGORY_XXX_FILMS;\n break;\n case 'hentai':\n $category_id = self::CATEGORY_XXX_HENTAI;\n break;\n case 'images':\n $category_id = self::CATEGORY_XXX_IMAGES;\n break;\n default:\n $category_id = self::CATEGORY_XXX;\n break;\n }\n break;\n default:\n $category_id = false;\n break;\n }\n\n return $category_id;\n }" ]
[ "0.5417614", "0.520743", "0.5187734", "0.5062734", "0.5046812", "0.5031372", "0.4956008", "0.49444664", "0.4900403", "0.48873132", "0.48361897", "0.4803727", "0.4799904", "0.4793611", "0.47770697", "0.47741404", "0.47711176", "0.4765816", "0.47602147", "0.47515997", "0.47349864", "0.4710312", "0.47038236", "0.46901327", "0.46641463", "0.46373922", "0.46046817", "0.45880607", "0.45841914", "0.45837873", "0.45452297", "0.45419282", "0.45395786", "0.45358327", "0.4533691", "0.4522989", "0.4521118", "0.4516148", "0.44892058", "0.44886664", "0.44878203", "0.44840446", "0.44817016", "0.44742563", "0.4473068", "0.44686875", "0.44681165", "0.44629034", "0.44559476", "0.44505066", "0.4449011", "0.44450477", "0.44311425", "0.44303346", "0.4424438", "0.442433", "0.44144857", "0.44128907", "0.44028884", "0.43953186", "0.4393458", "0.4391781", "0.43889216", "0.4386541", "0.4385484", "0.43817613", "0.43730626", "0.4372363", "0.4370386", "0.43685293", "0.4362179", "0.43594652", "0.4358071", "0.43559882", "0.4346685", "0.43435836", "0.4342815", "0.4342794", "0.43425125", "0.4340944", "0.43384618", "0.43378943", "0.43348485", "0.43312845", "0.43268654", "0.43244123", "0.43243316", "0.4323449", "0.4323449", "0.43193078", "0.4315288", "0.42974725", "0.42924803", "0.4286019", "0.42851466", "0.42812797", "0.42775738", "0.42755875", "0.4274121", "0.42735657" ]
0.70032495
0
Report or log an exception. This is a great spot to send exceptions to Sentry, Bugsnag, etc.
public function report(Exception $exception) { parent::report($exception); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function report(Throwable $exception)\n {\n\n if (env('APP_ENV') !== 'local') {\n if ($exception instanceof ErrorException) {\n // $this->sendEmailToSupport($exception);\n Log::error($exception->getMessage());\n abort(500, \"There was an error while processing your request. Admin has been notified\");\n }\n }\n parent::report($exception);\n }", "public function report(Exception $e) {\n }", "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 }", "public function report()\n {\n Log::debug('Exotel Sms Exception');\n }", "public function report()\n {\n $this->logException();\n }", "public function report(Exception $exception)\n {\n\t\t\n\t\tif($this->shouldReport($exception)){\n\t\t\tif($exception instanceof ValidationException){\n\t\t\t\t$message = $exception->validator->errors()->first();\n\t\t\t}else{\n\t\t\t\t$message = $exception->getMessage();\n\t\t\t}\n\t\t\t// 有异常就发送邮件记录,不保险,可能会死循环,选择其他替代方案(存库)或第三方\n//\t\t\tbug_email($message,$exception->__toString());\n//\t\t\tbug_wechat($message,$exception->__toString());\n\t\t}\n\t\n\t\tif (app()->bound('sentry') && $this->shouldReport($exception)) {\n\t\t\tapp('sentry')->captureException($exception);\n\t\t}\n\t\t\n parent::report($exception);\n }", "public function report(Exception $e)\n {\n Log::error($e);\n\n parent::report($e);\n }", "public function report(Exception $e)\n {\n if ($this->shouldReport($e)) {\n $this->log->error($e);\n $this->dispatchSendMail($e);\n }\n }", "public function report(Exception $e)\n {\n $logger = Zilf::$container['log'];\n $logger->error($e);\n }", "public function report(Throwable $exception)\n {\n $eMessage = $exception->getMessage();\n $ignore = [\n \"Illuminate\\\\Auth\\\\AuthenticationException\",\n \"Symfony\\\\Component\\\\HttpKernel\\\\Exception\\\\NotFoundHttpException\",\n \"Symfony\\\\Component\\\\HttpKernel\\\\Exception\\\\HttpException\",\n \"Illuminate\\\\Session\\\\TokenMismatchException\",\n \"Illuminate\\\\Database\\\\Eloquent\\\\ModelNotFoundException\",\n \"Illuminate\\\\Validation\\\\ValidationException\",\n \"NotificationChannels\\\\Discord\\\\Exceptions\\\\CouldNotSendNotification\",\n \"Symfony\\Component\\HttpKernel\\Exception\\MethodNotAllowedHttpException\",\n \"Illuminate\\\\Http\\\\Exceptions\\\\ThrottleRequestsException\",\n ];\n\n try {\n if (!in_array(get_class($exception), $ignore) && $eMessage != '') {\n if (\n config('services.discord.active') === 'ignore' ||\n (config('services.discord.active') === true && config('app.debug') === false)\n ) {\n DiscordNotificationQueueElement::exception($exception);\n }\n }\n } catch (Exception $ex) {\n }\n parent::report($exception);\n }", "public function report(Exception $exception)\n {\n $this->sendException($exception, NULL);\n parent::report($exception);\n }", "public function report(Exception $e)\n {\n parent::report($e);\n }", "public function report(Exception $e)\n {\n parent::report($e);\n }", "public function report(Exception $e)\n {\n parent::report($e);\n }", "public function report(Exception $e)\n {\n parent::report($e);\n }", "public function report(Exception $e)\n {\n parent::report($e);\n }", "public function report(Exception $e)\n {\n parent::report($e);\n }", "public function report(Exception $e)\n {\n parent::report($e);\n }", "public function report(Exception $e)\n {\n parent::report($e);\n }", "public function report(Exception $e)\n {\n parent::report($e);\n }", "public function report(Exception $e)\n {\n parent::report($e);\n }", "public function report(Exception $exception)\r\n {\r\n parent::report($exception);\r\n }", "public function report(Exception $exception)\n\t{\n\t\tparent::report($exception);\n\t}", "protected function reportException(Exception $e)\n {\n $this->app[ExceptionHandler::class]->report($e);\n }", "public function report(Exception $e){\n\n //send email exception\n $this->sendEmailException($e); \n return parent::report($e);\n \n }", "public function report(Exception $e)\n {\n if ($this->shouldntReport($e)) {\n return;\n }\n\n $this->log->error($e);\n }", "public function report(Exception $exception)\n {\n if (env(\"PRODUCTION\") == 1) {\n if ($this->shouldReport($exception)) { \n $this->sendEmail($exception); // sends an email\n }\n }\n\n parent::report($exception);\n }", "public function report(Exception $e) : void\n {\n parent::report($e);\n }", "public function report(Exception $e)\n {\n if (!config('span', null)) {\n LumenTracer::setSpan('report exception', LumenTracer::getJaegerHeaders());\n }\n $info = [\n 'error_file' => $e->getFile(),\n 'error_line' => $e->getLine(),\n 'error_message' => $e->getMessage(),\n 'error_code' => $e->getCode(),\n 'trace_string' => $e->getTraceAsString(),\n ];\n set_log($info);\n info('----error----', $info);\n LumenTracer::flush();\n parent::report($e);\n dieJson(20002, '系统出错');\n\n }", "public function report (Exception $exception) {\n parent::report ($exception);\n }", "public function report(Exception $exception)\n\n {\n\n parent::report($exception);\n\n }", "abstract protected function logException(\\Exception $ex);", "public function report(Throwable $exception)\n {\n if ($this->shouldReport($exception)) {\n $this->sendEmail($exception); // sends an email\n }\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 report(Exception $exception)\n {\n if (app()->bound('sentry') && $this->shouldReport($exception)) {\n app('sentry')->captureException($exception);\n }\n if($exception instanceof \\Illuminate\\Database\\QueryException){\n Log::critical(\"Database exception: \\n \".$exception->getMessage());\n return;\n }\n parent::report($exception);\n }", "protected function handleException(Exception $exception) {\n\n $client = $this->startClient();\n\n Yii::log('sending exception report to Airbrake');\n $client->notifyOnException($exception);\n \n parent::handleException($exception);\n }", "public function report(Throwable $e)\n {\n if (App::environment() != 'testing') {\n $this->incidentCode = Str::uuid()->toString();\n $exceptionClass = get_class($e);\n\n switch ($exceptionClass) {\n case AuthenticationException::class:\n case AuthorizationException::class:\n Log::warning($e->getMessage(), [\n 'incident_code' => $this->incidentCode,\n 'context' => ['url' => url()->current()]\n ]);\n break;\n case NotFoundHttpException::class:\n $message = 'HTTP 404 Not Found';\n\n Log::notice($message,[\n 'incident_code' => $this->incidentCode,\n 'context' => [ 'Request URI' => request()->getRequestUri()]\n ]);\n break;\n default:\n Log::emergency($e->getMessage(), [\n 'incident_code' => $this->incidentCode,\n 'context' => $e->getTrace()\n ]\n );\n break;\n }\n }\n }", "public function report(Exception $e)\n {\n if (App::environment('production') && $this->shouldReport($e)) {\n Mail::raw((string)$e, function ($message) use ($e) {\n $message->subject($e->getMessage());\n $message->from(config('mail.report_error_from.address'), config('mail.report_error_from.name'));\n $message->to(config('mail.report_error_to.address'), config('mail.report_error_to.name'));\n });\n }\n\n parent::report($e);\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 reportException(Exception $e)\n {\n msg(hsc($e->getMessage()), -1, $e->getLine(), $e->getFile());\n global $conf;\n if ($conf['allowdebug']) {\n msg('<pre>' . hsc($e->getTraceAsString()) . '</pre>', -1);\n }\n }", "public function report(Throwable $exception)\n {\n parent::report($exception);\n }", "public function report(Throwable $exception)\n {\n parent::report($exception);\n }", "public function report(Throwable $exception)\n {\n parent::report($exception);\n }", "public function report(Throwable $exception)\n {\n parent::report($exception);\n }", "public function report(Throwable $exception)\n {\n parent::report($exception);\n }", "public function report(Throwable $exception)\n {\n parent::report($exception);\n }", "public function report(Throwable $exception)\n {\n parent::report($exception);\n }", "public function report(Throwable $exception)\n {\n parent::report($exception);\n }", "public function report(Throwable $exception)\n {\n parent::report($exception);\n }", "public function report(Throwable $exception)\n {\n parent::report($exception);\n }", "public function report(Throwable $exception)\n {\n parent::report($exception);\n }", "public function report(Throwable $exception)\n {\n parent::report($exception);\n }", "public function report(Throwable $exception)\n {\n parent::report($exception);\n }", "public function report(Throwable $exception)\n {\n parent::report($exception);\n }", "public function report(Throwable $exception)\n {\n parent::report($exception);\n }", "public function report(Throwable $exception)\n {\n parent::report($exception);\n }", "public function report(Throwable $exception)\n {\n parent::report($exception);\n }", "public function report(Throwable $exception)\n {\n parent::report($exception);\n }", "public function report(Throwable $exception)\n {\n parent::report($exception);\n }", "public function report(Throwable $exception)\n {\n parent::report($exception);\n }", "protected function reportException(\\Throwable $e)\n {\n $this->app[ExceptionHandler::class]->report($e);\n }", "public function report(Exception $e)\n {\n if ($this->shouldntReport($e)) {\n return;\n }\n\n try {\n $logger = $this->container->make(LoggerInterface::class);\n } catch (Exception $ex) {\n throw $e; // throw the original exception\n }\n\n $logger->error($e);\n }", "public function report(Throwable $exception)\n {\n if (!$this->shouldReport($exception)) { return; }\n \\Log::error( $exception->getMessage() . \"\\t\" . $exception->getMessage() . \"\\t\" . $exception->getFile() . \"\\t\" . $exception->getLine() . \"\\t\" . get_class($exception) );\n //parent::report($exception);\n }", "public function report(Exception $e)\n {\n// Mail::send('errors.tracker', ['e' => $e], function ($message) {\n// $message->from('[email protected]', 'Dream House International');\n// $message->to('[email protected]', 'soporte')->subject('Error Tracker');\n// });\n return parent::report($e);\n }", "public function report(\\Throwable $e): void\n {\n parent::report($e instanceof ApiException ? $e->toReport() : $e);\n }", "public function report(Throwable $exception): void\n {\n parent::report($exception);\n }", "public static function sendException(\\Throwable $exception): void\n {\n if (!static::hasNewRelic()) {\n return;\n }\n\n $exceptionClass = get_class($exception);\n if (in_array($exceptionClass, static::$ignoredExceptions)) {\n return;\n }\n\n newrelic_notice_error($exception);\n }", "protected function reportException(\\Throwable $e): void\n {\n $this->app[ExceptionHandler::class]->report($e);\n }", "public function report(Exception $exception)\n {\n if (app()->runningInConsole()) {\n $input = new ArgvInput();\n $botMessage = [\n 'type' => '[command]',\n 'time' => date('Y-m-d H:i:s'),\n 'command' => (string)$input,\n 'code' => $exception->getCode(),\n 'message' => $exception->getMessage(),\n 'trace' => $exception->getTrace()[0],\n ];\n $botMessage = json_encode($botMessage, JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE);\n Log::error($botMessage);\n dispatch(new AlarmbotJob('technical', $botMessage));\n\n }\n parent::report($exception);\n }", "public function report(Exception $e)\n\t{\n\t\t// Bugsnag support OOTB\n\t\tif (app()->bound('bugsnag') && $this->shouldReport($e) && empty($e->confidential))\n\t\t{\n\t\t\tapp('bugsnag')->notifyException($e, null, \"error\");\n\t\t}\n\n\t\t// Strip stack trace from VocalogicException\n\t\tif (($e instanceof VocalogicException) && $this->shouldReport($e)\n\t\t\t&& !config('vocalogic.logVocalogicExceptionStackTrace', false))\n\t\t{\n\t\t\t$message = head(explode(\"\\n\", (string) $e));\n\t\t\treturn $this->log->error($message);\n\t\t}\n\n\t\treturn parent::report($e);\n\t}", "public function failed(\\Exception $e)\n {\n report($e);\n }", "public function failed(Throwable $exception)\n {\n dispatch(new SendBySes($this->emailLog));\n }", "function exception_handler($ex) {\n // now let the plugin send the exception to client\n $this->send_error($ex);\n // not much else we can do now, add some logging later\n exit(1);\n }" ]
[ "0.7318765", "0.72908765", "0.71845585", "0.7105745", "0.7043648", "0.69846135", "0.6970913", "0.6940964", "0.687667", "0.6841767", "0.6790746", "0.6757035", "0.6757035", "0.6757035", "0.6757035", "0.6757035", "0.6757035", "0.6757035", "0.6757035", "0.6757035", "0.6757035", "0.6730407", "0.6672915", "0.6672791", "0.66491616", "0.6642951", "0.6639349", "0.66352063", "0.661748", "0.66116536", "0.66079175", "0.6570163", "0.64714813", "0.64681274", "0.64681274", "0.646719", "0.6450352", "0.6447026", "0.6446607", "0.64393204", "0.63977975", "0.6391505", "0.6391505", "0.6391505", "0.6391505", "0.6391505", "0.6391505", "0.6391505", "0.6391505", "0.6391505", "0.6391505", "0.6391505", "0.6391505", "0.6391505", "0.6391505", "0.6391505", "0.6391505", "0.6391505", "0.6391505", "0.6391505", "0.6391505", "0.63674283", "0.63640505", "0.6348917", "0.633648", "0.632654", "0.62953717", "0.6266167", "0.6245788", "0.62435246", "0.6234818", "0.6196636", "0.6184543", "0.6184306" ]
0.66841614
46
Render an exception into an HTTP response.
public function render($request, Exception $exception) { if ($exception instanceof WalletBalanceIsNegativeException) { $messageBag = new MessageBag(['wallet' => 'Not enough money.']); return redirect()->back()->withErrors($messageBag, 'flash'); } if ($exception instanceof InaccessibleLocationException) { $messageBag = new MessageBag(['location' => 'This location is inaccessible.']); return redirect()->back()->withErrors($messageBag, 'flash'); } if ($exception instanceof FeatureNotSupportedException) { $messageBag = new MessageBag(['feature' => 'This feature hasn\'t been implemented yet. Sorry!']); return redirect()->back()->withErrors($messageBag, 'flash'); } return parent::render($request, $exception); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function render(ServerRequestInterface $request, Throwable $exception): ResponseInterface;", "public function render($request, Throwable $e): Response\r\n {\r\n if($this->app->isDebug()){\r\n return parent::render($request, $e);\r\n }else{\r\n $data = [\r\n 'code' => $e->getCode(),\r\n 'message' => $e->getMessage(),\r\n ];\r\n if(method_exists($e, \"getStatusCode\")){\r\n $this->httpStatus = $e->getStatusCode();\r\n }\r\n $this->httpHeaders = $e->getHeaders();\r\n return $request->isAjax() ? Response::create($data, 'json', $this->httpStatus)->header($this->httpHeaders) : Response::create(config('app.exception_tmpl'), 'view', $this->httpStatus)->header($this->httpHeaders)->assign($data);\r\n\r\n }\r\n \r\n }", "public function render($request, Exception $e)\n {\n return parent::render($request, $e);\n }", "public function render($request, Exception $e)\n {\n return parent::render($request, $e);\n }", "public function render($request, Exception $e)\n {\n $rendered = parent::render($request, $e);\n\n // 拦截数据库异常\n if ($e instanceof QueryException)\n {\n \\Utils\\Log::danger('数据库异常', [\n 'Exception' => \\Utils\\Util::buildException($e)\n ]);\n return \\Utils\\Response::response(\n \\Utils\\ErrorCode::ERROR,\n '服务器异常',\n env('DEBUG') ? \\Utils\\Util::buildException($e) : []\n );\n }\n // 拦截Validator异常 \n elseif ($e instanceof ValidationException) {\n $errors = $e->errors();\n return \\Utils\\Response::response(\n \\Utils\\ErrorCode::VALIDATOR_ERROR,\n current($errors)[0],\n $e->errors()\n );\n }\n // 拦截Redis异常 \n elseif ($e instanceof ConnectionException) {\n \\Utils\\Log::danger('Redis数据库异常', [\n 'Exception' => \\Utils\\Util::buildException($e)\n ]);\n return \\Utils\\Response::response(\n \\Utils\\ErrorCode::ERROR,\n '服务器异常',\n env('DEBUG') ? \\Utils\\Util::buildException($e) : []\n );\n } elseif($e instanceof HttpException) {\n return $rendered;\n }\n // 其他异常\n else {\n try {\n if (property_exists($e, 'payload'))\n {\n $payload = $e->payload;\n } else {\n $payload = [];\n }\n switch ($rendered->getStatusCode()) {\n case 404:\n return \\Utils\\Response::response(\n \\Utils\\ErrorCode::NOT_FOUND,\n $e->getMessage(),\n $payload\n );\n break;\n case 405:\n return \\Utils\\Response::response(\n \\Utils\\ErrorCode::NOT_ALLOW_METHOD,\n '不支持该请求方式',\n $payload\n );\n break;\n case 500:\n if ($e->getCode())\n {\n return \\Utils\\Response::response(\n $e->getCode(), \n $e->getMessage(), \n $payload\n );\n } else {\n \\Utils\\Log::warning(\n $e->getMessage(), \n \\Utils\\Util::buildException($e)\n );\n return \\Utils\\Response::response(\n \\Utils\\ErrorCode::DEBUG_ERROR,\n $e->getMessage(),\n \\Utils\\Util::buildException($e)\n );\n }\n break;\n default:\n \\Utils\\Log::warning(\n $e->getMessage(), \n \\Utils\\Util::buildException($e)\n );\n return \\Utils\\Response::response(\n \\Utils\\ErrorCode::DEBUG_ERROR,\n $e->getMessage(),\n \\Utils\\Util::buildException($e)\n );\n break;\n }\n } catch(\\Exception $e)\n {\n return \\Utils\\Response::response(\\Utils\\ErrorCode::ERROR, $e->getMessage(), $payload);\n }\n }\n }", "public function render($request, Exception $e)\n {\n $e = $this->prepareException($e);\n\n if ($e instanceof HttpResponseException) {\n return $e->getResponse();\n }\n\n return $this->prepareResponse($request, $e);\n }", "protected function renderHttpResponse(Exception $e)\n {\n $this->getExceptionHandler()->render($e);\n }", "public function render($request, Exception $e)\n {\n $e = $this->prepareException($e);\n return parent::render($request, $e);\n }", "public function render($request, Exception $exception) {\n // regular exception\n if ($this->handler->willHandle($exception)) {\n return parent::render($request, $exception);\n }\n\n // api exception\n if (!$message = $exception->getMessage()) {\n $message = sprintf('%d %s', $exception->getStatusCode(), Response::$statusTexts[$exception->getStatusCode()]);\n }\n\n $statusCode = $exception->getStatusCode();\n $headers = $exception->getHeaders();\n\n $response = ['message' => $message, 'status_code' => $statusCode];\n\n if ($exception instanceof ApiException && $exception->hasErrors()) {\n $response['errors'] = $exception->getErrors();\n }\n\n if ($code = $exception->getCode()) {\n $response['code'] = $code;\n }\n\n if ($this->debug) {\n $response['debug'] = [\n 'line' => $exception->getLine(),\n 'file' => $exception->getFile(),\n 'class' => get_class($exception),\n 'trace' => explode(\"\\n\", $exception->getTraceAsString())\n ];\n }\n\n return new Response($response, $statusCode, $headers);\n }", "public function render($request, Exception $e)\n\t{\n\t\tif (!config('app.debug') || ($request->ajax() && !config('app.ajax_debug'))) {\n\n\t\t\tif (!$this->isHttpException($e)) {\n\n\t\t\t\tif ($e instanceof TokenMismatchException) {\n\t\t\t\t\t$e = new HttpException(SymfonyResponse::HTTP_UNAUTHORIZED, \"TokenMismatch\");\n\n\t\t\t\t} else if ($e instanceof ModelNotFoundException) {\n\t\t\t\t\t// thrown when findOrFail is called on a model\n\t\t\t\t\t$e = new NotFoundHttpException();\n\n\t\t\t\t} else {\n\t\t\t\t\t$e = new HttpException(SymfonyResponse::HTTP_INTERNAL_SERVER_ERROR, 'Internal Server Error');\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn self::responseForHTTPException($request, $e);\n\t\t}\n\t\treturn parent::render($request, $e);\n\t}", "public function render($request, Exception $e)\n {\n if($this->isReadable($e)){\n if($e instanceof ValidationException){\n //校验异常,并且确保是ajax请求的才按照我们的格式输出,否则按照框架的规则输出页面\n if($e->getResponse() instanceof RedirectResponse){\n return parent::render($request, $e);\n }\n $errors = $this->getValidationError($e);\n return responseFailed(-1,$errors);\n }else{\n return responseError($e);\n }\n }\n return parent::render($request, $e);\n }", "public function render($request, Exception $e)\n {\n if ($e instanceof CustomException) {\n return response()->view('errors.custom', [], 500);\n }\n\n return parent::render($request, $e);\n }", "public function render($request, Exception $e)\n {\n if (\\Config::get('app.debug') || Input::get('raw')) {\n // Log exception\n $this->report($e);\n\n return parent::render($request, $e);\n }\n\n $ec = get_class($e);\n\n if (array_key_exists($ec, $this->exceptionResponses)) {\n $data = $this->exceptionResponses[$ec];\n $code = isset($data['code']) ? $data['code'] : null;\n\n if (!$code) {\n if (method_exists($e, 'getStatusCode')) {\n $code = $e->getStatusCode();\n } else {\n $code = 400;\n }\n }\n\n return Controller::respondAPI('', Controller::ERROR, $data['message'], $code);\n }\n\n // We only want to send the actual exception message if debug mode is enabled\n $message = Controller::getExceptionMessage($e);\n $code = $e instanceof HttpException ? $e->getStatusCode() : 500;\n // Send standard error message\n return Controller::respondAPI('', Controller::ERROR, $message, $code);\n }", "public function render($request, Exception $e)\n\t{\n\t\tif ($this->isHttpException($e))\n\t\t{\n\t\t\treturn $this->renderHttpException($e);\n\t\t}\n\t\telse if ($e instanceof OAuthException)\n\t\t{\n\t\t\treturn $this->renderOAuthException($e);\n\t\t}\n\t\telse if ($e instanceof AuthException)\n\t\t{\n\t\t\treturn $this->notifyAuthException($e);\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn parent::render($request, $e);\n\t\t}\n\t}", "public function render($request, Exception $exception)\n {\n // dd($exception);\n $data = $this->getExceptionData($exception);\n if ($data !== false) {\n return $this->makeResponse($exception, $data[1], $data[0], $data[2]);\n }\n\n return $this->getResponse($exception);\n }", "public function render()\n {\n if(strstr($this->getMessage(), 'PDOException: SQLSTATE[')) {\n if(preg_match('/SQLSTATE\\[(\\w+)\\]:(.*):(\\s+\\d)(.*):(.*)/', $this->getMessage(), $matches) === false) {\n $this->message = 'Generic SQL exception unhandled';\n }\n else {\n $this->message = empty($matches[5]) ? 'Generic SQL exception unhandled' : trim($matches[5]);\n }\n }\n else {\n $this->message = 'Generic SQL exception unhandled';\n }\n\n return response()->json(['message' => $this->getMessage()], 409);\n }", "protected function renderHttpException(HttpException $e)\n {\n $status = $e->getStatusCode();\n\n /* view()->replaceNamespace('errors', [\n resource_path('views/errors'),\n __DIR__.'/views',\n ]);\n\n if (view()->exists(\"errors::{$status}\")) {\n return response()->view(\"errors::{$status}\", ['exception' => $e], $status, $e->getHeaders());\n } else {*/\n return $this->convertExceptionToResponse($e);\n// }\n }", "public function render($request, Exception $exception)\n {\n $status = Response::HTTP_INTERNAL_SERVER_ERROR;\n $message = $exception->getMessage();\n\n if ($exception->getCode()) {\n $status = $exception->getCode();\n }\n\n if (!Arr::get(Response::$statusTexts, $status))\n {\n if (app()->environment(['production', 'prod'])) {\n $message = 'Sorry! Looks like we have a problem on the server. Please try again later.';\n }\n $status = 500;\n }\n\n $response = [\n 'code' => $status,\n 'type' => 'error',\n 'message' => $message\n ];\n\n return response()->json($response, Response::HTTP_INTERNAL_SERVER_ERROR);\n }", "public function render($request, Exception $e)\n {\n ////////////////////////////////////////////////// starts: KHEENGZ CUSTOME CODE ///////////////////////////////////////\n //Invalid Record Request Exception\n if ($e instanceof ModelNotFoundException) {\n return response()->view('errors.custom', [\n 'code'=>'304.1',\n 'header'=>'Invalid Record Request',\n 'message'=>'The Record You Are Looking For Does Not Exist'\n ]);\n }\n //File For Download Not Found Exception\n if ($e instanceof FileNotFoundException){\n return response()->view('errors.custom', [\n 'code'=>'501.4',\n 'header'=>'File Not Found',\n 'message'=>'The File You Are Looking For Or Trying To Download Does Not Exist On Our Server'\n ]);\n }\n ////////////////////////////////////////////////// end: KHEENGZ CUSTOME CODE ///////////////////////////////////////\n\n return parent::render($request, $e);\n }", "public function render($request, Exception $exception)\n {\n // raises before render\n $this->beforeRender($request, $exception);\n // get exception response data\n list($status, $error) = $this->getExceptionError($exception);\n\n return $this->makeResponse($error, $status);\n }", "public function render($request, Exception $e)\n {\n //Validation\n if ($e instanceof ValidationException) {\n return $e->getResponse();\n }\n\n // AuthorizationException\n if ($e instanceof AuthorizationException) {\n return response()->json([\n 'errors' => [\n 'title' => 'Unauthorized'\n ]\n ], 401);\n }\n\n //Http Exceptions\n if ($e instanceof HttpException) {\n $response['message'] = $e->getMessage() ?: Response::$statusTexts[$e->getStatusCode()];\n $response['status'] = $e->getStatusCode();\n\n return response()->json($response, $response['status']);\n }\n\n //Default Exception Response\n $response = [\n 'message' => 'Whoops! Something went wrong.',\n 'status' => 500\n ];\n\n if ($this->isDebugMode()) {\n $response['debug'] = [\n 'message' => $e->getMessage(),\n 'exception' => get_class($e),\n 'code' => $e->getCode(),\n 'file' => $e->getFile(),\n 'line' => $e->getLine(),\n ];\n\n //clean trace\n foreach ($e->getTrace() as $item) {\n if (isset($item['args']) && is_array($item['args'])) {\n $item['args'] = $this->cleanTraceArgs($item['args']);\n }\n $response['debug']['trace'][] = $item;\n }\n }\n\n return response()->json($response, $response['status']);\n }", "public function render($request, Exception $e)\n {\n $code = 5000;\n /*逻辑代码异常*/\n if ($e instanceof LogicException) {\n $code = $e->getMessage();\n $message = config('apicode.' . $code);\n } elseif ($e instanceof ValidationException) { // 验证异常\n// $errors = $e->errors();\n// if (is_array($errors) && !empty($errors)) {\n// $code = 5001;\n// foreach ($errors as $k => $v) {\n// $data[] = $v[0];\n// }\n// }\n $errorinfo = array_slice($e->errors(), 0, 1, false);\n $msg = array_column($errorinfo, 0);\n $message = $msg[0];\n } else {\n //prod 环境,统一返回内部错误\n $errFile = $e->getFile();\n $errLine = $e->getLine();\n $errMsg = $e->getMessage();\n $data = [\n 'errorMsg' => $errMsg,\n 'errLine' => $errLine,\n 'errFile' => $errFile\n ];\n }\n\n return response()->json([\n 'code' => $code,\n 'message' => $message ?? '内部服务器错误',\n 'data' => $data ?? [],\n ], 200);\n\n return $this->responseMessage($code);\n }", "public function render($request)\r\n\t{\r\n\t\t// Create json response\r\n\t\treturn response()->json([\r\n\t\t\t'message' => $this->message ?? 'Unknown Exception.',\r\n\t\t], ($this->code >= 100 && $this->code < 600) ? $this->code : 422);\r\n\t}", "public function render($request, Throwable $exception)\n {\n\n if (env('APP_DEBUG') == true) {\n //return parent::render($request, $exception);\n }\n $rendered = parent::render($request, $exception);\n $this->convertDefaultException($exception);\n\n $this->convert($exception, [\n PageNotFoundException::class => ResourceNotFoundException::class,\n ]);\n\n if (!$exception instanceof HttpException) {\n $errorCode = 'internal_error';\n\n if ($exception instanceof OAuthServerException) {\n $errorCode = $exception->getPrevious() ? $exception->getPrevious()->getErrorType() : null;\n } else if ($exception instanceof ThrottleRequestsException) {\n $errorCode = 'too_many_request';\n }\n\n $exception = new ApiHttpException($rendered->getStatusCode(), $errorCode, $exception->getMessage(), $this->getHeaders($exception));\n\n }\n return $this->renderResponse($exception);\n }", "public function render($request, Throwable $e): Response\n {\n if ($e instanceof \\think\\Exception) {\n return show($e->getCode(), $e->getMessage());\n }\n if ($e instanceof \\think\\exception\\HttpResponseException) {\n return parent::render($request, $e);\n }\n if (method_exists($e, \"getStatusCode\")){\n $httpStatus = $e->getStatusCode();\n }else{\n $httpStatus = $this->httpStatus;\n }\n // 添加自定义异常处理机制\n return show(config(\"status.error\"), $e->getMessage(), [], $httpStatus);\n }", "public function render($request, Exception $exception)\n {\n return parent::render($request, $exception);\n }", "public function render($request, Exception $exception)\n {\n return parent::render($request, $exception);\n }", "public function render($request, Exception $exception)\n {\n return parent::render($request, $exception);\n }", "public function render($request, Exception $exception)\n {\n return parent::render($request, $exception);\n }", "protected function renderHttpException(HttpException $e)\n {\n $status = $e->getStatusCode();\n $errorMessages = $this->handleErrorMessages($status);\n\n return response()->view(get_the_view_path('errors.index'), ['errorMessages' => $errorMessages], $status);\n }", "public function render($request, Throwable $exception)\n {\n\n $error = new \\stdClass();\n $error->code = $status = 500;\n $error->message = 'Internal Server Error.';\n\n switch (true) {\n case $exception instanceof ModelNotFoundException:\n $model = str_replace('App\\\\', '', $exception->getModel());\n $status = $error->code = 404;\n $error->message = \"{$model} not found.\";\n break;\n\n case $exception instanceof NotFoundHttpException:\n $error->code = $exception->getStatusCode();\n $error->message = 'Page not found.';\n\n break;\n\n case $exception instanceof AuthenticationException:\n $status = $error->code = 401;\n $error->message = $exception->getMessage();\n break;\n\n case $exception instanceof CustomException:\n $status = $error->code = 400;\n $error->message = $exception->getMessage();\n break;\n\n default:\n $error->code = method_exists($exception,'getStatusCode') ? $exception->getStatusCode() : $status;\n $error->message = method_exists($exception,'getMessage') ? $exception->getMessage() : $error->message;\n break;\n }\n\n $response = ['success' => false, 'error' => $error ];\n Log::debug('Exception: '.json_encode($error, JSON_UNESCAPED_UNICODE));\n\n return response()->json($response, $status);\n }", "public function render($request, Exception $e)\n {\n /*if ($e instanceof ModelNotFoundException) {\n $e = new NotFoundHttpException($e->getMessage(), $e);\n }\n return parent::render($request, $e);*/\n $debug = env('APP_DEBUG');\n if ($debug == 0) {\n if ($this->isHttpException($e)) {\n return $this->renderHttpException($e);\n } else if ($e instanceof NotFoundHttpException) {\n return response()->view('errors.404', [], 400);\n }elseif ($e instanceof FatalErrorException) {\n return response()->view('errors.500', [], 500);\n }elseif ($e instanceof handleError) {\n return response()->view('errors.500', [], 500);\n }elseif ($e instanceof ModelNotFoundException) {\n return response()->view('errors.500', [], 500);\n }else\n {\n return response()->view('errors.500', [], 500);\n }\n }else if($debug == 1) { //si es verdadero esta en modo debug y muestra el error\n if ($e instanceof ModelNotFoundException) {\n $e = new NotFoundHttpException($e->getMessage(), $e);\n }\n return parent::render($request, $e);\n }\n }", "public function render($request, Exception $exception)\n {\n //HTTP Error Code 405\n if ($exception instanceof MethodNotAllowedHttpException) {\n $status = Response::HTTP_METHOD_NOT_ALLOWED;\n $exception = new MethodNotAllowedHttpException(\n [],\n 'HTTP_METHOD_NOT_ALLOWED',\n $exception\n );\n }\n //HTTP Error Code 404\n elseif ($exception instanceof NotFoundHttpException) {\n $status = Response::HTTP_NOT_FOUND;\n $exception = new NotFoundHttpException('HTTP_NOT_FOUND', $exception);\n }\n //HTTP Error Code 403\n elseif ($exception instanceof AuthorizationException) {\n $status = Response::HTTP_FORBIDDEN;\n $exception = new AuthorizationException('HTTP_FORBIDDEN', $status);\n } else {\n $status = $exception->getCode() ? $exception->getCode() : Response::HTTP_INTERNAL_SERVER_ERROR;\n }\n\n\n return response()->json(\n [\n \"error\" => 'ERROR',\n 'code' => $status,\n 'message' => $exception->getMessage()\n ],\n $status\n );\n }", "public function render($request, Exception $e)\n {\n if ($request->ajax() || $request->wantsJson()) {\n $message = null;\n\n if ($e instanceof HttpException) {\n $code = 404;\n $message = 'The requested resource could not be found.';\n } else {\n $code = 500;\n }\n\n return response()\n ->json([\n 'message' => in_array(app()->environment(), ['production']) ? 'Check error logs for detailed messages' : ($message ?: ($e->getMessage() ?: strval($e))),\n 'exception' => get_class($e),\n ], $code)\n ->header('Access-Control-Allow-Origin', '*')\n ->header('Access-Control-Allow-Methods', 'POST, GET, OPTIONS, PUT, DELETE')\n ->header('Access-Control-Allow-Headers', 'Content-Type, Accept, Authorization, X-Requested-With')\n ->header('Access-Control-Max-Age', '28800');\n }\n\n return parent::render($request, $e);\n }", "public function render($request, Exception $exception)\n { \n if ($this->shouldReport($exception)){\n $this->sendException($exception, $request);\n }\n return parent::render($request, $exception);\n }", "public function render($request, Exception $exception)\n {\n if (\n !$request->expectsJson()\n || empty($this->formatApiResponse)\n || !$this->formatApiResponse\n ) {\n return parent::render($request, $exception);\n }\n\n return response()->error(\n $exception->getMessage(),\n $this->getStatus($exception),\n $this->getErrors($exception)\n );\n }", "protected function renderAsError() {}", "public static function exception_handler($exception) { \n ResponseFactory::send($exception->getMessage()); //Send exception message as response.\n }", "public function render($request, Exception $exception)\n {\n $errorCode = null;\n $httpResponseCode = null;\n $errorMsg = [];\n $errorArray = null;\n if ($exception instanceof AppException) {\n $errorCode = $exception->getCode();\n $errorMsg = $exception->getMessage();\n $httpResponseCode = $exception->getHttpResponseCode();\n $errorArray = $exception->getErrors();\n } else {\n return parent::render($request, $exception);\n }\n\n if (is_string($errorArray)) {\n $errorArray = null;\n }\n\n $httpResponseCode = (empty($httpResponseCode)) ? 404 : $httpResponseCode;\n $errorCode = (empty($httpResponseCode)) ? $errorCode : $httpResponseCode;\n $responseArray = $this->createErrorResponse($errorCode, $httpResponseCode, $errorMsg, $errorArray);\n\n return response($responseArray, $httpResponseCode);\n }", "public function actionException()\n {\n $this->render('exception');\n }", "public function render($request, Exception $e)\n {\n //如果$exception 是 ApiException的一个实例,则自定义返回的错误信息\n if($e instanceof ApiException){\n $result = [\n \"code\" => 9999,\n \"msg\" => $e -> getMessage(),\n \"data\" => \"\"\n ];\n return response() -> json($result);\n }\n //自定义错误页面\n if ($e instanceof ModelNotFoundException) {\n $e = new NotFoundHttpException($e->getMessage(), $e);\n }\n\n if($e instanceof \\Symfony\\Component\\Debug\\Exception\\FatalErrorException\n && !config('app.debug')) {\n return response() -> view('errors.default', [], 500);\n }\n //如果不是,则使用 父类的处理方法\n return parent::render($request, $e);\n }", "protected function render(Throwable $e, Input $input) : Response\n {\n return call_user_func($this->getRenderer(), $e, $input);\n }", "public function render($request, Throwable $e)\n {\n if ($e instanceof HttpResponseException) {\n return $e->getResponse();\n } elseif ($e instanceof ModelNotFoundException) {\n $e = new NotFoundHttpException($e->getMessage(), $e);\n } elseif ($e instanceof AuthorizationException) {\n $e = new HttpException(403, $e->getMessage());\n } elseif ($e instanceof ValidationException && $e->getResponse()) {\n return $e->getResponse();\n }\n\n if ($this->isHttpException($e)) {\n return $this->toIlluminateResponse($this->renderHttpException($e), $e);\n } else {\n return $this->toIlluminateResponse($this->convertExceptionToResponse($e), $e);\n }\n }", "private function renderOAuthException(OAuthException $e)\n\t{\n\t\tif (view()->exists('errors.403'))\n\t\t{\n\t\t\treturn response()->view('errors.403', ['message' => $e->getMessage()], 403);\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn (new SymfonyDisplayer(config('app.debug')))->createResponse($e);\n\t\t}\n\t}", "public function render($request, Throwable $e): Response\n {\n if($e instanceof \\think\\Exception){\n return json_response($e->getCode(),$e->getMessage());\n }\n if($e instanceof \\think\\exception\\HttpResponseException){\n return parent::render($request,$e);\n }\n // 添加自定义异常处理机制\n if(method_exists($e,'getStatusCode')){\n $this->httpStatusCode = $e->getStatusCode();\n }\n return json_response(config('status.error'),$e->getMessage(),[], $this->httpStatusCode);\n // 其他错误交给系统处理\n //return parent::render($request, $e);\n }", "public function render($request, Exception $exception)\n {\n\n $TraceException = [\n 'class' => get_class($exception),\n 'file' => $exception->getFile(),\n 'line_of_code' => $exception->getLine(),\n 'code' => $exception->getCode(),\n 'trace' => $exception->getTraceAsString()\n ];\n\n if ($exception instanceof ModelNotFoundException) {\n $arrModel = explode(\"\\\\\",$exception->getModel());\n $model = end($arrModel);\n return renderResponse([\n 'status' => FALSE, \n 'message' => ucfirst($model.' '.config('mamikos.message.data_not_found'))\n ],404);\n }\n\n if ($exception instanceof NotFoundHttpException) {\n return renderResponse([\n 'status' => FALSE, \n 'message' => config('mamikos.message.route_not_found'),\n // 'exception' => $TraceException\n ],404);\n }\n\n if($exception instanceof \\Illuminate\\Auth\\AuthenticationException ){\n return renderResponse([\n 'status' => FALSE, \n 'message' => $exception->getMessage()\n ],401);\n }\n\n if($exception instanceof ValidationException){\n $errors = [];\n foreach ($exception->errors() as $key => $value) {\n $errors[] = $value[0];\n\n if($key==0){break;} \n }\n return renderResponse([\n 'status' => FALSE, \n 'message' => $errors[0]\n ],400);\n }\n\n $response = [\n 'status' => FALSE,\n 'message' => $exception->getMessage(),\n 'exception' => $TraceException\n ];\n // return parent::render($request, $exception);\n return renderResponse($response, 404);\n }", "public function getResponseException(Exception $e)\n\t{\n\t\t$message = htmlentities($e->getMessage(), ENT_COMPAT, \"UTF-8\");\n\t\tswitch($this->outputFormat)\n\t\t{\n\t\t\tcase 'original':\n\t\t\t\tthrow $e;\n\t\t\tbreak;\n\t\t\tcase 'xml':\n\t\t\t\t@header(\"Content-Type: text/xml;charset=utf-8\");\n\t\t\t\t$return =\n\t\t\t\t\t\"<?xml version=\\\"1.0\\\" encoding=\\\"utf-8\\\" ?>\\n\" .\n\t\t\t\t\t\"<result>\\n\".\n\t\t\t\t\t\"\\t<error message=\\\"\".$message.\"\\\" />\\n\".\n\t\t\t\t\t\"</result>\";\n\t\t\tbreak;\n\t\t\tcase 'json':\n\t\t\t\t@header( \"Content-type: application/json\" );\n\t\t\t\t// we remove the \\n from the resulting string as this is not allowed in json\n\t\t\t\t$message = str_replace(\"\\n\",\"\",$message);\n\t\t\t\t$return = '{\"result\":\"error\", \"message\":\"'.$message.'\"}';\n\t\t\tbreak;\n\t\t\tcase 'php':\n\t\t\t\t$return = array('result' => 'error', 'message' => $message);\n\t\t\t\tif($this->caseRendererPHPSerialize())\n\t\t\t\t{\n\t\t\t\t\t$return = serialize($return);\n\t\t\t\t}\n\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\t$return = 'Error: '.$message;\n\t\t\tbreak;\n\t\t}\n\t\treturn $return;\n\t}", "public function render($request, Exception $exception)\n {\n $e = $this->prepareException($exception);\n\n if ($e instanceof HttpResponseException) {\n return $e->getResponse();\n } elseif ($e instanceof AuthenticationException) {\n $status = Response::HTTP_UNAUTHORIZED;\n $message = '認証に失敗しました。ログインしてください。';\n $errors = [];\n $trace = [];\n } elseif ($e instanceof ValidationException) {\n $status = $e->status;\n $message = Response::$statusTexts[$status];\n $errors = $e->errors();\n $trace = [];\n } elseif ($this->isHttpException($e)) {\n $status = $e->getCode();\n if ($status == 0) {\n $status = 400;\n }\n $message = $e->getMessage();\n $errors = [];\n $trace = [];\n } else {\n $code = env('APP_DEBUG', true) ? $e->getCode() : Response::HTTP_INTERNAL_SERVER_ERROR;\n if (isset($code)) {\n $code = Response::HTTP_INTERNAL_SERVER_ERROR;\n }\n $status = $code;\n $message = env('APP_DEBUG', true) ? $e->getMessage() : 'サーバエラーが発生しました。管理者に連絡してください。';\n $errors = [];\n $trace = env('APP_DEBUG', true) ? $e->getTrace() : [];\n }\n\n // ResponseApiServiceProviderが実行される前にエラーが発生した場合の対応\n if (!method_exists(response(), 'error')) {\n $app = app();\n $provide = new ResponseApiServiceProvider($app);\n $provide->boot();\n }\n\n return response()->error($message, $errors, $trace, $status);\n }", "public function render($request, Throwable $e)\n {\n if ($e instanceof MethodNotAllowedHttpException) {\n return $this->methodNotAllowed(__('errors.method_not_allowed'));\n }\n\n if ($e instanceof NotFoundHttpException) {\n return $this->notFound(__('errors.not_found'));\n }\n\n if ($e instanceof ModelNotFoundException) {\n return $this->notFound(__('errors.not_found'));\n }\n\n if ($e instanceof ValidationException) {\n return $this->failedValidation(__('errors.validation_failed'), $e->errors());\n }\n\n if ($e instanceof AuthenticationException) {\n return $this->unauthorized($e->getMessage());\n }\n\n return $this->buildResponse($e->getMessage(), 'failed', config('errors.codes.server_error'));\n }", "public function render($request, Throwable $exception)\n {\n $codigo = 500;\n $message = 'Ocorreu algum problema.';\n\n if($exception instanceof ValidationException){\n $message = $exception->errors();\n } else {\n $message = $exception->getMessage();\n\n }\n\n $resposta = ['message' => $message];\n\n if (config('app.debug')) {\n $resposta['exception'] = get_class($exception);\n $resposta['message'] = $message;\n $resposta['trace'] = $exception->getTrace();\n $resposta['line'] = $exception->getLine();\n $resposta['file'] = $exception->getFile();\n }\n\n return response()->json($resposta, $codigo);\n }", "public function render(Throwable $e)\n {\n if ($e instanceof ResourceNotFoundException) {\n // 404\n $template = $this->app->make(ViewFactory::class);\n echo $template->make('vendor/404');\n exit();\n }\n throw $e;\n }", "public function render($request, Exception $ex)\n {\n if ($request->ajax()) {\n return $this->renderAsJson($request, $ex);\n }\n\n // render HttpException as request aware ones\n if ($this->isHttpException($ex)) {\n return $this->toIlluminateResponse($this->renderRequestAwareHttpException($request, $ex), $ex);\n }\n\n return parent::render($request, $ex);\n }", "public function render()\n {\n return $this->throw();\n }", "public function render($request, Throwable $exception)\n {\n // return parent::render($request, $exception);\n\n if ($exception instanceof ValidationException) {\n return $this->convertValidationExceptionToResponse($exception, $request);\n }\n\n if ($exception instanceof ModelNotFoundException) {\n $modelo = strtolower(class_basename($exception->getModel()));\n return $this->errorResponse(\"There is no instance of {$modelo} with the specified id\", 404);\n }\n\n if ($exception instanceof AuthorizationException) {\n return $this->errorResponse(\"You do not have authorization to execute this action\", 403);\n }\n\n if ($exception instanceof NotFoundHttpException) {\n return $this->errorResponse('The specified URL was not found', 404);\n }\n\n if ($exception instanceof MethodNotAllowedHttpException) {\n return $this->errorResponse('The method specified in the request is invalid', 405);\n }\n\n if ($exception instanceof HttpException) {\n return $this->errorResponse($exception->getMessage(), $exception->getStatusCode());\n }\n\n if ($exception instanceof QueryException) {\n $codigo = $exception->errorInfo[1];\n\n if ($codigo == 1451) {\n return $this->errorResponse('The resource cannot be permanently removed because it is related to some other.', 409);\n }\n }\n\n if (config('app.debug')) {\n return parent::render($request, $exception); \n }\n\n return $this->errorResponse('Unexpected failure. Try later', 500);\n }", "public function render($request, Exception $e)\n {\n if ($this->isResponseException($e)) {\n return parent::render($request, $e);\n }\n\n if ($this->isNotFountException($e)) {\n if ($request->ajax() || $request->wantsJson()) {\n return new JsonResponse(['404: ' . $e->getMessage()], 404);\n }\n\n return response()->view('errors.404', ['exception' => $e], 404);\n }\n\n if (config('app.debug')) {\n return $this->handleInDebugMode($request, $e);\n }\n\n return $this->handleInProductionMode($request, $e);\n }", "protected function webHandleException($request, Exception $exception)\n {\n return parent::render($request, $exception);\n }", "static public function responseForHTTPException($request, HttpException $exception) {\n\n \t\tif ($request->ajax()) {\n \t\t\t\t// error message and status code\n return response($exception->getMessage(), $exception->getStatusCode());\n } else {\n\t\t \t\t$data = [\n \"statusCode\" => $exception->getStatusCode(),\n \"statusText\" => SymfonyResponse::$statusTexts[$exception->getStatusCode()],\n \"errorMsg\" => $exception->getMessage()\n ];\n return response()->view('errors.error', $data, $exception->getStatusCode());\n }\n \t}", "public function render($request, Throwable $e)\n {\n if ($e instanceof MethodNotAllowedHttpException) {\n return $this->notAllowedResponse('The method you are calling is not allowed');\n }\n\n if ($e instanceof NotFoundHttpException) {\n return $this->notFoundResponse($e->getMessage() ? $e->getMessage() : 'we could not found what you are looking for');\n }\n\n if ($e instanceof ValidationException) {\n return $this->formValidationResponse('The validation has failed', $e->errors());\n }\n\n if ($e instanceof AuthenticationException) {\n return $this->notAllowedResponse($e->getMessage());\n }\n\n if ($e instanceof AuthorizationException) {\n return $this->notAllowedResponse($e->getMessage());\n }\n\n return $this->serverErrorResponse('Sorry an error occured, we are working on it', new Exception($e->getMessage()));\n }", "public function render($request, Throwable $e): Response\n {\n // 添加自定义异常处理机制\n $massageData = Env::get('app_debug', false) ? [\n 'message' => $e->getMessage(),\n 'file' => $e->getFile(),\n 'line' => $e->getLine(),\n 'trace' => $e->getTrace(),\n 'previous' => $e->getPrevious(),\n ] : [];\n\n // 添加自定义异常处理机制\n if ($e instanceof DbException) {\n return app('json')->fail('数据获取失败', $massageData);\n } elseif ($e instanceof AuthException ||\n $e instanceof ValidateException ||\n $e instanceof ApiException ||\n $e instanceof UploadException ||\n $e instanceof AdminException\n ) {\n return app('json')->make($e->getCode() ?: 400, $e->getMessage(), $massageData);\n }\n return app('json')->make($e->getCode() ?: 400, $e->getMessage(), $massageData);\n // 其他错误交给系统处理\n// return parent::render($request, $e);\n }", "public function render($request, Exception $e)\n {\n $url = $request->url();\n if(apiStrContains($url, '/api')) {\n $message = $e->getMessage();\n if($e instanceof MethodNotAllowedHttpException) {\n $header = $e->getHeaders()['Allow'];\n $header = explode(',', $header)[0];\n $message = 'Please send '.$header.' request.';\n }\n elseif(\n $e instanceof NotFoundHttpException ||\n $e instanceof InvalidArgumentException\n ) {\n $message = 'API not found';\n }\n else if($e instanceof UnauthorizedHttpException) {\n $message = 'Login authenication failed';\n }\n elseif (\n $e instanceof BadMethodCallException ||\n $e instanceof FatalThrowableError ||\n $e instanceof QueryException\n ) {\n $message = $e->getMessage();\n }\n return apiResponse(false, 403, $message);\n }\n return parent::render($request, $e);\n\n }", "public function render($request, Exception $exception)\n {\n // Json error exceptions\n if ($request->wantsJson())\n {\n // This will replace our 404 response with a JSON response.\n if ($exception instanceof ModelNotFoundException)\n {\n return response()->json([\n 'code' => 404,\n 'message' => 'Resource not found.'\n ], 404);\n }\n // This will replace our 404 response with a JSON response.\n if ($exception instanceof ValidationException)\n {\n //dd($exception);\n return response()->json([\n 'code' => $exception->status,\n 'message' => 'The given data was invalid.',\n 'errors' => $exception->errors(),\n ], $exception->status);\n }\n }\n\n return parent::render($request, $exception);\n }", "public function render($request, Throwable $exception)\n {\n return parent::render($request, $exception);\n }", "public function render($request, Throwable $e): Response\n {\n // 添加自定义异常处理机制\n\n if ($e instanceof ValidateException) {\n return Response::create(['message' => $e->getMessage(), 'code' => 50015], 'json', 200);\n }\n\n if ($e instanceof SystemException) {\n return Response::create(['message' => $e->getMessage(), 'code' => $e->getCode()], 'json', 200);\n }\n\n // 其他错误交给系统处理\n return parent::render($request, $e);\n }", "public function apiException($request, $e)\n {\n if ($e instanceof ModelNotFoundException) {\n\n return $this->modelRes($e);\n } else if ($e instanceof NotFoundHttpException) {\n\n return $this->httpRes($e);\n } else if ($e instanceof AuthorizationException) {\n\n return $this->accessDeniedRes($e);\n } else {\n\n return parent::render($request, $e);\n }\n }", "public function render($request, Exception $exception)\n {\n // 参数验证错误的异常,我们需要返回 400 的 http code 和一句错误信息 1104\n if ($exception instanceof ValidationException) {\n // $code = 1104;\n // return response(['error' => array_first(array_collapse($exception->errors()))], 400);\n return $this->getResultByCode(1104, Arr::first(Arr::collapse($exception->errors())));\n }\n // 用户认证的异常,我们需要返回 401 的 http code 和错误信息\n if ($exception instanceof UnauthorizedHttpException) {\n // return response($exception->getMessage(), 401);\n $this->getResultByCode(401, $exception->getMessage());\n }\n\n if ($exception instanceof AuthenticationException) {\n return $this->getResultByCode(1200);\n }\n\n if ($exception instanceof ModelNotFoundException) {\n return $this->getResultByCode(404);\n }\n\n if ($exception instanceof QueryException) {\n // return response()->json(['code' => '500', 'reason' => 'Internal Server Error', 'data' => ''], 500);\n }\n\n // JWT exception\n if ($exception instanceof TokenBlacklistedException) {\n return $this->getResultByCode(5001);\n }\n\n // 2018-12-27 Missing404Exception 未生成全文索引的错误\n // if ($exception instanceof Missing404Exception) {\n // return $this->getResultByCode(5002);\n // }\n\n return parent::render($request, $exception);\n }", "public function render($request, \\Throwable $e)\n {\n $e = $this->resolveException($e);\n\n $response = response()->json($this->formatApiResponse($e), $e->getCode(), $e->getHeaders());\n\n return $response->withException($e);\n }", "public function render($request, Exception $e){\n\n if($e instanceof ModelNotFoundException){\n $e = new NotFoundHttpException($e->getMessage(), $e);\n }\n \n if($e instanceof ForbiddenException){\n \n if($request->ajax()){\n return response()->json(['mensagem' => $e->getMessage()], 403);\n }\n \n return response()->view('errors.403', ['mensagem' => $e->getMessage()]);\n \n }\n \n if($e instanceof NotFoundException){ \n \n if($request->ajax()){\n return response()->json(['mensagem' => $e->getMessage()], 404);\n }\n \n return response()->view('errors.404', ['mensagem' => $e->getMessage()]);\n \n }\n \n return parent::render($request, $e);\n \n }", "public function render($request, Throwable $exception)\n {\n if ($exception instanceof \\Symfony\\Component\\HttpKernel\\Exception\\NotFoundHttpException) {\n // return generated error response\n return response()->json([\n 'message' => 'Resources not found'\n ], 404);\n }\n\n // Store log to /storage/logs/api-[y-m-d].log\n Log::channel('api')->error(json_encode([\n 'id' => $request->id,\n 'exception' => [\n 'code' => $exception->getCode(),\n 'message' => $exception->getMessage(),\n 'file' => $exception->getFile(),\n 'line' => $exception->getLine(),\n // 'trace' => $exception->getTraceAsString(),\n ]\n ]));\n\n // return generated error response\n return response()->json([\n 'message' => 'There\\'s something wrong with the system. Please contact us for further information.'\n ], 500);\n }", "public function render($request, Exception $exception)\n {\n $route = $request->route();\n if (!$route || in_array('api', $route->middleware())) {\n $request->headers->set('Accept', 'application/json');\n }\n\n if ($exception instanceof ErrorHttp) {\n return $this->answerWith($exception);\n }\n\n if ($exception instanceof UnauthorizedHttpException) {\n $message = 'Unauthorized';\n $data = [];\n if ($exception->getMessage() === 'Token has expired') {\n $data['token'] = 'expired';\n }\n return $this->answerError($message, Status::CODE_401, $data);\n }\n\n if ($exception instanceof QueryException) {\n $bindings = $exception->getBindings();\n if (!is_array($bindings)) {\n $bindings = [$bindings];\n }\n foreach ($bindings as $key => $binding) {\n $bindings[$key] = Encoding::fixUTF8($binding);\n }\n $message = Encoding::fixUTF8($exception->getMessage());\n $data = [\n 'sql' => $exception->getSql(),\n 'bindings' => $bindings,\n ];\n return $this->answerError($message, Status::CODE_500, $data);\n }\n\n return parent::render($request, $exception);\n }", "public function render($request, Exception $exception)\n {\n $handler = $this->findExceptionResponseHandler($exception);\n\n if (!is_null($handler)) {\n return $handler->render();\n }\n\n if (!method_exists($exception, 'getErrorTitle')) {\n $handler = new Response\\UnknownErrorHandler;\n\n return $handler->render();\n }\n\n return parent::render($request, $exception);\n }", "public function render($request, Exception $exception)\n {\n /**\n * check if the request was an api request\n * this step just for returning json response\n * @author Amr\n */\n// dd($exception);\n if ($request->isJson() || $request->is('api/*')) {\n if ($exception instanceof RouteNotFoundException)\n return response()->api(ERROR_RESPONSE, trans('Auth::lang.not_authorized'), [], NOT_AUTHORIZED_ACCESS);\n else if ($exception instanceof ValidationException) {\n $errors = $exception->validator->errors();\n return response()->api(ERROR_RESPONSE, $errors->first(), prepare_error_attrs_keys($errors), VALIDATION_EXCEPTION);\n } else if ($exception instanceof ModelNotFoundException) {\n return response()->api(ERROR_RESPONSE, trans('lang.resource_not_found'), [], RESOURCE_NOT_FOUND);\n } else if ($exception instanceof AuthenticationException) {\n return response()->api(ERROR_RESPONSE, trans('Auth::lang.unauthenticated'), [], UNAUTHENTICATED_ERROR);\n }\n return response()->api(ERROR_RESPONSE, $exception->getMessage(), [], $exception->getCode());\n }\n\n\n return parent::render($request, $exception);\n }", "public function render($request, Exception $exception)\n {\n if ($request->wantsJson()) {\n return $this->handleApiException($request, $exception);\n } else {\n return parent::render($request, $exception);\n }\n }", "protected abstract function render(Response $response);", "public function render($request, Throwable $exception)\n {\n switch ($exception)\n {\n case $exception instanceof ModelNotFoundException && count($exception->getIds()) === 1:\n /* Handle model not found when querying a single entity */\n $id = array_first($exception->getIds());\n /*\n * IF $existed == true : the user has requested a url for a model that was deleted\n * IF $existed == false : the user has requested a url for a model that never existed (possible url manipulation)\n */\n $existed = $exception->getModel()::onlyTrashed()->where('id', $id)->count() > 0;\n $entity = last(explode('\\\\', $exception->getModel()));\n $entitiesToReport = ['Tender', 'Project', 'Asset'];\n $detailKey = null;\n if(in_array($entity, $entitiesToReport, true)) {\n $detailKey = $existed ? 'ENTITY_DELETED' : 'ENTITY_NOT_FOUND';\n }\n return response()->json([\n 'detailKey' => $detailKey,\n 'entity' => $entity\n ], 404);\n // TODO: log everything\n\n default:\n return parent::render($request, $exception);\n }\n\n }", "public function render($request, Exception $exception)\n {\n $response = [];\n $response['request_id'] = '';\n $response['success'] = false;\n\n if ($exception instanceof AuthServiceException) {\n $response['request_id'] = '';\n $response['success'] = false;\n $exception_code = $exception->getCode();\n $response['response_code'] = (!empty($exception_code)) ? $exception_code : 203;\n $response['message'] = $exception->getMessage();\n return response()->json($response, 401);\n } elseif ($exception instanceof ValidationException) {\n $response['response_code'] = 101;\n $response['message'] = $exception->getMessage();\n return response()->json($response, 400);\n } elseif ($exception instanceof BlogErrorException) {\n $exception_code = $exception->getCode();\n $response['response_code'] = (!empty($exception_code)) ? $exception_code : 102;\n\n $response['message'] = $exception->getMessage();\n if (App::environment('production')) {\n $response['message'] = 'Something went wrong!';\n }\n\n return response()->json($response, 500);\n } \n\n return parent::render($request, $exception);\n }", "public function render($request, Exception $e)\n {\n\t\t//正式环境返回错误json\n\t\tif(env('APP_DEBUG')!='true'){\n\t\t\tif($e instanceof NotFoundHttpException){\n\t\t\t\treturn response(array('code'=>404,'message'=>'the api you request is not found!','content'=>'','contentEncrypt'=>''));\n\t\t\t}\n\t\t\telse if($e instanceof MethodNotAllowedHttpException){\n\t\t\t\treturn response(array('code'=>404,'message'=>'all request should be post!','content'=>'','contentEncrypt'=>''));\n\t\t\t}\n\n\t\t}\n return parent::render($request, $e);\n }", "public static function renderHtml(Exception $exception)\n {\n $whoops = new \\Whoops\\Run;\n $handler = new PrettyPageHandler;\n $response = app()->make(ExceptionHandler::class)->convertExceptionToResponse($exception);\n\n $whoops->pushHandler($handler);\n\n return response(\n $whoops->handleException($exception),\n $response->getStatusCode(),\n $response->headers->all()\n );\n }", "public function render($request, Exception $e)\n {\n app('translator')->setLocale('zh-CN');\n $errorCode = $e->getCode();\n $statusCode = $e->getStatusCode();\n\n if ($errorCode == 2002) {\n echo json_encode(error_response('0x000022', 'common'));\n } else if ($errorCode == 10061) {\n echo json_encode(error_response('0x000023', 'common'));\n } else {\n if ($statusCode == '404') {\n echo json_encode(error_response('0x000404', 'common'));\n } else if ($statusCode == '401') {\n echo json_encode(error_response('0x000401', 'common'));\n } else {\n echo json_encode(error_response('0x000013', '', json_encode([\"file\" => $e->getFile(), \"line\" => $e->getLine()])));\n }\n }\n exit;\n\n return parent::render($request, $e);\n }", "public function sendResponse()\n {\n $this->sendHeaders();\n\n if ($this->isException() && $this->renderExceptions()) {\n $exceptions = '';\n foreach ($this->getException() as $e) {\n $exceptions .= $e->__toString() . \"\\n\";\n }\n echo $exceptions;\n return;\n }\n\n $this->outputBody();\n }", "public function render($request, Exception $exception)\n {\n if ($exception instanceof ModelNotFoundException) {\n return response()->json([\n 'error' => 'model_not_found',\n 'message' => (new \\ReflectionClass($exception->getModel()))->getShortName() . ' with such parameters does not exists.'\n ], 404);\n } elseif ($exception instanceof UnauthorizedException) {\n return response()->json([\n 'error' => 'unauthorized',\n 'message' => $exception->getMessage()\n ], 403);\n } elseif ($exception instanceof ValidationException) {\n return response()->json([\n 'error' => 'validation_failed',\n 'messages' => $exception->validator->errors()->all()\n ], 400);\n } elseif ($exception instanceof HttpException) {\n return response()->json([\n 'error' => 'http_error',\n 'message' => $exception->getMessage()\n ], $exception->getStatusCode());\n }\n\n return parent::render($request, $exception);\n }", "public function render($request, Throwable $exception)\n {\n if ($exception instanceof AccessDeniedException) {\n return AccessDeniedException::getResponse();\n }\n if ($exception instanceof BadCredentialsException) {\n return BadCredentialsException::getResponse($exception->getMessage());\n }\n if ($exception instanceof DataNotFoundException) {\n return DataNotFoundException::getResponse($exception->getMessage());\n }\n if ($exception instanceof DuplicateDataException) {\n return DuplicateDataException::getResponse($exception->getMessage());\n }\n\n if ($exception instanceof \\Illuminate\\Database\\QueryException) {\n return QueryException::getResponse($exception->getMessage());\n } elseif ($exception instanceof \\PDOException) {\n return DatabaseConnectionException::getResponse();\n }\n\n if ($exception instanceof InvalidActionException) {\n return InvalidActionException::getResponse($exception->getMessage());\n }\n if ($exception instanceof UnauthorizeException) {\n return UnauthorizeException::getResponse($exception->getMessage());\n }\n if ($exception instanceof UsernameIsExistsException) {\n return UsernameIsExistsException::getResponse();\n }\n if ($exception instanceof ValidationException) {\n return ValidationErrorException::getResponse($exception);\n }\n\n return parent::render($request, $exception);\n }", "public function render($request, Exception $exception)\n {\n if ($exception instanceof ValidationException) {\n $errors = $exception->errors();\n $first_error = collect($errors)->first();\n $message = ($first_error) ? $first_error[0] : $exception->getMessage();\n $code = 422;\n } elseif ($exception instanceof AuthenticationException) {\n $message = 'Unauthenticated';\n $code = 401;\n $errors = [\n 'token' => [$exception->getMessage()]\n ];\n } elseif ($exception instanceof ModelNotFoundException) {\n $message = 'Not Found';\n $code = 404;\n $errors = [\n 'route' => ['url is not found']\n ];\n } elseif ($exception instanceof NotFoundHttpException) {\n $message = 'Not Found';\n $code = 404;\n $errors = [\n 'route' => ['url is not found']\n ];\n }\n elseif ($exception instanceof UnauthorizedException) {\n $message = $exception->getMessage();\n $code = 403;\n $errors = [\n 'unauthorized' => [$exception->getMessage()]\n ];\n }\n else {\n $code = 400;\n $message = $exception->getMessage();\n $errors = [\n 'failed'=>['Something Went Wrong']\n\n ];\n }\n if (env('APP_DEBUG')) {\n if ($code == 404) {\n $errors = [\n 'route' => [$exception->getMessage()]\n ];\n }\n\n if ($code != 422){\n $errors['line'] = $exception->getLine();\n $errors['trace'] = $exception->getTrace();\n }\n }\n\n return response()->json([\n 'message' => $message,\n 'errors' => $errors,\n ], $code);\n }", "public function render($request, Throwable $exception)\n {\n /* only run if debug is turn off */\n if ( !env('APP_DEBUG', true) ) {\n\n $core = new Core;\n\n /* handling 404 exception */\n if($exception instanceof NotFoundHttpException){\n\n return response()->json([\n 'error' => 'Not Found',\n ])->setStatusCode(404);\n }\n\n /* handling 500 exception */\n $exception_name = get_class($exception);\n\n $error = $core->log('error', \"Exception ($exception_name) : \" . $exception->getTraceAsString() , true);\n\n return response()->json([\n 'error' => \"Server problem, code [$error]\",\n ])->setStatusCode(500);\n\n }\n\n return parent::render($request, $exception);\n }", "public function get_response() {\n $view = View::factory('Errors/default');\n\n // Remembering that `$this` is an instance of HTTP_Exception_404\n $view->message = $this->getMessage();\n\n $view->error_code = 500;\n $view->error_rant = \"something's wrong with our server\";\n $view->error_message = \"probably another rat ate our server cable. Please wait patiently :)\";\n\n $response = Response::factory()\n ->status(500)\n ->body($view->render());\n\n return $response;\n }", "public function render($request, Exception $e)\n {\n if ($e instanceof \\Cms\\Modules\\Core\\Exceptions\\NotInstalledException) {\n return $this->renderNotInstalled($e);\n }\n\n if ($e instanceof \\Cms\\Modules\\Core\\Exceptions\\InMaintenanceException) {\n return $this->renderInMaintenance($e);\n }\n\n if (config('app.debug') && class_exists('\\Whoops\\Run')) {\n return $this->renderExceptionWithWhoops($e, $request);\n }\n\n if ($e instanceof \\PDOException) {\n return $this->renderPdoException($e);\n }\n\n return $this->renderErrorPage($e);\n //return parent::render($request, $e);\n }", "public function render($request, Exception $exception)\n {\n if (\n $exception instanceof ScheduleHasSessionException\n || $exception instanceof ScheduleNotHasSessionException\n || $exception instanceof ScheduleSessionIsClosedException\n || $exception instanceof UniqueVotePerSessionException\n || $exception instanceof UniqueDocumentAssociateException\n ) {\n return $this->renderCustom($request, $exception);\n }\n\n if ($exception instanceof ModelNotFoundException) {\n return $this->renderModelNotFoundException();\n }\n\n if ($exception instanceof ValidationException) {\n return $this->renderValidationException($exception->validator);\n }\n\n if ($exception instanceof NotFoundHttpException) {\n return $this->renderNotFoundHttpException();\n }\n\n if ($exception instanceof MethodNotAllowedHttpException) {\n return $this->renderMethodNotAllowedException();\n }\n\n return response()->json([\n 'message' => trans('exceptions.Unknown error')\n ], HttpStatusCodeEnum::INTERNAL_SERVER_ERROR);\n }", "public function render($request, Exception $e)\n {\n if ($e instanceof SaleItemRegisterException) {\n return response()->view('errors.sale_item_register', [\"message\" => $e->getMessage()], 500);\n }\n if ($e instanceof NotFoundHttpException) {\n return response()->view('errors.404', [], 404);\n }\n if ($e instanceof NotFoundUserException) {\n return response()->view('errors.404', [\"message\" => $e->getMessage()], 404);\n }\n if ($e instanceof ItemRegisterException) {\n return response()->view('errors.item_register', [], 500);\n }\n if ($e instanceof ApiAuthException) {\n return new JsonResponse([\"message\" => $e->getMessage()]);\n }\n if ($e instanceof ItemEditException) {\n return new JsonResponse([\"message\" => $e->getMessage()]);\n }\n if ($e instanceof ArticleContainerException) {\n return new JsonResponse([\"message\" => $e->getMessage()]);\n }\n if ($e instanceof UserSettingException) {\n return new JsonResponse([\"message\" => $e->getMessage()]);\n }\n if ($request->ajax()) {\n if ($e instanceof Exception) {\n Log::info($e->getMessage());\n Log::info($e->getTraceAsString());\n return new JsonResponse([\"message\" => \"予期せぬエラーが発生しました\"]);\n }\n }\n // HTTPエラー\n if ($e instanceof HttpException) {\n if ($e->getStatusCode() === 404) {\n return response()->view('errors.404', [], 404);\n }\n // メンテナンスモード\n if ($e->getStatusCode() === 503) {\n return response()->view('errors.503', [\"message\" => $e->getMessage()], 503);\n }\n }\n \n // その他エラー\n if (!($e instanceof ValidationException) && !($e instanceof HttpResponseException) && $e instanceof Exception) {\n Log::info($e->getMessage());\n Log::info($e->getTraceAsString());\n return response()->view('errors.500', [\"message\" => $e->getMessage()], 500);\n }\n\n return parent::render($request, $e);\n }", "public function render($request, Throwable $e)\n {\n // TODO: Implement render() method.\n }", "public function render($request, Exception $e)\n\t{\n\t\tif ($e instanceof VocalogicException)\n\t\t{\n\t\t\treturn $this->renderVocalogicException($e);\n\t\t}\n\n\t\tif (($e instanceof ModelNotFoundException) && !config('app.debug'))\n\t\t{\n\t\t\tabort(404);\n\t\t}\n\n\t\treturn parent::render($request, $e);\n\t}", "public function render($request, Exception $exception)\n {\n if (config('app.debug') && $request->wantsJson()) {\n return self::renderJson($exception);\n }\n\n if (config('app.debug')) {\n return self::renderHtml($exception);\n }\n\n return parent::render($request, $exception);\n }", "public function onException(Exception $err): Effect|Response;", "public function getHttpResponseBasedOnError(): HttpResponse\n {\n if ($this->exception instanceof ClientException) {\n $this->logger->addWarning($this->exception->getMessage(), [\n 'code' => $this->exception->getCode(),\n 'exception' => $this->exception\n ]);\n $response = new View('Error/error');\n $response->addVariable('error', $this->exception->getMesssage());\n $response->addVariable('statusCode', $this->exception->getCode());\n $response->setStatusCode($this->exception->getCode());\n return $response;\n } else {\n if ($this->exception instanceof PlatformException)\n $this->logger->addError($this->exception->getMessage(), [\n 'code' => $this->exception->getCode(),\n 'exception' => $this->exception\n ]);\n else if ($this->exception instanceof \\PDOException)\n $this->logger->addError($this->exception->getMessage(), [\n 'code' => PlatformException::ERROR_DB,\n 'exception' => $this->exception\n ]);\n else\n $this->logger->addEmergency($this->exception->getMessage(), [\n 'code' => PlatformException::ERROR_UNDEFINED,\n 'exception' => $this->exception\n ]);\n \n if ($this->environment == 'production') {\n $response = new View('Error/error');\n $response->addVariable('error', 'Something wrong happened. Please try again.');\n $response->addVariable('statusCode', 500);\n $response->setStatusCode(500);\n return $response;\n } else {\n throw $this->exception;\n }\n }\n }", "public function render($request, Exception $exception)\n {\n if ($exception instanceof ModelNotFoundException) {\n return response()->json(['error' => 'Resource was not found.'], 404);\n }\n\n if ($exception instanceof ValidationException) {\n return response()->json([\n 'error' => $exception->errors()\n ], 422);\n }\n\n if ($exception instanceof AuthenticationException\n || $exception instanceof AuthorizationException\n || $exception instanceof UnauthorizedHttpException) {\n return response()->json(['error' => 'Unauthenticated.'], 401);\n }\n\n return response()->json([\n 'error' => $exception->getMessage(),\n 'stack' => $exception->getTrace(),\n 'file' => $exception->getFile(),\n 'line' => $exception->getLine(),\n ], 500);\n\n return parent::render($request, $exception);\n }", "public static function handler(Exception $e)\n {\n try {\n\n if (Request::$current !== NULL\n && Request::current()->is_ajax() === TRUE\n && Kohana::$environment !== Kohana::PRODUCTION) {\n header('Content-Type: text/plain; charset='.Kohana::$charset, TRUE, 500);\n self::_print($e);\n }\n\n if (Kohana::$environment === Kohana::PRODUCTION && ! self::$custom_view_file)\n Kohana_Kohana_Exception::$error_view = self::get_view_file($e);\n elseif (self::$custom_view_file)\n Kohana_Kohana_Exception::$error_view = self::$custom_view_file;\n\n parent::handler($e);\n\n } catch(Exception $e) {\n /**\n * Things are going *really* badly for us, We now have no choice\n * but to bail. Hard.\n */\n // Clean the output buffer if one exists\n ob_get_level() AND ob_clean();\n\n // Set the Status code to 500, and Content-Type to text/plain.\n header('Content-Type: text/plain; charset='.Kohana::$charset, TRUE, 500);\n\n echo Kohana_Exception::text($e);\n\n exit(1);\n }\n }", "public function handleRequest()\n {\n try {\n $response = $this->handleRequestInner();\n } catch (HttpException $ex) {\n $this->config->set('page_title', 'Error');\n\n $view = new View('exception');\n $view->exception = $ex;\n\n $response = new Response();\n\n $response->setResponseCode($ex->getErrorCode());\n $response->setContent($view->render());\n } catch (\\Exception $ex) {\n $this->config->set('page_title', 'Error');\n\n $view = new View('exception');\n $view->exception = $ex;\n\n $response = new Response();\n\n $response->setResponseCode(500);\n $response->setContent($view->render());\n }\n\n return $response;\n }", "private function render() {\n header('Content-Type: text/html; charset=utf-8', TRUE);\n $view = \"{$this->method}_{$this->resource}\";\n if(file_exists(WEB.\"${view}.php\")) {\n ob_start();\n include ( WEB.\"${view}.php\");\n $response = ob_get_contents();\n ob_end_clean();\n } else {\n $status = HttpStatusCode::NOT_ACCEPTABLE;\n $content = 'No view found';\n $response = static::json();\n }\n\n return $response;\n }", "public function outputException(\\Throwable $e) : void\n {\n $response = new Response(500);\n $response = $response->withAddedHeader('Content-Type', 'text/plain');\n \n if ($e instanceof HttpException) {\n $response = $response->withStatus($e->getCode());\n }\n \n $result = $e->getMessage() . \"\\n\\r\";\n \n if (ErrorHandler::$showTrace === true) {\n $trace = explode(\"\\n\", $e->getTraceAsString());\n \n foreach ($trace as $step) {\n $result .= \"\\n\";\n $result .= $step;\n }\n }\n \n $content = new Stream(fopen('php://memory', 'r+'));\n $content->write($result);\n \n $response = $response->withBody($content);\n \n $this->output($response);\n }", "private function throwFriendlyErrors(\\Exception $e)\n {\n $errors = $e->errors();\n\n $response = response()->json([\n 'message' => 'Invalid data, please re-review the data you sent.',\n 'details' => $errors\n ], 422);\n\n throw new HttpResponseException($response);\n }", "public function render($request, Exception $exception)\n {\n\t // 调试模式返回原生异常调用栈\n//\t if (!config('app.debug')) {\n//\t\t return parent::render($request, $exception);\n//\t }\n\n\t // 如果定义了该异常处理,则自定义异常处理方法\n\t $renderMethod = $this->customRender[get_class($exception)]['render'] ?? '';\n\t if ($renderMethod && method_exists($this, $renderMethod)) {\n\t\t return $this->$renderMethod($request, $exception);\n\t }\n\n\t return parent::render($request, $exception);\n }", "public function exceptionAction(FlattenException $exception)\n {\n\t\t//\n // return new Response($msg, $exception->getStatusCode());\n\n\t\t$msg = 'Something went wrong!';\n\n return new Response($msg, $exception->getStatusCode());\n }", "public function render($request, Exception $e)\n {\n $redirect = $this->reportNotFound($e);\n\n if ($redirect && $redirect instanceof RedirectResponse) {\n return $redirect;\n }\n\n return parent::render($request, $e);\n }" ]
[ "0.73116726", "0.7122214", "0.7050922", "0.7050922", "0.704035", "0.6992839", "0.6990034", "0.6980675", "0.697365", "0.6950051", "0.69485855", "0.69412524", "0.69336146", "0.6920026", "0.6887852", "0.68392885", "0.68298024", "0.68196106", "0.681052", "0.6803951", "0.6795277", "0.6779122", "0.6774303", "0.67716074", "0.6753892", "0.67439103", "0.67439103", "0.67439103", "0.67439103", "0.67317593", "0.670746", "0.6705885", "0.66971046", "0.66953313", "0.669022", "0.66851664", "0.6680281", "0.6663982", "0.6662847", "0.6660546", "0.66480064", "0.6647299", "0.6644599", "0.6627376", "0.6626498", "0.66133827", "0.6609545", "0.6599049", "0.65928817", "0.6575709", "0.6550856", "0.6547668", "0.653514", "0.6529298", "0.6518081", "0.65012354", "0.64976424", "0.6491616", "0.64777887", "0.64771414", "0.6470872", "0.64677966", "0.6463605", "0.6446657", "0.6445654", "0.6443608", "0.6430121", "0.6430091", "0.64157295", "0.64120823", "0.6410421", "0.64092267", "0.6407834", "0.64055586", "0.6395041", "0.63826674", "0.63745856", "0.63707286", "0.63700855", "0.6360625", "0.63573146", "0.63546443", "0.6350278", "0.6346168", "0.6341646", "0.63391143", "0.6334965", "0.6325963", "0.6322274", "0.6320939", "0.6316641", "0.6316335", "0.6312784", "0.63034314", "0.6301164", "0.62994444", "0.62977517", "0.6296709", "0.6292592", "0.62821406", "0.6281566" ]
0.0
-1
Convert an authentication exception into an unauthenticated response.
protected function unauthenticated($request, AuthenticationException $exception) { if ($request->expectsJson()) { return response()->json(['error' => 'Unauthenticated.'], 401); } return redirect()->guest('login'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function unauthenticated($request, AuthenticationException $exception)\n {\n return response()->json(['error' => 'Unauthenticated.'], 401);\n }", "protected function unauthenticated($request, AuthenticationException $exception)\n {\n return response()->json(['error' => 'Unauthenticated.'], 401);\n }", "protected function unauthenticated($request, AuthenticationException $exception)\n {\n if (\n !$request->expectsJson()\n || empty($this->formatApiResponse)\n || !$this->formatApiResponse\n ) {\n\n return parent::unauthenticated($request, $exception);\n }\n\n return response()->error(\n 'Unauthenticated.',\n 401,\n getenv('APP_DEBUG') == 'true' ? $exception : null\n );\n }", "protected function unauthenticated($request, AuthenticationException $exception)\n {\n return $request->expectsJson()\n ? api_response()->fail()->message('Unauthenticated')->response(401)\n : redirect()->guest(route('login'));\n }", "protected function unauthenticated($request, AuthenticationException $exception)\n {\n return $this->respondUnauthenticated();\n }", "protected function unauthenticated($request, AuthenticationException $e)\n {\n if ($request->ajax() || $request->wantsJson()) {\n return response('Unauthorized.', 401);\n } else {\n return redirect()->guest('login');\n }\n }", "protected function unauthenticated($request, AuthenticationException $exception)\n {\n return $request->expectsJson() ? response()->json(['message' => $exception->getMessage()], 401) :\n redirect()->guest(route('login'));\n }", "protected function unauthenticated($request, AuthenticationException $exception)\n {\n return $request->expectsJson()\n ? app(Response::class)->errorUnauthorized($exception->getMessage())\n : redirect()->guest($exception->redirectTo() ?? route('login'));\n }", "protected function unauthenticated($request, AuthenticationException $exception)\n\t{\n\t\tif ($request->expectsJson()) {\n\t\t\treturn response()->json(['error' => 'Unauthenticated.'], 401);\n\t\t}\n\n\t\treturn redirect()->guest(route('login'));\n\t}", "protected function unauthenticatedJson(AuthenticationException $e): JsonResponse\n {\n return \\response()->json(['message' => 'unauthenticated'], 401);\n }", "protected function authenticationError(Exception $exception)\n {\n return $this->jsonResponse($exception->getMessage(), Response::HTTP_UNAUTHORIZED);\n }", "protected function unauthenticated($request, AuthenticationException $exception)\n {\n if ($request->expectsJson()) {\n return response()->json(['error' => 'Unauthenticated.'], 401);\n }\n\n return redirect()->guest(route('login'));\n }", "protected function unauthenticated($request, AuthenticationException $exception)\n {\n if ($request->expectsJson()) {\n return response()->json(['error' => 'Unauthenticated.'], 401);\n }\n\n return redirect()->guest(route('login'));\n }", "protected function unauthenticated($request, AuthenticationException $exception)\n {\n if ($request->expectsJson()) {\n return response()->json(['error' => 'Unauthenticated.'], 401);\n }\n\n return redirect()->guest(route('login'));\n }", "protected function unauthenticated($request, AuthenticationException $exception)\n {\n if ($request->expectsJson()) {\n return response()->json(['error' => 'Unauthenticated.'], 401);\n }\n\n return redirect('/login');\n }", "protected function unauthenticated($request, AuthenticationException $exception)\n {\n if ($request->expectsJson()) {\n return response()->json(['error' => 'Unauthenticated.'], Response::HTTP_UNAUTHORIZED);\n }\n\n return redirect()->guest('/');\n }", "protected function notAuthenticated()\n {\n $this->response = $this->response->withStatus(401);\n $this->jsonBody($this->payload->getInput());\n }", "protected function getUnauthorizedResponse()\n {\n $authHeaderValue = $this->realm === null ? static::AUTHENTICATION_SCHEME :\n static::AUTHENTICATION_SCHEME . ' realm=\"' . $this->realm . '\"';\n\n return $this->integration->createResponse(\n null,\n Response::HTTP_UNAUTHORIZED,\n [self::HEADER_WWW_AUTHENTICATE => $authHeaderValue]\n );\n }", "public function onAuthenticationFailure(Request $request, AuthenticationException $exception): null|Response\n {\n $data = array(\n 'message' => strtr($exception->getMessageKey(), $exception->getMessageData())\n );\n\n return new JsonResponse($data, Response::HTTP_FORBIDDEN);\n }", "protected function unauthenticated($request, AuthenticationException $exception)\n {\n return $request->expectsJson()\n ? $this->unauthenticatedJson($exception)\n : redirect()->guest(route('login'));\n }", "public function onAuthenticationFailure(Request $request, AuthenticationException $exception)\n {\n $data = array(\n 'status' => Response::HTTP_FORBIDDEN,\n 'error' => 'Invalid token!', //strtr($exception->getMessageKey(), $exception->getMessageData()),\n 'data' => null\n );\n\n return new JsonResponse($data, Response::HTTP_FORBIDDEN);\n }", "public static function unauthorized($message = 'Unauthorized.')\n {\n throw new ResponseException($message, 401);\n }", "protected function unauthenticated($request, AuthenticationException $exception)\n {\n if ($request->expectsJson()) {\n return response()->json(['error' => 'Unauthenticated.'], 401);\n }\n\n return redirect()->guest(route('sessions.create'));\n }", "public function report(Exception $exception)\n {\n\t\t/*if ($exception instanceof \\League\\OAuth2\\Server\\Exception\\OAuthServerException && $exception->getCode() == 9) {\n\t\t\treturn response()->json(['message' => 'Unauthenticated'], 200);\n\t\t}*/\n parent::report($exception);\n }", "public function onAuthenticationFailure(\n Request $request,\n AuthenticationException $exception)\n {\n return new Response('Authentication Failed. ', 403);\n }", "public function getAuthenticationException();", "private function AuthenticationException(AuthenticationException $exception)\n\t{\n\t\treturn $this->CommonErrorExceptionResponse(\n\t\t\t'AuthenticationException',\n\t\t\t'Unauthenticated',\n\t\t\tarray('You are not authenticated',\n\t\t\t\t$exception->getMessage()\n\t\t\t),\n\t\t\tarray('Please login to the system', 'Check if your account is activated'),\n\t\t\t401\n\t\t);\n\n\t}", "protected function onAuthenticationException(Request $request, AuthenticationException $exception): Response\n {\n\n return $this->startAuthentication($request, $exception);\n }", "protected function unauthenticated($request, AuthenticationException $exception){\n\n $guard = array_get($exception->guards(), 0);\n\n switch ($guard){\n case 'teacher':\n #if using the teacher guard, go to the teacher login\n $login = 'teacher.login';\n break;\n\n default:\n #web guard response (for users, aka parents) - the default response\n $login = 'login';\n break;\n }\n\n //return redirect()->guest(route('login')); //original return statement before modification of this method\n return redirect()->guest(route($login));\n\n }", "public function onAuthenticationFailure(Request $request, AuthenticationException $exception): Response\n {\n if ($request->hasSession()) {\n $request->getSession()->set(Security::AUTHENTICATION_ERROR, $exception);\n }\n\n if ($exception instanceof BadCredentialsException) {\n $msg = 'Invalid credentials.';\n } else {\n $msg = $exception->getMessage();\n }\n return new JsonResponse(['error' => 1, 'message' => $msg]);\n }", "protected static function apiResponseUnauthorized($message){\n self::setStatusCode(Response::HTTP_UNAUTHORIZED);\n return self::apiResponse([\n 'status' => 'error',\n 'status_code' => self::getStatusCode(),\n 'message' => $message,\n ]);\n }", "public function testUnauthenticatedNoException()\n {\n $this->auth->setConfig('unauthenticatedException', false);\n $this->assertNull($this->auth->unauthenticated(new ServerRequest(), $this->response));\n }", "public function hydrate()\n {\n if (auth()->guest()) {\n throw new AuthenticationException();\n }\n }", "protected function authorizationError(Exception $exception)\n {\n return $this->jsonResponse($exception->getMessage(), Response::HTTP_FORBIDDEN);\n }", "public function respondUnauthorised($message = 'Unauthorised!')\n {\n return $this->setStatusCode(401)->respondWithError($message);\n }", "public function onAuthenticationFailure(Request $request, AuthenticationException $exception)\n {\n// $exception,\n// new JWTAuthenticationFailureResponse($exception->getMessage())\n// );\n\n $event = new AuthenticationFailureEvent(\n $exception,\n new JWTAuthenticationFailureResponse(\n $this->translator->trans('Invalid credentials.')\n )\n );\n if ($this->dispatcher instanceof ContractsEventDispatcherInterface) {\n $this->dispatcher->dispatch($event, Events::AUTHENTICATION_FAILURE);\n } else {\n $this->dispatcher->dispatch(Events::AUTHENTICATION_FAILURE, $event);\n }\n\n return $event->getResponse();\n }", "public function onAuthenticationFailure(Request $request, AuthenticationException $exception)\n {\n $datos = $request->request->all();\n $user = $datos[\"_username\"];\n $uri = $this->container->get('router')->generate('administrador_inicio_login_error', array('u'=> $user));\n $response = new RedirectResponse($uri);\n return $response;\n }", "public function respondUnauthorizedError($message = 'Unauthorized!')\n {\n return $this->setStatusCode(IlluminateResponse::HTTP_UNAUTHORIZED)->respondWithError($message);\n }", "public function start(Request $request, AuthenticationException $authException = null) : Response\n {\n return new Response(Constants::UNAUTHORIZED_MESSAGE, 401, [\"Content-Type\" => \"application/json\"]);\n }", "public function test_unauthenticated_error()\n {\n $response = $this->get($this->apiUrl('user'));\n\n $response->assertStatus(401);\n\n $response->assertJson([\n 'message' => 'Unauthenticated.'\n ]);\n }", "public static function buildUnauthorizedResponse(string $message = self::MESSAGE_UNAUTHORIZED): static\n {\n $dto = new static();\n $dto->setCode(Response::HTTP_UNAUTHORIZED);\n $dto->setSuccess(false);\n $dto->setMessage($message);\n return $dto;\n }", "public function onAuthenticationFailure(Request $request, AuthenticationException $exception)\n {\n return new RedirectResponse($request->getSession()->get('_security.jira_secured.login_path'));\n }", "protected function unauthorizedJson(AuthorizationException $e): JsonResponse\n {\n return \\response()->json(['message' => 'access_denied'], 403);\n }", "public static function error401() {\n header('Unauthorized', true, 401);\n $html401 = sprintf(\"<title>Error 401: Unauthorized</title>\\n\" .\n \"<main><div class=\\\"container\\\"><div class=\\\"row\\\"><div class=\\\"col-lg-10 offset-lg-1\\\">\" .\n \"<div class=\\\"row wow fadeIn\\\" data-wow-delay=\\\"0.4s\\\"><div class=\\\"col-lg-12\\\"><div class=\\\"divider-new\\\">\" .\n \"<h2 class=\\\"h2-responsive\\\">Error 401</h2>\" .\n \"</div></div>\" .\n \"<div class=\\\"col-lg-12 text-center\\\">\" .\n \"<p>You aren’t authenticated, please login and try again.</p>\" .\n \"</div></div></div></div></div></main>\", $_SERVER[\"REQUEST_URI\"]);\n echo $html401;\n }", "public static function sendUnauthorizedResponse(){\n http_response_code(401);\n die();\n }", "function unauthorized() {\n\treturn show_template('401');\n}", "public function notAuthenticated(ResponseInterface $response);", "public function unauthorized($message = \"You dont have permissions for this resource\",\n $errorCode = \"AuthException\")\n {\n $this->response = $this->laravelResponse->setContent(json_encode(['message' => $message,\n 'ErrorCode' => $errorCode]))->setStatusCode(401);\n return $this->respond();\n }", "public function unauthorized()\n {\n return view('exception.unauthorized');\n }", "public function respondUnauthorized($message = 'Not authorized!')\n {\n return $this->setStatusCode(401)->respondWithErrors($message);\n }", "public function start(Request $request, AuthenticationException $authException = null): Response\n {\n $data = ['status' => 'error', 'message' => 'UNAUTHORIZED'];\n \n return new JsonResponse($data, Response::HTTP_UNAUTHORIZED);\n }", "public function onAuthenticationFailure(Request $request, AuthenticationException $exception);", "public function get_response()\r\n {\r\n $response = Response::factory()\r\n ->status(401)\r\n ->headers('Location', URL::site('user/enter'));\r\n return $response;\r\n }", "public function s401($message = '') { self::respondWithJSON($message, 401); }", "public function getAssociatedStatusCode()\n {\n return AbstractResponse::RESPONSE_UNAUTHORIZED;\n }", "public function onAuthenticationFailure(Request $request, AuthenticationException $exception)\n {\n $request->getSession()->set(Security::AUTHENTICATION_ERROR, $exception);\n\n return new RedirectResponse($this->router->generate($this->parameters['route']['login']));\n }", "public function errorUnauthorized($message = 'Unauthorized')\n {\n return $this->setStatusCode(HttpResponse::HTTP_UNAUTHORIZED)\n ->respondWithError($message, self::CODE_UNAUTHORIZED);\n }", "public function errorUnauthorized($message = 'Unauthorized')\n {\n return $this->setStatusCode(401)->respondWithError($message);\n }", "public function testOnAuthenticationFailure(): void\n {\n $this->serverService->expects($this->once())\n ->method('getVariable')\n ->with('realm')\n ->will($this->returnValue('mock_realm'))\n ;\n\n $response = $this->authenticator->onAuthenticationFailure(\n new Request(),\n new AuthenticationException('Authentication failure message')\n );\n\n $this->assertSame(401, $response->getStatusCode());\n $this->assertSame('{\"error\":\"access_denied\",\"error_description\":\"Authentication failure message\"}', $response->getContent());\n }", "private function respondToUnauthorizedRequest($request)\n {\n if ($request->ajax() || $request->wantsJson()) {\n return response(trans('unauthorized'), 401);\n } else {\n return redirect()->guest(Route('home'));\n }\n }", "protected function respondUnauthorized($message)\n {\n return response()->json([\n 'success' => false,\n 'message' => $message\n ], 401);\n }", "private static function generateFailedAuthResponse(&$response) {\n $response->getHeaders()->addHeaders([\n 'Date' => gmdate('D, d M Y H:i:s T'),\n 'Content-Type' => 'application/json; charset=UTF-8'\n ]);\n $response->setContent(\\Zend\\Json\\Json::encode(['success' => false, 'data' => false, 'errors' => 'Request authorization failed, check keys/payload']));\n $response->getHeaders()->addHeaderLine('Content-Type', 'application/json');\n $response->setStatusCode(403);\n }", "public function errorUnauthorized($message = 'Unauthorized')\n {\n return $this->setStatusCode(401)\n ->respondWithError($message, self::CODE_UNAUTHORIZED);\n }", "protected function handleUnauthorizedCommand()\n\t{\n // si appel xmlhttp\n\t\tif ( (isset($_SERVER['HTTP_USER_AGENT']) && (strpos($_SERVER['HTTP_USER_AGENT'], 'XMLHTTP') === 0)) \n\t\t\t || (strpos($_SERVER['HTTP_ACCEPT'], 'application/json') === 0) )\n return new ReturnedValues\\Json(json_encode(array('statut'=>false, 'message'=>'Request is not authorized.')), false);\n else\n return new ReturnedValues\\PHP('Request is not authorized.', false);\n\t}", "public function getAuthenticationResponse() {\n }", "public function respondUnauthorized($message = 'Unauthorized')\n {\n return $this->setStatusCode(401)->respondWithError($message);\n }", "public function errorUnauthorized($message = 'Unauthorized')\n {\n return $this->setStatusCode(401)\n ->respondWithError($message);\n }", "public function render($request, Throwable $exception)\n {\n if ($exception instanceof \\Symfony\\Component\\HttpKernel\\Exception\\UnauthorizedHttpException) {\n switch (get_class($exception->getPrevious())) {\n case \\Tymon\\JWTAuth\\Exceptions\\TokenExpiredException::class:\n return response()->json([\n 'error' => 'Su sesión ha expirado'\n ], $exception->getStatusCode());\n\n case \\Tymon\\JWTAuth\\Exceptions\\TokenInvalidException::class:\n case \\Tymon\\JWTAuth\\Exceptions\\TokenBlacklistedException::class:\n return response()->json([\n 'error' => 'La sesión no es valida'\n ], $exception->getStatusCode());\n default:\n break;\n }\n }\n\n return parent::render($request, $exception);\n }", "public function forbiddenResponse()\n {\n // (default is to just redirect to initial page with errors)\n //\n // Can return a response, a view, a redirect, or whatever else\n\n return Response::make('Permission denied foo!', 403);\n }", "public function authenticationFailure()\n {\n return $this->sendFailed(\"not authenticated\");\n }", "protected function sendFailedLoginResponse()\n {\n return response()->json([\n 'message' => $this->errorMessage,\n ], 401);\n }", "public function onAuthenticationFailure(Request $request, AuthenticationException $exception)\n {\n $error = $exception->getMessage();\n\n $request->getSession()->set('login_error', $error);\n\n return new \\Symfony\\Component\\HttpFoundation\\RedirectResponse($this->router->generate('fos_user_security_login'));\n }", "private function unauthorized($message = null){\n return response()->json([\n 'message' => $message ? $message : 'No estas autorizado para acceder a este recurso',\n 'success' => false\n ], 401);\n }", "public function render($request, Exception $exception)\n {\n $e = $this->prepareException($exception);\n\n if ($e instanceof HttpResponseException) {\n return $e->getResponse();\n } elseif ($e instanceof AuthenticationException) {\n $status = Response::HTTP_UNAUTHORIZED;\n $message = '認証に失敗しました。ログインしてください。';\n $errors = [];\n $trace = [];\n } elseif ($e instanceof ValidationException) {\n $status = $e->status;\n $message = Response::$statusTexts[$status];\n $errors = $e->errors();\n $trace = [];\n } elseif ($this->isHttpException($e)) {\n $status = $e->getCode();\n if ($status == 0) {\n $status = 400;\n }\n $message = $e->getMessage();\n $errors = [];\n $trace = [];\n } else {\n $code = env('APP_DEBUG', true) ? $e->getCode() : Response::HTTP_INTERNAL_SERVER_ERROR;\n if (isset($code)) {\n $code = Response::HTTP_INTERNAL_SERVER_ERROR;\n }\n $status = $code;\n $message = env('APP_DEBUG', true) ? $e->getMessage() : 'サーバエラーが発生しました。管理者に連絡してください。';\n $errors = [];\n $trace = env('APP_DEBUG', true) ? $e->getTrace() : [];\n }\n\n // ResponseApiServiceProviderが実行される前にエラーが発生した場合の対応\n if (!method_exists(response(), 'error')) {\n $app = app();\n $provide = new ResponseApiServiceProvider($app);\n $provide->boot();\n }\n\n return response()->error($message, $errors, $trace, $status);\n }", "function auth_fail() {\n header('HTTP/1.1 401 Unauthorized');\n header('WWW-Authenticate: Digest realm=\"'.$realm.\n\t '\",qop=\"auth\",nonce=\"'.uniqid().'\",opaque=\"'.md5($realm).'\"');\n}", "function unauthorized($realm = 'PHPRestSQL') {\n header('WWW-Authenticate: Basic realm=\"'.$realm.'\"');\n header('HTTP/1.0 401 Unauthorized');\n }", "public function abortIfRequestUnauthorized(): void\n {\n if ($this->isUnauthorized()) {\n throw new UnauthorizedException($this);\n }\n }", "public function respondUnauthorized($message = 'Unauthorized!')\n {\n if (!!$this->customStatusCode) {\n return $this->setCustomStatusCode($this->customStatusCode)->respondWithError($message);\n }\n return $this->setCustomStatusCode(4001)->respondWithError($message);\n }", "protected function failedAuthorization()\n {\n throw new UnauthorizedException();\n }", "public function redirectUnauthenticatedUser(){\n if(!$this->isAuthenticated() )\n $this->logout();\n }", "public function getResponse()\n {\n // Validate the request\n if ($this->secure) {\n try {\n $this->validateRequest();\n } catch (VanillaException $e) {\n return $this->formatResponse([\n 'error' => $e->getType(),\n 'message' => $e->getMessage(),\n ]);\n }\n }\n\n return $this->formatResponse($this->getUser());\n }", "public function forbiddenResponse()\n {\n flash()->error(trans('defaults.auth.error'));\n\n return redirect()->back();\n }", "public static function unauthorized($message = '', \\Exception $previous = NULL)\n {\n return new self($message, 401, $previous);\n }", "public function start(Request $request, AuthenticationException $authException = null)\n {\n $response = [\n 'status' => Response::HTTP_UNAUTHORIZED,\n 'message' => 'You shall not pass!'\n ];\n\n return new JsonResponse($response, Response::HTTP_UNAUTHORIZED);\n }", "public function send401Unauthorized()\n {\n $this->sendHeader('HTTP/1.1 401 Unauthorized');\n }", "public static function errorUnauthorized($message = 'Unauthorized')\n {\n return static::error($message, 401);\n }", "public function unauthenticated(CakeRequest $request, CakeResponse $response) {\n }", "public function unauthorized()\n\t{\n\t\t$this->template->content = $this->add_view('extinfo/unauthorized');\n\t\t$this->template->content->error_description = _('If you believe this is an error, check the HTTP server authentication requirements for accessing this page and check the authorization options in your CGI configuration file.');\n\t}", "public function onException(GetResponseForExceptionEvent $event): void\n {\n $attributes = $event->getRequest()->attributes;\n if ($attributes->get(SetIsAdminRequestListener::ADMIN_FLAG_NAME) !== true) {\n return;\n }\n\n if (!$event->getRequest()->isXmlHttpRequest()) {\n return;\n }\n\n $exception = $event->getException();\n if (!$exception instanceof AuthenticationException && !$exception instanceof AccessDeniedException) {\n return;\n }\n\n $event->setException(new AccessDeniedHttpException());\n\n $event->stopPropagation();\n }", "public function render($request, Exception $exception)\n {\n if ($exception instanceof \\Illuminate\\Auth\\AuthenticationException) {\n\n if ($request->expectsJson()) {\n return response()->json(['status'=>'Failure','message' => 'Unauthenticated.'], 200);\n }\n return redirect('/');\n }else{\n if ($exception instanceof \\Illuminate\\Http\\Exceptions\\PostTooLargeException) {\n return response()->view('errors.posttoolarge', [], 500 );\n }\n $exception = \\Symfony\\Component\\Debug\\Exception\\FlattenException::create($exception);\n\t\t $status = $exception->getStatusCode();\n\n\t\t\t//if status code is 501 redirect to custom view\n\t\t\tif( $status == 501 || $status == 503 || $status == 500 || $status == 405 ){\n\t\t\t\t return response()->view('errors.500', [], 500 );\n\t\t\t}\n\t\t\tif( $status == 404 ){\n\t\t\t\t return response()->view('errors.404', [], 404 );\n\t\t\t}\n return parent::render($request, $exception);\n }\n\n // if ($exception instanceof \\Illuminate\\Auth\\AuthenticationException) {\n\n\t// \t\t//echo \"testset\";exit;\n\t// \t\t//$exception = $this->unauthenticated($request, $exception);\n\t// \t\tif ($request->expectsJson()) {\n\t// \t\t\treturn response()->json(['status'=>'Failure','message' => 'Unauthenticated.'], 200);\n\t// \t\t}\n\t// \t\treturn redirect('/');\n\t// \t}else{\n\n\t// \t\t$exception = \\Symfony\\Component\\Debug\\Exception\\FlattenException::create($exception);\n\t// \t $status = $exception->getStatusCode() ;\n\n\t// \t\t//if status code is 501 redirect to custom view\n\t// \t\tif( $status == 501 || $status == 503 || $status == 500 || $status == 405 ){\n\t// \t\t\t return response()->view('errors.500', [], 500 );\n\t// \t\t}\n\t// \t\tif( $status == 404 ){\n\t// \t\t\t return response()->view('errors.404', [], 404 );\n\t// \t\t}\n\t// \t\treturn parent::render($request, $exception);\n // \t}\n\n\n\n\n\n\n }", "public function forbiddenResponse( ) {\n if ( $this->ajax() || $this->wantsJson() ) {\n return (new ApiController())->setStatusCode(403)->respondWithError($this->ForbiddenMessage);\n }//if ( $this->ajax() || $this->wantsJson() )\n return parent::forbiddenResponse();\n }", "public function authenticationReqd(){\n\t\theader('HTTP/1.0 401 Unauthorized');\n\t\t$this['app']['hologram']->setModule(\"WWW\")->log(\\Bakery\\Utilities\\Hologram::NORMAL, \"Response: Page requires authentication\");\r\n\t\t\n\t\t$_SESSION['redirect_to'] = $this['request']['uri'];\n\t\t\n\t\tif($this->isJson()){\n\n\t\t\treturn array(\"response\" => \"authentication required\");\n\t\t\t\n\t\t}\n\t\t\n\t\theader(\"Location: {$this['app']['security.login']['handler']}\");\n\t\t\n\t}", "private function parseResponse(HttpResponse $response): string\n {\n $result = $response->getBody();\n\n if (stripos($result, 'Unauthorized:') !== false) {\n throw new Exception\\InvalidCredentialsException(\n 'Authentication error: missing or incorrect Elastic Email API key'\n );\n }\n\n return $result;\n }", "public function testAuthenticateTransformsAccountStatusException(): void\n {\n // flagging the authorization header to be removed at the same time\n $this->serverService->expects($this->once())\n ->method('getBearerToken')\n ->with(\n $this->isInstanceOf(Request::class),\n $this->equalTo(true)\n )\n ->will($this->returnValue('mock_token_string'))\n ;\n\n // expect the OAuth2 service to verify the token, returning an access token\n $accessToken = new AccessToken();\n $accessToken->setUser($this->user);\n $accessToken->setScope('scope_1 scope_2');\n $this->serverService->expects($this->once())\n ->method('verifyAccessToken')\n ->with('mock_token_string')\n ->will($this->returnValue($accessToken))\n ;\n\n // expect the user checker to not pass\n $this->userChecker->expects($this->once())\n ->method('checkPreAuth')\n ->with($this->user)\n ->willThrowException(new DisabledException('User account is disabled.'))\n ;\n\n $passport = $this->authenticator->authenticate(new Request());\n\n // confirm that the returned passport won't pass validation\n $this->assertFalse($passport->getBadge(OAuthCredentials::class)->isResolved());\n }", "public function unauthenticated(CakeRequest $request, CakeResponse $response) {\n $controller = $this->_Collection->getController();\n $url = '';\n\n if (isset($controller->request->url)) {\n $url = $controller->request->url;\n }\n\n $url = Router::normalize($url);\n $loginAction = Router::normalize($controller->Auth->loginAction);\n\n if ($url != $loginAction) {\n $controller->_falseJson(ApiResponseCode::UNAUTHORIZED);\n $controller->response->send();\n exit;\n }\n\n return false;\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.72462296", "0.72462296", "0.7237182", "0.71802115", "0.7153523", "0.7131777", "0.71253836", "0.70805866", "0.7044714", "0.6928213", "0.6801107", "0.6797086", "0.6797086", "0.6797086", "0.67951286", "0.6773604", "0.6692273", "0.66762704", "0.66615266", "0.65927535", "0.6575697", "0.657172", "0.65651613", "0.65592605", "0.65561676", "0.65474343", "0.65456444", "0.64621174", "0.6449812", "0.6418659", "0.6368095", "0.6325493", "0.6315651", "0.619517", "0.61758846", "0.61474943", "0.6132035", "0.6115018", "0.60877025", "0.60406846", "0.60231787", "0.60017806", "0.5989365", "0.59561706", "0.59542197", "0.5951884", "0.5913911", "0.59054613", "0.59022427", "0.58936036", "0.5890028", "0.586228", "0.5816505", "0.58084416", "0.5798293", "0.5775827", "0.5765212", "0.5756567", "0.5748462", "0.57481897", "0.5736349", "0.5720096", "0.5710024", "0.5698599", "0.56899506", "0.5689086", "0.5678985", "0.5677279", "0.5670548", "0.56682247", "0.56546396", "0.56212157", "0.56041306", "0.555583", "0.5539595", "0.5519655", "0.55195737", "0.55165935", "0.5505888", "0.5496588", "0.5486352", "0.54606986", "0.545022", "0.5429932", "0.5427988", "0.5400584", "0.5395954", "0.5386388", "0.53843534", "0.5383478", "0.5371853", "0.5362611", "0.53582585", "0.5352634", "0.53490025", "0.53018844" ]
0.68399024
13
Run the database seeds.
public function run() { Storage::disk('public')->deleteDirectory('category-images'); Storage::disk('public')->makeDirectory('category-images'); $imageSeed = 'category.jpg'; $categories = [ [ 'name' => 'Bouquet', 'parent_id' => null ], [ 'name' => 'Gift', 'parent_id' => null ], [ 'name' => 'Box', 'parent_id' => null ], [ 'name' => 'Basket', 'parent_id' => null ], [ 'name' => 'Limited', 'parent_id' => null ], [ 'name' => 'Collection', 'parent_id' => null ], ]; $children = [ [ 'name' => 'Sub Bouquet 1', ], [ 'name' => 'Sub Bouquet 2', ], [ 'name' => 'Sub Bouquet 3', ] ]; foreach ($categories as $c) { $image = $this->saveThumbImages($imageSeed, 'category-images'); Category::create([ 'name' => $c['name'], 'parent_id' => $c['parent_id'], 'thumbnail_image' => $image ]); } $bouquet = Category::where('name', 'Bouquet')->first(); foreach ($children as $child) { Category::create([ 'name' => $child['name'], 'parent_id' => $bouquet->id, 'thumbnai_image' => null ]); } }
{ "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\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 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 // $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 // 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 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 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 // \\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(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 $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 // 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([\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 // $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 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 // $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 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\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 $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 {\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 //\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(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 // $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\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 \\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 $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 // $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 \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 //$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 $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 // $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 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 // \\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\n $this->call(UserSeeder::class);\n factory(Empresa::class,10)->create();\n factory(Empleado::class,50)->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 $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 /*$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 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 $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 // $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 // \\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 // $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 }", "public function run()\n {\n \t$roles = DB::table('roles')->pluck('id');\n \t$sexes = DB::table('sexes')->pluck('id');\n \t$faker = \\Faker\\Factory::create();\n\n \tforeach (range(1,20) as $item) {\n \t\tDB::table('users')->insert([\n \t\t\t'role_id' => $faker->randomElement($roles),\n \t\t\t'sex_id' => $faker->randomElement($sexes),\n \t\t\t'name' => $faker->firstName . ' ' . $faker->lastName,\n \t\t\t'dob' => $faker->date,\n \t\t\t'bio' => $faker->text,\n \t\t\t'created_at' => now(),\n \t\t\t'updated_at' => now()\n \t\t]);\n \t} \n }" ]
[ "0.80130625", "0.79795986", "0.79764974", "0.79524934", "0.7950615", "0.79505694", "0.7944086", "0.7941758", "0.7938509", "0.79364634", "0.79335415", "0.7891555", "0.78802574", "0.78790486", "0.7878107", "0.7875447", "0.78703815", "0.7869534", "0.7851931", "0.7850407", "0.7840015", "0.78331256", "0.7826906", "0.78172284", "0.7807776", "0.78024083", "0.78023773", "0.7799859", "0.77994525", "0.77955437", "0.7790015", "0.77884936", "0.7786196", "0.77790534", "0.7776279", "0.7765613", "0.7761798", "0.7760838", "0.7760613", "0.7760611", "0.7759328", "0.7757682", "0.775591", "0.7752759", "0.774942", "0.7748997", "0.7745014", "0.7728245", "0.7727775", "0.77277344", "0.7716621", "0.77139914", "0.7713781", "0.77135956", "0.7713254", "0.7711222", "0.7710622", "0.7710614", "0.77104497", "0.77100515", "0.770471", "0.77039754", "0.7703702", "0.770327", "0.7702392", "0.7700962", "0.7700507", "0.7698413", "0.76974845", "0.7697178", "0.7696662", "0.76933604", "0.76916313", "0.76898587", "0.7689098", "0.76864886", "0.76862013", "0.76860833", "0.7685714", "0.7683389", "0.76831365", "0.7679125", "0.76774627", "0.767677", "0.7676274", "0.76719916", "0.76704824", "0.76679665", "0.7667335", "0.7667264", "0.76645994", "0.7662546", "0.76618296", "0.7660438", "0.76583356", "0.76564723", "0.76530147", "0.7651929", "0.7651548", "0.7651444", "0.76511025" ]
0.0
-1
karena api.php pakai stateles bukan session
public function redirectToProvider($provider) { $url = Socialite::driver($provider)->stateless()->redirect()->gettargetUrl(); return response()->json([ 'url' => $url ]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get_api_auth()\n {\n session_start();\n echo $_SESSION['api_auth'];\n }", "function ciniki_core_sessionOpen(&$ciniki) {\n\n if( !isset($ciniki['session']) || !is_array($ciniki['session']) ) {\n return array('stat'=>'fail', 'err'=>array('code'=>'ciniki.core.143', 'msg'=>'Internal configuration error', 'pmsg'=>'$ciniki[\"session\"] not set'));\n }\n\n if( !isset($ciniki['request']['auth_token']) \n || !isset($ciniki['request']['api_key']) \n || $ciniki['request']['api_key'] == ''\n ) {\n return array('stat'=>'fail', 'err'=>array('code'=>'ciniki.core.144', 'msg'=>'Internal configuration error', 'pmsg'=>'auth_token and/or api_key empty'));\n }\n\n if( $ciniki['request']['auth_token'] == '' ) {\n return array('stat'=>'fail', 'err'=>array('code'=>'ciniki.core.145', 'msg'=>'No auth_token specified'));\n }\n\n //\n // Check if a session is already started based on the auth_token\n // and api_key.\n //\n // A combination of the api_key and auth_token are used, so somebody\n // would have to guess an api_key and auth_token of somebody logged\n // in using that api_key, ie from the same application. Adds an\n // extra layer of security for session.\n //\n\n ciniki_core_loadMethod($ciniki, 'ciniki', 'core', 'private', 'dbQuote');\n $strsql = \"SELECT auth_token, api_key, user_id, date_added, \"\n . \"(UNIX_TIMESTAMP(UTC_TIMESTAMP()) - UNIX_TIMESTAMP(last_saved)) as session_length, timeout, \"\n . \"session_data \"\n . \"FROM ciniki_core_session_data \"\n . \"WHERE auth_token = '\" . ciniki_core_dbQuote($ciniki, $ciniki['request']['auth_token']) . \"' \"\n . \"AND api_key = '\" . ciniki_core_dbQuote($ciniki, $ciniki['request']['api_key']) . \"' \"\n . \"\";\n\n ciniki_core_loadMethod($ciniki, 'ciniki', 'core', 'private', 'dbHashQuery');\n $rc = ciniki_core_dbHashQuery($ciniki, $strsql, 'ciniki.core', 'auth');\n if( $rc['stat'] != 'ok' ) {\n return $rc;\n }\n\n $version_file = $ciniki['config']['ciniki.core']['root_dir'] . \"/_versions.ini\";\n $version = '';\n if( is_file($version_file) ) {\n $version_info = parse_ini_file($version_file, true);\n if( isset($version_info['package']['version']) ) {\n $version = $version_info['package']['version'];\n }\n }\n if( $rc['num_rows'] != 1 ) {\n return array('stat'=>'fail', 'version'=>$version, 'err'=>array('code'=>'ciniki.core.146', 'msg'=>'Session expired'));\n }\n $auth = array('token'=>$rc['auth']['auth_token'], 'id'=>$rc['auth']['user_id']);\n\n //\n // Check expiry\n //\n if( $rc['auth']['session_length'] > $rc['auth']['timeout'] ) {\n ciniki_core_loadMethod($ciniki, 'ciniki', 'core', 'private', 'sessionEnd');\n ciniki_core_sessionEnd($ciniki);\n// $version_file = $ciniki['config']['ciniki.core']['root_dir'] . \"/_versions.ini\";\n// if( is_file($version_file) ) {\n// $version_info = parse_ini_file($version_file, true);\n// $version = $version_info['package']['version'];\n// } else {\n// $version = '';\n// }\n return array('stat'=>'fail', 'version'=>$version, 'err'=>array('code'=>'ciniki.core.147', 'msg'=>'Session expired'));\n }\n\n //\n // Unserialize the session data\n //\n $ciniki['session'] = unserialize($rc['auth']['session_data']);\n \n //\n // Check session variables for security. If the values in the session\n // do not match the values passed from the client, then it could be a potential\n // security problem.\n // Reset the session variable before returning.\n //\n if( $ciniki['session']['api_key'] != $ciniki['request']['api_key'] ) {\n $ciniki['session'] = array();\n return array('stat'=>'fail', 'err'=>array('code'=>'ciniki.core.148', 'msg'=>'Access Denied', 'pmsg'=>'Security Problem: Request and session api_key do not match, possible security problem.'));\n } \n elseif( $ciniki['session']['auth_token'] != $ciniki['request']['auth_token'] ) {\n $ciniki['session'] = array();\n return array('stat'=>'fail', 'err'=>array('code'=>'ciniki.core.149', 'msg'=>'Access Denied', 'pmsg'=>'Security Problem: Request and session auth_token do not match, possible security problem.'));\n } \n elseif( $ciniki['session']['user']['id'] != $rc['auth']['user_id'] ) {\n $ciniki['session'] = array();\n return array('stat'=>'fail', 'err'=>array('code'=>'ciniki.core.150', 'msg'=>'Access Denied', 'pmsg'=>'Security Problem: The user_id in the session data does not match the user_id assigned to session in the database.'));\n }\n\n $auth['perms'] = $ciniki['session']['user']['perms'];\n $auth['avatar_id'] = $ciniki['session']['user']['avatar_id'];\n\n //\n // Update session time, so timeout occurs from last action\n //\n\n //\n // If we get to this point, then the session was loaded successfully\n // and verified.\n //\n return array('stat'=>'ok', 'version'=>$version, 'auth'=>$auth); \n}", "public function Action_d(){\n// echo $request->uri().\"<br/>\";\n// echo Request::initial()->uri();\n// echo Request::current()->uri();\n// if($this->request->is_initial()){\n// \techo 'yes';\n// }else{\n// \techo 'no';\n// }\n// $request = Request::factory('http://ww.kfxiong.com/ceshi/post_api.php',array(\n// 'header_callbacks' => array(\n//\t\t 'Content-Encoding' =>\n//\t\t function (Request $request, Response $response, Request_Client $client)\n//\t\t {\n//\t\t // Uncompress the response\n//\t\t $response->body(\"aaaa\");\n//\t\t })\n// ))->method(Request::POST)->post(array('foo' => 'bar', 'bar' => 'baz'));\n// $request->execute();\n//// print_r($request);\n// print_r($this->response->body());\n\n \t\n $key = 'keys';\n $value = 'value';\n $hello = 'hello';\n $world = \"world\";\n// $session = Session::instance();\n// $session->set($key, $value);\n// echo $session->get($key);\n $default_value = \"pigger\";\n $session = Session::instance('native');\n \t $_SESSION = &$session->as_array();\n \t print_r($_SESSION);\n \t Cookie::set($hello, $world);\n \t $data = Cookie::get('pig', $default_value);\n \t echo $data;\n }", "function testAPIKeySession()\n\t{\n\t\t$arrReturn = array();\n\t\t$strCheckSpelling = \"Hornbill ! $ % ^ * ( ) _ + @ ~ . , / ' ' < > & \\\" 'Service Manager' Spelling Mitsake\";\n\n\t\t$the_transport = new \\Esp\\Transport(self::ESP_ADDRESS, \"xmlmc\", \"dav\");\n\t\t$mc = new \\Esp\\MethodCall($the_transport);\n\n\t\t$mc->setAPIKey(self::API_KEY);\n\t\t$mc->invoke(\"session\", \"getSessionInfo\");\n\t\t$strSessionID = $mc->getReturnParamAsString(\"sessionId\");\n\n\t\tarray_push($arrReturn, $this->buildResponse(\"session\", \"getSessionInfo\", \"DEBUG\", \"Session ID: \" . $strSessionID));\n\n\t\treturn $arrReturn;\n\t}", "public function _startUserSession()\n {\n // if(isset($_POST['mulai_ujian']) && isset($_POST['id_sub'])){\n // //set cookies pengerjaan soal\n // // if isset belum ada dan jawaban belum ke kunci, maka ditambahkan\n // date_default_timezone_set('Asia/Bangkok');\n // $id_sub = $_POST['id_sub'];\n // $get_date = date('Y-m-d H:i:s', time());\n // $waktu_mulai = $get_date;\n // $key = \"ayotryout2020\";\n // $cipher = \"aes-128-gcm\";\n // $ivlen = openssl_cipher_iv_length($cipher);\n // $iv = hash('sha256', $key);\n // $waktu_mulai_encrypt = openssl_encrypt($waktu_mulai, $cipher, $key, $options = 0, $iv, $tag);\n // $tag_encode = base64_encode($tag);\n\n // setcookie(\"_ts\", $waktu_mulai_encrypt, time() + (86400 * 7), \"/\");\n // //_ss = start status / apakah ujian sudah dimulai atau belum (yes/no)\n // setcookie(\"_ss\", true, time() + (86400 * 7), \"/\");\n // setcookie(\"_tag\", $tag_encode, time() + (86400 * 7), \"/\");\n // setcookie(\"_ids\", $id_sub, time() + (86400 * 7), \"/\");\n // // header('Location: ' . BASEURL . '/user/welcome');\n // } else if(isset($_POST['id_sub'])) {\n // header('Location: ' . BASEURL . '/user/ujian');\n // }\n }", "function login() {\n $token = $this->getchallenge();\n $curl = curl_init();\n// $accesskey = '55kt1mJbtDFpsw1t';\n// $accessKey = md5($token + $accesskey);\n// echo $token;\n curl_setopt_array($curl, array(\n CURLOPT_URL => \"https://develop.datacrm.la/datacrm/pruebatecnica/webservice.php\",\n CURLOPT_RETURNTRANSFER => true,\n CURLOPT_ENCODING => \"\",\n CURLOPT_MAXREDIRS => 10,\n CURLOPT_TIMEOUT => 30,\n CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n CURLOPT_CUSTOMREQUEST => \"POST\",\n CURLOPT_POSTFIELDS => \"operation=login&username=prueba&accessKey=\" . $token,\n CURLOPT_HTTPHEADER => array(\n \"Accept: */*\",\n \"Accept-Encoding: gzip, deflate\",\n \"Cache-Control: no-cache\",\n \"Connection: keep-alive\",\n \"Content-Length: 74\",\n \"Content-Type: application/x-www-form-urlencoded\",\n \"Host: develop.datacrm.la\",\n \"Postman-Token: 3b714da7-abbd-4fd6-8e8b-0afa4d40bde2,5bd84e36-16d2-4609-b2af-58b243590dd6\",\n \"User-Agent: PostmanRuntime/7.19.0\",\n \"cache-control: no-cache\"\n ),\n ));\n\n $response = curl_exec($curl);\n $err = curl_error($curl);\n\n curl_close($curl);\n\n $arrayJson = json_decode($response);\n// $sessionName = $arrayJson->result->sessionName;\n if ($err) {\n echo \"cURL Error #:\" . $err;\n } else {\n echo $response; \n }\n }", "function session_enter()\n{\n $sess_name = session_name(\"FormatikAPI\");\n session_start();\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 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}", "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 }", "public function getSessionKeyServer() {\n\t\tlog_message('error', 'library getSessionKeyServer');\n\t\t$this->processing_code = \"1030\";\n\t\t$data = new stdClass();\n\t\t$data->p_id = $this->partner_id;\n\t\t$data->p_username = $this->partner_username;\n\t\t$data->p_pass = $this->partner_pass;\n\t\tlog_message('error', 'data request getSessionKeyServer: ' . print_r($data, true));\n\t\t$encryptData = $this->RSAencrypt(json_encode($data));\n\t\t$requestMegaV = $this->requestMegaVCore($encryptData);\n\t\tlog_message('error', 'data respone getSessionKeyServer: ' . print_r($requestMegaV, true));\n\t\t$respone = json_decode($requestMegaV, true);\n\t\tif(isset($respone['data']))\n\t\t{\n\t\t\t$sessionKey = $this->RSAdecrypt($respone['data']);\n\t\t\t\n\t\t\t$sessionKey = json_decode($sessionKey, true);\n\t\t\tif(isset($sessionKey['status']) && $sessionKey['status'] == \"00\")\n\t\t\t{\n\t\t\t\tif($sessionKey['status'] == \"00\")\n\t\t\t\t{\n\t\t\t\t\t$redis = new CI_Redis();\n\t\t\t\t\t$redis->set('SESSION_KEY', $sessionKey['session_key']);\n\t\t\t\t\t$redis->expire('SESSION_KEY', SESSION_KEY_TTL);\n\t\t\t\t\treturn $sessionKey['session_key'];\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t// log $sessionKey['status']\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "public function singkronisasi_login(){\n $url = env(\"KLOLA_BASE_URL\").\"/api/auth/login\";\n $header = array();\n $param_body = [\n \"email\"=> env(\"KLOLA_LOGIN_USER\"),\n \"password\"=> env(\"KLOLA_LOGIN_PASSWORD\")\n ];\n $result_curl = Utils::curl_post($url, $header, $param_body);\n\n if($result_curl[\"code\"] == 200) {\n $deSerialise = json_decode($result_curl[\"result\"], true);\n if(array_key_exists(\"access_token\", $deSerialise)) {\n Session::set(\"klola_access_token\", $deSerialise[\"access_token\"]);\n }\n\n return [\n \"status\" => true,\n \"result\" => $deSerialise\n ];\n }\n\n return [\n \"status\" => false\n ];\n }", "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 }", "function dashboard() {\n /**\n * Check whether a session was created.\n * If there was no session, it might be expired.\n */\n if($_SESSION) {\n /**\n * Check whether some user is stored to the session.\n * If there is no user stored to the session, the access is unathorized.\n */\n if($_SESSION[\"userName\"]) {\n $response = [\"success\" => true, \"data\" => $_SESSION[\"userName\"]];\n } else {\n $response = [\"success\" => false, \"data\" => \"Неоторизиран достъп.\"];\n }\n } else {\n $response = [\"success\" => false, \"data\" => \"Вашата сесия е изтекла.\"];\n }\n \n /**\n * Return response to the user.\n */\n echo json_encode($response);\n }", "public static function index()\r\n {\r\n $dir = dirname(realpath(__DIR__ . ''));\r\n if (empty($_SESSION)) {\r\n @session_start();\r\n $parametrosSistema = file_get_contents($dir . \"/config/parametrosGenerales.json\");\r\n $array = json_decode($parametrosSistema, true);\r\n foreach ($array as $clave => $valor) {\r\n SessionController::guardarVariable($clave, $valor);\r\n }\r\n $parametrosDiccionario = file_get_contents($dir . \"/config/parametrosDiccionario.json\");\r\n $array = json_decode($parametrosDiccionario, true);\r\n foreach ($array as $clave => $valor) {\r\n SessionController::guardarVariable($clave, $valor);\r\n }\r\n SessionController::get_client_ip();\r\n }\r\n if(isset($_POST[\"z_c\"]) && $_POST[\"z_c\"] != \"\"){\r\n $parametros = Utilitarias::valorEncriptado($_POST[\"z_c\"]);\r\n if (isset($parametros[3]) && !SessionController::extraerVariable(\"valido_user\")) {\r\n if (file_exists(realpath($dir . \"/config/parametrosConfigCamara_\" . $parametros[3] . \".json\"))) {\r\n $parametrosSistema = file_get_contents(realpath($dir . \"/config/parametrosConfigCamara_\" . $parametros[3] . \".json\"));\r\n } else {\r\n $msj = array(\"codigoerror\" => \"E9999\", \"mensajeerror\" => \"No se encuentra configurada la camara seleccionada\");\r\n die(print_r(json_encode($msj), true));\r\n }\r\n $array = json_decode($parametrosSistema, true);\r\n SessionController::guardarVariable(\"codigoempresa\", $parametros[3]);\r\n foreach ($array as $clave => $valor) {\r\n SessionController::guardarVariable($clave, $valor);\r\n }\r\n SessionController::construirLocalPeticion();\r\n }\r\n }else{\r\n if (isset($_GET[self::TXTCODCAMARA]) && !SessionController::extraerVariable(\"valido_user\")) {\r\n if (file_exists(realpath($dir . \"/config/parametrosConfigCamara_\" . $_GET[self::TXTCODCAMARA] . \".json\"))) {\r\n $parametrosSistema = file_get_contents(realpath($dir . \"/config/parametrosConfigCamara_\" . $_GET[self::TXTCODCAMARA] . \".json\"));\r\n } else {\r\n $msj = array(\"codigoerror\" => \"E9999\", \"mensajeerror\" => \"No se encuentra configurada la camara seleccionada\");\r\n die(print_r(json_encode($msj), true));\r\n }\r\n $array = json_decode($parametrosSistema, true);\r\n SessionController::guardarVariable(\"codigoempresa\", $_GET[self::TXTCODCAMARA]);\r\n foreach ($array as $clave => $valor) {\r\n SessionController::guardarVariable($clave, $valor);\r\n }\r\n SessionController::construirLocalPeticion();\r\n }\r\n }\r\n }", "public static function start() {\t\t\t\n\t\t\t// get session id\n $sessionid = Functions::encrypt_decrypt('encrypt', \"Bengalathon\");\n \n //set session name\n\t\t\tini_set('session.name', $sessionid.'_SESID');\n \t\t\t\n //set session name\n\t\t\tini_set('session.name', base64_encode(BASE_PATH).'_SESID');\n \n //set session path\n\t\t\tini_set('session.cookie_path', \"/\");\n\t\t\t \t\t\t\n //set session domain\n ini_set('session.cookie_domain', $_SERVER['HTTP_HOST']);\n \n //set session httponly\n ini_set('session.cookie_httponly', true);\n \n //set session secure https\n ini_set('session.cookie_secure', false);\n \n\t\t\t// start the session\n\t\t\t@session_start();\t\t\n\t\t\t\n\t\t\t// get session token\n\t\t\t$token = self::get('token');\n\t\t\t\n\t\t\t// set session token\n\t\t\tif (empty($token)) {\n\t\t\t\tif (function_exists('mcrypt_create_iv')) {\n\t\t\t\t\tself::set('token', bin2hex(mcrypt_create_iv(32, MCRYPT_DEV_URANDOM)));\n\t\t\t\t} else {\n\t\t\t\t\tself::set('token', bin2hex(openssl_random_pseudo_bytes(32)));\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t// return session id\t\t\t\n\t\t\treturn session_id();\n\t\t}", "public function index() {\n $_SESSION['kviz_end'] = 0;\n $this->prikaz(\"igrac\", []);\n }", "public function session_start_controller(){\n\n\t\t\t$userName=mainModel::clean_string($_POST['loginUserName']);\n\t\t\t$userPass=mainModel::clean_string($_POST['loginUserPass']);\n\n\t\t\t//$userPass=mainModel::encryption($userPass);\n\n\t\t\t$dataLogin=[\n\t\t\t\t\"AccountUserName\"=>$userName,\n\t\t\t\t\"AccountPass\"=>$userPass\n\t\t\t];\n\n\t\t\tif($dataAccount=loginmodel::session_start_model($dataLogin)){\n\t\t\t\tif($dataAccount->rowCount()==1){\n\n\t\t\t\t\t$row=$dataAccount->fetch();\n\n session_start(['name'=>'ASUSAP']);\n $_SESSION['user_name_srce']=$row['usuario'];\n $_SESSION['user_token_srce']=$row['password'];\n // $_SESSION['user_token_srce']=md5(uniqid(mt_rand(), true));\n\n $dateNow=date(\"Y-m-d\");\n\t\t\t\t\t$yearNow=date(\"Y\");\n\t\t\t\t\t$timeNow=date(\"h:i:s a\");\n\n $url=SERVERURL.\"dashboard/\";\n\n\t\t\t\t}else{\n\t\t\t\t\t$dataAlert=[\n\t\t\t\t\t\t\"Title\"=>\"Ocurrió un error inesperado\",\n\t\t\t\t\t\t\"Text\"=>\"El nombre de usuario y contraseña no son correctos o su cuenta puede estar deshabilitada\",\n\t\t\t\t\t\t\"Type\"=>\"error\",\n\t\t\t\t\t\t\"Alert\"=>\"single\"\n\t\t\t\t\t];\n\t\t\t\t\treturn mainModel::sweet_alert($dataAlert);\n\t\t\t\t}\n return $urlLocation='<script type=\"text/javascript\"> window.location=\"'.$url.'\"; </script>';\n\t\t\t}else{\n\t\t\t\t$dataAlert=[\n\t\t\t\t\t\"Title\"=>\"Ocurrió un error inesperado\",\n\t\t\t\t\t\"Text\"=>\"No se pudo realizar la petición\",\n\t\t\t\t\t\"Type\"=>\"error\",\n\t\t\t\t\t\"Alert\"=>\"single\"\n\t\t\t\t];\n\t\t\t\treturn mainModel::sweet_alert($dataAlert);\n\t\t\t}\n\t\t}", "public function fetchSessionData() {}", "public function index() {\n\t\t$json = array ();\n\t\t\n\t\tunset ( $this->session->data ['app_id'] );\n\t\t\n\t\t$data = json_decode ( file_get_contents ( 'php://input' ), true );\n\t\t$keys = array (\n\t\t\t\t'username',\n\t\t\t\t'password' \n\t\t);\n\t\t\n\t\tforeach ( $keys as $key ) {\n\t\t\tif (! isset ( $this->request->post [$key] )) {\n\t\t\t\t$this->request->post [$key] = '';\n\t\t\t}\n\t\t}\n\t\t\n\t\t$username = ($this->request->post ['username'] ? $this->request->post ['username'] : (isset ( $data ['username'] ) ? $data ['username'] : ''));\n\t\t$password = ($this->request->post ['password'] ? $this->request->post ['password'] : (isset ( $data ['password'] ) ? $data ['password'] : ''));\n\t\t\n\t\tif ($this->customer->login ( $username, $password )) {\n\t\t\t\n\t\t\t$this->session->data ['app_id'] = sha1 ( $this->customer->getId () );\n\t\t\t\n\t\t\t$json ['cookie'] = $this->session->getId ();\n\t\t\t\n\t\t\t$json ['success'] = \"1\";\n\t\t} else {\n\t\t\t$json ['success'] = \"0\";\n\t\t}\n\t\t\n\t\t$this->response->addHeader ( 'Content-Type: application/json' );\n\t\t$this->response->setOutput ( json_encode ( $json ) );\n\t}", "public function startReqSession(){\n\n\t\t\t$message = '\n\t\t\t<soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\"\n\t\t\txmlns:shar=\"http://www.travelport.com/schema/sharedBooking_v34_0\"\n\t\t\txmlns:com=\"http://www.travelport.com/schema/common_v34_0\">\n\t\t\t<soapenv:Header/>\n\t\t\t<soapenv:Body>\n\t\t\t\t<shar:BookingStartReq TraceId=\"c7e2d212-0e77-458e-87e9-e4b361ffdd8\"\n\t\t\t\t TargetBranch=\"'.$this->uApi->getApiDetails('TARGET_BRANCH').'\" ProviderCode=\"'.$this->uApi->getApiDetails('PROVIDER').'\">\n\t\t\t\t<com:BillingPointOfSaleInfo OriginApplication=\"UAPI\"/>\n\t\t\t\t</shar:BookingStartReq>\n\t\t\t</soapenv:Body>\n\t\t\t</soapenv:Envelope>\n\t\t\t';\n\n\n\t\t\t$auth = base64_encode($this->uApi->getApiDetails('CREDENTIALS'));\n\t\t\t$soap_do = curl_init(\t\t$this->uApi->getApiDetails('PRE_PROD_URL_SESSIONED'));\n\t\t\t$header = array(\n\t\t\t\"Content-Type: text/xml;charset=UTF-8\",\n\t\t\t\"Accept: gzip,deflate\",\n\t\t\t\"Cache-Control: no-cache\",\n\t\t\t\"Pragma: no-cache\",\n\t\t\t\"SOAPAction: \\\"\\\"\",\n\t\t\t\"Authorization: Basic $auth\",\n\t\t\t\"Content-length: \".strlen($message),\n\t\t\t);\n\n\n\t\t\t// Sending CURL Request To Fetch Data From API\n\t\t\tcurl_setopt($soap_do, CURLOPT_CONNECTTIMEOUT, 120);\n\t\t\tcurl_setopt($soap_do, CURLOPT_TIMEOUT, 120);\n\t\t\tcurl_setopt($soap_do, CURLOPT_SSL_VERIFYPEER, false);\n\t\t\tcurl_setopt($soap_do, CURLOPT_SSL_VERIFYHOST, false);\n\t\t\tcurl_setopt($soap_do, CURLOPT_POST, true );\n\t\t\tcurl_setopt($soap_do, CURLOPT_POSTFIELDS, $message);\n\t\t\tcurl_setopt($soap_do, CURLOPT_HTTPHEADER, $header);\n\t\t\tcurl_setopt($soap_do, CURLOPT_RETURNTRANSFER, true);\n\t\t\t$resp = curl_exec($soap_do);\n\t\t\tcurl_close($soap_do);\n\n\t\t\t//write to file\n\t\t\t\t\t$this->logger('Req:\\r\\n\\t'.$message.'\\r\\nResp:'.$resp , time());\n\t\t\t//Loads the XML\n\t\t\t$xml = simplexml_load_string($resp);\n\t\t\treturn $xml;\n\t}", "public function actionBuatSessionMasukKamar()\n {\n \n $kelaspelayanan_id = (isset($_POST['kelaspelayanan_id']) ? $_POST['kelaspelayanan_id'] : null);\n $pendaftaran_id = (isset($_POST['pendaftaran_id']) ? $_POST['pendaftaran_id'] : null);\n if(!empty($_POST['masukkamar_id']))\n {\n $masukkamar_id = (isset($_POST['masukkamar_id']) ? $_POST['masukkamar_id'] : null);\n Yii::app()->session['masukkamar_id'] = $masukkamar_id;\n }\n Yii::app()->session['kelaspelayanan_id'] = $kelaspelayanan_id;\n Yii::app()->session['pendaftaran_id'] = $pendaftaran_id;\n Yii::app()->session['masukkamar_id'] = $masukkamar_id;\n \n echo CJSON::encode(array(\n 'kelaspelayanan_id'=>Yii::app()->session['kelaspelayanan_id'], \n 'pendaftaran_id'=>Yii::app()->session['pendaftaran_id'],\n 'masukkamar_id'=>Yii::app()->session['masukkamar_id']));\n \n }", "public function start_call()\n {\n if (post_data('tokbox_session_key') == NULL || post_data('tokbox_token') == NULL)\n {\n exit(json_encode(array('status' => '0')));\n }\n\n $this->session->set_userdata('tokbox_data', post_data());\n exit(json_encode(array('status' => '1')));\n }", "function SIDEws_session_POST($arg) {\r\n global $user;\r\n $username = $_POST['username'];\r\n $projectCode = $_POST['projectCode'];\r\n $password = $_POST['password'];\r\n $mobileID = $_POST['mobileID'];\r\n //$username = \"zou xiaohang\";\r\n //$password = \"19871004\";\r\n //$mobileID = \"1\";\r\n if (!user_is_logged_in()) {\r\n if (check_projectCode($projectCode)) {\r\n session_register(\"projectCode\");\r\n $_SESSION['projectCode'] = $projectCode;\r\n if (login_validate($username,$password)) {\r\n check_mobileID($mobileID);\r\n session_register(\"mobileID\");\r\n $_SESSION['mobileID'] = $mobileID;\r\n $sql = 'SELECT * FROM {sessions} WHERE uid = %d';\r\n $current_user_session_obj = db_fetch_array(db_query($sql,$user->uid));\r\n $response = array(\r\n 'sessionID' => $current_user_session_obj['sid'],\r\n );\r\n return array(\r\n 'response_code' => '200', // OK\r\n 'headers' => array(),\r\n 'body' => json_encode($response),\r\n 'media_type' => 'text/plain',\r\n 'charset' => 'utf-8',\r\n );\r\n }else {\r\n $response_code = \"403\";\r\n $message = array(\r\n 'message' => 'Login failed!',\r\n );\r\n return response_error ($response_code, $message);\r\n }\r\n }else {\r\n $response_code = \"403\";\r\n $message = array(\r\n 'message' => 'Project code is wrong!',\r\n );\r\n return response_error ($response_code, $message);\r\n }\r\n }else {\r\n $response_code = \"403\";\r\n $message = array(\r\n 'message' => 'Login failed!',\r\n );\r\n return response_error ($response_code, $message);\r\n }\r\n}", "public static function startSession();", "function login() {\n if ($this->getRequestMethod() != 'POST') {\n $this->response('', 406);\n }\n \n $user = json_decode(file_get_contents('php://input'),true);\n if (!self::validateUser($user['username'], $user['password'])) {\n $this->response('', 406);\n }\n $user['password'] = self::getHash($user['username'], $user['password']);\n $keys = array_keys($user);\n\n $query = \"select id from users where username = '\" . $user['username'] . \"' and password = '\" .\n $user['password'] . \"';\";\n \n $r = $this->conn->query($query) or die($this->conn->error.__LINE__);\n \n if ($r->num_rows > 0) {\n $response = $r->fetch_assoc(); \n $userId = $response['id'];\n $query = \"select content, expire_date from tokens where user_id = $userId ;\";\n\n $r = $this->conn->query($query) or die($this->conn->error.__LINE__);\n $hasToken = false;\n // check if the token expired\n if ($r->num_rows > 0) {\n $hasToken = true;\n $response = $r->fetch_assoc();\n if ( strtotime('now') > (int)$response['expire_date']) {\n $query = \"delete from tokens where user_id = $userId\";\n $r = $this->conn->query($query) or die($this->conn->error.__LINE__);\n $hasToken = false; \n }\n }\n if ($hasToken) {\n $jwt = $response[\"content\"];\n $resp = array('token' =>$jwt, 'id' => $userId);\n $this->response(json_encode($resp), 200);\n } else {\n $key = self::nextToken();\n $token = array(\n \"iss\" => \"tubeapi\"\n );\n $jwt = 'Bearer ' .JWT::encode($token, $key); \n\n $expireDate = strtotime(\"+1 hour\"); \n $query = \"insert into tokens (user_id, content, expire_date) values('$userId',\" .\n \"'$jwt','$expireDate');\";\n\n $r = $this->conn->query($query) or die($this->conn->error.__LINE__);\n $resp = array('token' => $jwt, 'id' => $userId);\n $this->response(json_encode($resp), 200);\n }\n } else {\n $this->response('',204);\n }\n }", "function loadSession() {}", "public function index(Request $request)\n {\n \n $payload = JWTAuth::parseToken()->getPayload();\n // dd($payload);\n // then either of\n echo \"Client page\";\n echo \"<br> username =\".$payload->get('username');\n echo \"<br> password =\".$payload['password'];\n echo \"<br>user type =\".$payload['usertype'];\n echo \"<br>agencyid =\".$payload['agencyid'];\n echo \"<br>map userid (irriscentral) =\".$payload['mapuserid']; // IC.userid\n echo \"<br>db_name =\".$payload['db_name'];\n echo \"<br>login_db_userid =\".$payload['login_db_userid'];\n //\n //$data = $request->session()->all();\n \n \n // $d = Session::get('mapusername'); \n // //dd($data);\n // print_r(Session::all()); \n // $d = Session::get('_token'); \n \n return view('welcome');\n }", "public function getSessionKey() {\n if (!$this->session) {\n $session_request = new stdClass;\n $session_request->username = BullhornModelConfig::get('username');\n $session_request->password = BullhornModelConfig::get('password');\n $session_request->apiKey = BullhornModelConfig::get('api_key');\n try {\n $startSessionResponse = $this->getClient()->startSession($session_request);\n $this->session = array();\n $this->session['key'] = $startSessionResponse->return->session;\n $this->session['userId'] = $startSessionResponse->return->userId;\n $this->session['corporationId'] = $startSessionResponse->return->corporationId;\n } catch (Exception $e) {\n $this->setError('Bullhorn API says: ' . $e->getMessage());\n }\n }\n if (!$this->session['key'])\n $this->setError('Could not retrieve a session key from the Bullhorn API: username, password or API key may be incorrect');\n return $this->session['key'];\n }", "function bdd2session() {\n\tif (!empty($_SESSION['dims']['userid'])) {\n\t\tinclude_once DIMS_APP_PATH.'/modules/catalogue/include/class_panier.php';\n\t\t$panier = new cata_panier();\n\t\t$panier->open($_SESSION['dims']['userid']);\n\n\t\tforeach ($panier->articles as $art) {\n\t\t\t$_SESSION['catalogue']['panier']['articles'][$art['ref']]['qte'] = $art['qte'];\n\n\t\t\tif (isset($art['forced_price'])) {\n\t\t\t\t$_SESSION['catalogue']['panier']['articles'][$art['ref']]['forced_price'] = $art['forced_price'];\n\t\t\t}\n\t\t}\n\t\t// update_montant_panier();\n\t}\n}", "function geefSession() {\n echo '<pre>';\n print_r( $_SESSION );\n echo '</pre>';\n}", "public function login(Request $request)\n {\n $state;\n\t\t\n $data = array( \n 'countryCode' => $request->get('countryCode'),\n 'phone' =>$request->get('phone')\n );\n\n $data_string = json_encode($data);\n\n\n /*\n $curl = curl_init();\n\n curl_setopt_array($curl, array(\n CURLOPT_URL => \"https://armasoftware.com/demo/almuzna_api/api/v1/user/login\",\n CURLOPT_RETURNTRANSFER => true,\n CURLOPT_FOLLOWLOCATION => true,\n CURLOPT_ENCODING => \"\",\n CURLOPT_MAXREDIRS => 10,\n CURLOPT_TIMEOUT => 30,\n CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n CURLOPT_CUSTOMREQUEST => \"POST\",\n CURLOPT_HTTPHEADER => array(\n \"x-api-password: ase1iXcLAxanvXLZcgh6tk\",\n ),\n ));\n */\n\n\n $ch = curl_init('https://armasoftware.com/demo/almuzna_api/api/v1/user/login');\n\n curl_setopt($ch, CURLOPT_CUSTOMREQUEST, \"POST\");\n\n curl_setopt($ch, CURLOPT_POSTFIELDS, $data_string);\n\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n\n curl_setopt($ch, CURLOPT_HTTPHEADER, array( \n 'Content-Type: application/json',\n 'Content-Length: ' . strlen($data_string),\n 'x-api-password: ase1iXcLAxanvXLZcgh6tk',\n 'lang:'.LaravelLocalization::getCurrentLocale()\n ) \n ); \n\n\n $response = curl_exec($ch);\n $err = curl_error($ch);\n\n curl_close($ch);\n\n\n if ($err)\n return $state = 'failure'; \n \n $user = json_decode($response, true);\n\n if(isset($user['message'])){\n if ($user['message'] == 'Unauthenticated.')\n return $state = 'failure'; \n }\n if(!$user['status'])\n return $state = 'failure';\n\n session([ 'user_id' => $user['data']['id'] ]);\n session([ 'api_token' => $user['data']['api_token'] ]);\n \n return $state = 'success';\n\n }", "public function signIn(){\n \t// check if user has accepted cookies\n \tif(isset($_COOKIE['isUsingCookies']) && $_COOKIE['isUsingCookies'] == true && isset($_POST['remember_me'])){\n \t\tunset($_POST['remember_me']);\n \t\tsetcookie('remember_me', true, time()+60*60*24*365);\n \t}\n\n \t// encode the request content in json\n\t\tjson_encode($_POST);\n\n\t\t// request the user from the API that possesses the entered email\n\t\t// prepares the resquest\n\t\t$ch = curl_init();\n\t\tcurl_setopt($ch, CURLOPT_HTTPHEADER, array('Authorization: ' . TOKEN));\n\t\tcurl_setopt($ch, CURLOPT_URL, \"http://\" . IP . \"/bde_site/api/user/email/\" . $_POST['email']);\n\t\tcurl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);\n\n\t\t// send the request\n\t\t$output = curl_exec($ch);\n\t\t$info = curl_getinfo($ch);\n\t\tcurl_close($ch);\n\n\n\t\tif($output != '[]'){\n\t\t\t$output = json_decode($output, true)[0];\n\t\t\tvar_dump($output);\n\n\t\t\t// if the password is correct, connect the user\n\t\t\tif($output['password'] == hash('sha256', $_POST['password'])){\n\t\t\t\tsession_start();\n\t\t\t\t$_SESSION['first_name'] = $output['first_name'];\n\t\t\t\t$_SESSION['last_name'] = $output['last_name'];\n\t\t\t\t$_SESSION['email'] = $output['email'];\n\t\t\t\t$_SESSION['id_user'] = $output['id_user'];\n\t\t\t\t$_SESSION['campus_name'] = $output['campus_name'];\n\t\t\t\t$_SESSION['status'] = $output['status'];\n\n\t\t\t\t// if the user has accepted cookies, registers the users data into cookies\n\t\t\t\tif(isset($_COOKIE['isUsingCookies']) && $_COOKIE['isUsingCookies'] == true){\n\t\t\t\t\tsetcookie('first_name', $_SESSION['first_name'], time()+60*60*24*365);\n\t\t\t\t\tsetcookie('last_name', $_SESSION['last_name'], time()+60*60*24*365);\n\t\t\t\t\tsetcookie('email', $_SESSION['email'], time()+60*60*24*365);\n\t\t\t\t\tsetcookie('id_user', $_SESSION['id_user'], time()+60*60*24*365);\n\t\t\t\t\tsetcookie('campus_name', $_SESSION['campus_name'], time()+60*60*24*365);\n\t\t\t\t\tsetcookie('status', $_SESSION['status'], time()+60*60*24*365);\n\t\t\t\t}\n\t\t\t\t// if the user is not in the database, returns an error\n\t\t\t}else{\n\t\t\t\treturn redirect()->route('signIn', 'notRegistered');\n\t\t\t}\n\n\t\t\t// open the home view\n\t\t\treturn redirect('/');\n\t\t}\n\n\t\t// if the user is not in the database, returns an error\n\t\treturn redirect()->route('signIn', 'notRegistered');\n\t}", "public function babak4play()\n\t{\n\t\t$post = $this->input->post();\n\t\t$soalke = $post['soalke'];\n\t\t$tim = $post['tim'];\n\t\t$jumlahsoal = $this->session->userdata('jumlahsoal4');\n\t\tif (isset($post['pass'])) {\n\t\t\t$history = $this->session->userdata('historybabak4');\n\t\t\t$history = $history . '<br> Tidak ada yang menjawab soal ke ' . $post['soalke'] . ', soal dilewati';\n\t\t\t$this->session->set_userdata('historybabak4', $history);\n\t\t} else {\n\t\t\t//jika benar, maka menambah nilai dari tim bersangkutan\n\t\t\tif (isset($post['benar'])) {\n\t\t\t\tif ($post['tim'] == \"A\") {\n\t\t\t\t\t$nilai = $this->session->userdata('skortim1') + $this->session->userdata('kelipatanpoin');\n\t\t\t\t\t$this->session->set_userdata('skortim1', $nilai);\n\t\t\t\t} else if ($post['tim'] == \"B\") {\n\t\t\t\t\t$nilai = $this->session->userdata('skortim2') + $this->session->userdata('kelipatanpoin');\n\t\t\t\t\t$this->session->set_userdata('skortim2', $nilai);\n\t\t\t\t} else if ($post['tim'] == \"C\") {\n\t\t\t\t\t$nilai = $this->session->userdata('skortim3') + $this->session->userdata('kelipatanpoin');\n\t\t\t\t\t$this->session->set_userdata('skortim3', $nilai);\n\t\t\t\t} else if ($post['tim'] == \"D\") {\n\t\t\t\t\t$nilai = $this->session->userdata('skortim4') + $this->session->userdata('kelipatanpoin');\n\t\t\t\t\t$this->session->set_userdata('skortim4', $nilai);\n\t\t\t\t}\n\n\t\t\t\t$nilaisoal = $this->session->userdata('kelipatanpoin');\n\t\t\t\t$history = $this->session->userdata('historybabak4');\n\t\t\t\t$history = $history . \"</br>Tim $tim menjawab soal ke $soalke dengan benar, nilai ditambah $nilaisoal\";\n\t\t\t\t$this->session->set_userdata('historybabak4', $history);\n\t\t\t} else {\n\t\t\t\t//jika jawaban salah maka dikurangi poin berdasarkan kelipatan soal\n\t\t\t\tif ($post['tim'] == \"A\") {\n\t\t\t\t\t$nilai = $this->session->userdata('skortim1') - $this->session->userdata('kelipatanpoin');\n\t\t\t\t\t$this->session->set_userdata('skortim1', $nilai);\n\t\t\t\t} else if ($post['tim'] == \"B\") {\n\t\t\t\t\t$nilai = $this->session->userdata('skortim2') - $this->session->userdata('kelipatanpoin');\n\t\t\t\t\t$this->session->set_userdata('skortim2', $nilai);\n\t\t\t\t} else if ($post['tim'] == \"C\") {\n\t\t\t\t\t$nilai = $this->session->userdata('skortim3') - $this->session->userdata('kelipatanpoin');\n\t\t\t\t\t$this->session->set_userdata('skortim3', $nilai);\n\t\t\t\t} else if ($post['tim'] == \"D\") {\n\t\t\t\t\t$nilai = $this->session->userdata('skortim4') - $this->session->userdata('kelipatanpoin');\n\t\t\t\t\t$this->session->set_userdata('skortim4', $nilai);\n\t\t\t\t}\n\n\t\t\t\t$history = $this->session->userdata('historybabak4');\n\t\t\t\t$history = $history . '<br> Tim ' . $post['tim'] . ' salah menjawab soal ke ' . $post['soalke'] . ' , nilai -' . $this->session->userdata('kelipatanpoin');\n\t\t\t\t$this->session->set_userdata('historybabak4', $history);\n\t\t\t}\n\t\t}\n\n\t\t$kelipatan = $this->session->userdata('kelipatan');\n\t\tif ($soalke !== $jumlahsoal) {\n\t\t\t$nextsoal = $soalke + 1;\n\t\t\t$kelipatanpoin = $kelipatan * $nextsoal;\n\t\t\t$this->session->set_userdata('soalke', $nextsoal);\n\t\t\t$this->session->set_userdata('kelipatanpoin', $kelipatanpoin);\n\t\t} else {\n\t\t\t//lanjut ke babak 2 kalau soal sudah mentok\n\t\t\t$this->session->set_userdata('babak', 5);\n\t\t\t$this->session->set_userdata('soalke', NULL);\n\t\t}\n\n\t\tredirect('home');\n\t}", "public function index()\n {\n $token = sha1( time() . rand(0, 9999) );\n $this->request->session()->write('token', $token);\n $this->set('token', $token);\n }", "protected function _startSession()\n\t{\n\t\tif (is_null($this->_client))\n\t\t{\n\t\t\t$this->_client = new SoapClient($this->config['url']);\t\t\t\n\t\t}\n\t\tif (is_null($this->_session))\n\t\t{\n\t\t\t$this->_session = $this->_client->login($this->config['apiuser'], $this->config['apikey']);\t\t\t\n\t\t}\t\t\n\t\tpr($this->_client->__getFunctions());\n\t}", "public function index()\n\t{\n\t\t$data = $this->session->all_userdata();\n\t\t$this->json->output($data);\n\t}", "public function index()\n { \n \t// $url = ENV('APP_URL_API').'web/homepage/popular';\n // $PopularData = json_decode(file_get_contents($url));\n if(Session::get('login')){\n\n $mitra = json_decode(file_get_contents(ENV('APP_URL_API').'merchant/mitra/cek/'.decrypt(Session::get('id_token_xmtrusr'))));\n\n if ($mitra == \"true\") {\n $private = \"Mitra\";\n }else{\n $private = \"Pelanggan\";\n }\n\n $urlKota = ENV('APP_URL_API').'web/homepage/kota';\n $kotaList = json_decode(file_get_contents($urlKota));\n\n $count_survey = json_decode(file_get_contents(ENV('APP_URL_API').'web/homepage/survey/count/'.decrypt(Session::get('id_token_xmtrusr'))));\n\n $data = json_decode(file_get_contents(ENV('APP_URL_API').'bo/list/paket'));\n \n return view('Pages.homePage-Login')->with([\n 'count_survey' => $count_survey->count,\n 'kotaList' => $kotaList,\n 'private' => $private,\n 'data' => $data,\n ]);\n\n }else{\n $private = \"Harus_login\";\n $data = json_decode(file_get_contents(ENV('APP_URL_API').'bo/list/paket'));\n\n return view('Pages.homePage')->with([\n 'private' => $private,\n 'data' => $data,\n ]);\n } \n }", "public function requestAction() {\n $this->api->login('request')->post()->loadTokenFromResponse();\n $_SESSION['request_token'] = $this->api->getOAuthToken();\n return $this->api->goRedirect('login');\n }", "function actionLogin(){\n\t\t//session_start();\n\t\t\n\t\tif (!empty($_POST['id'])){\n\t\t\t$url = 'http://localhost:8090/BlogServer/ServletDemo?username=%3Bl&password=';\n\t\t\t$html = file_get_contents($url); \n\t\t\t$respObject = json_decode($html);\n\t\t\tif (!Empty($respObject->user->$_POST['id'])){\t\t\t\t\n\t\t\t\t$_SESSION['views'] = $respObject->user->$_POST['id'];\n\t\t\t\t$art = new Article();\n\t\t\t\t$this->findall = $art->findAll();\n\t\t\t\t$this->display(\"kmblog/km_index.html\");\n\t\t\t}\n\t\t}\n\t}", "public function startSession() {}", "public function generateSession()\n\t{\n\t\t$name = $_POST['name'];\n\t\t$password = $_POST['password'];\n\t\t//validación de Usuario con un name y password ya definido\n\t\t$this->validaUsuario($name,$password);\n\n\t\t//validacion de un Usuario a Nivel Base de Datos cargar la base de datos y en la clase de la conexion poner los datos de la base de datos\n\t\t//$this->validaUsuarioDB($name,$password);\n\n\n\t}", "public function index()\n\t{\n session_start();\n if(isset($_GET['session_id']))\n {\n $id = $_GET['session_id'];\n $_SESSION['id'] = $id;\n }\n else \n {\n $id = $_SESSION['id'];\n }\n $session= array();\n $data['username'] = 'Guest';\n $session = DB::select(\"select * from ad_session where ad_session_id='\".$id.\"'\");\n //print_r($session);die;\n if($session[0]->session_active == 'Y')\n {\n $userid = $session[0]->createdby;\n $user = DB::select(\"select * from ad_user where ad_user_id='\".$userid.\"'\");\n $data['username'] = $user[0]->name;\n $user_role = DB::select(\"select * from ad_user_roles where ad_user_id='\".$userid.\"'\");\n $roleid = $user_role[0]->ad_role_id;\n $role = DB::select(\"select * from ad_role where ad_role_id in ('\".$roleid.\"')\");\n \n $clientlist = $role[0]->clientlist;\n $orglist = $role[0]->orglist;\n $roleorg = DB::select(\"select * from ad_role_orgaccess where ad_role_id in ('\".$roleid.\"')\");\n $windowaccess = DB::select(\"select * from ad_window_access where ad_role_id in ('\".$roleid.\"')\");\n $window = DB::select(\"select * from ad_window where ad_window_id='\".$userid.\"'\");\n \n //print_r($orglist);\n }\n else {\n header(\"Location: http://192.168.0.48:8080/punetest/\");\n }\n return view('home',$data);\n\t}", "function sina_weibo_login() {\n $o = new WeiboOAuth(variable_get('sina_weibo_api_key', '') , variable_get('sina_weibo_api_secret', ''));\n $keys = $o->getRequestToken();\n $sina_url = $o->getAuthorizeURL( $keys['oauth_token'] ,false , url('sina-weibo/callback', array('absolute' => TRUE)));\n $_SESSION['sina_weibo_keys'] = $keys;\n drupal_goto($sina_url);\n}", "public function updateSession(){\n # code...\n }", "function show_session_form($api_key, $expires){?>\n\t\t<div class=\"main\">\n\t\t<a href=\"http://www.facebook.com/code_gen.php?v=1.0&api_key=<?=$api_key?>\" target=\"_blank\">Generate a \"one time\" code</a>\n\t\t\t<div class=\"regForm\">\n\t\t<form action=\"\" method=\"POST\">\n\t\t<div class=\"label\">Your CODE:</div><input type=\"text\" name=\"auth_token\" value=\"\" size=\"15\" /> <br />\n\t\t<input type=\"hidden\" name=\"verify\" value=\"1\" />\n\t\t<input type=\"hidden\" name=\"type\" value=\"session\" />\n\t\t<input type=\"submit\" name=\"submit\" value=\"Generate\" />\n\t\t</form>\n\t\t</div>\n\t\t\n\t\t<div class=\"regIntro\">\n\t\t\t<p>You session will expire in <?=date('Y:m:d H:i:s', $expires)?></p>\n\t\t\t<p>Why you need a infinite session?</p>\n\t\t\t<p>1.Post to mini/news feed when your locker changed.</p>\n\t\t\t<p>2.Update your profile box when your locker changed.</p>\n\t\t</div>\n\t\t</div>\n\t<?php\n\t}", "function login()\n\t{\n\t\t$GLOBALS['appshore']->session->createSession();\n\n\t\t$GLOBALS['appshore_data']['layout'] = 'auth';\n\t\t\n\t\t// define next action\n\t\t$result['action']['auth'] = 'login';\n\n\t\t// if a query_string was passed without being auth we keep it to deliver it later\n\t\tif( strpos( $_SERVER[\"QUERY_STRING\"], 'op=') !== false )\n\t\t\t$result['nextop'] = base64_encode($_SERVER[\"QUERY_STRING\"]);\n\t\t\t\n\t\treturn $result;\n\t}", "public function index()\n {\n \n $ta=$this->input->get('ta');\n\n $this->session->set_userdata('takademik',$ta);\n \n echo $this->session->userdata('takademik');\n \n }", "function doLogin()\n {\n\n //var_dump($sql);exit;\n /*if($res){*/\n //存入session\n /*session_start();\n $_SESSION['user'] = json_encode($res);*/\n\n //展示数据库\n $sql = 'show databases;';\n $res = $GLOBALS['data']->query($sql)->fetchAll();\n foreach ($res as $k=>$v){\n $res[$k] = $v['Database'];\n }\n //var_dump($res);exit;\n\n include \"views/homePage.html\";\n /*}*/\n }", "public function babak1play()\n\t{\n\t\t$get = $this->input->get();\n\t\t$soalke = $get['soalke'];\n\t\t$tim = $get['tim'];\n\t\t$jumlahsoal = $this->session->userdata('jumlahsoal');\n\t\t//jika benar, maka menambah nilai dari tim bersangkutan\n\t\tif ($get['jawaban'] == \"benar\") {\n\t\t\tif ($get['tim'] == \"A\") {\n\t\t\t\t$nilai = $this->session->userdata('skortim1') + $this->session->userdata('nilaitiapsoal');\n\t\t\t\t$this->session->set_userdata('skortim1', $nilai);\n\t\t\t\t$timnext = \"B\";\n\t\t\t} else if ($get['tim'] == \"B\") {\n\t\t\t\t$nilai = $this->session->userdata('skortim2') + $this->session->userdata('nilaitiapsoal');\n\t\t\t\t$this->session->set_userdata('skortim2', $nilai);\n\t\t\t\t$timnext = \"C\";\n\t\t\t} else if ($get['tim'] == \"C\") {\n\t\t\t\t$nilai = $this->session->userdata('skortim3') + $this->session->userdata('nilaitiapsoal');\n\t\t\t\t$this->session->set_userdata('skortim3', $nilai);\n\t\t\t\t$timnext = \"D\";\n\t\t\t} else if ($get['tim'] == \"D\") {\n\t\t\t\t$nilai = $this->session->userdata('skortim4') + $this->session->userdata('nilaitiapsoal');\n\t\t\t\t$this->session->set_userdata('skortim4', $nilai);\n\t\t\t\t$timnext = \"A\";\n\t\t\t}\n\n\t\t\t$nilaisoal = $this->session->userdata('nilaitiapsoal');\n\t\t\t$history = $this->session->userdata('historybabak1');\n\t\t\t$history = $history . \"</br>Tim $tim menjawab soal ke $soalke dengan benar, nilai ditambah $nilaisoal\";\n\t\t\t$this->session->set_userdata('historybabak1', $history);\n\t\t} else {\n\t\t\t//jika jawaban salah maka hanya nambah history doang dan next tim\n\t\t\tif ($get['tim'] == \"A\") {\n\t\t\t\t$timnext = \"B\";\n\t\t\t} else if ($get['tim'] == \"B\") {\n\t\t\t\t$timnext = \"C\";\n\t\t\t} else if ($get['tim'] == \"C\") {\n\t\t\t\t$timnext = \"D\";\n\t\t\t} else if ($get['tim'] == \"D\") {\n\t\t\t\t$timnext = \"A\";\n\t\t\t}\n\t\t\t$nilaisoal = $this->session->userdata('nilaitiapsoal');\n\t\t\t$history = $this->session->userdata('historybabak1');\n\t\t\t$history = $history . \"</br>Tim $tim menjawab soal ke $soalke dengan jawaban yang salah\";\n\t\t\t$this->session->set_userdata('historybabak1', $history);\n\t\t}\n\n\t\tif ($soalke !== $jumlahsoal) {\n\t\t\t$nextsoal = $soalke + 1;\n\t\t\t$this->session->set_userdata('soalke', $nextsoal);\n\t\t\t$this->session->set_userdata('tim', $timnext);\n\t\t} else {\n\t\t\t//lanjut ke babak 2 kalau soal sudah mentok\n\t\t\t$this->session->set_userdata('babak', 2);\n\t\t\t$this->session->set_userdata('soalke', NULL);\n\t\t}\n\n\t\tredirect('home');\n\t}", "private function saveSessionKey($response){\n $this->session['key'] = $response->return->session;\n }", "public function storeSession() {}", "public function getSession() {}", "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 index()\n {\n //\n return $this->respond($this->_repo->sessions());\n }", "function cek_session(){\n echo '<pre>';\n print_r($this->session->all_userdata());\n echo '</pre>';\n }", "function sukses_masuk($username,$pass){\n\t$login=_query(\"SELECT * FROM user WHERE user='$username' AND pass='$pass' AND blokir='N'\");\n\t$ketemu=_num_rows($login);\n\t$r=_fetch_array($login);\n\tif ($ketemu > 0){\n include \"timeout.php\";\n $_SESSION['id'] = $r['id_user'];\n $_SESSION['username'] = $r['user'];\n $_SESSION['passuser'] = $r['pass'];\n $_SESSION['level'] = $r['level'];\n $_SESSION['nama'] = $r['nama'];\n\n if ($r['level'] == \"admin-kelurahan\")\n { header('location:admin-kelurahan/?module=home');\n }\n else if ($r['level'] == \"admin-kecamatan\")\n { header('location:admin-kecamatan/?module=home');\n }\n else if ($r['level'] == \"admin\")\n { header('location:admin/?module=home');\n }\n\t\t// session timeout\n\t\t$_SESSION['login'] = 1;\n\t\ttimer();\n\t}\n\treturn false;\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 }", "private function _sess_run() {\n\t\t// session\n\t\tini_set('session.save_handler', $this->sess_save_handler);\n\t\t$path = array();\n\t\tforeach ($this->sess_server as $server) {\n\t\t\tif (isset($server['host']) && isset($server['port'])) {\n\t\t\t\t$path[] = \"tcp://{$server['host']}:{$server['port']}?\" . http_build_query(isset($server['params']) ? $server['params'] : array());\n\t\t\t}\n\t\t}\n\t\tif (empty($path)) {\n\t\t\tshow_error('Session save_path is empty');\n\t\t}\n\t\tini_set('session.save_path', implode(',', $path));\n\n\t\tini_set('session.gc_maxlifetime', $this->sess_expiration);\t// 过期时间\n\t\t// cookie\n\t\tini_set('session.cookie_secure', 0);\t\t// 0 http:// 1 https://\n\t\tini_set('session.cookie_httponly', 1);\t\t// 不让JS读取session的cookie\n\t\tsession_name($this->sess_cookie_name);\n\n\t\tsession_start();\n\t\t// delete old flashdata (from last request)\n\t\t$this->_flashdata_sweep();\n\t\t// mark all new flashdata as old (data will be deleted before next request)\n\t\t$this->_flashdata_mark();\n\t}", "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}", "public function qelasyLoginAction(){\n \n \n /*$url = \"http://silk-outsourcing.com/qelasysecurity/web/index.php/api/default/appStoreAuthentication\";\n $client = new Zend_Http_Client($url);\n $client->setHeaders(array(\n 'X-USERNAME:non-qelasy-stg',\n 'X-PASSWORD:non-qelasy-stg',\n 'Content-Type:application/x-www-form-urlencoded'\n ));\n\n $client->setParameterGet(array(\n 'email' => '[email protected]',\n 'pin' => 'dumindu',\n 'type' => 1\n ));\n \n $response = $client->request(Zend_Http_Client::POST); \n echo htmlspecialchars($client->getLastRequest(), ENT_QUOTES).'<br><br>';\n echo '--------------------------------------------------------<br><br>';\n echo htmlspecialchars($client->getLastResponse(), ENT_QUOTES).'<br><br>';\n echo '---------------------------------------------------------<br><br>';\n \n echo $response->getRawBody();\n //$results = json_decode($response->getRawBody(), true);\n //print_r($results);\n die();*/\n\n \n $uri = 'http://silk-outsourcing.com/qelasysecurity/web/index.php/api/default/appStoreAuthentication';\n\n $config = array(\n 'adapter' => 'Zend_Http_Client_Adapter_Curl',\n 'curloptions' => array(CURLOPT_FOLLOWLOCATION => true),\n );\n $client = new Zend_Http_Client($uri, $config);\n\n $client->setHeaders(array(\n 'X-USERNAME:non-qelasy-stg',\n 'X-PASSWORD:non-qelasy-stg',\n 'Content-Type:application/x-www-form-urlencoded'\n ));\n \n /*$data = array(\n 'email' => '[email protected]',\n 'pin' => 'dumindu',\n 'type' => '1'\n );*/\n\n /*$client->setParameterGet(array(\n 'email' => '[email protected]',\n 'pin' => 'dumindu',\n 'type' => 1\n ));*/\n \n $data = '[email protected]&pin=dumindu&type=1';\n //$data = 'studentId=113&pin=dumindu&type=0';\n //$json = json_encode($data);\n\n $resp = $client->setRawData($data, 'application/x-www-form-urlencoded')->request('POST');\n\n echo htmlspecialchars($client->getLastRequest(), ENT_QUOTES).'<br><br>';\n echo '--------------------------------------------------------<br><br>';\n echo htmlspecialchars($client->getLastResponse(), ENT_QUOTES).'<br><br>';\n echo '---------------------------------------------------------<br><br>';\n \n echo $results = $resp->getBody();\n\n echo '---------------------------------------------------------<br><br>';\n \n $phpNative = Zend_Json::decode($results);\n print_r($phpNative);\n \n echo '---------------------------------------------------------<br><br>';\n \n try {\n $json = Zend_Json::decode($results);\n\n print_r($json);\n } catch (Exception $ex) {\n echo \"failed to decode json\";\n }\n \n exit();\n \n }", "private function doLoginWithPostData() {\r\n\t\tif ($this->checkLoginFormDataNotEmpty()) {\r\n\t\t\r\n\t\t\t/**\r\n\t\t\t * Generate access token using Agave API\r\n\t\t\t */\r\n\t\t\t \r\n\t\t\t$ch = curl_init();\r\n\r\n\t\t\t$pf = \"grant_type=password&username=\".$_POST['user_name'].\"&password=\".$_POST['user_password'].\"&scope=PRODUCTION\";\r\n\t\t\t$key_and_secret = $this->key.\":\".$this->secret;\r\n\t\t\t$encoding = \"Content-Type: application/x-www-form-urlencoded\";\r\n\t\t\t\r\n\t\t\tcurl_setopt($ch, CURLOPT_URL, \"https://agave.iplantc.org/token\");\r\n\t\t\tcurl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);\r\n\t\t\tcurl_setopt($ch, CURLOPT_CUSTOMREQUEST, \"POST\");\r\n\t\t\tcurl_setopt($ch, CURLOPT_POSTFIELDS, $pf);\r\n\t\t\tcurl_setopt($ch, CURLOPT_USERPWD, $key_and_secret);\r\n\t\t\tcurl_setopt($ch, CURLOPT_ENCODING, $encoding);\r\n\t\t\tcurl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);\r\n\t\t\t\r\n\t\t\t$response = curl_exec($ch);\r\n\t\t\t$response_arr = json_decode($response, true);\r\n\t\t\t$_SESSION['access_token'] = $response_arr['access_token'];\r\n\t\t\t\r\n\t\t\tcurl_close ($ch);\r\n\t\t\t/**\r\n\t\t\t * Get Login info using access token\r\n\t\t\t */\r\n\t\t\t \r\n\t\t\t$ch = curl_init();\r\n\t\t\t$data = array(\"Authorization: Bearer \".$_SESSION['access_token']);\r\n\t\t\t$url = \"https://agave.iplantc.org:443/profiles/v2/\".$_POST['user_name'];\r\n\t\t\tcurl_setopt($ch, CURLOPT_URL, $url);\r\n\t\t\tcurl_setopt($ch, CURLOPT_HTTPHEADER, $data);\r\n\t\t\tcurl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);\r\n\t\t\tcurl_setopt($ch, CURLOPT_VERBOSE, 1);\r\n\t\t\t\t\t\t\r\n\t\t\t$response = curl_exec($ch);\r\n\t\t\tcurl_close ($ch);\r\n\t\t\t$response_arr = json_decode($response, true);\r\n\t\t\t\r\n\t\t\tif($response_arr['status'] == \"success\"){\r\n\t\t\t\t$user_info = $response_arr['result'];\r\n\t\t\t\t$_SESSION['user_name'] = $user_info['username'];\r\n\t\t\t\t$_SESSION['user_email'] = $user_info['email'];\r\n\t\t\t\t$this->user_is_logged_in = true;\r\n\t\t\t\t$_SESSION['user_is_logged_in'] = true;\r\n\t\t\t} else {\r\n\t\t\t\t$this->feedback = \"Invalid Username or Password \";//.$_SESSION['access_token'];\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\r\n\t\t}\r\n }", "private function sesja() {\r\n session_start();\r\n if (!isset($_SESSION['id'])) {\r\n $_SESSION['id'] = 0;\r\n }\r\n }", "public function storeSessionData() {}", "public function xhrSessionExist(){\n echo Session::get(\"loggedin\")?\"postoji\":\"ne postoji\";\n }", "public function storeSessionData() {}", "public function index()\n\t{\n\t\t//\n\t\t$_data = Input::get();\n\t\t$_session = $_data['session'];\n\t\t\n\t\t$_newSession = $this->_checkSession($_session);\n\t\t\t$_runs = array();\n\t\t\t$_runCollection = Run::all();\n\t\t\tforeach($_runCollection as $_run)\n\t\t\t{\n\t\t\t\t$_runs[$_run->id] = $_run->toArray();\n\t\t\t\t$_runs[$_run->id]['user'] = $_run->user->toArray();\n\t\t\t}\n\n\t\t\t$_json = array(\n\t\t\t\t'runs' => $_runs,\n\t\t\t\t'user' => array(\n\t\t\t\t\t'session' => $_newSession\n\t\t\t\t)\n\t\t\t);\n\t\t\treturn $this->_jsonReturn($_json, 200);\n\n\t}", "public function __construct()\n {\n $this->session = Kazinduzi::session();\n }", "function __construct(){\r\n\t\tif( $_SESSION['expiresTime'] && $_SESSION['expiresTime'] <= time() ){\r\n\t\t\t$_SESSION = array();\r\n\t\t}\r\n\t\tif(isset($_GET['tokenString'])){\r\n\t\t\t$tokenString=explode(\".\", $_GET['tokenString']);\r\n\t\t\t$token= json_decode(base64_decode($tokenString[1]) , true );\r\n\t\t}\r\n\t\tif($token['oauth_token']){\r\n\t\t\tWeibo::init( c('akey') , c('skey') ,$tokenInfo['oauth_token'] );\r\n\t\t\tWeibo::setIp('202.110.0.5');\r\n\t\t\t$res = Weibo::show_user_by_id( $tokenInfo['user_id'] );\r\n\t\t\tif( $res && !isset( $res['error_code'] ) ){\r\n\t\t\t\tforeach ($res as $key => $value) {\r\n\t\t\t\t\t$_SESSION[$key] = $value;\r\n\t\t\t\t}\r\n\t\t\t\t$_SESSION['__SINA']['TOKEN'] = $tokenInfo['oauth_token'];\r\n\t\t\t\t$_SESSION['expiresTime'] = $tokenInfo['expires'] + time();\r\n\t\t\t}\r\n\t\t}else{\r\n\t\t\tWeibo::init( c('akey') , c('skey') ,$_SESSION['__SINA']['TOKEN'] );\r\n\t\t\tWeibo::setIp('202.110.0.5');\r\n\t\t}\r\n\t\t//init weibo Class\r\n\t}", "function LoginTeam($sid='qte')\n{\n if ( isset($_SESSION[$sid.'_usr_auth']) && ( isset($_SESSION[$sid.'_usr_name']) || isset($_SESSION[$sid.'_usr_username']) ) ) {\n if ( $_SESSION[$sid.'_usr_auth']=='yes' ) {\n\n // check coherence: name must exist\n global $oDB;\n if ( isset($_SESSION[$sid.'_usr_name']) ) { $str = $_SESSION[$sid.'_usr_name']; } else { $str=$_SESSION[$sid.'_usr_username']; }\n $oDB->Query('SELECT count(*) as countid FROM '.TABUSER.' WHERE username=\"'.$str.'\"');\n\n if ( $row = $oDB->Getrow() ) {\n if ( isset($row['countid']) ) {\n if ( $row['countid']==1 ) {\n $_SESSION[$sid.'_usr_auth'] = true;\n // Get user info\n $oDB->Query('SELECT id,username,role,children,status FROM '.TABUSER.' WHERE username=\"'.$str.'\"');\n $row = $oDB->Getrow();\n $_SESSION[$sid.'_usr_id'] = (int)$row['id'];\n $_SESSION[$sid.'_usr_name'] = $row['username'];\n $_SESSION[$sid.'_usr_role'] = $row['role'];\n // Register VIP info in session\n $this->Register();\n return array('fullname'=>$str,'coppa'=>intval($row['children']),'status'=>$row['status']);\n\n }}}\n\n }}\n\n return array('fullname'=>'','coppa'=>0,'status'=>'Z');\n}", "public function home() {\n $_SESSION['kviz_end'] = 0;\n $this->prikaz(\"igrac\", []);\n }", "public static function check_session() {\n\t\t\t// get redirect_to_default\n\t\t\t$redirect_to_default = Cookie::get('redirect_to_default');\n\t\t\t\n\t\t\t// if empty redirect_to_default set from default settings\n\t\t\tif(empty($redirect_to_default)){$redirect_to_default = REDIRECT_TO_DEFAULT;}\n\t\t\t\t\t\t\n\t\t\t// check if auth token is submitted\n\t\t\tif(isset($_GET['authtoken']))\n\t\t\t{\n\t\t\t\t// check auth token\n\t\t\t\t$authtoken = Functions::encrypt_decrypt('decrypt', $_GET['authtoken'], \"\\x73\\x6f\\x6d\\x31\\x34\\x31\\x30\\x40\\x73\\x6f\\x6d\\x6e\\x65\\x74\\x69\\x63\\x73\");\n\t\t\t\t\t\n\t\t\t\t// get auth token\n\t\t\t\t$authtoken = json_decode($authtoken);\n\t\t\t\t\n\t\t\t\t// set active session\n\t\t\t\tif(!isset($authtoken->keep_session)){$authtoken->keep_session = true;}\n\t\t\t\t\n\t\t\t\t// unset login state\n\t\t\t\tif(!$authtoken->keep_session){self::set_state(false);}\n\t\t\t}\n\t\t\t\n\t\t\t// if session exists\n\t\t\tif(!self::get_state())\n\t\t\t{\t\n\t\t\t\t// check requested url\n\t\t\t\tif(trim(REQUEST_URI) != trim(APP_PATH.'/'.$redirect_to_default))\n\t\t\t\t{\t\n\t\t\t\t\t// get return url\t\t\t\t\t\n\t\t\t\t\t$returnUrl = urlencode(ltrim(str_replace(APP_PATH, '', REQUEST_URI), '/'));\n\t\t\t\t\t\n\t\t\t\t\t// check if auth token is submitted\n\t\t\t\t\tif(isset($_GET['authtoken']))\n\t\t\t\t\t{\n\t\t\t\t\t\t/*\n // get guest user info\n\t\t\t\t\t\t$guest_user = ORM::for_table('sys_user_login');\n\t\t\t\t\t\t\n\t\t\t\t\t\t// if user pass is provided please authenticate it\n\t\t\t\t\t\tif(isset($authtoken->auth_pass))\n\t\t\t\t\t\t$guest_user = $guest_user->where('user_pass', $authtoken->auth_pass);\n\t\t\t\t\t\t\n\t\t\t\t\t\t// if user company is provided please authenticate it\n\t\t\t\t\t\tif(isset($authtoken->auth_comp))\n\t\t\t\t\t\t$guest_user = $guest_user->where('sys_company_id', $authtoken->auth_comp);\n\t\t\t\t\t\t\n\t\t\t\t\t\t// if user name is provided please authenticate it\n\t\t\t\t\t\tif(isset($authtoken->auth_name))\n\t\t\t\t\t\t\t$guest_user = $guest_user->where('user_name', $authtoken->auth_name)->find_one();\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\t$guest_user = $guest_user->find_one($authtoken->auth_user);\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t// check if user exists\n\t\t\t\t\t\tif(is_object($guest_user))\n\t\t\t\t\t\t{\t\n\t\t\t\t\t\t\t// start session and set session values\n\t\t\t\t\t\t\tself::set_state(true);\n\t\t\t\t\t\t\tself::set('user_id', $guest_user->id);\n\t\t\t\t\t\t\tself::set('user_name', $guest_user->user_name);\n\t\t\t\t\t\t\tself::set('first_name', $guest_user->first_name);\n\t\t\t\t\t\t\tself::set('last_name', $guest_user->last_name);\n\t\t\t\t\t\t\tself::set('full_name', trim($guest_user->first_name.' '.$guest_user->last_name));\n\t\t\t\t\t\t\tself::set('email', $guest_user->email);\n\t\t\t\t\t\t\tself::set('mobile', $guest_user->mobile);\n\t\t\t\t\t\t\tself::set('company_id', (empty($guest_user->sys_company_id) ? $authtoken->company_id : $guest_user->sys_company_id));\n\t\t\t\t\t\t\tself::set('is_super_admin', $guest_user->is_super_admin);\t\n\t\t\t\t\t\t\tself::set('is_guest', ($authtoken->auth_user==GUEST_ID ? 1 : 0));\t\n\t\t\t\t\t\t\tself::set('last_login', $guest_user->last_login);\t\n\t\t\t\t\t\t\tself::set('logged_with_master_password', false);\n\t\t\t\t\t\t\tself::set('authtoken', $authtoken);\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t// redirect to given path\n\t\t\t\t\t\t\theader('Location: '.BASE_URL.'/'.$redirect_to_default.'/authtoken_error?authtoken='.$_GET['authtoken']);\n\t\t\t\t\t\t}\n */\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\t// redirect to given path\n\t\t\t\t\t\theader('Location: '.BASE_URL.'/'.$redirect_to_default.(empty($returnUrl) ? '' : '?returnUrl='.$returnUrl));\n\t\t\t\t\t}\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\t/*else\n\t\t\t{\n\t\t\t\t// check if auth token is submitted\n\t\t\t\tif(isset($_GET['authtoken']))\n\t\t\t\t{\n\t\t\t\t\t// check for valid auth user\n\t\t\t\t\tif($authtoken->auth_user!=GUEST_ID)\n\t\t\t\t\t{\n\t\t\t\t\t\t// redirect to given path\n\t\t\t\t\t\theader('Location: '.BASE_URL.'/'.$redirect_to_default.'/authtoken_error?authtoken='.$_GET['authtoken']);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}*/\n\t\t}", "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}", "function jml_mhs_bimbingan_kkn(){\n\t\t\t$nip \t= $this->session->userdata('id_user'); //'197510242009121002';//\n\t\t\t$smt \t= array(1,2,3);\n\t\t\t$ta \t= $this->session->userdata('kd_ta');\n\t\t\t$kd_current_smt = $this->session->userdata('kd_smt');\n\t\t\t$jumlah_mahasiswa = 0;\n\n\t\t\t//GET ID DPL :\n\t\t\t\n\t\t\t$url \t\t= 'kkn_dosen/data_search';\n\t\t\t$api_url \t= URL_API_KKN.$url;\n\t\t\t$parameter \t= array(\n\t\t\t\t'api_kode' => 201400,\n\t\t\t\t'api_subkode' => 1,\n\t\t\t\t'api_search' => array('KKN.KKN_DPL2014','ID_DPL',array('NIP' => $nip)));\n\n\t\t\t$dpl = $this->s00_lib_api->get_api_json($api_url,'POST',$parameter);\n\n\t\t\tif($dpl){\n\t\t\t\t//GET LIST KELOMPOK KKN\n\t\t\t\t$id_dpl \t= $dpl[0]['ID_DPL'];\n\n\t\t\t\tforeach ($smt as $kd_smt) {\n\t\t\t\t\t$parameter2 = array(\n\t\t\t\t\t\t'api_kode' => 201402,\n\t\t\t\t\t\t'api_subkode' => 1,\n\t\t\t\t\t\t'api_search' => array($ta,$kd_smt,$id_dpl)\n\t\t\t\t\t);\n\n\t\t\t\t\t$kelompok = $this->s00_lib_api->get_api_json($api_url,'POST',$parameter2);\n\n\t\t\t\t\tforeach ($kelompok as $kel) {\n\t\t\t\t\t\t//GET LIST DATA MAHASISWA PER KELOMPOK\n\t\t\t\t\t\t$id_kelompok = $kel['ID_KELOMPOK'];\n\n\t\t\t\t\t\t$parameter \t= array(\t'api_kode' => 201401,\n\t\t\t\t\t\t\t\t\t\t'api_subkode' => 2,\n\t\t\t\t\t\t\t\t\t\t'api_search' => array($id_kelompok));\n\n\t\t\t\t\t\t$member \t= $this->s00_lib_api->get_api_json($api_url, 'POST', $parameter);\n\t\t\t\t\t\tforeach ($member as $mbr) {\n\t\t\t\t\t\t\t//CEK SEMESTER MAHASISWA KKN\n\t\t\t\t\t\t\t$nim \t= $mbr['NIM'];\n\t\t\t\t\t\t\t$tgl \t= str_replace('-', '/', $mbr['TGL_DAFTAR']);\n\t\t\t\t\t\t\t$data_mhs \t= $this->get_data_mhs($nim);\n\t\t\t\t\t\t\t$kd_prodi \t= $data_mhs[0]['KD_PRODI'];\n\n\t\t\t\t\t\t\t$semester \t= $this->periode_semester($tgl, $kd_prodi);\n\n\t\t\t\t\t\t\t$kd_ta_data \t= $semester[0]['KD_TA'];\n\t\t\t\t\t\t\t$kd_smt_data \t= $semester[0]['KD_SMT'];\n\n\t\t\t\t\t\t\t//JIKA SESUAI DENGAN SEMESTER SAAT INI MAKA :\n\t\t\t\t\t\t\tif($ta == $kd_ta_data && $kd_current_smt == $kd_smt_data){\n\t\t\t\t\t\t\t\t$jumlah_mahasiswa++;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t//$jumlah_mahasiswa++;\n\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\n\t\t\treturn $jumlah_mahasiswa;\n\t\t}", "protected abstract function get_sessions();", "function cek_dpl(){\n\t\t$kd_dosen = $this->session->userdata('kd_dosen');\n\t\t$ta = $this->session->userdata('ta');\n\t\t$smt = $this->session->userdata('smt');\n\t\t# cek data beban kerja\n\t\t$api_url \t= URL_API_BKD.'bkd_beban_kerja/cek_data_bkd';\n\t\t$parameter = array('api_search' => array($kd_dosen, 'C', $ta, $smt));\n\t\t$data['jml'] = $this->s00_lib_api->get_api_jsob($api_url,'POST',$parameter);\n\t\t#echo $data['jml']; print_r($parameter); die();\n\t\tif ($data['jml'] == 0){\n\t\t\t$url\t\t= 'http://service.uin-suka.ac.id/servsiasuper/index.php/';\n\t\t\t$parameter\t= array('api_kode' => 1000, 'api_subkode' => 1, 'api_search' => array($kd_dosen));\n\t\t\t$data\t\t= $this->mdl_bkd->get_api_kkn('kkn_admin/data_dpl_kkn', 'json', 'POST', $parameter);\n\t\t\tif(count($data) > 0){\n\t\t\t\t$tema = $data[0]['TEMA_KKN'];\n\t\t\t\t$angkatan = $data[0]['ANGKATAN'];\n\t\t\t\t$periode = $data[0]['PERIODE'];\n\t\t\t\t$ta = $data[0]['TA'];\n\t\t\t\t$tgl_mulai = $data[0]['TANGGAL_MULAI'];\n\t\t\t\t$tgl_selesai = $data[0]['TANGGAL_SELESAI'];\n\t\t\t\t$kelompok = $data[0]['JUM_KELOMPOK'];\n\t\t\t\t# BEBAN KERJA\n\t\t\t\t$jenis_kegiatan = \"Menjadi Dosen Pembimbing Lapangan (DPL) KKN, Angkatan \".$angkatan.\", Periode \".$periode.\", dengan Tema \\\"\".$tema.\"\\\", Kelompok \".$kelompok;\n\t\t\t\t$masa_penugasan = \"1 Semester\";\n\t\t\t\t$bukti_penugasan = '-'; $bkt_dokumen = '-';\n\t\t\t\t$sks_rule = 1;\n\t\t\t\t$api_url \t= URL_API_BKD.'bkd_beban_kerja/simpan_beban_kerja_sia';\n\t\t\t\t$parameter = array('api_search' => array($kd_dosen, 'C', $jenis_kegiatan, $bukti_penugasan, $sks_rule, $masa_penugasan, $sks_rule, $bkt_dokumen, $ta, $smt, 'LANJUTKAN','100'));\n\t\t\t\t$simpan = $this->s00_lib_api->get_api_jsob($api_url,'POST',$parameter);\n\t\t\t\tif($simpan){\n\t\t\t\t\t# get last id beban kerja \n\t\t\t\t\t$api_url \t= URL_API_BKD.'bkd_beban_kerja/get_current_data_tersimpan';\n\t\t\t\t\t$parameter\t= array('api_search' => array('BKD.BKD_BEBAN_KERJA','KD_BK'));\n\t\t\t\t\t$getid = $this->s00_lib_api->get_api_jsob($api_url,'POST',$parameter); \n\t\t\t\t\t#simpan data pengabdian\n\t\t\t\t\t$sumber_dana = '-'; $jumlah_dana = 0;\n\t\t\t\t\t$api_url \t= URL_API_BKD.'bkd_beban_kerja/simpan_data_pengabdian';\n\t\t\t\t\t$parameter\t= array('api_search' => array($getid, $tgl_mulai, $tgl_selesai, $tema, $sumber_dana, $jumlah_dana, '50'));\n\t\t\t\t\t$simpan = $this->s00_lib_api->get_api_jsob($api_url,'POST',$parameter);\n\t\t\t\t}\n\t\t\t\tredirect('bkd/dosen/bebankerja/data/C');\n\t\t\t}else{\n\t\t\t\tredirect('bkd/dosen/bebankerja/data/C');\n\t\t\t}\n\t\t}else{\n\t\t\tredirect('bkd/dosen/bebankerja/data/C');\t\t\n\t\t}\n\t}", "protected function get_sessions()\n {\n }", "function login()\n {\n \t \t$data = file_get_contents('php://input');\n \t\t$this->logservice->log($this->module_name, \"DEBUG\",\"EVENT\",$this->IP,\"$data \");\n\t\t$busData = json_decode($data ,true);\n\t\t//查找该用户名与密码\n\t\t$criteria = array();\n\t\t$criteria[\"and\"] = array(\"Name\" => $busData[\"name\"],\"Password\" => $busData[\"password\"]);\n\t\t$userDat = $this->User->read($criteria);\n\t\tif (!empty($userDat)) {\n\t\t\t\t\n\t\t\t//更新用户的状态\n\t\t\t$data_in = array('Status' => 1);\n \t\t$upd_criteria['and'] = array('User_Id' => $userDat[0]['User_Id']);\n \t\t$result = $this->User->update($data_in, $upd_criteria);\n\t \tif($result !== false)\n\t \t{\n\t\t\t\t$rspData[\"userID\"] =$userDat[0][\"User_Id\"];\n\t\t\t\t$rspData[\"state\"] = \"OK\";\n\t\t\t\t$rspData[\"erroInfo\"] = \"登陆成功ID为\".$userDat[0][\"User_Id\"];\n\n\t\t\t\t$rspInfo = json_encode($rspData);\n\t\t\t\techo $rspInfo;\n\t\t }\n\n\t\t}\n }", "function requestLogin() {\n $username = $_GET['username'];\n $password = $_GET['password'];\n\n $response = attemptLogin($username, $password);\n \n if ($response['status'] == 'SUCCESS') {\n session_start();\n $_SESSION['firstName'] = $response['response']['firstName'];\n $_SESSION['lastName'] = $response['response']['lastName'];\n $_SESSION['username'] = $username;\n $_SESSION['profilePicture'] = $response['response']['profilePicture'];\n\n if ($_GET['rememberMe'] == 'true') {\n setcookie('username', $username, time() + 3600 * 24 * 30, '/', '', 0);\n }\n\n echo json_encode($response['response']['message']);\n } else {\n errorHandler($response['status'], $response['code']);\n }\n }", "function getSession()\n {\n \tsession_start();\n \tif (isset($_SESSION['userFirstName']) && $_SESSION['userLastName'] && $_SESSION['userName'])\n \t{\n \t\techo json_encode(array(\"firstName\" => $_SESSION['userFirstName'], \"lastName\" => $_SESSION['userLastName']));\n \t}\n \telse\n \t{\n \t\techo json_encode(errors(417));\n \t}\n }", "function getLogin() {\n return [\n 'uid' => isset($_SESSION['uid']) ? $_SESSION['uid'] : 0 ,\n 'bid' => isset($_SESSION['bid']) ? $_SESSION['bid'] : 0 ,\n 'mid' => isset($_SESSION['mid']) ? $_SESSION['mid'] : 0 ,\n ];\n}", "function _load(){ \n //verificar la session \n if(isset($_GET['adm'])&&!inicie_sesion()){\n if(isset($_COOKIE['sessionHash'])&&$_COOKIE['sessionHash']!=''){\n login_user_hash($_COOKIE['sessionHash']);\n _load();\n exit;\n }\n if(isset($_GET['ajax'])){\n echo json_encode(array('error'=>'session'));\n exit;\n }else{\n header('Location: '.__url_real.'xlogin/login/'.base64_encode($_SERVER['REQUEST_URI']).'/');\n exit;\n }\n }\n\n if(isset($_GET['adm'])&&inicie_sesion()){\n //verifica si el usuario que inicio la sesion tiene permiso para acceder\n if(logueado::permitirAcceso()){//logueado::tieneAcceso()\n require('plantillas/admin/admin.php');\n }else{\n header('Location: '.__url_real.'xlogin/login/'.base64_encode($_SERVER['REQUEST_URI']).'/');\n exit;\n }\n }else{\n if (isMobile()) { \n if(file_exists(__path.'index.mobile.php')){\n require (__path.'index.mobile.php');\n }else{ \n require (__path.'index.php');\n }\n }else{\n require (__path.'index.php');\n }\n }\n}", "function _setHellaspayIntoSession() {\r\n\t$session = JFactory::getSession();\r\n\t$sessionHellaspay = new stdClass();\r\n\t$sessionHellaspay->vivinstalments = $this->_vivinstalments;\r\n\t$sessionHellaspay->vivinstalmentsamount = $this->_vivinstalmentsamount;\r\n\t$session->set('hellaspay', json_encode($sessionHellaspay), 'vm');\r\n }", "public function cek_login()\r\n\t{\r\n\t\t$userid = $this->input->post('userid');\r\n\t\t$userid = $this->filter($userid);\r\n\t\t\r\n\t\t$password = $this->input->post('password');\r\n\t\t$password = $this->filter($password);\r\n\t\t\r\n\t\t// mengambil data dari model m_login function db_cek_login\r\n\t\t// dengan parameter $userid dan $password\r\n\t\t$cek = $this->m_login->db_cek_login($userid,$password)->row();\r\n\t\t$jumlah = count($cek);\r\n\t\r\n\t\tif ($jumlah > 0)\r\n\t\t{\t// set variabel session\r\n\t\t\t$array_session = array(\r\n\t\t\t'userid' => $cek->id_user,\r\n\t\t\t'pass' => $cek->password,\r\n\t\t\t'nama' => $cek->nama,\r\n\t\t\t'sukses_login' => true\r\n\t\t\t);\r\n\t\t\t$this->session->set_userdata($array_session);\r\n\t\t\tredirect(base_url('dashboard'));\r\n\t\t} else {\r\n\t\t\t// kalau data tidak ada, maka redirect ke laman login\r\n\t\t\tredirect(base_url('login/login_gagal'));\r\n\t\t}\r\n\t\t\r\n\t\t// menghapus variabel dari memory\r\n\t\tunset($userid,$password,$cek,$jumlah,$array_session);\r\n\t}", "public function login(){\n\t\t$this->load->library('encryption');\n\t\t\n\t\t$username = $this->input->post('username', TRUE);\n\t\t$password = $this->input->post('password', TRUE);\n\t\t\n\t\t$errorMsg = '';\n\t\t\n\t\tif(trim($username) == '') { $errorMsg .= 'Username Tidak Boleh Kosong<br/>'; }\n\t\tif(trim($password) == '') { $errorMsg .= 'Password Tidak Boleh Kosong<br/>'; }\n\t\t\n\t\tif($errorMsg == ''){\n\t\t\t$userDB = \\SleekDB\\SleekDB::store('users', DATADIR);\n\t\t\t$findUser = $userDB\n\t\t\t\t->where('user_name', '=', $username)\n\t\t\t\t->where('user_pass', '=', md5($password))\n\t\t\t\t->fetch();\n\t\t\t$checkUser = count( $findUser );\n\t\t\tif($checkUser == 1){\n\t\t\t\t\n\t\t\t\t$encryptedKey = $this->encryption->encrypt( $username . \"|=.=|\" . $password );\n\t\t\t\t\n\t\t\t\t$usersActiveDB = \\SleekDB\\SleekDB::store('users_active', DATADIR);\n\t\t\t\t\n\t\t\t\t$newLoginData = [\n\t\t\t\t\t'key' => $encryptedKey,\n\t\t\t\t\t'user' => $username,\n\t\t\t\t\t'datetime' => date(\"Y-m-d H:i:s\"),\n\t\t\t\t\t'type' => 'Logged In'\n\t\t\t\t];\n\t\t\t\t\n\t\t\t\t$results = $usersActiveDB->insert( $newLoginData );\n\t\t\t\t\n\t\t\t\t$results = [\n\t\t\t\t\t'success' => true,\n\t\t\t\t\t'message' => 'Berhasil Login',\n\t\t\t\t\t'data' => [\n\t\t\t\t\t\t'key' => $encryptedKey,\n\t\t\t\t\t\t'description' => 'Gunakan Key tersebut untuk mengakses data API lainnya',\n\t\t\t\t\t]\n\t\t\t\t];\n\t\t\t\t\n\t\t\t\t$this->setOutput( $results );\n\t\t\t}else{\n\t\t\t\t$results = [\n\t\t\t\t\t'success' => false,\n\t\t\t\t\t'message' => 'Gagal Login'\n\t\t\t\t];\n\t\t\t\t$this->setOutput( $results );\n\t\t\t}\n\t\t}else{\n\t\t\t$this->setOutput( $errorMsg );\n\t\t}\n\t}", "public function getSession();", "public function login($data){\r\n foreach($data as $key => $val){\r\n $_SESSION[$key] = $val;\r\n }\r\n $_SESSION[\"ZingLoggedIn\"] = true;\r\n return $this;\r\n }", "public function getSession() \r\n\t{\t\t\t\r\n\t\t$this->url = $this->server . \"/X?op=login_request\" .\r\n\t\t\t\"&user_name=\" . $this->username .\r\n\t\t\t\"&user_password=\" . $this->password;\r\n\r\n\t\t// get login_response from Metalib\r\n\r\n\t\t$this->xml = $this->getResponse($this->url, $this->timeout);\r\n\t\t\r\n\t\t// extract session ID\r\n\t\t\r\n\t\t$objSession = $this->xml->getElementsByTagName(\"session_id\")->item(0);\r\n\t\treturn $objSession->nodeValue;\r\n\t}", "function good_login()\n\t{\n\t\tif( $GLOBALS['appshore_data']['api']['nextop'] )\n\t\t\theader('Location: '.$GLOBALS['appshore']->session->baseurl.base64_decode($GLOBALS['appshore_data']['api']['nextop']));\n\t}", "public function loginAction()\n {\n $data = $this->getRequestData();\n if ($this->getDeviceSession(false)) {\n $this->setErrorResponse('Your device is already running a session. Please logout first.');\n }\n $session = Workapp_Session::login($data['username'], $data['password']);\n if (!$session) {\n $this->setErrorResponse('No user with such username and password');\n }\n $session->registerAction($_SERVER['REMOTE_ADDR']);\n $this->_helper->json(array('session_uid' => $session->getSessionUid()));\n }", "function dangnhapJson(){\n if($this->session->userdata('userid')==TRUE){\n redirect(base_url().\"thanh-vien/sua-thong-tin-ca-nhan.html\");\n exit();\n }\n $data['title'] = $this->lang->line('title_dangnhap');\n $data['description'] = $this->lang->line('title_dangnhap');\n $data['error'] = '';\n $data['template']='form_dangkythanhvien'; \n \n //Neu dang nhap loi\n if($this->form_validation->run('formDangNhap')==FALSE)\n {\n $data['status'] = false;\n $data['message'] = validation_errors(); \n }\n else\n {\n $username=$this->input->post(\"username\");\n $password=$this->input->post(\"password\");\n $remember=$this->input->post(\"chkRemember\");\n \n $user=$this->default_model->getInfoID($this->_table,array(\"username\" => $username, \"password\" => md5($password)));\n //Dang nhap thanh cong\n if($user!=FALSE)\n {\n $addSession = array(\n \"username\" => $user['username'],\n \"userid\" => $user['userid'],\n \"permission\"=> $user['permission'],\n );\n $this->session->set_userdata($addSession);\n if($remember != NULL) {\n setcookie('username', $username, time() + (86400 * 30), \"\");\n setcookie('password', $password, time() + (86400 * 30), \"\");\n }\n // $date_vip=$user['date_vip'];\n // if($date_vip<time()){\n // $this->default_model->updateDuLieu('thanhvien',array(\"level\" => 'free_user','date_vip'=>''),array(\"userid\" => $this->session->userdata('userid')));\n // }\n \n $this->load->library('user_agent');\n if ($this->agent->is_referral()&&$this->agent->referrer()!=base_url().\"thanh-vien/dang-nhap.html\")\n {\n $referer=$this->agent->referrer();\n }else{\n $referer=base_url();\n }\n $data['status'] = true;\n $data['message'] = base_url(); \n // redirect($referer);\n // exit();\n }\n else{\n //Sai ten dang nhap or mat khau\n $data['status'] = false;\n $data['message'] = $this->lang->line('error_kiemtra_dangnhap');\n // $this->load->view('default',$data); \n } \n }\n $this->output->set_content_type('application/json');\n $this->output->set_output(json_encode($data));\n $string = $this->output->get_output();\n echo $string;\n exit();\n }", "public function setSession(){\n if( $this->status === True ){\n $_SESSION['username'] = $this->username;\n $_SESSION['userlvl'] = $this->userlevel;\n $_SESSION['status'] = True;\n }else{\n $_SESSION['status'] = False;\n }\n }", "function saveSession() {}", "function start($sid = \"\")\n {\n global $zone, $application;\n\n $drop_session_cookie = false;\n\n if ($zone == \"AdminZone\")\n {\n ini_set(\"session.cookie_lifetime\", 0);\n session_name(\"AZSESSID\");\n if ($application->db->DB_isTableExists($application->getAppIni('DB_TABLE_PREFIX').\"settings\") != null)\n {\n $duration_cfg = (int)modApiFunc(\"Settings\", \"getParamValue\", \"ADMIN_SESSION_DURATION\", \"ADM_SESSION_DURATION_VALUE\");\n }\n else\n {\n $duration_cfg = 3600;\n }\n $ClientSessionLifetime = $duration_cfg;\n }\n else\n {\n \tif (isset($_COOKIE['save_session']) && $_COOKIE['save_session'] == \"save\")\n \t{\n \t if ($application->db->DB_isTableExists($application->getAppIni('DB_TABLE_PREFIX').\"settings\") != null)\n {\n $cz_duration_cfg = (int)modApiFunc(\"Settings\", \"getParamValue\", \"CUSTOMER_ACCOUNT_SETTINGS\", \"CUSTOMER_SESSION_DURATION_VALUE\");\n }\n else\n {\n $cz_duration_cfg = 3600*24*30; //30 days\n }\n\n \t\tini_set(\"session.cookie_lifetime\", $cz_duration_cfg);\n ini_set(\"session.gc_maxlifetime\", $cz_duration_cfg);\n \t}\n \telse\n \t{\n \t\tini_set(\"session.cookie_lifetime\", 0);\n #ini_set(\"session.gc_maxlifetime\", 0);\n $drop_session_cookie = true;\n\n \t}\n\n session_name(\"CZSESSID\");\n }\n\n if ($sid)\n {\n session_id($sid);\n }\n\n $session_save_handler = $application->getAppIni('SESSION_SAVE_HANDLER');\n if ($session_save_handler == 'DB')\n {\n // redefine session handler\n __set_session_db_handler();\n }\n elseif ($session_save_handler != 'PHP_INI')\n {\n ini_set(\"session.save_handler\", $session_save_handler);\n }\n\n $session_save_path = $application->getAppIni('SESSION_SAVE_PATH');\n if ($session_save_path == 'AVACTIS_CACHE_DIR')\n {\n session_save_path($application->getAppIni(\"PATH_CACHE_DIR\"));\n }\n elseif ($session_save_path != 'PHP_INI')\n {\n session_save_path($session_save_path);\n }\n\n session_start();\n\n global $application;\n $HTTP_URL = md5($application->getAppIni('HTTP_URL'));\n if (!isset($_COOKIE['HTTP_URL']))\n {\n setcookie('HTTP_URL', $HTTP_URL, time());\n }\n elseif ($_COOKIE['HTTP_URL']!=$HTTP_URL)\n {\n setcookie('HTTP_URL', $HTTP_URL, time());\n session_destroy();\n\n if ($session_save_handler == 'DB')\n {\n // redefine session handler (http://bugs.php.net/bug.php?id=32330)\n // redefine session handler\n __set_session_db_handler();\n }\n session_start();\n }\n\n if ($zone == \"CustomerZone\")\n {\n $sess = session_get_cookie_params();\n if ($drop_session_cookie)\n $t = 0;\n else\n $t = time()+$sess['lifetime'];\n setcookie(session_name(), session_id(), $t, '/');\n if ($application -> getCurrentProtocol() == 'http')\n $temp_url = $application->getAppIni('SITE_HTTPS_URL');\n else\n $temp_url = $application->getAppIni('SITE_URL');\n $temp_url = parse_url($temp_url);\n if (isset($temp_url['host']))\n setcookie(session_name(), session_id() , $t, '/', $temp_url['host']);\n }\n\n //\n // , .\n // , .\n // , , .\n // .\n // IP .\n // .\n // .\n //\n $CURRENT_PRODUCT_VERSION = PRODUCT_VERSION;\n\n $current_hash = \"\";\n if ($zone != \"AdminZone\")\n {\n loadModuleFile('configuration/const.php');\n /*_use(dirname(__FILE__).DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR.'modules'.DIRECTORY_SEPARATOR.'configuration'.DIRECTORY_SEPARATOR.'configuration_api.php');\n\n $tables = Configuration::getTables();\n $ss = $tables['store_settings']['columns'];\n\n $s = new DB_Select();\n $s->addSelectTable('store_settings');\n $s->addSelectValue('variable_value','value');\n $s->WhereValue($ss['name'], DB_EQ, SYSCONFIG_CHECKOUT_FORM_HASH);\n $v = $application->db->getDB_Result($s);\n $current_hash = $v[0]['value'];*/\n\n $cache = CCacheFactory::getCache('hash');\n $current_hash = $cache->read(SYSCONFIG_CHECKOUT_FORM_HASH);\n }\n\n $current_ips = getClientIPs();\n\n if((!array_key_exists('PRODUCT_VERSION', $_SESSION) ||\n $_SESSION['PRODUCT_VERSION'] != $CURRENT_PRODUCT_VERSION && $zone != \"AdminZone\")||\n// ! @array_intersect($_SESSION['REMOTE_ADDR'], $current_ips) ||\n// @$_SESSION['HTTP_USER_AGENT'] != @$_SERVER['HTTP_USER_AGENT'] || commented so that SIM Method of Authorize.Net redirect to orderplaced page\n (!array_key_exists(SYSCONFIG_CHECKOUT_FORM_HASH, $_SESSION) ||\n $current_hash != $_SESSION[SYSCONFIG_CHECKOUT_FORM_HASH] && $zone != \"AdminZone\") )\n {\n if(!empty($_SESSION['CartContent']) && is_array($_SESSION['CartContent']))\n {\n foreach($_SESSION['CartContent'] as $cart_id => $cart_content)\n {\n modApiFunc('Cart', 'removeGCfromDB', $cart_content['product_id']);\n }\n }\n //see this::session_clean1()\n session_unset();\n session_destroy();\n\n if ($session_save_handler == 'DB')\n {\n // redefine session handler (http://bugs.php.net/bug.php?id=32330)\n // redefine session handler\n __set_session_db_handler();\n }\n session_start();\n }\n $_SESSION['PRODUCT_VERSION'] = $CURRENT_PRODUCT_VERSION;\n $_SESSION[SYSCONFIG_CHECKOUT_FORM_HASH] = $current_hash;\n $_SESSION['REMOTE_ADDR'] = $current_ips;\n $_SESSION['HTTP_USER_AGENT'] = @$_SERVER['HTTP_USER_AGENT'];\n //\n\n foreach($_SESSION as $key => $val)\n {\n $this->keyvalList[$key] = $val;\n// $this->set($key, $val);\n }\n $this->started = TRUE;\n\n if ($zone == \"AdminZone\")\n {\n if (!$this->is_Set('ClientSessionLifetime'))\n {\n $this->set('ClientSessionLifetime', time());\n }\n else\n {\n $delta_time = time()-$this->get('ClientSessionLifetime');\n if (($delta_time > $ClientSessionLifetime)&&($ClientSessionLifetime!=0))\n {\n $this->un_Set('currentUserID');\n }\n $this->set('ClientSessionLifetime', time());\n }\n }\n }", "public function index()\n\t{\n\t $id = $_SESSION['praktikan']['id'];\n\t $data = $this->get($id);\n\t extract($data);\n\nrequire_once(\"View/praktikan/index.php\");\n\t}", "function init(){\n\n //Got a request\n if($_SERVER['REQUEST_METHOD'] == 'POST'){\n \n session_start();\n \n //Are the values set\n if (isset($_POST['method'])){\n \n $method = $_POST['method'];\n \n //User is attempting to login\n if ($method === 'login'){\n\n loginAPIResponse();\n\n }\n //User wants to logout\n else if ($method === 'logout'){\n\n logoutAPIResponse();\n \n }\n //Client wants to know if there is a user already logged in\n else if ($method === 'loggedIn'){\n\n loggedInAPIResponse();\n \n }\n //User wants to register\n else if ($method === 'register'){\n \n registerAPIResponse();\n\n }\n //Invalid method\n else {\n\n invalidMethodResponse();\n \n }\n\n }\n else {\n\n missingParamToPostResponse();\n\n }\n\n }\n else {\n \n invalidMethodRequest();\n \n }\n\n}", "static function definisiMeni(){\n\t\t $stavke[0]=array('naziv'=>'home','link'=>'/pilot/home');\n\t\t $stavke[1]=array('naziv'=>'o nama','link'=>'/pilot/onama');\n\t\t if(session_id()!='pilot1sesija1'){\n\t\t\tsession_id('pilot1sesija1');\n\t\t\tsession_start();\n\t\t }\n\t\t if(isset($_SESSION['pravo'])){\n\t\t\t if($_SESSION['pravo']==1 || $_SESSION['pravo']==2){ \n\t\t\t\t$stavke[2]=array('naziv'=>'clanci','link'=>'/pilot/clanci'); \n\t\t\t\t$stavke[3]=array('naziv'=>'korisnici','link'=>'/pilot/korisnici'); \n\t\t\t }\n\t\t \n\t\t }\n\t\t return $stavke;\n\t}", "public function handleHttpRequest() {\r\n\t\t\r\n\t\t// starttime\r\n\t\t$time_start = microtime(true);\r\n\t\t\r\n\t\t// create new Session if the client doesn't have one\r\n\t\tif( session_id() == null ) session_start();\r\n\r\n\t\t$result = array();\r\n\r\n\t\ttry {\r\n\r\n\t\t\t// get version on empty request \r\n\t\t\tif( ( $_GET == null && $_POST == null ) /* || ( $_POST == null && $_POST == null ) */ ) {\r\n\r\n\t\t\t\t// no parameters given, just return the version number\r\n $initial = 'BiotoPi API ' . 'v1 '; // Helper::getVersion();\r\n\t\t\t\t$result['data'] = $initial;\r\n\t\t\t\t$result['state'] = true;\r\n\r\n\t\t\t\t// TODO, $_REQUEST is never empty, use $_POST & $_GET instead!!\r\n\t\t\t} else if( isset( $_GET ) || isset( $_POST ) /* && $_REQUEST != \"\" */ ) {\r\n\r\n\t\t\t\tif( ENV == 'prod' && isset( $_REQUEST['tk'] ) && $_REQUEST['tk'] !== null ) {\r\n\r\n\t\t\t\t\t// only allowed requests in productive enviroments with right token\r\n\t\t\t\t\t$tk = base64_decode( urldecode( $_REQUEST['tk'] ) );\r\n\t\t\t\t\t$sitetk = Config::get( 'token' );\r\n\t\t\t\t\t$unpack = unpack( 'H*', $sitetk );\r\n\t\t\t\t\tif( $tk != strtotime( date( 'd.m.Y H:i:00' ) ) . array_shift( $unpack ) ) throw new Exception( \"Wrong token! \" );\r\n\t\t\t\t\t//\t\t\t\t\t\t$tk = base64_decode( urldecode( $_REQUEST['tk'] ) );\r\n\t\t\t\t\t//\t\t\t\t\t\tif( $tk != Config::get( 'token' ) ) throw new Exception( \"Wrong token!\" ); // , $_SESSION['site'] \r\n\r\n\t\t\t\t} else if( ENV == 'prod' && ( ! isset( $_SESSION['eingeloggt'] ) || $_SESSION['eingeloggt'] != 1 ) ) {\r\n\r\n // we need a Users Backend and Frontend\r\n // Login, Register (contains send E-Mail with tokenized Link)\r\n // Overview for Admins (we need also Groups for this: Admin and User should be enough) \r\n\r\n\t\t\t\t\t// unauthorized requests redirect or notify?\r\n // if( Config::get( 'apiredirect' ) ) {\r\n // // Redirect to loginpage\r\n // header ( \"Location: ./mgmt\" );\r\n // } else {\r\n\t\t\t\t\t\t// Returns a Message\r\n throw new Exception( 'Please login to use this service!' );\r\n // }\r\n\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// get our controller and action names \r\n\t\t\t\t$controllerName = isset( $_REQUEST['controller'] ) ? $_REQUEST['controller'] : null;\r\n\t\t\t\t$actionName = isset( $_REQUEST['action'] ) ? $_REQUEST['action'] : null;\r\n\r\n\t\t\t\tif( $controllerName === null ) throw new Exception( 'No Controller given, aborted!' );\r\n\t\t\t\tif( $actionName === null ) throw new Exception( 'No Action given, aborted!' );\r\n\r\n\t\t\t\t// Controller allways are lowercase only the first Character is Uppercase\r\n\t\t\t\t// $controllerName = ucfirst( strtolower( $controllerName ) );\r\n $controllerName = ucfirst( $controllerName );\r\n\r\n\t\t\t\t// use PHP reflectionAPI to get result\r\n\t\t\t\t$controller = self::createController( $controllerName );\r\n\t\t\t\t$response = self::callMethod( $controller, $actionName );\r\n\r\n\t\t\t\t// return result into data and set succes true\r\n\t\t\t\t$result['state'] = true;\r\n\t\t\t\t$result['data'] = $response;\r\n\r\n\t\t\t}\r\n\r\n\t\t} catch( Exception $e ) {\r\n\t\t\t// catch any exceptions, set success false and report the problem\r\n\t\t\t$result['state'] = false;\r\n\t\t\t$result['errormsg'] = $e->getMessage();\r\n\t\t}\r\n\r\n\t\tif( isset($_GET['debug']) && $_GET['debug'] === \"1\" ) {\r\n\t\t\t$result['time'] = round( ( microtime(true) - $time_start ), 3 );\r\n\t\t\techo \"<pre>\";\r\n\t\t\tprint_r( $result );\r\n\t\t\t//var_dump( $result );\r\n\t\t\techo \"</pre>\";\r\n\t\t} else if ( $result ) {\r\n // if( $result['data'] === $initial ) {\r\n // // we are on an initial request\r\n // }\r\n // return our json encoded result to the requester\r\n header( 'Cache-Control: no-cache, must-revalidate' );\r\n\t\t\theader( \"Access-Control-Allow-Origin: *\" );\r\n\t\t\theader( \"Content-Type: application/json charset=UTF-8\" );\r\n\t\t\tprint_r( json_encode( $result ) );\r\n\t\t} else {\r\n\t\t\techo \"<pre>\";\r\n\t\t\tvar_dump( $result );\r\n\t\t\techo \"</pre>\";\r\n\t\t}\r\n\r\n\t\tsession_write_close();\r\n\r\n\t\t// // redirect to last destination as form fallback on no js.\r\n\t\t// if( isset( $_REQUEST['redirect'] ) ) {\r\n\t\t// \theader ( \"Location: \" . $_REQUEST['redirect'] );\r\n\t\t// }\r\n\r\n\t}", "function setSession(){\n $_SESSION[\"id\"] = $_POST[\"id\"];\n $_SESSION[\"password\"] = $_POST[\"password\"];\n $_SESSION[\"address\"] = $_POST[\"address\"];\n $_SESSION[\"phone\"] = $_POST[\"phone\"];\n $_SESSION[\"state\"] = $_POST[\"state\"];\n $_SESSION[\"trn\"] = $_POST[\"trn\"];\n $_SESSION[\"fax\"] = $_POST[\"fax\"];\n $_SESSION[\"religion\"] = $_POST[\"religion\"];\n\n $_SESSION[\"cfield1\"] = $_POST[\"cfield1\"];\n $_SESSION[\"cfield2\"] = $_POST[\"cfield2\"];\n $_SESSION[\"cfield3\"] = $_POST[\"cfield3\"];\n $_SESSION[\"cfield4\"] = $_POST[\"cfield4\"];\n $_SESSION[\"cfield5\"] = $_POST[\"cfield5\"];\n $_SESSION[\"cfield6\"] = $_POST[\"cfield6\"];\n $_SESSION[\"cfield7\"] = $_POST[\"cfield7\"];\n $_SESSION[\"cfield8\"] = $_POST[\"cfield8\"];\n $_SESSION[\"cfield9\"] = $_POST[\"cfield9\"];\n $_SESSION[\"cfield10\"] = $_POST[\"cfield10\"];\n $_SESSION[\"cfield11\"] = $_POST[\"cfield11\"];\n $_SESSION[\"cfield12\"] = $_POST[\"cfield12\"];\n $bool = true;\n //Checks that all fields sent in the post request is set in the session\n foreach($_POST as $key => $val){\n if(!isset($_SESSION[$key])){\n $bool = false;\n break;\n }\n }\n if($bool){\n echo json_encode(array('response' => 1));\n } else{\n echo json_encode(array('response' => -1,'message' => 'Could not set all session fields'));\n }\n}", "function pesan_buat($isi){\n\t\t$_SESSION['pesan'] = $isi;\n\t}", "public function cetakLapKartuStok()\r\n\t{\r\n\t\t//{\r\n\t\t\t$session=new THttpSession;\r\n\t\t\t$session->open();\r\n\t\t\t$session['cetakLapUmurHutangTbsSql'] = $this->getViewState('sql');\r\n\t\t\r\n\t\t\t$this->Response->redirect($this->Service->constructUrl('Keuangan.cetakLapUmurHutangTbsPdf'));\r\n\t\t/*}\r\n\t\telse\r\n\t\t{\r\n\t\t\t$this->getPage()->getClientScript()->registerEndScript\r\n\t\t\t\t\t('','\r\n\t\t\t\t\ttoastr.error(\"Pilih Bulan Dan Tahun !\");\r\n\t\t\t\t\t');\r\n\t\t}*/\r\n\t}" ]
[ "0.66764116", "0.66231185", "0.6507663", "0.64773047", "0.640757", "0.6349314", "0.63476926", "0.63169944", "0.6276291", "0.6184888", "0.61732036", "0.61630183", "0.61621225", "0.615517", "0.6150287", "0.6140115", "0.61069614", "0.60955954", "0.6082506", "0.6081571", "0.60587674", "0.60509425", "0.60495377", "0.6021665", "0.6013221", "0.6006254", "0.59982246", "0.59799963", "0.5974741", "0.5973844", "0.59432685", "0.59342456", "0.59300333", "0.59244287", "0.5913512", "0.58819234", "0.58687913", "0.58675206", "0.5852383", "0.5848729", "0.58446777", "0.5835504", "0.58330166", "0.5812854", "0.5811299", "0.5808318", "0.58066195", "0.5801577", "0.5801477", "0.57946676", "0.57929504", "0.57863253", "0.57799494", "0.57732934", "0.5771107", "0.5769866", "0.57673866", "0.5762444", "0.5752891", "0.5745828", "0.5737482", "0.5729561", "0.57234025", "0.57180834", "0.57176954", "0.57171977", "0.5717035", "0.5714676", "0.5713957", "0.5703303", "0.56987554", "0.5696206", "0.5691652", "0.5684638", "0.56814206", "0.5681105", "0.56809515", "0.56800294", "0.56766725", "0.56731933", "0.5671854", "0.5668685", "0.5666647", "0.56488955", "0.5648783", "0.5648354", "0.56413954", "0.5635157", "0.5632066", "0.5623007", "0.5622646", "0.56211233", "0.559529", "0.55948853", "0.5590762", "0.55876184", "0.55862975", "0.55831414", "0.55814755", "0.55782866", "0.5573744" ]
0.0
-1
Detect field type from Doctrine Annotations
private function detectFieldType($class, $field) { $annotations = $this->annotationReader->getPropertyAnnotations(new \ReflectionProperty($class, $field)); $mappingColumn = array_filter($annotations, function($item) { return $item instanceof \Doctrine\ORM\Mapping\Column; }); $mappingColumnCurrent = current($mappingColumn); return ($mappingColumnCurrent->type === 'string') ? 'text' : 'textarea'; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getTypeOfField($fieldName);", "function is_field_type($name)\n {\n }", "abstract public function getColumnTypeByField(Entity\\ScalarField $field);", "protected abstract function get_rest_field_type();", "public function getDbFieldType()\n {\n }", "public function getTypeOfField($fieldName)\n {\n }", "function get_field_type($name)\n {\n }", "function get_field_types()\n {\n }", "public function getType()\n\t{\n\t\t$annotations = $this->parseAnnotations();\n\t\treturn EloquentIterable::wrap($annotations)\n\t\t\t->filter(function ($annotation) {\n\t\t\t\treturn $annotation->getAnnotation() == '@var';\n\t\t\t})->transform(function ($annotation) {\n\t\t\t\treturn $annotation->getType();\n\t\t\t})->first();\n\t}", "function _drush_behat_get_entity_field_types($entity_type) {\n $return = array();\n $fields = \\Drupal::entityManager()->getFieldStorageDefinitions($entity_type);\n foreach ($fields as $field_name => $field) {\n if (_drush_behat_is_field($entity_type, $field_name)) {\n $return[$field_name] = $field->getType();\n }\n }\n return $return;\n}", "public function getType() {\n return $this->field->type;\n }", "function oci_field_type($statement, $field)\n{\n}", "public function get_rest_field_type()\n {\n }", "public function get_rest_field_type()\n {\n }", "public function get_rest_field_type()\n {\n }", "public function get_rest_field_type()\n {\n }", "function drush_behat_op_is_field($is_field_info) {\n list($entity_type, $field_name) = $is_field_info;\n return _drush_behat_is_field($entity_type, $field_name);\n}", "public function getFieldType($fieldname);", "public function getDataWithTypeField() {}", "public function isAnnotation();", "function getFieldType() {\n\t\treturn 'field';\n\t}", "public function getTypeDoctrine()\n {\n if (isset(self::$doctrineTypeMap[$this->getType()])) {\n return self::$doctrineTypeMap[$this->getType()];\n }\n\n // our fallback default\n return self::$doctrineTypeMap[self::TYPE_STRING];\n }", "public function getTypeAttribute();", "function get_field_type($field)\n\t{\n\t\tif( $field == \"usr_email\" )\n\t\t\treturn \"email\";\n\t\telse if( $field == \"usr_cod_postal\" )\n\t\t\treturn \"number\";\n\t\telse\n\t\t\treturn \"text\";\n\t}", "function register_field_type($class)\n {\n }", "public abstract function getTypeAttribute();", "public function fieldType($field) {\n\t\tif (strstr($field, \".\")) {\n\t\t\t// use the path to get to the data poing\n\t\t\t$fieldParts = explode(\".\", $field);\n\t\t\t$key = array_pop($fieldParts);\n\t\t\t\n\t\t\t// add the field parts to the entityPath to get the correct model\n\t\t\tEntity::_setEntityPath($fieldParts);\n\t\t} else {\n\t\t\t$key = $field;\n\t\t\t$fieldParts = array();\n\t\t}\n\t\t\n\t\t$model = Entity::currentPathClass();\n\t\t\n\t\tEntity::_revertEntityPath(count($fieldParts));\n\t\t\n\t\tApp::uses($model, \"Model\");\n\t\t\n\t\t$modelConf = $this->entityConfig($model, \"Fields\", $key);\n\t\t\t\n\t\tif (is_array($modelConf) && isset($modelConf['type'])) {\n\t\t\treturn $modelConf['type'];\n\t\t}\n\t\t\n\t\tif ($key == $this->primaryKey($model)) {\n\t\t\treturn \"primary\";\n\t\t}\n\n\t\t// if field is not defined in db, and it's not a defined html helper func, then just print whatever it is\n\t\t$types = $this->entityFields($model);\n\t\t\n\t\tif (@$types[$key] == \"virtual\") {\n\t\t\t$type = \"text\";\n\t\t} else {\n\t\t\tif (isset($types[$key]))\n\t\t\t\t$type = $types[$key];\n\t\t\telse\n\t\t\t\t$type = \"text\";\n\t\t}\n\t\t\n\t\tif (substr($type, 0, 5) == \"enum(\") {\n\t\t\t$this->_enumopts[$key] = explode(\"','\", substr($type, 6, -2));\n\t\t\t$type = \"enum\";\n\t\t}\n\t\t\n\t\treturn $type;\n\t}", "public function getFieldType() {\n\t\t$subject = $this->Changelog()->getSubject();\n\t\t$field = $this->FieldName;\n\n\t\tif ($class = $subject->db($field)) {\n\t\t\treturn Extension::get_classname_without_arguments($class);\n\t\t} elseif(substr($field, -2) == 'ID') {\n\t\t\tif ($subject->has_one(substr($field, 0, -2))) return 'ForeignKey';\n\t\t}\n\n\t\tthrow new Exception('The corresponding field type could not be found.');\n\t}", "function acf_get_field_type($name)\n{\n}", "function entity_type_inheritable_fields($entity_type) {\n}", "private function getFieldType(string $name, string $docblock): int\n {\n if (strpos($docblock, '@ORM\\ManyToOne') !== false) {\n return self::FIELD_MO_TYPE;\n }\n if (strpos($docblock, '@ORM\\OneToMany') !== false) {\n return self::FIELD_OM_TYPE;\n }\n if (strpos($docblock, '@ORM\\OneToOne') !== false) {\n return self::FIELD_OO_TYPE;\n }\n if (strpos($docblock, '@ORM\\ManyToMany') !== false) {\n return self::FIELD_MM_TYPE;\n }\n\n if (strpos($docblock, '@ORM\\Column') !== false) {\n if ($this->isDateType($this->getVarType($name, $docblock))) {\n return self::FIELD_DATE_TYPE;\n }\n\n return self::FIELD_SIMPLE_TYPE;\n }\n\n throw new InvalidArgumentException(\"Cannot get field type for {$name}\");\n }", "public function getFieldType(){\n \treturn $this->field_type;\n }", "function GetFieldType($table,$field)\n\t{\n\t\t$tbl = $this->Table($table);\n\t\treturn $tbl->GetFieldType($field);\n\t}", "public function get_field_type() {\n\t\treturn $this->get_field_attr( 'type' );\n\t}", "public function meta_type();", "public function getPreparedTypeFieldName () {\n return null;\n }", "abstract public function getFieldByColumnType($name, $type, array $parameters = null);", "public function getFieldType()\n {\n return self::TYPE_PARAMETERIZED;\n }", "function acf_is_field_type($name = '')\n{\n}", "function acf_get_field_types_info($args = array())\n{\n}", "public function getMappingEntityType();", "private function parsePHPDocAttributeAnnotation($phpAnnotation)\r\n {\r\n $result = TypesEnum::UNKNOWN;\r\n if ($phpAnnotation !== null) {\r\n if (preg_match('/@var[ \\t]+([a-z0-9]+)/i', $phpAnnotation->getText(), $matches)) {\r\n $type = trim(strtolower($matches[1]));\r\n return $type;\r\n }\r\n }\r\n return $result;\r\n }", "function register_field_type_info($info)\n {\n }", "function get_field_mapping_types() {\n return drupal_map_assoc([\n 'string',\n 'keyword',\n 'date',\n 'long',\n 'double',\n 'boolean',\n 'ip',\n 'object',\n 'nested',\n 'geo_point',\n 'geo_shape',\n 'completion',\n ]);\n}", "protected function getEntityTypes() {\n return array_filter($this->entityTypeManager->getDefinitions(), function (EntityTypeInterface $entity_type) {\n return $entity_type->entityClassImplements(FieldableEntityInterface::class) && $entity_type->hasHandlerClass('form', 'layout_builder') && $entity_type->hasViewBuilderClass() && $entity_type->hasLinkTemplate('canonical');\n });\n }", "function entity_type_inherited_fields($entity_type) {\n}", "public final function getFieldtype($fld)\n {\n return isset($this->columns->{$fld}) ? $this->db->convertType($this->columns->{$fld}->type) : false;\n }", "private function getType(string $doctrineType = null): string\n {\n if (null === $doctrineType || Type::FLOAT === $doctrineType) {\n return 'string';\n }\n\n if (Type::FLOAT === $doctrineType) {\n return 'float';\n }\n\n return 'int';\n }", "public function fieldType($result = false, $field_offset = 0){\n $this->resCalc($result); \n return mysql_field_type($result, $field_offset); \n }", "public function get_type();", "public function getEntityClass()\n {\n return 'GravityCMS\\CoreBundle\\Entity\\FieldNumber';\n }", "public function getType(): EntityType;", "public function getEntityType();", "function getFieldsTypes()\n {\n return array(\n'id' =>'integer',\n'paypalid'=>'string',\n'notifyid'=>'string',\n\n\t\t\t\n\t );\n }", "public function dbFieldType()\n {\n return 'string';\n }", "public function getMappedEntityType();", "function getFieldType($fieldName) {\n\t\tswitch ($fieldName) {\n\t\t\tcase 'date':\n\t\t\t\t$returner = FIELD_TYPE_DATE;\n\t\t\t\tbreak;\n\t\t\tcase 'language':\n\t\t\t\t$returner = FIELD_TYPE_SELECT;\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\t$returner = FIELD_TYPE_STRING;\n\t\t\t\tbreak;\n\t\t}\n\t\tHookRegistry::call('DublinCorePlugin::getFieldType', array(&$this, $fieldName, &$returner));\n\t\treturn $returner;\n\t}", "public function getFieldType()\n {\n return $this->fieldType;\n }", "public function getFieldType()\n {\n return $this->fieldType;\n }", "public function testReadUploadableAnnotation()\n {\n $uploadable = $this->getMockBuilder('Vich\\UploaderBundle\\Mapping\\Annotation\\Uploadable')\n ->disableOriginalConstructor()\n ->getMock();\n\n $reader = $this->getMock('Doctrine\\Common\\Annotations\\Reader');\n $reader\n ->expects($this->once())\n ->method('getClassAnnotation')\n ->will($this->returnValue($uploadable));\n\n $entity = new DummyEntity();\n $driver = new AnnotationDriver($reader);\n $annot = $driver->readUploadable(new \\ReflectionClass($entity));\n\n $this->assertEquals($uploadable, $annot);\n }", "public abstract function getFieldConverterClass();", "public function hasColumnType($name);", "public function hasColumnType($name);", "private static function getAnnotatedType(string $comment, string $namespace = null): string\n {\n $matches = array();\n if (! preg_match('/@var ([\\w\\\\\\\\]+)/', $comment, $matches)) {\n return \"\";\n }\n \n $type = $matches[1];\n \n if (self::isPrimitive($type)) {\n return $type;\n }\n \n $type = self::fullQualifiedName($namespace, $type);\n \n if (! class_exists($type)) {\n throw new OrmException(\"Annotated type {type} could not be found nor loaded\", array(\n 'type' => $matches[1]\n ));\n }\n \n return $type;\n }", "public function getPatternedFieldType(string $field);", "public function getFieldType($fieldName) {\n\t\tif (is_int(strpos($fieldName, '--palette--'))) {\n\t\t\treturn 'palette';\n\t\t}\n\t\tif (is_int(strpos($fieldName, '--widget--'))) {\n\t\t\treturn 'widget';\n\t\t}\n\t\t$configuration = $this->getConfiguration($fieldName);\n\t\t$result = $configuration['type'];\n\n\t\tif (!empty($configuration['eval'])) {\n\t\t\t$parts = \\TYPO3\\CMS\\Core\\Utility\\GeneralUtility::trimExplode(',', $configuration['eval']);\n\t\t\tif (in_array('datetime', $parts)) {\n\t\t\t\t$result = 'datetime';\n\t\t\t}\n\t\t\tif (in_array('date', $parts)) {\n\t\t\t\t$result = 'date';\n\t\t\t}\n\t\t}\n\t\treturn $result;\n\t}", "public function testReadOneUploadableField()\n {\n $uploadableField = $this->getMockBuilder('Vich\\UploaderBundle\\Mapping\\Annotation\\UploadableField')\n ->disableOriginalConstructor()\n ->getMock();\n $uploadableField\n ->expects($this->once())\n ->method('setPropertyName');\n\n $entity = new DummyEntity();\n $class = new \\ReflectionClass($entity);\n\n $reader = $this->getMock('Doctrine\\Common\\Annotations\\Reader');\n $reader\n ->expects($this->any())\n ->method('getPropertyAnnotation')\n ->will($this->returnCallback(function() use ($uploadableField) {\n $args = func_get_args();\n if ('file' === $args[0]->getName()) {\n return $uploadableField;\n }\n\n return null;\n }));\n\n $driver = new AnnotationDriver($reader);\n $fields = $driver->readUploadableFields($class);\n\n $this->assertEquals(1, count($fields));\n }", "public function getType() {\n return $this->field['type'] ?? '';\n }", "function acf_get_field_types($args = array())\n{\n}", "public function getFieldType($fieldSlug);", "protected function columnType()\n {\n $table = $this->ask('Enter the name of desired table');\n $this->checkInput($table);\n $column = $this->ask('Enter the desired column');\n $this->checkInput($column);\n $this->service->columnType($table, $column);\n }", "public function field_metatype($result, $index){\r\n $obj_field = new ADOFieldObject();\r\n $obj_field = $result->FetchField($index);\r\n //print_r($obj_field);\r\n $type = $result->MetaType($obj_field->type, $obj_field->max_length); // Since ADOdb 3.0, MetaType accepts $fieldobj as the first parameter, instead of $nativeDBType.\r\n \r\n return $type; \r\n }", "function pg_field_type($result, $field_number)\n{\n}", "public function getFieldType($fieldName): string\n {\n return $this->savLibraryMvcColumns[$fieldName]['fieldType'] ?? '';\n }", "public function getFieldDataType() {\n\t\t$fieldDataType = '';\n\t\t$uitype = $this->get('uitype');\n\t\tif ($uitype == '9') {\n\t\t\t$fieldDataType = 'percent';\n\t\t}\n\n\t\tif (!$fieldDataType) {\n\t\t\t$webserviceField = $this->getWebserviceFieldObject();\n\t\t\t$fieldDataType = $webserviceField->getFieldDataType();\n\t\t\tswitch($fieldDataType) {\n\t\t\t\tcase 'text' : $fieldDataType = 'textArea'; break;\n\t\t\t\tcase 'boolean' : $fieldDataType = 'checkBox'; break;\n\t\t\t case 'multipicklist' : $fieldDataType = 'multiSelectCombo'; break;\n\t\t\t}\n\t\t}\n\t\treturn $fieldDataType;\n\t}", "public function getTypeHint(): string;", "public function testDataTypeWithLengthNotSpecified()\n {\n $tableName = 'ramp_tabletest1';\n $table = new Application_Model_DbTable_Table($tableName);\n $metaInfo = $table->info(Zend_Db_Table_Abstract::METADATA);\n $whichField = 'id';\n\n $field = new Application_Model_Field($whichField, array(),\n $metaInfo[$whichField]);\n\n $this->assertTrue($field->isInTable());\n $this->assertTrue($field->isInDB());\n $this->assertFalse($field->isEnum());\n $this->assertSame(\"int\", $field->getDataType());\n $this->assertNull($field->getLength());\n $this->_assertWholelyLocal($field);\n $this->_assertMetaInfoValues($tableName, $whichField, $field);\n }", "public function getFormattedEntityType();", "public function getAnnotation() {}", "protected function getClassField() {}", "public function testTypes()\n {\n $this->innerField->getFormType()->willReturn('FormType');\n $this->innerField->getViewType()->willReturn('ViewType');\n $this->innerField->getStorageType()->willReturn('StorageType');\n\n $field = $this->createField([]);\n $this->assertEquals('FormType', $field->getFormType());\n $this->assertEquals('StorageType', $field->getStorageType());\n $this->assertEquals('ViewType', $field->getViewType());\n }", "public function get_type(): string;", "public function get_rest_field_type() {\n\t\treturn 'user';\n\t}", "function _getTypes()\n {\n $types = array(\n 0 => \"null\",\n 1 => \"bool\",\n 2 => \"int\",\n 3 => \"float\",\n 4 => \"varchar\",\n 5 => \"text\",\n 6 => \"blob\"\n );\n $tLeast = $this->table->count() < 2 ? 4 : 0;\n if ($this->GET('override')) {\n $types[1] = \"int\";\n $types[4] = \"text\";\n $types[6] = \"text\";\n }\n foreach ($this->table->fields as $field) {\n $t[$field] = strcasecmp($field, \"id\") ? $tLeast : 2;\n }\n while ($row = $this->table->each()) {\n foreach ($row as $field => $value) {\n if (preg_match('/[\\x00-\\x06\\x08\\x0B-\\x0C\\x0E-\\x13\\x16-\\x1F]/', $value))\n $t[$field] = 6;\n elseif (strlen($value) > 255 || strpos($value, \"\\n\"))\n $t[$field] = max($t[$field], 5);\n elseif (! empty($value) && ! is_numeric($value))\n $t[$field] = max($t[$field], 4);\n elseif (! preg_match('/^[+-]?\\d{0,10}$/s', $value))\n $t[$field] = max($t[$field], 3);\n elseif (! preg_match('/^[01]?$/s', $value))\n $t[$field] = max($t[$field], 2);\n elseif (strlen($value))\n $t[$field] = max($t[$field], 1);\n }\n }\n foreach ($this->table->fields as $field) {\n $this->types[$field] = $types[$t[$field]];\n }\n $this->table->reset();\n }", "function getClassAnnotation(\\ReflectionClass $class, $annotationName);", "private function getType(string $doctrineType) : string\n {\n return 'string';\n }", "public static function getAllFieldsWithTypes(): array\n {\n $className = get_called_class();\n $table = with(new $className)->getTable();\n\n\n $cache_key = self::$cache_prefix.'.ALLFIELDS.WITH.TYPES.' . strtoupper($table);\n\n return self::$use_cache ? Cache::remember($cache_key, 5 * 60, function () use ($table) {\n return self::getArrayTableInfo($table);\n }) : self::getArrayTableInfo($table);\n }", "abstract public function getFields($entity);", "abstract protected function getEntityType(): string;", "function PMA_istableFieldBlob($field)\n{\n // If check to ensure types such as \"enum('one','two','blob',..)\" or\n // \"enum('one','two','tinyblob',..)\" etc. are not categorized as blob.\n if (stripos($field['Type'], 'blob') === 0\n || stripos($field['Type'], 'tinyblob') === 0\n || stripos($field['Type'], 'mediumblob') === 0\n || stripos($field['Type'], 'longblob') === 0\n ) {\n return stristr($field['Type'], 'blob');\n } else {\n return false;\n }\n}", "public function getFieldTypes() {\n\t\treturn array(crud::TYPE_STRING);\n\t}", "protected abstract function get_meta_type();", "public function getTypeNameAttribute();", "public function columnTypes()\n {\n return \\array_merge(\\array_filter(parent::columnTypes(), function($elem) {\n if ($elem[0] === Schema::TYPE_JSON) {\n return false;\n }\n return true;\n }), [\n [\n Schema::TYPE_JSON,\n $this->json(),\n \"json\",\n \"json CHECK ([[{name}]] is null or json_valid([[{name}]]))\"\n ]\n ]);\n }", "public function fetchField();", "public static function getFieldTypes() {\n\t\treturn self::$FIELD_TYPES;\n\t}", "public static function getFieldTypes() {\n\t\treturn self::$FIELD_TYPES;\n\t}", "public static function getFieldTypes() {\n\t\treturn self::$FIELD_TYPES;\n\t}", "protected function getFieldType()\n {\n if (strstr($this->sColumn, 'textarea')) {\n $sType = 'Textarea';\n } elseif (strstr($this->sColumn, 'editor')) {\n $sType = 'CKEditor';\n } elseif (strstr($this->sColumn, 'email')) {\n $sType = 'Email';\n } elseif (strstr($this->sColumn, 'password')) {\n $sType = 'Password';\n } elseif (strstr($this->sColumn, 'url')) {\n $sType = 'Url';\n } elseif (strstr($this->sColumn, 'phone')) {\n $sType = 'Phone';\n } elseif (strstr($this->sColumn, 'date')) {\n $sType = 'Date';\n } elseif (strstr($this->sColumn, 'color')) {\n $sType = 'Color';\n } elseif (strstr($this->sColumn, 'number')) {\n $sType = 'Number';\n } elseif (strstr($this->sColumn, 'range')) {\n $sType = 'Range';\n } elseif (stripos($this->sColumn, 'height') !== false) {\n $sType = 'Height';\n } elseif (stripos($this->sColumn, 'weight') !== false) {\n $sType = 'Weight';\n } else {\n $sType = 'Textbox';\n }\n\n return $sType;\n }", "function get_column_type ($table_name, $column_name) { \n\n\t$column_row_arr = NULL;\n\t\n\t// Get the array of meta data for the table\n\tlist($errArr, $columns_arr) = show_columns($table_name);\n if ( count($columns_arr) > 0) {\n \t// Loop through metadata\n \tforeach ($columns_arr as $columns_row)\n \t{\n \t\tif ($columns_row[DFT_FIELD] == $column_name) {\n \t\t\t$column_row_arr = $columns_row;\n \t\t\tbreak; // column name is found in meta data \n \t\t}\n \t}\n }\n\treturn $column_row_arr;\n}" ]
[ "0.65620965", "0.61394083", "0.6078466", "0.60764545", "0.6006963", "0.5967719", "0.59378195", "0.591797", "0.5905287", "0.5898793", "0.58525574", "0.5837473", "0.57930267", "0.57930267", "0.57930267", "0.57930267", "0.5754573", "0.57108194", "0.5683082", "0.56576204", "0.56443524", "0.5637777", "0.55585915", "0.5480079", "0.5476264", "0.5472016", "0.5467157", "0.54633427", "0.54632413", "0.54611325", "0.5447818", "0.5442058", "0.54273677", "0.5409588", "0.5390724", "0.5390608", "0.53832257", "0.53697526", "0.53674763", "0.5357382", "0.5353452", "0.5342771", "0.5334277", "0.5297678", "0.5294925", "0.5263053", "0.5251199", "0.5250035", "0.5224862", "0.5218123", "0.52143955", "0.5192828", "0.51902795", "0.51858336", "0.51745844", "0.5174382", "0.5160515", "0.51563185", "0.51563185", "0.5155741", "0.51462805", "0.5144144", "0.5144144", "0.5124663", "0.5109618", "0.5103018", "0.5102151", "0.50962216", "0.5074068", "0.50679815", "0.506577", "0.50618255", "0.5059627", "0.5058345", "0.505496", "0.50494945", "0.5040425", "0.50345814", "0.50327045", "0.5028423", "0.5002367", "0.49963412", "0.49855903", "0.49851668", "0.49773782", "0.49745417", "0.49742568", "0.49690828", "0.49594733", "0.49456853", "0.49442804", "0.494251", "0.494143", "0.49263173", "0.4922178", "0.49157453", "0.49157453", "0.49157453", "0.49082595", "0.49069482" ]
0.61660296
1
Phuong thuc post them
public function postThem(Request $request) { //Validate nhé cưng! $this->validate($request, [ 'Ten'=>'required', 'NoiDung'=>'required', //'link'=>'required', ], [ 'Ten.required'=>'Vui lòng nhập tên cho slide nhé hehe!', 'NoiDung.required'=>'Vui lòng nhập nội dung nhé Đồ Ngốc!', //'link.required'=>'Nhập link nhé đồ ngu!', ]); // $slide=new Slide; $slide->Ten=$request->Ten; //$slide->Hinh=$request->Hinh; $slide->NoiDung=$request->NoiDung; if($request->has('link')){ $slide->link=$request->link; } if($request->hasFile('Hinh')) { //Lấy cái hình ra,Lưu hình vào cái biens file này $file=$request->file('Hinh'); $duoi=$file->getClientOriginalExtension(); if($duoi !='jpg' && $duoi !='png' && $duoi!='jpeg') { return redirect("admin/slide/them")->with('loi','Bạn chỉ được phép chọn ảnh!'); } //Láy cái tên hình ra để lưu lại $name=$file->getClientOriginalName(); //Random trong trường hợp tấm hình trùng $Hinh=str_random(4)."_".$name; while(file_exists("upload/slide/".$Hinh)) { $Hinh=str_random(4)."_".$name; } //Chọn đường dẫn lưu hình $file->move("upload/slide",$Hinh); $slide->Hinh=$Hinh; } else { $slide->Hinh=""; } // Save it $slide->save(); return redirect('admin/slide/them')->with('thongbao','Bạn đã thêm slide thành công!'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function write_post()\n {\n }", "public function sendPost(){\n\t\t\t// record the post in the database\n\t\t\t\n\t\t}", "function post() \n {\n \n }", "public function the_post()\n {\n }", "function _post()\r\n\t\t{\r\n\t\t}", "function thankyou_page() {\n\t\t\tif ( $description = $this->get_description() ) {\n\t\t\t\techo wpautop( wptexturize( wp_kses_post( $description ) ) );\n\t\t\t}\n\t\t}", "function WoopPost( $post ) { $this->post = $post; }", "function post();", "public function next_post()\n {\n }", "function get_pung($post)\n {\n }", "public function luu_tt_sanpham()\n\t\t{\n\t\t\t//lay du lieu tu view \n\t\t\tif (isset($_POST['tensanpham'])&& isset($_POST['tenloaisanpham'])&& isset($_POST['img'])&& isset($_POST['mota'])&& isset($_POST['baohanh'])&& isset($_POST['gia'])){\n\t\t\t\t//goi ham luu data cua model san pham\n\t\t\t\t$this->tensanpham = $_POST['tensanpham'];\n\t\t\t\t$this->id_loaisp = $_POST['tenloaisanpham'];\n\t\t\t\t$this->img = $_POST['img'];\n\t\t\t\t$this->mota = $_POST['mota'];\n\t\t\t\t$this->baohanh = $_POST['baohanh'];\n\t\t\t\t$this->gia = $_POST['gia'];\n\t\t\t\t//goi ham luu data cua model sanpham\n\t\t\t\t$kq = $this->sanpham_model->insert_sanpham($this->tensanpham,$this->id_loaisp,$this->img,$this->mota,$this->baohanh,$this->gia);\n\t\t\t\tif ($kq) {\n\t\t\t\t\techo 'luu du lieu thanh cong -- sanphamcontroller';\n\t\t\t\t} else {\n\t\t\t\t\techo'luu du lieu that bai -- sanphamcontroller';\n\t\t\t\t}\n\t\t\t\t\n\t\t\t} else {\n\t\t\t\techo 'ban chua nhap du lieu -- sanphamcontroller';\n\t\t\t}\t\t\t\n\t\t}", "function wp_kses_post($data)\n {\n }", "public function attachTagToPostAtTheEnd() {}", "public function p_add() {\n\t\t\t#print_r($_POST);\n\t\t\t\n\t\t\t\n\t\t\t$_POST['created'] = Time::now();\n \t\t\t$_POST['modified'] = Time::now();\n\t\t\t$_POST['poster'] = $this->user->user_id;\n\t\t\t\n\t\t\t#Write Post to the Database\n\t\t $post_id= DB::instance(DB_NAME)->insert('posts', $_POST);\n\t\t\t#Call the parser to look for hashtags: \n\t\t\t$_POST['post'] = $this->parse(\"#\",$_POST['post'],$post_id);\n\t\t\t#Call the parser to look for mentions, and the 'reply_to' for the post\n\t\t\t$_POST['post'] = $this->parse(\"@\",$_POST['post'],$post_id);\n\t\t\t#Update the Post record with new post, updated in the parser:\n\t\t\tDB::instance (DB_NAME)->update('posts',$_POST,\"where post_id = '\".$post_id.\"'\");\t\n\t\t\t\n\t\t Router::redirect('/users/');\n\t\t\t\n\t\t\t\t\t\t\n\t\t}", "public function add_postAction() {\r\n\t\t$info = $this->getPost(array('sort', 'title', 'channel_id', 'link', 'start_time', 'end_time','hits', 'status'));\r\n\t\t$info = $this->_cookData($info);\r\n\t\t$result = Gou_Service_Notice::addNotice($info);\r\n\t\tif (!$result) $this->output(-1, '操作失败');\r\n\t\t$this->output(0, '操作成功');\r\n\t}", "public function postSend()\n {\n }", "public function run()\n {\n $param = [\n 'people_id' => '4',\n 'headware' => 'pc',\n 'mainpic' => 'octane',\n 'secondpic' => 'mirage',\n 'thirdpic' => 'crypto',\n 'require_rank' => 'dia',\n 'voice_chat' => '1',\n 'message' => '固定でマスター目指しましょう!',\n 'psid' => 'yamada'\n ];\n $post = new Post;\n $post->fill($param)->save();\n\n $param = [\n 'people_id' => '5',\n 'headware' => 'ps4',\n 'mainpic' => 'mirage',\n 'secondpic' => 'crypto',\n 'thirdpic' => 'octane',\n 'require_rank' => 'plat',\n 'voice_chat' => '0',\n 'message' => 'まったり',\n 'psid' => 'tanaka'\n ];\n $post = new Post;\n $post->fill($param)->save();\n }", "public function likePostAction() {\n\n }", "public function hapus_toko(){\n\t}", "function send_post()\n { \n $send = new send();\n\n $send->date_created = date('Y-m-d H:i:s');\n $send->createdbypk = $this->get_user()->user_id;\n $send->date_modified = date('Y-m-d H:i:s');\n $send->modifiedbypk = $this->get_user()->user_id;\n\n $this->response($this->_send_save($send, 'post'));\n }", "function wpegg_handlePost($PostID){\r\n \r\n $Post = get_post($PostID);\r\n $Bot = wpegg_getOptions();\r\n $Message = $Bot['Message']; \r\n $Permalink = get_permalink($PostID);\r\n // Get author details.\r\n if ((strstr($Message,\"%A\")) || (strstr($Message,\"%a\")) ){\r\n \r\n $User = get_userdata($Post->post_author);\r\n \r\n $Message = str_replace(\"%a\",\"{$User->first_name} {$User->last_name}\",$Message);\r\n $Message = str_replace(\"%A\",$User->display_name,$Message);\r\n \r\n }\r\n \r\n // Get catergory name.\r\n if (strstr($Message,\"%C\")){\r\n \r\n foreach((get_the_category($PostID)) as $category) { \r\n $Cat .= $category->cat_name . ' '; \r\n } \r\n \r\n $Message = str_replace(\"%C\",$Cat,$Message);\r\n \r\n }\r\n \r\n if (strstr($Message,\"%c\")){\r\n \r\n $Catergories = get_the_category($PostID);\r\n \r\n $Message = str_replace(\"%c\",$Catergories[0]->category_nicename,$Message);\r\n \r\n }\r\n \r\n \r\n $Message = str_replace(\"%d\",$Post->post_date,$Message);\r\n $Message = str_replace(\"%D\",$Post->post_date_gmt,$Message);\r\n $Message = str_replace(\"%t\",$Post->post_name,$Message);\r\n $Message = str_replace(\"%T\",$Post->post_title,$Message);\r\n $Message = str_replace(\"%U\",$Permalink,$Message);\r\n \r\n \r\n wpegg_sendMessage($Bot['Server'],$Bot['Port'],$Bot['Password'],$Message);\r\n \r\n \r\n \r\n}", "public function afficherPost(){\r\n\t\t\t$gab = new Template(\"./\");\r\n\t\t\t$gab->set_filenames(array(\"body\" => \"template.post.html\"));\t\r\n\t\t\t$gab->assign_vars(array(\"user\" => $this->user));\r\n\t\t\t$gab->assign_vars(array(\"title\" => $this->title_post));\r\n\t\t\t$gab->assign_vars(array(\"text\" => $this->text_post));\r\n\t\t\t$gab->assign_vars(array(\"date\" => $this->date_post));\r\n\t\t\t$gab->assign_vars(array(\"id_post\" => $this->id_post));\r\n\t\t\t$gab->assign_vars(array(\"count_like\" => $this->count_like));\r\n\t\t\t$gab->assign_vars(array(\"count_answer\" => $this->count_answer));\r\n\t\t\t$gab->assign_vars(array(\"like_button\" => $this->like_button));\r\n\t\t\t$gab->assign_vars(array(\"like_value\" => $this->like_value));\r\n\t\t\t$gab->pparse(\"body\");\r\n\t\t}", "public function thankyou_page() {\n MinterStoreExceptions::Log($this->instructions);\n// if ( $this->instructions ) {\n// echo wpautop( wptexturize( $this->instructions ) );\n// }\n }", "public function index_post()\n\t {\n\t \t\t$user= [\n\t \t\t\t'us_type'=>$this->post('post_type'),\n\t \t\t\t'id_user'=>$this->post('post_id'),\n \t'us' => $this->post('post_us'),\n\t 'email'=> $this->post('post_email'),\n\t 'born'=> $this->post('post_born'),\n\t 'status'=> $this->post('post_status'),\n\t 'pass'=> $this->post('post_pass'),\n \t];\n \t$us=$this->User_Model->add_user($user);\n \tif ($us) {\n \t\t$this->response(array(\"code\" =>200, \"response\"=>\"Se agrego el usuario\"+$user->us));\n \t} else {\n \t\t$this->response(array(\"code\" =>204, \"response\"=>\"NO se agrego el usuario\"+$user->us));\n \t}\n\t }", "function index_post() {\n $this->crud_post($this->post());\n }", "public function postUp()\n {\n }", "function pingback($content, $post)\n {\n }", "function do_store_post_reply($post_id) {\r\n // echo '<pre>'; print_r($_POST); die();\r\n foreach(array(\"description\",\"replied_by\") as $i)\r\n\t\t\t$$i=$this->input->post($i);\r\n $replied_on = time();$status=1;\r\n $this->db->query(\"insert into m_stream_post_reply(description,post_id,replied_by,replied_on,status) values(?,?,?,?,?)\",array($this->prep($description),$post_id,$replied_by,$replied_on,$status));\r\n }", "function submit_post($post)\n {\n $query = \"INSERT INTO messages(message, users_id)\n VALUES('{$post['content']}', {$_SESSION['user_id']})\";\n run_mysql_query($query);\n header('Location:wall.php');\n exit();\n }", "function addPostingHandler() {\n global $inputs;\n\n $src = uploadFile();\n\n $lastId = insert('posting',[\n 'pic' => $src,\n 'title' => $inputs['title'],\n 'content' => $inputs['content'],\n \t 'status' => $inputs['status']\n ]);\n\n insert('member_posting', [\n 'posting_id' => $lastId,\n 'member_id' => getLogin()['mid']\n ]);\n\n formatOutput(true, 'add success',$lastId);\n}", "public function post();", "public function post();", "public function post();", "public function postsAction() {\n\n $params = $this->_request->getParams();\n $this->view->ajax_post = isset($params['ajax_post']) ? TRUE : FALSE;\n\n //Добавим путь к действию\n $this->_breadcrumbs->addStep($this->Translate('Список сообщений в блогах'));\n }", "public function trasnaction(){\n\n\t}", "function alle_post( $post) {\n //\n $output = '' ;\n \n //\t$this->post->input\n foreach( $post as $k => $v ) \n {\t\n $output .= '$'.$k.' &nbsp; = &nbsp; $this->input->post(\\''.$k.'\\', TRUE) ;<br />'.\"\\n\";\t\n }\n //-----/$this->post->input\n\n $output .= '<br /><br />'.\"\\n\" ;\t \n \n \n //\t$this->post->input\n foreach( $post as $k => $v ) \n {\t\n $output .= '$'. $k .' &nbsp; = &nbsp; '. $v .'<br />'.\"\\n\";\t\n }\n //-----/$this->post->input \n \n \n \n $output .= '<br /><br />'.\"\\n\" ;\t\t\t\n \n //\tdatabase\n foreach ($_POST as $k => $v) \n {\t\n if( $k <> 'submit')\n {\n $output .= '$this->db->set(\\''.$k.'\\', $'.$k.' ) ; '.\"<br />\\n\";\n }\t\t\n }\n //-----/database\n\t\t\t\n\t\t// $output .= '<br />'.\"\\n\" ;\n\t\t// $output .= '<br />'.\"\\n\" ; \n \n \n return $output ;\n //-----/\n }", "function the_post()\n {\n }", "private function archiveNotice($post)\n {\n global $database;\n for ($i = 1; $i <= 10; $i++) {\n if (isset($post['n' . $i])) {\n $database->archiveNotice($post['n' . $i]);\n }\n }\n header(\"Location: berichte.php\" . (isset($post['t']) ? '?t=' . $post['t'] : ''));\n exit;\n }", "public function upload_postAction() {\n\t\t$ret = Common::upload('img', 'fanfan_topic');\n\t\t$imgId = $this->getPost('imgId');\n\t\t$this->assign('code' , $ret['data']);\n\t\t$this->assign('msg' , $ret['msg']);\n\t\t$this->assign('data', $ret['data']);\n\t\t$this->assign('imgId', $imgId);\n\t\t$this->getView()->display('common/upload.phtml');\n\t\texit;\n\t}", "abstract public function post();", "public function add_postAction() {\n\t\t$info = $this->getPost(array('title', 'guide', 'gtype','ntype','btype','img', 'status', 'start_time', 'update_time'));\n\t\t$info = $this->_cookData($info);\n\t\t$info['start_time'] = strtotime($info['start_time']);\n\t\t$info['update_time'] = Common::getTime();\n\t\t$result = Client_Service_Besttj::addBesttj($info);\n\t\tif (!$result) $this->output(-1, '操作失败');\n\t\t$webroot = Common::getWebRoot();\n\t\t$this->output(0,'操作成功,请添加游戏',$result);\n\t\texit;\n\t}", "public function post_tagged_wall()\n\t{\n //echo \"nitin\";\n\t\t//$this->template=\"show_tagged_post\";\n\t\t\n\t\t/*$data['art_url'] = SITE_URL.\"index.php?r=poc/post_tagged_wall\";\n\t\t$data['art_title'] = \"I am going to london after 15 years with Emirates Skywards\";\n\t\t$data['art_image'] = \"http://creative2.synechron.com/Skywards/city_images/Chennai.jpg\";\n\t\t$data['tagged_users'] = \"1220631499,100004933985926,1041266626\";\n\t\t$data['place_tagged'] = \"233749393378348\";\n\t\t$this->template=\"show_tagged_post\";\n\t\t$this->render($data);*/\n\n\t\t $message='I am going to london after 15 years with Emirates Skywards';\n\t\t $picture=SITE_URL.'city_images/Chennai.jpg';\n\t\t $friend_tagged_ids=\"1220631499,100004933985926,1041266626,1347427052\";\n\t\t //$friend_tagged_ids='';\n\t\t $user_id='100001187318347';\n\t\t $facebook=$this->facebook;\n\t\t $app_namespace=APP_NAMESPACE;\n\t\t $object_name=OPEN_GRAPH_ACTION_NAME;\n\t\t $obj_url=SITE_URL.'view/og_page.php#app_data=nitin';\n\t \t $place_tags='233749393378348';\n\t\t $ref_data='app data test';\n \t $result=$this->Fb_common_func->wall_post_tagging($message,$picture,$friend_tagged_ids,$user_id,$facebook,$app_namespace,$object_name,$obj_url,$place_tags,$ref_data);\n\n\t print_r($result);\n\n\t}", "public function posts(){\n // initializing haturi for preventing Injections\n $haturi = new Tools();\n //checking Injections\n if (!$haturi->test_input($this->class_id)) {\n $this->conn = null;\n $this->error_message = \"HTML Injection Detected\"; // Injection Detected ... Character: 23\n }else{\n // SQL\n $sql = 'SELECT ps.post_id, ps.created_by as creator_id, p.name as creator_name,ps.created_time, ps.post_text, ps.material as post_material FROM ' .$this->post_table. ' as ps, '.$this->person_table.' as p WHERE ps.created_by=p.person_id and ps.class_id= :class_id and ps.priority=' .$this->post_priority.' ORDER BY ps.created_time DESC';\n\n // Prepare Statement\n if($stmt = $this->conn->prepare($sql)){\n if($stmt->execute(array(':class_id' => $this->class_id)))\n {\n $this->message = true;\n return $stmt;\n }else{\n $this->conn = null;\n $this->error_message = \"Problem on Executing Query\";\n $this->message = false;\n }\n\n }else{\n $this->conn = null;\n $this->error_message = \"Problem on Preparing Query\";\n $this->message = false;\n }\n }\n }", "function index_post(){\n\t\t$data = array(\n\t\t\t'pid' => $this->post('pid'),\n\t\t\t'name' => $this->post('name'),\n\t\t\t'email' => $this->post('email'),\n\t\t\t'description' => $this->post('description'));\n\t\t$insert = $this->db->insert('pendaftaran', $data);\n\n\t\t$this->response(array('result' =>$data, 200));\n\n\t}", "public function add_postAction() {\n\t\t$info = $this->getPost(array('sort','ishot', 'title', 'img', 'price', 'hk_price', 'start_time', 'end_time', \n\t\t\t\t'stock_num', 'limit_num', 'sale_num', 'comment_num', 'status','descrip'));\n\t\t$info = $this->_cookData($info);\n\t\t$result = Fj_Service_Goods::addGoods($info);\n\t\tif (!$result) $this->output(-1, '操作失败');\n\t\t$this->output(0, '操作成功');\n\t}", "public function modifyStory()\n\t\t{\n\n\t\t\tforeach($_POST as $key => $value) {\n\t\t\t\tif($value != \"\") {\n\t\t\t\t\t$sql = \"INSERT INTO `BreakingNews`(`News`) VALUES (\\\"$value\\\")\";\n\t\t\t\t\t$result = $this->connection->query($sql);\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t}", "function press_post() \n\t{\n\t\t\n\t\t// validation rules for create\n\t\t\n\t\t$rules = array(\n\t\t\tarray(\n\t \t'field' => 'product_id',\n\t \t'rules' => 'required|callback_id_check[Product]'\n\t ),\n\t array(\n\t \t'field' => 'user_id',\n\t \t'rules' => 'required|callback_id_check[User]'\n\t )\n );\n\n\t\t// validation\n if ( !$this->is_valid( $rules )) exit;\n\n\t\t$product_id = $this->post('product_id');\n\t\t$user_id = $this->post('user_id');\n\t\t$shop_id = $this->post('shop_id');\n\n\t\t$users = global_user_check($user_id);\n\t\t\n\t\t// prep data\n $data = array( 'product_id' => $product_id, 'user_id' => $user_id, 'shop_id' => $shop_id );\n\n \t\n\t\tif ( $this->Like->exists( $data )) {\n\t\t\t\n\t\t\tif ( !$this->Like->delete_by( $data )) {\n\t\t\t\t$this->error_response( get_msg( 'err_model' ));\n\t\t\t} \n\n\t\t} else {\n\n\t\t\tif ( !$this->Like->save( $data )) {\n\t\t\t\t$this->error_response( get_msg( 'err_model' ));\n\t\t\t} \n\n\t\t}\n\n\t\t$obj = new stdClass;\n\t\t$obj->id = $product_id;\n\t\t$product = $this->Product->get_one( $obj->id );\n\t\t\n\t\t$product->login_user_id_post = $user_id;\n\t\t$this->ps_adapter->convert_product( $product );\n\t\t$this->custom_response( $product );\n\t\t\n\n\t}", "public function thankyou_page() {\r\n if ( $this->instructions )\r\n echo wpautop( wptexturize( $this->instructions ) );\r\n }", "public function addTagToPostInTheMiddle() {}", "function wisdom() {\n $this->data['pagebody'] = 'justone';\n $source = $this->quotes->get(6);\n \n $this->data['who'] = $source['who'];\n $this->data['mug'] = $source['mug'];\n $this->data['what'] = $source['what'];\n\n $this->render();\n }", "public function index_post(){\n }", "public function thankyou_page() {\n if ( $this->instructions )\n echo wpautop( wptexturize( $this->instructions ) );\n }", "public function thankyou_page() {\n if ( $this->instructions ) {\n echo wpautop( wptexturize( $this->instructions ) );\n }\n }", "public function upload_postAction() {\r\n\t\t$ret = Common::upload('img', 'ad');\r\n\t\t$imgId = $this->getPost('imgId');\r\n\t\t$this->assign('code' , $ret['data']);\r\n\t\t$this->assign('msg' , $ret['msg']);\r\n\t\t$this->assign('data', $ret['data']);\r\n\t\t$this->assign('imgId', $imgId);\r\n\t\t//create webp image\r\n\t\tif ($ret['code'] == 0) {\r\n\t\t\t$attachPath = Common::getConfig('siteConfig', 'attachPath');\r\n\t\t\t$file = realpath($attachPath.$ret['data']);\r\n\t\t\timage2webp($file, $file.'.webp');\r\n\t\t}\r\n\t\t$this->getView()->display('common/upload.phtml');\r\n\t\texit;\r\n }", "public function submit()\n {\n dd(['subject' => 'Twitch', 'content' => post()]);\n }", "public function postAction() {\n\t\t$this->sendMessage();\n\t}", "function get_post_zhout($_id_zhout)\n\t{\n\t\t$_data_zhout = $this->CI->model_zhout->get_zhout_by_id_zhout($_id_zhout);\n\t\t//image must set with directory helper;\n\t\t$_image_profile = directory_map(getcwd().'/assets/zhopie/userfiles/'.$_data_zhout['id_member'].'/profile_picture');\n\t\t\n\t\t$_image_url['profil_picture_url'] = checkPicture($_out =((count($_image_profile)== 1)? base_url().'/assets/zhopie/userfiles/'.$_data_zhout['id_member'].'/profile_picture/'.$_image_profile[0] : 'NULL'));\n\t\t$_data_inserted = array_merge($_data_zhout,$_image_url);\n\t\t//set appropriate attribute\n\t\t$_data_inserted['_comment_button'] = call_user_func(array($this,'get_attribute_by_type'),'comment_status',$_data_zhout['id_member'],FALSE,$_data_zhout['id_zhout'],array(),NULL);\n\t\treturn $this->CI->load->view('zhout/zhout_post_single',$_data_inserted,TRUE);\n\t}", "function index_post() {\n $data = array(\n // 'id_waktu' => $this->post('id_waktu'),\n 'nama_waktu' => $this->post('nama_waktu'),\n 'mulai' => $this->post('mulai'),\n 'selesai' => $this->post('selesai'));\n $insert = $this->db->insert('waktu', $data);\n if ($insert) {\n $this->response($data, 200);\n } else {\n $this->response(array('status' => 'fail', 502));\n }\n }", "public function postavi_pitanje() {\n echo view(\"postavi_pitanje\");\n }", "function postAdd($str=''){\n\n\n\n\n\t#Get referring page to send users back to\n\t$previous = $_SERVER['HTTP_REFERER'];\n\n\t#make associative array of char ids and codenames\n\t$arr_cIdcName = mk_cIDcName($_SESSION['UserID']);\n\n\t#uID - cat - tID - ttl - typ - rtg - phs - wet - time - loc - whn\n\t$uID=$catID=$tID=$tTitle=$pType=$pOrder=$pRating=$phase=$dWeather=$pTime=$pLoc=$when = '';\n#\t$tID = $title = $type = $pRating = $phaseOfDay = $timeOfDay = $location = $when = '';\n\n\n\t#\tif(isset($type)){ $location = str_replace('_', ' ', $_GET['typ']); }else{ $type = ''; }\n\n\t#set UserID if exists\n\t$uID = \t(isset($_GET['uID'])) \t? $_GET['uID'] : '';\n\t#set category if exists\n\t$catID = (isset($_GET['cat'])) \t? $_GET['cat'] : '';\n\t#set threadID if exists\n\t(int)$tID = (isset($_GET['tID'])) ? $_GET['tID'] : '';\n\t#set title if exists - make url friendly\n\t$tTitle = (isset($_GET['ttl'])) \t? str_replace('_', ' ', $_GET['ttl']) : '';\n\t#set rating if exists\n\t$pType = (isset($_GET['typ'])) ? $_GET['typ'] : '';\n\t#set post type if exists - make url friendly\n\t$pRating = (isset($_GET['rtg'])) ? str_replace('_', ' ', $_GET['rtg']) : '';\n\n\t#set post type if exists - make url friendly\n\t#$pOrder = '';\n\n\t#set location if exists - make url friendly\n\t$pLoc = (isset($_GET['loc'])) \t? str_replace('_', ' ', $_GET['loc']) : '';\n\t#set phase of day if exists - make url friendly\n\t$dPhase = \t(isset($_GET['phs'])) \t? str_replace('_', ' ', $_GET['phs']) : '';\n\t#set phase of day if exists - make url friendly\n\t$pTime = \t(isset($_GET['tme'])) \t? str_replace('_', ' ', $_GET['tme']) : '';\n\t#set weather if exists - make url friendly\n\t$dWeather = (isset($_GET['wet'])) ? str_replace('_', ' ', $_GET['wet']) : '';\n\t#set when if exists - make url friendly\n\t$pWhen = \t(isset($_GET['whn'])) ? str_replace('_', ' ', $_GET['whn']) : ''; #addd min 67 seconds to it...\n\n\t#$cName \t\t\t= $row['Codename'];\n\t#$cNameEncode = str_replace(' ', '_', $cName); \t#URL safe\n\t#$twEncoded = str_replace(' ', '_', $twID); \t\t#URL safe\n\t#$titleEncoded = str_replace(' ', '_', $title);\t#URL safe\n\n\t#$pID = (int)$row['PostID'];\n\t#temp arrays\n\t#$arrPostType = ['Post Type', 'IC', 'OOC', 'Guidance', 'Journal', 'Timeline'];\n\t#$arrMyChars = ['a', 'b', 'c'];\n\t#$arrCemoji = [1,2,3,4,5];\n\n\n\t# sends to postInsert\n\n\t$str .= '<!-- start general content -->\n\t\t<script type=\"text/javascript\" src=\"' . VIRTUAL_PATH . 'include/util.js\"></script>\n\n\t\t<script type=\"text/javascript\">\n\t\t\tfunction checkForm(thisForm)\n\t\t\t{//check form data for valid info\n\t\t\t\tif(empty(thisForm.PostType,\"Please Select Character\")){return false;}\n\t\t\t\tif(empty(thisForm.PostMessage,\"Please Enter Message to Post\")){return false;}\n\t\t\t\tif(empty(thisForm.PostSummary,\"Please Enter Post Summary\")){return false;}\n\n\n\t\t\t\tif(!isEmail(thisForm.Email,\"Please Enter a Valid Email\")){return false;}\n\n\t\t\t\treturn true;//if all is passed, submit!\n\t\t\t}\n\t\t</script>\n\n\n\t\t<div class=\"row\" style=\"\"><!-- begin content -->\n\t\t\t<form action=\"' . THIS_PAGE . '\" method=\"post\" onsubmit=\"return checkForm(this);\" >';\n\n\n\t\t\t#needed hidden values = Catagory, Thread, user id\n\t\t\t$str .= '\n\t\t\t\t<input type=\"hidden\" name=\"CatID\" \t\t\t value=\"' . $catID . '\" />\n\t\t\t\t<input type=\"hidden\" name=\"ThreadID\" \t\t\t value=\"' . $tID . '\" />\n\t\t\t\t<input type=\"hidden\" name=\"UserID\" \t\t\t value=\"' . $uID . '\" />\n\t\t\t\t<input type=\"hidden\" name=\"PostFeaturing\" value=\"' . $uID . '\" />\n\n\t\t\t\t<!-- inner container -->\n\t\t\t\t<div class=\"class=\"col-sm-9 pull-right\" style=\"\">\n\n\t\t\t\t\t<!-- left container -->\n\t\t\t\t\t<div class=\"col-sm-6 pull-left\" style=\"\">\n\t\t\t\t\t\t<h4 class=\"text-center\">Add Post to <b>' . $tTitle . '</b></h4>\n\n\t\t\t\t\t\t<div class=\"row\">\n\t\t\t\t\t\t\t<textarea name=\"PostContent\" id=\"text\" class=\"autoExpand col-sm-12\" rows=\"3\" data-min-rows=\"3\" placeholder=\"Your Reply...\"></textarea>\n\t\t\t\t\t\t\t\t<div id=\"result\">\n\t\t\t\t\t\t\t\t\tWords: <span id=\"wordCount\">0</span><br/>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div><!-- END Container -->\n\n\t\t\t\t\t\t\t<div class=\"row\">\n\t\t\t\t\t\t\t\t<textarea name=\"PostSummary\" id=\"text\" class=\"autoExpand col-sm-12\" rows=\"3\" data-min-rows=\"3\" placeholder=\"Please Summarize your Post here in 140 characters or less...\" ></textarea>\n\t\t\t\t\t\t\t\t\t<div id=\"result\">\n\t\t\t\t\t\t\t\t\t\tTotal Characters(including trails): <span id=\"totalChars\">0</span><br/>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div><!-- END Container -->\n\t\t\t\t\t\t</div>\n<!-- LEFT CONTAINER end -->';\n\n$str .= '<!-- RIGHT CONTAINER start -->\n\t\t\t\t\t\t<div class=\"col-sm-2 pull-right\" style=\"\">\n\t\t\t\t\t\t\t<h4 class=\"text-center\">Post Details</h4>';\n\n\t#POST TYPE begin\n\t\t\t#returns an array -- $db, $table, $column\n\t\t\t#We use constant DB_NAME here because db name is not the same locally as it is globally/live on web. \t#Local it's maTest - live it's dbchampions.\n\t\t\t$enum = get_enum(DB_NAME, 'ma_Posts', 'PostType');\n\n\t\t\t#name dropdown\n\t\t\t$arrPostType[] = 'Post Type';\n\n\t\t\t#clean up array/shorten descriptions if needed -- $enum returns $arrPostType[]\n\t\t\tforeach($enum as $item){\n\t\t\t\t#remove data after a certain character\n\t\t\t\t#$cut_position = strpos($item, ' '); // remove the +1 if you don't want the ' ' included\n\t\t\t\t#$item = substr($item, 0, $cut_position);\n\n\t\t\t\t// Assign each value to the array as you cycle through\n\t\t\t\t$arrPostType[] = $item;\n\t\t\t}\n\t\t\t#make dropdown\n\t\t\t$str .= mk_pDD('PostType', $arrPostType, 'PostType', 'required', $pType) . '<br /><br />';\n\n\n\t#POST ORDER begin\n\t\t\t$str .= '<div class=\"row\"><input class=\"\" type=\"text\" name=\"PostOrder\" value=\"\" placeholder=\"Post Order...\"></div>';\n\n\t#POST RATING begin\n\t\t\t$enum = get_enum(DB_NAME, 'ma_Posts', 'PostRating');\n\t\t\t#name dropdown\n\t\t\t$arrPostRating[] = 'Post Rating';\n\t\t\t#clean up array/shorten descriptions if needed -- $enum returns $arrPostType[]\n\t\t\tforeach($enum as $item){\n\t\t\t\t#remove data after a certain character\n\t\t\t\t$cut_position = strpos($item, ' '); // remove the +1 if you don't want the ' ' included\n\t\t\t\t$item = substr($item, 0, $cut_position);\n\t\t\t\t// Assign each value to the array as you cycle through\n\t\t\t\t$arrPostRating[] = $item;\n\t\t\t}\n\t\t\t#make dropdown\n\t\t\t$str .= mk_pDD('PostRating', $arrPostRating, 'PostRating', 'required', $pRating) . '<br /><br />';\n\n\t#POST AS begin\n\t\t\t$cSelections=$x=0;\n\n\t\t\t$str .= '<select class=\"selectpicker\" name=\"CharID\">';\n\n\t\t\t$key ='';\n\t\t\tforeach($arr_cIdcName as $key => $item) {\n\t\t\t\t#$key = key($arr_cIdcName);\n\t\t\t\t$cSelections .= '<option value=\"' . $key . '\">' . $item['cName'] . '</option>';\n\t\t\t\t$x++;\n\t\t\t}\n\n\t\t\t#if only one character set to default - no reasont to select as only one char.\n\t\t\tif($x > 1){$str .= '<option selected=\"selected\" value=\"\">Post As...</option>';}\n\t\t\t#add in selections\n\t\t\t$str .= $cSelections;\n\t\t\t#close up select...\n\t\t\t$str .= '</select><br /><br />';\n\n\t#POST PROXY begin\n\n\t\t\tif(($_SESSION['Privilege']) >= 4){\n\n\t\t\t\t$cProxy='';\n\n\t\t\t\t$str .= '<div class=\"row\">\n\t\t\t\t<input\n\t\t\t\t\tclass=\"\"\n\t\t\t\t\ttype=\"text\"\n\n\t\t\t\t\tname=\"Proxy\"\n\t\t\t\t\tvalue=\"' . $cProxy . '\"\n\t\t\t\t\tplaceholder=\"Proxy as...\"/>\n\t\t\t\t</div>';\n\n\t\t\t}\n\n\n\n\t#PHASE-OF-DAY begin\n\t\t\t$enum = get_enum(DB_NAME, 'ma_Posts', 'PostPhaseOfDay');\n\t\t\t#name dropdown\n\t\t\t$arrDayPhase[] = 'Phase of Day';\n\t\t\t#clean up array/shorten descriptions if needed -- $enum returns $arrPostType[]\n\t\t\tforeach($enum as $item){\n\t\t\t\t// Assign each value to the array as you cycle through\n\t\t\t\t$arrDayPhase[] = $item;\n\t\t\t}\n\t\t\t#make dropdown\n\t\t\t$str .= mk_pDD('PostPhaseOfDay', $arrDayPhase, 'PostPhaseOfDay', 'required', $dPhase) . '<br /><br />';\n\n\n#cEMOJI begin\n\t#$str .= mk_pDD('cEmoji', $arrCemoji, 'cID');\n#cEMOJI end\n\n\n/*\n#CURRENT TIME end\n\t\t\t\t$str .= '<input\n\t\t\t\t\tclass=\"\"\n\t\t\t\t\ttype=\"text\"\n\n\t\t\t\t\tname=\"PostTimeOfDay\"\n\t\t\t\t\tvalue=\"' . $pTimeOfDay . '\"\n\t\t\t\t\tplaceholder=\"0000-00-00 00:00:00\"/>\n\t\t\t\t</div><!-- end container-->';\n#CURRENT TIME begin\n*/\n\n\n#CURRENT WEATHER begin\n\t\t\t$enum = get_enum(DB_NAME, 'ma_Posts', 'PostWeather');\n\t\t\t#name dropdown\n\t\t\t$arrPostWeather[] = 'Current Weather';\n\t\t\tforeach($enum as $item){\n\t\t\t\t// Assign each value to the array as you cycle through\n\t\t\t\t$arrPostWeather[] = $item;\n\t\t\t}\n\t\t\t#make dropdown\n\t\t\t$str .= mk_pDD('PostWeather', $arrPostWeather, 'PostWeather', 'required', $dWeather) . '<br /><br />';\n\n\n#LOCATION\n\t\t\t\t\t\t$str .= '<div class=\"row\">\n\t\t\t\t\t\t\t<input\n\t\t\t\t\t\t\t\tclass=\"\"\n\t\t\t\t\t\t\t\ttype=\"text\"\n\n\t\t\t\t\t\t\t\tname=\"PostLocation\"\n\t\t\t\t\t\t\t\tvalue=\"' . $pLoc . '\"\n\t\t\t\t\t\t\t\tplaceholder=\"Where?\"/>\n\t\t\t\t\t\t</div><!-- end container-->\n\n\n\t\t\t\t\t\t<div class=\"row\">\n\t\t\t\t\t\t\t<input\n\t\t\t\t\t\t\t\tclass=\"\"\n\t\t\t\t\t\t\t\ttype=\"text\"\n\n\t\t\t\t\t\t\t\tname=\"PostTimeOfDay\"\n\t\t\t\t\t\t\t\tvalue=\"' . $pWhen . '\"\n\t\t\t\t\t\t\t\tplaceholder=\"When?\"/>\n\t\t\t\t\t\t</div>\n\n\n\n\t\t\t\t\t\t<div class=\"row\">\n\t\t\t\t\t\t\t<textarea\n\t\t\t\t\t\t\t\tname=\"PostNotes\"\n\n\t\t\t\t\t\t\t\tclass=\"autoExpand col-sm-12\"\n\t\t\t\t\t\t\t\trows=\"3\"\n\t\t\t\t\t\t\t\tdata-min-rows=\"3\"\n\n\t\t\t\t\t\t\t\tplaceholder=\"OOC Notes? \"\n\t\t\t\t\t\t\t\t></textarea>\n\t\t\t\t\t\t</div><!-- end container-->\n\n\n\t\t\t\t\t\t\t<!-- auto fill needed -->\n\t\t\t\t\t\t<div class=\"row\">\n\t\t\t\t\t\t\t<input\n\t\t\t\t\t\t\t\tclass=\"\"\n\t\t\t\t\t\t\t\ttype=\"text\"\n\n\t\t\t\t\t\t\t\tname=\"PostTags\"\n\t\t\t\t\t\t\t\tplaceholder=\"Add any tags?\"/>\n\t\t\t\t\t\t</div><!-- end container-->\n\n\n\t\t\t\t\t</div><!-- end right container -->\n\t\t\t\t</div><!-- end inner container -->\n\n\t\t\t\t<div class=\"clearfix\">\n\t\t\t\t\t<br /><br />\n\t\t\t\t</div>\n\n\t\t\t\t<div align=\"center\" style=\"\">';\n\n\t\t\t\t#read post add names of characters features here PostFeaturing\n\n\t\t\t\t/*\n\t\t\t\t\twill need to do a scan on submit, fill, allow to go to post i think?\n\t\t\t\t\tWill need a full array of user char names, and want to make that linked in post notices too i think.\n\t\t\t\t*/\n\n\n\t\t\t\t$str .= '<input type=\"hidden\" name=\"PostFeaturing\" value=\"\" />\n\t\t\t\t\t<input type=\"hidden\" name=\"act\" value=\"postInsert\" />\n\n\t\t\t\t\t<input class=\"btn btn-primary btn-xs outline\" type=\"submit\" value=\"Add Post\">\n\n\t\t\t\t\t&nbsp; &nbsp;\n\n\t\t\t\t\t<a class=\"btn btn-primary btn-xs outline\" href=\"' . $previous . '\">Exit Post</a>\n\t\t\t\t</div>\n\n\t\t\t</form>\n\t\t</div>\n\n\t<!-- END content -->';\n\t# sends to postInsert\n\n\t#background-color: #a0a;\n\treturn $str;\n}", "function run()\n\t{\n\t\t// Find review, if there is one\n\t\t$individual_review_ratings=array();\n\t\t$review_rating=post_param('review_rating','');\n\t\tif ($review_rating!='')\n\t\t{\n\t\t\t$individual_review_ratings['']=array(\n\t\t\t\t'REVIEW_TITLE'=>'',\n\t\t\t\t'REVIEW_RATING'=>$review_rating,\n\t\t\t);\n\t\t}\n\n\t\t$poster_name=$GLOBALS['FORUM_DRIVER']->get_username(get_member());\n\t\t$post=comcode_to_tempcode(post_param('post'));\n\n\t\t// OCF renderings of poster\n\t\tstatic $hooks=NULL;\n\t\tif (is_null($hooks)) $hooks=find_all_hooks('modules','topicview');\n\t\tstatic $hook_objects=NULL;\n\t\tif (is_null($hook_objects))\n\t\t{\n\t\t\t$hook_objects=array();\n\t\t\tforeach (array_keys($hooks) as $hook)\n\t\t\t{\n\t\t\t\trequire_code('hooks/modules/topicview/'.filter_naughty_harsh($hook));\n\t\t\t\t$object=object_factory('Hook_'.filter_naughty_harsh($hook),true);\n\t\t\t\tif (is_null($object)) continue;\n\t\t\t\t$hook_objects[$hook]=$object;\n\t\t\t}\n\t\t}\n\t\tif (!is_guest())\n\t\t{\n\t\t\trequire_code('ocf_members2');\n\t\t\t$poster_details=ocf_show_member_box(get_member(),false,$hooks,$hook_objects,false);\n\t\t} else\n\t\t{\n\t\t\t$custom_fields=new ocp_tempcode();\n\t\t\t$poster_details=new ocp_tempcode();\n\t\t}\n\t\tif (addon_installed('ocf_forum'))\n\t\t{\n\t\t\tif (!is_guest())\n\t\t\t{\n\t\t\t\t$poster=do_template('OCF_POSTER_MEMBER',array('ONLINE'=>true,'ID'=>strval(get_member()),'POSTER_DETAILS'=>$poster_details,'PROFILE_URL'=>$GLOBALS['FORUM_DRIVER']->member_profile_url(get_member(),false,true),'POSTER_USERNAME'=>$poster_name));\n\t\t\t} else\n\t\t\t{\n\t\t\t\t$poster=do_template('OCF_POSTER_GUEST',array('IP_LINK'=>'','POSTER_DETAILS'=>$poster_details,'POSTER_USERNAME'=>$poster_name));\n\t\t\t}\n\t\t} else\n\t\t{\n\t\t\t$poster=make_string_tempcode(escape_html($poster_name)); // Should never happen actually, as applies discounts hook from even running\n\t\t}\n\n\t\t$highlight=false;\n\t\t$datetime_raw=time();\n\t\t$datetime=get_timezoned_date(time());\n\t\t$poster_url=$GLOBALS['FORUM_DRIVER']->member_profile_url(get_member());\n\t\t$title=post_param('title','');\n\t\t$tpl=do_template('POST',array(\n\t\t\t'INDIVIDUAL_REVIEW_RATINGS'=>$individual_review_ratings,\n\t\t\t'HIGHLIGHT'=>$highlight,\n\t\t\t'TITLE'=>$title,\n\t\t\t'TIME_RAW'=>strval($datetime_raw),\n\t\t\t'TIME'=>$datetime,\n\t\t\t'POSTER_URL'=>$poster_url,\n\t\t\t'POSTER_NAME'=>$poster_name,\n\t\t\t'POST'=>$post,\n\t\t\t'POSTER_ID'=>strval(get_member()),\n\t\t\t'POSTER'=>$poster,\n\t\t\t'POSTER_DETAILS'=>$poster_details,\n\t\t\t'ID'=>'',\n\t\t\t'CHILDREN'=>'',\n\t\t\t'RATING'=>'',\n\t\t\t'EMPHASIS'=>'',\n\t\t\t'BUTTONS'=>'',\n\t\t\t'TOPIC_ID'=>'',\n\t\t\t'UNVALIDATED'=>'',\n\t\t\t'IS_SPACER_POST'=>false,\n\t\t\t'NUM_TO_SHOW_LIMIT'=>'0',\n\t\t));\n\t\treturn array($tpl,NULL);\n\t}", "function index_post() {\n\t\t\n\n\t\t$data = array(\n\t\t\t\t\t'username' \t\t=> $this->post('username'),\n\t\t\t\t\t'password' \t\t=> $this->post('password'),\n\t\t\t\t\t'kota'\t\t\t=> $this->post('kota'),\n\t\t\t\t\t'telepon' => $this->post('telepon'));\n\t\t\t\n\t\t$insert = $this->db->insert('cabang', $data2);\n\n\t\tif ($insert) {\n\t\t\t$this->response($data, 200);\n\t\t} else {\n\t\t\t$this->response(array('status' => 'fail', 502));\n\t\t}\n\t}", "public function thankyou_page() {\n\t\t\tif ( $this->instructions ) {\n\t\t\t\techo wpautop( wptexturize( $this->instructions ) );\n\t\t\t}\n\t\t}", "public function prosesedit_mata_kuliah()\n\t{\n\n\t\t$this->m_aka->prosesedit_mata_kuliah();\n\t\tredirect('c_index_aka/data_mata_kuliah');\n\t}", "public function OnPost($post) {\n\n }", "function post () {\n //OU SALVA NO\n header(\"location: /\");\n }", "public function thankyou_page() {\n\t\t\t\tif ( $this->instructions ) {\n\t\t\t\t\techo wpautop( wptexturize( $this->instructions ) );\n\t\t\t\t}\n\t\t\t}", "public function tes()\n\t{\n\t\t$tes = \"^ & %aku% ak4 $ 12 Trilyun2 Enak2 banget2 ya Tragedi ular kembali memakan korban. Kali ini seorang bocah laki2 di Bandung tewas setelah dipatuk ular weling.--Insiden itu menimpa Andi Ramdani (11), bocah asal Jalan Nagrog, Gang Keramat RT 04/09, Kelurahan Pasirjati, Kecamatan Ujungberung, Kota Bandung. Andi tewas saat dilarikan ke rumah sakit umum daerah (RSUD) Bandung pada Rabu (23/1) siang.--Bagaimana awal mula kejadiannya? Simak selengkapnya di link yang ada di stories!--Sumber: detiknews--#detikcom #ularweling #dipatukular\";\n\t\t$tes1 = \"'DANAR' Dono y nyiyir gak ga adalah..,./ seorang...!! @mahasiswa2%&& :D z!! @mas danar_dono\";\n\t\t$cek = $this->case_folding($tes);\n\t\t$cek = $this->cleansing($cek);\n\t\t$cek = $this->stemmer($cek);\n\t\t$cek = $this->stopword($cek);\n\t\t$cek = preg_split('/ /',$cek);\n\t\t$count = count($cek);\n\t\tfor($i=0;$i<$count;$i++){\n\t\t\t$cek[$i] = $this->hilangkan_kataberulang($cek[$i]);\n\t\t}\n\t}", "function process_post()\n \t{\n \t\treturn $this->class_post->process_post();\n \t}", "function aff_stat_post($id_post, $action){\n\t\t\n\t\tif(!empty($action)) {\n\t\t}\n\t\telse {\n echo '<div class=\"stats_posts_'.$id_post.'\">';\n\t\t}\n\n\t\t$reqstats = $GLOBALS['bdd']->prepare('SELECT * FROM badin WHERE balsamine = :id');\n\t\t$reqstats->execute(array('id' => $id_post));\n\t\t$nbre1 = 0;\n\t\t$nbre2 = 0;\n\t\t$nbre3 = 0;\n\t\t$nbre4 = 0;\n\t\t$nbre5 = 0;\n\t\t$nbre_vote = 0;\n\t\t$etat_vote = 0;\n\t\t$nbre_comment = 0;\n\t\t$nbre_relai = 0;\n\t\t\t\t\t\t\t\t\t\t\n\t\twhile ($datastats = $reqstats->fetch()) {\n if($datastats['bouquetin'] == 2) {\n\t\t\t\t$nbre_comment = $nbre_comment +1;\n\t\t\t}\n\t\t\telseif($datastats['bouquetin'] == 3) {\n\t\t\t\t$nbre_relai = $nbre_relai +1;\n\t\t\t}\n\t\t\telseif($datastats['bouquetin'] == 5) {\n\t\t\t\tif($datastats['bigarade'] == $_SESSION['id']) {\n\t\t\t\t\t$etat_vote = 1;\n\t\t\t\t\t$nbre1 = $nbre1 +1;\n\t\t\t\t\t$nbre_vote = $nbre_vote +1;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\t$nbre1 = $nbre1 +1;\n\t\t\t\t\t$nbre_vote = $nbre_vote +1;\n\t\t\t\t}\n\t\t\t}\n\t\t\telseif($datastats['bouquetin'] == 6) {\n\t\t\t\tif($datastats['bigarade'] == $_SESSION['id']) {\n\t\t\t\t\t$etat_vote = 2;\n\t\t\t\t\t$nbre2 = $nbre2 +1;\n\t\t\t\t\t$nbre_vote = $nbre_vote +1;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\t$nbre2 = $nbre2 +1;\n\t\t\t\t\t$nbre_vote = $nbre_vote +1;\n\t\t\t\t}\n\t\t\t}\n\t\t\telseif($datastats['bouquetin'] == 7) {\n\t\t\t\tif($datastats['bigarade'] == $_SESSION['id']) {\n\t\t\t\t\t$etat_vote = 3;\n\t\t\t\t\t$nbre3 = $nbre3 +1;\n\t\t\t\t\t$nbre_vote = $nbre_vote +1;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\t$nbre3 = $nbre3 +1;\n\t\t\t\t\t$nbre_vote = $nbre_vote +1;\n\t\t\t\t}\n\t\t\t}\n\t\t\telseif($datastats['bouquetin'] == 8) {\n\t\t\t\tif($datastats['bigarade'] == $_SESSION['id']) {\n\t\t\t\t\t$etat_vote = 4;\n\t\t\t\t\t$nbre4 = $nbre4 +1;\n\t\t\t\t\t$nbre_vote = $nbre_vote +1;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\t$nbre4 = $nbre4 +1;\n\t\t\t\t\t$nbre_vote = $nbre_vote +1;\n\t\t\t\t}\n\t\t\t}\n\t\t\telseif($datastats['bouquetin'] == 9) {\n\t\t\t\tif($datastats['bigarade'] == $_SESSION['id']) {\n\t\t\t\t\t$etat_vote = 5;\n\t\t\t\t\t$nbre5 = $nbre5 +1;\n\t\t\t\t\t$nbre_vote = $nbre_vote +1;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\t$nbre5 = $nbre5 +1;\n\t\t\t\t\t$nbre_vote = $nbre_vote +1;\n\t\t\t\t}\n\t\t\t}\n else {\n\n }\n }\n\n\t\t$reqstats->closeCursor();\n\t\t?>\n\t\t<p class=\"compteur_stat\">\n <?php \n\t\tif($nbre_vote === 0) {\n\t\t\techo'Aucun vote, ';\n\t\t}\n\t\telse {\n $moyenne = ((1*$nbre1)+(2*$nbre2)+(3*$nbre3)+(4*$nbre4)+(5*$nbre5))/$nbre_vote;\n\t\t\techo round($moyenne, 2, PHP_ROUND_HALF_UP).\" pour \".$nbre_vote.\" votes, \";\n\t\t}\n\t\techo $nbre_comment.\" commentaires, \".$nbre_relai.\" relais\";\n\t\t?>\n </p>\n\t\t<hr />\n\n <div class=\"bouton_stats_<?php echo ''.$etat_vote.'_'.$id_post; ?>\">\n\t\t\t<div class=\"action_stats\" id=\"action_stats_<?php echo $id_post; ?>\">\n <div class=\"bouton_stats\" >\n\t\t\t\t\t<div class=\"bouton_stats_vote_<?php echo $id_post;?>\">\n\t\t\t\t\t\t<?php\n\t\t\t\t\t\tif ($etat_vote >= 1) {\n\t\t\t\t\t\t\techo'<div class=\"star star_one star_light\">';\n\t\t\t\t\t\t\tif ($etat_vote >= 2) {\n\t\t\t\t\t\t\t\techo'<div class=\"star star_two star_light\">';\n\t\t\t\t\t\t\t\tif ($etat_vote >= 3) {\n\t\t\t\t\t\t\t\t\techo'<div class=\"star star_three star_light\">';\n\t\t\t\t\t\t\t\t\tif ($etat_vote >= 4) {\n\t\t\t\t\t\t\t\t\t\techo'<div class=\"star star_four star_light\">';\n\t\t\t\t\t\t\t\t\t\tif ($etat_vote >= 5) {\n\t\t\t\t\t\t\t\t\t\t\techo'<div class=\"star star_five star_light\">';\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\t\t\t\techo'<div class=\"star star_five\">';\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\t\t\techo'<div class=\"star star_four\">';\n\t\t\t\t\t\t\t\t\t\techo'<div class=\"star star_five\">';\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\telse {\n\t\t\t\t\t\t\t\t\techo'<div class=\"star star_three\">';\n\t\t\t\t\t\t\t\t\techo'<div class=\"star star_four\">';\n\t\t\t\t\t\t\t\t\techo'<div class=\"star star_five\">';\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\techo'<div class=\"star star_two\">';\n\t\t\t\t\t\t\t\techo'<div class=\"star star_three\">';\n\t\t\t\t\t\t\t\techo'<div class=\"star star_four\">';\n\t\t\t\t\t\t\t\techo'<div class=\"star star_five\">';\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\techo'<div class=\"star star_one\">';\n\t\t\t\t\t\t\techo'<div class=\"star star_two\">';\n\t\t\t\t\t\t\techo'<div class=\"star star_three\">';\n\t\t\t\t\t\t\techo'<div class=\"star star_four\">';\n\t\t\t\t\t\t\techo'<div class=\"star star_five\">';\n\t\t\t\t\t\t}\n\t\t\t\t\t\t?>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n <div class=\"bouton_stats\" >\n\t\t\t\t\t<div class=\"bouton_stats_comment_<?php echo $id_post;?>\">\n\t\t\t\t\t\t<div class=\"bouton_stats_comment\"></div>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t<div class=\"bouton_stats\" >\n\t\t\t\t\t<div class=\"bouton_stats_relai_<?php echo $id_post;?>\">\n\t\t\t\t\t\t<div class=\"bouton_stats_relai\"></div>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class=\"cadre_comment_<?php echo $id_post;?>\">\n\t\t\t\t<div class=\"mini_profil_comment\">\n\t\t\t\t\t<img class=\"mini_profil_img\" src=\"/ressources/images/profil/<?php echo $_SESSION['id'].'/profil_'.$_SESSION['profil'];?>\" />\n\t\t\t\t</div>\n\t\t\t\t<form class=\"post_comment_cadre\" method=\"post\" action=\"trait_comment_post.php\">\n\t\t\t\t\t<textarea name=\"commentarea\" id=\"commentarea\" spellcheck class=\"commentarea_<?php echo $id_post;?>\"></textarea>\n\t\t\t\t\t<div class=\"bouton_comment\" id=\"bouton_comment_<?php echo $id_post;?>\">Commenter</div>\n\t\t\t\t</form>\n <!--<div class=\"cadre_lien_view_comment_<?php echo $id_post;?>\" >\n <h3 class=\"lien_view_comment\">Voir tous les commentaires</h3>\n </div>-->\n </div>\n </div>\n\n <?php\n\t$GLOBALS['etat_vote'] = $etat_vote;\n }", "function tp_comm_send_place() {\r\n?><p id=\"tp_comm_send\"></p><?php\r\n}", "function PostActions()\n {\n }", "function titleKeyWords()\n\t{\n\t\tif(isset($_REQUEST['questionID']))\n\t\t{\n\t\t\t//print strip_tags(myTruncate(get_forum_nameByAphorismID($_REQUEST['questionID']), 100, ' ', ' ... ')).' - Фрази, афоризми, умни мисли, забавни изказвания, лозунги и др';\n\t\t}\n\t\telse \n\t\t{\n\t\t\tprint 'Фрази, афоризми, умни мисли, забавни изказвания, лозунги и др';\n\t\t}\n\t\n\t}", "function fantacalcio_send_newsletter($vote_round) {\n drupal_set_title(filter_xss('Risultati ' . $vote_round . '&ordf; giornata'));\n \n global $user;\n \n $sql = \"SELECT * FROM {fanta_rounds_competitions} WHERE round = '%d' AND c_id IN (SELECT c_id FROM {fanta_competitions} WHERE newsletter = 1)\";\n $result = db_query($sql, $vote_round);\n while ($row = db_fetch_object($result)) {\n $rounds[$row->c_id] = $row;\n }\n \n //newsletters\n //TODO //Administation\n $tids = array(1 => 13, 2 => 16);\n \n foreach ($rounds as $c_id => $round) {\n\n $tid = $tids[$c_id];\n\n $body = newsletter_create_body($c_id, $round->competition_round);\n $title = \"Riepilogo \" . (!empty($round->round_label) ? $round->round_label : $round->competition_round . \"a Giornata\");\n\n //create node\n $newsletter = array();\n $newsletter = (object) array('title'=> $title, 'body'=> $body, 'type' => 'simplenews', 'uid' => $user->uid, 'language' => 'it');\n\n //taxonomy\n $newsletter->taxonomy[$tid] = taxonomy_get_term($tid);\n $newsletter->simplenews = array('tid' => $tid, 's_format' => 'html', 'send' => SIMPLENEWS_COMMAND_SEND_NOW);\n\n node_save($newsletter);\n\n module_invoke('simplenews', 'simplenews_nodeapi', $newsletter, 'insert');\n\n }\n \n return \"Newsletter inviate\"; \n}", "function show_perfil($visitado){\n\t\t\n\t\tif ($visitado != null) {\n\n\t\t\t$posts = show_posts2($visitado);\n\t\t\tif (count($posts)) {\n\t\t\t\t\t\t\t// Passando frase por frase\n\t\t\t\t\t\t\tforeach($posts as $key = > $list) {\n\n\t\t\t\t\t\t\t\t\t$tempo = time_elapsed_string($list['stamp']);\n\t\t\t\t\t\t\t\t\t$str = $list['userid'];\n\t\t\t\t\t\t\t\t\t$id_post = $list['id'];\n\t\t\t\t\t\t\t\t\t$tag1 = $list['tag1'];\n\t\t\t\t\t\t\t\t\t$tag2 = $list['tag2'];\n\t\t\t\t\t\t\t\t\t$tag3 = $list['tag3'];\n\n\n\t\t\t\t\t\t\t\t\t//vendo a cor dos botões\n\t\t\t\t\t\t\t\t\t$query1 = $list['id'];\n\n\t\t\t\t\t\t\t\t\t$pontos = apreciados($query1);\n\n\t\t\t\t\t\t\t\t\t$sql = mysql_query(\"select ponto_ruim,ponto_coracao,ponto_estrela from apreciados where id_apreciado='$query1' and id_apreciador='$id_principal'\");\n\t\t\t\t\t\t\t\t\t$row0 = mysql_fetch_array($sql);\n\t\t\t\t\t\t\t\t\t$ponto_ruim = $row0['ponto_ruim'];\n\t\t\t\t\t\t\t\t\t$ponto_estrela = $row0['ponto_estrela'];\n\t\t\t\t\t\t\t\t\t$ponto_coracao = $row0['ponto_coracao'];\n\n\t\t\t\t\t\t\t\t\tif ($ponto_ruim == 1) {\n\t\t\t\t\t\t\t\t\t\t\t$corlike = 'span_hang2';\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\t\t\t\t$corlike = 'span_hang';\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\tif ($ponto_estrela == 1) {\n\t\t\t\t\t\t\t\t\t\t\t$corlike2 = 'span_estrela2';\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\t\t\t\t$corlike2 = 'span_estrela';\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\tif ($ponto_coracao == 1) {\n\t\t\t\t\t\t\t\t\t\t\t$corlike3 = 'span_coracao2';\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\t\t\t\t$corlike3 = 'span_coracao';\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t// fim vendo a cor dos botões\n\t\t\t\t\t\t\t\t\t//CONTAINER DO POST\n\t\t\t\t\t\t\t\t\techo \"<div class=\\\"post\\\" lang='$id_post' >\";\n\t\t\t\t\t\t\t\t\techo \"<div class=\\\"top-post\\\" lang='$id_post'>\";\n\t\t\t\t\t\t\t\t\techo \"<div>\";\n\t\t\t\t\t\t\t\t\techo \"<img class=\\\"circulo\\\" onclick=\\\"location.href='perfil.php?id=$str'\\\" src=\\\"getImagem.php?cod=\".$list['userid'].\"\\\"/>\";\n\t\t\t\t\t\t\t\t\techo \"</div>\";\n\t\t\t\t\t\t\t\t\techo \"<h1 onclick=\\\"location.href='perfil.php?id=$str'\\\">\".$list['nome'].'&nbsp'.$list['sobrenome'].\"</h1>\";\n\n\t\t\t\t\t\t\t\t\t// ---- tags --- \n\t\t\t\t\t\t\t\t\tif ($tag1 != null) {\n\t\t\t\t\t\t\t\t\t\t\tif ($tag2 != null) {\n\t\t\t\t\t\t\t\t\t\t\t\t\tif ($tag3 != null) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\techo \"<div class=\\\"exibir_tag\\\">\";\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\techo \" <span class=\\\"tag_container\\\" onclick=\\\"location.href='painel_tags.php?id=$tag1'\\\" >\".$tag1.\"</span>\";\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\techo \" <span class=\\\"tag_container\\\" onclick=\\\"location.href='painel_tags.php?id=$tag2'\\\" >\".$tag2.\"</span>\";\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\techo \" <span class=\\\"tag_container\\\" onclick=\\\"location.href='painel_tags.php?id=$tag3'\\\" >\".$tag3.\"</span>\";\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\techo \"</div>\";\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\techo \"<div class=\\\"exibir_tag\\\">\";\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\techo \" <span class=\\\"tag_container\\\" onclick=\\\"location.href='painel_tags.php?id=$tag1'\\\" >\".$tag1.\"</span>\";\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\techo \" <span class=\\\"tag_container\\\" onclick=\\\"location.href='painel_tags.php?id=$tag2'\\\" >\".$tag2.\"</span>\";\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\techo \"</div>\";\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\t\t\t\t\t\techo \"<div class=\\\"exibir_tag\\\">\";\n\t\t\t\t\t\t\t\t\t\t\t\t\techo \" <span class=\\\"tag_container\\\" onclick=\\\"location.href='painel_tags.php?id=$tag1'\\\" >\".$tag1.\"</span>\";\n\t\t\t\t\t\t\t\t\t\t\t\t\techo \"</div>\";\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\t\t\t\techo \"<div class=\\\"exibir_tag\\\">\";\n\t\t\t\t\t\t\t\t\t\t\techo \"<span ></span>\";\n\t\t\t\t\t\t\t\t\t\t\techo \"</div>\";\n\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t// ---- fim tags --- \n\t\t\t\t\t\t\t\t\techo \"<h2>\".$tempo.\"</h2>\";\n\t\t\t\t\t\t\t\t\t// fecha div top\n\t\t\t\t\t\t\t\t\techo \"</div>\";\n\t\t\t\t\t\t\t\t\techo \"<div class=\\\"container\\\">\";\n\t\t\t\t\t\t\t\t\techo \"<img class=\\\"foto1\\\" src=\\\"getImagem1.php?cod=\".$query1.\"\\\"/>\";\n\t\t\t\t\t\t\t\t\techo \"</div>\";\n\t\t\t\t\t\t\t\t\techo \"<div class=\\\"post-bot\\\" lang='$id_post'>\";\n\t\t\t\t\t\t\t\t\techo \"<a alt=\\\"ponto_estrela\\\" class=\\\"hvr-icon-pop\\\">Contemplar<span id=\\\"\".$id_post.\"est\\\" class=\\\"$corlike2\\\"></span></a>\";\n\t\t\t\t\t\t\t\t\techo \"<span class=\\\"ponto_estrela\\\">\";\n\t\t\t\t\t\t\t\t\techo \"<span class=\\\"valor1\\\">\".$pontos['ponto_estrela'].\"</span>\";\n\t\t\t\t\t\t\t\t\techo \"</span>\";\n\t\t\t\t\t\t\t\t\techo \"<a alt=\\\"ponto_coracao\\\" class=\\\"hvr-icon-coracao\\\">Admirar<span id=\\\"$id_post\\\" class=\\\"$corlike3\\\"></span></a>\";\n\t\t\t\t\t\t\t\t\techo \"<span class=\\\"ponto_coracao\\\">\";\n\t\t\t\t\t\t\t\t\techo \"<span class=\\\"valor2\\\">\".$pontos['ponto_coracao'].\"</span>\";\n\t\t\t\t\t\t\t\t\techo \"</span>\";\n\t\t\t\t\t\t\t\t\techo \"<a alt=\\\"ponto_ruim\\\" class=\\\"hvr-icon-hang\\\">Desprezar<span id=\\\"\".$id_post.\"desp\\\" class=\\\"$corlike\\\"></span></a>\";\n\t\t\t\t\t\t\t\t\techo \"<span class=\\\"ponto_ruim\\\">\";\n\t\t\t\t\t\t\t\t\techo \"<span class=\\\"valor3\\\">\".$pontos['ponto_ruim'].\"</span>\";\n\t\t\t\t\t\t\t\t\techo \"</span>\";\n\t\t\t\t\t\t\t\t\techo \"</div>\";\n\n\t\t\t\t\t\t\t\t\techo \"</div>\";\n\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\techo \"<p style=\\\"position:relative; left:300px; font-size:25px; margin-bottom:250px;\\\"><b> <?php print ($dados_visitado['nome']); ?> não tem postagens.</b></p>\";\n\t\t\t\t\t}\n\t\t}\n\t\telse \n\t\t{\n\t\t\t\t\theader('location:painel.php');\n\t\t}\n\t\t\n\t}", "function honeypot( $post_id ) {\n\n}", "function mmdyk_page() {\n\t\n\t// Page wrapper start\n\techo '<div class=\"wrap\">';\n\n\t// Title\n\tscreen_icon();\n\techo '<h2>MM Did You Know?</h2>';\n\n\tglobal $wpdb;\n\t$table_name = $wpdb->prefix . 'mmdyk_quote';\n\t$hidden_field_name = 'mm_dyk_submit';\n\t\n\t// See if the user has posted us some information\n\t// If they did, this hidden field will be set to 'Y'\n\tif(isset($_POST[ $hidden_field_name ]) && $_POST[ $hidden_field_name ] == 'Y' ) {\n\t\t$mydata = $_POST['mmdyk_txtarea'];\n\t\t$wpdb->query(\"DELETE FROM $table_name WHERE post_id = 0\");\n \n\t// Do something with $mydata \n \n\t\tif($mmdyk_list = strip_tags(stripslashes($mydata))) {\n\t\t\t$mmdyk_array = explode(\"\\n\", $mmdyk_list);\n\t\t\tsort($mmdyk_array);\n\n\t\t\tforeach($mmdyk_array as $mmdyk_current) {\n\t\t\t\t$mmdyk_current = trim($mmdyk_current);\n\t\t\t\tif(!empty($mmdyk_current)) {\n\t\t\t\t\t$mmdyk_str = explode(\" http://\", $mmdyk_current);\n\t\t\t\t\tif (strlen($mmdyk_str[1]) > 0) $mmdyk_str[1] = \"http://\".$mmdyk_str[1];\n\t\t\t\t\t$wpdb->insert( $table_name, array( 'quotes' => $mmdyk_str[0], 'post_id' => $post_id, 'link' => $mmdyk_str[1] ));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\t\n\t// Options\n?>\n\t<p>Only one quote per line (no HTML code). To add a link put it at the end of line and start it with http://</p>\n\t<form name=\"mmdyk_form\" method=\"post\" action=\"<?php echo $_SERVER['REQUEST_URI']; ?>\">\n\t\t<input type=\"hidden\" name=\"<?php echo $hidden_field_name; ?>\" value=\"Y\">\n\n\t\t<textarea name=\"mmdyk_txtarea\" rows=\"30\" cols=\"120\" wrap=\"off\" style=\"overflow: auto;\">\n<?php \t\t\t$mmdyk_rec = $wpdb->get_results(\"SELECT * FROM $table_name WHERE post_id = 0\");\n\t\t\tforeach($mmdyk_rec as $mmdyk_act) {\n\t\t\t\techo $mmdyk_act->quotes . \" \" . $mmdyk_act->link . \"\\r\\n\";\n\t\t\t}\n?>\n\t\t</textarea>\n\t\n\t\t<p class=\"submit\">\n\t\t\t<input type=\"submit\" class=\"button-primary\" value=\"<?php _e('Save Changes') ?>\" />\n\t\t</p>\n\t</form>\n<?php }", "public function sendTrackback()\n\t{\n\t\t$blog = $this->registry->getClass('blogFunctions')->loadBlog( $this->entry['blog_id'] );\n\n\t\tif ( $blog['member_id'] != $this->memberData['member_id'] )\n\t\t{\n\t\t\t$this->registry->output->showError( 'no_permission', 10693, null, null, 403 );\n\t\t}\n\n\t\tif ( !$this->settings['blog_allow_trackbackping'] )\n\t\t{\n\t\t\t$this->registry->output->showError( 'no_permission', 10694, null, null, 403 );\n\t\t}\n\n\t $this->entry['entry_sent_trackbacks'] = implode ( \"<br />\", $this->entry['entry_sent_trackbacks'] );\n\n\t\t$this->output = $this->registry->getClass('output')->getTemplate('blog_trackback')->sendTrackbackForm( $this->entry, implode ( \"<br />\", $this->ping_errors ) );\n\t\n\t\t$this->registry->output->setTitle( $this->lang->words['send_trackback_title'] );\n\t\t$this->registry->output->addContent( $this->output );\n\t\t$this->registry->getClass('blogFunctions')->sendBlogOutput( $this->blog, $this->lang->words['send_trackback_for'] .' \"' . $this->entry['entry_name'] . '\"' );\n\t}", "public function post($post);", "function dream_post_forum_action($db, $dreamid, $content) {\n global $pwpdo;\n $forum = \"Policy Forum\";\n $topic_match = \"Policy #$dreamid\";\n\t$query = \"SELECT name, private FROM pw_dyn_dreammp WHERE dream_id = ?\";\n\tlist ($name, $private) =$pwpdo->get_single_row($query,array($dreamid)); # allows no rows\n $topic = $topic_match . \" - \" . $name;\n if ($private != 1)\n forummagic_post($db, $forum, $topic_match, $topic, $content);\n}", "function index_post() {\n $data = array(\n 'id_penumpang' => $this->post('id_penumpang'),\n 'nama_penumpang' => $this->post('nama_penumpang'),\n 'jml_bayar' => $this->post('jml_bayar'),\n 'dateFromPesanClass' => $this->post('tgl_keberangkatan'),\n 'jam_keberangkatan' => $this->post('jam_keberangkatan'),\n 'no_telp' => $this->post('no_telp'),\n 'kode_kursi' => $this->post('kode_kursi'),\n 'nama_pengemudi' => $this->post('nama_pengemudi'),\n 'kode_kendaraan' => $this->post('kode_kendaraan'),\n 'jenis_kendaraan' => $this->post('jenis_kendaraan'));\n \n $insert = $this->db->insert('t_penumpang', $data);\n if ($insert) {\n $this->response($data, 200);\n } else {\n $this->response(array('status' => 'fail', 502));\n }\n }", "function tp_publish_automatic($id, $post) {\r\n\tif ($post->post_status !== 'publish') return;\r\n\r\n\t// check options to see if we need to send to FB at all\r\n\t$options = tp_options();\r\n\tif (!$options['autotweet_flag'] || !$options['autotweet_token'] || !$options['autotweet_secret'] || !$options['publish_text'])\r\n\t\treturn;\r\n\r\n\t// args to send to twitter\r\n\t$args=array();\r\n\r\n\t$args['status'] = tp_get_default_tweet($id);\r\n\r\n\t$args['acc_token'] = $options['autotweet_token'];\r\n\t$args['acc_secret'] = $options['autotweet_secret'];\r\n\r\n\t$resp = tp_do_request('statuses/update',$args, 'post');\r\n\r\n return $resp;\r\n}", "function nxs_doPublishToBG($postID, $options){ $ntCd = 'BG'; $ntCdL = 'bg'; $ntNm = 'Blogger'; if (!is_array($options)) $options = maybe_unserialize(get_post_meta($postID, $options, true)); \r\n //$backtrace = debug_backtrace(); nxs_addToLogN('W', 'Enter', $ntCd, 'I am here - '.$ntCd.\"|\".print_r($backtrace, true), ''); \r\n // if (isset($options['timeToRun'])) wp_unschedule_event( $options['timeToRun'], 'nxs_doPublishToBG', array($postID, $options));\r\n $blogTitle = htmlspecialchars_decode(get_bloginfo('name'), ENT_QUOTES); if ($blogTitle=='') $blogTitle = home_url(); \r\n $addParams = nxs_makeURLParams(array('NTNAME'=>$ntNm, 'NTCODE'=>$ntCd, 'ACCNAME'=>$options['nName'], 'POSTID'=>$postID));\r\n $ii = $options['ii']; if (!isset($options['pType'])) $options['pType'] = 'im'; if ($options['pType']=='sh') sleep(rand(1, 10)); \r\n $logNT = '<span style=\"color:#F87907\">'.$ntNm.'</span> - '.$options['nName']; \r\n $snap_ap = get_post_meta($postID, 'snap'.$ntCd, true); $snap_ap = maybe_unserialize($snap_ap); \r\n if ($options['pType']!='aj' && is_array($snap_ap) && (nxs_chArrVar($snap_ap[$ii], 'isPosted', '1') || nxs_chArrVar($snap_ap[$ii], 'isPrePosted', '1'))) {\r\n $snap_isAutoPosted = get_post_meta($postID, 'snap_isAutoPosted', true); if ($snap_isAutoPosted!='2') { \r\n nxs_addToLogN('W', 'Notice', $logNT, '-=Duplicate=- Post ID:'.$postID, 'Already posted. No reason for posting duplicate'); return;\r\n }\r\n } \r\n \r\n if ($postID=='0') { echo \"Testing ... <br/><br/>\"; $options['bgMsgTFormat'] = 'Test Post from '.htmlentities($blogTitle); $tags = 'test'; $link = home_url(); $options['bgMsgFormat'] = 'Test Post from '.$blogTitle. ' <a href=\"'.$link.'\">'.$link.'</a>'; }\r\n else { $post = get_post($postID); if(!$post) return; $options['bgMsgFormat'] = nsFormatMessage($options['bgMsgFormat'], $postID, $addParams); \r\n $options['bgMsgTFormat'] = nsFormatMessage($options['bgMsgTFormat'], $postID, $addParams); nxs_metaMarkAsPosted($postID, $ntCd, $options['ii'], array('isPrePosted'=>'1')); \r\n }\r\n $extInfo = ' | PostID: '.$postID.\" - \".(isset($post) && is_object($post)?$post->post_title:'');\r\n //## Actual POST Code\r\n if ($options['bgInclTags']=='1'){$t = wp_get_post_tags($postID); $tggs = array(); foreach ($t as $tagA) {$tggs[] = $tagA->name;} $tags = implode('\",\"',$tggs); $tags = nsTrnc($tags, 195, ',', ''); } else $tags = '';\r\n if (substr($tags, -1)=='\"') $tags = substr($tags, 0, -1); if (substr($tags, -1)==',') $tags = substr($tags, 0, -1); if (substr($tags, -1)=='\"') $tags = substr($tags, 0, -1); \r\n //## Set Message\r\n $message = array('title'=>'', 'announce'=>'', 'text'=>'', 'url'=>'', 'surl'=>'', 'urlDescr'=>'', 'urlTitle'=>'', 'imageURL' => array(), 'videoCode'=>'', 'videoURL'=>'', 'siteName'=>$blogTitle, 'tags'=>$tags, 'cats'=>'', 'authorName'=>''); \r\n //## Actual Post\r\n $ntToPost = new nxs_class_SNAP_BG(); $ret = $ntToPost->doPostToNT($options, $message);\r\n //## Process Results\r\n if (!is_array($ret) || $ret['isPosted']!='1') { //## Error \r\n if ($postID=='0') prr($ret); nxs_addToLogN('E', 'Error', $logNT, '-=ERROR=- '.print_r($ret, true), $extInfo); \r\n } else { // ## All Good - log it.\r\n if ($postID=='0') { nxs_addToLogN('S', 'Test', $logNT, 'OK - TEST Message Posted '); echo _e('OK - Message Posted, please see your '.$logNT.' Page. ', 'social-networks-auto-poster-facebook-twitter-g'); } \r\n else { nxs_metaMarkAsPosted($postID, $ntCd, $options['ii'], array('isPosted'=>'1', 'pgID'=>$ret['postID'], 'pDate'=>date('Y-m-d H:i:s'))); \r\n $extInfo .= ' | <a href=\"'.$ret['postURL'].'\" target=\"_blank\">Post Link</a>'; nxs_addToLogN('S', 'Posted', $logNT, 'OK - Message Posted ', $extInfo); }\r\n }\r\n //## Return Result\r\n if (!empty($ret['isPosted']) && $ret['isPosted']=='1') return 200; else return print_r($ret, true); \r\n }", "public function postAction()\n {\n \n }", "public function OnPostDone($post) {\n\n }", "public function prosesedit_tahun_ajaran()\n\t{\n\n\t\t$this->m_aka->prosesedit_tahun_ajaran();\n\t\tredirect('c_index_aka/data_tahun_ajaran');\n\t}", "public function request() {\n //sent to poster \n }", "function do_all_pings()\n {\n }", "function get_to_ping($post)\n {\n }", "public function postAction() {}", "function tag($post_id,$Cookie,$ua,$idx,$idx2,$idx3,$idx4,$idx5,$idx6,$idx7,$idx8,$idx9,$idx10,$idx11,$idx12,$idx13,$idx14){\r\n $caption = \"@$idx | @$idx2 | @$idx3 | @$idx4 | @$idx5 | @$idx6 | @$idx7 | @$idx8 | @$idx9 | @$idx10 | @$idx11 | @$idx12 | @$idx13 | @$idx14 \";\r\n $caption = preg_replace(\"/\\r|\\n/\", \"\", $caption);\r\n $url= 'media/'.$post_id.'/edit_media/';\r\n $data= hook('{\"media_id\":\"'.$post_id.'\",\"caption\":\"'.trim($caption).'\"}');\r\n $action = request(1,$ua,$url,$Cookie,$data) ;\r\n return $action[1];\r\n}", "public function AggiornaPrezzi(){\n\t}", "public function upload_postAction() {\n\t\t$ret = Common::upload('img', 'qualification');\n\t\t$imgId = $this->getPost('imgId');\n\t\t$this->assign('imgId', $imgId);\n\t\t$this->assign('code', $ret['data']);\n\t\t$this->assign('msg', $ret['msg']);\n\t\t$this->assign('data', $ret['data']);\n\t\t$this->getView()->display('common/upload.phtml');\n\t\texit;\n\t}", "function setup_post($matches = array())\n {\n }", "public function handelKupon()\n {\n }", "public function publish($param=array()){\n $ch = curl_init();\n \n // set URL and other appropriate options\n curl_setopt($ch, CURLOPT_HEADER, 0);\n \n \n // close cURL resource, and free up system resources\n \n foreach($this->_tweetToPublish as $tweet){\n // Push URL : http://local.cms.liputan6.com/incs/twitter-oauth/poptwitter-lip6.php?ch=no&id=654522&twitter=1&mod=news&publish=1\n $strurl=$param[\"siteURL\"] .\"incs/twitter-oauth/index.php?mod=news&publish=1\";\n curl_setopt($ch, CURLOPT_URL, $strurl);\n curl_setopt($ch, CURLOPT_POST, true);\n $data=array(\n \"id\"=>$tweet[\"id\"]\n ,\"cha_id\"=>$tweet[\"cha_id\"]\n ,\"cat_id\"=>$tweet[\"cat_id\"]\n ,\"news_url\"=>$tweet[\"news_url\"]\n ,\"submit\"=>\"Submit\"\n ,\"title_to_twitter\"=>$tweet[\"title_to_twitter\"]\n ,\"twitter_channel\"=>$tweet[\"twitter_channel\"]\n ,\"twitter_status\"=>$tweet[\"twitter_status\"]\n ,\"user\"=>$tweet[\"user\"] \n );\n curl_setopt($ch, CURLOPT_POSTFIELDS, $data);\n curl_setopt($ch, CURLOPT_RETURNTRANSFER,true);\n // grab URL and pass it to the browser\n $strResult=curl_exec($ch);\n //print \"Hasil: $strResult <br/>\\n\";\n // update ke db\n $this->update($tweet[\"id\"],$tweet[\"twitter_channel\"]);\n }\n curl_close($ch);\n }", "function jetpack_render_tos_blurb() {\n\tprintf(\n\t\twp_kses(\n\t\t\t/* Translators: placeholders are links. */\n\t\t\t__( 'By clicking the <strong>Set up Jetpack</strong> button, you agree to our <a href=\"%1$s\" target=\"_blank\" rel=\"noopener noreferrer\">Terms of Service</a> and to <a href=\"%2$s\" target=\"_blank\" rel=\"noopener noreferrer\">share details</a> with WordPress.com.', 'jetpack' ),\n\t\t\tarray(\n\t\t\t\t'a' => array(\n\t\t\t\t\t'href' => array(),\n\t\t\t\t\t'target' => array(),\n\t\t\t\t\t'rel' => array(),\n\t\t\t\t),\n\t\t\t\t'strong' => true,\n\t\t\t)\n\t\t),\n\t\t'https://wordpress.com/tos',\n\t\t'https://jetpack.com/support/what-data-does-jetpack-sync'\n\t);\n}", "public function towing()\n {\n $blogs = $this->common_model->getRecords(TABLES::$MST_BLOG_POSTS,'*',array('status'=>'1'));\n \n $this->template->set('global_setting', $this->global_setting);\n $this->template->set('blogs', $blogs);\n $this->template->set('page', 'towing');\n $this->template->set_theme('default_theme');\n $this->template->set_layout('landing_page') \n ->set_partial('header', 'partials/lp_header')\n ->set_partial('footer', 'partials/lp_footer')\n ->title($this->global_setting['site_title'] . ' | Building Services');\n $this->template->build('frontpages/towing');\n }", "public function poster() {\r\n $titre = $this->requete->getParametre(\"titre\");\r\n $contenu = $this->requete->getParametre(\"contenu\");\r\n \r\n $this->billet->ajouterBillet($titre, $contenu);\r\n // Exécution de l'action par défaut pour réafficher la liste des billets\r\n $this->executerAction(\"index\"); // utiliser header pour rediriger vers une nouvelle page liste billet admin \r\n }", "public function post($t);", "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 }" ]
[ "0.6359152", "0.6247271", "0.6203042", "0.60690695", "0.60633034", "0.5806695", "0.5806001", "0.58045435", "0.5763572", "0.5751884", "0.5739374", "0.5640435", "0.5639645", "0.5618565", "0.56129694", "0.5605778", "0.5602954", "0.55937624", "0.5564632", "0.55487174", "0.55462766", "0.5533308", "0.5532881", "0.5498827", "0.54891473", "0.54834026", "0.54640126", "0.5463659", "0.54558307", "0.5452476", "0.5451887", "0.5451887", "0.5451887", "0.5443523", "0.5437677", "0.5431701", "0.54208285", "0.5418203", "0.5413035", "0.54017997", "0.5400613", "0.53985924", "0.5395703", "0.53790444", "0.53776515", "0.5375673", "0.5356664", "0.5351827", "0.5346758", "0.5344016", "0.5338517", "0.5332913", "0.5322001", "0.53202236", "0.5308916", "0.5306078", "0.53004", "0.52987534", "0.52978116", "0.52958417", "0.52926457", "0.5290836", "0.52903134", "0.5286502", "0.5273635", "0.52618164", "0.5256382", "0.5255591", "0.5254806", "0.5248807", "0.524745", "0.52449715", "0.5231643", "0.52300334", "0.522609", "0.522433", "0.52183074", "0.52176577", "0.52052015", "0.52042586", "0.5202893", "0.52006346", "0.51958215", "0.51950455", "0.5194925", "0.5190847", "0.5189425", "0.5177137", "0.51761585", "0.5170499", "0.5168623", "0.5168035", "0.51670897", "0.5159902", "0.51562804", "0.51545215", "0.5150647", "0.5149302", "0.5144769", "0.51432496", "0.5141268" ]
0.0
-1
Sends request to api
public function send() { $this->setHeaders(["transactionId" => $this->getTransactionId()]); return parent::send(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function sendRequest()\n {\n }", "abstract function do_api_request();", "public function sendRequest( ) {\n\n }", "protected function send()\n {\n $this->addAuthorization();\n\n $response = $this->client->post(\n $this->apiUrl,\n array(\n 'json' => array(\n 'query' => $this->getQuery(),\n 'variables' => $this->variables,\n ),\n 'headers' => $this->headers,\n )\n );\n\n $responseBody = json_decode($response->getBody(), true);\n if ($responseBody === null) {\n throw new \\RuntimeException('Invalid api call: '.json_encode($this->getQuery()));\n }\n\n $this->body = $responseBody;\n if (isset($responseBody['errors'])) {\n $this->errors = $responseBody['errors'];\n } else {\n $this->response = $responseBody['data'];\n }\n }", "public function request()\n {\n $this->setParams();\n\n $jsondata = json_encode($this->getData(), JSON_UNESCAPED_SLASHES);\n\n if(!$this->is_JSON($jsondata)){\n $this->log(\"Sending parameters must be JSON.\",'Exiting process.');\n $this->error_message('Sending parameters must be JSON.');\n }\n $lenght = strlen($jsondata);\n if($lenght<=0){\n $this->log(\"Length must be more than zero.\",'Exiting process.');\n $this->error_message(\"Length must be more than zero.\");\n }else{\n $lenght = $lenght <= 999 ? \"0\" . $lenght : $lenght;\n }\n\n $this->response_json = $this->oxd_socket_request(utf8_encode($lenght . $jsondata));\n\n $this->response_json = str_replace(substr($this->response_json, 0, 4), \"\", $this->response_json);\n if ($this->response_json) {\n $object = json_decode($this->response_json);\n if ($object->status == 'error') {\n $this->error_message($object->data->error . ' : ' . $object->data->error_description);\n } elseif ($object->status == 'ok') {\n $this->response_object = json_decode($this->response_json);\n }\n } else {\n $this->log(\"Response is empty...\",'Exiting process.');\n $this->error_message('Response is empty...');\n }\n }", "public function sendRequestToEndpoint(): Response;", "public function requestFromApi() \n {\n $clientApi = new \\GuzzleHttp\\Client([\n \"base_uri\" => \"https://services.mysublime.net/st4ts/data/get/type/\",\n \"timeout\" => 4.0]);\n \n try { \n $response = $clientApi->request(\"GET\", $this->_urlEndPoint);\n if ($response->getStatusCode() == \"200\") {\n $body = $response->getBody();\n $this->_jsonRequestedArr = json_decode($body); \n }\n else { \n $this->_error .= \"Bad status code: . \" . $response->getStatusCode(); \n }\n }\n catch (Exception $exc) {\n $this->_error .= $exc->getMessage();\n }\n\n }", "public function sendRequest()\n {\n $url = \"http://66.45.237.70/api.php\";\n $number = $this->senderObject->getMobile();\n $text = $this->senderObject->getMessage();\n\n try {\n $this->errorException();\n\n } catch (XenonException $exception) {\n $exception->showException($this->senderObject);\n }\n $config = $this->senderObject->getConfig();\n\n $data = array(\n 'username' => $config['username'],\n 'password' => $config['password'],\n 'number' => $number,\n 'message' => $text\n );\n try {\n $ch = curl_init(); // Initialize cURL\n curl_setopt($ch, CURLOPT_URL, $url);\n curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($data));\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n $smsResult = curl_exec($ch);\n $status = $this->generateReport($smsResult, $data);\n\n } catch (XenonException $exception) {\n $exception->showException();\n }\n }", "private function sendGetRequest($url)\n {\n // Send the request and process the response\n $guzzleResponse = $this->client->request('GET', $url);\n $this->lastResponse = new SmartwaiverResponse($guzzleResponse);\n }", "public function request();", "abstract protected function requestApi($action = '', $params = array(), $method = 'POST');", "function sendRequest()\n\t\t{\n\t\t\t$stream = $this->getRequestStream();\n\t\t\t$stream->write( $this->getRequestString() );\n\t\t\t$stream->close();\n\t\t}", "public function send(): void\n {\n $requiredParams = [\n 'v' => $this->client->getVersion(),\n 'tid' => $this->client->getTrackingId(),\n 'cid' => $this->client->getClientId(),\n 't' => $this->getHitType(),\n ];\n $paramValues = array_merge(\n $requiredParams,\n $this->parameters\n );\n \n $url = $this->getBaseUrl();\n\n $guzzle = new \\GuzzleHttp\\Client();\n $result = $guzzle->request('POST', $url, ['form_params' => $paramValues]);\n\n if ($this->client->isDebug()) {\n var_dump((string) $result->getBody());\n }\n }", "public function send($request);", "public function send()\n {\n $response = $this->apiClient->sendRequest(\n $this->getRequest(),\n $this->withAuthentication\n );\n\n return $this->apiClient->getResponseJson($response);\n }", "public function request() {\r\n\t\t$this->verbose('protocol', $this->protocol);\r\n\t\t$this->verbose('method', $this->method);\r\n\t\t$this->verbose('host', $this->host);\r\n\t\t$this->verbose('path', $this->path);\r\n\t\t$this->verbose('query', $this->query);\r\n\t\t$this->verbose('headers', $this->headers);\r\n\t\t$this->verbose('body', $this->body);\r\n\t\t$this->verbose('timeout', $this->timeout);\r\n\r\n\t\t$this->addQueryToPath();\r\n\t\t$this->verbose('path + query', $this->path);\r\n\t\t$this->cleanHost();\r\n\t\t$this->verbose('cleanHost', $this->host);\r\n\r\n\t\t$url = $this->protocol . '://' . $this->host . $this->path;\r\n\t\t$this->verbose('url', $url);\r\n\r\n\t\t$this->headers['Authorization'] = $this->makeAuthHeader();\r\n\r\n\r\n\t\tforeach ($this->headers as $header_key => $header_value) {\r\n\t\t\t$header_array[] = $header_key . \":\" . $header_value;\r\n\t\t}\r\n\r\n\t\t$ch = curl_init();\r\n\t\t$options = array(\r\n\t\t\tCURLOPT_URL => $url,\r\n\t\t\tCURLOPT_RETURNTRANSFER => 1,\r\n\t\t\tCURLOPT_CUSTOMREQUEST => $this->method,\r\n\t\t\tCURLOPT_POSTFIELDS => $this->body,\r\n\t\t\tCURLOPT_HEADER => false,\r\n\t\t\tCURLINFO_HEADER_OUT => true,\r\n\t\t\tCURLOPT_HTTPHEADER => $header_array,\r\n\t\t\tCURLOPT_TIMEOUT => $this->timeout\r\n\t\t);\r\n\t\tcurl_setopt_array($ch, $options);\r\n\r\n\t\t$this->verbose('body at exec', $this->body);\r\n\t\t$response_body = curl_exec($ch);\r\n\t\t$response_error = curl_error($ch);\r\n\t\t$response_headers = curl_getinfo($ch);\r\n\t\tcurl_close($ch);\r\n\r\n\t\t$response['error'] = $response_error;\r\n\t\t$response['body'] = $response_body;\r\n\t\t$response['header'] = $response_headers;\r\n\t\treturn $response;\r\n\t}", "public function doRequests();", "public function send_request($action, $parameters);", "public function request()\n {\n }", "public function request()\n {\n }", "public function send()\n\t{\n\t\t$url \t\t= $this->getURL();\t\t\n\t\t$data \t\t= $this->getData();\n\t\t$method \t= $this->getMethod();\n\t\t\t\t\n\t\t$ch = curl_init();\n\t\t$options = $this->_options;\n\t\tcurl_setopt_array($ch, array(\n\t\t\tCURLOPT_USERAGENT \t => $options->useragent,\n\t\t\tCURLOPT_CONNECTTIMEOUT => $options->connection_timeout,\n\t\t\tCURLOPT_TIMEOUT\t\t => $options->timeout,\n\t\t\tCURLOPT_RETURNTRANSFER => true,\n\t\t\tCURLINFO_HEADER_OUT\t => true,\n\t\t\tCURLOPT_SSL_VERIFYPEER => $options->ssl,\n\t\t\tCURLOPT_HEADER\t\t => false\n\t\t));\n\t \n $headers = array();\n //if data is string then \n //set the authorization header\n //A Hack to make the linked-in work wihtout affecting\n //other services\n if ( is_string($this->_data) ) {\n $headers[] = $this->_internal_request->to_header();\n $headers[] = \"Content-Type: text/plain\";\n }\n \n if ( !empty($headers) )\n curl_setopt($ch,CURLOPT_HTTPHEADER,$headers);\n \n\t\tswitch ($method) \n\t\t{\n\t\t\tcase KHttpRequest::POST :\n\t\t\t\tcurl_setopt($ch, CURLOPT_POST, true);\n\t\t\t\tif (!empty($data)) curl_setopt($ch, CURLOPT_POSTFIELDS, $data);\n\t\t\t\tbreak;\n\t\t\tcase KHttpRequest::PUT\t: \n\t\t\t\tcurl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'PUT');\n\t\t\t\tif (!empty($data)) curl_setopt($ch, CURLOPT_POSTFIELDS, $data);\n\t\t\t\tbreak;\t\n\t\t\tcase KHttpRequest::DELETE:\n\t\t\t\tcurl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'DELETE');\n\t\t\t\tif (!empty($data)) curl_setopt($ch, CURLOPT_POSTFIELDS, $data);\n\t\t}\n\t\t\n\t\tcurl_setopt($ch, CURLOPT_URL, $url);\n\t\t\t\t\n\t\t$response = curl_exec($ch);\n\t\t\n\t\treturn new ComConnectOauthResponse($response, curl_getinfo($ch));\n\t}", "public function sendRequest($method, $params = '');", "public function api()\n {\n $postData = $this->request->post;\n $getData = $this->request->get;\n\n $action = explode('/', $getData['route']);\n $action = array_pop($action);\n\n $data = [\n 'post' => $postData,\n 'get' => $getData\n ];\n\n $verb = strtolower($_SERVER['REQUEST_METHOD']);\n\n $api = new Api($data, $verb, $this);\n $result = $api->{$action}();\n\n $this->sendResponse($result);\n }", "public function call()\n\t{\n\t\tcall_user_func_array(array($this->client, 'request'), func_get_args());\n\n\t\treturn $this->client->getResponse();\n\t}", "public function runRequest() {\n }", "public function requests()\n\t{\n\t\t$this->checkRequest();\n\t\t$this->getResponse();\n\t}", "private function dispatch(): void {\n $curl = curl_init();\n\n curl_setopt_array($curl, array(\n CURLOPT_URL => \"{$this->apiUrl}/{$this->endpoint}\",\n CURLOPT_RETURNTRANSFER => true,\n CURLOPT_MAXREDIRS => 10,\n CURLOPT_TIMEOUT => 30,\n CURLOPT_HTTP_VERSION => \"CURL_HTTP_VERSION_1_1\",\n CURLOPT_CUSTOMREQUEST => $this->method\n ));\n\n $this->response = curl_exec($curl); \n curl_close($curl);\n }", "abstract public function request();", "public function send()\n {\n $this->jsonManager->domain = $this->uri;\n $this->jsonManager->port = $this->port;\n $this->jsonManager->online = $this->isOnline();\n $this->jsonManager->send();\n }", "abstract public function sendRequest(array $options);", "function tincanlaunch_send_api_request($auth, $method, $url) {\n $options = func_num_args() === 4 ? func_get_arg(3) : array();\n\n if (!isset($options['contentType'])) {\n $options['contentType'] = 'application/json';\n }\n\n $http = array(\n // We don't expect redirects.\n 'max_redirects' => 0,\n // This is here for some proxy handling.\n 'request_fulluri' => 1,\n // Switching this to false causes non-2xx/3xx status codes to throw exceptions.\n // but we need to handle the \"error\" status codes ourselves in some cases.\n 'ignore_errors' => true,\n 'method' => $method,\n 'header' => array()\n );\n\n array_push($http['header'], 'Authorization: ' . $auth);\n\n if (($method === 'PUT' || $method === 'POST') && isset($options['content'])) {\n $http['content'] = $options['content'];\n array_push($http['header'], 'Content-length: ' . strlen($options['content']));\n array_push($http['header'], 'Content-Type: ' . $options['contentType']);\n }\n\n $context = stream_context_create(array('http' => $http));\n $fp = fopen($url, 'rb', false, $context);\n if (!$fp) {\n return array(\n \"metadata\" => null,\n \"content\" => null,\n \"status\" => 0\n );\n }\n $metadata = stream_get_meta_data($fp);\n $content = stream_get_contents($fp);\n $responsecode = (int) explode(' ', $metadata[\"wrapper_data\"][0])[1];\n\n fclose($fp);\n\n if ($options['contentType'] == 'application/json') {\n $content = json_decode($content);\n }\n\n return array(\n \"metadata\" => $metadata,\n \"content\" => $content,\n \"status\" => $responsecode\n );\n}", "public function doRequest()\n {\n $this->post('/api_v1/webhook/log/1',\n json_decode('{\n \"transaction_time\": \"1603711958\",\n \"id\": \"e0c523cd-3dfd-4206-83b4-9c0dc32dd77e\",\n \"event\": \"in-store-txn\",\n \"value\": 13.98,\n \"status\": \"complete\",\n \"customer_id\": \"e0c523cd-3dfd-4206-83b4-9c0dc32dd77e\"\n }'),\n [\n \"Accept\" => \"application/json\"\n ]\n );\n\n $this->assertEquals(\n 200, $this->response->getStatusCode()\n );\n }", "public function run_request() {\r\n\t\t// Do nothing if we don't\r\n\t\tif ( empty( $_GET['wpmudev-hub'] ) ) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\r\n\t\t$this->register_internal_actions();\r\n\t\t$this->register_plugin_actions();\r\n\r\n\t\t//get the json\r\n\t\t$raw_json = file_get_contents( 'php://input' );\r\n\r\n\t\t$this->validate_hash( $_GET['wpmudev-hub'], $raw_json );\r\n\r\n\t\t$body = json_decode( $raw_json );\r\n\t\tif ( ! isset( $body->action ) ) {\r\n\t\t\twp_send_json_error( array( 'code' => 'invalid_params', 'message' => 'The \"action\" parameter is missing' ) );\r\n\t\t}\r\n\t\tif ( ! isset( $body->params ) ) {\r\n\t\t\twp_send_json_error( array( 'code' => 'invalid_params', 'message' => 'The \"params\" object is missing' ) );\r\n\t\t}\r\n\r\n\t\tif ( isset( $this->actions[ $body->action ] ) ) {\r\n\t\t\t$this->current_action = $body->action;\r\n\r\n\t\t\t//log it if turned on\r\n\t\t\tif ( WPMUDEV_API_DEBUG ) {\r\n\t\t\t\t$this->timer = microtime( true ); //start the timer\r\n\t\t\t\t$log = '[Hub API call] %s %s';\r\n\t\t\t\t$log .= \"\\n Request params: %s\\n\";\r\n\r\n\t\t\t\t$msg = sprintf(\r\n\t\t\t\t\t$log,\r\n\t\t\t\t\t$_GET['wpmudev-hub'],\r\n\t\t\t\t\t$body->action,\r\n\t\t\t\t\tjson_encode( $body->params, JSON_PRETTY_PRINT )\r\n\t\t\t\t);\r\n\t\t\t\terror_log( $msg );\r\n\t\t\t}\r\n\r\n\t\t\tcall_user_func( $this->actions[ $body->action ], $body->params, $body->action, $this );\r\n\r\n\t\t\t$this->send_json_success(); //send success in case the callback didn't respond\r\n\t\t}\r\n\r\n\t\t// When the callback function did not send a response assume error.\r\n\t\twp_send_json_error( array(\r\n\t\t\t'code' => 'unregistered_action', 'message' => 'This action is not registered. The required plugin is not installed, updated, or configured properly.'\r\n\t\t) );\r\n\t}", "public function send(Request $request);", "public function sendRequest(Request $request);", "public function sendRequest(Request $request);", "private function makeRequest()\n {\n $credentials = $this->generateCredentials();\n\n return $this->engine->client->request('POST', $this->endpoint, [\n 'json' => $credentials,\n 'headers' => [\n 'Accept' => 'application/json',\n 'Content-Type' => 'application/json',\n ],\n ]);\n }", "public function send() \n {\n if (!$this->getEndpoint()) {\n // Can't make a request without a URL\n Mage::throwException(\"Unable to send a Klevu Search API request: No URL specified.\");\n }\n\n $raw_request = $this->build();\n Mage::helper('klevu_search')->log(Zend_Log::DEBUG, sprintf(\"API request:\\n%s\", $this->__toString()));\n\n try {\n $raw_response = $raw_request->request();\n } catch (Zend_Http_Client_Exception $e) {\n // Return an empty response\n Mage::helper('klevu_search')->log(Zend_Log::ERR, sprintf(\"HTTP error: %s\", $e->getMessage()));\n return Mage::getModel('klevu_search/api_response_empty');\n }\n\n Mage::helper('klevu_search')->log(\n Zend_Log::DEBUG, sprintf(\n \"API response:\\n%s\\n%s\",\n $raw_response->getHeadersAsString(true, \"\\n\"),\n $raw_response->getBody()\n )\n );\n\n $response = $this->getResponseModel();\n $response->setRawResponse($raw_response);\n\n return $response;\n }", "private function sendRequest(string $url, array $obj = [], bool $array=false, string $method = 'GET'){\n $ret = '';\n $sign = JWT::encode($obj, $this->secret);\n $obj['signature'] = $sign;\n $client = new \\GuzzleHttp\\Client();\n $arg = strtoupper($method) == 'GET' ? 'query' : 'body';\n $r = $client->request(strtoupper($method), $url, [$arg => $obj]);\n if($r->getStatusCode()==200){\n $ret = json_decode($r->getBody()->getContents(), $array);\n }\n return $ret;\n }", "function send_request() { \n if(!$this->connect()) { \n return false; \n } \n else { \n $this->result = $this->request($this->data);\n return $this->result; \n } \n }", "public function sendRequest($params) {\n \n // encrypt the request \n $request = base64_encode(mcrypt_encrypt(MCRYPT_RIJNDAEL_256, $this->_app_key, json_encode($params), MCRYPT_MODE_ECB));\n //$request = base64_encode(json_encode($params));\n \n // redefine the parameters array so that it will be accepted by the api \n $params = array();\n $params['data'] = $request;\n $params['app_id'] = $this->_app_id;\n \n //initialize and setup the curl handler\n $handle = curl_init();\n curl_setopt($handle, CURLOPT_URL, $this->_api_url);\n curl_setopt($handle, CURLOPT_RETURNTRANSFER, 1);\n curl_setopt($handle, CURLOPT_POST, count($params));\n curl_setopt($handle, CURLOPT_POSTFIELDS, $params); \n $ans = curl_exec($handle); \n if ($ans === false) {\n printf(\"cUrl error (#%d): %s<br>\\n\", curl_errno($handle), htmlspecialchars(curl_error($handle)));\n } \n \n //echo \"GAC: \".$ans.\"\\n\";\n $rawans = $ans;\n $ans = json_decode($ans, true); \n //echo \"ABC: \".$ans.\"\\n\";\n \n //check if we're able to json_decode the result correctly\n if ($ans == false || isset($ans['success']) == false) { \n throw new Exception('Request was not correct in GeneralApiCaller: '.$rawans);\n }\n \n // if there was an error in the request, throw an exception\n if ($ans['success'] == false) {\n throw new Exception($ans['errormsg']);\n }\n \n // if reached here, the data component should have the result\n return $ans['data'];\n }", "public function requestAction() {\n $this->api->login('request')->post()->loadTokenFromResponse();\n $_SESSION['request_token'] = $this->api->getOAuthToken();\n return $this->api->goRedirect('login');\n }", "function send_request( $http_method, $url, $auth_header = null, $postData = null ) {\n\t$curl = curl_init( $url );\n\tcurl_setopt( $curl, CURLOPT_RETURNTRANSFER, true );\n\tcurl_setopt( $curl, CURLOPT_FAILONERROR, false );\n\tcurl_setopt( $curl, CURLOPT_SSL_VERIFYPEER, false );\n\n\tswitch( $http_method ) {\n\t\tcase 'GET':\n\t\t\tif( $auth_header ) {\n\t\t\t\tcurl_setopt( $curl, CURLOPT_HTTPHEADER, array( $auth_header ) );\n\t\t\t}\n\t\t\tbreak;\n\t\tcase 'POST':\n\t\t\tcurl_setopt( $curl, CURLOPT_HTTPHEADER, array( 'Content-Type: application/atom+xml',\n\t\t\t\t$auth_header ) );\n\t\t\tcurl_setopt( $curl, CURLOPT_POST, 1 );\n\t\t\tcurl_setopt( $curl, CURLOPT_POSTFIELDS, $postData );\n\t\t\tbreak;\n\t\tcase 'PUT':\n\t\t\tcurl_setopt( $curl, CURLOPT_HTTPHEADER, array( 'Content-Type: application/atom+xml',\n\t\t\t\t$auth_header ) );\n\t\t\tcurl_setopt( $curl, CURLOPT_CUSTOMREQUEST, $http_method );\n\t\t\tcurl_setopt( $curl, CURLOPT_POSTFIELDS, $postData );\n\t\t\tbreak;\n\t\tcase 'DELETE':\n\t\t\tcurl_setopt( $curl, CURLOPT_HTTPHEADER, array( $auth_header ) );\n\t\t\tcurl_setopt( $curl, CURLOPT_CUSTOMREQUEST, $http_method );\n\t\t\tbreak;\n\t}\n\t$response = curl_exec( $curl );\n\tif( !$response ) {\n\t\t$response = curl_error( $curl );\n\t}\n\tcurl_close( $curl );\n\treturn $response;\n}", "public function testSendingRequestWithToken()\n {\n $response = $this->get('/api/drivers', ['api_token' => config('constants.TEST_TOKEN')]);\n\n $response->assertStatus(200);\n }", "function send_request($request)\n {\n $response = $request->send();\n return $this->parse_response($response);\n }", "public function sendRequest( $uri )\n\t{\n\t\t$this->response = Requests::get($uri, array(), array(\"timeout\" => $this->timeout));\n\t}", "public function serviceRequest()\n {\n API::post('ivr/serviceRequest', array(\n 'caller' => $this->caller,\n 'called' => $this->called\n ), $this->app->getAccessToken());\n }", "public function makeRequest(): void\n {\n if (!$this->token) {\n $this->login();\n }\n\n try {\n $promise = $this->client->requestAsync('POST', 'https://api.jamef.com.br/rastreamento/ver',\n [\n 'headers' =>\n [\n 'Authorization' => 'Bearer ' . $this->token,\n ],\n 'json' => $this->buildRequest()\n ]\n )->then(function ($response) {\n $this->parseResult($response);\n });\n $promise->wait();\n } catch (RequestException $e) {\n $error = json_decode($e->getResponse()->getBody());\n if($error->message){\n $this->result->errors[] = utf8_decode($error->message->message);\n }\n $this->result->status = 'ERROR';\n $this->result->errors[] = 'Curl Error: ' . $e->getMessage();\n }\n }", "public function sendRequest() {\n $response = file_get_contents($this->url);\n\n if ($response) {\n\n $this->response = $response;\n return true;\n } else {\n\n return false;\n }\n }", "function apiRequest($method, $data=[]) {\n // Define our target address for the API call.\n $url = \"https://api.telegram.org/bot\".API_KEY.\"/\".$method;\n\n // Perform cURL session.\n $ch = curl_init();\n curl_setopt($ch, CURLOPT_URL, $url);\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($data));\n $result = curl_exec($ch);\n\n // Error checking. If successful, return data.\n if ( curl_error($ch) ) {\n return false;\n } else {\n return json_decode($result, TRUE);\n }\n }", "public function send(): GetDataFromApiClass;", "public function performApiRequest(TelegramMethods $method)\r\n {\r\n\t\t\r\n\t\t \r\n\t\t$this->checkSpecialConditions($method); //json encodes reply_markup \r\n $this->sendRequestToTelegram($method);\r\n\r\n }", "public function request($method, $url, array $body = [], array $headers = [], $version = '1.1');", "public function request_api($http_method, $uri, $params = array()){\n\t\t\n\t\t// prepare request url\n\t\t$request_url = $this->api_url.'/'.$uri;\n\t\t// send request\n\t\treturn $this->_request( $http_method, $request_url, $params );\n\t}", "function request($httpMethod, $service, $apiMethod, array $parameters = array(), array $options = array());", "public function request( $request )\n {\n $request = $request->withHeader('ApiKey', $this->apikey);\n \n $result = $this->http_client->send($request); \n \n return json_decode($result->getBody(), true);\n }", "public function send() {\r\n\t\t$this->resource->send();\r\n\t}", "public function sendRequest($request_params) {\n\t\t$params = array();\n\n\t\t$params['request'] = $request_params;\n\t\t$params['app_id'] = $this->_app_id;\n\n\n\t\t$ch = curl_init();\n\t\tcurl_setopt($ch, CURLOPT_URL, $this->_api_url);\n\t\tcurl_setopt($ch, CURLOPT_POST, true);\n\t\tcurl_setopt($ch, CURLOPT_POSTFIELDS, $params[\"request\"]);\n\t\tcurl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);\n\n\t\t//execute request\n\t\t$result = curl_exec($ch);\n\n\t\t//test other\n\t\t$fm = fopen(\"try.txt\", \"w\");\n\t\tfwrite($fm, var_export($result, true));\n\n\n\t\t//json decode the result\n\t\t$result = json_decode($result);\n\n\t\t//check if is decoded correctly\n\t\tif($result == false || isset($result->success) == false) {\n\t\t\tthrow new Exception('Request was not correct');\n\t\t}\n\n\t\t//if there was an error in request\n\t\tif($result->success == false) {\n\t\t\tthrow new Exception($result->errormsg);\n\t\t}\n\n\t\t//if everything was successful return data\n\t\treturn json_encode($result->data);\n\t}", "function send_request($http_method, $url, $auth_header=null, $postData=null) {\n $curl = curl_init($url);\n curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);\n curl_setopt($curl, CURLOPT_FAILONERROR, false);\n curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);\n\n switch($http_method) {\n case 'GET':\n if ($auth_header) {\n curl_setopt($curl, CURLOPT_HTTPHEADER, array($auth_header)); \n }\n break;\n case 'POST':\n curl_setopt($curl, CURLOPT_HTTPHEADER, array('Content-Type: application/atom+xml', \n $auth_header)); \n curl_setopt($curl, CURLOPT_POST, 1); \n curl_setopt($curl, CURLOPT_POSTFIELDS, $postData);\n break;\n case 'PUT':\n curl_setopt($curl, CURLOPT_HTTPHEADER, array('Content-Type: application/atom+xml', \n $auth_header)); \n curl_setopt($curl, CURLOPT_CUSTOMREQUEST, $http_method);\n curl_setopt($curl, CURLOPT_POSTFIELDS, $postData);\n break;\n case 'DELETE':\n curl_setopt($curl, CURLOPT_HTTPHEADER, array($auth_header)); \n curl_setopt($curl, CURLOPT_CUSTOMREQUEST, $http_method); \n break;\n }\n $response = curl_exec($curl);\n if (!$response) {\n $response = curl_error($curl);\n }\n curl_close($curl);\n return $response;\n}", "function _pipwave_wc_send_request($data) {\n if ($this->test_mode == 'yes') {\n $url = \"https://staging-api.pipwave.com/payment\";\n } else {\n $url = \"https://api.pipwave.com/payment\";\n }\n\n $agent = \"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)\";\n $ch = curl_init();\n\t\t\tcurl_setopt($ch, CURLOPT_PROXY, ‘my-proxy.offgamers.lan:3128’);\n curl_setopt($ch, CURLOPT_HTTPHEADER, array('x-api-key:' . $this->api_key));\n curl_setopt($ch, CURLOPT_POST, 1);\n curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($data));\n curl_setopt($ch, CURLOPT_URL, $url);\n curl_setopt($ch, CURLOPT_VERBOSE, 1);\n curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2);\n curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);\n curl_setopt($ch, CURLOPT_TIMEOUT, 120);\n curl_setopt($ch, CURLOPT_USERAGENT, $agent);\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);\n\n $response = curl_exec($ch);\n if ($response == false) {\n echo \"<pre>\";\n echo 'CURL ERROR: ' . curl_errno($ch) . '::' . curl_error($ch);\n die;\n }\n curl_close($ch);\n\n return json_decode($response, true);\n }", "public function sendResponse();", "private function execute()\n {\n // executes a cURL session for the request, and sets the result variable\n $result = Request::get($this->getRequestURL())->send();\n // return the json result\n return $result->raw_body;\n }", "public function send()\n {\n http_response_code( $this->getResultCode() );\n echo $this->getBody();\n }", "public function request() {\n // The basic flow: build the url, make the request, parse and return the\n // output.\n $url = $this->query_builder->getUrl();\n\n // @todo: does this make sense to be in a separate class? Anyway, this shoudl\n // be somehow refactored because it is hard to replace or overwrite it.\n $curl = curl_init();\n curl_setopt($curl, CURLOPT_URL, $url);\n curl_setopt($curl, CURLOPT_RETURNTRANSFER, TRUE);\n $response = curl_exec($curl);\n // @todo: very important: check the curl errors here.\n\n return $this->parser->parse($response);\n }", "public function execute(){\n try {\n $request = $this->getRestClient();\n $raw_response = $request->request();\n } catch (Zend_Http_Client_Exception $e) {\n Mage::helper('unbxd_recommendation')->log(Zend_Log::ERR,\n sprintf($this->getUrl() .\" failed because HTTP error: %s\", $e->getMessage()));\n return Mage::getModel('unbxd_recommendation/api_response')\n ->setErrorMessage(Unbxd_Recommendation_Model_Api_Response::SERVER_ERR);\n }\n return Mage::getModel(\"unbxd_recommendation/api_response\")\n ->setJsonResponse($this->isJsonResponse())\n ->setResponse($raw_response, $this->getUrl());\n }", "public function sendRequest(ApiKey $apiKey, RestRequest $request)\n {\n $hmac = $this->generateHmac($apiKey->getPrivateKey(), $request->getEndpoint(), array_merge($request->getQueryData(), $request->getPostData()));\n\n $client = new Client([\n 'base_uri' => $request->getHost()\n ]);\n \n $args = [\n 'auth' => [$apiKey->getPublicKey(), $hmac],\n 'headers' => [\n 'Accept' => 'application/json'\n ]\n ];\n \n if ($request->getRequestMethod() === 'POST') {\n $args['form_params'] = $request->getPostData();\n } else {\n $args['query'] = $request->getQueryData();\n }\n \n try {\n $responseRaw = $client->request($request->getRequestMethod(), $request->getEndpoint(), $args);\n } catch (RequestException $e) {\n if (!$e->hasResponse()) {\n throw new Exception('Cannot send REST request.', 0, $e);\n }\n \n $responseRaw = $e->getResponse();\n }\n \n return $this->prepareResponse($responseRaw, $request);\n }", "function chargeAPI($api_url, $server_key, $request_body){\n $ch = curl_init();\n $curl_options = array(\n CURLOPT_URL => $api_url,\n CURLOPT_RETURNTRANSFER => 1,\n CURLOPT_POST => 1,\n CURLOPT_HEADER => 0,\n // Tambahkan heder ke permintaan, termasuk Otorisasi yang dihasilkan dari kunci server\n CURLOPT_HTTPHEADER => array(\n 'Content-Type: application/json',\n 'Accept: application/json',\n 'Authorization: Basic ' . base64_encode($server_key . ':')\n ),\n CURLOPT_POSTFIELDS => $request_body\n );\n curl_setopt_array($ch, $curl_options);\n $result = array(\n 'body' => curl_exec($ch),\n 'http_code' => curl_getinfo($ch, CURLINFO_HTTP_CODE),\n );\n return $result;\n}", "function send()\n {\n try{\n $client = new Client();\n $response = $client->request('POST', $this->base_url_SendSMS, [\n 'form_params' => [\n 'Userid' => $this->username,\n 'pwd' => $this->password,\n 'APIKEY' => $this->apikey,\n 'MSG' => $this->msgtext,\n 'FROM' => $this->from,\n 'To' => $this->to,\n ]\n ]);\n\n echo $response->getStatusCode(); // 200\n $response->getReasonPhrase(); // OK\n $response->getProtocolVersion(); // 1.1\n }\n catch(\\GuzzleHttp\\Exception\\ClientException $e){\n echo $e->getMessage();\n }\n catch(ErrorException $e){\n echo $e->getMessage();\n }\n }", "public function sendRequest($sUrl);", "function send_request($postdata = \"\") {\n\t\tif(!is_array($postdata) ) $postdata = array();\n\t\t\n\t\t$url = $this->_build_url();\n\t\t\n\t\tif(!isset($postdata['ip_address'])) $postdata['ip_address'] = $this->_get_client_ip();\n\t\tif(!isset($postdata['user_agent'])) $postdata['user_agent'] = $this->_get_client_user_agent();\n\t\t$postdata['api_key'] = $this->api_key;\n\n\t\t$ch = curl_init($url);\n\n\t\tcurl_setopt($ch, CURLOPT_POST ,1);\n\t\tcurl_setopt($ch, CURLOPT_POSTFIELDS, 'json='.$this->_json_encode($postdata));\n\t\tcurl_setopt($ch, CURLOPT_HEADER ,0); \n\t\tcurl_setopt($ch, CURLOPT_RETURNTRANSFER ,1);\n\t\tcurl_setopt($ch, CURLOPT_TIMEOUT ,10);\n\t\tcurl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);\n\t\tcurl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);\t\t\n\n\t\t$return_data = curl_exec($ch);\n\n\t\treturn $return_data;\n\t}", "public function exec($request, array $params = [], $method = \"GET\") {\n usleep(100000);\n\n $requestUri = HitBtcAPIConf::getAPIUrlSegment(HitBtcAPIConf::SEGMENT_TYPE_TRADING, $this->apiVersion)\n . $request;\n if ($this->apiVersion == 1) {\n $requestUri.= \"?nonce=\" . self::getNonce() . \"&apikey=\" . $this->apiKey;\n }\n\n // generate the POST data string\n $params = http_build_query($params);\n if (strlen($params) && $method === 'GET') {\n $requestUri .= '&' . $params;\n }\n\n // curl handle (initialize if required)\n if (is_null(self::$ch)) {\n self::$ch = curl_init();\n }\n\n if ($this->apiVersion == 2) {\n curl_setopt(self::$ch, CURLOPT_USERPWD, $this->apiKey . \":\" . $this->apiSecret);\n }\n curl_setopt(self::$ch, CURLOPT_URL, HitBtcAPIConf::getAPIUrl($this->apiVersion, $this->isDemoAPI) . $requestUri);\n curl_setopt(self::$ch, CURLOPT_CONNECTTIMEOUT, 10);\n curl_setopt(self::$ch, CURLOPT_RETURNTRANSFER, true);\n\n if ($method === 'POST') {\n curl_setopt(self::$ch, CURLOPT_POST, true);\n curl_setopt(self::$ch, CURLOPT_POSTFIELDS, $params);\n }\n\n curl_setopt(self::$ch, CURLOPT_HTTPHEADER, [\n 'X-Signature: ' . strtolower(hash_hmac('sha512', $requestUri . (($method === 'POST') ? $params : ''), $this->apiSecret))\n ]);\n\n // run the query\n $res = curl_exec(self::$ch);\n if ($res === false) {\n $e = curl_error(self::$ch);\n curl_close(self::$ch);\n\n throw new \\Exception(\"Curl error: \" . $e);\n }\n curl_close(self::$ch);\n\n $json = json_decode($res, true);\n\n // Check for the HitBTC API error\n if (isset($json['error'])) {\n throw new \\Exception(\n \"HitBTC API error ({$json['error']['code']}): {$json['error']['message']}. {$json['error']['description']}\"\n );\n }\n\n return $json;\n }", "public function execute(Carerix_Api_Rest_Request $request)\n {\n $ch = curl_init();\n curl_setopt($ch, CURLOPT_URL, $request->getUrl());\n // This constant is not available when open_basedir or safe_mode are enabled.\n// curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);\n // [AY] CURLOPT_VERBOSE, CURLOPT_HEADER required for capturing response headers\n curl_setopt($ch, CURLOPT_VERBOSE, 1);\n curl_setopt($ch, CURLOPT_HEADER, 1);\n curl_setopt($ch, CURLINFO_HEADER_OUT, 1); // [AY] required for capturing request headers\n curl_setopt($ch, CURLOPT_HTTPHEADER, ['Expect:']);\n curl_setopt($ch, CURLOPT_USERAGENT, __CLASS__);\n curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);\n curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);\n\n $proxy = $request->getProxy();\n if ($proxy) {\n $proxy = parse_url($proxy);\n curl_setopt($ch, CURLOPT_PROXY, $proxy['host']);\n if (array_key_exists('port', $proxy)) {\n curl_setopt($ch, CURLOPT_PROXYPORT, $proxy['port']);\n }\n }\n\n $username = $request->getUsername();\n $password = $request->getPassword();\n\n if ($username && $password) {\n curl_setopt($ch, CURLOPT_USERPWD, $username . ':' . $password);\n }\n\n switch ($request->getMethod()) {\n case self::POST:\n case self::PUT:\n curl_setopt($ch, CURLOPT_CUSTOMREQUEST, $request->getMethod());\n switch ($request->getResponseType()) {\n case 'xml':\n $contentType = 'application/xml';\n break;\n\n case 'json':\n $contentType = 'application/json';\n break;\n\n case 'sencha':\n case 'js':\n $contentType = 'application/javascript';\n break;\n }\n curl_setopt($ch, CURLOPT_HTTPHEADER, ['Content-Type: ' . $contentType]);\n curl_setopt($ch, CURLOPT_POSTFIELDS, $request->getBody());\n break;\n case self::DELETE:\n curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'DELETE');\n break;\n case self::GET:\n default:\n break;\n }\n\n $response = curl_exec($ch);\n\n $this->last_request = curl_getinfo($ch, CURLINFO_HEADER_OUT);\n $this->last_request .= $request->getBody();\n // [AY] in case of 204 No content response response is always empty\n if ($response === false) {\n $errorNumber = curl_errno($ch);\n $error = curl_error($ch);\n curl_close($ch);\n\n throw new Exception($errorNumber . ': ' . $error);\n }\n\n $response = $this->parseResponse($response);\n $this->last_response = $response;\n\n [$header, $body] = explode(\"\\r\\n\\r\\n\", $response, 2);\n\n $code = curl_getinfo($ch, CURLINFO_HTTP_CODE);\n if (!in_array($code, ['200', '201', '204'])) {\n throw new Carerix_Api_Rest_Exception($body, $code);\n }\n curl_close($ch);\n\n return $body;\n }", "function request()\n {\n }", "public function api_call() {\n\n }", "public function get() {\n // $this->isAdmin();\n\n $data = \"This is a test\";\n\n $this->sendHeaders();\n \n $resBody = (object) array();\n $resBody->status = \"200\";\n $resBody->message = \"valid request\";\n $resBody->data = \"This is the data\";\n echo json_encode($resBody);\n\n }", "public function sendAuthenticatedRequest(BaseRequest $request): TopResponseInterface;", "public function send()\n {\n $request = $this->createRequest();\n $contentId = $request->getHeaderLine('Content-Id') ?? '-';\n $request = $request->withAddedHeader('Referrer', $contentId);\n\n $requestLogHeader = \"--------------------------------\\r\\nRequest\\r\\n--------------------------------\\r\\n\";\n $requestLog = (string) $request->getMethod() . ' ' . (string) $request->getUri() . \" HTTP/1.1\\r\\n\";\n foreach ($request->getHeaders() as $header => $values) {\n $requestLog .= $header . ': ' . implode('; ', $values) . \"\\r\\n\";\n }\n $requestLog .= (string) $request->getBody();\n $this->client->log(LOG_INFO, $requestLogHeader . $requestLog);\n\n $options = [\n 'decode_content' => false,\n 'timeout' => $this->client->timeout,\n ];\n if (isset($this->client->proxy)) {\n $options['proxy'] = $this->client->proxy;\n }\n $client = new \\GuzzleHttp\\Client($options);\n try {\n $clientResponse = $client->send($request);\n } catch (\\GuzzleHttp\\Exception\\RequestException $ex) {\n $clientResponse = $ex->getResponse();\n if ($clientResponse === null) {\n throw new HttpException($ex->getMessage(), 0, null, $ex, 500, $contentId);\n }\n }\n\n $responseLogHeader = \"--------------------------------\\r\\nResponse\\r\\n--------------------------------\\r\\n\";\n $responseLog = \"HTTP/1.1 \". $clientResponse->getStatusCode() . \" \" . $clientResponse->getReasonPhrase() . \"\\r\\n\";\n if ($clientResponse->getStatusCode() == 204) {\n $clientResponse = $clientResponse->withoutHeader('Content-Type');\n }\n foreach ($clientResponse->getHeaders() as $header => $values) {\n $responseLog .= $header . ': ' . implode('; ', $values) . \"\\r\\n\";\n }\n $responseLog .= (string) $clientResponse->getBody();\n $this->client->log(LOG_INFO, $responseLogHeader . $responseLog);\n $response = $this->parseResponse($clientResponse, $requestLog, $responseLog);\n $this->handleError($response, $clientResponse);\n\n return $response;\n }", "public function sendRequest($method, $url)\n {\n $this->sendRequestWithValues($method, $url, []);\n }", "function restAction()\n {\n $this->disableLayout();\n $this->_helper->viewRenderer->setNoRender();\n\n $request_data = $this->_getAllParams();\n\n $method_name = $this->_getParam('method');\n if(!isset($method_name))\n {\n echo \"Inconsistent request\";\n exit;\n }\n\n $request_data = $this->_getAllParams();\n // Handle XML-RPC request\n $this->kwWebApiCore = new KwWebApiRestCore($this->apiSetup, $this->apicallbacks, $request_data);\n }", "protected function apiRequest()\n {\n $request = 'post';\n if ($this->method->isGetRequest()) {\n $request = 'get';\n }\n\n return $this->getTelegram()->{$request}($this->method->apiEndpoint(), $this->method->toArray());\n }", "protected static function request_send($url, $headers, $params) {\n $curl = curl_init($url);\n\n //Set curl options\n foreach($params as $param => $value) {\n curl_setopt($curl, constant($param), $value);\n }\n curl_setopt($curl, CURLOPT_HTTPHEADER, $headers);\n\n $response = curl_exec($curl);\n $info = self::get_info($curl);\n\n curl_close($curl);\n return ['body' => $response, 'info' => $info, 'code' => $info['code']];\n }", "public function sendRequest($method, $action, array $params = []) {\n\t\t$request = $this->request($method, $action, $params);\n\t\t$response = $this->client->sendRequest($request);\n\t\t$this->lastResponse = $response;\n\t\treturn $response;\n\t}", "public function process()\n {\n \t$client = $this->client->getClient();\n\n \ttry {\n $response = $client->get($this->buildUrl());\n return new ResponseJson((string)$response->getBody(), true);\n } catch (RequestException $e) {\n return new ResponseJson((string)$e->getResponse()->getBody(), false);\n }\n }", "private function _sendRequest($apiUrl, $args)\n {\n if (is_array($args)) {\n $args = json_encode($args);\n }\n\n $curl = curl_init();\n if (!$curl) {\n throw new TinkoffPaymentNotFoundHttpException(sprintf('Can not create connection to %s with args %s', $apiUrl, $args));\n }\n\n curl_setopt($curl, CURLOPT_URL, $apiUrl);\n curl_setopt($curl, CURLOPT_FOLLOWLOCATION, true);\n curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);\n curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);\n curl_setopt($curl, CURLOPT_POST, true);\n curl_setopt($curl, CURLOPT_HTTPHEADER, array(\n 'Content-Type: application/json',\n 'Content-Length: ' . strlen($args))\n );\n curl_setopt($curl, CURLOPT_POSTFIELDS, $args);\n $out = curl_exec($curl);\n\n $result = json_decode($out);\n if (is_object($result)) {\n $result = (array) $result;\n }\n\n $error = curl_error($curl);\n curl_close($curl);\n\n if (!is_array($result)) {\n throw new TinkoffPaymentApiException(sprintf('Cannot parse result as json. Curl error: \"%s\"', $error));\n }\n\n return $result;\n }", "public function HTTPRequest(){\n\t}", "protected function _send($url)\n\t{\n\t\t//sort the parameters again\n\t\tuksort($this->_params, 'strcmp');\n\t\t\n\t\t//build the query\n\t\t$query = $this->_buildQuery($this->_params);\n\t\t$header = $this->_buildHeader($this->_params);\n\t\t\n\t\t//send it to the server\n\t\t$http = new HttpClient($url);\n\t\t$http->addHeader(\"Authorization: {$header}\");\n\t\t$http->setTransport($this->getTransport());\n\t\t\n\t\t//set the verbose options\n\t\tif($this->getFlag('verbose')){\n\t\t\t$http->setFlag('verbose',true);\n\t\t}\n\t\t\n\t\t$http->setQuery($query);\n\t\t\n\t\t//a bit of error checking\n\t\ttry{\n\t\t\t$http->get();\n\t\t\treturn $http;\n\t\t} catch(HttpClientException $e) {\n\t\t\tif($e->getCode() == 401){\n\t\t\t\tthrow new BaseOAuthException(\"Access Denied to oAuth Server\", 401);\n\t\t\t}\n\t\t\tthrow $e;\n\t\t}\n\t}", "protected function sendRequest($url,$param){\n $this->log(\"Making request to Amazon: \".$this->options['Action']);\n $response = $this->fetchURL($url,$param);\n\n while (isset($response['code']) && $response['code'] == '503' && $this->throttleStop==false){\n $this->sleep();\n $response = $this->fetchURL($url,$param);\n }\n\n $this->rawResponses[]=$response;\n return $response;\n }", "public function getRequest() {}", "public function getRequest() {}", "public function execute_http()\n {\n }", "public function call()\n {\n $this->dispatchRequest($this['request'], $this['response']);\n }", "public function post()\n {\n #HTTP method in uppercase (ie: GET, POST, PATCH, DELETE)\n $sMethod = 'POST';\n $sTimeStamp = gmdate('c');\n\n #Creating the hash\n\t\t$oHash = new Hash($this->getSecretKey());\n\t\t$oHash->addData($this->getPublicKey());\n\t\t$oHash->addData($sMethod);\n\t\t$oHash->addData($this->getApiResource());\n\t\t$oHash->addData($this->getData());\n\t\t$oHash->addData($sTimeStamp);\n\n\t\t$sHash = $oHash->hash();\n\n $rCurlHandler = curl_init();\n curl_setopt($rCurlHandler, CURLOPT_URL, $this->getApiRoot() . $this->getApiResource());\n curl_setopt($rCurlHandler, CURLOPT_RETURNTRANSFER, 1);\n curl_setopt($rCurlHandler, CURLOPT_POSTFIELDS, $this->getData());\n curl_setopt($rCurlHandler, CURLOPT_CUSTOMREQUEST, $sMethod);\n curl_setopt($rCurlHandler, CURLOPT_SSL_VERIFYPEER, 0);\n curl_setopt($rCurlHandler, CURLOPT_SSL_VERIFYHOST, 0);\n\n curl_setopt($rCurlHandler, CURLOPT_HTTPHEADER, [\n \"x-date: \" . $sTimeStamp,\n \"x-hash: \" . $sHash,\n \"x-public: \" . $this->getPublicKey(),\n \"Content-Type: text/json\",\n ]);\n $sOutput = curl_exec($rCurlHandler);\n $iHTTPCode = curl_getinfo($rCurlHandler, CURLINFO_HTTP_CODE);\n curl_close($rCurlHandler);\n\n Log::write('WebRequest', 'POST::REQUEST', $this->getApiRoot() . $this->getApiResource());\n Log::write('WebRequest', 'POST::DATA', $this->getData());\n Log::write('WebRequest', 'POST::HTTPCODE', $iHTTPCode);\n Log::write('WebRequest', 'POST::RESPONSE', $sOutput);\n\n $this->setData('');\n\n if (!in_array($iHTTPCode, [200, 201, 204])) {\n throw new InvalidApiResponse('HttpCode was ' . $iHTTPCode . '. Expected 200|201 on [POST] ' . $this->getApiRoot() . $this->getApiResource());\n }\n return $sOutput;\n }", "public function execute(): object\n {\n $this->buildRequest();\n $client = new HttpClient();\n Log::debug('Creating Digicert Request', [\n 'Method' => $this->requestMethod,\n 'RequestURI' => $this->requestUri,\n 'Options' => $this->options,\n ]);\n RateLimiter::checkLimit();\n $request = $client->request($this->requestMethod, $this->requestUri, $this->options);\n \n return json_decode($request->getBody());\n }", "function rest_do_request($request)\n {\n }", "function sendPost($api, $key, $user, $name, $description) {\r\n $data = http_build_query(array('key'=>$key,\r\n 'user'=>$user,\r\n 'name'=>$name,\r\n 'desc'=>$description,\r\n 'src'=>'sdk-php-1.0')); // management internal parameter\r\n $context = stream_context_create(array('http'=>array(\r\n 'method'=>'POST',\r\n 'header'=>\r\n 'Content-type: application/x-www-form-urlencoded'.\"\\r\\n\".\r\n 'Content-Length: '.strlen($data).\"\\r\\n\",\r\n 'content'=>$data)));\r\n \r\n $fd = fopen($api, 'r', false, $context);\r\n $response = stream_get_contents($fd);\r\n fclose($fd);\r\n return $response;\r\n}", "private function send(): void\n {\n $data = [\n 'code' => $this->status,\n 'message' => $this->message,\n 'datetime' => Carbon::now()\n ];\n\n $config = config(\"tebot.$this->channelConfig\");\n\n $data['title'] = $this->title . ' ' . $config['name'];\n\n if (!empty($this->detail)) $data['detail'] = json_encode($this->detail);\n\n Http::withHeaders(['x-api-key' => $config['key']])->post($config['url'] . '/api/message', $data);\n }", "function callApi($url) {\n\n $ch = curl_init();\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);\n curl_setopt ($ch, CURLOPT_URL, $url);\n\n // Get the response and close the channel.\n $response = curl_exec ( $ch );\n\n if ($response === false) {\n echo \"Failed to \".$action.\" : \" . curl_error ( $ch );\n }\n\n curl_close($ch);\n\n return $response;\n}", "private function doRequest($url, $params) {\n $request= new HttpRequest(new URL($url));\n $request->setHeader('Accept', 'application/json');\n $request->setMethod(HttpConstants::POST);\n $request->setParameters(array_merge(array(\n 'client_id' => $this->clientId,\n 'client_secret' => $this->clientSecret\n ), $params));\n\n $conn= new HttpConnection($url);\n\n $this->cat && $this->cat->debug($this->getClassName(), '>>> ', $request->getRequestString());\n return $conn->send($request);\n }", "public function sendGet()\n\t{\n\t\t$ch = curl_init(\"http://localhost/rest/index.php/book\");\n\t\t//a true, obtendremos una respuesta de la url, en otro caso, \n\t\t//true si es correcto, false si no lo es\n\t\tcurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n\t\t//establecemos el verbo http que queremos utilizar para la petición\n\t\tcurl_setopt($ch, CURLOPT_CUSTOMREQUEST, \"GET\");\n\t\t//obtenemos la respuesta\n\t\t$response = curl_exec($ch);\n\t\t// Se cierra el recurso CURL y se liberan los recursos del sistema\n\t\tcurl_close($ch);\n\t\tif(!$response) {\n\t\t return false;\n\t\t}else{\n\t\t\tvar_dump($response);\n\t\t}\n\t}", "private function sendQueryByCurl() {\n $this->curl = curl_init();\n\n // JSON data request\n $jsonData = $this->getJsonData();\n\n // some params\n $urlParams = $this->getParamsUrlFormat();\n\n $this->setCurlOpts($this->curl, $jsonData, $urlParams);\n $this->setResult(curl_exec($this->curl));\n $this->setHttpCode(curl_getinfo($this->curl, CURLINFO_HTTP_CODE));\n\n curl_close($this->curl);\n }", "function http($url, $method, $postfields = NULL, $headers = array()) {\r\n\t\t//print_r($postfields);exit;\r\n\t\t$this->http_info = array();\r\n\t\t$ci = curl_init();\r\n\t\t/* Curl settings */\r\n\t\t\r\n\t\tcurl_setopt($ci, CURLOPT_USERAGENT, 'PHP-SDK OAuth2.0');\r\n curl_setopt($ci, CURLOPT_CONNECTTIMEOUT, 3);\r\n curl_setopt($ci, CURLOPT_TIMEOUT, 3);\r\n curl_setopt($ci, CURLOPT_RETURNTRANSFER, true);\r\n curl_setopt($ci, CURLOPT_SSL_VERIFYPEER, false);\r\n curl_setopt($ci, CURLOPT_SSL_VERIFYHOST, false);\t\t\r\n\t\tcurl_setopt($ci, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0);\r\n\t\tcurl_setopt($ci, CURLOPT_ENCODING, \"\");\r\n\t\tcurl_setopt($ci, CURLOPT_HEADERFUNCTION, array($this, 'getHeader'));\r\n\t\tcurl_setopt($ci, CURLOPT_HEADER, FALSE);\r\n\t\t\r\n\r\n\t\t\r\n\r\n\t\tswitch ($method) {\r\n\t\t\tcase 'POST':\r\n\t\t\t\tcurl_setopt($ci, CURLOPT_POST, TRUE);\r\n\t\t\t\tif (!empty($postfields)) {\r\n\t\t\t\t\tcurl_setopt($ci, CURLOPT_POSTFIELDS, $postfields);\r\n\t\t\t\t\t$this->postdata = $postfields;\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\t\t\tcase 'DELETE':\r\n\t\t\t\tcurl_setopt($ci, CURLOPT_CUSTOMREQUEST, 'DELETE');\r\n\t\t\t\tif (!empty($postfields)) {\r\n\t\t\t\t\t$url = \"{$url}?{$postfields}\";\r\n\t\t\t\t}\r\n\t\t}\r\n\r\n\r\n\t\t$headers[] = \"API-RemoteIP: \" . $_SERVER['REMOTE_ADDR'];\r\n\t\tcurl_setopt($ci, CURLOPT_URL, $url );\r\n\t\tcurl_setopt($ci, CURLOPT_HTTPHEADER, $headers );\r\n\t\tcurl_setopt($ci, CURLINFO_HEADER_OUT, TRUE );\r\n\r\n\t\t$response = curl_exec($ci);\r\n\t\t\r\n\t\t$this->http_code = curl_getinfo($ci, CURLINFO_HTTP_CODE);\r\n\t\t$this->http_info = array_merge($this->http_info, curl_getinfo($ci));\r\n\t\t$this->url = $url;\r\n\r\n\t\tif ($this->debug) {\r\n\t\t\techo \"=====post data======\\r\\n\";\r\n\t\t\tvar_dump($postfields);\r\n\r\n\t\t\techo '=====info====='.\"\\r\\n\";\r\n\t\t\tprint_r( curl_getinfo($ci) );\r\n\r\n\t\t\techo '=====$response====='.\"\\r\\n\";\r\n\t\t\tprint_r( $response );\r\n\t\t}\r\n\t\tcurl_close ($ci);\r\n\t\treturn $response;\r\n\t}" ]
[ "0.7371428", "0.7199043", "0.7087745", "0.70209515", "0.70004565", "0.69473255", "0.6807229", "0.67288446", "0.66729116", "0.66725934", "0.66430813", "0.662779", "0.6585202", "0.6577935", "0.65731263", "0.654465", "0.64634967", "0.64404744", "0.6436212", "0.6436212", "0.64174426", "0.6412636", "0.6387833", "0.6341859", "0.63345164", "0.6328796", "0.6305991", "0.62826955", "0.6273689", "0.6241008", "0.6228379", "0.62256914", "0.6217782", "0.62127", "0.62054735", "0.62054735", "0.61976933", "0.6188114", "0.61815065", "0.61801296", "0.61466646", "0.6114372", "0.61099124", "0.6102301", "0.60892665", "0.608629", "0.6083914", "0.6066167", "0.60643435", "0.6040927", "0.60381037", "0.60330284", "0.60140425", "0.6002617", "0.6000438", "0.5993902", "0.5991142", "0.59839207", "0.5979219", "0.5973521", "0.59725666", "0.5946345", "0.59459776", "0.594359", "0.5941646", "0.593635", "0.5935432", "0.5934592", "0.5930692", "0.59035707", "0.5902345", "0.58931917", "0.5892469", "0.5892111", "0.5878986", "0.58659816", "0.5854385", "0.5849557", "0.58476245", "0.5827876", "0.5824558", "0.5810228", "0.580397", "0.5799876", "0.5793887", "0.5782534", "0.5782031", "0.57713133", "0.57713133", "0.57684845", "0.57596236", "0.5756567", "0.57521987", "0.5751879", "0.57434976", "0.57412153", "0.5740983", "0.57401943", "0.5730765", "0.5726853", "0.57141685" ]
0.0
-1
Helper function to register a list of hooks.
private function registerHooks(array $hooks, $shopList = null) { foreach($hooks as $hook) { $this->registerHook($hook, $shopList); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract public function register_hook_callbacks();", "abstract protected function register_hook_callbacks();", "public function register(\\WpOrg\\Requests\\Hooks $hooks)\n {\n }", "public function register(\\WpOrg\\Requests\\Hooks $hooks)\n {\n }", "protected function registerHooks() {\n\t\t$hooks = $this->elgg()->hooks;\n\t\t\n\t\t$hooks->registerHandler('action:validate', 'notifications/settings', __NAMESPACE__ . '\\Notifications::saveUserNotificationsSettings');\n\t\t$hooks->registerHandler('entity:url', 'object', __NAMESPACE__ . '\\Widgets::widgetTitleURL');\n\t\t$hooks->registerHandler('export:counters', 'elasticsearch', __NAMESPACE__ . '\\Elasticsearch::exportCounter');\n\t\t$hooks->registerHandler('group_tool_widgets', 'widget_manager', __NAMESPACE__ . '\\Widgets::groupToolBasedWidgets');\n\t\t$hooks->registerHandler('handlers', 'widgets', __NAMESPACE__ . '\\Widgets::registerHandlers');\n\t\t$hooks->registerHandler('prepare', 'notification:create:object:thewire', __NAMESPACE__ . '\\Notifications::prepareNotificationSubject', 600);\n\t\t$hooks->registerHandler('prepare', 'notification:create:object:thewire', __NAMESPACE__ . '\\Notifications::prepareReshareNotification', 700);\n\t\t$hooks->registerHandler('register', 'menu:entity', __NAMESPACE__ . '\\Menus::entityRegisterImprove', 501);\n\t\t$hooks->registerHandler('register', 'menu:social', __NAMESPACE__ . '\\Menus::entityRegisterReshare');\n\t\t$hooks->registerHandler('register', 'menu:entity', __NAMESPACE__ . '\\Menus::entityRegisterFeature');\n\t\t$hooks->registerHandler('register', 'menu:owner_block', __NAMESPACE__ . '\\Menus::ownerBlockRegister');\n\t\t$hooks->registerHandler('register', 'menu:page', __NAMESPACE__ . '\\Menus::pageRegister');\n\t\t$hooks->registerHandler('supported_types', 'entity_tools', __NAMESPACE__ . '\\Migrate::registerClass');\n\t}", "private function hooks() {\n\t\t// Register rewrite tags.\n\t\tadd_action( 'wct_add_rewrite_tags', array( $this, 'add_rewrite_tags' ) );\n\n\t\t// Register the rewrite rules\n\t\tadd_action( 'wct_add_rewrite_rules', array( $this, 'add_rewrite_rules' ) );\n\n\t\t// Register the permastructs\n\t\tadd_action( 'wct_add_permastructs', array( $this, 'add_permastructs' ) );\n\t}", "public function add_hooks()\n {\n }", "public function add_hooks()\n {\n }", "public function add_all_hook() {\n\t\tadd_action( 'all', [ $this, 'wrap_hook_callbacks' ] );\n\t}", "public function registerHooks() {\n\t\t// Nothing to do here right now\n\t\t// Others might want to know about this and get a chance to do their own work (like messing with our's :) )\n\t\tdo_action( 'pixelgrade_portfolio_registered_hooks' );\n\t}", "public function register_hooks() {\n\t\tadd_action( 'enqueue_block_editor_assets', array( $this, 'enqueue_block_editor_assets' ) );\n\t\tadd_filter( 'block_categories', array( $this, 'add_block_category' ) );\n\n\t\t$block_integrations = array(\n\t\t\tnew WPSEO_How_To_Block(),\n\t\t\tnew WPSEO_FAQ_Block(),\n\t\t);\n\n\t\tforeach ( $block_integrations as $block_integration ) {\n\t\t\t$block_integration->register_hooks();\n\t\t}\n\t}", "public static function register_hooks()\n\t{\n\t\tif (static::$hooks_registered) {\n\t\t\treturn;\n\t\t}\n\n\t\t// register all the scripts\n\t\tadd_action('wp_enqueue_scripts', [__CLASS__, '_wp_enqueue_scripts']);\n\n\t\t// add defer/async attributes if they are specified\n\t\tadd_filter('script_loader_tag', [__CLASS__, '_script_loader_tag'], 10, 2);\n\n\t\tadd_action('wp_footer', [__CLASS__, '_wp_footer'], static::$footer_scripts_priority);\n\n\t\tstatic::$hooks_registered = true;\n\t}", "private function add( $hooks, $hook, $component, $callback, $priority, $acc_args ) {\n\t\t$hooks[] = [\n\t\t\t'hook' => $hook, // tag.\n\t\t\t'component' => $component, // class.\n\t\t\t'callback' => $callback, // method.\n\t\t\t'priority' => $priority, // priority.\n\t\t\t'acc_args' => $acc_args, // accepted args.\n\t\t];\n\n\t\treturn $hooks;\n\t}", "public function hooks()\n {\n foreach ($this->getActions() as $key => $action) {\n switch (true) {\n case $action instanceof HooksAdminInterface:\n if (is_admin()) {\n $action->hooks();\n }\n break;\n case $action instanceof HooksFrontInterface:\n if (!is_admin()) {\n $action->hooks();\n }\n break;\n case $action instanceof HooksInterface:\n $action->hooks();\n break;\n }\n }\n }", "public function register_hooks() {\n\t\tadd_action( 'admin_init', [ $this, 'admin_init' ] );\n\t}", "public function register(\\WpOrg\\Requests\\HookManager $hooks)\n {\n }", "private function hooks(): void {\n\t\t// Steps loader hooks.\n\n\t\tadd_filter(\n\t\t\t'learndash_breezy_localize_script_data',\n\t\t\t$this->container->callback( Steps\\Loader::class, 'add_scripts_data' )\n\t\t);\n\t\tadd_action(\n\t\t\t'wp_ajax_' . Steps\\Loader::$sub_steps_ajax_action_name,\n\t\t\t$this->container->callback( Steps\\Loader::class, 'handle_sub_steps_ajax_request' )\n\t\t);\n\t\tadd_action(\n\t\t\t'wp_ajax_nopriv_' . Steps\\Loader::$sub_steps_ajax_action_name,\n\t\t\t$this->container->callback( Steps\\Loader::class, 'handle_sub_steps_ajax_request' )\n\t\t);\n\t}", "public function attach_hooks() {\n\t\t$this->define_hooks();\n\t}", "public function registerHooks()\n {\n add_action('wp_enqueue_scripts', [$this, 'load_scripts_n_styles']);\n add_action('after_setup_theme', [$this, 'add_theme_support']);\n add_action('widgets_init', [$this, 'tf_widgets_init']);\n add_action('after_setup_theme', [$this, 'register_menus']);\n\n if( function_exists('acf_add_options_page') ) {\n acf_add_options_page();\n }\n }", "public function attach_hooks() {\n\n\t\t$this->define_hooks();\n\n\t}", "public function setHooks($value){$this->_hooks = self::forceArray($value);}", "function setHooks(array $hookInfo) {\n $hooks = Helper::getHooks();\n $hooksToSet = $hooks->getValue() ?: array();\n foreach ($hookInfo as $currentHook) {\n $hooksToSet[$currentHook['name']] = $hooksToSet[$currentHook['name']] ?: array();\n $hooksToSet[$currentHook['name']][] = array(\n 'class' => isset($currentHook['class']) ? $currentHook['class'] : $this->hookEndpointClass,\n 'function' => $currentHook['function'],\n 'filepath' => isset($currentHook['filepath']) ? $currentHook['filepath'] : Text::getSubstringAfter($this->hookEndpointFilePath, SOURCEPATH, $this->hookEndpointFilePath),\n 'use_standard_model' => isset($currentHook['use_standard_model']) ? $currentHook['use_standard_model'] : false,\n );\n }\n $hooks->setValue($hooksToSet);\n }", "public function define_hooks()\n\t{\n\t\t$base = new Base;\n\t\t$this->loader->add_action('init', $base, 'add_post_types');\n\t}", "public function register_hooks() {\n\t\t\\add_action( 'edited_term', array( $this, 'save_meta' ), PHP_INT_MAX, 3 );\n\t\t\\add_action( 'delete_term', array( $this, 'delete_meta' ), PHP_INT_MAX, 3 );\n\t}", "private function define_hooks() {\n\n\t\tadd_action( 'add_meta_boxes', array( $this, 'hook_add_meta_boxes' ), 10, 1 );\n\n\t\tadd_action( 'save_post', array( $this, 'hook_save_post' ), 10, 1 );\n\n\t\treturn;\n\t}", "public function hooks() {\n\t\tadd_action( 'add_meta_boxes', [ $this, 'add_boxes' ] );\n\t\tadd_action( 'save_post', [ $this, 'save' ] );\n\n\t\tforeach ( $this->taxonomy_allowed as $taxonomy ) {\n\t\t\tadd_action( \"{$taxonomy}_edit_form_fields\", [ $this, 'display_taxonomy_boxes' ], 99 );\n\t\t\tadd_action( \"edited_{$taxonomy}\", [ $this, 'save_taxonomy' ] );\n\t\t}\n\t}", "public function init_hooks() {\n\t}", "public function set_hooks()\n\t{\n\t\tadd_action('init', 'register_shortcodes');\n\t}", "public function hooks() {\n\t\tregister_activation_hook( __FILE__, array( $this, '_activate' ) );\n\t\tregister_deactivation_hook( __FILE__, array( $this, '_deactivate' ) );\n\n\t\tadd_action( 'init', array( $this, 'init' ) );\n\t}", "private function _createHooks($hooks = FALSE)\n\t{\n\t\t$EE =& get_instance();\n\n\t\tif (!$hooks)\n\t\t\t$hooks = $this->hooks;\n\n\t\t$hook_template = array(\n\t\t\t'class' => __CLASS__,\n\t\t\t'settings' => FALSE,\n\t\t\t'version' => $this->version,\n\t\t);\n\n\t\tforeach ($hooks as $key => $hook)\n\t\t{\n\t\t\tif (is_array($hook))\n\t\t\t{\n\t\t\t\t$data['hook'] = $key;\n\t\t\t\t$data['method'] = (isset($hook['method']) === TRUE) ? $hook['method'] : $key;\n\t\t\t\t$data = array_merge($data, $hook);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$data['hook'] = $data['method'] = $hook;\n\t\t\t}\n\n\t\t\t$hook = array_merge($hook_template, $data);\n\t\t\t$hook['settings'] = serialize($hook['settings']);\n\t\t\t$EE->db->insert('exp_extensions', $hook);\n\t\t}\n\t}", "function registerHooks()\n{\n add_action('after_setup_theme', 'setupTheme');\n add_action('rest_api_init', 'registerEndpoints');\n}", "public function register_hooks() {\n\t\t// This would only happen if a theme supports BOTH site-logo and custom-logo for some reason\n\t\tif ( current_theme_supports( 'custom-logo' ) ) {\n\t\t\treturn;\n\t\t}\n\n\t\tadd_action( 'wp_head', array( $this, 'head_text_styles' ) );\n\t\tadd_action( 'customize_register', array( $this, 'customize_register' ) );\n\t\tadd_action( 'customize_preview_init', array( $this, 'preview_enqueue' ) );\n\t\tadd_action( 'delete_attachment', array( $this, 'reset_on_attachment_delete' ) );\n\t\tadd_filter( 'body_class', array( $this, 'body_classes' ) );\n\t\tadd_filter( 'image_size_names_choose', array( $this, 'media_manager_image_sizes' ) );\n\t\tadd_filter( 'display_media_states', array( $this, 'add_media_state' ) );\n\t}", "public static function initHooks() {\n\t\t$m = self::pw('modules')->get('DpagesMar');\n\n\t\t$m->addHook('Page(pw_template=arproc)::subfunctionUrl', function($event) {\n\t\t\t$event->return = self::subfunctionUrl($event->arguments(0));\n\t\t});\n\n\t\t$m->addHook('Page(pw_template=arproc)::arprocUrl', function($event) {\n\t\t\t$event->return = self::arprocUrl($event->arguments(0));\n\t\t});\n\n\t\t$m->addHook('Page(pw_template=arproc)::glmainUrl', function($event) {\n\t\t\t$event->return = self::glmainUrl($event->arguments(0));\n\t\t});\n\t}", "protected function setupHookBundles()\n {\n $bundle = new Zikula_HookManager_SubscriberBundle(\n $this->name, 'subscriber.pages.ui_hooks.pages',\n 'ui_hooks',\n $this->__('Pages Hooks')\n );\n $bundle->addEvent('display_view', 'pages.ui_hooks.pages.display_view');\n $bundle->addEvent('form_edit', 'pages.ui_hooks.pages.form_edit');\n $bundle->addEvent('form_delete', 'pages.ui_hooks.pages.form_delete');\n $bundle->addEvent('validate_edit', 'pages.ui_hooks.pages.validate_edit');\n $bundle->addEvent('validate_delete', 'pages.ui_hooks.pages.validate_delete');\n $bundle->addEvent('process_edit', 'pages.ui_hooks.pages.process_edit');\n $bundle->addEvent('process_delete', 'pages.ui_hooks.pages.process_delete');\n $this->registerHookSubscriberBundle($bundle);\n\n $bundle = new Zikula_HookManager_SubscriberBundle(\n $this->name,\n 'subscriber.pages.filter_hooks.pagesfilter',\n 'filter_hooks', $this->__('Pages Filter Hooks')\n );\n $bundle->addEvent('filter', 'pages.filter_hooks.pages.filter');\n $this->registerHookSubscriberBundle($bundle);\n }", "private function initHooks() {\r\n if (!is_dir(BotHooks::HOOK_DIR)) {\r\n throw new Slackbot\\Exception\\ConfigException('Cannot locate hook directory \"' . BotHooks::HOOK_DIR . '\"');\r\n }\r\n \r\n $hookFiles = glob(BotHooks::HOOK_DIR . '/[A-Z][a-z]*Hook.php');\r\n foreach ($hookFiles as $hookFile) {\r\n // include the file\r\n require_once $hookFile;\r\n \r\n // load a class that has the same name as the file\r\n $fileName = substr($hookFile, strrpos($hookFile, '/') + 1);\r\n $className = 'Slackbot\\\\Hooks\\\\' . substr($fileName, 0, strlen($fileName) - 4);\r\n $hookInstance = new $className();\r\n if (!class_exists($className) && is_subclass_of($hookInstance, 'Slackbot\\\\Hooks\\\\Hook')) {\r\n unset($hookInstance);\r\n continue;\r\n }\r\n \r\n // store the hook\r\n $this->hooks[$hookInstance->getName()] = $hookInstance;\r\n // process the triggers supported by the hook\r\n $this->loadHookTriggers($hookInstance);\r\n }\r\n \r\n\t\t// process the tokens supported for the hooks\r\n\t\t$this->loadHookConfig();\r\n }", "protected function defineActivationHooks(): void {\n\t\t$backend = $this->getBackend();\n\t\t$pluginName = $this->getFilename();\n\t\t$handlers = [\"activate\", \"deactivate\", \"uninstall\"];\n\t\tforeach ($handlers as $handler) {\n\t\t\t\n\t\t\t// for each of our handlers, we hook an action handler to our\n\t\t\t// backend component. the purpose of the BackendInterface is\n\t\t\t// to guarantee that we have three methods, one for each of\n\t\t\t// these hooks.\n\t\t\t\n\t\t\t$hook = $handler . \"_\" . $pluginName;\n\t\t\t$this->loader->addAction($hook, $backend, $handler);\n\t\t}\n\t}", "private function add_hooks(){\n\t\n\t\tadd_action( 'plugin_action_links_' . UCLACOMPONENTSWP_PLUGIN_BASE, array( $this, 'add_plugin_action_link' ), 20 );\n\t\tadd_action( 'admin_enqueue_scripts', array( $this, 'enqueue_backend_scripts_and_styles' ), 20 );\n\t\tadd_action( 'wp_enqueue_scripts', array( $this, 'enqueue_public_scripts_and_styles' ), 20 );\n\t\n\t}", "public static function register()\n\t{\n\t\tglobal $modSettings;\n\n\t\tif (empty($modSettings['emoji_selection']) || $modSettings['emoji_selection'] === 'noemoji')\n\t\t{\n\t\t\treturn [];\n\t\t}\n\n\t\t// $hook, $function, $file\n\t\treturn [\n\t\t\t[\n\t\t\t\t'integrate_pre_bbc_parser',\n\t\t\t\t'\\\\ElkArte\\\\EmojiIntegrate::integrate_pre_bbc_parser'\n\t\t\t],\n\t\t\t[\n\t\t\t\t'integrate_editor_plugins',\n\t\t\t\t'\\\\ElkArte\\\\EmojiIntegrate::integrate_editor_plugins'\n\t\t\t],\n\t\t];\n\t}", "public function add_hooks() {\n\n\t\t// Add action hooks\n\t\t$this->add_actions();\n\n\t\t// Add filter hooks\n\t\t$this->add_filters();\n\n\t\treturn null;\n\n\t}", "public function load_hooks() {\n\t\tadd_action( 'init', [ $this, 'updater' ] );\n\t\t$this->load_settings();\n\t}", "public function init_hooks()\n {\n register_activation_hook(__FILE__, array($this, 'run_install'));\n register_deactivation_hook(__FILE__, array($this, 'run_uninstall'));\n }", "public function register_hooks() {\n\t\t\\add_action( 'admin_action_duplicate_post_check_changes', [ $this, 'check_changes_action_handler' ] );\n\t}", "public function register_hooks() {\n\t\tadd_action( 'admin_init', [ $this, 'intercept_save_update_notification' ] );\n\t}", "public function addHooks() {\n\t\tadd_action( 'after_setup_theme', array( $this, 'bufferStart' ) );\n\t\tadd_action( 'wp_shutdown', array( $this, 'bufferEnd' ) );\n\t}", "function init_hooks() {\n\tregister_activation_hook( __FILE__, __NAMESPACE__ . '\\activate_plugin' );\n\tregister_deactivation_hook( __FILE__, __NAMESPACE__ . '\\deactivate_plugin' );\n\tregister_uninstall_hook( __FILE__, __NAMESPACE__ . '\\uninstall_plugin' );\n}", "public function setup_hooks() {\n\t\t$taxonomies = get_taxonomies( array( 'show_ui' => true ) );\n\t\t$global = $this;\n\t\tarray_map(\n\t\t\tfunction ( $taxonomy ) use ( $global ) {\n\t\t\t\tadd_action( $taxonomy . '_add_form_fields', array( $global, 'add_taxonomy_fields' ) );\n\t\t\t\tadd_action( $taxonomy . '_edit_form_fields', array( $global, 'edit_taxonomy_fields' ) );\n\t\t\t\tadd_action( 'create_' . $taxonomy, array( $global, 'save_taxonomy_custom_meta' ) );\n\t\t\t\tadd_action( 'edited_' . $taxonomy, array( $global, 'save_taxonomy_custom_meta' ) );\n\t\t\t},\n\t\t\t$taxonomies\n\t\t);\n\n\t\t// Add ordering metaboxes.\n\t\tadd_action( 'add_meta_boxes', array( $this, 'taxonomy_ordering' ), 10, 2 );\n\t\tadd_action( 'save_post', array( $this, 'save_taxonomy_ordering' ), 10, 4 );\n\t}", "public function load_hooks() {\n\t\tadd_action( 'admin_init', [ $this, 'addons_page_init' ] );\n\n\t\t$this->add_settings_tabs();\n\t}", "public static function boot()\n {\n $hooks = config('hooks');\n $actions = $hooks['actions'];\n $filters = $hooks['filters'];\n\n foreach ($actions as $action) {\n add_action($action[0], $action[1]);\n }\n\n foreach ($filters as $event => $callback) {\n add_filter($event, $callback);\n }\n }", "function registerHooks(): void\n{\n\tregister_activation_hook( __FILE__, __NAMESPACE__ . '\\\\flushRewriteRules' );\n\tregister_deactivation_hook( __FILE__, __NAMESPACE__ . '\\\\flushRewriteRules' );\n\tregister_uninstall_hook( __FILE__, __NAMESPACE__ . '\\\\flushRewriteRules' );\n}", "public function set_hooks() {\n\t\tadd_action( 'init', array( $this, 'manage_linked_taxonomy_caps' ), 50 );\n\t\tadd_filter( 'tmsc_register_taxonomy_object_types', array( $this, 'register_linked_taxonomies' ), 20, 2 );\n\n\n\t\tif ( is_admin() || defined( 'DOING_CRON' ) || ( defined( 'WP_CLI' ) && WP_CLI ) ) {\n\t\t\t// Save our linked taxonomies when a post is created/edited.\n\t\t\tforeach ( $this->linked_types as $post_type => $tax ) {\n\t\t\t\t// Our link save post logic\n\t\t\t\tadd_action( \"save_post_{$post_type}\", array( $this, 'save_linked_taxonomy' ), 20,3 );\n\t\t\t}\n\t\t}\n\n\t\t// Ensure we delete the term data when we delete a post.\n\t\tadd_action( 'before_delete_post', array( $this, 'delete_linked_taxonomy' ) );\n\t\tadd_action( 'before_delete_post', array( $this, 'delete_child_posts' ) );\n\t}", "protected function add()\n {\n $this->numArgs = $this->findNumArgs($this->callback);\n if (is_string($this->callback) && class_exists($this->callback)) {\n $this->useCallbackManager('invoke', $this->callback);\n }\n foreach ((array) $this->hook as $hook) {\n \\add_filter($hook, $this->callback, $this->priority, $this->numArgs);\n }\n }", "public function register_hooks() {\n\t\tadd_filter( 'acf/pre_render_fields', array( $this, 'fields_on_translated_options_page' ), 10, 2 );\n\t\tadd_filter( 'acf/update_value', array( $this, 'overwrite_option_value' ), 10, 4 );\n\t\tadd_filter( 'acf/validate_post_id', [ $this, 'append_language_code_for_option_pages' ] );\n\t}", "private function init_hooks() {\n\t\t\tadd_action( 'init', array( $this, 'init' ), 0 );\n\t\t}", "function _wp_call_all_hook($args)\n {\n }", "public function initialize_hooks() {\n\t\t\n add_action( 'add_meta_boxes', array( $this, 'add_meta_box' ) );\n\t\tadd_action( 'save_post', array( $this, 'save_post' ) );\n\t\t\n\t}", "public function setLocalHooks(array $hooks) {\n\t\t$this->localHooks = $hooks;\n\t}", "public function execute_hooks() {\n\n\t\t$hooks = get_option( $this->settings_field );\n\n\t\tforeach ( (array) $hooks as $hook => $array ) {\n\n\t\t\t// Add new content to hook.\n\t\t\tif ( ! empty( $array['content'] ) ) {\n\t\t\t\tadd_action( $hook, array( $this, 'execute_hook' ) );\n\t\t\t}\n\n\t\t\t// Unhook stuff.\n\t\t\tif ( isset( $array['unhook'] ) ) {\n\n\t\t\t\tforeach ( (array) $array['unhook'] as $function ) {\n\t\t\t\t\tremove_action( $hook, $function );\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t}", "function _elggx_lists_init() {\n\telgg_register_plugin_hook_handler('elggx_lists:can', 'all', '_elggx_list_perms_handler');\n\t\n\telgg_register_plugin_hook_handler('unit_test', 'system', '_elggx_lists_test');\n\n\tforeach (array('add_item', 'remove_item', 'rearrange_items') as $action) {\n\t\telgg_register_action(\n\t\t\t\"elggx_lists/$action\",\n\t\t\tdirname(__FILE__) . \"/actions/elggx_lists/$action.php\"\n\t\t);\n\t}\n}", "protected function addHookableConfigs()\n {\n // TODO: add hookable configs\n }", "public function set_hooks() {\n\t\tadd_action( 'wp_head', array( $this, 'do_meta_tags' ), 0 );\n\t\t\tadd_filter( 'document_title_parts', array( $this, 'filter__the_title_parts' ), 1, 4 );\n\t}", "public function register_hooks() {\n\t\t\\add_filter( 'category_description', [ $this, 'add_shortcode_support' ] );\n\t\t\\add_filter( 'term_description', [ $this, 'add_shortcode_support' ] );\n\t}", "private function init_hooks() {\n\t\t\tadd_action( 'init', array( $this, 'init' ), 0 );\n\t\t\tregister_activation_hook( __FILE__, array( $this, 'activate' ) );\n\n\t\t\t// Plugin update notifications\n\t\t\tadd_action( 'admin_init', array( $this, 'plugin_update' ) );\n\t\t}", "private function hooks() {\n\n\t\t\t// plugin meta\n\t\t\tadd_filter( 'plugin_row_meta', array( $this, 'plugin_meta' ), null, 2 );\n\n\t\t\t// Add template folder\n\t\t\tadd_filter( 'affwp_template_paths', array( $this, 'template' ) );\n\n\t\t}", "private function hooks() {\n\n\t\t$plugin_admin = shortbuild_bu_hooks();\n add_filter( 'advanced_import_demo_lists', array( $plugin_admin, 'add_demo_lists' ), 10, 1 );\n add_filter( 'admin_menu', array( $plugin_admin, 'import_menu' ), 10, 1 );\n add_filter( 'wp_ajax_shortbuild_bu_getting_started', array( $plugin_admin, 'install_advanced_import' ), 10, 1 );\n add_filter( 'admin_enqueue_scripts', array( $plugin_admin, 'enqueue_styles' ), 10, 1 );\n add_filter( 'admin_enqueue_scripts', array( $plugin_admin, 'enqueue_scripts' ), 10, 1 );\n\n /*Replace terms and post ids*/\n add_action( 'advanced_import_replace_term_ids', array( $plugin_admin, 'replace_term_ids' ), 20 );\n }", "private function define_admin_hooks()\n {\n $this->loader->add_action('init',$this,'load_options');\n $this->loader->add_action('plugins_loaded','WordPress_Reactro_Admin', 'load_framework');\n }", "private function init_hooks() {\n\n register_activation_hook( __FILE__, array( 'IWJ_Install', 'install' ) );\n register_deactivation_hook( __FILE__, array('IWJ_Install', 'deactive') );\n\n add_action('plugins_loaded', array('IWJ_Install', 'update'));\n add_action('wp_loaded', array('IWJ_Install', 'update2'));\n\n add_action( 'wpmu_new_blog', array( 'IWJ_Install', 'new_blog' ), 10, 6 );\n add_action( 'delete_blog', array( 'IWJ_Install', 'delete_blog' ), 10, 2 );\n\n add_action( 'after_setup_theme', array( $this, 'setup_environment' ) );\n add_action( 'init', array( $this, 'init' ), 0 );\n\n add_action('wp_logout', array($this, 'end_session'));\n add_action('wp_login', array($this, 'end_session'));\n\n //add_action('activated_plugin',array($this, 'active_plugin_error'));\n }", "private function register_hooks()\n {\n // Conditional\n add_shortcode('dr_conditional_devices', array($this, 'diviroids_conditional_devices'));\n add_shortcode('dr_conditional_roles', array($this, 'diviroids_conditional_roles'));\n\n // Add the menu/links shortcodes\n add_shortcode('dr_menu', array($this, 'diviroids_menu'));\n add_shortcode('dr_permalink', array($this, 'diviroids_permalink'));\n\n // Add the module shortcodes\n add_shortcode('dr_module', array($this, 'diviroids_module'));\n\n // Add the user shortcodes\n add_shortcode('dr_user_login', array($this, 'diviroids_user_login'));\n add_shortcode('dr_user_id', array($this, 'diviroids_user_id'));\n add_shortcode('dr_user_email', array($this, 'diviroids_user_email'));\n add_shortcode('dr_user_level', array($this, 'diviroids_user_level'));\n add_shortcode('dr_user_firstname', array($this, 'diviroids_user_firstname'));\n add_shortcode('dr_user_lastname', array($this, 'diviroids_user_lastname'));\n add_shortcode('dr_user_displayname', array($this, 'diviroids_user_displayname'));\n add_shortcode('dr_user_roles', array($this, 'diviroids_user_roles'));\n add_shortcode('dr_user_bio', array($this, 'diviroids_user_bio'));\n add_shortcode('dr_user_avatar', array($this, 'diviroids_user_avatar'));\n }", "private function hooks() {\n\n\t\tadd_filter( 'wpcd_settings_tabs', array( &$this, 'settings_tabs' ) ); // add a new tab to the settings page.\n\n\t\tadd_filter( 'wpcd_settings_metaboxes', array( &$this, 'settings_metaboxes' ) ); // add new metaboxes to our new tab on the settings pages.\n\n\t}", "protected function setupHookBundles()\n {\n // Subscriber bundles\n\n $bundle = new Zikula_HookManager_SubscriberBundle($this->name, 'subscriber.users.ui_hooks.user', 'ui_hooks', $this->__('User management hooks'));\n $bundle->addEvent('display_view', 'users.ui_hooks.user.display_view');\n \n $bundle->addEvent('form_edit', 'users.ui_hooks.user.form_edit');\n $bundle->addEvent('validate_edit', 'users.ui_hooks.user.validate_edit');\n $bundle->addEvent('process_edit', 'users.ui_hooks.user.process_edit');\n \n $bundle->addEvent('form_delete', 'users.ui_hooks.user.form_delete');\n $bundle->addEvent('validate_delete', 'users.ui_hooks.user.validate_delete');\n $bundle->addEvent('process_delete', 'users.ui_hooks.user.process_delete');\n $this->registerHookSubscriberBundle($bundle);\n \n $bundle = new Zikula_HookManager_SubscriberBundle($this->name, 'subscriber.users.ui_hooks.registration', 'ui_hooks', $this->__('Registration management hooks'));\n $bundle->addEvent('display_view', 'users.ui_hooks.registration.display_view');\n \n $bundle->addEvent('form_edit', 'users.ui_hooks.registration.form_edit');\n $bundle->addEvent('validate_edit', 'users.ui_hooks.registration.validate_edit');\n $bundle->addEvent('process_edit', 'users.ui_hooks.registration.process_edit');\n \n $bundle->addEvent('form_delete', 'users.ui_hooks.registration.form_delete');\n $bundle->addEvent('validate_delete', 'users.ui_hooks.registration.validate_delete');\n $bundle->addEvent('process_delete', 'users.ui_hooks.registration.process_delete');\n $this->registerHookSubscriberBundle($bundle);\n \n // Bundle for the login form\n $bundle = new Zikula_HookManager_SubscriberBundle($this->name, 'subscriber.users.ui_hooks.login_screen', 'ui_hooks', $this->__('Login form and block hooks'));\n $bundle->addEvent('form_edit', 'users.ui_hooks.login_screen.form_edit');\n $bundle->addEvent('validate_edit', 'users.ui_hooks.login_screen.validate_edit');\n $bundle->addEvent('process_edit', 'users.ui_hooks.login_screen.process_edit');\n $this->registerHookSubscriberBundle($bundle);\n\n // Bundle for the login block\n $bundle = new Zikula_HookManager_SubscriberBundle($this->name, 'subscriber.users.ui_hooks.login_block', 'ui_hooks', $this->__('Login form and block hooks'));\n $bundle->addEvent('form_edit', 'users.ui_hooks.login_block.form_edit');\n $bundle->addEvent('validate_edit', 'users.ui_hooks.login_block.validate_edit');\n $bundle->addEvent('process_edit', 'users.ui_hooks.login_block.process_edit');\n $this->registerHookSubscriberBundle($bundle);\n }", "public function add_hooks() {\n\t\tadd_action( 'types_leagacy_editor_callback_init', array( $this, 'remove_presscore_hooks' ) );\n\t}", "function routes_install()\r\n{\r\n\tregister_hook('init_1', 'addon/routes/routes.php', 'routes_init_1');\r\n\tregister_hook('post_local', 'addon/routes/routes.php', 'routes_post_local_end_hook');\r\n\tregister_hook('profile_tabs', 'addon/routes/routes.php', 'routes_profile_tabs_hook');\r\n}", "public static function initHooks() {\n\t\t$m = self::pw('modules')->get('ItmXrefs');\n\n\t\t$m->addHook('Page(pw_template=itm)::xrefUrlUpcx', function($event) {\n\t\t\t$event->return = self::xrefUrlUpcx($event->arguments(0));\n\t\t});\n\n\t\t$m->addHook('Page(pw_template=itm)::xrefUrlVxm', function($event) {\n\t\t\t$event->return = self::xrefUrlVxm($event->arguments(0));\n\t\t});\n\n\t\t$m->addHook('Page(pw_template=itm)::xrefUrlCxm', function($event) {\n\t\t\t$event->return = self::xrefUrlCxm($event->arguments(0));\n\t\t});\n\n\t\t$m->addHook('Page(pw_template=itm)::xrefUrlKim', function($event) {\n\t\t\t$event->return = self::xrefUrlKim($event->arguments(0));\n\t\t});\n\n\t\t$m->addHook('Page(pw_template=itm)::xrefUrlMxrfe', function($event) {\n\t\t\t$event->return = self::xrefUrlMxrfe($event->arguments(0));\n\t\t});\n\n\t\t$m->addHook('Page(pw_template=itm)::xrefUrlSubstitutes', function($event) {\n\t\t\t$event->return = self::xrefUrlSubstitutes($event->arguments(0));\n\t\t});\n\n\t\t$m->addHook('Page(pw_template=itm)::xrefUrlBom', function($event) {\n\t\t\t$event->return = self::xrefUrlBom($event->arguments(0));\n\t\t});\n\n\t\t$m->addHook('Page(pw_template=itm)::xrefUrlAddm', function($event) {\n\t\t\t$event->return = self::xrefUrlAddm($event->arguments(0));\n\t\t});\n\t}", "private function init_hooks() {\n\t\t\tadd_action( 'after_setup_theme', array( $this, 'include_template_functions' ), 11 );\n\t\t\tadd_action( 'init', array( $this, 'init' ), 0 );\n\t\t\tregister_activation_hook( __FILE__, array( $this, 'activate' ) );\n\t\t}", "function register_hook($event, $advise, &$obj, $method, $param=NULL) {\n $this->_hooks[$event.'_'.$advise][] = array(&$obj, $method, $param);\n }", "function setHooks() {\n add_filter('manage_pages_columns', array($this, 'addColumn')); \n add_action('manage_pages_custom_column', array($this,'displayTemplateColumn'), 10, 2);\n\n // Hooks for filtering pages by available templates\n add_action('restrict_manage_posts', array($this, 'displayFilterOptions'));\n add_filter('parse_query', array($this, 'getPagesByTemplate'));\n }", "public function hook() {\n\t\t// the WPML API is not included by default\n\t\trequire_once ICL_PLUGIN_PATH . '/inc/wpml-api.php';\n\n\t\t$this->hook_actions();\n\t\t$this->hook_filters();\n\t}", "public function installHooks()\n {\n if (\\current_user_can('edit_posts') || $this->isWpCLI()) {\n \\add_action('future_to_publish', [$this, 'handleFutureToPublish']);\n\n foreach ($this->getConfig()->allowedPostTypes() as $postType) {\n \\add_action(\"rest_after_insert_{$postType}\", [$this, 'handleRestUpdatePost']);\n }\n\n \\add_action('save_post', [$this, 'handleSavePost'], 99, 1);\n\n \\add_action('transition_post_status', [$this, 'handleTransitionPostStatus'], 99, 3);\n \\add_action('trashed_post', [$this, 'handleTrashedPost']);\n\n\n \\add_action('swiftype_batch_post_index', [$this, 'handlePostBatchIndex']);\n \\add_action('swiftype_batch_post_delete', [$this, 'handlePostBatchDelete']);\n }\n }", "protected function setup_hooks() {\n\t\tadd_action( 'wp_ajax_nopriv_load_more', [ $this, 'ajax_script_post_load_more' ] );\n\t\tadd_action( 'wp_ajax_load_more', [ $this, 'ajax_script_post_load_more' ] );\n\n\t\t/**\n\t\t * Create a short code.\n\t\t *\n\t\t * Usage echo do_shortcode('[post_listings]');\n\t\t */\n\t\tadd_shortcode( 'post_listings', [ $this, 'post_script_load_more' ] );\n\t}", "public function registerGates(): void\n {\n $gate = Gate::getFacadeRoot();\n\n foreach ($this->gates ?? [] as $action => $handler) {\n $gate->define($action, $handler);\n }\n }", "public function getPreCommitHookList() {}", "protected function setup_hooks(){\n add_action('add_meta_boxes', [$this, 'add_custom_meta_box']);\n add_action('save_post', [$this, 'save_post_meta_data']);\n }", "function add_wp_hooks(){\n\n\t\t$comments = new WordpressConnectComments();\n\t\t$like = new WordpressConnectLikeButton();\n\n\t}", "public function hook();", "public function register_hooks() {\n\t\tif ( $this->page_helper->get_current_yoast_seo_page() === 'wpseo_dashboard' ) {\n\t\t\t\\add_action( 'admin_init', [ $this, 'maybe_cleanup_notification' ] );\n\t\t}\n\n\t\tif ( $this->indexing_helper->has_reason() ) {\n\t\t\t\\add_action( 'admin_init', [ $this, 'maybe_create_notification' ] );\n\t\t}\n\n\t\t\\add_action( self::NOTIFICATION_ID, [ $this, 'maybe_create_notification' ] );\n\t}", "public static function initHooks() {\n\t\t$m = self::pw('modules')->get('DpagesMpm');\n\n\t\t$m->addHook('Page(pw_template=mpm)::subfunctionUrl', function($event) {\n\t\t\t$event->return = self::subfunctionUrl($event->arguments(0));\n\t\t});\n\n\t\t$m->addHook('Page(pw_template=mpm)::mpmUrl', function($event) {\n\t\t\t$event->return = self::mpmUrl($event->arguments(0));\n\t\t});\n\n\t\t$m->addHook('Page(pw_template=mpm)::pmmainUrl', function($event) {\n\t\t\t$event->return = self::pmmainUrl($event->arguments(0));\n\t\t});\n\t}", "private function _add_hook($hook)\n\t{\n\t\tee()->db->insert('extensions', array(\n\t\t\t'class' => $this->class_name,\n\t\t\t'method' => $hook,\n\t\t\t'hook' => $hook,\n\t\t\t'settings' => serialize($this->settings),\n\t\t\t'priority' => 5,\n\t\t\t'version' => $this->version,\n\t\t\t'enabled' => 'y'\n\t\t));\n\t}", "public function hooks() {\n $service = new Service($this->license_base);\n add_action('admin_menu', array($this, 'register_license_page'));\n add_action('admin_enqueue_scripts', array($this, 'admin_scripts'), 10);\n // Validate service\n add_action('wp_ajax_validate_service', array($service, 'validate_service'), 10);\n }", "public function getAllHooks() {\n\t\t$this->hooks = $this->getConfig('hooks');\n\t\tif (empty($this->hooks)) {\n\t\t\t$this->hooks = $this->updateBMOHooks();\n\t\t}\n\t\treturn $this->hooks;\n\t}", "private static function init_hooks() {\n\t\tself::$initiated = true;\n\t\tadd_action( 'wp_head', array( 'mptheme_functions', 'theme_styles' ) );\n\t\tadd_action( 'wp_enqueue_scripts', array('mptheme_functions', 'mptheme_enqueue') );\n\n\t\t// If a Google Analytics ID is defined, add the code to the head\n\t\tif ( get_option( 'mptheme_google_analytics_id' ) ){\n\t\t\tadd_action( 'wp_head', array( 'mptheme_functions', 'mptheme_google_analytics_code' ) );\n\t\t}\n\n\t\t// If a Facebook Pixel ID is defined, add the code to the head\n\t\tif ( get_option( 'mptheme_facebook_pixel_id' ) ){\n\t\t\tadd_action( 'wp_head', array( 'mptheme_functions', 'mptheme_facebook_pixel_code' ) );\n\t\t}\n\n\t}", "function register_hooks() {\n\t\t/*\n\t\t\tThis will be overridden if the user manually places the function\n\t\t\tin the comments form before the comment_form do_action() call\n\t\t\tor if the user has a theme that supports a hookable comments form\n\t\t*/\n\t\tadd_action( 'comment_form', array( $this, 'echo_add_checkbox' ));\n\t\t// Hook in to themes that use comment_form()\n\t\tadd_filter( 'comment_form_defaults', array( $this, 'add_checkbox_to_default' ));\n\n\t\t// priority is very low (50) because we want to let anti-spam plugins have their way first.\n\t\tadd_action( 'comment_post', array( $this, 'send_notifications' ));\n\t\tadd_action( 'comment_post', array( $this, 'maybe_add_subscriber' ));\n\t\tadd_action( 'wp_set_comment_status', array( $this, 'send_notifications' ));\n\t\tadd_action( 'admin_menu', array( $this, 'add_admin_menu' ));\n\t\tadd_action( 'admin_head', array( $this, 'admin_head' ));\n\t\tadd_action( 'edit_comment', array( $this, 'on_edit' ));\n\t\tadd_action( 'delete_comment', array( $this, 'on_delete' ));\n\t\tadd_filter( 'the_content', array( $this, 'manager' ));\n\n\t\tadd_filter( 'get_comment_author_link', 'stc_comment_author_filter' );\n\n\t\t// save users' checkbox preference\n\t\tadd_filter( 'preprocess_comment', 'stc_checkbox_state', 1 );\n\n\t\t// detect \"subscribe without commenting\" attempts\n\t\tadd_action( 'init', array( $this, 'maybe_solo_subscribe' ) );\n\n\t\tif ( isset( $_REQUEST['wp-subscription-manager'] ) )\n\t\t\tadd_action( 'template_redirect', array( $this, 'single' ) );\n\t}", "public function getPostCommitHookList() {}", "private function _hooks($event, $import)\n\t{\n\t\t// Array to hold callbacks\n\t\t$callbacks = array();\n\n\t\t// Get hooks on import\n\t\t$hooks = json_decode($import->get('hooks'));\n\n\t\t// Make sure we have this type of hook\n\t\tif (!isset($hooks->$event))\n\t\t{\n\t\t\treturn $callbacks;\n\t\t}\n\n\t\t// Loop through each hook\n\t\tforeach ($hooks->$event as $hook)\n\t\t{\n\t\t\t// Load hook object\n\t\t\t$importHook = Hook::oneOrNew($hook);\n\n\t\t\t// Make sure we have an object\n\t\t\tif (!$importHook->get('id'))\n\t\t\t{\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\t// Build path to script\n\t\t\t$hookFile = $importHook->fileSpacePath() . DS . $importHook->get('file');\n\n\t\t\t// Make sure we have a file\n\t\t\tif (!is_file($hookFile))\n\t\t\t{\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\t// Add callback\n\t\t\t$callbacks[] = function($data, $dryRun) use ($hookFile)\n\t\t\t{\n\t\t\t\treturn include $hookFile;\n\t\t\t};\n\t\t}\n\n\t\t// Return closures as callbacks\n\t\treturn $callbacks;\n\t}", "function hook(){\n\t\tglobal $listeners;\n\n\t\t$num_args = func_num_args();\n\t\t$args = func_get_args();\n\n\t\tif($num_args < 2)\n\t\t\ttrigger_error(\"Insufficient arguments\", E_USER_ERROR);\n\n\t\t// Hook name should always be first argument\n\t\t$hook_name = array_shift($args);\n\t\t// Default return\n\t\t$hook_result = array_shift($args);\n\t\t\n\t\tif(!isset($listeners[$hook_name])) {\n\t\t\treturn $hook_result; // No plugins have registered this hook\n\t\t}\n\t\t\n\t\t$result = NULL;\n\t\tforeach($listeners[$hook_name] as $func){\n\t\t\t$result = call_user_func_array($func, $args);\n\t\t\tif ($result===NULL) {\n\t\t\t\t$result = $hook_result;\n\t\t\t}\n\t\t}\n\n\t\treturn $result;\n\t}", "public function setStartHooks($hooks) {\n $this->_startHooks = $hooks;\n }", "public static function availableHooks() {\n\t\t$data = array(\n\t\t\t'form',\n\t\t\t'input',\n\t\t\t'fieldset',\n\t\t\t'legen',\n\t\t\t'label',\n\t\t\t'select',\n\t\t\t'_token',\n\t\t\t'_edit',\n\t\t\t'_create',\n\t\t\t'_email',\n\t\t\t'extension',\n\t\t\t'_instance'\n\t\t);\n\n\t\treturn $data;\n\t}", "private function checkHooks()\n {\n $this->registerHook('actionFrontControllerAfterInit');\n $this->registerHook('header');\n $this->registerHook('actionAdminControllerSetMedia');\n $this->registerHook('displayHome');\n $this->registerHook('displayLeftColumn');\n $this->registerHook('displayRightColumn');\n $this->registerHook('displayFooterProduct');\n $this->registerHook('displayFooter');\n $this->registerHook('displayCustomerAccount');\n $this->registerHook('moduleRoutes');\n $this->registerHook('displayBackOfficeHeader');\n $this->registerHook('actionObjectProductDeleteAfter');\n $this->registerHook('actionAdminMetaAfterWriteRobotsFile');\n $this->registerHook('displayAdminAfterHeader');\n $this->registerHook('actionAdminMetaAfterWriteRobotsFile');\n $this->registerHook('actionObjectProductDeleteAfter');\n $this->registerHook('actionObjectProductDeleteAfter');\n $this->registerHook('actionOutputHTMLBefore');\n return true;\n }", "function drush_module_builder_callback_data_list() {\n $commands = func_get_args();\n\n // Get our task handler, which checks hook data is ready.\n try {\n $mb_task_handler_report = \\DrupalCodeBuilder\\Factory::getTask('ReportHookData');\n }\n catch (\\DrupalCodeBuilder\\Exception\\SanityException $e) {\n module_builder_handle_sanity_exception($e);\n return;\n }\n\n $time = $mb_task_handler_report->lastUpdatedDate();\n $data = $mb_task_handler_report->listHookData();\n\n if (drush_get_option('raw')) {\n drush_print_r($data);\n return;\n }\n\n if (count($commands)) {\n // Put the requested filenames into the keys of an array, and intersect them\n // with the hook data.\n $files_requested = array_fill_keys($commands, TRUE);\n $data_requested = array_intersect_key($data, $files_requested);\n }\n else {\n $data_requested = $data;\n }\n\n if (!count($data_requested) && count($files_requested)) {\n drush_print(t(\"No hooks found for the specified files.\"));\n }\n\n drush_print(\"Hooks:\");\n foreach ($data_requested as $file => $hooks) {\n drush_print(\"Group $file:\", 2);\n foreach ($hooks as $key => $hook) {\n drush_print($hook['name'] . ': ' . $hook['description'], 4);\n }\n }\n\n // List presets.\n try {\n $mb_task_handler_report_presets = \\DrupalCodeBuilder\\Factory::getTask('ReportHookPresets');\n }\n catch (\\DrupalCodeBuilder\\Exception\\SanityException $e) {\n module_builder_handle_sanity_exception($e);\n return;\n }\n\n $hook_presets = $mb_task_handler_report_presets->getHookPresets();\n foreach ($hook_presets as $hook_preset_name => $hook_preset_data) {\n drush_print(\"Preset $hook_preset_name: \" . $hook_preset_data['label'], 2);\n foreach ($hook_preset_data['hooks'] as $hook) {\n drush_print($hook, 4);\n }\n }\n\n if (drush_drupal_major_version() == 8) {\n try {\n $mb_task_handler_report_plugins = \\DrupalCodeBuilder\\Factory::getTask('ReportPluginData');\n }\n catch (\\DrupalCodeBuilder\\Exception\\SanityException $e) {\n module_builder_handle_sanity_exception($e);\n return;\n }\n\n $data = $mb_task_handler_report_plugins->listPluginData();\n\n drush_print(\"Plugins types:\");\n foreach ($data as $plugin_type_id => $plugin_type_data) {\n drush_print($plugin_type_id, 2);\n }\n\n try {\n $mb_task_handler_report_services = \\DrupalCodeBuilder\\Factory::getTask('ReportServiceData');\n }\n catch (\\DrupalCodeBuilder\\Exception\\SanityException $e) {\n module_builder_handle_sanity_exception($e);\n return;\n }\n\n $data = $mb_task_handler_report_services->listServiceData();\n\n drush_print(\"Services:\");\n foreach ($data as $service_id => $service_info) {\n drush_print($service_id, 2);\n }\n }\n\n $hooks_directory = \\DrupalCodeBuilder\\Factory::getEnvironment()->getHooksDirectory();\n drush_print(t(\"Component data retrieved from @dir.\", array('@dir' => $hooks_directory)));\n drush_print(t(\"Component data was processed on @time.\", array(\n '@time' => date(DATE_RFC822, $time),\n )));\n}", "protected function initRegistrationHooks()\n\t{\n\t\t$pluginPath = CommentsEncryptMain::PATH_PLUGIN_NAME . '/main.php';\n\t\tregister_activation_hook($pluginPath, array($this, 'activationHook'));\n\t\tregister_uninstall_hook($pluginPath, array($this, 'uninstallHook'));\t\t\n\t}", "public function initWpHooks(): void\n {\n parent::initWpHooks();\n\n // let all fields register their WP-hook implementations\n foreach ($this->getFields() as $field) {\n $field->initWpHooks();\n }\n }", "public function run() {\n\t\tforeach ( $this->filters as $hook ) {\n\t\t\tadd_filter( $hook['hook'], $hook['callback'], $hook['priority'], $hook['accepted_args'] );\n\t\t}\n\n\t\tforeach ( $this->actions as $hook ) {\n\t\t\tadd_action( $hook['hook'], $hook['callback'], $hook['priority'], $hook['accepted_args'] );\n\t\t}\n\t}" ]
[ "0.710907", "0.6961694", "0.69532424", "0.69532424", "0.69415176", "0.68665826", "0.68083906", "0.68083906", "0.6692734", "0.6657739", "0.6570169", "0.6568446", "0.6557975", "0.65321434", "0.6513378", "0.6502626", "0.65002805", "0.645745", "0.6456569", "0.64267874", "0.6385806", "0.6359277", "0.63417387", "0.63401806", "0.6289415", "0.6278854", "0.6271236", "0.6248488", "0.6197698", "0.61652946", "0.61583", "0.6156571", "0.6113422", "0.6111023", "0.610633", "0.60882634", "0.6087288", "0.60798365", "0.606663", "0.6058245", "0.6034751", "0.601377", "0.60033685", "0.59615475", "0.5933123", "0.5927359", "0.5917842", "0.5904023", "0.58909357", "0.5882355", "0.5882232", "0.5874155", "0.58586705", "0.58409196", "0.5832661", "0.58308977", "0.58304024", "0.581517", "0.58066815", "0.5797707", "0.5780637", "0.57753575", "0.57740456", "0.57692176", "0.5764237", "0.5761555", "0.57549953", "0.57333183", "0.572474", "0.5722572", "0.5706354", "0.5702384", "0.56843424", "0.5665235", "0.5652117", "0.5651495", "0.564946", "0.5645966", "0.56452924", "0.5645205", "0.56389064", "0.56366426", "0.56351364", "0.56337255", "0.5620844", "0.5610331", "0.560248", "0.55983454", "0.5586979", "0.5579405", "0.55734676", "0.55639744", "0.5550879", "0.55502385", "0.5549887", "0.5543762", "0.55411476", "0.5540993", "0.5536672", "0.553622" ]
0.7586508
0
Helper function to unregister a list of hooks.
private function unregisterHooks(array $hooks, $shopList = null) { foreach($hooks as $hook) { $this->unregisterHook($hook, $shopList); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function remove_hooks()\n {\n }", "public function remove_hooks()\n {\n }", "public function remove_all_hook() {\n\t\tremove_action( 'all', [ $this, 'wrap_hook_callbacks' ] );\n\t}", "public function unregister() {\n // Normally, there are definitely wrappers set for the ALL filter. However,\n // in some cases involving many container rebuilds (e.g. BrowserTestBase),\n // $this->wrappers may be empty although wrappers are still registered\n // globally. Thus an isset() check is needed before iterating.\n if (isset($this->wrappers[StreamWrapperInterface::ALL])) {\n foreach (array_keys($this->wrappers[StreamWrapperInterface::ALL]) as $scheme) {\n stream_wrapper_unregister($scheme);\n }\n }\n }", "function fuzzloc_unload() {\n\n\tunregister_hook('post_local', 'addon/fuzzloc/fuzzloc.php', 'fuzzloc_post_hook');\n\tunregister_hook('feature_settings', 'addon/fuzzloc/fuzzloc.php', 'fuzzloc_settings');\n\tunregister_hook('feature_settings_post', 'addon/fuzzloc/fuzzloc.php', 'fuzzloc_settings_post');\n\n\n\tlogger(\"removed fuzzloc\");\n}", "function unregister_plugin_hook($hook, $entity_type, $function) {\n\tglobal $CONFIG;\n\tforeach($CONFIG->hooks[$hook][$entity_type] as $key => $hook_function) {\n\t\tif ($hook_function == $function) {\n\t\t\tunset($CONFIG->hooks[$hook][$entity_type][$key]);\n\t\t}\n\t}\n}", "function unregister_wp_widgets() {\n\t$widgets = [\n\t\t'WP_Widget_Pages',\n\t\t'WP_Widget_Calendar',\n\t\t'WP_Widget_Archives',\n\t\t// Links Manager and its Widget is unregistered already since 3.5.\n\t\t// 'WP_Widget_Links',\n\t\t'WP_Widget_Meta',\n\t\t'WP_Widget_Search',\n\t\t'WP_Widget_Text',\n\t\t'WP_Widget_Categories',\n\t\t'WP_Widget_Recent_Posts',\n\t\t'WP_Widget_Recent_Comments',\n\t\t'WP_Widget_RSS',\n\t\t'WP_Widget_Tag_Cloud',\n\t\t'WP_Nav_Menu_Widget',\n\t];\n\n\tforeach ( $widgets as $widget ) {\n\t\tunregister_widget( $widget );\n\t}\n}", "public function unregister(): void;", "public function unregister(): void;", "function pluton_remove_actions() {\n\t$hooks = pluton_theme_hooks();\n\tforeach ( $hooks as $section => $array ) {\n\t\tif ( ! empty( $array['hooks'] ) && is_array( $array['hooks'] ) ) {\n\t\t\tforeach ( $array['hooks'] as $hook ) {\n\t\t\t\tremove_all_actions( $hook, false );\n\t\t\t}\n\t\t}\n\t}\n}", "public static function uninstall() {\n\t\t$cptp = CPTP::get_instance();\n\n\t\tforeach ( $cptp->modules as $module ) {\n\t\t\t$module->uninstall_hook();\n\t\t}\n\t}", "public function unregister()\n {\n $isOk = true;\n foreach ($this->hooks as $hook) {\n $isHookOk = true;\n if ($this->isRegistered($hook)) {\n $isHookOk = $this->module->unregisterHook($hook->getHookName());\n $isOk &= $isHookOk;\n }\n if (!$isHookOk) {\n LoggerFactory::getLogger($this->module->name)->logError('Hook unregistration [' . $hook->getHookName() . '] KO.');\n }\n }\n return $isOk;\n }", "function deregister_widgets()\n { foreach ( $this->get_widgets() as $widget )\n {\n unregister_widget( $widget );\n }\n\n }", "function avenger_unregister_menus() {\n unregister_nav_menu( 'expanded' );\n unregister_nav_menu( 'primary' );\n unregister_nav_menu( 'mobile' );\n unregister_nav_menu( 'footer' );\n unregister_nav_menu( 'social' );\n}", "function my_unregister_widgets() {\n unregister_widget('WP_Widget_Archives');\n unregister_widget('WP_Widget_Links');\n unregister_widget('WP_Widget_Meta');\n unregister_widget('WP_Widget_Recent_Posts');\n unregister_widget('WP_Widget_Recent_Comments');\n unregister_widget('WP_Widget_RSS');\n unregister_widget('WP_Widget_Calendar');\n}", "function remove_all_filters($hook_name, $priority = \\false)\n {\n }", "function unregister($things) {\n $things = explode(\",\", $things);\n reset($things);\n while (list(,$thing) = each($things)) {\n $thing = trim($thing);\n if ($thing) {\n unset($this->registered_objects[$thing]);\n }\n }\n }", "public static function unregister() {\n self::$lookup_path = null;\n self::$special_classes = null;\n return spl_autoload_unregister(array(__CLASS__, \"load\"));\n }", "static function hookUninstall() {\n\t \t// Remove all options\n\t \tforeach(self::$plugin_options as $k => $v) {\n\t \t\tdelete_option($k);\n\t \t}\n\t }", "public function removeWidgets()\n {\n $this->disabledWidgets->each(function ($widget) {\n unregister_widget($this->widgetIds[$widget]);\n });\n }", "public function unregister () {\r\n\t\tspl_autoload_unregister( array( $this, 'loadClass' ) );\r\n\t}", "public function unregister()\n {\n $previousHandlers = $this->previousHandlers;\n\n foreach ($previousHandlers as $signal => $handler) {\n if (is_null($handler)) {\n pcntl_signal($signal, SIG_DFL);\n\n unset($previousHandlers[$signal]);\n }\n }\n\n $this->setHandlers($previousHandlers);\n }", "function unregister_genesis_callbacks() {\n//\tunregister_menu_callbacks();\n}", "static public function unregister()\n {\n spl_autoload_unregister(array(self::getInstance(), 'autoload'));\n self::$registered = false;\n }", "static public function unregister()\n {\n spl_autoload_unregister(array(self::getInstance(), 'autoload'));\n self::$registered = false;\n }", "public function unregister() {\n\n\t\tspl_autoload_unregister( array( $this, 'load' ) );\n\t}", "public function unregister()\n {\n spl_autoload_unregister(array($this, 'loadClassWithAlias'));\n }", "function remove_all_actions($hook_name, $priority = \\false)\n {\n }", "public function unregister()\n\t{\n\t\tspl_autoload_unregister([$this, 'loadClass']);\n\t}", "public function execute_uninstall_hooks() {\r\n\t\t\r\n }", "public function unregister(): void {\n\t\t\\spl_autoload_unregister( [ $this, self::AUTOLOAD_METHOD ] );\n\t}", "public function unregister() {\n spl_autoload_unregister([$this, 'autoLoad']);\n }", "public function unregister_meta_boxes()\n {\n }", "private function registerHooks(array $hooks, $shopList = null)\n {\n foreach($hooks as $hook) {\n $this->registerHook($hook, $shopList);\n }\n }", "function my_unregister_widgets() {\n\tunregister_widget( 'WP_Widget_Pages' );\n\tunregister_widget( 'WP_Widget_Calendar' );\n\tunregister_widget( 'WP_Widget_Archives' );\n\tunregister_widget( 'WP_Widget_Links' );\n\tunregister_widget( 'WP_Widget_Categories' );\n\tunregister_widget( 'WP_Widget_Recent_Posts' );\n\tunregister_widget( 'WP_Widget_Search' );\n\tunregister_widget( 'WP_Widget_Tag_Cloud' );\n\tunregister_widget( 'WP_Widget_Meta' );\n\tunregister_widget( 'WP_Widget_Recent_Comments' );\n\tunregister_widget( 'WP_Widget_RSS' );\n\n}", "function unhook_hotlink_scanner() {\n\t\tremove_action( 'save_post', array( &$this, 'localize_hotlinked_files' ) );\n\t}", "public function uninstall(array $module_list, $uninstall_dependents = TRUE);", "function wp_unregister_GLOBALS()\n {\n }", "public function uninstall()\r\n {\r\n return parent::uninstall()\r\n && $this->unregisterHook('fieldBrandSlider')\r\n && $this->unregisterHook('displayHeader')\r\n && $this->_deleteConfigs()\r\n && $this->_deleteTab();\r\n }", "function my_unregister_widgets() {\n\tunregister_widget('WP_Widget_Pages');\n\tunregister_widget('WP_Widget_Calendar');\n\tunregister_widget('WP_Widget_Archives');\n\tunregister_widget('WP_Widget_Meta');\n\tunregister_widget('WP_Widget_Search');\n\tunregister_widget('WP_Widget_Text');\n\tunregister_widget('WP_Widget_Categories');\n\tunregister_widget('WP_Widget_Recent_Posts');\n\tunregister_widget('WP_Widget_Recent_Comments');\n\tunregister_widget('WP_Widget_RSS');\n\tunregister_widget('WP_Widget_Tag_Cloud');\n\tunregister_widget('WP_Nav_Menu_Widget');\n}", "public function unregister()\n {\n spl_autoload_unregister(array($this, 'loadClass'));\n }", "public function unregister()\n {\n spl_autoload_unregister(array($this, 'loadClass'));\n }", "public function unregister()\n {\n spl_autoload_unregister(array($this, 'loadClass'));\n }", "public function unbind( $actions = true, $filters = true ) {\n\t\t$types = array();\n\n\t\tif ( $actions ) {\n\t\t\t$types['actions'] = 'remove_action';\n\t\t}\n\n\t\tif ( $filters ) {\n\t\t\t$types['filters'] = 'remove_filter';\n\t\t}\n\n\t\tforeach ( $types as $hooks => $method ) {\n\t\t\tforeach ( $this->$hooks as $hook ) {\n\t\t\t\tcall_user_func_array( $method, $hook );\n\t\t\t}\n\t\t}\n\t}", "function UnInstallEvents()\n\t{\n\t}", "public function unregister()\n {\n spl_autoload_unregister( array( $this, 'loadClass' ) );\n }", "public function unregister()\n {\n spl_autoload_unregister([$this, 'loadClass']);\n }", "function unregister_default_widgets() {\n\t\\add_action( 'widgets_init', 'WPS\\_unregister_default_widgets' );\n}", "public function register_uninstall();", "public function tearDown() {\n foreach ($this->registered as $l) {\n \\lang\\ClassLoader::removeLoader($l);\n }\n }", "function uninstall_hook()\n\t\t{\n\t\t\t// Delete plugin options\t\t\t\n\t\t\tdelete_option('verify-meta-tags');\n\t\t}", "public function unregisterAll($properties) {\n $this->_events->unregisterAll($properties);\n }", "function _wp_remove_unregistered_widgets($sidebars_widgets, $allowed_widget_ids = array())\n {\n }", "protected function _restore_hooks()\n {\n global $wp_version;\n\n if (version_compare($wp_version, '4.7.0', '<')) {\n $globals = array( 'merged_filters', 'wp_actions', 'wp_current_filter', 'wp_filter' );\n foreach ($globals as $key) {\n if (isset(self::$hooks_saved[ $key ])) {\n $GLOBALS[ $key ] = self::$hooks_saved[ $key ];\n }\n }\n } else {\n $globals = array( 'wp_actions', 'wp_current_filter' );\n foreach ($globals as $key) {\n if (isset(self::$hooks_saved[ $key ])) {\n $GLOBALS[ $key ] = self::$hooks_saved[ $key ];\n }\n }\n if (isset(self::$hooks_saved['wp_filter'])) {\n $GLOBALS['wp_filter'] = array();\n foreach (self::$hooks_saved['wp_filter'] as $hook_name => $hook_object) {\n $GLOBALS['wp_filter'][ $hook_name ] = clone $hook_object;\n }\n }\n }\n }", "function myprefix_unregister_tags() {\n unregister_taxonomy_for_object_type('post_tag', 'post');\n unregister_taxonomy_for_object_type('category', 'post');\n}", "public function hooks() {\n\t\t\\add_filter( 'the_generator', '__return_false' );\n\t\t\\remove_action('wp_head', 'wp_generator');\n\t}", "function ft_hook_destroy() {}", "function custom_unregister_default_widgets() {\n\n unregister_widget( 'WP_Widget_Archives' );\n unregister_widget( 'WP_Widget_Calendar' );\n unregister_widget( 'WP_Widget_Categories' );\n unregister_widget( 'WP_Widget_Meta' );\n unregister_widget( 'WP_Widget_Pages' );\n unregister_widget( 'WP_Widget_Recent_Comments' );\n unregister_widget( 'WP_Widget_Recent_Posts' );\n unregister_widget( 'WP_Widget_RSS' );\n unregister_widget( 'WP_Widget_Search' );\n unregister_widget( 'WP_Nav_Menu_Widget' );\n unregister_widget( 'WP_Widget_Tag_Cloud' );\n unregister_widget( 'Akismet_Widget' );\n\n}", "public static final function unregister()\n {\n\tspl_autoload_unregister('PathAutoload::loadClass');\n }", "function uninstall(){}", "function unregister_default_wp_widgets() {\n unregister_widget('WP_Widget_Archives');\n unregister_widget('WP_Widget_Calendar');\n unregister_widget('WP_Widget_Categories');\n unregister_widget('WP_Widget_Meta');\n unregister_widget('WP_Widget_Pages');\n unregister_widget('WP_Widget_Recent_Comments');\n unregister_widget('WP_Widget_Recent_Posts');\n unregister_widget('WP_Widget_RSS');\n unregister_widget('WP_Widget_Links');\n unregister_widget('WP_Widget_Search');\n}", "public function unregister()\r\n {\r\n $this->unregisterBlock('l');\r\n }", "function remove_woo_widgets() {\n unregister_widget( 'WC_Widget_Recent_Products' );\n unregister_widget( 'WC_Widget_Featured_Products' );\n unregister_widget( 'WC_Widget_Products' );\n unregister_widget( 'WC_Widget_Product_Categories' );\n unregister_widget( 'WC_Widget_Product_Tag_Cloud' );\n unregister_widget( 'WC_Widget_Cart' );\n unregister_widget( 'WC_Widget_Layered_Nav' );\n unregister_widget( 'WC_Widget_Layered_Nav_Filters' );\n //unregister_widget( 'WC_Widget_Price_Filter' );\n unregister_widget( 'WC_Widget_Top_Rated_Products' );\n unregister_widget( 'WC_Widget_Recent_Reviews' );\n unregister_widget( 'WC_Widget_Recently_Viewed' );\n unregister_widget( 'WC_Widget_Best_Sellers' );\n unregister_widget( 'WC_Widget_Onsale' );\n //unregister_widget( 'WC_Widget_Random_Products' );\n}", "function unregister()\n {\n spl_autoload_unregister([$this, 'resolve']);\n }", "function unregister_default_wp_widgets() {\n unregister_widget('WP_Widget_Pages');\n unregister_widget('WP_Widget_Calendar');\n unregister_widget('WP_Widget_Archives');\n unregister_widget('WP_Widget_Links');\n unregister_widget('WP_Widget_Meta');\n unregister_widget('WP_Widget_Search');\n unregister_widget('WP_Widget_Text');\n unregister_widget('WP_Widget_Categories');\n unregister_widget('WP_Widget_Recent_Posts');\n unregister_widget('WP_Widget_Recent_Comments');\n unregister_widget('WP_Widget_RSS');\n unregister_widget('WP_Widget_Tag_Cloud');\n unregister_widget('WP_Nav_Menu_Widget');\n}", "private function _deleteHooks()\n\t{\n\t\t$EE =& get_instance();\n\t\t$EE->db->where('class', __CLASS__);\n\t\t$EE->db->delete('exp_extensions'); \n\t}", "public function uninstalled()\n\t{\n\t\t// Array of installed slugs\n\t\t$installed_slugs = array();\n\n\t\t// Array of uninstalled extensions\n\t\t$extensions = array();\n\n\t\t// Add slugs of installed\n\t\tforeach ($this->installed() as $extension)\n\t\t{\n\t\t\t$installed_slugs[] = $extension['info']['slug'];\n\t\t}\n\n\t\t// Loop through all extensions\n\t\tforeach ($this->all() as $extension)\n\t\t{\n\t\t\t// Already in the array of installed slugs?\n\t\t\tif (in_array($extension['info']['slug'], $installed_slugs))\n\t\t\t{\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\t$extensions[] = $extension;\n\t\t}\n\n\t\treturn $extensions;\n\t}", "protected function unregisterGLOBALS() {\n\n\t\tif(!ini_get('register_globals')) {\n\t\t\treturn;\n\t\t}\n\n\t\tif(isset($_REQUEST['GLOBALS']) || isset($_FILES['GLOBALS'])) {\n\t\t\tunset($_GET['GLOBALS'], $_POST['GLOBALS'], $_COOKIE['GLOBALS'], $_FILES['GLOBALS']);\n\t\t}\n\n\t\t// Variables that shouldn't be unset\n\t\t$noUnset = array('GLOBALS', '_GET', '_POST', '_COOKIE', '_REQUEST', '_SERVER', '_ENV', '_FILES');\n\n\t\t$input = array_merge($_GET, $_POST, $_COOKIE, $_SERVER, $_ENV, $_FILES, isset($_SESSION) && is_array($_SESSION) ? $_SESSION : array());\n\n\t\tforeach ($input as $k => $v) {\n\t\t\tif(!in_array($k, $noUnset) && isset($GLOBALS[$k])) {\n\t\t\t\tunset($GLOBALS[$k]);\n\t\t\t}\n\t\t}\n\t}", "function spl_autoload_unregister(callable $callback): bool {}", "function remove_wp_cli_hooks() {\n\tremove_action( 'init', array( 'DevHub_CLI', 'action_init_register_cron_jobs' ) );\n\tremove_action( 'init', array( 'DevHub_CLI', 'action_init_register_post_types' ) );\n\tremove_action( 'pre_get_posts', array( 'DevHub_CLI', 'action_pre_get_posts' ) );\n\tremove_action( 'devhub_cli_manifest_import', array( 'DevHub_CLI', 'action_devhub_cli_manifest_import' ) );\n\tremove_action( 'devhub_cli_markdown_import', array( 'DevHub_CLI', 'action_devhub_cli_markdown_import' ) );\n\tremove_action( 'breadcrumb_trail', array( 'DevHub_CLI', 'filter_breadcrumb_trail' ) );\n\tremove_action( 'the_content', array( 'DevHub_CLI', 'filter_the_content' ) );\n}", "public function unregister($force = false)\n\t{\n\t\tif( $force === true ) {\n\t\t\tself::$registeredCount = 0;\n\t\t} else {\n\t\t\tself::$registeredCount--;\n\t\t}\n\t\t\n\t\tif( self::$registeredCount === 0 ) {\n\t\t\tspl_autoload_unregister(array(self::singleton(), 'autoload'));\n\t\t}\n\t}", "function remove_unused_widgets() {\n\tunregister_widget( 'WP_Widget_Meta' );\n\tunregister_widget( 'WP_Widget_Calendar' );\n\tunregister_widget( 'WP_Widget_Recent_Comments' );\n\tunregister_widget( 'WP_Widget_Tag_Cloud' );\n}", "function myprefix_unregister_tags() {\n unregister_taxonomy_for_object_type('post_tag', 'post');\n}", "function unregister_custom_taxonomies () {\n\tglobal $wpdb;\n\n\t$sql = \"UPDATE $wpdb->term_taxonomy SET count = 1 WHERE count = 0\";\n\t$wpdb->query( $sql);\n\n\tunregister_custom_taxonomy ( 'sil_semantic_domains' );\n\tunregister_custom_taxonomy ( 'sil_parts_of_speech' );\n\tunregister_custom_taxonomy ( 'sil_writing_systems' );\n\tunregister_custom_taxonomy ( 'sil_webstrings' );\n\n\t//delete all relationships\n\t$del = \"DELETE FROM $wpdb->term_relationships WHERE term_taxonomy_id = 1 \";\n\t$wpdb->query( $del);\n}", "public static function _uninstall()\n\t{\n\t\tif( empty(self::$page_ids) )\n\t\t\terror_log('ABNOT@uninstall: Empty $page_ids!');\n\n\t\tforeach( self::$tools as $tool => $t )\n\t\t{\n\t\t\t$pid = get_page_by_title($t['title'], 'OBJECT', 'page');\n\t\t\twp_delete_post($pid->ID, true); // forced\n\t\t}\n\t}", "function remove_theme_mods()\n {\n }", "function wp_embed_unregister_handler($id, $priority = 10)\n {\n }", "public function remove()\n {\n\n foreach ( $this->actions as $action ) {\n extract( $action );\n\n /**\n * @var string $tag\n * @var string $function\n * @var int $priority\n * @var mixed $replacment\n */\n\n remove_action( $tag, $function, $priority );\n\n if ( $replacment ) {\n add_action( $tag, $replacment, $priority );\n }\n }\n\n foreach ( $this->filters as $filter ) {\n extract( $filter );\n\n /**\n * @var string $tag\n * @var string $function\n * @var int $priority\n * @var mixed $replacment\n */\n\n remove_filter( $tag, $function, $priority );\n\n if ( $replacment ) {\n add_filter( $tag, $replacment, $priority );\n }\n }\n\n }", "public function unregister_taxonomies()\n {\n }", "function wpsl_deregister_other_gmaps() {\n\n global $wp_scripts;\n\n foreach ( $wp_scripts->registered as $index => $script ) {\n if ( ( strpos( $script->src, 'maps.google.com' ) !== false ) || ( strpos( $script->src, 'maps.googleapis.com' ) !== false ) && ( $script->handle !== 'wpsl-gmap' ) ) {\n wp_deregister_script( $script->handle );\n }\n }\n}", "function lose_the_widgets ()\r\n{\r\n unregister_sidebar( 'sidebar-1' );\r\n unregister_sidebar( 'sidebar-2' );\r\n unregister_sidebar( 'sidebar-3' );\r\n}", "function unregister_taxonomy(){\n register_taxonomy('post_tag', array());\n}", "function my_deregister_scripts(){\r\n\t \twp_deregister_script( 'wp-embed' );\r\n\t}", "function unregister_default_widgets() {\n\tunregister_widget('WP_Widget_Pages');\n\tunregister_widget('WP_Widget_Calendar');\n\tunregister_widget('WP_Widget_Archives');\n\tunregister_widget('WP_Widget_Links');\n\tunregister_widget('WP_Widget_Meta');\n\tunregister_widget('WP_Widget_Search');\n\tunregister_widget('WP_Widget_Text');\n\tunregister_widget('WP_Widget_Categories');\n\tunregister_widget('WP_Widget_Recent_Posts');\n\tunregister_widget('WP_Widget_Recent_Comments');\n\tunregister_widget('WP_Widget_RSS');\n\tunregister_widget('WP_Widget_Tag_Cloud');\n\tunregister_widget('WP_Nav_Menu_Widget');\n\tunregister_widget('Twenty_Eleven_Ephemera_Widget');\n\tunregister_widget( 'Jetpack_Subscriptions_Widget' );\n\tunregister_widget( 'WPCOM_Widget_Facebook_LikeBox' );\n\tunregister_widget( 'Jetpack_Gallery_Widget' );\n\tunregister_widget( 'Jetpack_Gravatar_Profile_Widget' );\n\tunregister_widget( 'Jetpack_Image_Widget' );\n\tunregister_widget( 'Jetpack_Readmill_Widget' );\n\tunregister_widget('Jetpack_RSS_Links_Widget');\n\tunregister_widget( 'Jetpack_Top_Posts_Widget' );\n\tunregister_widget( 'Jetpack_Twitter_Timeline_Widget' );\n\tunregister_widget( 'Jetpack_Display_Posts_Widget' );\n\tunregister_widget( 'constant_contact_form_widget' );\n\tunregister_widget( 'constant_contact_events_widget' );\n\tunregister_widget( 'constant_contact_api_widget' );\n\tunregister_widget( 'bcn_widget' );\n}", "function unregisterGlobals() {\n\tif (ini_get('register_globals')) {\n\t\t$array = array('_SESSION', '_POST', '_GET', '_COOKIE', '_REQUEST', '_SERVER', '_ENV', '_FILES');\n\t\tforeach ($array as $value) {\n\t\t\tforeach ($GLOBALS[$value] as $key => $var) {\n\t\t\t\tif ($var === $GLOBALS[$key]) {\n\t\t\t\t\tunset($GLOBALS[$key]);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}", "public function unregisterGlobals() {\n if (ini_get('register_globals')) {\n $array = array('_SESSION', '_POST', '_GET', '_COOKIE', '_REQUEST', '_SERVER', '_ENV', '_FILES');\n foreach ($array as $value) {\n foreach ($GLOBALS[$value] as $key => $var) {\n if ($var === $GLOBALS[$key]) {\n unset($GLOBALS[$key]);\n }\n }\n }\n }\n }", "public function unregisterGlobals() {\n if (ini_get('register_globals')) {\n $array = array('_SESSION', '_POST', '_GET', '_COOKIE', '_REQUEST', '_SERVER', '_ENV', '_FILES');\n foreach ($array as $value) {\n foreach ($GLOBALS[$value] as $key => $var) {\n if ($var === $GLOBALS[$key]) {\n unset($GLOBALS[$key]);\n }\n }\n }\n }\n }", "function unregisterGlobals() {\n if (ini_get('register_globals')) {\n $array = array('_SESSION', '_POST', '_GET', '_COOKIE', '_REQUEST', '_SERVER', '_ENV', '_FILES');\n foreach ($array as $value) {\n foreach ($GLOBALS&#91;$value&#93; as $key => $var) {\n if ($var === $GLOBALS[$key]) {\n unset($GLOBALS[$key]);\n }\n }\n }", "public static function offAll()\n {\n self::$_events = [];\n self::$_eventWildcards = [];\n }", "public function setHooks($value){$this->_hooks = self::forceArray($value);}", "public function uninstall()\n {\n if (!parent::uninstall() ||\n !$this->unregisterHook('actionOrderStatusUpdate') ||\n !$this->unregisterHook('displayFooterProduct') ||\n !$this->unregisterHook('actionProductUpdate') ||\n !$this->unregisterHook('actionAuthentication') ||\n !$this->unregisterHook('actionBeforeAuthentication') ||\n !$this->unregisterHook('actionCustomerLogoutAfter') ||\n !$this->unregisterHook('actionCustomerLogoutBefore') ||\n !$this->unregisterHook('actionCustomerAccountAdd') ||\n !$this->unregisterHook('actionBeforeSubmitAccount') ||\n !$this->unregisterHook('displayHeader')) {\n return false;\n }\n \n $this->unInstallKbTabs();\n \n return true;\n }", "function myprefix_unregister_tags() {\n\tunregister_taxonomy_for_object_type( 'post_tag', 'post' );\n}", "function hm_deactivate_conflicts() {\n\t$plugins = get_option('active_plugins' );\n\t$plugin_deactivate = array_keys( $plugins, 'WPThumb/wpthumb.php' );\n\tunset( $plugins[$plugin_deactivate[0]]);\n\tupdate_option( 'active_plugins', $plugins );\n}", "public function forget($names);", "static public function deleteHandlers()\n\t{\n\t\tself::$handlers = array();\n\t}", "protected function registerHooks() {\n\t\t$hooks = $this->elgg()->hooks;\n\t\t\n\t\t$hooks->registerHandler('action:validate', 'notifications/settings', __NAMESPACE__ . '\\Notifications::saveUserNotificationsSettings');\n\t\t$hooks->registerHandler('entity:url', 'object', __NAMESPACE__ . '\\Widgets::widgetTitleURL');\n\t\t$hooks->registerHandler('export:counters', 'elasticsearch', __NAMESPACE__ . '\\Elasticsearch::exportCounter');\n\t\t$hooks->registerHandler('group_tool_widgets', 'widget_manager', __NAMESPACE__ . '\\Widgets::groupToolBasedWidgets');\n\t\t$hooks->registerHandler('handlers', 'widgets', __NAMESPACE__ . '\\Widgets::registerHandlers');\n\t\t$hooks->registerHandler('prepare', 'notification:create:object:thewire', __NAMESPACE__ . '\\Notifications::prepareNotificationSubject', 600);\n\t\t$hooks->registerHandler('prepare', 'notification:create:object:thewire', __NAMESPACE__ . '\\Notifications::prepareReshareNotification', 700);\n\t\t$hooks->registerHandler('register', 'menu:entity', __NAMESPACE__ . '\\Menus::entityRegisterImprove', 501);\n\t\t$hooks->registerHandler('register', 'menu:social', __NAMESPACE__ . '\\Menus::entityRegisterReshare');\n\t\t$hooks->registerHandler('register', 'menu:entity', __NAMESPACE__ . '\\Menus::entityRegisterFeature');\n\t\t$hooks->registerHandler('register', 'menu:owner_block', __NAMESPACE__ . '\\Menus::ownerBlockRegister');\n\t\t$hooks->registerHandler('register', 'menu:page', __NAMESPACE__ . '\\Menus::pageRegister');\n\t\t$hooks->registerHandler('supported_types', 'entity_tools', __NAMESPACE__ . '\\Migrate::registerClass');\n\t}", "private static function unregisterGlobals(array $params)\n\t{\n\t\tforeach($params as $key => $value) {\n\t\t\tif(array_key_exists($key, $GLOBALS)) {\n\t\t\t\tunset($GLOBALS[$key]);\n\t\t\t}\n\t\t}\n\t}", "function my_hook_monitor_unregister_callback_function($keyword)\n{\n // drop your table here, etc., and...\n return true; \n}", "function UnregisterPostfilter($function)\n {\n $this->_smarty->unregister_postfilter( $function );\n }", "function register_uninstall_hook($file, $callback)\n {\n }" ]
[ "0.6943746", "0.6943746", "0.6813454", "0.64437866", "0.6325578", "0.629414", "0.6284388", "0.5986685", "0.5986685", "0.59760386", "0.59585655", "0.59533507", "0.59479874", "0.58255345", "0.5781272", "0.57512915", "0.57451767", "0.57379806", "0.57089674", "0.5698835", "0.5698065", "0.56844956", "0.5678863", "0.5678376", "0.5678376", "0.56704086", "0.56613475", "0.56547576", "0.56524944", "0.5643456", "0.5629485", "0.5626983", "0.5616382", "0.5606216", "0.5600533", "0.55863595", "0.55720484", "0.55623627", "0.5557413", "0.55496204", "0.55480415", "0.55480415", "0.55480415", "0.5545631", "0.5544275", "0.55425626", "0.55415237", "0.5534428", "0.5530393", "0.5522138", "0.5509945", "0.5483321", "0.54732734", "0.54616934", "0.54594094", "0.54300755", "0.54040766", "0.540255", "0.53714013", "0.5361339", "0.5357429", "0.53563905", "0.53227246", "0.5315085", "0.5314536", "0.53056777", "0.5278395", "0.5275703", "0.5271199", "0.5258965", "0.52375746", "0.5229051", "0.5215925", "0.51895994", "0.5164584", "0.51631284", "0.5162867", "0.5158131", "0.5155956", "0.5154841", "0.5151703", "0.51473045", "0.5143316", "0.51281893", "0.5126415", "0.51140845", "0.51140845", "0.5112453", "0.51076245", "0.51063186", "0.50901437", "0.50893587", "0.5080491", "0.5076785", "0.50745755", "0.50738144", "0.5071481", "0.5067036", "0.5063861", "0.505871" ]
0.7958074
0
///Display Data All without trash
public function index(){ $_allData= array(); // $query="SELECT * FROM `neci`.`consume_details` WHERE `deleted_at` IS NULL and `input_date`= date('Y-m-d') "; $query="SELECT * FROM consume_details WHERE `input_date`= CURDATE() ORDER BY `input_date` DESC "; $result= mysqli_query($this->conn,$query); //You can also use mysqli_fetch_object e.g: $row= mysqli_fetch_object($result) while($row= mysqli_fetch_assoc($result)){ $_allData[]=$row; } return $_allData; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function showall()\n {\n }", "public function showAll()\n {\n }", "public function displayAll() {\n \t\n \techo \"<table border=1>\";\n\t\techo \"<tr>\";\n\t\techo \"<th>Id</th>\";\n\t\techo \"<th>Ora decolare</th>\";\n\t\techo \"<th>Destinatia</th>\";\n\t\techo \"<th>Compania</th>\";\n\t\techo \"</tr>\";\n\n\t\tforeach($this->findAll() as $k => $zbor){ //parcugem arrayul pe linie\n\t\t\techo \"<tr>\";\n\n\t\t\techo \"<td> \" . $zbor[\"id\"] . \"</td>\";\n\t\t\techo \"<td> \" . $zbor[\"ora_decolare\"] . \"</td>\";\n\t\t\techo \"<td> \" . $zbor[\"destinatia\"] . \"</td>\";\n\t\t\techo \"<td> \" . $zbor[\"compania\"] . \"</td>\";\n\t\t\t\n\t\t\techo \"</tr>\";\n\t\t}\n\n\t\techo \"</table>\";\n }", "public function displayAll() {\n \t\n \techo \"<table border=1>\";\n\t\techo \"<tr>\";\n\t\techo \"<th>Id</th>\";\n\t\techo \"<th>Ora aterizare</th>\";\n\t\techo \"<th>De la</th>\";\n\t\techo \"<th>Compania</th>\";\n\t\techo \"</tr>\";\n\n\t\tforeach($this->findAll() as $k => $zbor){ //parcugem arrayul pe linie\n\t\t\techo \"<tr>\";\n\n\t\t\techo \"<td> \" . $zbor[\"id\"] . \"</td>\";\n\t\t\techo \"<td> \" . $zbor[\"ora_aterizare\"] . \"</td>\";\n\t\t\techo \"<td> \" . $zbor[\"de_la\"] . \"</td>\";\n\t\t\techo \"<td> \" . $zbor[\"compania\"] . \"</td>\";\n\t\t\t\n\t\t\techo \"</tr>\";\n\t\t}\n\n\t\techo \"</table>\";\n }", "public function display() {\n\t\techo $this->data;\n\t\treturn;\n\t}", "function displayAll() {\n try {\n /** Instantiate the Database model. **/\n $db = Database::getInstance();\n\n /** Connect to the database. **/\n $dbh = $db->getConnection();\n\n /** Prepare the sql query to be used. **/\n $stmt = $dbh->prepare(\"SELECT * FROM employees WHERE position = :position AND isDeleted = 'N'\");\n\n /** Bind the parameters to the sql query. **/\n $position = \"dataAnalyst\";\n $stmt->bindParam(':position', $position);\n\n /** Execute the query. **/\n $stmt->execute();\n\n /** Store the query result to a variable. **/\n $result = $stmt->fetchAll(PDO::FETCH_ASSOC);\n return $result;\n }\n catch(PDOException $e) {\n echo $e->getMessage();\n }\n }", "function show_all()\n{\n\tsystem('clear');\n\tglobal $collection;\n\t$cursor = $collection->find();\n\t$cursor->sort(array('Login' => 1));\n\tforeach ($cursor as $document) {\n echo \"Login: \".$document[\"Login\"].\" Nom: \".$document[\"Nom\"]\n .\" Promo: \".$document[\"Promo\"].\" Email: \".$document[\"Email\"]\n .\" Téléphone: \".$document[\"Telephone\"].\"\\n\";\n }\necho \"\\n\";\n}", "function dsp_all_office_info()\n {\n $VIEW_DATA['arr_all_office_info'] = $this->model->qry_all_office_info();\n $this->view->render('dsp_all_office_info',$VIEW_DATA);\n }", "function Show_All() \n\t{\n\t\tglobal $eTraffic;\n\t\t\n\t\t$this->ShowIf('Debug Log', $this->Show_Log());\n\t\t$this->ShowIf('Traffic Counters', $eTraffic->Display());\n\t\t$this->ShowIf('Time Analysis', $this->Show_Performance());\n\t\t$this->ShowIf('SQL Analysis', $this->Show_SQL_Details());\n\t\t$this->ShowIf('Shortcodes / BBCode',$this->Show_SC_BB());\n\t\t$this->ShowIf('Paths', $this->Show_PATH());\n\t\t$this->ShowIf('Deprecated Function Usage', $this->Show_DEPRECATED());\n\t\t$this->ShowIf('Included Files', $this->Show_Includes());\n\t}", "public function listdataSDMAction() {\n $this->view->dataList = $this->adm_listdata_serv->getDataList('SDM');\n }", "public function display_data() {\n return format_text($this->data, $this->dataformat, array('overflowdiv' => true));\n }", "function show_data(){\n\t\t$tmp = str_replace(\"\\n*\",\"\\n\",trim($this->col_data));\n\t\t$tmp = preg_replace(\"/^\\*/\",\"\",$tmp);\n\t\t$value = explode(\"\\n\",$tmp);\n\t\tif(count($value) > 1) $this->col_data = \"*\".implode(\"\\n*\",$value);\n\t\t#echo $this->col_data.\"\\n\";\n\t\treturn $this->col_data;\n\t}", "function show_data(){\n\t\t$tmp = str_replace(\"\\n*\",\"\\n\",trim($this->col_data));\n\t\t$tmp = preg_replace(\"/^\\*/\",\"\",$tmp);\n\t\t$value = explode(\"\\n\",$tmp);\n\t\tif(count($value) > 1) $this->col_data = \"*\".implode(\"\\n*\",$value);\n\t\t#echo $this->col_data.\"\\n\";\n\t\treturn $this->col_data;\n\t}", "public function displaydosen()\r\n {\r\n $query = \"select * from data_dosen\";\r\n return $this->db->query($query);\r\n }", "public function show()\n {\n\t\t//$result = $a->selectAll();\n include(\"view/bureau.html\");\n }", "public function showList() {\n\t \treturn 0;\n\t }", "function preDel($ar=NULL){\n return $this->display($ar);\n }", "function show($data)\n{\n echo \"<pre>\";\n print_r($data);\n echo \"</pre>\";\n}", "public function printData()\n {\n pre($this->getData());\n }", "public function listdataAction() {\n $this->view->dataList = $this->adm_listdata_serv->getDataList('%');\n }", "function clear_display_list($dataBaseHandle,$username){\n\t\t$SqlQuery = 'DELETE FROM '.$username.'_sorted';\n\t\t$dataBaseHandle->query($SqlQuery);\n\t\treturn;\n\t}", "public static function showData() {\n\n\t\tforeach(self::$employee_array as $id => $employee) { // Pour chaque ligne on affiche chaque attribut correspondant au colonne du tableau\n\n\t\t\tif($employee->_entityShortName == null) // Gestion du cas où une entité a été supprimée mais pas l'employé de l'entité\n\t\t\t\techo \"<tr><td>null</td><td>\" . $employee->_lastName . \"</td><td>\" . $employee->_firstName . \"</td><td>\" . $employee->_login . \"</td><td><a href=\\\"user.php?action=modifier&id=\" . $employee->_id . \"\\\">modifier</a></td><td><a href=\\\"user.php?action=supprimer&id=\" . $id . \"\\\">supprimer</a></td></tr>\";\n\t\t\telse\n\t\t\t\techo \"<tr><td>\" . $employee->_entityShortName . \"</td><td>\" . $employee->_lastName . \"</td><td>\" . $employee->_firstName . \"</td><td>\" . $employee->_login . \"</td><td><a href=\\\"user.php?action=modifier&id=\" . $employee->_id . \"\\\">modifier</a></td><td><a href=\\\"user.php?action=supprimer&id=\" . $id . \"\\\">supprimer</a></td></tr>\";\n\t\t}\n\t}", "public function printUserAll()\n\t{\n\t\t$data['reklame'] = $this->madmin->printReklameAll('users')->result();\n\t\t// print_r($data);\n\n\t\t$this->load->view('cetak/cetakuser.php',$data);\n\t}", "public function printData($data){\n echo \"<pre>\";\n print_r($data);\n echo \"</pre>\";\n }", "public function display(){}", "public function trashList(){\n// $all_data = Category::where('trash', 1)->latest()->get();\n return view('backend.category.trash-list');\n }", "function showEmptyList()\n {\n $emptymsg = array();\n $emptymsg['p'] = '您系统消息箱还没有消息。';\n $emptymsg['p'] = '系统消息是系统为您自动更新的一些重要通知,如平台通知、' . GROUP_NAME() . '相关信息等等';\n $this->tu->showEmptyListBlock($emptymsg);\n }", "public static function dump()\n\t{\n\t\techo nl2br(print_r(self::$data));\n\t}", "function display() {\n\t# Global Variables\n\tglobal $_db, $_GLOBALS, $validator;\n\t\n\t# Get Data\n\t$data\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t= $_db->fetch(\"\tSELECT\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t*\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tFROM\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t`orders`\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tORDER BY\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t`uid` DESC\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\");\n\t\n\t# Generate Listing\n\t$listing\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t= \"\";\n\tforeach ($data as $item) {\n\t\t$listing\t\t\t\t\t\t\t\t\t\t\t\t\t\t.= \"\n\t\t\t<tr>\n\t\t\t\t<td>{$item->datetime}</td>\n\t\t\t\t<td>{$item->reference}</td>\n\t\t\t\t<td>{$item->name}</td>\n\t\t\t\t<td>{$item->contact_number}</td>\n\t\t\t\t<td>{$item->email}</td>\n\t\t\t\t<td>{$item->amount}</td>\n\t\t\t</tr>\n\t\t\";\n\t}\n\t\n\t# Generate HTML\n\t$html\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t= \"\n\t<div class='content'>\n\t\n\t\t<h2>Orders</h2>\n\t\t\n\t\t<table class='results_table' width='100%'>\n\t\t\t<tr>\n\t\t\t\t<th>Date/Time</th>\n\t\t\t\t<th>Reference No.</th>\n\t\t\t\t<th>Name</th>\n\t\t\t\t<th>Contact Number</th>\n\t\t\t\t<th>Email</th>\n\t\t\t\t<th>Amount</th>\n\t\t\t</tr>\n\t\t\t{$listing}\n\t\t</table>\n\t\t\n\t</div>\n\t\";\n\t\n\t# Display HTML\n\tprint $html;\n}", "public function showdata()\n {\n $datatable = \"<ul style=\\\"list-style-type:none;padding:10px;\\\"><li style=\\\"color:white;\\\">No data suggestion</li>\";\n if ($_GET) {\n if ($_GET[\"q\"]) {\n $like[\"p.name\"] = \"%{$_GET[\"q\"]}%\";\n $like['p.sku'] = \"%{$_GET[\"q\"]}%\";\n $option[\"limit\"] = 50;\n $all_ca_list = $this->sc['Product']->getDao('ProductComplementaryAcc')->getAllAccessory($where, $option, $like);\n $arr = (array)$all_ca_list;\n if (!empty($arr)) {\n $datatable = \"<ul style=\\\"list-style-type:none;padding:10px;\\\">\";\n foreach ($all_ca_list as $key => $value) {\n $datatable .= <<<HTML\n <li>\n <a href=\"#\" onclick=\"selected('{$_GET[\"ctry\"]}', '{$value->getAccessorySku()}');return false;\"\n style=\"color:white;\"\n onmouseover=\"this.style.color='#F7E741';style.fontWeight='bold';\"\n onmouseout=\"this.style.color='white';style.fontWeight='normal';\"\n >\n {$value->getAccessorySku()} :: {$value->getName()}\n </a>\n </li><hr></hr>\nHTML;\n }\n $datatable .= \"</u>\";\n }\n }\n }\n\n echo $datatable;\n }", "public function display_rows()\n {\n }", "public function display_rows()\n {\n }", "public function printAll(){\n $temp = $this->head;\n while($temp != NULL){\n echo $temp->data . \" \";\n $temp = $temp->next;\n }\n }", "public function readAll()\n {\n show_view('views/admin/bodyparts/readAll.php', ['bodyParts' => BodyPart::all()]);\n }", "public function listAll()\n\t{\n\t\t$data['auditorias'] = $this->relatorio_model->listaAuditorias(1);\n\n\t\t$data['ncs'] = $this->relatorio_model->listaNCs(1);\n\n\t\t$data['acs'] = $this->relatorio_model->listaACs(1);\n\n\t\t$data['main_content'] = 'relatorio/relatorio_view';\n\t\t\n\t\t// Envia todas as informações para tela //\n\t\t$this->parser->parse('template', $data);\n\t}", "public function display_all()\n {\n if ( ! file_exists(APPPATH.'views/pages/list.php'))\n {\n // Whoops, we don't have a page for that!\n show_404();\n }\n if (!isset($this->session->userdata['user_role']) || $this->session->userdata['user_role'] < 40)\n {\n $this->session->set_flashdata('message', 'Vous devez avoir les droits de superviseur');\n redirect($_SERVER['HTTP_REFERER']); \n } \n \n $data['title'] = 'Liste des Membres'; // Capitalize the first letter\n $data['membres'] = $this->member_model->get_member();\n\n // breadcrumb\n $data['breadcrumbs'] = $this->breadcrumbs('liste');\n \n $this->load->template('pages/list_members',$data);\n }", "public function no_items() {\n\n\t\t\techo __( 'No data found', 'wp-data-access' );\n\n\t\t}", "private function _display_data_table(){\n\t\t\t$fields = array();\n\t\t\t$query = \"DESCRIBE `\".$this->class_settings['database_name'].\"`.`\".$this->table_name.\"`\";\n\t\t\t$query_settings = array(\n\t\t\t\t'database'=>$this->class_settings['database_name'],\n\t\t\t\t'connect' => $this->class_settings['database_connection'] ,\n\t\t\t\t'query' => $query,\n\t\t\t\t'query_type' => 'DESCRIBE',\n\t\t\t\t'set_memcache' => 1,\n\t\t\t\t'tables' => array( $this->table_name ),\n\t\t\t);\n\t\t\t$sql_result = execute_sql_query($query_settings);\n\t\t\t\n\t\t\tif($sql_result && is_array($sql_result)){\n\t\t\t\tforeach($sql_result as $sval)\n\t\t\t\t\t$fields[] = $sval;\n\t\t\t}else{\n\t\t\t\t//REPORT INVALID TABLE ERROR\n\t\t\t\t$err = new cError(000001);\n\t\t\t\t$err->action_to_perform = 'notify';\n\t\t\t\t\n\t\t\t\t$err->class_that_triggered_error = 'cdiscount.php';\n\t\t\t\t$err->method_in_class_that_triggered_error = '_display_data_table';\n\t\t\t\t$err->additional_details_of_error = 'executed query '.str_replace(\"'\",\"\",$query).' on line 208';\n\t\t\t\treturn $err->error();\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t//INHERIT FORM CLASS TO GENERATE TABLE\n\t\t\t$form = new cForms();\n\t\t\t$form->setDatabase( $this->class_settings['database_connection'] , $this->table_name , $this->class_settings['database_name'] );\n\t\t\t$form->uid = $this->class_settings['user_id']; //Currently logged in user id\n\t\t\t$form->pid = $this->class_settings['priv_id']; //Currently logged in user privilege\n\t\t\t\n\t\t\t$this->datatable_settings['current_module_id'] = $this->class_settings['current_module'];\n\t\t\t\n\t\t\t$form->datatables_settings = $this->datatable_settings;\n\t\t\t\n\t\t\t$returning_html_data = $form->myphp_dttables($fields);\n\t\t\t\n\t\t\treturn array(\n\t\t\t\t'html' => $returning_html_data,\n\t\t\t\t'method_executed' => $this->class_settings['action_to_perform'],\n\t\t\t\t'status' => 'display-datatable',\n\t\t\t);\n\t\t}", "function view($data)\n{\n\t\t\n\tstartOfPage();\n\tstartContent();\t\n\t$users = $data[\"users\"];\n\techo '<table><tr><th>USERNAME</th><th>EMAIL</th></tr>';\n\tif (!empty($users))\n\t{\n\tforeach ($users as $user)\n\t\t{\n\t\techo '<tr><td>',$user[\"username\"],'</td>';\n\t\techo '<td>',$user[\"email\"],'</td></tr>';\n\t\t}\n\n }\n echo '</table>';\n\tendContent();\n\tendOfPage();\n\n}", "public function printReklameAll()\n\t{\n\t\t$data['reklame'] = $this->madmin->printReklameAll('reklame')->result();\n\t\t// print_r($data);\n\n\t\t$this->load->view('cetak/cetakreklame.php',$data);\n\t}", "public static function display() {\n\t\t\techo \"Full Name is: \".UserData::NAME.\"<br>\";\n\t\t\techo \"Age is : \".self::$age;\n\t\t}", "function index(){\r\n \r\n $all = $this->model->selectAll();\r\n $this->data('all', $all);\r\n $this->loadView();\r\n }", "private function _display_data_table(){\n\t\t\t$fields = array();\n\t\t\t$query = \"DESCRIBE `\".$this->class_settings['database_name'].\"`.`\".$this->table_name.\"`\";\n\t\t\t$query_settings = array(\n\t\t\t\t'database'=>$this->class_settings['database_name'],\n\t\t\t\t'connect' => $this->class_settings['database_connection'] ,\n\t\t\t\t'query' => $query,\n\t\t\t\t'query_type' => 'DESCRIBE',\n\t\t\t\t'set_memcache' => 1,\n\t\t\t\t'tables' => array( $this->table_name ),\n\t\t\t);\n\t\t\t$sql_result = execute_sql_query($query_settings);\n\t\t\t\n\t\t\tif($sql_result && is_array($sql_result)){\n\t\t\t\tforeach($sql_result as $sval)\n\t\t\t\t\t$fields[] = $sval;\n\t\t\t}else{\n\t\t\t\t//REPORT INVALID TABLE ERROR\n\t\t\t\t$err = new cError(000001);\n\t\t\t\t$err->action_to_perform = 'notify';\n\t\t\t\t\n\t\t\t\t$err->class_that_triggered_error = 'centry_exit_log.php';\n\t\t\t\t$err->method_in_class_that_triggered_error = '_display_data_table';\n\t\t\t\t$err->additional_details_of_error = 'executed query '.str_replace(\"'\",\"\",$query).' on line 208';\n\t\t\t\treturn $err->error();\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t//INHERIT FORM CLASS TO GENERATE TABLE\n\t\t\t$form = new cForms();\n\t\t\t$form->setDatabase( $this->class_settings['database_connection'] , $this->table_name , $this->class_settings['database_name'] );\n\t\t\t$form->uid = $this->class_settings['user_id']; //Currently logged in user id\n\t\t\t$form->pid = $this->class_settings['priv_id']; //Currently logged in user privilege\n\t\t\t\n\t\t\t$this->datatable_settings['current_module_id'] = $this->class_settings['current_module'];\n\t\t\t\n\t\t\t$form->datatables_settings = $this->datatable_settings;\n\t\t\t\n\t\t\t$returning_html_data = $form->myphp_dttables($fields);\n\t\t\t\n\t\t\treturn array(\n\t\t\t\t'html' => $returning_html_data,\n\t\t\t\t'method_executed' => $this->class_settings['action_to_perform'],\n\t\t\t\t'status' => 'display-datatable',\n\t\t\t);\n\t\t}", "public function listdataTAPAction() {\n $this->view->dataList = $this->adm_listdata_serv->getDataList('TATA PERSURATAN');\n }", "public function display()\n {\n $current = $this->head;\n while ($current != null) \n {\n echo $current->data->name.\" \";\n echo $current->data->share.\" \";\n echo $current->data->price;\n echo \"\\n\";\n $current = $current->next;\n }\n }", "public function showContents() {\n\t\techo $this -> getContents();\n\t\texit ;\n\t}", "public function view_all()\n {\n return \"This is all readers\";\n }", "public function printOrderAll()\n\t{\n\t\t$data['reklame'] = $this->madmin->printReklameAll('tbl_order')->result();\n\t\t// print_r($data);\n\n\t\t$this->load->view('cetak/cetakorder.php',$data);\n\t}", "public function display_table_contents() {\n\t\t// Display what is in the table.\n\t\tprintf(\n\t\t\t'<p>%s</p>',\n\t\t\tesc_html( __( 'Currently in the database:', 'autowpdb-example-plugin' ) )\n\t\t);\n\n\t\tif ( empty( $this->table_contents ) ) {\n\t\t\tesc_html_e( 'Nothing yet.', 'autowpdb-example-plugin' );\n\t\t\treturn;\n\t\t}\n\n\t\t$table_contents = $this->dump_data( $this->table_contents );\n\n\t\tif ( strpos( $table_contents, '<pre' ) !== 0 ) {\n\t\t\t// Classic output.\n\t\t\tprintf( '<pre>%s</pre>', esc_html( $table_contents ) );\n\t\t\treturn;\n\t\t}\n\n\t\t// Xdebug.\n\t\techo wp_kses(\n\t\t\t$table_contents,\n\t\t\t[\n\t\t\t\t'b' => [],\n\t\t\t\t'font' => [\n\t\t\t\t\t'color' => true,\n\t\t\t\t],\n\t\t\t\t'i' => [],\n\t\t\t\t'pre' => [\n\t\t\t\t\t'class' => true,\n\t\t\t\t\t'dir' => true,\n\t\t\t\t],\n\t\t\t\t'small' => [],\n\t\t\t]\n\t\t);\n\t}", "public function viewall() {\n $kidphysical_view = NidaraKidPhysicalInfo::find();\n if ($kidphysical_view):\n \n\n\t\treturn $this->response->setJsonContent ([ \n\t\t\t\t\t'status' => true,\n\t\t\t\t\t'data' =>$kidphysical_view\n\t\t\t]);\n else:\n return $this->response->setJsonContent(['status' => false, 'Message' => 'Faield']);\n endif;\n }", "private function _display_all_records_full_view(){\n\t\t\t/*------------------------------*/\n\t\t\t//$this->class_settings[ 'html' ] = array( 'html-files/templates-1/'.$this->table_name.'/custom-buttons.php' );\n\t\t\t//$this->datatable_settings['custom_edit_button'] = $this->_get_html_view();\n\t\t\t\n\t\t\t$this->class_settings[ 'html' ] = array( 'html-files/templates-1/'.$this->table_name.'/display-all-records-full-view' );\n\t\t\t\n\t\t\t$datatable = $this->_display_data_table();\n\t\t\t$form = $this->_generate_new_data_capture_form();\n\t\t\t\n\t\t\t$this->class_settings[ 'data' ]['data_entry_form'] = $form['html'];\n\t\t\t$this->class_settings[ 'data' ]['html'] = $datatable['html'];\n\t\t\t\n\t\t\t$this->class_settings[ 'data' ]['title'] = \"Manage Discounts\";\n\t\t\t$this->class_settings[ 'data' ]['hide_main_title'] = 1;\n\t\t\t\n\t\t\t$this->class_settings[ 'data' ]['hide_clear_tab'] = 1;\n\t\t\t//$this->class_settings[ 'data' ]['hide_details_tab'] = 1;\n\t\t\t$this->class_settings[ 'data' ]['hide_reports_tab'] = 1;\n\t\t\t\n\t\t\t$this->class_settings[ 'data' ]['col_1'] = 3;\n\t\t\t$this->class_settings[ 'data' ]['col_2'] = 9;\n\t\t\t\n\t\t\t$returning_html_data = $this->_get_html_view();\n\t\t\t\n\t\t\treturn array(\n\t\t\t\t'html' => $returning_html_data,\n\t\t\t\t'method_executed' => $this->class_settings['action_to_perform'],\n\t\t\t\t'status' => 'new-status',\n\t\t\t\t'javascript_functions' => array( 'recreateDataTables', 'set_function_click_event', 'update_column_view_state', 'prepare_new_record_form_new' ) \n\t\t\t);\n\t\t}", "public function show_all()\n\t{\n\t\tif(isset($this->session->isactive)){\n\t\t\t// Layout view is common view containing sidebar and navbar\n\t\t\t// in which respective view is loaded as main content view\n\n $data['view'] = 'invoice_show_all_view';\n\t\t\t$data['title'] = 'IQRA | Invoice';\n\t\t\t$data['breadcrumb_1'] = 'Invoice';\n\t\t\t$data['breadcrumb_2'] = 'Invoice';\n\t\t\t$data['breadcrumb_3'] = 'Show All';\n $this->load->view('layout_view',$data);\n\t\t}\n\t\telse {\n\t\t\tredirect('login');\n\t\t}\n\t}", "function showtable()\r\n {\r\n $c=$this->connector();\r\n $r='';\r\n $r.=$this->logout();\r\n $r.=\"<div id='isi'>\r\n <center><a href='?act=mysql'>Show Database</a></center><br />\r\n <table width=50% align='center' class='xpltab' cellspacing=0 ><tr><th style='border-left:thin solid #f00;'>Table</th><th>Column count</th><th>Dump</th><th>Drop</th></tr>\";\r\n $db=$_GET['db'];\r\n $query=$this->qe(\"SHOW TABLES FROM $db\");\r\n while($data=mysql_fetch_array($query))\r\n {\r\n\r\n $iml=$this->qe(\"SHOW COLUMNS FROM $db.$data[0]\");\r\n $h=(mysql_num_rows($iml))?mysql_num_rows($iml):0;\r\n $r.= \"<tr><td><a href='?act=showcon&db=$db&table=$data[0]'>$data[0]</td><td>$h</td><td><a href='?act=downdb&db=$db&table=$data[0]'>Dump</a></td><td><a href='?act=dropdb&db=$db&tbl=$data[0]'>Drop</a></td></tr>\";\r\n \r\n }\r\n \r\n $r.= \"</table>\".$this->sqlcommand().\"</div>\";\r\n return $r;\r\n $this->free($query);\r\n $this->free($iml);\r\n mysql_close($c);\r\n }", "public function listdataPrncAction() {\n $this->view->dataList = $this->adm_listdata_serv->getDataList('PERENCANAAN');\n }", "public function showData()\n {\n // $all_students = Crud::latest() ->get(); //It will show latest data as descending order\n\n $all_students = Crud::all(); // it will show all data as ascending order\n return view('crud.all',[\n 'students' =>$all_students,\n ]);\n }", "public function trash(){\n $trashs = Category::onlyTrashed()->latest()->get();\n $trash_count = $trashs -> count();\n $content = '';\n if($trash_count > 0){\n\n foreach ($trashs as $trash) {\n $content .= '<tr>';\n $content .= '<td>'. $trash -> category_name_en .'</td>';\n $content .= '<td>'. $trash -> category_name_lng .'</td>';\n $content .= '<td> <a href=\"#\" recovery_id='. $trash -> id .' class=\"btn btn-info\" title=\"Recovery Category\" id=\"cat_trash_recovery_id\"> <i class=\"fa fa-refresh\"></i> </a>\n <a href=\"#\" delete_id='. $trash -> id .' class=\"btn btn-danger\" title=\"Permanently Delete\" id=\"cat_trash_delete_id\">\n <i class=\"fa fa-trash\"></i></a> </td>';\n $content .= '</tr>';\n }\n\n }else{\n\n\n $content .= '<tr>';\n $content .= '<td colspan=\"3\" class=\"text-center\">No Category Deleted Yet</td>';\n $content .= '</tr>';\n\n\n }\n return $content;\n }", "public function listdataKeuAction() {\n $this->view->dataList = $this->adm_listdata_serv->getDataList('KEUANGAN');\n }", "private function show_all(){\n\t\t$staff =$this->model->get_all();\n\t\t$section = file_get_contents('Views/Employee/show_all.html');;\n\t\t$info = \"\";\n\t\tforeach ($staff as $employee) {\n\t\t\t$info .= \"<tr>\n\t\t \t\t<td> $employee[emp_name] $employee[emp_last_name] </td>\n\t\t \t\t<td> $employee[RFC] </td>\n\t\t \t\t<td> $employee[emp_email] </td>\n\t\t \t\t<td>\n\t\t \t\t\t<a href='index.php?ctrl=employee&act=details&id=$employee[id_employee]'><i class='icon-view'></i></a>\n\t\t\t\t\t\t\t<a href='index.php?ctrl=employee&act=edit&id=$employee[id_employee]'><i class='icon-edit'></i></a>\n\t\t\t\t\t\t <a href='index.php?ctrl=employee&act=delete&id=$employee[id_employee]'><i class='icon-remove'></i></a>\n\t\t\t\t\t\t </td>\n\t \t\t\t\t</tr>\";\n\t\t\t}\n\t \t/*$info .= \"<tr>\n\t\t \t\t<td> $employee[name] $employee[last_name] </td>\n\t\t \t\t<td> $employee[RFC] </td>\n\t\t \t\t<td> $employee[email] </td>\n\t\t \t\t<td>\n\t\t \t\t\t<a href='index.php?ctrl=employee&act=details&id=$employee[id]'><i class='icon-view'></i></a>\n\t\t\t\t\t\t\t<a href='index.php?ctrl=employee&act=edit&id=$employee[id]'><i class='icon-edit'></i></a>\n\t\t\t\t\t\t\t<a href='index.php?ctrl=employee&act=delete&id=$employee[id]'><i class='icon-remove'></i></a>\n\t\t\t\t\t\t</td>\n\t \t\t\t</tr>\";*/\n\t $dicc = array('{info}' => $info);\n\t $section = strtr($section, $dicc);\n\n\t\t$this->template($section);\n\t}", "public function showAll()\n {\n $objects = $this->repo->showAll();\n return view('admin.showAll', compact('objects') );\n }", "public function showAll() {\n $qry = $this->db->prepare('SELECT DISTINCT NAME,ADDRESS,SUBURB,LATITUDE,LONGITUDE FROM n8598177.items;');\n $qry->execute();\n foreach ($qry as $hotspot) {\n include('server/includes/recentReview.tpl.php');\n }\n }", "public function PrintData() {\r\n echo \"\".\"<br/>\";\r\n echo $this->string_var.\"<br/>\";\r\n echo $this->int_var.\"<br/>\";\r\n }", "public function display()\n {\n if ($this->_query == '')\n {\n WCFDataServicesEntity::displayEntities();\n }\n else\n {\n WCFDataServicesEntity::displayEntityData();\n }\n }", "function get_display_list($dataBaseHandle,$username,$index_id,$per_page,$get_deleted){\n\t\t//echo '<br>list index = '.$index_id;\n\t\t//$table = ($get_deleted)?$username.'_deleted':$username;\n\n\t\t$SqlQuery = '';\n\t\tif ($get_deleted == true){\t\t\n\t\t\t$SqlQuery .= 'SELECT '.$username.'.*,'.$username.'_sorted.id \n\t\t\t\t\t\tFROM '.$username.'_sorted \n\t\t\t\t\t\tINNER JOIN '.$username.' ON ('.$username.'_sorted.task_id = '.$username.'.task_id) AND ('.$username.'_sorted.id > '.$index_id.') \n\t\t\t\t\t\tLIMIT '.$per_page;\t\t\t\n\t\t} else {\n\t\t\t$SqlQuery .= 'SELECT * FROM '.$username.'_deleted LIMIT '.$per_page;\n\t\t}\t\t\t\n\t\treturn $dataBaseHandle->query($SqlQuery);\n\t}", "function printRecords ($show_edits = 1) {\n print \"<table border='1' width='90%'>\";\n foreach ($this->ids as $i) {\n print \"<tr><td>\";\n $this->link[$i]->printHTML($show_edits);\n print \"</td>\";\n print \"<td><p><a href='delete.php?id=$i'>Delete</a></p>\";\n print \"<p><a href='modify.php?id=$i'>Modify</a></p></td></tr>\";\n }\n print \"</table>\";\n }", "public function display() {}", "public function display() {}", "public function show(){\n $data=$this->cart->contents();\n echo \"<pre>\";\n print_r($data);\n echo \"</pre>\";\n\t}", "public function displayArray()\r\n\t{\r\n\t\t$this->addThingsToPrint(\"<h2><a href=\\\"\" . $this->contentURL . \"\\\">\" . $this->contentURL . \"</a></h2>\");\r\n\t\t$this->addThingsToPrint(\"<pre>\" . print_r(json_decode($this->getJsonData()), TRUE) . \"</pre>\");\r\n\t\t$fullContent = RestUtils::getHTTPHeader('Testing') . $this->dataToPrint . RestUtils::getHTTPFooter(); \r\n\t\tRestUtils::sendResponse(200, $fullContent);\r\n\t}", "function dsp_single_office_info()\n {\n $VIEW_DATA['arr_single_office_info'] = $this->model->qry_single_office_info();\n $this->view->render('dsp_single_office_info',$VIEW_DATA);\n }", "function delete_all()\n {\n if ($this->GET('sure')) {\n $this->table->delete();\n $this->table->write();\n $this->structure();\n return;\n }\n $this->displayHead();\n echo 'Do you really want to<br>delete all rows from table `' . $this->table->tablename() . '`?<p>';\n echo '<a class=\"danger\" href=\"' . $this->SELF . '?method=delete_all&table=' . $this->table->tablename() . '&sure=1\">Yes</a> | ';\n echo '<a href=\"' . $this->SELF . '?method=browse&table=' . $this->table->tablename() . '\">No</a>';\n }", "public function liste()\n {\n $discs = $this->LoadModel('Disc');\n $discDetail = $discs->info_record();\n $this->render('liste', [\n 'discs' => $discDetail\n ]);\n }", "public function afficherAll()\n {\n }", "public function trash()\n {\n $this->trash = true;\n return $this->index();\n }", "public function trash_list()\n {\n $this->data['rows'] = DB::table('news')\n ->leftJoin('categories', 'news.category_id', 'categories.id')\n ->leftJoin('subcategories', 'news.subcategory_id', 'subcategories.id')\n ->select(\n 'news.*',\n 'categories.name as category',\n 'subcategories.name as subcategory'\n )\n ->where([\n 'news.status'=>0\n ])\n ->orderby('news.id', 'desc')\n ->get();\n \n return view('backend.pages.news.trash')->with($this->data);\n }", "public function staffAllDataShow()\n\t\t{\n\t\t\t$sql = \"SELECT * FROM staffs\";\n\t\t\t$data = parent::dbConnection() -> query($sql);\n\t\t\treturn $data;\n\t\t}", "function all(){\r\n $data = $this -> model -> getXML();\r\n render('index',$data);\r\n }", "public function display_rows_or_placeholder()\n {\n }", "public function display_data()\n\t{\n\t\t//get records\n\t\t$record_set = $this->connection->query\n\t\t(\"\n\t\t\tselect\n\t\t\t\tBoothID as ID,\n\t\t\t\tCONCAT ('Booth ', BoothNum) as selection\n\t\t\tfrom Booth\n\t\t\");\n\t\t$records = $record_set->fetchAll();\n\t\t$record_set->closeCursor();\n\n\t\t//return records\n\t\treturn $records;\n\n\t}", "function displayData($table, $tableID = \"\")\r\n {\r\n if (!is_null($this->data)) {\r\n echo $this->db->getDataByID($table, $tableID, $this->data);\r\n } else {\r\n if (empty($this->db->retriveData($table))) {\r\n echo json_encode($this->db->getColumnName($table));\r\n } else {\r\n echo json_encode($this->db->retriveData($table));\r\n }\r\n }\r\n }", "public function readAll2()\n {\n show_view('views/admin/post/create.php', ['bodyParts' => BodyPart::all()]);\n }", "private function _display_data_table(){\n\t\t\t$fields = array();\n\t\t\t$query = \"DESCRIBE `\".$this->class_settings['database_name'].\"`.`\".$this->table_name.\"`\";\n\t\t\t$query_settings = array(\n\t\t\t\t'database'=>$this->class_settings['database_name'],\n\t\t\t\t'connect' => $this->class_settings['database_connection'] ,\n\t\t\t\t'query' => $query,\n\t\t\t\t'query_type' => 'DESCRIBE',\n\t\t\t\t'set_memcache' => 1,\n\t\t\t\t'tables' => array( $this->table_name ),\n\t\t\t);\n\t\t\t$sql_result = execute_sql_query($query_settings);\n\t\t\t\n\t\t\tif($sql_result && is_array($sql_result)){\n\t\t\t\tforeach($sql_result as $sval)\n\t\t\t\t\t$fields[] = $sval;\n\t\t\t}else{\n\t\t\t\t//REPORT INVALID TABLE ERROR\n\t\t\t\t$err = new cError(000001);\n\t\t\t\t$err->action_to_perform = 'notify';\n\t\t\t\t\n\t\t\t\t$err->class_that_triggered_error = 'cCountry_list.php';\n\t\t\t\t$err->method_in_class_that_triggered_error = '_display_data_table';\n\t\t\t\t$err->additional_details_of_error = 'executed query '.str_replace(\"'\",\"\",$query).' on line 208';\n\t\t\t\treturn $err->error();\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t//INHERIT FORM CLASS TO GENERATE TABLE\n\t\t\t$form = new cForms();\n\t\t\t$form->setDatabase( $this->class_settings['database_connection'] , $this->table_name , $this->class_settings['database_name'] );\n\t\t\t$form->uid = $this->class_settings['user_id']; //Currently logged in user id\n\t\t\t$form->pid = $this->class_settings['priv_id']; //Currently logged in user privilege\n\t\t\t\n\t\t\t$this->datatable_settings['current_module_id'] = $this->class_settings['current_module'];\n\t\t\t\n\t\t\t$form->datatables_settings = $this->datatable_settings;\n\t\t\t\n\t\t\t$returning_html_data = $form->myphp_dttables($fields);\n\t\t\t\n\t\t\treturn array(\n\t\t\t\t'html' => $returning_html_data,\n\t\t\t\t'method_executed' => $this->class_settings['action_to_perform'],\n\t\t\t\t'status' => 'display-datatable',\n\t\t\t);\n\t\t}", "function displayResults($cleanData){\n $output='';\n foreach ($cleanData as $key => $value) {\n $output.='<li class = \"list-group-item\">\n <strong>'. htmlentities(ucfirst($key)). ': </strong> '.htmlentities($value).'\n </li>';\n }\n return $output;\n }", "public function remove_all_data()\n\t{\n\t\t$this->_data = array();\n\t}", "public function display_summary() {\n // FIXME\n }", "public function displayContentOverview() {}", "function show_list($data)\n{\n\n\t$list = split(\"\\n\",$data);\n\n\t$pattern = \"/[dwrx\\-]{10}/\";\n\t\n\t$list = array_slice($list,1,count($list)-1);\n\tforeach($list as $file)\n\t{\n\t\t\n\t\t$file = preg_split(\"/ /\",$file,20,PREG_SPLIT_NO_EMPTY);\n\t\t\n\t\t/*\n\t\t * directory download has to be implemented in a different manner\n\t\t * so we will just ignore directories for now.\n\t\t */\n\t\tif(preg_match('/^d/',trim($file[FPERM])))\n\t\t{\n\t\t\t$downlink = \"dir.php?dir=\". urlencode(trim(\"$path\".$file[FNAME]));\t\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$downlink = \"getfile.php?filename=\". urlencode(\"$path\".$file[FNAME]);\n\t\t}\n\t\t\n\t\tprintf('<tr><td class=\"cell1\">%s</td><td class=\"cell1\">%s</td>\n\t\t\t\t\t<td class=\"cell1\">%s</td><td class=\"cell1\">%s</td>\n\t\t\t\t\t<td class=\"cell1\">%s %s %s</td>\n\t\t\t\t\t<td class=\"cell1\"><a href=\"%s\">%s</a></td>\n\t\t\t\t</tr>',\n\t\t\t\t$file[FPERM],$file[FUID],$file[FGID], $file[FSIZE],\n\t\t\t\t$file[FMONTH],$file[FDAY],$file[FTIME],\n\t\t\t\t$downlink, $file[FNAME]);\n\n\t}\n}", "function show() {\n // Abort if empty file\n if($this->oParser->oManager->tsCurDate < 1) {\n return;\n }\n \n // We want to process the output later\n ob_start();\n\n $this->printHeading();\n $this->printDailyMessages();\n $this->printAbsentTeachers();\n $this->printStandInTable();\n $this->printStandInTableFooter();\n\n $str = ob_get_clean();\n #debugPrint($str);\n echo vpBeautifyString($str);\n }", "public function GuestData(){\r\n // Displays the buy now data. No interactions for the user.\r\n echo \"<div class = 'items_added'>\r\n <hr>\r\n <h3>\". $this->name .\"</h3>\r\n <h3 class = 'pricing'>£\" . $this->price .\"</h3><br>\r\n <p> Date Added : \" . $this->dateadded.\"</p><br>\r\n <p class = 'badge badge-primary'> Seller: </p><p><b> Username: </b> \".$this->username. \"</p><p><b> &nbsp Full-Name: </b> \" .$this->first_name . \" \" .$this->last_name. \" </p>\r\n <p>\". $this->description .\"</p><br>\r\n </div>\";\r\n }", "function niceOutput($all=0){\n\t\t// $all=1\tonly print line with field[0]=T\n\t\t// $all=2\tprint all line\n\t\t$handle = @fopen(DIR.$this->filename, \"r\");\n\t\techo \"<ul>\";\n\t\t$i=1;\n\t\twhile (($buffer = fgets($handle, 4096)) !== false) {\n\t\t\t$fields = explode(\"::::\", $buffer);\n\t\t\t//echo $fields[0].\"<br>\";\n\t\t\tif ($fields[0] == \"F\" and ($all===0 or $all===2)) {\n\t\t\t\techo \"<li class='col-lg-3 col-md-3'><a href='$fields[2]' target='_blank' class='readinglist'>$fields[1]</a> <span class='delete'><a href='index.php?delete_id=$i' class='btn btn-default btn-xs btn-inline'><span class='glyphicon glyphicon-remove showTip' id='removeItem' data-toggle='tooltip' title='remove'></span></a><a href='#' class='btn btn-xs btn-default btn-inline' data-toggle='modal' data-target='#renameModal' data-id='$i' data-title='$fields[1]'><span class='glyphicon glyphicon-registration-mark showTip' id='renameItem' data-toggle='tooltip' title='rename'></a></span></li>\";\n\t\t\t}\n\t\t\tif ($fields[0] == \"T\" and ($all===1 or $all===2)) {\n\t\t\t\techo \"<li class='col-lg-3 col-md-3'><a href='$fields[2]' target='_blank' class='readinglist'>$fields[1]</a> <span class='delete'><a href='index.php?delete_id=$i' class='btn btn-default btn-xs btn-inline'><span class='glyphicon glyphicon-remove showTip' id='removeItem' data-toggle='tooltip' title='remove'></span></a><a href='index.php?rename_id=$i' class='btn btn-xs btn-default btn-inline'><span class='glyphicon glyphicon-registration-mark showTip' id='renameItem' data-toggle='tooltip' title='rename'></span></span></a></span></li>\";\n\t\t\t}\n\t\t\t$i++;\n\t\t}\n\t\techo \"</ul>\";\n\t\tif (!feof($handle)) {\n\t\t\techo \"Error: unexpected fgets() fail\\n\";\n\t\t}\n\t\tfclose($handle);\t\n\t\t}", "public function visualizzazione(){\n $nameColumn = $this->getColumnName();\n $tuple = $this->read();\n foreach($nameColumn as $nome){\n $x = ' <td> '. $nome . ' </td> ';\n echo $x;\n }\n \n foreach($tuple as $ris){\n $str ='<tr> <td> '.$ris->getId(). ' </td> '.\n '<td> '.$ris->getNome(). '</td>'.\n '<td> '.$ris->getUsername(). '</td>'.\n '<td> '.$ris->getPassword(). '</td>'.\n '<td> '.$ris->getEmail(). '</td>'.\n '<td> '.$ris->getMuseo(). '</td>'.\n '</tr>';\n echo $str;\n };\n }", "function PrintData($key,$region)\n{\n\n $data = GetTheDataArray(array('theme','data',$key,$region));\n $returnData = '';\n if(is_array($data))\n {\n foreach($data as $key => $d)\n {\n if(!isset($data[0]) && !isset($data[1]))\n {\n $returnData .= '';\n } else {\n $returnData .= $d;\n }\n\n }\n } else {\n\n $returnData = $data;\n }\n\n return $returnData;\n\n\n}", "public function trash(){\n $data = [\n 'data' => Fees::where('is_deleted','1')->get(),\n 'student' => Student::get(),\n 'batch' => Batch::where('is_deleted', '0')->where('status', '0')->get(),\n 'branch_course' => BranchCourse::where('fee', '>', '0')->where('status', 'Y')->get(),\n 'course' => Course::where('is_deleted', '0')->where('status', '0')->get(),\n 'link' => env('admin').'/fees/'\n ];\n\n return View('admin.fees.trash',$data);\n }", "public function displayAllCustomers() {\n global $mwAdminDB; // db connection \n\n return ($mwAdminDB->displayAllCustomers());\n }", "public static function displayTodos(array $data)\n {\n $result = '';\n foreach ($data as $datum) {\n $result .= '<div class=\"row todos\" data-id=\"' . $datum['id'] . '\" data-complete=\"' . $datum['completed'] . '\"\n data-delete=\"' . $datum['deleted'] . '\" >\n <span class=\"col-xs-1 col-xs-offset-1 col-md-1 col-md-offset-2 checkComplete\">&#10003;</span>\n <span class=\"col-xs-6 col-xs-offset-1 col-md-4 col-md-offset-1 todo\">' . $datum['todoName'] . '</span>\n <span class=\"col-xs-1 col-xs-offset-1 checkDelete\">&#10008;</span>\n </div>';\n }\n return $result;\n }", "public function ListTable()\n {\n echo $this->ListTableText();\n }", "public function clearData() {\n $this->viewData = array();\n }", "public function print_cashdrawer()\n\t{\n\t\t$this->_json('');\n\t}", "public function all()\n\t{\n\t\techo \"All\";\n\t}", "public function overviewallAction() {\n\n $this->validateUser();\n\n $testCase = new Yourdelivery_Model_Testing_TestCase();\n $this->view->testcases = $testCase->getTable()->fetchAll()->toArray();\n $this->view->exp = $testCase->getExpectations();\n }", "public function index()\n\t{\n\t\t$data['daftar_qasidah'] = $this->QasidahModel->getAllQasidah();\n\t\t$this->load->view('back/data_qasidah', $data);\n\t}", "function doShowWithoutQuery()\n {\n /* The function above sets $this->rs to values that shall be\n displayed. By assigning $this->rs to Smarty variable 'section'\n we can fill the values of $this->rs into a template. */\n $this->_smarty->assign('user', $this->rs);\n /* Get left-hand menu, which will be an empty menu pointing to the\n parent level. */\n $this->_smarty->assign('leftcolumn', \"leftempty.tpl\");\n }" ]
[ "0.6902269", "0.66430146", "0.66354126", "0.6543537", "0.65320307", "0.6372341", "0.62972116", "0.62899363", "0.6282393", "0.6258239", "0.62523854", "0.6194665", "0.6194665", "0.61731595", "0.61727434", "0.6164711", "0.6150389", "0.6112137", "0.6066395", "0.60301095", "0.6029902", "0.60209024", "0.6018363", "0.6011328", "0.599427", "0.599", "0.5987193", "0.59429395", "0.5929024", "0.59281707", "0.5920075", "0.59200186", "0.591915", "0.59040415", "0.5889519", "0.58729476", "0.58699584", "0.586627", "0.5865505", "0.5857725", "0.5841066", "0.583879", "0.5835211", "0.5824517", "0.58242077", "0.5819982", "0.5815802", "0.58132535", "0.5810084", "0.5809757", "0.58074224", "0.5805726", "0.58054096", "0.5796748", "0.5795381", "0.5787451", "0.5776369", "0.5774926", "0.57723314", "0.57677233", "0.5764783", "0.57584304", "0.57573134", "0.5751451", "0.5749997", "0.5749997", "0.5743442", "0.5743102", "0.57299906", "0.57260025", "0.57252175", "0.5722217", "0.5716673", "0.5716295", "0.5716262", "0.57140315", "0.57125336", "0.57068956", "0.5702793", "0.57005805", "0.5699804", "0.5691498", "0.5691311", "0.56809676", "0.5677235", "0.567269", "0.5669272", "0.56682485", "0.56652355", "0.56615764", "0.56586623", "0.56562626", "0.56453925", "0.5644792", "0.564135", "0.564121", "0.56377655", "0.56347495", "0.56269896", "0.5626297", "0.56210893" ]
0.0
-1
//////////////////////for yearly data ///View Data
public function view(){ $query="SELECT * FROM `neci`.`notice_details` WHERE `id`=".$this->id; $result= mysqli_query($this->conn,$query); $row= mysqli_fetch_assoc($result); return $row; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function yearly_chart() {\n $this->load->view(\"expenses/yearly_chart\");\n }", "function yearly() {\n $this->load->view(\"expenses/yearly_expenses\");\n }", "public function modelYear();", "public function index()\n {\n $this->data->setDate(date('d-M-y'));\n $this->callView();\n\n }", "public function getYear() {}", "public function financialyears() {\n if ($this->input->get('view')) {\n $id = $this->myencrypt->decrypt_url($this->input->get('financialyear_id'));\n $data['financialyear'] = $this->account_model->getFinancialyears(array('mfinancialyears.mfinancialyear_id' => $id));\n } else {\n $data['financialyears'] = $this->account_model->getFinancialyears();\n }\n $settings_data['name'] = \"Financialyear\";\n $data['settings_data'] = $settings_data;\n $this->view('financialyears', $data);\n }", "public function processData()\n {\n \n $dateTimeStart = new DateTime($this->start);\n \n $dateEnd = $this->end;\n \n if (!$dateEnd) {\n $dateEnd = date('Y-m-d');\n }\n \n $dateTimeEnd = new DateTime($dateEnd);\n $this->yearEnd = $dateTimeEnd->format('Y');\n \n $beginYear = $dateTimeStart->format('Y');\n $this->yearStart = $beginYear;\n \n\n \n $numYears = $this->yearEnd - $this->yearStart;\n \n\n Log::debug( \"Start: {$this->yearStart} End: {$this->yearEnd} Num: {$numYears}\" );\n \n \n if (!$numYears) {\n $numYears = 1;\n }\n \n $this->allYears = [];\n \n for ($num = 0; $num <= $numYears; ++$num) {\n $this->allYears[] = $beginYear;\n ++$beginYear;\n }\n \n if (!$this->active) {\n $this->active = $this->yearEnd;\n }\n \n $active = $this->active;\n \n $this->yearBefore = $active-1;\n $this->yearAfter = $active+1;\n \n // ok ganz simple\n if (count($this->allYears) > 5) {\n\n \n if ($active + 2 >= $this->yearEnd) {\n $active = $this->yearEnd - 2;\n }\n \n if ( ($active - 2) <= $this->yearStart) {\n $active = $this->yearStart + 2;\n }\n \n $this->showYears[] = $active-2;\n $this->showYears[] = $active-1;\n $this->showYears[] = $active;\n $this->showYears[] = $active+1;\n $this->showYears[] = $active+2;\n \n } else {\n \n $this->showYears = $this->allYears;\n }\n \n $this->allYears = array_reverse($this->allYears);\n\n }", "public function getLastYearData() {\n\t\t$dates = getPeriods('LastYear');\n\t\treturn $this->getDataByInterval($dates['startMonth'], $dates['startYear'], $dates['endMonth'], $dates['endYear'], 12);\t\t\n\t}", "public function getYearList() \n {\t\t\n $this->db->select(\"to_char(cm_date, 'yyyy') as cm_year\");\n $this->db->from(\"ims_hris.calendar_main\");\n $this->db->where(\"to_char(cm_date, 'yyyy')::numeric >= to_char(current_date, 'yyyy')::numeric - 15\");\n $this->db->group_by(\"to_char(cm_date, 'YYYY')\");\n $this->db->order_by(\"to_char(cm_date, 'YYYY') desc\");\n $q = $this->db->get();\n \n return $q->result_case('UPPER');\n }", "public function get_year_permastruct()\n {\n }", "public function index() {\n //$fys = \\App\\FinancialYear::get();\n\t$fys = \\App\\FinancialYear::orderBy('idFinancialYear')->get();\n return view('financialyear.index', compact('fys'));\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}", "public function indexgraphyearAd()\n {\n\n // ->elementLabel(\"amout\")\n // ->dimensions(1000, 500)\n // ->responsive(false)\n // ->groupBy('name');\n\n // $bills = Bill::where(DB::raw(\"(DATE_FORMAT(update_at,'%Y'))\"),date('Y'))->get();\n // $chart = Charts::database($bills, 'bar', 'highcharts')\n // ->elementLabel(\"Total\")\n // ->dimensions(1000, 500)\n // ->responsive(false)\n // ->groupByMonth(date('Y'), true);\n\n // $data = Bill::where('updated_at', '2018-12-10')->get();\n // $chart = Charts::create('line', 'highcharts')\n // ->elementLabel(\"Total\")\n // ->dimensions(1000, 500)\n // ->responsive(false)\n // ->labels($data->pluck('updated_at'))\n // ->values($data->pluck('sum'));\n\n $chart = Charts::database(Bill::all(), 'bar', 'highcharts')\n ->elementLabel(\"Total\")\n ->dimensions(1000, 500)\n ->responsive(false)\n ->lastByYear(6);\n\n \n\n // $data = BillDetail::all();\n // $chart = Charts::create('line', 'highcharts')\n // ->elementLabel(\"Total\")\n // ->dimensions(1000, 500)\n // ->responsive(false)\n // ->labels($data->pluck('name'))\n // ->values($data->pluck('amout'));\n\n\n // ->template(\"material\")\n // ->dataset('Element 1', [5,20,100])\n // ->dataset('Element 1', [15,30,80])\n // ->dataset('Element 1', [25,10,40])\n // ->labels(['One', 'Two', 'Three']);\n\n return view('adminPharmacy.a_graphyear', ['chart' => $chart]);\n }", "public static function dataProvider()\n\t{\n\t\treturn array(\n\t\t\tarray(1600, 'MONTHLY', 1600),\n\t\t\tarray(2800, 'FOUR_WEEKLY', 2800),\n\t\t\tarray(280, 'TWICE_MONTHLY', 140),\n\t\t\tarray(1400, 'BI_WEEKLY', 700),\n\t\t\tarray(500, 'WEEKLY', 125),\n\t\t\tarray(505, 'WEEKLY', 126),\n\t\t\tarray(503, 'WEEKLY', 125),\n\t\t\tarray(1600, 'WHATEVER', 0),\n\t\t);\t\t\n\t}", "public function index()\n {\n $data = DB::table('schoolyear')->get();\n return view('school.modules.schoolyear.index',['schoolyear' => $data]);\n }", "public function index()\n {\n $years = Year::orderBy('year','DESC')->get();\n $data = [\n 'years'=>$years,\n ];\n return view('years.index',$data);\n }", "public function index()\n {\n return view('year.index');\n }", "public function getYear()\n {\n $allYear=array();\n $query=\"SELECT YEAR (input_date) as cyear FROM `consume_details` group by YEAR (input_date)\";\n // Utility::dd()\n $result=mysqli_query($this->conn,$query);\n while ($row=mysqli_fetch_assoc($result))\n {\n $allYear['cyear']=$row;\n }\n return $allYear;\n }", "function preview() {\n\n\t\t\n\t\t// determine this year\n\t\t$now = new DateTime();\n\t\t$thisYear = (int) ($now->format(\"Y\"));\n\n\t\t// get selected year\n\t\t$selectedYear = $this->request->query('selectedYear');\n\t\tif (is_null($selectedYear)) $selectedYear = $thisYear;\n\t\t$nextYear = $selectedYear + 1;\n\n\t\t// get first payment year\n\t\t$firstYear = $this->Department->Project->getFirstProjectYear();\n\n\t\t// get departments\n\t\t$departmentsList = $this->Department->findOrderedList();\n\n\n\t\t// BUILD UP SUMMARY DATA for this year and next\n\n\t\t// THIS YEAR\n\t\t//\n\t\t// get annual contract budgets\n\t\t$contractbudgetsThisYear = $this->Department->Project->Contract->Contractbudget->getContractBudgets($selectedYear);\n\n\t\t// get department budgets for this year\n\t\t$departmentBudgetsThisYear = $this->Department->Departmentbudget->getDepartmentBudgetsList($selectedYear);\n\n\t\t// get department unrestricted allocations for this year\n\t\t$departmentUnrestrictedAllocationThisYear = $this->Department->Departmentbudget->getDepartmentUnrestrictedAllocationsList($selectedYear);\n\n\t\t// NEXT YEAR\n\t\t//\n\t\t// get annual contract budgets\n\t\t$contractbudgetsNextYear = $this->Department->Project->Contract->Contractbudget->getContractBudgets($nextYear);\n\n\t\t// get department budgets for this year\n\t\t$departmentBudgetsNextYear = $this->Department->Departmentbudget->getDepartmentBudgetsList($nextYear);\n\n\t\t// get department unrestricted allocations for next year\n\t\t$departmentUnrestrictedAllocationNextYear = $this->Department->Departmentbudget->getDepartmentUnrestrictedAllocationsList($selectedYear);\n\n\n\t\t// BUILD UP DEPARTMENT-LEVEL DATA\n\t\t$departmentsDetailAnnual = [];\n\t\tforeach ($departmentsList as $department_id => $name) {\n\n\t\t\t$departmentDetailAnnual = array(\n\t\t\t\t'department' => $this->Department->findSimpleById($department_id),\n\t\t\t\t'projects' => $this->Department->Project->getProjectsByDepartmentAndYear($department_id, array($selectedYear, $nextYear)),\n\t\t\t\t'departmentBudgetThisYear' => $departmentBudgetsThisYear[$department_id],\n\t\t\t\t'departmentBudgetNextYear' => $departmentBudgetsNextYear[$department_id],\n\t\t\t\t'departmentUnrestrictedAllocationThisYear' => $departmentUnrestrictedAllocationThisYear[$department_id],\n\t\t\t\t'departmentUnrestrictedAllocationNextYear' => $departmentUnrestrictedAllocationNextYear[$department_id],\n\t\t\t);\n\n\t\t\t$departmentsDetailAnnual[$department_id] = $departmentDetailAnnual;\n\n\t\t}\n\n\n\t\t$this->set(compact(\n\n\t\t\t'departmentsList',\n\t\t\t'firstYear',\n\t\t\t'thisYear',\n\t\t\t'selectedYear',\n\t\t\t'nextYear',\n\t\t\t\n\t\t\t// Summary data\n\t\t\t'departmentBudgetsThisYear',\n\t\t\t'departmentBudgetsNextYear',\n\t\t\t'departmentUnrestrictedAllocationThisYear',\n\t\t\t'departmentUnrestrictedAllocationNextYear',\n\t\t\t'contractbudgetsThisYear',\n\t\t\t'contractbudgetsNextYear',\n\n\t\t\t// department-level\n\t\t\t'departmentsDetailAnnual'\n\t\t\t\n\t\t ));\n\n\t}", "public function dataProvider()\n {\n $data = [];\n\n $data[] = ['26-JAN-15 10:43:27', '2015-01-26 10:43:27'];\n $data[] = ['26-Jan-15 10:43:27', '2015-01-26 10:43:27'];\n $data[] = ['04-JAN-15 10:43:27', '2015-01-04 10:43:27'];\n $data[] = ['4-JAN-15 10:43:27', '2015-01-04 10:43:27'];\n\n $data[] = ['46-JAN-15 10:43:27', false];\n $data[] = ['26-ABC-15 10:43:27', false];\n $data[] = ['04-JAN-AB 10:43:27', false];\n $data[] = ['04-JAN-15 40:43:27', false];\n $data[] = ['04-JAN-15 10:79:27', false];\n $data[] = ['04-JAN-15 10:43:93', false];\n\n return $data;\n }", "public function getYearListTrCost() \n {\t\t\n $this->db->select(\"to_char(th_date_from,'yyyy') as cm_year\");\n $this->db->from(\"ims_hris.training_head\");\n $this->db->where(\"th_status = 'APPROVE'\");\n $this->db->where(\"th_internal_external = 'EXTERNAL_AGENCY'\");\n $this->db->group_by(\"TO_CHAR(th_date_from,'YYYY'), th_date_from \");\n $this->db->order_by(\"TO_CHAR(th_date_from,'YYYY') desc\");\n $q = $this->db->get();\n \n return $q->result_case('UPPER');\n }", "public function showCurrentYearAction()\r\n {\r\n\t\t$startDate = date('Y-01-01');\r\n\t\t$endDate = date('Y-m-d');\r\n\t\t\r\n\t\t$period = ' - bieżący rok';\r\n\t\t\r\n\t\tstatic::show($startDate, $endDate, $period);\r\n }", "public function manageyear()\n\t{\n\t\t$year = DB::table('year')->get();\n\t\treturn view('admin/year', array('title' => 'Dashboard', 'yearlist' => $year));\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}", "public function index()\n {\n $year=year::orderBy('created_at','desc')->paginate(6);\n return view('admin.settings.year')->with('year', $year);\n\n }", "public function getYearListEdtAppTr() \n {\t\t\n $this->db->select(\"to_char(th_date_from,'yyyy') as cm_year\");\n $this->db->from(\"ims_hris.training_head\");\n $this->db->where(\"th_status = 'APPROVE'\");\n $this->db->where(\"th_internal_external = 'EXTERNAL_AGENCY'\");\n $this->db->group_by(\"TO_CHAR(th_date_from,'YYYY'),th_date_from \");\n $this->db->order_by(\"TO_CHAR(th_date_from,'YYYY') desc\");\n $q = $this->db->get();\n \n return $q->result_case('UPPER');\n }", "public function getYearListAppTr2() \n {\t\t\n $this->db->select(\"to_char(th_date_from,'yyyy') as cm_year\");\n $this->db->from(\"ims_hris.training_head\");\n $this->db->where(\"th_status = 'APPROVE'\");\n $this->db->where(\"th_internal_external = 'EXTERNAL_AGENCY'\");\n $this->db->group_by(\"TO_CHAR(th_date_from,'YYYY'), th_date_from\");\n $this->db->order_by(\"TO_CHAR(th_date_from,'YYYY') desc\");\n $q = $this->db->get();\n \n return $q->result_case('UPPER');\n }", "function companydates(){\n $this->auth(COMP_ADM_LEVEL);\n $contest_id = $this->uri->segment(3);\n $data = $this->_getCompanyDataByContestId($contest_id);\n if($this->session->userdata('role_level') > SUPPORT_ADM_LEVEL){\n $data['editable'] = TRUE;\n } else {\n $data['editable'] = FALSE;\n }\n $this->load->view('admin/company_admin/v_dates', $data);\n }", "public function getYear() : string;", "public function show($year)\n\t{\n\t\t$results = $this->leaderboardRepo->get($year);\n\t\t$newvalue = array_values( (array)$results );\n\t\t$data['data'] = $newvalue;\n\t\treturn $data;\n\t}", "public function index()\n {\n $date = Carbon::now()->subDay()->format('d.m.Y');\n $query = Apartment::thisYear()\n ->selectRaw('MONTH(created_at) as month, count(id) as number')\n ->groupBY('month')\n ->get();\n\n\n return view('admin.report', ['range' => $query->pluck('month'), 'number' => $query->pluck('number'), 'dateStart'=>$date, 'dateEnd'=>$date, 'data'=>\"Apartment\", 'rangeType'=>\"YEAR\"]);\n }", "public function getYearListAppTr() \n {\t\t\n $this->db->select('to_char(th_date_from,\\'yyyy\\') as \"CM_YEAR\"');\n $this->db->from(\"ims_hris.training_head\");\n $this->db->where(\"th_internal_external = 'EXTERNAL_AGENCY'\");\n $this->db->group_by(\"th_date_from\");\n $this->db->order_by(\"TO_CHAR(th_date_from,'YYYY') desc\");\n $q = $this->db->get();\n \n return $q->result();\n }", "public function show()\n {\n $data=DB:: select(\"Select client_id,date(date) as 'years' from bill;\");\n return View('showbill',['bill_con'=>$data,]);\n }", "public function index()\n {\n $financial_year = FinancialYear::all();\n\n return view('FinancialYear.index')->with('financial_year', $financial_year);\n }", "public function years()\n {\n // ->paginate();\n\n // $users = User::all()\n // ->paginate();\n $users = User::where('active','=','1')->where('yearofLeaving','=','%1969')->take(12)->get();\n\n return view('public.welcome', compact('users'));\n }", "public function index()\n {\n $data = DB::table('vw_kpi_report_potential_clients')->where('target_year', 2017)->get();\n\n //return $data->target_month;//\n return response()->json($data);\n }", "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 static function get_view_all($today) {\n\t\t$today = date_create($today);\n\t\t$year = date_format($today, 'Y');\n\t\t$month = date_format($today, 'm');\n\t\t$date = date_format($today, 'd');\n\t\t// get week\n\t\t$book_view = BooksViewQModel::get_book_view_all($date, $month, $year);\n\t\tif ($book_view == null) {\n\t\t\t$week = null;\n\t\t} else {\n\t\t\t$week = $book_view->week;\n\t\t}\n\t\t// dd($week);\n\t\t$data['day']\t= [];\n\t\t$data['week']\t= [];\n\t\t$data['month']\t= [];\n\t\t$data['season']\t= [];\n\t\t$data['year']\t= [];\n\t\t// get view day all\n\t\tfor ($i = 0; $i < 7; $i++) { \n\t\t\t$data['day'][$i] = BooksViewQModel::get_book_view_day_all($i, $week, $month, $year);\n\t\t\tif ($data['day'][$i] == null)\n\t\t\t\t$data['day'][$i] = 0;\n\t\t\telse\n\t\t\t\t$data['day'][$i] = (int)$data['day'][$i]->view;\n\t\t}\n\t\t// get view week all\n\t\tfor ($i = 0; $i < 5; $i++) { \n\t\t\t$data['week'][$i] = BooksViewQModel::get_book_view_week_all($i, $month, $year);\n\t\t\tif ($data['week'][$i] == null)\n\t\t\t\t$data['week'][$i] = 0;\n\t\t\telse\n\t\t\t\t$data['week'][$i] = (int)$data['week'][$i]->view;\n\t\t}\n\t\t// get view month all\n\t\tfor ($i = 1; $i <= 12; $i++) { \n\t\t\t$data['month'][$i] = BooksViewQModel::get_book_view_month_all($i, $year);\n\t\t\tif ($data['month'][$i] == null)\n\t\t\t\t$data['month'][$i] = 0;\n\t\t\telse\n\t\t\t\t$data['month'][$i] = (int)$data['month'][$i]->view;\n\t\t}\n\t\t// get view season all\n\t\tfor ($i = 1; $i <= 4; $i++) { \n\t\t\t$data['season'][$i] = BooksViewQModel::get_book_view_season_all($i, $year);\n\t\t\tif ($data['season'][$i] == null)\n\t\t\t\t$data['season'][$i] = 0;\n\t\t\telse\n\t\t\t\t$data['season'][$i] = (int)$data['season'][$i]->view;\n\t\t}\n\t\t// get view year all\n\t\tfor ($i = 2012; $i <= 2019; $i++) { \n\t\t\t$data['year'][$i] = BooksViewQModel::get_book_view_year_all($i);\n\t\t\tif ($data['year'][$i] == null)\n\t\t\t\t$data['year'][$i] = 0;\n\t\t\telse\n\t\t\t\t$data['year'][$i] = (int)$data['year'][$i]->view;\n\t\t}\n\t\treturn $data;\n\t}", "public function dataProviderBonus() {\n return [\n [2018, 11, '2018-11-15'],\n [2018, 12, '2018-12-19'],\n ];\n\n }", "public function index(){\n\t\t$year = now()->year;\n\t\t$model = VScheduleCustomer::with(\"users\")\n\t\t->whereYear('date_start', '=', $year)\n\t\t->orderBy('id','DESC')\n ->get();\n\t\t$res = [];\n\t\tforeach($model as $key => $k){\n\t\t\t\n\t\t\t$description = '<p>';\n\t\t\tforeach($k->users as $k2){\n\t\t\t\t$description .= $k2->name.\" (\".$k2->indentity_number.\")\\n\";\n\t\t\t}\n\t\t\t$description .= '</p>';\n\t\t\t$res[] = [\"title\" => 'BA-'.sprintf(\"%010d\", $k->id).' - '.$k->code , \"allday\" => false , \"customer\" => $k->name , \"borderColor\" => '#'.$k->color , 'description' => $description , 'start' => $k->date_start , 'mulai' => $k->date_start , 'end' => $k->date_finish , 'selesai' => $k->date_finish , 'address' => $k->address];\n\t\t\t\n\t\t}\n\t\treturn view('home',['model' => $res]);\n\t}", "public function view(){\r\n $this->month();\r\n }", "public function get_year_of_study(){\n\t\t$query = $this->db->get('year');\n\t\treturn $query->result();\n\t}", "function getListYear($data,$start=1,$end=2)\n{\n #awal = Start Year\n #akhir = End Year\n $property = $data;\n \n $awal = date('Y')-$start;\n $akhir = date('Y')+$end;\n if($property==''){\n $select = date('Y');\n }\n else{\n $select = $property;\n } \n $i = $awal; \n for($i>=$awal;$i<=$akhir;$i++)\n {\n #cond Selection\n if($i==$select){\n $sta = 'selected';\n }\n else{\n $sta = '';\n } \n echo '<option value=\"'.$i.'\" '.$sta.'>'.$i.'</option>';\n }\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 getYear()\r\n {\r\n return $this->ano;\r\n }", "public function tahunan()\n {\n $year = array();\n\n $this->db->select('SUM(hargatotal) as tahun');\n $this->db->from('bahanterpakai');\n $this->db->where('YEAR(tglpakai) = YEAR(NOW())');\n\n $query = $this->db->get();\n if ($query->num_rows() > 0) {\n $year = $query->result();\n }\n\n return $year;\n }", "public function reportStaffMonthlyDoorAttendentForm()\n {\n $year = DB::table('student')->distinct()->get(array('year'));\n return view('report.reportStaffMonthlyDoorAttendentForm')->with('year',$year);\n }", "function getYearsSelect()\n\t{\n\t\treturn $this->db->query(\"SELECT distinct(year(created_sell)) as yearssell from tb_sell where status <> 1 order by created_sell desc\")->result();\n\t}", "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}", "public function yearProvider()\n {\n return array(\n // year = 1\n array('11111111111111111', array(2001, 2031)),\n // year = K\n array('1M8GDM9AXKP042788', array(1989, 2019)),\n // year = 3\n array('5GZCZ43D13S812715', array(2003, 2033)),\n // invalid year\n array('5GZCZ43D1US812715', array())\n );\n }", "public function index()\n {\n //\n $year = Carbon::parse(Carbon::now())->year;\n\n\n $pointrank = Points::query()\n ->select('member_id')->selectRaw('SUM(value) as TotalPoints')\n ->where('Year','=', $year)\n ->groupBy('member_id')\n ->orderByDesc('Totalpoints')\n ->get();\n\n return view ('report.points', compact('pointrank'));\n }", "public function getAnnualSales() {\n\t\t// Query\n\t\t$sql = '\n\t\t\tSELECT \n\t\t\t\tDATE_FORMAT(transactionDate, \"%Y\") AS year, \n\t\t\t\tSUM(amount) AS amount\n\t\t\tFROM \n\t\t\t\ttransactions\n\t\t\tGROUP BY \n\t\t\t\tDATE_FORMAT(transactionDate, \"%Y\")\n\t\t';\n\n\t\t// Return\n\t\treturn DB::select($sql);\n\t}", "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 index()\n {\n\n\n $gelenteklif=Teklifler::where(['silindi'=>0,'OnayDurumu'=>0])\n ->whereYear('TeklifVerilenTarih','>','2017-12-31')\n ->orderBy('TeklifVerilenTarih','DESC')->get();\n \n return view('dashboard',['teklif'=>$gelenteklif]);\n }", "function get_all_financial_year(){\n $str_query=\"select financial_year_id, year_name, date_start, date_end from financial_year order by date_end desc\";\n\tif (!$this->sql_query($str_query)){\n return false;\n\t}\n\telse{\n return true;\n\t}\n }", "public function receipt_year() {\n $this->db->select('YEAR(receipt_master.date_transfer) AS year_pay');\n $this->db->where('receipt_master.type_receipt_id', 5);\n $this->db->where('receipt_master.status_receipt_id', 1);\n $this->db->where('receipt_master.status_transfer_id', 3);\n $this->db->where('receipt_master.shop_id_pri', $this->session->userdata('shop_id_pri'));\n $this->db->where('receipt_master.date_transfer !=', '');\n $this->db->group_by('YEAR(receipt_master.date_transfer)');\n return $this->db->get('receipt_master');\n }", "public function year_list()\n\t{\n\t\t// -------------------------------------\n\t\t// Load 'em up\n\t\t// -------------------------------------\n\n\t\t$this->load_calendar_datetime();\n\t\t$this->load_calendar_parameters();\n\n\t\t// -------------------------------------\n\t\t// Prep the parameters\n\t\t// -------------------------------------\n\n\t\t$params = array(\n\t\t\tarray(\t'name' => 'date_range_start',\n\t\t\t\t\t'required' => FALSE,\n\t\t\t\t\t'type' => 'date',\n\t\t\t\t\t'default' => 'year-01-01'\n\t\t\t\t\t),\n\t\t\tarray(\t'name' => 'date_range_end',\n\t\t\t\t\t'required' => FALSE,\n\t\t\t\t\t'type' => 'date'\n\t\t\t\t\t),\n\t\t\tarray(\t'name' => 'limit',\n\t\t\t\t\t'required' => FALSE,\n\t\t\t\t\t'type' => 'integer',\n\t\t\t\t\t'default' => 100\n\t\t\t\t\t)\n\t\t\t);\n\n//ee()->TMPL->log_item('Calendar: Processing parameters');\n\n\t\t$this->add_parameters($params);\n\n\t\t$today = $this->CDT->date_array();\n\n\t\t$this->CDT->change_ymd($this->P->value('date_range_start', 'ymd'));\n\t\t$this->CDT->set_default($this->CDT->datetime_array());\n\t\tif ($this->P->value('date_range_end') === FALSE)\n\t\t{\n\t\t\t$this->P->set('date_range_end', $this->CDT->add_year($this->P->value('limit')));\n\t\t\t$this->CDT->reset();\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$this->P->set('limit', 9999);\n\t\t}\n\n\t\t$dir = ($this->P->value('date_range_end', 'ymd') > $this->P->value('date_range_start', 'ymd')) ? 1 : -1;\n\t\t$output = '';\n\t\t$count = 0;\n\n//ee()->TMPL->log_item('Calendar: Looping');\n\n\t\tdo {\n\t\t\t$vars['conditional']\t= array\t(\t'is_current_year'\t\t=>\t($this->CDT->year == $today['year']) ? TRUE : FALSE,\n\t\t\t\t\t\t\t\t\t\t\t\t'is_not_current_year'\t=>\t($this->CDT->year == $today['year']) ? FALSE : TRUE\n\t\t\t\t\t\t\t\t\t\t\t);\n\t\t\t$vars['single']\t= array('year'\t=> $this->CDT->year);\n\t\t\t$vars['date']\t= array(\n\t\t\t\t'year'\t\t=> $this->CDT->datetime_array(),\n\t\t\t\t'date'\t\t=> $this->CDT->datetime_array(),\n\t\t\t);\n\t\t\t$output .= $this->swap_vars($vars, ee()->TMPL->tagdata);\n\t\t\t$this->CDT->add_year($dir);\n\t\t\t$count++;\n\t\t} while ($count < $this->P->value('limit') AND $this->CDT->year < $this->P->value('date_range_end', 'year'));\n\n\t\treturn $output;\n\t}", "public function reportTeacherDatewiseAttendent()\n {\n $year = DB::table('student')->distinct()->get(array('year'));\n return view('report.reportTeacherDatewiseAttendent')->wit;\n }", "public function getAcademic()\n {\n $now = Carbon::now();\n\n $year = $now->year + 4;\n\n return ($now->month >= 8) ? ($year - 1911) : ($year - 1912);\n }", "public function yearly_Partners(){\n return view('Partners/yearly_Partners');\n }", "public function index()\n\t{\n\t\t return view('Citas/index_date');\n\t}", "function showYear($rowCount=false,$startMonth=false){\n\tif ($rowCount) $this->rowCount=$rowCount;\n$this->monthNav=false; // disables month navigation in yearview\n$out=$this->mkYearHead(); // this should remain first: opens table tag\n$out.=$this->mkYearTitle(); // tr tag: year title and navigation\n$out.=$this->mkDatePicker(\"yearonly\"); // tr tag: year date picker (only year selection)\n$this->datePicker=false; // disables month date picker in yearview\n$out.=$this->mkYearBody($startMonth); // tr tag(s): year month (html tables)\n$out.=$this->mkYearFoot(); // this should remain last: closes table tag\nreturn $out;\n}", "function get_openstaandeDossiersStatistiek() {\n $jaren = $this->db->query(\"select distinct year from view_statOpenstaandeDossiers\");\n if (!$jaren) {\n $this->error(\"Check query in get_openstaandeDossiersStatistiek in klasse functioneelBeheer_model\");\n }\n while ($row = $jaren->fetch_assoc()) {\n $rows[] = $row;\n }\n foreach ($rows as $var) {\n if (date(\"Y\") == $var[year]) {\n $huidig_jaar = $var[year];\n } else {\n $huidig_jaar = date(\"Y\");\n }\n }\n $vorig_jaar = $huidig_jaar - 1;\n $twee_jaar = $huidig_jaar - 2;\n\n $result = $this->db->query(\"select * from view_statOpenstaandeDossiers\");\n if (!$result) {\n $this->error(\"Check query in get_openstaandeDossiersStatistiek in klasse functioneelBeheer_model\");\n }\n $associativeArray = array(\n $twee_jaar => array(\n 1 => 0,\n 2 => 0,\n 3 => 0,\n 4 => 0,\n 5 => 0,\n 6 => 0,\n 7 => 0,\n 8 => 0,\n 9 => 0,\n 10 => 0,\n 11 => 0,\n 12 => 0),\n $vorig_jaar => array(\n 1 => 0,\n 2 => 0,\n 3 => 0,\n 4 => 0,\n 5 => 0,\n 6 => 0,\n 7 => 0,\n 8 => 0,\n 9 => 0,\n 10 => 0,\n 11 => 0,\n 12 => 0),\n $huidig_jaar => array(\n 1 => 0,\n 2 => 0,\n 3 => 0,\n 4 => 0,\n 5 => 0,\n 6 => 0,\n 7 => 0,\n 8 => 0,\n 9 => 0,\n 10 => 0,\n 11 => 0,\n 12 => 0)\n );\n while ($row = mysqli_fetch_array($result)) {\n $associativeArray[$row['year']][$row['month']] = $row['aantalDossiers'];\n }\n return array($huidig_jaar, $vorig_jaar, $twee_jaar, $associativeArray);\n }", "function index()\n {\n $data['servicio_temporal'] = $this->Servicio_temporal_model->get_all_servicio_temporal();\n \n $data['_view'] = 'servicio_temporal/index';\n $this->load->view('layouts/main',$data);\n }", "protected function year(){\n return $this->now->format('Y');\n }", "function get_previous_yr_data($clntval, $dateval, $arr_prev_year, $arr_prev_year_detail) {\n\t\t\n\t\t//global $arr_prev_year, $arr_prev_year_detail;\n\t\t\n\t\t if ($arr_prev_year[$clntval] == \"\") {\n\t\t\t\t$arr_out[0] = \"\";\n\t\t\t\t$arr_out[1] = \"\";\n\t\t\t\t$arr_out[2] = \"\";\n\t\t\treturn $arr_out;\n\t\t\t} else {\n\t\t\t\t$arr_date = explode(\"-\",$dateval);\n\t\t\t\t$matchval = $arr_date[0]-1 . \"-\". $arr_date[1] . \"-\". $arr_date[2];\t\n\t\t\n\t\t\t\t$date_old = date('Y-m-d', strtotime($arr_prev_year[$clntval]));\n\t\t\t\t$date_new = date('Y-m-d', strtotime($matchval));\n\t\t\n\t\t\t\t//xdebug('matchval',$matchval);\n\t\t\t\t//xdebug('arr_prev_year[$clntval]',$arr_prev_year[$clntval]);\n\t\t\t\t\n\t\t\t\tif (samebrokmonth($date_old, $date_new)==1) {\n\t\t\t\t$arr_out[0] = $arr_prev_year_detail[$clntval][0];\n\t\t\t\t} else {\n\t\t\t\t$arr_out[0] = \"\";\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif (samebrokqtr($date_old, $date_new)==1) {\n\t\t\t\t$arr_out[1] = $arr_prev_year_detail[$clntval][1];\n\t\t\t\t} else {\n\t\t\t\t$arr_out[1] = \"\";\n\t\t\t\t}\n\t\t\n\t\t\t\t$arr_out[2] = $arr_prev_year_detail[$clntval][2];\n\t\t\t}\n\t\t\treturn $arr_out;\n\t\t}", "public function index()\n {\n $date = Carbon::now();\n $periode = $date->format('d/m/Y').\" - \".$date->addDays(30)->format('d/m/Y');\n \n return view('datatables', [\n 'periode' => $periode\n ]);\n }", "public function getCurrentMonthData() {\n\t\t//return $this->getDataByInterval($currentMonth, $currentYear, $currentMonth, $currentYear);\n\t\t$dates = getPeriods('CurrentMonth');\n\t\treturn $this->getDataByInterval($dates['startMonth'], $dates['startYear'], $dates['endMonth'], $dates['endYear']);\t\t\n\t}", "function this_year()\n{\n global $db; // golbalize db variable:\n $thisYear = date('Y') . '-01-01';\n $nextYear = ((int) date('Y') + 1) . '-01-01';\n $datesIds = $db->getMany(DATES, [\n 'date' => $thisYear,\n 'dates.date' => $nextYear,\n ], ['id', 'date'], ['date' => '>=', 'dates.date' => '<=']);\n if ($db->count > 0) {\n return $datesIds;\n }\n}", "function sales_report_annual($year){\n \t\t$this->db->select('products.PRODUCT, SUM(sales.QUANTITY_SOLD) SALES, products.COST_PRICE, products.SALES_PRICE');\n \t\t$this->db->from('sales');\n \t\t$this->db->join('products', 'products.PRODUCT_ID=sales.PRODUCT_ID', 'left');\n \t\t$this->db->where('YEAR(sales.SALES_DATE)', $year);\n \t\t$this->db->where('STATUS', 'Confirmed');\n \t\t$this->db->group_by('sales.PRODUCT_ID');\n\n \t\t$query=$this->db->get();\n \t\tif($query->num_rows()>0){\n \t\t\treturn $query->result();\n \t\t}\n \t\telse{\n \t\t\treturn false;\n \t\t}\n \t}", "function dashboard($data) {\n\t\t$month = $data->filter(function($user){ return $user->created_at->format('m-y') == date('m-y'); });\n\t\t$lastmonth = $data->filter(function($user){ return $user->created_at->format('m-y') == Carbon::now()->firstOfMonth()->subMonth()->format('m-y'); });\n\t\t$year = $data->filter(function($user){ return $user->created_at->format('y') == date('y'); });\n\t\t$lastyear = $data->filter(function($user){ return $user->created_at->format('y') == Carbon::now()->subYear()->format('y'); });\n\t\n\t\t$results = collect([\n\t\t\t\t'month' => $month->count(),\n\t\t\t\t'lastmonth' => $lastmonth->count(),\n\t\t\t\t'year' => $year->count(),\n\t\t\t\t'lastyear' => $lastyear->count(),\n\t\t\t\t'total' => $data->count(),\n\t\t\t]);\n\t\t\tif(isset($data[0]['amount'])) {\n\t\t\t\t$results = $results->union([\n\t\t\t\t\t'month_sum' => $month->sum('amount'),\n\t\t\t\t\t'lastmonth_sum' => $lastmonth->sum('amount'),\n\t\t\t\t\t'year_sum' => $year->sum('amount'),\n\t\t\t\t\t'lastyear_sum' => $lastyear->sum('amount'),\n\t\t\t\t\t'total_sum' => $data->sum('amount'),\n\t\t\t\t]);\n\t\t\t};\n\t return $results;\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 function index()\n {\n return view ('alumni/biodata');\n }", "public function index() {\n\t\t$employees = Employee::all();\n\t\t$descriptionSigns = DescriptionSign::all();\n\t\t$month = date('m');\n\t\t$year = date('Y');\n\t\tforeach ($employees as $key => $value) {\n\t\t\t$calendar = Calendar::where('employee_id', '=', $value->id)->where('month',$month)->where('year',$year)->first();\n\t\t\tif($calendar == null)\n\t\t\t{\n\t\t\t\t$calendar = $this->bornCalendarEmpty($value->id,$month,$year);\n\t\t\t}\n\t\t\t$this->generatePresenteWhenInitNewDate($calendar, $month, $year);\n\t\t\t$employees[$key]->calendar = $calendar;\n\t\t}\n\n\t\t$func = function($emp) {\n\t\t return $emp->year;\n\t\t};\n\t\t// Year is stored in database calendar.\n\t\t$years = collect(Calendar::all())->map($func);\n\t\t$years = array_unique($years->toArray());\n\n\t\treturn view('calendar.calendar', compact('employees','month','year','years','descriptionSigns'));\n\t}", "public function getYear(){\n\t\treturn $this->_year;\n\t}", "public static function statsticsPigeonsYear()\n\t{\n\t\t$pigeonTable=Pigeon::getTableSchema();\n\t\t$query = (new Query())->select([\"COUNT(*) as count\", \"year\", \"sex\"])->from($pigeonTable->name)->where(['IDuser'=>Yii::$app->user->getId()])->groupBy('year, sex');\n\t\t$command = $query->createCommand();\n\t\t$rows = $command->queryAll();\n\t\t$year=[]; $maleCount=[]; $femaleCount=[]; $unknownCount=[];\t\t\n\t\tforeach($rows as $value)\n\t\t{\n\t\t\t$year[$value[\"year\"]]=$value[\"year\"];\n\t\t\t$femaleCount[$value[\"year\"]]=empty($femaleCount[$value[\"year\"]])?0:$femaleCount[$value[\"year\"]];\n\t\t\t$maleCount[$value[\"year\"]]=empty($maleCount[$value[\"year\"]])?0:$maleCount[$value[\"year\"]];\n\t\t\t$unknownCount[$value[\"year\"]]=empty($unknownCount[$value[\"year\"]])?0:$unknownCount[$value[\"year\"]];\n\t\t\tif($value[\"sex\"]==Pigeon::MALE_PIGEON)\n\t\t\t{\n\t\t\t\t$maleCount[$value[\"year\"]]=$value[\"count\"];\n\t\t\t}\n\t\t\t\n\t\t\tif($value[\"sex\"]==Pigeon::FEMALE_PIGEON)\n\t\t\t{\n\t\t\t\t$femaleCount[$value[\"year\"]]=$value[\"count\"];\n\t\t\t}\n\t\t\t\n\t\t\tif($value[\"sex\"]==Pigeon::UNKNOWN_SEX_PIGEON) \n\t\t\t{\n\t\t\t\t$unknownCount[$value[\"year\"]]=$value[\"count\"];\n\t\t\t}\n\t\t}\n\t\t\n\t\t /* Create and populate the pData object */ \n\t\t$MyData = new \\pData(); \n\t\t$MyData->loadPalette(Yii::getAlias(\"@common\").\"/pchart/palettes/light.color\", TRUE);\n\t\t$MyData->addPoints($maleCount,Yii::t('default', 'Male')); \n\t\t$MyData->addPoints($femaleCount,Yii::t('default', 'Female')); \n\t\t$MyData->addPoints($unknownCount,Yii::t('default', 'No sex')); \n\t\t$MyData->setAxisName(0,Yii::t('default', 'Number of pigeons')); \n\t\t$MyData->addPoints($year,\"Year\"); \n\t\t$MyData->setSerieDescription(\"Year\",Yii::t('default', 'Year')); \n\t\t$MyData->setAbscissa(\"Year\"); \n\t\t\n\t\t/* Create the pChart object */ \n\t\t$myPicture = new \\pImage(900,1000,$MyData); \n\t\t\n\t\t/* Turn of Antialiasing */ \n\t\t$myPicture->Antialias = FALSE; \n\t\t\n\t\t/* Set the default font */ \n\t\t$myPicture->setFontProperties(array(\"FontName\"=>Yii::getAlias(\"@common\").\"/pchart/fonts/verdana.ttf\",\"FontSize\"=>10)); \n\t\t\n\t\t/* Define the chart area */ \n\t\t$myPicture->setGraphArea(60,60,800,1000); \n\t\t\n\t\t/* Draw the scale */ \n\t\t$scaleSettings = array(\"GridR\"=>200,\"GridG\"=>200,\"GridB\"=>200,\"DrawSubTicks\"=>TRUE,\"CycleBackground\"=>TRUE, \"Mode\"=>SCALE_MODE_START0, \"Pos\"=>SCALE_POS_TOPBOTTOM); \n\t\t$myPicture->drawScale($scaleSettings); \n\t\t\n\t\t/* Write the chart legend */ \n\t\t$myPicture->drawLegend(480,12,array(\"Style\"=>LEGEND_NOBORDER,\"Mode\"=>LEGEND_HORIZONTAL)); \n\t\t\n\t\t\n\t\t/* Draw the chart */ \n\t\t$myPicture->drawBarChart(); \n\t\t\n\t\t/* Render the picture (choose the best way) */ \n\t\t$myPicture->autoOutput(Yii::getAlias(\"@webroot\").\"/temp/example.drawBarChartYear.png\"); \n\t}", "public function index()\n {\n return view('reports.revenue.date_wise_denomination.index');\n }", "function getData()\n {\n return $this->date;\n }", "protected function dates_filter(){\n \t//+Constraint Isgi: only one year data\n \t$temporal = $this->get_temporal();\n \tif( strtolower($temporal->end) == \"now\"){\n \t\t$now = new \\DateTime();\n \t\t$temporal->end = $now->format(\"Y-m-d\");\n \t}\n \t\n \t\n \t//change start and end\n \tif( $this->start < $temporal->start){\n \t\t$this->start = $temporal->start;\n \t}\n \tif( $this->end > $temporal->end){\n \t\t$this->end = $temporal->end;\n \t}\n \t$update = $this->get_update();\n \tif( !empty( $update) && $update < $this->end){\n \t\t$this->end = $update;\n \t}\n \t// diff between start and end\n \t$start = new \\DateTime( $this->start);\n \t$end = new \\DateTime( $this->end);\n \t$interval = $start->diff( $end);\n \tif( $interval->invert){\n \t\t//end < start\n \t\t$this->error = \"NO_DATA\";\n \t}else{\n\t \tif( $interval->days > 365){\n\t \t\t$start = clone $end;\n\t \t\t$start->sub( new \\DateInterval(\"P364D\"));\n\t \t\t$this->start = $start->format(\"Y-m-d\");\n\t \t}\n \t}\n }", "static function timeline($year, $week) {\n //default values\n if (!$year) {\n $year = date('Y');\n }\n\n if (!$week) {\n $week = date('W') - 1;\n }\n\n $data =[];\n\n $sql = \"SET @d := STR_TO_DATE(concat(:year,:week,' Monday'), '%X%V %W');\";\n Yii::app()\n ->db\n ->createCommand($sql)\n ->bindParam(':year', $year, PDO::PARAM_INT)\n ->bindParam(':week', $week, PDO::PARAM_INT)\n ->execute();\n //start date\n $sql = \"SET @date_from := ADDDATE(@d , INTERVAL 2-DAYOFWEEK(@d) DAY);\";\n Yii::app()->db->createCommand($sql)->execute();\n\n //end date\n $sql = \"SET @date_to := ADDDATE(@date_from , 12);\";\n Yii::app()->db->createCommand($sql)->execute();\n\n $sql = \"\n SELECT \n vvoy_id,\n date(vvoy_start_date) start_date,\n date(vvoy_end_date) end_date,\n concat(vtrc_car_reg_nr,'/',vtrl_reg_nr) label,\n CASE vvoy_status \n WHEN '\" . self::VVOY_STATUS_PROJECT . \"' THEN 'icon-question'\n WHEN '\" . self::VVOY_STATUS_ACCEPTED . \"' THEN 'icon-check' \n WHEN '\" . self::VVOY_STATUS_CANCELED . \"' THEN 'icon-times' \n WHEN '\" . self::VVOY_STATUS_IN_WAY . \"' THEN 'icon-road' \n WHEN '\" . self::VVOY_STATUS_CLOSED . \"' THEN 'icon-lock' \n WHEN '\" . self::VVOY_STATUS_FINISHED . \"' THEN 'icon-unlock' \n END icon,\n CASE vvoy_status \n WHEN '\" . self::VVOY_STATUS_PROJECT . \"' THEN 'warning'\n WHEN '\" . self::VVOY_STATUS_ACCEPTED . \"' THEN 'success' \n WHEN '\" . self::VVOY_STATUS_CANCELED . \"' THEN 'light' \n WHEN '\" . self::VVOY_STATUS_IN_WAY . \"' THEN 'danger' \n WHEN '\" . self::VVOY_STATUS_CLOSED . \"' THEN 'grey' \n WHEN '\" . self::VVOY_STATUS_FINISHED . \"' THEN 'yellow' \n END color\n FROM\n vvoy_voyage \n INNER JOIN vtrc_truck \n ON vvoy_vtrc_id = vtrc_id \n LEFT OUTER JOIN vtrl_trailer \n ON vvoy_vtrl_id = vtrl_id \n WHERE \n vvoy_sys_ccmp_id = \" . Yii::app()->sysCompany->getActiveCompany() . \" \n AND \n (\n vvoy_start_date >= @date_from AND vvoy_start_date <= @date_to\n OR vvoy_end_date >= @date_from AND vvoy_end_date <= @date_to\n OR vvoy_start_date <= @date_from AND vvoy_end_date >= @date_to \n )\n ORDER BY vtrc_car_reg_nr,\n vvoy_start_date \n \";\n\n $data['body_data'] = Yii::app()\n ->db\n ->createCommand($sql)\n ->queryAll();\n\n //create urls\n foreach ($data['body_data'] as $k => $row) {\n $data['body_data'][$k]['url'] = Yii::app()->createUrl(\n 'vvoy/vvoyVoyage/view', \n array('vvoy_id' => $row['vvoy_id'])\n );\n }\n\n $sql = \"SELECT \n @date_from date_from,\n @date_to date_to,\n year(adddate(@date_from,interval -1 week)) prev_period_year,\n week(adddate(@date_from,interval -1 week)) prev_period_week,\n year(adddate(@date_from,interval 1 week)) next_period_year,\n week(adddate(@date_from,interval 1 week)) next_period_week\n ;\";\n $data['header_data'] = Yii::app()->db->createCommand($sql)->queryRow();\n \n return $data;\n }", "public function vbd_report_other_datewise()\n\t\t{\n\t\t\t$this->load->view('admin/header');\n\t\t\t$this->load->view('admin/nav');\n\t\t\t$data['get_state']=$this->Mod_report->get_state();\n\t\t\t$data['get_institute']=$this->Mod_report->get_institute();\n\t\t\t$this->load->view('reports/vbd_report_other_datewise',$data);\t\t\n\t\t\t$this->load->view('admin/footer');\t\n\n\t\t}", "public function index()\n {\n $business_id = request()->session()->get('user.business_id');\n\n if (!auth()->user()->can('dashboard.data')) {\n return view('home.index');\n }\n\n $fy = $this->businessUtil->getCurrentFinancialYear($business_id);\n $date_filters['start'] = date('Y-m-d');\n $date_filters['end'] = date('Y-m-d');\n\n $currency = Currency::where('id', request()->session()->get('business.currency_id'))->first();\n \n //Chart for sells last 30 days\n $sells_last_30_days = $this->transactionUtil->getSellsLast30Days($business_id);\n $labels = [];\n $values = [];\n for ($i = 29; $i >= 0; $i--) {\n $date = \\Carbon::now()->subDays($i)->format('Y-m-d');\n\n $labels[] = date('j M Y', strtotime($date));\n\n if (!empty($sells_last_30_days[$date])) {\n $values[] = $sells_last_30_days[$date];\n } else {\n $values[] = 0;\n }\n }\n\n $sells_this_fy = $this->transactionUtil->getSellsCurrentFy($business_id, $fy['start'], $fy['end']);\n\n $labels = [];\n $values = [];\n\n $months = [];\n $date = strtotime($fy['start']);\n $last = date('M Y', strtotime($fy['end']));\n\n return view('home.index', compact('date_filters'));\n }", "public function index()\n\t {\n $yearclass = Yearclass::all();\n return view('/admin/yearclass/index')->with('yearclass',$yearclass);\n\t }", "public function getDataWithTypeDate() {}", "public function dataProviderSalary() {\n return [\n [2018, 11, '2018-11-30'],\n [2018, 12, '2018-12-31'],\n ];\n\n }", "public function show ()\n {\n if (isset($_GET[$this->pre.'year'])) Yii::$app->session[$this->pre.'year'] = $_GET[$this->pre.'year'];\n if (! isset($_GET[$this->pre.'year']) && ! isset(Yii::$app->session[$this->pre.'year'])) Yii::$app->session[$this->pre.'year'] = date(\"Y\", time());\n if (isset($_GET[$this->pre.'month'])) Yii::$app->session[$this->pre.'month'] = $_GET[$this->pre.'month'];\n if (! isset($_GET[$this->pre.'month']) && ! isset(Yii::$app->session[$this->pre.'month'])) Yii::$app->session[$this->pre.'month'] = date(\"m\", time());\n if (isset($_GET[$this->pre.'fecha'])) Yii::$app->session[$this->pre.'fecha'] = $_GET[$this->pre.'fecha'];\n if (! isset($_GET[$this->pre.'fecha']) && ! isset(Yii::$app->session[$this->pre.'fecha'])) Yii::$app->session[$this->pre.'fecha'] = date(\"Y-m-d\", time());\n\n $this->currentYear = Yii::$app->session[$this->pre.'year'];\n $this->currentMonth = Yii::$app->session[$this->pre.'month'];\n\n $this->daysInMonth = $this->_daysInMonth();\n $weeksInMonth = $this->_weeksInMonth();\n $fechas = $this->_selectFechas();\n\n $semana = '';\n\n // Create weeks in a month\n for ($i = 0; $i < $weeksInMonth; $i ++)\n {\n \t$dias = \"\";\n\n \t// Create days in a week\n \tfor ($j = 1; $j <= 7; $j ++)\n \t{\n \t\t$cellContent = $this->_showDay($i * 7 + $j);\n\n \t\tif (in_array($cellContent, array_column($fechas, $this->pre.'fecha')))\n \t\t{\n \t\t\t$dias .= Html::tag('td', \"<b>\".Html::a($cellContent, $this->controller.'?'.$this->pre.'fecha='.$this->currentYear.\n \t\t\t\t\t'-'.$this->currentMonth.'-'.$cellContent).\"</b>\");\n \t\t}\n \t\telse\n \t\t{\n \t\t\t$dias .= Html::tag('td', $cellContent);\n \t\t}\n \t}\n\n \t$semana .= Html::tag('tr', $dias).\"\\n\";\n }\n\n $out = \"<br> \\n\". Html::tag('table',\n \t \"\\n\". Html::tag('thead', $this->_createNavi().\n \"\\n\". $this->_createLabels()).\n \"\\n\". Html::tag('tbody', $semana),\n \t ['class' => 'table-calendario', 'width' => '100%']). \"<br> \\n\";\n\n //$s = $this->_selectFechas();\n\n return $out;\n }", "public function date_range_report()\n\t{\n\t\t$this->data['crystal_report']=$this->reports_personnel_schedule_model->crystal_report_view();\n\t\t$this->data['company_list'] = $this->reports_personnel_schedule_model->company_list();\n\t\t$this->load->view('employee_portal/report_personnel/schedule/date_range_report',$this->data);\n\t}", "private function data()\n {\n return [\n 'start_date'=>date('Y-m-d', strtotime('-7 days')),\n 'end_date'=>date('Y-m-d')\n ];\n }", "public function index()\n {\n $calories = FitInfo::weeklyCalories(Auth::user());\n $series = [];\n $dataCalories = [];\n foreach ($calories['activities-calories'] as $calorie) {\n// dd($calorie);\n $series[] = $calorie['dateTime'];\n $dataCalories[] = $calorie['value'];\n }\n $steps = FitInfo::weeklySteps(Auth::user());\n $dataSteps = [];\n foreach ($steps['activities-steps'] as $step) {\n $dataSteps[] = $step['value'];\n }\n $distance = FitInfo::weeklyDistance(Auth::user());\n $dataDistance = [];\n foreach ($distance['activities-distance'] as $distance) {\n $dataDistance[] = $distance['value'];\n }\n return['categories' => $series, 'calories' => $dataCalories, 'steps' => $dataSteps, 'distance' => $dataDistance];\n }", "public function TransactionChart(Request $request)\n {\n \t$year = $request->input('year') ? $request->input('year') : date('Y'); \n \t$chartData = DB::table('trans_peryear_view')\n \t\t\t\t->where('year', $year)\n \t\t\t\t->get();\n\n \treturn response()->json(['chartData' => $chartData], 200);\n }", "public function enableYear() {\n\t\t$this->displayYear = true;\n\t}", "public function index()\n {\n (new Calendar())->getOutDays();\n $user = Auth::user();\n $year = $_GET['year'] ?? Carbon::now()->year;\n $data = array(\n \"hours\" => array(1, 2, 3, 4, 5, 6),\n \"date\" => Carbon::now('Europe/Paris'),\n \"categories\" => Category::all(),\n \"calendar\" => (new Calendar())->show(),\n \"navi\" => (new Calendar())->navigation(),\n \"counts\" => array(\n 'f' => Helpers::getCounter('f', $year, $user),\n 'cp' => Helpers::getCounter('cp', $year, $user),\n 'r' => Helpers::getCounter('r', $year, $user),\n 'am' => Helpers::getCounter('am', $year, $user),\n 'cs' => Helpers::getCounter('cs', $year, $user),\n 'a' => Helpers::getCounter('a', $year, $user),\n ),\n \"days\" => Helpers::getNumberRange(1, 31),\n \"months\" => Helpers::getNumberRange(1, 12),\n \"years\" => Helpers::getNumberRange(2015, 2030),\n );\n\n return view('pages.wcalendar.index', compact('data'));\n }", "function index()\n {\n $data['sectionTable'] = $this->Main_model->get('sections', 'id');\n\n //get year level \n $data['yearLevelTable'] = $this->Main_model->get('year_level', 'id');\n\n $this->load->view('includes/header');\n $this->load->view('sections', $data);\n $this->load->view('includes/footer');\n }", "public function getDataAtual()\n {\n $this->hoje = date(\"Y-m-d H:i:s\");\n return $this->hoje;\n }", "public function yearList($all_option = true)\n\t{\n\t\tif ( $all_option == true ) $years['all'] = 'All';\n\t\t$all_years = $this->doll->orderBy('release_year', 'desc')->groupBy('release_year')->select('release_year')->get();\n\t\tforeach ( $all_years as $year ){\n\t\t\t$years[$year->release_year] = $year->release_year;\n\t\t}\n\t\treturn $years;\n\t}", "public function getYear() {\n return $this->_year;\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 OrderYear()\n {//--------------------------------------------------------------Lấy về năm (cái mà có bản ghi trả về)\n\t $arr=array();\n\t $select= \"SELECT DISTINCT(year(orderDate)) As orderYear FROM orders order by orderDate \";\n\t $result=$this->executeSelect($select);\n\t while($row=mysqli_fetch_array($result))\n\t {\n\t\t $year=new ordersDto();\n\t\t $year->setorderYear($row['orderYear']);\n\t\t $arr[]=$year;\n\t }\n\t $this->DisConnectDB();\n\t return $arr;\n }", "public function index()\n {\n $tgl = date(\"Y-m-d\");\n $data = periksa::where('tanggal',$tgl)->get();\n return view('periksa.index',compact('data','tgl'));\n }", "public function index()\n {\n $me=Carbon::now()->format('m');\n $anu=Carbon::now()->format('Y');\n \n $conceptos=Concepto::orderBy('id','DESC')->paginate(5);\n $egre=Egreso::where('estado','Activo')->sum('monto_total');\n $mes=Egreso::where('estado','Activo')->whereMonth('fecha', $me)->sum('monto_total') ; \n $anual=Egreso::where('estado','Activo')->whereYear ('fecha', $anu)->sum('monto_total') ;\n $egresos=Egreso::orderBy('id','DESC')->paginate(5);\n $usuarios=Usuario::All();\n return view('egresos.index',compact('conceptos', 'egresos','usuarios', 'egre','mes','anual') ); \n }", "public function index()\n {\n $user = Auth::user();\n //Check if user has permission to view academic year\n $isAuthorized = app('App\\Http\\Controllers\\UserPrivilegeController')->checkPrivileges($user->id, Config::get('settings.academic_year_management'), 'read_priv');\n if ($isAuthorized) {\n $academic_years = AcademicYear::all();\n //record in activity log\n $activityLog = ActivityLog::create([\n 'user_id' => $user->id,\n 'activity' => 'Viewed the list of academic years.',\n 'time' => Carbon::now()\n ]);\n return $academic_years;\n }else {\n //record in activity log\n $activityLog = ActivityLog::create([\n 'user_id' => $user->id,\n 'activity' => 'Attempted to view the list of academic years.',\n 'time' => Carbon::now()\n ]);\n return response()->json([\n 'message' => 'You are not authorized to view academic years records.'\n ],401); //401: Unauthorized\n }\n }" ]
[ "0.6991687", "0.6872728", "0.68095255", "0.6564648", "0.6503128", "0.6491501", "0.646291", "0.64508224", "0.6325837", "0.63095033", "0.62825435", "0.6281453", "0.62515706", "0.6231812", "0.6230802", "0.6183247", "0.61624926", "0.61375624", "0.61012286", "0.6100239", "0.6064546", "0.6061814", "0.6056383", "0.6043257", "0.6034974", "0.6033693", "0.6033384", "0.60308063", "0.6026358", "0.59912086", "0.5986586", "0.5980597", "0.5979892", "0.5979454", "0.59739023", "0.59700066", "0.5962659", "0.5960401", "0.5939185", "0.59364253", "0.5899167", "0.58969927", "0.58697104", "0.58575594", "0.5852177", "0.5851818", "0.5851427", "0.58374584", "0.5826868", "0.582418", "0.58099484", "0.58006793", "0.5789546", "0.5788317", "0.57737744", "0.5771374", "0.5769079", "0.57640254", "0.5738114", "0.5732409", "0.5730924", "0.5730353", "0.5728763", "0.5726176", "0.5705044", "0.5704514", "0.57027555", "0.56966347", "0.5695377", "0.5690628", "0.5685647", "0.5683863", "0.5681432", "0.56756496", "0.56655467", "0.5665407", "0.5654768", "0.5652839", "0.5652152", "0.5652149", "0.56472677", "0.56443787", "0.5638121", "0.56344557", "0.56292176", "0.56232566", "0.5622888", "0.5620297", "0.5615234", "0.5615116", "0.5612329", "0.5609991", "0.56082517", "0.56038314", "0.55944014", "0.5591956", "0.5589108", "0.5582662", "0.55825317", "0.55824053", "0.5581126" ]
0.0
-1
/////////////////////data for front page index page /////////////////////count
public function count_index(){ //$dd=$this->district_cd; // echo $dd; $query = "SELECT COUNT(*) AS totalItem FROM `neci`.`consume_details` WHERE `input_date`='".date('Y-m-d')."'"; ///AND `district_cd`='".$this->district_cd."' $result = mysqli_query($this->conn, $query); $row = mysqli_fetch_assoc($result); return $row['totalItem']; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static function getCount(){\n if(empty($query[2])){\n self::$contador=\"Home\";\n }else{\n self::$contador=self::$query[2];\n } \n return self::$contador;\n }", "public function getPageCount() \r\n { \r\n }", "function pageController()\n\t{\n\t $data = [];\n\t $counter = 0;\n\n\t /*if is a query string get request, update data counter so that counter adds one for up and subtracts one for down*/\n\t if(isset($_GET['request'])){\n\t \tif ($_GET['request'] == 'up'){\n\t \t\t$_GET['count']++;\n\t \t\t$data['counter']=$_GET['count'];\n\t \t} elseif ($_GET['request'] == 'down'){\n\t \t\t$_GET['count']--;\n\t \t\t$data['counter']=$_GET['count'];\n\t \t}\n \t\t}\n\t return $data; \n\t}", "public function getPageNumber() {}", "public function getPageNumber() {}", "public function countFrontend(){\n\t\t\t\t\t return count($this->listeFrontend());\n\t\t\t\t\t }", "public function getPageNumbers();", "public function getPageNumber();", "public function getPageNumber();", "public function totalPage();", "static function init($data){\n \n $pages = ceil($data['count_all'] / $data['limit']);\n \n $res = \"\";\n \n for($i = 1; $i <= $pages; $i++){\n \n if($i == $data['current_page'] ){ \n $res .= \"<b>$i</b>\";\n }\n else{\n $res .= \"<a href='\".$data['url'].\"&page=$i'>$i</a>\";\n }\n \n }\n \n \n return $res;\n \n \n \n \n }", "private function getNumPages() {\n //display all in one page\n if (($this->limit < 1) || ($this->limit > $this->itemscount)) {\n $this->numpages = 1;\n } else {\n //Calculate rest numbers from dividing operation so we can add one\n //more page for this items\n $restItemsNum = $this->itemscount % $this->limit;\n //if rest items > 0 then add one more page else just divide items\n //by limit\n $restItemsNum > 0 ? $this->numpages = intval($this->itemscount / $this->limit) + 1 : $this->numpages = intval($this->itemscount / $this->limit);\n }\n }", "public function homePageData() {\n\t\t$data[\"title\"] = \"Home\";\n\t\t$data[\"is_home\"] = 1;\n\t\t$key = 'homeContent';\n\t\t$data[\"sliders\"] = SM::getCache( 'homeSlider', function () {\n\t\t\treturn Slider::where( \"status\", 1 )->get();\n\t\t} );\n\n\t\t$data[\"cases\"] = SM::getCache( 'homeCases', function () {\n\t\t\t$case_show = SM::smGetThemeOption( \"case_show\", 3 );\n\n\t\t\treturn Cases::where( \"status\", 1 )\n\t\t\t ->orderBy( \"id\", \"desc\" )\n\t\t\t ->limit( $case_show )\n\t\t\t ->get();\n\t\t} );\n\t\t$data[\"blogs\"] = SM::getCache( 'homeBlogs', function () {\n\t\t\t$blog_show = SM::smGetThemeOption( \"blog_show\", 6 );\n\n\t\t\treturn Blog::with( \"user\" )\n\t\t\t ->where( \"status\", 1 )\n\t\t\t ->orderBy( \"id\", \"desc\" )\n\t\t\t ->limit( $blog_show )\n\t\t\t ->get();\n\t\t} );\n\t\t$data['homeContent'] = \\View::make( 'partials.home', $data )->render();\n\n\t\treturn $data;\n\t}", "function getPagesCounter()\n\t{\n\t\t// Initialize variables\n\t\t$html = null;\n\t\tif ($this->get('pages.total') > 1) {\n\t\t\t$html .= JText::sprintf('JPAGE_CURRENT_OF_TOTAL', $this->get('pages.current'), $this->get('pages.total'));\n\t\t}\n\t\treturn $html;\n\t}", "public function getPageData();", "function frontpage($request_data, $db) {\n $total_lang_xps = TOTAL_XP_CACHE;\n usort($total_lang_xps, function ($a, $b) {\n if ($a[1] === $b[1]) {\n return 0;\n }\n\n return ($a[1] > $b[1]) ? -1 : 1;\n });\n\n $total_xp = array_reduce($total_lang_xps, function ($acc, $lang) {\n return $acc + $lang[1];\n }, 0);\n\n $most_popular = array_slice($total_lang_xps, 0, 10);\n\n // Render template\n include 'front.tpl.php';\n}", "public function count_homepage_photos(){\n $sql=\"SELECT COUNT(*) FROM photos WHERE img_navigacija_id=2\";\n $result=self::$connect->query($sql);\n while($row=$result->fetch(PDO::FETCH_NUM)){\n return $row[0];\n }\n }", "public function currentStartCount(){\n\t\t$multiplier = $this->paged- 1;\n\t\treturn $multiplier * $this->posts_per_page;\n\t}", "public function numOfPages(): int;", "public function getPageHits()\n\t{\n\t\treturn $this->pageHits;\n\t}", "function fpage($count,$pnum){\r\n\t\r\n\t//echo \"<script src='js/jquery-1.11.1.js'></script>\";\r\n\t//echo \"<script src='js/jquery.cookie.js'></script>\";\r\n\techo \"<script src='js/fpage.js'></script>\";\r\n\techo \"<style>\";\r\n\t\techo \".fpage{\";\r\n\t\t\techo \"text-align:center;\";\r\n\t\t\techo \"font:normal bold 17px/100px normal;\";\r\n\t\techo \"}\";\r\n\t\techo \".fpage a{\";\r\n\t\t\techo \"text-decoration:none;\";\r\n\t\techo \"}\";\r\n\techo \"</style>\";\r\n\techo \"<div class='fpage'>\";\r\n\t//$count=count($arr);\t\t\t//总条数\t需传值 \r\n\t\r\n\t//$pnum=ceil($count/10);\t\t\t//总页数\r\n\t//setCookie('pnum',$pnum);\r\n\t\r\n\t$pnow=$_COOKIE['pnow'];\t\t\t//当前页\t\r\n\tif(!$pnow){\r\n\t\t$pnow=1;\r\n\t}\r\n\tif($pnow<0){\r\n\t\t$pnow=1;\r\n\t}else if($pnow==1){\t\r\n\t\t$pt=$pnow;\r\n\t}else if($pnow==2){\t\r\n\t\t$pt=$pnow-1;\r\n\t}else if($pnow==3){\t\r\n\t\t$pt=$pnow-2;\r\n\t}else if($pnow==4){\t\r\n\t\t$pt=$pnow-3;\r\n\t}else if($pnow==5){\t\r\n\t\t$pt=$pnow-4;\r\n\t}else if($pnow==5){\t\r\n\t\t$pt=$pnow-5;\r\n\t}else if($pnow>$pnum-9){\r\n\t\t$pt=$pnum-9;\r\n\t}else{\r\n\t\t$pt=$pnow-5;\r\n\t}\r\n\tif($pt<1){\r\n\t\t$pt=1;\r\n\t}\r\n\t$index=$pt+10;\r\n\t\r\n\t\r\n\techo \" <a href='' pnow=1>首页</a> \";\r\n\tif($pnow>1){\r\n\t\t$ppre=$pnow-1;\r\n\t\techo \" <a href='' pnow=$ppre>上一页</a> \";\r\n\t}\r\n\tif($pnow>10){\r\n\t\t$ppre10=$pnow-10;\r\n\t\techo \" <a href='' pnow=$ppre10> << </a> \";\r\n\t}\r\n\tfor($i=$pt;$i<$index;$i++){\r\n\t\tif($i<=$pnum){\r\n\t\t\tif($i==$pnow){\r\n\t\t\t\techo \" <a href='' pnow=$i style='font-size:20px;color:red' >\".$i.\"</a> \";\r\n\t\t\t}else{\r\n\t\t\t\techo \" <a href='' pnow=$i>\".$i.\"</a> \";\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\tif($pnow<$pnum-9){\r\n\t\t$pnext10=$pnow+10;\r\n\t\techo \" <a href='' pnow=$pnext10> >> </a> \";\r\n\t}\r\n\tif($pnow<$pnum){\r\n\t\t$pnext=$pnow+1;\r\n\t\techo \" <a href='' pnow=$pnext>下一页</a> \";\r\n\t}\r\n\techo \" <a href='' pnow=$pnum>尾页</a> \";\r\n\techo \"  <span style='font-size:13px;color:red'>共\".$pnum.\"页</span>\";\r\n\techo \"</div>\";\r\n}", "function getPageCount() { return $this->m_pageCount; }", "function getNumPages(){\n\t\treturn $this->numPages;\n\t}", "public function count()\n\t{\n\t\treturn count($this->_pages);\n\t}", "public function getCurrentPageData() {}", "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 }", "function index2()\n {\n //$data['count'] = $this->home_model->labelfinder_counter($condtion);\n //$counter = $this->db->query(\" SELECT count(*) as total FROM products WHERE Activate = 'Y' \")->row_array();\n //$data['count'] = $counter['total'];\n\n $data['main_content'] = 'index_home';\n $this->load->View('page');\n }", "public function pages_with_bhl()\n {\n if(isset($this->pages_with_bhl)) return $this->pages_with_bhl;\n $this->pages_with_bhl = 0;\n \n $result = $this->mysqli_slave->query(\"SELECT COUNT(DISTINCT(tc.id)) count FROM taxon_concepts tc JOIN taxon_concept_names tcn ON (tc.id=tcn.taxon_concept_id) JOIN page_names pn ON (tcn.name_id=pn.name_id) WHERE tc.published=1 AND tc.supercedure_id=0\");\n if($result && $row=$result->fetch_assoc()) $this->pages_with_bhl = $row['count'];\n return $this->pages_with_bhl;\n }", "public function getCurrentPageNumber(): int;", "public function getPagesCount()\n {\n \treturn count($this->_pages);\n }", "protected function get_stats()\n\t{\n\t\tif ($this->index_created())\n\t\t{\n\t\t\t$sql = 'SELECT COUNT(post_id) as total_posts\n\t\t\t\tFROM ' . POSTS_TABLE;\n\t\t\t$result = $this->db->sql_query($sql);\n\t\t\t$this->stats['total_posts'] = (int) $this->db->sql_fetchfield('total_posts');\n\t\t\t$this->db->sql_freeresult($result);\n\n\t\t\t$sql = 'SELECT COUNT(p.post_id) as main_posts\n\t\t\t\tFROM ' . POSTS_TABLE . ' p, ' . SPHINX_TABLE . ' m\n\t\t\t\tWHERE p.post_id <= m.max_doc_id\n\t\t\t\t\tAND m.counter_id = 1';\n\t\t\t$result = $this->db->sql_query($sql);\n\t\t\t$this->stats['main_posts'] = (int) $this->db->sql_fetchfield('main_posts');\n\t\t\t$this->db->sql_freeresult($result);\n\t\t}\n\t}", "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 get_pagenum()\n {\n }", "function getPageCount() {\n return $this->helper->getPageCount();\n }", "function getPageCount() {\n return $this->helper->getPageCount();\n }", "function counterHits(){\n\tglobal $pth; include($pth['app']['globals']);\n\t$count \t\t= '';\n\t$counterHits= $pth['site']['counterHits'];\n\tclearstatcache();\n\tif(!is_file($counterHits)){ $handle\t= fopen($counterHits,'w'); fwrite($handle,'0'); fclose($handle); }\n\t// get current Hits + count\n\t$count\t= file_get_contents($counterHits);\n\tif(!$adm){\n\t\t$count = $count+1;\n\t\t// save Hits\n\t\t$files = fopen($counterHits,'w'); \n\t\tfwrite($files,$count);\n\t\tfclose($files);\n\t}\n\t\n\treturn '<p><strong>'.$count.'</strong> '.$txt['counterHits']['views'].'.</p>';\n}", "function countHit() {\n\n $this->saveField('hits', $this->data['Ringsite']['hits']+1, false);\n }", "public function index()\n {\n return ['services' => Service::all()->count(), 'about' => About::all()->count(), 'info' => Info::all()->count(), 'projects' => Projects::all()->count(), 'clients' => Client::all()->count()];\n }", "public function getNbPages(): int;", "public function count()\n {\n return count($this->pages);\n }", "function countPages(){\n return $this->db->count_all('page_attributes');\n }", "public function index() {\n $categories = $this->category->model->where('parent_id', null)->orderBy('id', 'asc')->paginate(15);\n \n foreach ($categories as $category) { \n $category['products_count']=$category->articles()->count();\n }\n\n $all_categories = $this->category->model->all();\n $breadcrumbs = [['url' => '' , 'name' => trans('text.categories') ]];\n $category = null;\n return compact('categories', 'all_categories', 'breadcrumbs', 'category');\n }", "public function index() {\n $exploded = explode(\"/\", $this->_url);\n if (count($exploded) > 1) {\n $this->page(intval($exploded[1]));\n } else {\n $this->page(0);\n }\n }", "private function pagedata_preprocessor()\r\n {/*{{{*/\r\n $items_st = $this->items_ordered_struct;\r\n // the number of items per page\r\n $this->pagedata['limit'] = isset(self::$preferences->item->itemsperpage) \r\n ? self::$preferences->item->itemsperpage : 10;\r\n if(self::$is_admin_panel)\r\n $this->pagedata['limit'] = isset(self::$preferences->item->bitemsperpage) \r\n ? self::$preferences->item->bitemsperpage : 10;\r\n $this->pagedata['viewpage'] = isset(self::$preferences->item->page) \r\n ? self::$preferences->item->page : '';\r\n // How many adjacent pages should be shown on each side\r\n $this->pagedata['adjacents'] = 3;\r\n // last page\r\n $this->pagedata['lastpage'] = (int)(ceil(count($items_st) / $this->pagedata['limit']));\r\n // handle get\r\n if(isset(self::$input['page']) && self::$input['page'] <= 0)\r\n self::$input['page'] = 1;\r\n elseif(isset(self::$input['page']) && self::$input['page'] > $this->pagedata['lastpage'])\r\n self::$input['page'] = $this->pagedata['lastpage'];\r\n\t $this->pagedata['page'] = !empty(self::$input['page']) ? (int)self::$input['page'] : 1;\r\n // first page to display\r\n $this->pagedata['start'] = !empty($this->pagedata['page']) \r\n ? (($this->pagedata['page'] - 1) * $this->pagedata['limit']) : 0;\r\n // next page\r\n $this->pagedata['next'] = $this->pagedata['page'] + 1;\r\n\r\n // just for counting of rows\r\n $act_row = $this->pagedata['start'];\r\n $index = $this->pagedata['start'] + $this->pagedata['limit'];\r\n\r\n // active item keys\r\n\t\t$this->pagedata['itemkeys'] = array();\r\n while(isset($items_st[$act_row]) && $act_row < $index)\r\n {\r\n $this->pagedata['itemkeys'][] = $act_row;\r\n $act_row++;\r\n }\r\n\r\n // initialize jquery id\r\n $this->pagedata['jid'] = '';\r\n if(isset(self::$input['delete']))\r\n $this->pagedata['jid'] = safe_slash_html_input(self::$input['delete']);\r\n elseif(isset(self::$input['promo']))\r\n $this->pagedata['jid'] = safe_slash_html_input(self::$input['promo']);\r\n elseif(isset(self::$input['visible']))\r\n $this->pagedata['jid'] = safe_slash_html_input(self::$input['visible']);\r\n \r\n // Setup page vars to display.\r\n\t $this->pagedata['prev'] = $this->pagedata['page'] - 1;\r\n\t //$this->pagedata['next'] = $this->pagedata['page'] + 1;\r\n $this->pagedata['lpm1'] = $this->pagedata['lastpage'] - 1;\r\n\r\n // try to fix our url inside admin, remove redundant 'page' param\r\n // todo: search engine friendly URL \r\n $this->pagedata['pageurl'] = self::$properties['paths']['siteurl'].return_page_slug().'/?page=';\r\n if(self::$is_admin_panel)\r\n if(strpos(curPageURL(),'&page=')!==false)\r\n $this->pagedata['pageurl'] = reparse_url(parse_url(curPageURL()));\r\n else\r\n $this->pagedata['pageurl'] = curPageURL().'&cat='.ImCategory::$current_category.'&page=';\r\n\r\n }", "public static function alm_filters_get_page_num(){\n\t \t$pg = (isset($_GET['pg'])) ? $_GET['pg'] : 1;\n\t \treturn $pg;\n \t}", "function sportal_index()\n{\n\tglobal $smcFunc, $context, $scripturl, $modSettings, $txt;\n\n\t$context['sub_template'] = 'portal_index';\n\n\tif (empty($modSettings['sp_articles_index']))\n\t\treturn;\n\n\t$request = $smcFunc['db_query']('','\n\t\tSELECT COUNT(*)\n\t\tFROM {db_prefix}sp_articles AS spa\n\t\t\tINNER JOIN {db_prefix}sp_categories AS spc ON (spc.id_category = spa.id_category)\n\t\tWHERE spa.status = {int:article_status}\n\t\t\tAND spc.status = {int:category_status}\n\t\t\tAND {raw:article_permissions}\n\t\t\tAND {raw:category_permissions}\n\t\tLIMIT {int:limit}',\n\t\tarray(\n\t\t\t'article_status' => 1,\n\t\t\t'category_status' => 1,\n\t\t\t'article_permissions' => sprintf($context['SPortal']['permissions']['query'], 'spa.permissions'),\n\t\t\t'category_permissions' => sprintf($context['SPortal']['permissions']['query'], 'spc.permissions'),\n\t\t\t'limit' => 1,\n\t\t)\n\t);\n\tlist ($total_articles) = $smcFunc['db_fetch_row']($request);\n\t$smcFunc['db_free_result']($request);\n\n\t$total = min($total_articles, !empty($modSettings['sp_articles_index_total']) ? $modSettings['sp_articles_index_total'] : 20);\n\t$per_page = min($total, !empty($modSettings['sp_articles_index_per_page']) ? $modSettings['sp_articles_index_per_page'] : 5);\n\t$start = !empty($_REQUEST['articles']) ? (int) $_REQUEST['articles'] : 0;\n\t$total_pages = $per_page > 0 ? ceil($total / $per_page) : 0;\n\t$current_page = $per_page > 0 ? ceil($start / $per_page) : 0;\n\n\tif ($total > $per_page)\n\t{\n\t\t$context['page_index'] = constructPageIndex($context['portal_url'] . '?articles=%1$d', $start, $total, $per_page, true);\n\n\t\tif ($current_page > 0)\n\t\t\t$context['previous_start'] = ($current_page - 1) * $per_page;\n\t\tif ($current_page < $total_pages - 1)\n\t\t\t$context['next_start'] = ($current_page + 1) * $per_page;\n\t}\n\n\t$context['articles'] = sportal_get_articles(0, true, true, 'spa.id_article DESC', 0, $per_page, $start);\n\n\tforeach ($context['articles'] as $article)\n\t{\n\t\tif (($cutoff = $smcFunc['strpos']($article['body'], '[cutoff]')) !== false)\n\t\t\t$article['body'] = $smcFunc['substr']($article['body'], 0, $cutoff);\n\n\t\t$context['articles'][$article['id']]['preview'] = parse_bbc($article['body']);\n\t\t$context['articles'][$article['id']]['date'] = timeformat($article['date']);\n\t}\n}", "function get_all_pagina_web_count()\r\n {\r\n $pagina_web = $this->db->query(\"\r\n SELECT\r\n count(*) as count\r\n\r\n FROM\r\n `pagina_web`\r\n \")->row_array();\r\n\r\n return $pagina_web['count'];\r\n }", "public function getPageIndex(): int\n {\n return $this->pageIndex;\n }", "function landing_visit_counter($_url_params) {\n\t$_url_params['key'] = _KEY;\n\t$_url_params['landing'] = _LANDING_URL;\n\n $_landing = request_post_api(_VISIT_COUNT_URL,$_url_params);\n return $_landing;\n}", "public function getExtraPageData();", "public function getPageNr(){\n\t\tif(isset($_GET['p'])){\n\t\t\treturn $_GET['p'];\n\t\t}else{\n\t\t\treturn 1;\n\t\t}\n\t}", "public function getCurrentPage(): int;", "public function getCurrentPage(): int;", "public function action_index() {\n \n /* Try reading from cache */\n if(($nLikes = \\Cache::get('fblikes_' . $this->_sPage))) {\n $data['sName'] = \\Cache::get('fblikes_name_' . $this->_sPage);\n $data['nLikes'] = $nLikes;\n } else {\n /* Or get data from Facebook Graph API */\n $sContent = file_get_contents('https://graph.facebook.com/' . $this->_sPage);\n \n /* If the request was succefull, parse data */\n if($sContent !== false) {\n $oFb = json_decode($sContent);\n \n $data['sName'] = $oFb->name;\n $data['nLikes'] = $oFb->likes;\n \n \\Cache::set('fblikes_name_' . $this->_sPage, $oFb->name, 3600);\n \\Cache::set('fblikes_' . $this->_sPage, $oFb->likes, 3600);\n \n } else {\n $data['sName'] = 'noone';\n $data['nLikes'] = 0;\n }\n }\n \n /* Send data to view */\n $this->response->body = \\View::factory('facebooklikes', $data);\n }", "function data() {\n\t\t return array(\n\t\t\t // Check against an odd redirect\n\t\t\t array( '/page/2/', '/page/2/' ),\n\t\t\t array( '/?page=2', '/page/2/' ),\n\t\t\t array( '/page/1/', '/' ),\n\t\t\t array( '/?page=1', '/' ),\n\n\t\t\t // The page designated as the front page should redirect to the front of the site\n\t\t\t array( '/front-page/', '/' ),\n\t\t\t array( '/front-page/2/', '/page/2/' ),\n\t\t\t array( '/front-page/?page=2', '/page/2/' ),\n\t\t\t array( '/blog-page/?paged=2', '/blog-page/page/2/' ),\n\t\t );\n\t}", "private function _count_page()\n {\n $count_career = $this->core_model->count('career');\n return ceil($count_career / 4);\n }", "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}", "public function index()\n {\n return Press::sorted()->paginate(6);\n }", "public function getPage_count() {\n return $this->page_count;\n }", "public function get_page_info()\n {\n }", "public function count()\n {\n return Page::count();\n }", "public function index()\n {\n return Bien::paginate(3);\n }", "function nav_pages_struct(&$result, $q_string, $count, $REC_PER_PAGE) {\n \n\tglobal $label;\n\tglobal $list_mode;\n\t\n\tif ($list_mode=='PREMIUM') {\n\t\t$page = 'hot.php';\t\t\n\t} else {\n\t\t$page = $_SERVER[PHP_SELF];\n\t}\n\t$offset = $_REQUEST[\"offset\"];\n\t$show_emp = $_REQUEST[\"show_emp\"];\n\t\n\tif ($show_emp != '') {\n\t $show_emp = (\"&show_emp=$show_emp\");\n\t}\n\t$cat = $_REQUEST[\"cat\"];\n\tif ($cat != '') {\n\t $cat = (\"&cat=$cat\");\n\t}\n\t$order_by = $_REQUEST[\"order_by\"];\n\tif ($order_by != '') {\n\t $order_by = (\"&order_by=$order_by\");\n\t}\n\n\t$cur_page = $offset / $REC_PER_PAGE;\n\t$cur_page++;\n\t// estimate number of pages.\n\t$pages = ceil($count / $REC_PER_PAGE);\n\tif ($pages == 1) {\n\t return;\n\t}\n\t$off = 0;\n\t$p=1;\n\t$prev = $offset-$REC_PER_PAGE;\n\t$next = $offset+$REC_PER_PAGE;\n\n\tif ($prev===0) {\n\t\t$prev='';\n\t}\n\n\tif ($prev > -1) {\n\t $nav['prev'] = \"<a href='\".$page.\"?offset=\".$prev.$q_string.$show_emp.$cat.$order_by.\"'>\".$label[\"navigation_prev\"] .\"</a> \";\n\t \n\t}\n\tfor ($i=0; $i < $count; $i=$i+$REC_PER_PAGE) {\n\t if ($p == $cur_page) {\n\t\t $nav['cur_page'] = $p;\n\t\t \n\t\t \n\t } else {\n\t\t if ($off===0) {\n\t\t\t$off='';\n\t\t}\n\t\t if ($nav['cur_page'] !='') {\n\t\t\t $nav['pages_after'][$p] = $off;\n\t\t } else {\n\t\t\t$nav['pages_before'][$p] = $off;\n\t\t }\n\t }\n\t $p++;\n\t $off = $off + $REC_PER_PAGE;\n\t}\n\tif ($next < $count ) \n\t\t$nav['next'] = \" | <a href='\".$page.\"?offset=\".$next.$q_string.$show_emp.$cat.$order_by.\"'> \".$label[\"navigation_next\"].\"</a>\";\n\n\treturn $nav;\n}", "function index()\n {\n $perPage = 1;\n $this->lordModel('Post');\n $condition = array('online' => 1, '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 if (empty($d['posts'])) {\n $this->e404('page introuvable');\n }\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 getPageNumber() {\n\t\treturn (int)++self::$pageNumber;\n\t}", "function foucs_post_views() {\n $postID = get_the_ID(); // Get The ID Post\n $metaKey = 'foucs_posts_views'; // The Name Meta Key\n $views = get_post_meta( $postID, $metaKey, true ); //Show Views\n $count_start_num = 1; // The Number Count Will be Start Form 0\n\n $count = ( empty( $views ) ? $count_start_num : $views ); // Check Have Views Or No\n $count++; // The Count +1\n \n if(is_single()) { // Check If In Single Page Or No\n\t\t// Update The Views Number\n \tupdate_post_meta( $postID, $metaKey, $count );\n \techo $count; // Echo Number In Single Page and +1 After Refresh Page\n\t} else {\n\t\t// Echo Views in EvreWhere I Need\n \techo $views;\n \n }\n}", "function pageInfo($caps_count, $limit = 10)\n{\n // if $_GET['page'] is not set or invalid then set page as default 1\n if(!$page = filter_input(INPUT_GET, 'page', FILTER_SANITIZE_NUMBER_INT)){\n $page = 1;\n }\n\n // calculate the amount of pages based on the limit per page\n $count = $caps_count <= $limit ? 1 : ceil($caps_count / $limit);\n\n // if set page doesnt exist then return\n if($page < 1 || $page > $count) return;\n\n // set offset for current page\n $offset = ($page * $limit) - $limit;\n\n return [\n 'nr' => $page,\n 'count' => $count,\n 'limit' => $limit,\n 'offset' => $offset\n ];\n}", "public function getCount();", "public function getCount();", "public function getCount();", "public function getPages() {}", "function more_data(){\t \t \n\t\t$page = $this->input->post('page');\n\t\tif(empty($page)){ $page=0; }\n\t\t$offset = 10*$page;\n\t\t$limit = 10;\n\t\t$user__list = $this->InteractModal->all__active_users_limit('client',$limit, $offset);\n\t\t$count_record = $this->InteractModal->count_users('client');\n\t\t$page_data['user__list']= $user__list;\n\t\t$page_data['page']= $page;\n\t\t$this->load->view('common/client_load_more', $page_data);\t\n\t\t\t\t\n\t\t\t\n\t}", "function getTotalPages()\n{\n include('connecter.php');\n if($con)\n {\n $nbr = $con->query('SELECT COUNT(*) AS nbre_total FROM invite');\n $resultat = $nbr->fetch();\n return $resultat['nbre_total'];\n }\n return -1;\n \n}", "abstract public function getCount();", "public function index()\n\t{\n\t\t// page is yet to be fetched\n\t\t$sql = \"SELECT COUNT(content_id) AS count \n\t\t\t\tFROM nr_pb_mynewsdesk_content\n\t\t\t\tWHERE mynewsdesk_company_id = 0\";\n\n\t\t$counter = $this->db->query($sql)->row()->count;\n\t\tif ($counter)\n\t\t\treturn;\t\n\n\t\t// Checking if any newsroom\n\t\t// on mynewsdesk.com is yet \n\t\t// to be crawled for data\n\n\t\t$sql = \"SELECT count(cd.mynewsdesk_company_id) AS count\n\t\t\t\tFROM ac_nr_mynewsdesk_company_data cd\n\t\t\t\tLEFT JOIN ac_nr_mynewsdesk_nr_crawled w\n\t\t\t\tON w.mynewsdesk_company_id = cd.mynewsdesk_company_id\n\t\t\t\tWHERE w.mynewsdesk_company_id IS NULL \n\t\t\t\tAND NOT ISNULL(NULLIF(cd.newsroom_url, ''))\";\n\n\t\t$counter = $this->db->query($sql)->row()->count;\n\t\tif ($counter)\n\t\t\treturn;\n\t\t\n\n\t\t// Checking if any company website is yet to \n\t\t// be crawled for data\n\n\t\t$sql = \"SELECT COUNT(cd.mynewsdesk_company_id) AS count\n\t\t\t\tFROM ac_nr_mynewsdesk_company_data cd\n\t\t\t\tLEFT JOIN ac_nr_mynewsdesk_website_crawled w\n\t\t\t\tON w.mynewsdesk_company_id = cd.mynewsdesk_company_id\n\t\t\t\tWHERE w.mynewsdesk_company_id IS NULL \n\t\t\t\tAND NOT ISNULL(NULLIF(website, ''))\n\t\t\t\tAND cd.is_website_valid = 1\";\n\n\t\t$counter = $this->db->query($sql)->row()->count;\n\t\tif ($counter)\n\t\t\treturn;\n\n\t\t// Checking if any social accounts\n\t\t// are yet to be verified\n\n\t\t$sql = \"SELECT COUNT(mynewsdesk_company_id) AS count\n\t\t\t\tFROM ac_nr_mynewsdesk_company_data \n\t\t\t\tWHERE (soc_fb IS NOT NULL AND soc_fb <> '' AND soc_fb_feed_status = ?)\n\t\t\t\tOR (soc_twitter IS NOT NULL AND soc_twitter <> '' AND soc_twitter_feed_status = ?)\n\t\t\t\tOR (soc_gplus IS NOT NULL AND soc_gplus <> '' AND soc_gplus_feed_status = ?)\n\t\t\t\tOR (soc_youtube IS NOT NULL AND soc_youtube <> '' AND soc_youtube_feed_status = ?)\n\t\t\t\tOR (soc_pinterest IS NOT NULL AND soc_pinterest <> '' AND soc_pinterest_feed_status = ?)\";\n\t\t\t\n\t\t$nc = Model_MyNewsDesk_Company_Data::SOCIAL_NOT_CHECKED;\n\t\t$counter = $this->db->query($sql, array($nc, $nc, $nc, $nc, $nc))->row()->count;\n\t\tif ($counter)\n\t\t\treturn;\n\n\t\t// Checking if any website crawling \n\t\t// for email fetching is left\n\t\t\n\t\t$sql = \"SELECT COUNT(cd.mynewsdesk_company_id) AS count\n\t\t\t\tFROM ac_nr_mynewsdesk_company_data cd\n\t\t\t\tLEFT JOIN ac_nr_mynewsdesk_fetch_email e\n\t\t\t\tON e.mynewsdesk_company_id = cd.mynewsdesk_company_id\n\t\t\t\tWHERE e.mynewsdesk_company_id IS NULL \n\t\t\t\tAND ISNULL(NULLIF(cd.email, ''))\n\t\t\t\tAND NOT ISNULL(NULLIF(website, ''))\n\t\t\t\tAND cd.is_website_valid = 1\";\n\t\t\n\t\t$counter = $this->db->query($sql)->row()->count;\n\t\tif ($counter)\n\t\t\treturn;\n\n\t\t\t\t\n\t\t// Checking if any duplicate companies\n\t\t// based on dup URL are yet to be removed\n\n\t\t$sql = \"SELECT website, COUNT(website) AS counter \n\t\t\t\tFROM ac_nr_mynewsdesk_company_data\n\t\t\t\tWHERE is_website_valid = 1\n\t\t\t\tGROUP BY website\n\t\t\t\tHAVING COUNT(website) > 1\";\n\n\t\t$result = $this->db->query($sql);\n\t\tif ($result->num_rows())\n\t\t\treturn;\n\n\t\t// Now checking if domainiq whois check\n\t\t// of any missing emails is to be performed\n\t\t$sql = \"SELECT COUNT(cd.mynewsdesk_company_id) AS count\n\t\t\t\tFROM ac_nr_mynewsdesk_company_data cd\n\t\t\t\tINNER JOIN ac_nr_mynewsdesk_fetch_email fe\n\t\t\t\tON fe.mynewsdesk_company_id = cd.mynewsdesk_company_id\n\t\t\t\tLEFT JOIN ac_nr_whois_check_domainiq diq\n\t\t\t\tON diq.source_company_id = cd.mynewsdesk_company_id\n\t\t\t\tAND diq.source = ?\n\t\t\t\tWHERE diq.source_company_id IS NULL \n\t\t\t\tAND cd.email is NULL \n\t\t\t\tAND cd.website IS NOT NULL\n\t\t\t\tAND cd.is_website_valid = 1\";\n\n\t\t$counter = $this->db->query($sql, array(Model_Whois_Check_Domainiq::SOURCE_MYNEWSDESK))->row()->count;\n\t\tif ($counter)\n\t\t\treturn;\n\n\n\t\t// Now checking if domainindex whois check\n\t\t// of any missing emails is to be performed\n\t\t$sql = \"SELECT COUNT(cd.mynewsdesk_company_id) AS count\n\t\t\t\tFROM ac_nr_mynewsdesk_company_data cd\t\t\t\t\n\t\t\t\tINNER JOIN ac_nr_whois_check_domainiq diq\n\t\t\t\tON diq.source_company_id = cd.mynewsdesk_company_id\n\t\t\t\tAND diq.source = ?\n\t\t\t\tLEFT JOIN ac_nr_whois_check_domainindex di\n\t\t\t\tON di.source_company_id = cd.mynewsdesk_company_id\n\t\t\t\tAND di.source = ?\n\t\t\t\tWHERE di.source_company_id IS NULL \n\t\t\t\tAND cd.email is NULL \n\t\t\t\tAND cd.website IS NOT NULL\n\t\t\t\tAND cd.is_website_valid = 1\";\n\n\t\t$source = Model_Whois_Check_Domainiq::SOURCE_MYNEWSDESK;\n\t\t$counter = $this->db->query($sql, array($source, $source))->row()->count;\n\t\tif ($counter)\n\t\t\treturn;\n\n\n\t\t// Checking if any contact us URL\n\t\t// is yet to be retrieved\n\t\t$sql = \"SELECT COUNT(cd.mynewsdesk_company_id) AS count\n\t\t\t\tFROM ac_nr_mynewsdesk_company_data cd\n\t\t\t\tLEFT JOIN ac_nr_fetch_contact_us_url e\n\t\t\t\tON e.source_company_id = cd.mynewsdesk_company_id\n\t\t\t\tAND e.source = ?\n\t\t\t\tWHERE e.source_company_id IS NULL\n\t\t\t\tAND NOT ISNULL(NULLIF(cd.website, ''))\";\n\n\t\t$source = Model_Whois_Check_Domainiq::SOURCE_MYNEWSDESK;\n\t\t$counter = $this->db->query($sql, array($source))->row()->count;\n\t\tif ($counter)\n\t\t\treturn;\n\n\t\t// Checking if language has been\n\t\t// detected for all the scraped PRs\n\t\t$sql = \"SELECT COUNT(p.content_id) AS count\n\t\t\t\tFROM nr_pb_mynewsdesk_content p\n\t\t\t\tINNER JOIN nr_content c\n\t\t\t\tON p.content_id = c.id\n\t\t\t\tINNER JOIN nr_content_data cd\n\t\t\t\tON p.content_id = cd.content_id\n\t\t\t\tWHERE p.mynewsdesk_company_id > 0\n\t\t\t\tAND p.language IS NULL\n\t\t\t\tAND c.type = ?\";\n\n\t\t$counter = $this->db->query($sql, array(Model_Content::TYPE_PR))->row()->count;\n\t\tif ($counter)\n\t\t\treturn;\n\n\n\t\t// Checking if language has been detected \n\t\t// for all companies' about blurbs\n\t\t$sql = \"SELECT COUNT(mynewsdesk_company_id) AS count\n\t\t\t\tFROM ac_nr_mynewsdesk_company_data\n\t\t\t\tWHERE NOT ISNULL(NULLIF(about_company, ''))\n\t\t\t\tAND about_company_lang IS NULL\";\n\n\t\t$counter = $this->db->query($sql, array(Model_Content::TYPE_PR))->row()->count;\n\t\tif ($counter)\n\t\t\treturn;\n\n\t\t\n\t\t$sql = \"UPDATE ac_nr_mynewsdesk_category\n\t\t\t\tSET pages_scanned = 0,\n\t\t\t\tis_completed = 0\";\n\n\t\t$this->db->query($sql);\n\t}", "function RecentPage()\n\t{\n\t\t$this->SetInitialValues();\n\t}", "function number_of_elements() {\n return count($this->page_object);\n }", "public function getCount() {}", "public function getCount() {}", "function index($page, $nombre_article) {\n $index = (($page - 1) * $nombre_article);\n return $index;\n}", "public function getCount() {}", "private function refreshNbPages()\n {\n $this->_nbPages = $this->_limit ? ceil($this->_count/$this->_limit) : 0;\n }", "function getEventCount($per_page){\n\t\t//return ceil($count / $per_page); \n\t\treturn 3;\n\t}", "public function getPages();", "public function getPageIndex() {\r\n if ($this->pageIndex)\r\n return $this->pageIndex;\r\n\r\n $pageParameterName = $this->getApplication()->getPageParameter();\r\n if (!$this->parameters->$pageParameterName)\r\n return 1;\r\n $pageIndex = $this->parameters->$pageParameterName;\r\n if ($pageIndex <= 0)\r\n ResponseHelper::notFound();\r\n return $this->pageIndex = $pageIndex;\r\n }", "public function testGetPages() : void {\n $expected = 0;\n $this->assertEquals($expected, count($this->dataManager->getPages()));\n }", "public function count(){\n return $this->db->query('SELECT COUNT(*) FROM marque_page')->fetchColumn();\n }", "public function before_get_info() {\n\n\t\t$this->found_trash_count = 0;\n\t\t$this->found_akismet_count = 0;\n\n\t}", "public function total_pages()\n {\n if(isset($this->total_pages)) return $this->total_pages;\n $this->total_pages = 0;\n \n $result = $this->mysqli_slave->query(\"SELECT COUNT(*) count FROM taxon_concepts tc WHERE tc.published=1 AND tc.supercedure_id=0\");\n if($result && $row=$result->fetch_assoc()) $this->total_pages = $row['count'];\n return $this->total_pages;\n }", "public function primaries()\n {\n return Menu::doesntHave('parent')->paginate(request('perpage') ?? 10);\n }", "function index()\n{\n\t$index=Page::get(array(\"pg_type\" => \"index\"));\n\tif(isset($index))\n\t{\n\t\t$GLOBALS['GCMS']\n\t\t\t\t->assign('gcms_page_title',\n\t\t\t\t\t\t$GLOBALS['GCMS_SETTING']['seo']['title'].\" | \".$index->pg_title);\n\t\t$GLOBALS['GCMS']\n\t\t\t\t->assign('boxes',\n\t\t\t\t\t\tBox::get(array(\"parent_id\" => $index->id, \"box_status\" => \"publish\"), true,\n\t\t\t\t\t\t\t\tarray(\"by\" => \"id\")));\n\t\t$GLOBALS['GCMS']->assign('show_index', $index);\n\t}\n\telse\n\t\theader(\"location: /error404?error=page&reason=page_not_exist\");\n}", "public function fetchData()\r\n {\r\n $this->objectcount = $this->search_obj->getObjectQueryCount($this->extra);\r\n }", "public function page_uri_index()\n {\n }", "function get_one_page(){\n\t\t$this->m_n_current_page_number = gf_get_value_n('v_current_page_number');\n\t}", "public function prePageContent();", "public static function getBookmarkCount(){\r\n\t\treturn self::isBookmarkVisit() ? Helper_Request::getRequest('count', 0, 'INT') : 0;\r\n\t}", "public function pagecount()\n {\n // Pretty easy: Return number of pages in this wiki\n return Page::all()->count();\n }", "public function count_lists(){\n $cart_result = @mysqli_query($this->dbc, \"SELECT SUM(state='draft') as draft, SUM(article_type='news' and state='published') as news, SUM(article_type='guidance' and state='published') as guidance from `news_advice`\") or die(\"Couldn't ViewSql page USERS lists()\");\n $this->num_rows = mysqli_num_rows($cart_result);\n while ($row = mysqli_fetch_assoc($cart_result)) {\n $this->draft = $row[\"draft\"];\n $this->news = $row[\"news\"];\n $this->guidance = $row[\"guidance\"];\n }// end while\n mysqli_close($this->dbc);\n }", "public function count()\n {\n return $this->pager->count();\n }", "public function index()\n {\n if (null != $this->request->ifParameter(\"id\")) {\n $items_current_page = $this->request->getParameter(\"id\");\n } else {\n $items_current_page = 1;\n }\n $items = $this->item->getItemsFront($items_current_page);\n $previous_page = $items_current_page - 1;\n $next_page = $items_current_page + 1;\n $number_of_items_pages = $this->calculate->getNumberOfPagesOfExtHome();\n $number_of_items = $this->calculate->getTotalOfItemsHome();\n $number_of_cards = $this->calculate->getTotalOfCards();\n $number_of_links = $this->calculate->getTotalOfLinks();\n $this->generateView(array(\n 'items' => $items,\n 'number_of_items' => $number_of_items,\n 'number_of_cards' => $number_of_cards,\n 'number_of_links' => $number_of_links,\n 'items_current_page' => $items_current_page,\n 'previous_page' => $previous_page,\n 'next_page' => $next_page,\n 'number_of_items_pages' => $number_of_items_pages\n ));\n }", "public function showIndex()\n\t{\n\n\t\t//var_dump(Parser::GetRazdely());\n\n\t\t//var_dump(Parser::getCarPost('prodam-mikroavtobus-26483298'));\n\n\t\t//var_dump(Parser::getPosts('realty/sell_flats', 5));\n\n\t\t//var_dump(Parser::getPosts('auto/sale', 5, 5));\n\n\t\tvar_dump(Parser::getPosts('free', 4, 1, 10));\n\t}" ]
[ "0.6447588", "0.6364521", "0.63384885", "0.62694246", "0.62694246", "0.6260254", "0.6238684", "0.621861", "0.621861", "0.61247516", "0.6098247", "0.60838884", "0.60731786", "0.6030318", "0.60274124", "0.6019062", "0.5994106", "0.5988252", "0.5976632", "0.5951877", "0.59506387", "0.5946799", "0.5914265", "0.588433", "0.5882941", "0.58565253", "0.58228064", "0.58133763", "0.58001435", "0.57982403", "0.5787805", "0.5785006", "0.5771071", "0.5763523", "0.5763523", "0.57627654", "0.57603824", "0.57564926", "0.5754398", "0.5744071", "0.57372105", "0.573517", "0.5733602", "0.5712955", "0.5712477", "0.57060546", "0.57013875", "0.5681349", "0.5670064", "0.56676674", "0.56632125", "0.5658648", "0.5658648", "0.5654721", "0.5652778", "0.5651149", "0.56492954", "0.56479037", "0.56386954", "0.56262946", "0.56250817", "0.5623072", "0.5618319", "0.5618155", "0.5606458", "0.5603793", "0.5585186", "0.5564941", "0.5564941", "0.5564941", "0.55607027", "0.55566716", "0.55529666", "0.5549597", "0.5548961", "0.55464226", "0.5545265", "0.55432576", "0.55432576", "0.55431604", "0.5542631", "0.5536688", "0.5534498", "0.5534335", "0.55294573", "0.5524878", "0.55196905", "0.5512955", "0.5507779", "0.55035114", "0.5494005", "0.54901296", "0.5485614", "0.5484959", "0.548319", "0.54807276", "0.54790455", "0.5473975", "0.5471124", "0.5470798", "0.5464878" ]
0.0
-1
////////////districtnm ///show for seeing admin
public function count_admin(){ //$dd=$this->district_cd; // echo $dd; // $query = "SELECT COUNT(*) AS totalItem FROM `neci`.`consume_details` WHERE `input_date`='".date('Y-m-d')."'"; ///AND `district_cd`='".$this->district_cd."' $query = "SELECT count(*) as totalItemAdmin FROM ( SELECT d.district_cd,d.district_name,c.input_date,c.unit from (SELECT district_cd,input_date,unit from consume_details where input_date='".$this->input_date."' ) c right outer join district_info d on c.district_cd=d.district_cd ) x"; $result = mysqli_query($this->conn, $query); $row = mysqli_fetch_assoc($result); return $row['totalItemAdmin']; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function viewdistrict(){\r\n\t\t//sql query\r\n\t\t$sql = \"SELECT * FROM districts\";\r\n\t\t//return executed query\r\n\t\treturn $this->db_query($sql);\r\n\t}", "public function show(District $district)\n {\n //\n }", "public function show(District $district)\n {\n //\n }", "public function get_district(){\n\t\t$this->layout = 'ajax';\n\t\t$this->Client->load_district($this->request->query['id']);\n\t\t$this->render(false);\n\t\tdie;\n\t}", "public function view_district($pa){\r\n\t\t//sql query\r\n\t\t$sql = \"SELECT * FROM districts WHERE DistrictID=$pa\";\r\n\t\t//return executed query\r\n\t\treturn $this->db_query($sql);\r\n\t}", "public function allDistrict(){\n $str = '';\n $this->CI->load->model('supervisor');\n $value = $this->CI->supervisor->getDistrict();\n foreach($value as $val):\n $str.=$val->districtId . ') '. $val->districtName.'<br>';\n endforeach;\n return $str;\n }", "public function show(Districts $districts)\n {\n //\n }", "public function getDistrict() :string\n {\n return $this->district;\n }", "public function district()\n {\n return $this->belongsTo('App\\Models\\Admin\\Location\\District');\n }", "public function index()\n {\n\n $districts=District::join('divisions','divisions.id','districts.division_id')\n ->select(\n 'districts.id',\n 'districts.district_name',\n 'divisions.division_name'\n )->paginate(10);\n\n return view('district.view',compact('districts'));\n }", "function admin_index()\n {\n if(!$this->Session->check('Admin'))\n {\n $this->redirect('/admin/login');\n }\n //Set\n //Province\n $provinces = null;\n $this->Ward->District->Province->recursive = -1;\n $province = $this->Ward->District->Province->find('all', array(\n 'order' => array('provincename' => 'ASC')\n ));\n foreach ($province as $item)\n {\n $provinces[$item['Province']['id']] = $item['Province']['provincename'];\n }\n $districts = null;\n $this->set(array('provinces' => $provinces));\n if(isset($this->params['url']['province']) && $this->params['url']['province'] != '')\n {\n $this->Ward->District->recursive = -1;\n $district = $this->Ward->District->find('all', array(\n 'conditions' => array('province_id' => $this->params['url']['province']),\n 'order' => array('districtname' => 'ASC')\n )) ;\n foreach ($district as $item)\n {\n $districts[$item['District']['id']] = $item['District']['districttype'] . ' ' . $item['District']['districtname'];\n }\n }\n $this->set(array('districts' => $districts));\n //\n //Search\n $district_search = isset($this->params['url']['district'])? $this->params['url']['district']: '';\n $province_search = isset($this->params['url']['province'])? $this->params['url']['province']: '';\n $name = isset($this->params['url']['name'])? $this->params['url']['name']: '';\n $condition_district = '';\n $condition_name = '';\n $condition_province = '';\n if($district_search != '')\n {\n $condition_district = 'District.id = ' . $district_search;\n }\n if($province_search != '')\n {\n $condition_province = 'Province.id = ' . $province_search;\n }\n if($name != '')\n {\n $condition_name = 'Ward.wardname LIKE \"%' . $name . '%\"';\n }\n //\n\n $this->Ward->recursive = -1;\n $this->paginate = array(\n 'joins' => array(\n array(\n 'table' => 'districts',\n 'alias' => 'District',\n 'type' => 'INNER',\n 'foreignKey' => false,\n 'conditions' => 'Ward.district_id = District.id'\n ),\n array(\n 'table' => 'provinces',\n 'alias' => 'Province',\n 'type' => 'INNER',\n 'foreignKey' => false,\n 'conditions' => 'District.province_id = Province.id'\n )\n ),\n 'paramType' => 'querystring',\n 'fields' => array('*'),\n 'limit' => '10',\n 'conditions' => array(\n $condition_district,\n $condition_province,\n $condition_name\n )\n );\n try\n {\n $wards = $this->paginate('Ward');\n if($wards)\n {\n $this->set(\n array(\n 'wards' => $wards,\n 'title' => 'Danh sách xã phường'\n )\n );\n }\n }\n catch (NotFoundException $exception)\n {\n $this->Session->setFlash('Không tìm thấy trang theo yêu cầu', 'flashWarning');\n }\n }", "public function index()\n {\n $districts = [];\n if(isset($_GET['country'])){\n $country = Country::where('id',$_GET['country'])->first();\n }else{\n $country = Country::first();\n }\n $s_country = $country;\n $states = $country->states;\n $countries = Country::all();\n\n if(isset($_GET['state'])){\n $state = State::where('id',$_GET['state'])->first();\n }else{\n $state = $country->states->first();\n }\n if($state){\n $districts = $state->districts;\n }\n\n $s_state = $state;\n return view('admin.district.index',compact('countries','s_country','states','s_state','districts'));\n }", "public function index()\n {\n $records = District::all()->load('city');\n return view('admin/pages/districts.all', compact('records'));\n }", "public function index()\n {\n $district = District::orderBy('id', 'DESC')->get();\n $division = Division::orderBy('id', 'DESC')->get();\n return response()->json(array('district'=> $district,'division'=> $division), 200);\n // return View('admin.district',['division' => $division ,'district' => $district]);\n }", "public function district() {\n \n return $this->belongsTo(District::class);\n \n }", "public function getDistrictid()\n {\n return $this->districtid;\n }", "public function index(Request $request) {\n// dd($districts);\n return view('admin.dashboard');\n }", "public function district()\n {\n return $this->belongsTo(District::class);\n }", "public function getDistrict()\n {\n return $this->district;\n }", "public function getDistrict()\n {\n return $this->district;\n }", "public function location($fr_district_id=''){\n\tif ($this->session->userdata('logged_in')){\n\t\t$data['title'] = 'Location';\n\t\tif($fr_district_id==''){\n\t\t $data['locationList'] = $this->common_model->get_all('fr_location',array('fr_district_id'=>0));\n\t\t}else{\n\t\t $data['district'] = $this->common_model->get_row(array('fr_id'=>$fr_district_id),'fr_location');\n\t\t $data['locationList'] = $this->common_model->get_all('fr_location',array('fr_district_id'=>$fr_district_id));\n\t\t}\n\t\t$data['fr_district_id'] = $fr_district_id;\n\t\t$this->set_layout('location/location_list',$data);\n\t}else{\n\t\t$this->load->view('site/login');\n\t}\n}", "public function District(){\n\n $divisions = shipDivision::orderBy('division_name','ASC')->get();\n $district = shipDistrict::with('division')->orderBy('id','DESC')->get();\n \n return view('admin.shipdistrict.create',compact('district','divisions'));\n }", "public function show(District $district)\n {\n return view('district')->with('districtArr',District::all());\n }", "public function viewmanager(){\r\n\t\t//sql query\r\n\t\t$sql = \"SELECT * FROM district_managers,districts where district_managers.DistrictID = districts.DistrictID\";\r\n\t\t//return executed query\r\n\t\treturn $this->db_query($sql);\r\n\t}", "public function get_district_list($id){\n\t\t$this->set('districtList', $this->Client->load_district_post($id));\n\t}", "public function district()\n {\n return $this->belongsTo('App\\models\\addressDistrictModel', 'district_id');\n }", "public function picupDistrict() {\n\t\t$data= DB::table('district')\n\t\t\t\t\t\t\t\t ->select('city_id as id','city_name as district_name')\n\t\t\t\t\t\t\t\t ->where('city_id','!=','12')\n\t\t\t\t\t\t\t\t ->orderBy('city_name','asc')\n\t\t\t\t\t\t\t\t ->get();\n\t\treturn response()->json($data);\n\t}", "public function district(){\n return $this->belongsTo('App\\District', 'district_id');\n }", "public function district()\n {\n return $this->belongsTo('App\\District');\n }", "public function district()\n {\n return $this->belongsTo('App\\District');\n }", "function getDistrictNameById($district_id)\n{\n\t$db = new db_util();\n\n\t$sql = \"SELECT vm_district_name\n\tFROM vm_district\n\tWHERE vm_district_id='$district_id'\";\n\n\t$result = $db->query($sql);\n\n\tif ($result !== false) {\n\t// if there any error in sql then it will false\n\t// \n\t\tif ($result->num_rows > 0) {\n\n\t\t\t$row = $result->fetch_assoc();\n\n\t\t\treturn $row['vm_district_name'];\n\n\t\t}\n\n\t}\n\n\treturn \"Invalid Location\";\n\n\n}", "public function district()\n {\n return $this->hasOne('App\\District','id','district_id');\n }", "public function getDistrict($divisionId){\r\n\r\n\t$this->db->where('divi_id',$divisionId);\r\n\t$district=$this->db->get('district_tab');\r\n\t$output='<option value=\"\">Select an option</option>';\r\n \r\n foreach ($district->result() as $dis) {\r\n \t$output.='<option value=\"'.$dis->id.'\">'.$dis->district_name.'</option>';\r\n }\r\n return $output;\r\n}", "public function indexAction()\n {\n $em = $this->getDoctrine()->getManager();\n\n $districts = $em->getRepository('adminBundle:districts')->findAll();\n\n return $this->render('districts/index.html.twig', array(\n 'districts' => $districts,\n ));\n }", "public function index() {\n if (CheckSession::chk_distuser() === true) {\n $user = \\App\\User::where('idUser', '=', Auth::guard('authority')->User()->idUser)->first();\n $userdesig = $user->userdesig()->whereNotNull('idDistrict')->whereNull('idSubdivision')->whereNull('idBlock')->whereNull('idVillage')->get();\n return view('authority.districts.profile', compact('user', 'userdesig'));\n } else {\n return view('errors.404');\n }\n }", "public function index(ManageDistrictRequest $request)\n {\n return new ViewResponse('backend.districts.index');\n }", "public function index()\n {\n if (! Gate::allows('user_access')) {\n return abort(401);\n }\n $lodges = DistrictLodge::all();\n return view('admin.district_lodges.index',compact('lodges'));\n }", "public function index()\n {\n $cities = City::orderBy('city_name','asc')->with(['division','district'])->get();\n //dd($cities);\n return view('admin.city.manage',compact('cities'));\n }", "public function districts(){\n return $this->hasMany(District::class);\n }", "public function showAdmins() { \n\t\n return View('admin.admins');\n\t\t\t\n }", "public function District()\n {\n return $this->belongsTo('App\\District');\n }", "public function create()\n {\n $record = new District();\n return view('admin.pages.districts.createOrUpdate',compact('record'));\n }", "public function SelectDist() {\n $this->layout = 'ajax';\n $this->loadModel('District');\n $state_id = '27';\n// $between = 'BETWEEN 01 AND 10';\n $arr = array('22', '23', '25', '20', '34', '19', '07', '09', '28');\n $dis = $this->District->find('list', array('conditions' => array('substring(District.distcd,1,2)' => $state_id, 'substring(District.distcd,3,4)' => $arr), 'fields' => array('distcd', 'distname'), 'order' => array('distname', 'distname DESC')));\n //array('substring(District.distcd,3,4) BETWEEN ? AND ?' => array('01','10'))\n// echo \"</pre>\" . print_r($dis) . \"</pre>\";\n// exit();\n $this->set('district_list', $dis);\n }", "public function edit(District $district)\n {\n //\n }", "public function edit(District $district)\n {\n //\n }", "public function edit(District $district)\n {\n //\n }", "public function index() {\n if (strtolower(Auth::user()->role) == 'district admin' || strpos(strtolower(Auth::user()->role),\"supervisor\")!='') {\n// $rawResult = (array) DB::select(\"\n// SELECT cd.* FROM cch_devices cd inner join cch_facility_user cfu\n// on cd.user_id = cfu.user_id\n// WHERE cfu.primary=1 and cfu.facility_id in (select facility_id from cch_facility_user where supervised=1 and \n// user_id=?) \", array(Auth::user()->id));\n//\t\n $devices = Device::whereRaw('district_id in(?)', array( $this->districtIds))->get();\n } else{\n $devices = Device::all();\n }\n return View::make('devices.index', array('devices' => $devices));\n }", "public function load_district($id){\n\t\t$loc_list = $this->ContactBranch->find('list', array('fields' => array('id','branch'),\n\t\t'order' => array('branch ASC'),'conditions' => array('status' => '1', 'is_deleted' => 'N',\n\t\t'state_id' => $id)));\n\t\t$options .= \"<option value=''>Choose District</option>\";\n\t\tforeach($loc_list as $key => $option){ \n\t\t\t$options .= \"<option value='\".$key.\"'>\".$option.\"</option>\";\n\t\t}\n\t\techo $options;\n\t}", "function fetch_district() //get all records from database \n\t{\n\t $result;\n\t $csrf_token=$this->security->get_csrf_hash();\n\t $this->load->model('Sup_admin');\n\t $query=$this->Sup_admin->fetch_district();\n\t\t $res=$query->result();\n\t if($res){\n\t\t $data;\n\t\t $i = 0;\n\t \t foreach($res as $r){\n\t\t\t $code = $r->location_code;\n\t\t\t $type = $r->district_name;\n\t\t\t $data[$i] = array('code'=>$code,'type'=>$type);\n\t\t\t $i = $i+1;\n\t\t }\n\t\t $result = array('status'=>1,'message'=>'data found','data'=>$data,'csrf_token'=>$csrf_token);\n\t }else{\n\t\t $result = array('status'=>0,'message'=>'no data found','csrf_token'=>$csrf_token);\n\n\t }\n\t echo json_encode($result);\n\t }", "public function getCdistrictid()\n {\n return $this->cdistrictid;\n }", "public function show($id)\n {\n $district=DeliveryTime::with('district')->where('divisionId',$id)->distinct('districtId')->get('districtId');\n return response()->json($district);\n }", "public function admin()\n {\n $this->template_admin->displayad('admin');\n }", "public function show()\n {\n $value = Route::with('bus','district')->get();\n return view('index', ['value'=>$value]);\n }", "public function district()\n {\n return $this->belongsTo('App\\DistrictOffice');\n }", "function menuWiseDivision($division_id){\n $district = district::query()->where('division_id',$division_id)->get();\n return response()->json($district);\n \n }", "public function show(DistrictReport $districtReport, Expense $expense)\n {\n //\n }", "public function getDangNhapAdmin(){\n return view('admin.login');\n }", "public function getUrlRujukanDari(){\n\t\treturn $this->module->id.\"/RujukandariM/Admin\";\n\t}", "public function get_client_name1($dist_id)\n {\n if($dist_id==0){\n $name=\"Admin\";\n }else if($dist_id>999){\n $q=$this->db->where(['client_id'=>$dist_id])->get('clients');\n $name=$q->result_array()[0]['client_name'];\n }else{\n $q=$this->db->where(['dist_id'=>$dist_id])->get('distributor');\n $name=$q->result_array()[0]['dist_name'];\n }\n return $name;\n }", "function get_admin_name() {\n return $this->admin_name;\n }", "public function index(Request $request)\n { \n if($request->has('district_name') || $request->has('state_id')){\n return $this->collection(Districts::where('district_name','LIKE', \"%\".$request->get('district_name').\"%\")\n ->where('state_id',$request->get('state_id'))\n ->get(), new DistrictsTransformer);\n //return $this->collection(Districts::where('district_name','TTDI')->get(), new DistrictsTransformer);\n } else {\n return $this->collection(Districts::all(), new DistrictsTransformer);\n }\n }", "public function index()\n {\n //\n $this->shareMenu();\n $n = nationality::where('company_id',Auth::guard('admins')->user()->id)->get();\n return view('backend.HRIS.admin.Nationality.index',compact('n'));\n }", "public function run()\n {\n $districts = [\n ['name' => 'Dhaka', 'parent_id' => null],['name' => 'Chattogram', 'parent_id' => null],\n ['name' => 'Sylhet', 'parent_id' => null],['name' => 'Rajshahi', 'parent_id' => null],\n ['name' => 'Rangpur', 'parent_id' => null],['name' => 'Khulna', 'parent_id' => null],\n ['name' => 'Barisal', 'parent_id' => null],['name' => 'Mymensingh', 'parent_id' => null],\n \n ['name' => 'Dhaka', 'parent_id' => 1],['name' => 'Gazipur', 'parent_id' => 1],\n ['name' => 'Narayanganj', 'parent_id' => 1],['name' => 'Narsingdi', 'parent_id' => 1],\n ['name' => 'Manikganj', 'parent_id' => 1],['name' => 'Kishoreganj', 'parent_id' => 1], \n ['name' => 'Chattogram', 'parent_id' => 2],['name' => \"Cox's Bazar\", 'parent_id' => 2], \n ['name' => 'Rangamati', 'parent_id' => 2],['name' => 'Bandarban', 'parent_id' => 2],\n ['name' => 'Khagrachhari', 'parent_id' => 2],['name' => 'Cumilla', 'parent_id' => 2],\n ['name' => 'Noakhali', 'parent_id' => 2],['name' => 'Feni', 'parent_id' => 2],\n ['name' => 'Sunamganj', 'parent_id' => 3],['name' => 'Sylhet', 'parent_id' => 3],\n ['name' => 'Joypurhat', 'parent_id' => 4],['name' => 'Rajshahi', 'parent_id' => 4],\n ['name' => 'Rangpur', 'parent_id' => 5],['name' => 'Kurigram', 'parent_id' => 5],\n ['name' => 'Bagerhat', 'parent_id' => 6],['name' => 'Khulna', 'parent_id' => 6],\n ['name' => 'Barguna', 'parent_id' => 7],['name' => 'Barisal', 'parent_id' => 7],\n ['name' => 'Netrokona', 'parent_id' => 8],['name' => 'Mymensingh', 'parent_id' => 8],\n ];\n\n foreach ($districts as $district) {\n District::create(array(\n 'name' => $district[\"name\"],\n 'parent_id' => $district[\"parent_id\"],\n 'created_at' => now(),\n 'updated_at' => now(),\n ));\n }\n }", "function DPD() \n\t{\t\n\t $this->view->title = 'DPD';\n\t\t$this->view->userListview = $this->model->userlistdpd() ;\n\t\t$this->view->render('dnr/dpd');\n\t}", "public function create()\n {\n if(isset($_GET['country'])){\n $s_country = Country::where('id',$_GET['country'])->first();\n }else{\n $s_country = Country::first();\n }\n $countries = Country::all();\n return view('admin.district.create',compact('countries','s_country'));\n }", "public function getDistricts()\n {\n return $this->hasMany(Districts::className(), ['regency_id' => 'id']);\n }", "public function findDistrictName(Request $request)\n {\n\n $response_dist = District::where('division_id', $request->id)->get();\n return response()->json($response_dist);\n\n }", "public function showSchoolAdmin() {\n $s = auth()->user()->school;\n $school_users = $s->users()->with('school', 'role', 'classes', 'permissions')->withoutGlobalScopes()->get();\n $school_users = $school_users->sortBy('last_name')->sortByDesc('role.name')->values();\n return view('school_management.school_hybrid_admin', [\n 'school_users' => $school_users,\n 'school_code' => $s->school_code,\n 'teacher_code' => $s->teacher_code\n ]);\n }", "public function getDangNhap()\n {\n return view('admin.dangnhap'); \n }", "public function displayAdminPanel() {}", "public function edit(District $district)\n {\n if(isset($_GET['country'])){\n $s_country = Country::where('id',$_GET['country'])->first();\n }else{\n $s_country = Country::first();\n }\n $countries = Country::all();\n return view('admin.district.edit',compact('district','countries','s_country'));\n }", "public function show(Doctor $doctor)\n {\n //\n }", "public function index()\n {\n return view('admin.province');\n }", "public function show(Nomination $id)\n {\n //\n }", "public function index()\n {\n if(Auth::user()->role == 'superadmin'){\n $departments = Department::all();\n }else{\n $institutions = Institution::find(Auth::user()->institution_id);\n $schools = School::whereIn('institution_id', $institutions)->pluck('id');\n $departments = Department::whereIn('school_id', $schools)->get();\n }\n return view('tertiary.departments.index', ['departments' => $departments]);\n }", "public function show_doctors(){\n\n $users = User::has('doctors')->get();\n\n return view('admin.show-doctors', compact('users'));\n }", "public function district(Request $request, $id)\n {\n $district = Taxonomy::where('parent_id', $id)->get();\n if (count($district)) {\n return response()->json($district);\n } else {\n return response()->json();\n }\n }", "public function GetAdmin ();", "public function index()\n\t{\n\t\t$type \t= 'amdin';\n\t\treturn View::make('admin',array(\n\t\t\t'type'\t=> $type\n\t\t\t));\n\t}", "public function listAdminAction() {\n $dons = $this->getDoctrine()->getManager()->getRepository('EasyDonBundle:Don')->findAll();\n\n return $this->render('EasyDonBundle:Don:listAdmin.html.twig', array('dons' => $dons));\n }", "public function show($id)\n {\n if(Auth::user()->role=='Admin') {\n $muni = Municipalities::find($id);\n return view('municipalities.show')->with('muni', $muni);\n }else {\n return view('/home');\n }\n }", "public function getUrlKlasifikasiDiagnosa(){\n\t\treturn $this->module->id.'/klasifikasiDiagnosa/admin';\n\t}", "public function show()\n {\n return view('admin::show');\n }", "public function index(){\n dd('Zone uniquement pour l\\'admin');\n }", "public function show($id)\n {\n return $this->item(Districts::findOrFail($id), new DistrictsTransformer);\n }", "public function show()\n {\n return view('admin.organizations.dashboard');\n }", "public function showDeatails() {\n $id = $this->input->get('id');\n $data['details'] = $this->common->getWhere('dormitory_bed', 'id', $id);\n $this->load->view('temp/header');\n $this->load->view('dormitoriesDetails', $data);\n $this->load->view('temp/footer');\n }", "public function getDistrict($id)\n {\n $result = DB::table('districts')->where('province_id', $id)->orderBy('name')->get();\n return $result;\n }", "public function adminDash()\n {\n return Inertia::render(\n 'Admin/AdminDashboard', \n [\n 'data' => ['judul' => 'Halaman Admin']\n ]\n );\n }", "private function loadAllDistricts(){\n \n\n }", "public function actionIndex()\n {\n $searchModel = new SearchInterviewDistrict();\n $dataProvider = $searchModel->search(Yii::$app->request->queryParams);\n\n return $this->render('index', [\n 'searchModel' => $searchModel,\n 'dataProvider' => $dataProvider,\n ]);\n }", "public function index()\n {\n $value=Route::with('bus','district')->get();\n return view('admin.route',['route'=>$value]);\n }", "public function show(Admission $admission)\n {\n //\n //$clients=$admission->get();\n // $user = DB::table('users')->where('name', 'John')->first();\n $admins=DB::table('admissions')->where('id',$admission->id)->first();\n// dd($admins->id);\n return view('uphome.show', compact('admins'));\n\n }", "public\n function getSchoolByDistrict(Request $request) {\n $html = null;\n $input = $request->all();\n $input['school_level_id'] = 2;\n $schools = $this->obj_schools->pluck_select($input);\n\n \n if (!empty($schools)) {\n foreach ($schools as $key => $school) {\n $selected = ($key == $request['school_current']) ? \"selected\" : \"\";\n $html .= '<option ' . $selected . ' value=\"' . $key . '\">' . $school . '</option>';\n }\n }\n\n return $html;\n }", "function SegmentAdmin()\n\t{\n\t\t// if we've already worked this out, return it.\n\t\tif (!is_null($this->segmentadmin)) {\n\t\t\treturn $this->segmentadmin;\n\t\t}\n\t\t\n\t\t$admin = false;\n\n\t\tif ($this->isAdmin()) {\n\t\t $admin = true;\n\t\t}\n\t\t\n\t\tif ($this->group->segmentadmin == 1) {\n\t\t $admin = true;\n\t\t}\n\t\t\n\t\t$this->segmentadmin = $admin;\n\t\t\n\t\treturn $this->segmentadmin;\n\t}", "public function adminOnly();", "public function adminOnly();", "public function show()\n\t{\n\t\ttry {\n\n\t\t$state_id = Input::get('state_id');\n\t\t$township_id = Input::get('township_id');\n\t\t$academic_year = Input::get('academic_year');\n\t\t\t\n\t\tif(isset($township_id)) {\n\n\t\t\t$q = \"SELECT *\";\n\t\t\n\t\t} else {\n\t\t\n\t\t\t$q = \"SELECT state_id,state_division\";\n\t\t\n\t\t}\n\n\t\t$q .= \" FROM v_state_township WHERE state_id = \".$state_id.\" AND (township_id = '\".$township_id.\"' OR '' = '\".$township_id.\"') GROUP BY state_id\";\n\n\t\t$region = DB::select(DB::raw($q));\n\n\t\t$dtSchool=DB::select(\"SELECT SUM(student_intake.total_boy)+SUM(student_intake.total_girl) AS total_students,student_intake.grade,v_school.school_no,v_school.school_name,v_school.location,v_school.school_level,teacher_count.primary_no,teacher_count.jat_no,teacher_count.sat_no,teacher_count.head_no,teacher_count.office_staff_no FROM v_school LEFT JOIN student_intake ON v_school.school_id=student_intake.school_id and v_school.school_year=student_intake.school_year LEFT JOIN teacher_count ON v_school.school_id=teacher_count.school_id AND v_school.school_year=teacher_count.school_year WHERE (v_school.state_divsion_id = '\".$state_id.\"' OR ''='\".$state_id.\"') AND (v_school.township_id ='\".$township_id.\"' OR ''='\".$township_id.\"') AND (student_intake.school_year='\".$academic_year.\"' OR ''='\".$academic_year.\"') GROUP BY v_school.school_no,student_intake.grade \");\n\n\t\t\tfor($i = 0; $i < count($dtSchool); $i++) {\n\n\t\t\tif($dtSchool[$i]->location == \"Rural\") {\n\t\t\t\t$rural_level[] = $dtSchool[$i]->school_level;\n\t\t\t}\n\n\t\t\tif($dtSchool[$i]->location == \"Urban\") {\n\t\t\t\t$urban_level[] = $dtSchool[$i]->school_level;\n\t\t\t}\n\n\t\t}\n\t\t$rural_levels = array_values(array_unique($rural_level));\n\t\t$urban_levels = array_values(array_unique($urban_level));\n\t\tfor($row=0;$row<count($rural_levels);$row++){\n\t\t\t///rural\n\t\t\t$pri_count=0;$mid_count=0;$high_count=0;$pri_count25=0;$mid_count25=0;$high_count25=0;$pri_count30=0;$mid_count30=0;$high_count30=0;$pri_count35=0;$mid_count35=0;$high_count35=0; $pri_count40=0;$mid_count40=0;$high_count40=0;$pri_count45=0;$mid_count45=0;$high_count45=0;$pri_count50=0;$mid_count50=0;$high_count50=0;$pri_count60=0;$mid_count60=0;$high_count60=0;\n\t\t\t///urban\n\n\t\t\tfor($a=0;$a<count($dtSchool);$a++)\n\t\t\t{\n\t\t\t\tif($dtSchool[$a]->school_level == $rural_levels[$row] && $dtSchool[$a]->location==\"Rural\") \n\t\t\t\t{\n\t\t\t\t\t $j=$a;$total5=\"\";$total9=\"\";$total11=\"\";$pri_ratio=\"\";$mid_ratio=\"\";$high_ratio=\"\";\n\n\t\t\t\t\t\t$school_location=$dtSchool[$a]->location;\n\t\t\t\t\t\t$school_level=$dtSchool[$a]->school_level;\n\n\t\t\t\t\t\t$g1=\"\";$g2=\"\";$g3=\"\";$g4=\"\";$g5=\"\";\n\t\t\t\t\t\t\tif($dtSchool[$a]->grade=='01') {\n\t\t\t\t\t\t\t\t$g1=$dtSchool[$a]->total_students;\n\t\t\t\t\t\t\t\tif ($a!=count($dtSchool)-1 && $dtSchool[$a+1]->school_no==$dtSchool[$a]->school_no) {\n\t\t\t\t\t\t\t\t\t$a+=1;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\tif($dtSchool[$a]->grade=='02') {\n\t\t\t\t\t\t$g2=$dtSchool[$a]->total_students;\n\t\t\t\t\t\tif ($a!=count($dtSchool)-1 && $dtSchool[$a+1]->school_no==$dtSchool[$a]->school_no) {\n\t\t\t\t\t\t\t$a+=1;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif($dtSchool[$a]->grade=='03') {\n\t\t\t\t\t\t$g3=$dtSchool[$a]->total_students;\n\t\t\t\t\t\tif ($a!=count($dtSchool)-1 && $dtSchool[$a+1]->school_no==$dtSchool[$a]->school_no) {\n\t\t\t\t\t\t\t$a+=1;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif($dtSchool[$a]->grade=='04') {\n\t\t\t\t\t\t$g4=$dtSchool[$a]->total_students;\n\t\t\t\t\t\tif ($a!=count($dtSchool)-1 && $dtSchool[$a+1]->school_no==$dtSchool[$a]->school_no) {\n\t\t\t\t\t\t\t$a+=1;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif ($dtSchool[$a]->grade=='05') {\n\t\t\t\t\t\t$g5=$dtSchool[$a]->total_students;\n\t\t\t\t\t\tif ($a!=count($dtSchool)-1 && $dtSchool[$a+1]->school_no==$dtSchool[$a]->school_no) {\n\t\t\t\t\t\t\t$a+=1;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t$total5=$g1+$g2+$g3+$g4+$g5;\n\n\t\t\t\tif ($dtSchool[$j]->primary_no!=0 && $dtSchool[$j]->primary_no!='' && $total5!=0) \n\t\t\t\t{\n\t\t\t\t\t$pri_ratio=$total5/$dtSchool[$j]->primary_no+$dtSchool[$j]->head_no;\n\t\t\t\t\t$pri_ratio;\n\t\t\t\t}\n\t\t\t\t$g6=\"\";$g7=\"\";$g8=\"\";$g9=\"\";\n\t\t\t\t\tif($dtSchool[$a]->grade=='06') {\n\t\t\t\t\t\t$g6=$dtSchool[$a]->total_students;\n\t\t\t\t\t\tif ($a!=count($dtSchool)-1 && $dtSchool[$a+1]->school_no==$dtSchool[$a]->school_no) {\n\t\t\t\t\t\t\t$a+=1;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif($dtSchool[$a]->grade=='07') {\n\t\t\t\t\t\t$g7=$dtSchool[$a]->total_students;\n\t\t\t\t\t\tif ($a!=count($dtSchool)-1 && $dtSchool[$a+1]->school_no==$dtSchool[$a]->school_no) {\n\t\t\t\t\t\t\t$a+=1;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif($dtSchool[$a]->grade=='08') {\n\t\t\t\t\t\t$g8=$dtSchool[$a]->total_students;\n\t\t\t\t\t\tif ($a!=count($dtSchool)-1 && $dtSchool[$a+1]->school_no==$dtSchool[$a]->school_no) {\n\t\t\t\t\t\t\t$a+=1;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif($dtSchool[$a]->grade=='09') {\n\t\t\t\t\t\t$g9=$dtSchool[$a]->total_students;\n\t\t\t\t\t\tif ($a!=count($dtSchool)-1 && $dtSchool[$a+1]->school_no==$dtSchool[$a]->school_no) {\n\t\t\t\t\t\t\t$a+=1;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t $total9=$g6+$g7+$g8+$g9;\n\t\t\t\tif ($dtSchool[$j]->jat_no!=0 && $dtSchool[$j]->jat_no!='' && $total9!=0) \n\t\t\t\t{\n\t\t\t\t\t$mid_ratio=$total9/$dtSchool[$j]->jat_no+$dtSchool[$j]->sat_no;\n\t\t\t\t\t$pri_mid=$pri_ratio+$mid_ratio;\n\t\t\t\t}\n\n\t\t\t\t$g10=\"\";$g11=\"\";\n\t\t\t\t\tif($dtSchool[$a]->grade=='10') {\n\t\t\t\t\t\t$g10=$dtSchool[$a]->total_students;\n\t\t\t\t\t\tif ($a!=count($dtSchool)-1 && $dtSchool[$a+1]->school_no==$dtSchool[$a]->school_no) {\n\t\t\t\t\t\t\t$a+=1;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif($dtSchool[$a]->grade=='11') {\n\t\t\t\t\t\t$g11=$dtSchool[$a]->total_students;\n\t\t\t\t\t\tif ($a!=count($dtSchool)-1 && $dtSchool[$a+1]->school_no==$dtSchool[$a]->school_no) {\n\t\t\t\t\t\t\t$a+=1;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t$total11=$g10+$g11;\n\t\t\t\t\tif ($dtSchool[$j]->sat_no!=0 && $dtSchool[$j]->sat_no!='' && $total11!=0) \n\t\t\t\t\t{\n\t\t\t\t\t\t$high_ratio=$total11/$dtSchool[$j]->sat_no+$dtSchool[$j]->sat_no;\n\t\t\t\t\t\t$pri_mid_high=$pri_ratio+$mid_ratio+$high_ratio;\n\t\t\t\t\t}\n\n\t\t\t\t\tif($pri_ratio==0)\n\t\t\t\t\t{\n\t\t\t\t\t\t$pri_count=$pri_count+1;\n\t\t\t\t\t}\n\t\t\t\t\tif ($mid_ratio==0)\n\t\t\t\t\t{\n\t\t\t\t\t\t$mid_count=$mid_count+1;\n\t\t\t\t\t}\n\t\t\t\t\tif ($high_ratio==0)\n\t\t\t\t\t{\n\t\t\t\t\t\t$high_count=$high_count+1;\n\t\t\t\t\t}\n\t\t\t\t\t///25\n\t\t\t\t\tif($pri_ratio>0 && $pri_ratio<25)\n\t\t\t\t\t{\n\t\t\t\t\t\t$pri_count25=$pri_count25+1;\n\t\t\t\t\t}\n\t\t\t\t\tif ($mid_ratio>0 && $mid_ratio<25)\n\t\t\t\t\t{\n\t\t\t\t\t\t$mid_count25=$mid_count25+1;\n\t\t\t\t\t}\n\t\t\t\t\tif ($high_ratio>0 && $high_ratio<25)\n\t\t\t\t\t{\n\t\t\t\t\t\t$high_count25=$high_count25+1;\n\t\t\t\t\t}\n\t\t\t\t\t////30\n\t\t\t\t\tif($pri_ratio>25 && $pri_ratio<30)\n\t\t\t\t\t{\n\t\t\t\t\t\t$pri_count30=$pri_count30+1;\n\t\t\t\t\t}\n\t\t\t\t\tif ($mid_ratio>25 && $mid_ratio<30)\n\t\t\t\t\t{\n\t\t\t\t\t\t$mid_count30=$mid_count30+1;\n\t\t\t\t\t}\n\t\t\t\t\tif ($high_ratio>25 && $high_ratio<30)\n\t\t\t\t\t{\n\t\t\t\t\t\t$high_count30=$high_count30+1;\n\t\t\t\t\t}\n\t\t\t\t\t////35\n\t\t\t\t\tif($pri_ratio>30 && $pri_ratio<35)\n\t\t\t\t\t{\n\t\t\t\t\t\t$pri_count35=$pri_count35+1;\n\t\t\t\t\t}\n\t\t\t\t\tif ($mid_ratio>30 && $mid_ratio<35)\n\t\t\t\t\t{\n\t\t\t\t\t\t$mid_count35=$mid_count35+1;\n\t\t\t\t\t}\n\t\t\t\t\tif ($high_ratio>30 && $high_ratio<35)\n\t\t\t\t\t{\n\t\t\t\t\t\t$high_count35=$high_count35+1;\n\t\t\t\t\t}\n\t\t\t\t\t///40\n\t\t\t\t\tif($pri_ratio>35 && $pri_ratio<40)\n\t\t\t\t\t{\n\t\t\t\t\t\t$pri_count40=$pri_count40+1;\n\t\t\t\t\t}\n\t\t\t\t\tif ($mid_ratio>35 && $mid_ratio<40)\n\t\t\t\t\t{\n\t\t\t\t\t\t$mid_count40=$mid_count40+1;\n\t\t\t\t\t}\n\t\t\t\t\tif ($high_ratio>35 && $high_ratio<40)\n\t\t\t\t\t{\n\t\t\t\t\t\t$high_count40=$high_count40+1;\n\t\t\t\t\t}\n\t\t\t\t\t///45\n\t\t\t\t\tif($pri_ratio>40 && $pri_ratio<45)\n\t\t\t\t\t{\n\t\t\t\t\t\t$pri_count45=$pri_count45+1;\n\t\t\t\t\t}\n\t\t\t\t\tif ($mid_ratio>40 && $mid_ratio<45)\n\t\t\t\t\t{\n\t\t\t\t\t\t$mid_count45=$mid_count45+1;\n\t\t\t\t\t}\n\t\t\t\t\tif ($high_ratio>40 && $high_ratio<45)\n\t\t\t\t\t{\n\t\t\t\t\t\t$high_count45=$high_count45+1;\n\t\t\t\t\t}\n\t\t\t\t\t///50\n\t\t\t\t\tif($pri_ratio>45 && $pri_ratio<50)\n\t\t\t\t\t{\n\t\t\t\t\t\t$pri_count50=$pri_count50+1;\n\t\t\t\t\t}\n\t\t\t\t\tif ($mid_ratio>45 && $mid_ratio<50)\n\t\t\t\t\t{\n\t\t\t\t\t\t$mid_count50=$mid_count50+1;\n\t\t\t\t\t}\n\t\t\t\t\tif ($high_ratio>45 && $high_ratio<50)\n\t\t\t\t\t{\n\t\t\t\t\t\t$high_count50=$high_count50+1;\n\t\t\t\t\t}\n\t\t\t\t\t////>50\n\t\t\t\t\tif($pri_ratio>50)\n\t\t\t\t\t{\n\t\t\t\t\t\t$pri_count60=$pri_count60+1;\n\t\t\t\t\t}\n\t\t\t\t\tif ($mid_ratio>50)\n\t\t\t\t\t{\n\t\t\t\t\t\t$mid_count60=$mid_count60+1;\n\t\t\t\t\t}\n\t\t\t\t\tif ($high_ratio>50)\n\t\t\t\t\t{\n\t\t\t\t\t\t$high_count60=$high_count60+1;\n\t\t\t\t\t}\t\n\t\t\t\t}\t\t\t\n\t\t\t}\n\t\t\t$arr_rural[]=array(\n\t\t\t\t\t'location' => 'Rural',\n\t\t\t\t\t'school_level' => $rural_levels[$row],\n\t\t\t\t\t'ratio0' => 'Ratio 0',\n\t\t\t\t\t'pri_count' => $pri_count,\n\t\t\t\t\t'mid_count' => $mid_count,\n\t\t\t\t\t'high_count' => $high_count,\n\t\t\t\t\t'ratio25' => 'Ratio Between 0 and 25',\n\t\t\t\t\t'pri_count25' => $pri_count25,\n\t\t\t\t\t'mid_count25' => $mid_count25,\n\t\t\t\t\t'high_count25' => $high_count25,\n\t\t\t\t\t'ratio30' => 'Ratio Between 25 and 30',\n\t\t\t\t\t'pri_count30' => $pri_count30,\n\t\t\t\t\t'mid_count30' => $mid_count30,\n\t\t\t\t\t'high_count30' => $high_count30,\n\t\t\t\t\t'ratio35' => 'Ratio Between 30 and 35',\n\t\t\t\t\t'pri_count35' => $pri_count35,\n\t\t\t\t\t'mid_count35' => $mid_count35,\n\t\t\t\t\t'high_count35' => $high_count35,\n\t\t\t\t\t'ratio40' => 'Ratio Between 35 and 40',\n\t\t\t\t\t'pri_count40' => $pri_count40,\n\t\t\t\t\t'mid_count40' => $mid_count40,\n\t\t\t\t\t'high_count40' => $high_count40,\n\t\t\t\t\t'ratio45' => 'Ratio Between 40 and 45',\n\t\t\t\t\t'pri_count45' => $pri_count45,\n\t\t\t\t\t'mid_count45' => $mid_count45,\n\t\t\t\t\t'high_count45' => $high_count45,\n\t\t\t\t\t'ratio50' => 'Ratio Between 45 and 50',\n\t\t\t\t\t'pri_count50' => $pri_count50,\n\t\t\t\t\t'mid_count50' => $mid_count50,\n\t\t\t\t\t'high_count50' => $high_count50,\n\t\t\t\t\t'ratio60' => 'Ratio > 50',\n\t\t\t\t\t'pri_count60' => $pri_count60,\n\t\t\t\t\t'mid_count60' => $mid_count60,\n\t\t\t\t\t'high_count60' => $high_count60\t\n\t\t\t\t\t\n\t\t\t\t);\n\t\t}///end rural loop\n\n\t\t///start urban loop\n\t\tfor($u=0;$u<count($urban_levels);$u++){\n\t\t\t///rural\n\t\t\t$pri_count=0;$mid_count=0;$high_count=0;$pri_count25=0;$mid_count25=0;$high_count25=0;$pri_count30=0;$mid_count30=0;$high_count30=0;$pri_count35=0;$mid_count35=0;$high_count35=0; $pri_count40=0;$mid_count40=0;$high_count40=0;$pri_count45=0;$mid_count45=0;$high_count45=0;$pri_count50=0;$mid_count50=0;$high_count50=0;$pri_count60=0;$mid_count60=0;$high_count60=0;\n\n\n\t\t\tfor($su=0;$su<count($dtSchool);$su++)\n\t\t\t{\n\t\t\t\tif($dtSchool[$su]->school_level == $urban_levels[$u] && $dtSchool[$su]->location==\"Urban\") \n\t\t\t\t{\n\t\t\t\t\t $j=$su;$total5=\"\";$total9=\"\";$total11=\"\";$pri_ratio=\"\";$mid_ratio=\"\";$high_ratio=\"\";\n\n\t\t\t\t\t\t$school_location=$dtSchool[$su]->location;\n\t\t\t\t\t\t$school_level=$dtSchool[$su]->school_level;\n\n\t\t\t\t\t\t$g1=\"\";$g2=\"\";$g3=\"\";$g4=\"\";$g5=\"\";\n\t\t\t\t\t\t\tif($dtSchool[$su]->grade=='01') {\n\t\t\t\t\t\t\t\t$g1=$dtSchool[$su]->total_students;\n\t\t\t\t\t\t\t\tif ($su!=count($dtSchool)-1 && $dtSchool[$su+1]->school_no==$dtSchool[$su]->school_no) {\n\t\t\t\t\t\t\t\t\t$su+=1;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\tif($dtSchool[$su]->grade=='02') {\n\t\t\t\t\t\t$g2=$dtSchool[$su]->total_students;\n\t\t\t\t\t\tif ($su!=count($dtSchool)-1 && $dtSchool[$su+1]->school_no==$dtSchool[$su]->school_no) {\n\t\t\t\t\t\t\t$su+=1;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif($dtSchool[$su]->grade=='03') {\n\t\t\t\t\t\t$g3=$dtSchool[$su]->total_students;\n\t\t\t\t\t\tif ($su!=count($dtSchool)-1 && $dtSchool[$su+1]->school_no==$dtSchool[$su]->school_no) {\n\t\t\t\t\t\t\t$su+=1;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif($dtSchool[$su]->grade=='04') {\n\t\t\t\t\t\t$g4=$dtSchool[$su]->total_students;\n\t\t\t\t\t\tif ($su!=count($dtSchool)-1 && $dtSchool[$su+1]->school_no==$dtSchool[$su]->school_no) {\n\t\t\t\t\t\t\t$su+=1;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif ($dtSchool[$su]->grade=='05') {\n\t\t\t\t\t\t$g5=$dtSchool[$su]->total_students;\n\t\t\t\t\t\tif ($su!=count($dtSchool)-1 && $dtSchool[$su+1]->school_no==$dtSchool[$su]->school_no) {\n\t\t\t\t\t\t\t$su+=1;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t$total5=$g1+$g2+$g3+$g4+$g5;\n\n\t\t\t\tif ($dtSchool[$j]->primary_no!=0 && $dtSchool[$j]->primary_no!='' && $total5!=0) \n\t\t\t\t{\n\t\t\t\t\t$pri_ratio=$total5/$dtSchool[$j]->primary_no+$dtSchool[$j]->head_no;\n\t\t\t\t\t$pri_ratio;\n\t\t\t\t}\n\t\t\t\t$g6=\"\";$g7=\"\";$g8=\"\";$g9=\"\";\n\t\t\t\t\tif($dtSchool[$su]->grade=='06') {\n\t\t\t\t\t\t$g6=$dtSchool[$su]->total_students;\n\t\t\t\t\t\tif ($su!=count($dtSchool)-1 && $dtSchool[$su+1]->school_no==$dtSchool[$su]->school_no) {\n\t\t\t\t\t\t\t$su+=1;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif($dtSchool[$su]->grade=='07') {\n\t\t\t\t\t\t$g7=$dtSchool[$su]->total_students;\n\t\t\t\t\t\tif ($su!=count($dtSchool)-1 && $dtSchool[$su+1]->school_no==$dtSchool[$su]->school_no) {\n\t\t\t\t\t\t\t$su+=1;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif($dtSchool[$su]->grade=='08') {\n\t\t\t\t\t\t$g8=$dtSchool[$su]->total_students;\n\t\t\t\t\t\tif ($su!=count($dtSchool)-1 && $dtSchool[$su+1]->school_no==$dtSchool[$su]->school_no) {\n\t\t\t\t\t\t\t$su+=1;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif($dtSchool[$su]->grade=='09') {\n\t\t\t\t\t\t$g9=$dtSchool[$su]->total_students;\n\t\t\t\t\t\tif ($su!=count($dtSchool)-1 && $dtSchool[$su+1]->school_no==$dtSchool[$su]->school_no) {\n\t\t\t\t\t\t\t$su+=1;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t $total9=$g6+$g7+$g8+$g9;\n\t\t\t\tif ($dtSchool[$j]->jat_no!=0 && $dtSchool[$j]->jat_no!='' && $total9!=0) \n\t\t\t\t{\n\t\t\t\t\t$mid_ratio=$total9/$dtSchool[$j]->jat_no+$dtSchool[$j]->sat_no;\n\t\t\t\t\t$pri_mid=$pri_ratio+$mid_ratio;\n\t\t\t\t}\n\n\t\t\t\t$g10=\"\";$g11=\"\";\n\t\t\t\t\tif($dtSchool[$su]->grade=='10') {\n\t\t\t\t\t\t$g10=$dtSchool[$su]->total_students;\n\t\t\t\t\t\tif ($su!=count($dtSchool)-1 && $dtSchool[$su+1]->school_no==$dtSchool[$su]->school_no) {\n\t\t\t\t\t\t\t$su+=1;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif($dtSchool[$su]->grade=='11') {\n\t\t\t\t\t\t$g11=$dtSchool[$su]->total_students;\n\t\t\t\t\t\tif ($su!=count($dtSchool)-1 && $dtSchool[$su+1]->school_no==$dtSchool[$su]->school_no) {\n\t\t\t\t\t\t\t$su+=1;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t$total11=$g10+$g11;\n\t\t\t\t\tif ($dtSchool[$j]->sat_no!=0 && $dtSchool[$j]->sat_no!='' && $total11!=0) \n\t\t\t\t\t{\n\t\t\t\t\t\t$high_ratio=$total11/$dtSchool[$j]->sat_no+$dtSchool[$j]->sat_no;\n\t\t\t\t\t\t$pri_mid_high=$pri_ratio+$mid_ratio+$high_ratio;\n\t\t\t\t\t}\n\n\t\t\t\t\tif($pri_ratio==0)\n\t\t\t\t\t{\n\t\t\t\t\t\t$pri_count=$pri_count+1;\n\t\t\t\t\t}\n\t\t\t\t\tif ($mid_ratio==0)\n\t\t\t\t\t{\n\t\t\t\t\t\t$mid_count=$mid_count+1;\n\t\t\t\t\t}\n\t\t\t\t\tif ($high_ratio==0)\n\t\t\t\t\t{\n\t\t\t\t\t\t$high_count=$high_count+1;\n\t\t\t\t\t}\n\t\t\t\t\t///25\n\t\t\t\t\tif($pri_ratio>0 && $pri_ratio<25)\n\t\t\t\t\t{\n\t\t\t\t\t\t$pri_count25=$pri_count25+1;\n\t\t\t\t\t}\n\t\t\t\t\tif ($mid_ratio>0 && $mid_ratio<25)\n\t\t\t\t\t{\n\t\t\t\t\t\t$mid_count25=$mid_count25+1;\n\t\t\t\t\t}\n\t\t\t\t\tif ($high_ratio>0 && $high_ratio<25)\n\t\t\t\t\t{\n\t\t\t\t\t\t$high_count25=$high_count25+1;\n\t\t\t\t\t}\n\t\t\t\t\t////30\n\t\t\t\t\tif($pri_ratio>25 && $pri_ratio<30)\n\t\t\t\t\t{\n\t\t\t\t\t\t$pri_count30=$pri_count30+1;\n\t\t\t\t\t}\n\t\t\t\t\tif ($mid_ratio>25 && $mid_ratio<30)\n\t\t\t\t\t{\n\t\t\t\t\t\t$mid_count30=$mid_count30+1;\n\t\t\t\t\t}\n\t\t\t\t\tif ($high_ratio>25 && $high_ratio<30)\n\t\t\t\t\t{\n\t\t\t\t\t\t$high_count30=$high_count30+1;\n\t\t\t\t\t}\n\t\t\t\t\t////35\n\t\t\t\t\tif($pri_ratio>30 && $pri_ratio<35)\n\t\t\t\t\t{\n\t\t\t\t\t\t$pri_count35=$pri_count35+1;\n\t\t\t\t\t}\n\t\t\t\t\tif ($mid_ratio>30 && $mid_ratio<35)\n\t\t\t\t\t{\n\t\t\t\t\t\t$mid_count35=$mid_count35+1;\n\t\t\t\t\t}\n\t\t\t\t\tif ($high_ratio>30 && $high_ratio<35)\n\t\t\t\t\t{\n\t\t\t\t\t\t$high_count35=$high_count35+1;\n\t\t\t\t\t}\n\t\t\t\t\t///40\n\t\t\t\t\tif($pri_ratio>35 && $pri_ratio<40)\n\t\t\t\t\t{\n\t\t\t\t\t\t$pri_count40=$pri_count40+1;\n\t\t\t\t\t}\n\t\t\t\t\tif ($mid_ratio>35 && $mid_ratio<40)\n\t\t\t\t\t{\n\t\t\t\t\t\t$mid_count40=$mid_count40+1;\n\t\t\t\t\t}\n\t\t\t\t\tif ($high_ratio>35 && $high_ratio<40)\n\t\t\t\t\t{\n\t\t\t\t\t\t$high_count40=$high_count40+1;\n\t\t\t\t\t}\n\t\t\t\t\t///45\n\t\t\t\t\tif($pri_ratio>40 && $pri_ratio<45)\n\t\t\t\t\t{\n\t\t\t\t\t\t$pri_count45=$pri_count45+1;\n\t\t\t\t\t}\n\t\t\t\t\tif ($mid_ratio>40 && $mid_ratio<45)\n\t\t\t\t\t{\n\t\t\t\t\t\t$mid_count45=$mid_count45+1;\n\t\t\t\t\t}\n\t\t\t\t\tif ($high_ratio>40 && $high_ratio<45)\n\t\t\t\t\t{\n\t\t\t\t\t\t$high_count45=$high_count45+1;\n\t\t\t\t\t}\n\t\t\t\t\t///50\n\t\t\t\t\tif($pri_ratio>45 && $pri_ratio<50)\n\t\t\t\t\t{\n\t\t\t\t\t\t$pri_count50=$pri_count50+1;\n\t\t\t\t\t}\n\t\t\t\t\tif ($mid_ratio>45 && $mid_ratio<50)\n\t\t\t\t\t{\n\t\t\t\t\t\t$mid_count50=$mid_count50+1;\n\t\t\t\t\t}\n\t\t\t\t\tif ($high_ratio>45 && $high_ratio<50)\n\t\t\t\t\t{\n\t\t\t\t\t\t$high_count50=$high_count50+1;\n\t\t\t\t\t}\n\t\t\t\t\t////>50\n\t\t\t\t\tif($pri_ratio>50)\n\t\t\t\t\t{\n\t\t\t\t\t\t$pri_count60=$pri_count60+1;\n\t\t\t\t\t}\n\t\t\t\t\tif ($mid_ratio>50)\n\t\t\t\t\t{\n\t\t\t\t\t\t$mid_count60=$mid_count60+1;\n\t\t\t\t\t}\n\t\t\t\t\tif ($high_ratio>50)\n\t\t\t\t\t{\n\t\t\t\t\t\t$high_count60=$high_count60+1;\n\t\t\t\t\t}\t\n\t\t\t\t}\t\t\t\n\t\t\t}\n\t\t\t$arr_urban[]=array(\n\t\t\t\t\t'location' => 'Urban',\n\t\t\t\t\t'school_level' => $urban_levels[$u],\n\t\t\t\t\t'ratio0' => 'Ratio 0',\n\t\t\t\t\t'pri_count' => $pri_count,\n\t\t\t\t\t'mid_count' => $mid_count,\n\t\t\t\t\t'high_count' => $high_count,\n\t\t\t\t\t'ratio25' => 'Ratio Between 0 and 25',\n\t\t\t\t\t'pri_count25' => $pri_count25,\n\t\t\t\t\t'mid_count25' => $mid_count25,\n\t\t\t\t\t'high_count25' => $high_count25,\n\t\t\t\t\t'ratio30' => 'Ratio Between 25 and 30',\n\t\t\t\t\t'pri_count30' => $pri_count30,\n\t\t\t\t\t'mid_count30' => $mid_count30,\n\t\t\t\t\t'high_count30' => $high_count30,\n\t\t\t\t\t'ratio35' => 'Ratio Between 30 and 35',\n\t\t\t\t\t'pri_count35' => $pri_count35,\n\t\t\t\t\t'mid_count35' => $mid_count35,\n\t\t\t\t\t'high_count35' => $high_count35,\n\t\t\t\t\t'ratio40' => 'Ratio Between 35 and 40',\n\t\t\t\t\t'pri_count40' => $pri_count40,\n\t\t\t\t\t'mid_count40' => $mid_count40,\n\t\t\t\t\t'high_count40' => $high_count40,\n\t\t\t\t\t'ratio45' => 'Ratio Between 40 and 45',\n\t\t\t\t\t'pri_count45' => $pri_count45,\n\t\t\t\t\t'mid_count45' => $mid_count45,\n\t\t\t\t\t'high_count45' => $high_count45,\n\t\t\t\t\t'ratio50' => 'Ratio Between 45 and 50',\n\t\t\t\t\t'pri_count50' => $pri_count50,\n\t\t\t\t\t'mid_count50' => $mid_count50,\n\t\t\t\t\t'high_count50' => $high_count50,\n\t\t\t\t\t'ratio60' => 'Ratio > 50',\n\t\t\t\t\t'pri_count60' => $pri_count60,\n\t\t\t\t\t'mid_count60' => $mid_count60,\n\t\t\t\t\t'high_count60' => $high_count60\t\n\t\t\t\t\t\n\t\t\t\t);\n\t\t}\t/// end urban loop\t\n\t\t\t$state_name=DB::select(DB::raw(\"SELECT state_division FROM state_division WHERE id=\".Input::get('state_id')));\n\n\t\t\tif($township_id){\n\t\t\t\t$township_name=DB::select(DB::raw(\"SELECT township_name FROM township WHERE id=\".Input::get('township_id')));\n\t\t\t}\n\n\t\t\t$request_input=array($state_name[0]->state_division,isset($township_name[0]->township_name)? $township_name[0]->township_name:'ALL',Input::get('academic_year'));\t\n\n\t\t\t//print_r($arr_rural);\n\t\t\tExcel::create('Pupil Teacher Ratio', function($excel) use($rural_levels,$urban_levels,$arr_urban,$arr_rural,$request_input) {\n\n\t\t\t$excel->sheet('PupilTeacherTownshipRatio', function($sheet) use($rural_levels,$urban_levels,$arr_rural,$arr_urban,$request_input){\n\n\t $sheet->prependRow(array('Township Education Management Information System'))->mergeCells('A1:D1',function($cells){\n\t \t\t\t\t$cells->setFontSize(18);\n\t \t\t\t\t$cells->setAlignment('center');\n\t \t\t\t\t$cells->setValignment('middle');\n\t \t\t\t});\n\t \t\t$sheet->appendRow(array('Pupil Teacher Ratio By Township Report'))->mergeCells('A2:D2',function($cells){\n\t \t\t\t\t\n\t \t\t\t\t$cells->setFontSize(18);\n\t \t\t\t\t$cells->setAlignment('center');\n\t \t\t\t\t $cells->setValignment('middle');\n\t \t\t\t});\n\t \t\t$sheet->appendRow(array('Division : '.$request_input[0]))->mergeCells('A3:D3',function($cells){\n\t \t\t\t\n\t \t\t\t\t$cells->setFontSize(18);\n\t \t\t\t\t$cells->setAlignment('left');\n\t \t\t\t\t $cells->setValignment('middle');\n\t \t\t});\n\t \t\t$sheet->appendRow(array('Township : '.$request_input[1]))->mergeCells('A4:D4',function($cell){\n\t \t\t\t\n\t \t\t\t\t$cell->setFontSize(11);\n\t \t\t\t\t$cell->setAlignment('right');\n\t \t\t\t\t$cell->setValignment('middle');\n\t \t\t});\n\t \t\t$sheet->appendRow(array('Academic Year :'.$request_input[2]))->mergeCells('A5:D5',function($cell){\n\t \t\t\t\n\t \t\t\t$cell->setFontSize(18);\n\t \t\t\t$cell->setAlignment('left');\n\t \t\t\t$cell->setValignment('middle');\n\t \t\t});\n\n\t \t\t\n\n\t///////////////// Start Rural\n\t\t\t\t$count=$sheet->getHighestRow()+1;\n\t\t\t\t\t$sheet->appendRow(array('Location : Rural'))->mergeCells('A'.$count.':D'.$count,function($cell){\n\t\t\t\t\t$cell->setFontWeight('bold');\n\t\t \t\t$cell->setFontSize(18);\n\t\t \t\t$cell->setAlignment('left');\n\t\t \t\t$cell->setValignment('middle');\n\t\t\t\t});\n\t\t\t\tfor($row=0;$row<count($rural_levels);$row++)\n\t\t\t\t{ \n\t\t\t\n\t\t\t\t$count=$sheet->getHighestRow()+1;\n\t\t\t\t\t$sheet->appendRow(array('School Level :'.$rural_levels[$row]))->mergeCells('A'.$count.':D'.$count,function($cell){\n\t\t\t\t\t$cell->setFontWeight('bold');\n\t\t \t\t$cell->setFontSize(18);\n\t\t \t\t$cell->setAlignment('left');\n\t\t \t\t$cell->setValignment('middle');\n\t\t\t\t});\n\n\t\t\t\t$sheet->appendRow(array('Ratio','Primary Ratio','Middle Ratio','High Ratio'));\n\n\t\t\t\tfor($i=0;$i<count($arr_rural);$i++)\n\t\t\t\t{\t\n\t\t\t\tif($arr_rural[$i]['school_level'] == $rural_levels[$row] && $arr_rural[$i]['location']==\"Rural\")\n\t\t\t\t{\n\t\t\t\t\t///ratio 0\n\t\t\t\t\t$count=$sheet->getHighestRow()+1;\n\t\t\t\t\t$sheet->cell('A'.$count,function($cell) use($arr_rural,$i){\n\t \t\t\t\t$cell->setValue('Ratio 0');\n\t\t\t \t\t$cell->setFontSize(12);\n\t\t\t \t\t$cell->setAlignment('left');\n\t\t\t \t\t$cell->setValignment('middle');\n\t\t\t \t});\n\t\t\t \t$sheet->cell('B'.$count,function($cell) use($arr_rural,$i){\n\t \t\t\t\t$cell->setValue($arr_rural[$i]['pri_count']);\n\t\t\t \t\t$cell->setFontSize(12);\n\t\t\t \t\t$cell->setAlignment('left');\n\t\t\t \t\t$cell->setValignment('middle');\n\t\t\t \t});\n\t\t\t \t$sheet->cell('C'.$count,function($cell) use($arr_rural,$i){\n\t\t\t \t\t\n\t\t \t\t\t\t$cell->setValue($arr_rural[$i]['mid_count']);\n\t\t\t \t\t$cell->setFontSize(12);\n\t\t\t \t\t$cell->setAlignment('left');\n\t\t\t \t\t$cell->setValignment('middle');\n\t\t\t \t});\n\t\t\t\t\t$sheet->cell('D'.$count,function($cell) use($arr_rural,$i){\n\t\t\t\t\t\n\t\t\t \t\t$cell->setValue($arr_rural[$i]['high_count']);\n\t\t\t\t\t $cell->setFontSize(12);\n\t\t\t\t\t $cell->setAlignment('left');\n\t\t\t\t\t $cell->setValignment('middle');\n\t\t\t\t\t});\n\t\t\t\t\t\n\t\t\t\t\t////ratio 25\n\t\t\t\t\t$count=$sheet->getHighestRow()+1;\n\t\t\t\t\t$sheet->cell('A'.$count,function($cell) use($arr_rural,$i){\n\t \t\t\t\t$cell->setValue($arr_rural[$i]['ratio25']);\n\t\t\t \t\t$cell->setFontSize(12);\n\t\t\t \t\t$cell->setAlignment('left');\n\t\t\t \t\t$cell->setValignment('middle');\n\t\t\t \t});\n\t\t\t \t$sheet->cell('B'.$count,function($cell) use($arr_rural,$i){\n\t \t\t\t\t$cell->setValue($arr_rural[$i]['pri_count25']);\n\t\t\t \t\t$cell->setFontSize(12);\n\t\t\t \t\t$cell->setAlignment('left');\n\t\t\t \t\t$cell->setValignment('middle');\n\t\t\t \t});\n\t\t\t \t$sheet->cell('C'.$count,function($cell) use($arr_rural,$i){\n\t\t\t \t\t\n\t\t \t\t\t\t$cell->setValue($arr_rural[$i]['mid_count25']);\n\t\t\t \t\t$cell->setFontSize(12);\n\t\t\t \t\t$cell->setAlignment('left');\n\t\t\t \t\t$cell->setValignment('middle');\n\t\t\t \t});\n\t\t\t\t\t$sheet->cell('D'.$count,function($cell) use($arr_rural,$i){\n\t\t\t\t\t\n\t\t\t \t\t$cell->setValue($arr_rural[$i]['high_count25']);\n\t\t\t\t\t $cell->setFontSize(12);\n\t\t\t\t\t $cell->setAlignment('left');\n\t\t\t\t\t $cell->setValignment('middle');\n\t\t\t\t\t});\n\n\t\t\t\t\t///ratio 30\n\t\t\t\t\t$count=$sheet->getHighestRow()+1;\n\t\t\t\t\t$sheet->cell('A'.$count,function($cell) use($arr_rural,$i){\n\t \t\t\t\t$cell->setValue($arr_rural[$i]['ratio30']);\n\t\t\t \t\t$cell->setFontSize(12);\n\t\t\t \t\t$cell->setAlignment('left');\n\t\t\t \t\t$cell->setValignment('middle');\n\t\t\t \t});\n\t\t\t \t$sheet->cell('B'.$count,function($cell) use($arr_rural,$i){\n\t \t\t\t\t$cell->setValue($arr_rural[$i]['pri_count30']);\n\t\t\t \t\t$cell->setFontSize(12);\n\t\t\t \t\t$cell->setAlignment('left');\n\t\t\t \t\t$cell->setValignment('middle');\n\t\t\t \t});\n\t\t\t \t$sheet->cell('C'.$count,function($cell) use($arr_rural,$i){\n\t\t\t \t\t\n\t\t \t\t\t\t$cell->setValue($arr_rural[$i]['mid_count30']);\n\t\t\t \t\t$cell->setFontSize(12);\n\t\t\t \t\t$cell->setAlignment('left');\n\t\t\t \t\t$cell->setValignment('middle');\n\t\t\t \t});\n\t\t\t\t\t$sheet->cell('D'.$count,function($cell) use($arr_rural,$i){\n\t\t\t\t\t\n\t\t\t \t\t$cell->setValue($arr_rural[$i]['high_count30']);\n\t\t\t\t\t $cell->setFontSize(12);\n\t\t\t\t\t $cell->setAlignment('left');\n\t\t\t\t\t $cell->setValignment('middle');\n\t\t\t\t\t});\n\t\t\t\t\t\n\t\t\t\t\t////ratio 35\n\t\t\t\t\t$count=$sheet->getHighestRow()+1;\n\t\t\t\t\t$sheet->cell('A'.$count,function($cell) use($arr_rural,$i){\n\t \t\t\t\t$cell->setValue($arr_rural[$i]['ratio35']);\n\t\t\t \t\t$cell->setFontSize(12);\n\t\t\t \t\t$cell->setAlignment('left');\n\t\t\t \t\t$cell->setValignment('middle');\n\t\t\t \t});\n\t\t\t \t$sheet->cell('B'.$count,function($cell) use($arr_rural,$i){\n\t \t\t\t\t$cell->setValue($arr_rural[$i]['pri_count35']);\n\t\t\t \t\t$cell->setFontSize(12);\n\t\t\t \t\t$cell->setAlignment('left');\n\t\t\t \t\t$cell->setValignment('middle');\n\t\t\t \t});\n\t\t\t \t$sheet->cell('C'.$count,function($cell) use($arr_rural,$i){\n\t\t\t \t\t\n\t\t \t\t\t\t$cell->setValue($arr_rural[$i]['mid_count35']);\n\t\t\t \t\t$cell->setFontSize(12);\n\t\t\t \t\t$cell->setAlignment('left');\n\t\t\t \t\t$cell->setValignment('middle');\n\t\t\t \t});\n\t\t\t\t\t$sheet->cell('D'.$count,function($cell) use($arr_rural,$i){\n\t\t\t\t\t\n\t\t\t \t\t$cell->setValue($arr_rural[$i]['high_count35']);\n\t\t\t\t\t $cell->setFontSize(12);\n\t\t\t\t\t $cell->setAlignment('left');\n\t\t\t\t\t $cell->setValignment('middle');\n\t\t\t\t\t});\n\n\t\t\t\t\t///ratio 40\n\t\t\t\t\t$count=$sheet->getHighestRow()+1;\n\t\t\t\t\t$sheet->cell('A'.$count,function($cell) use($arr_rural,$i){\n\t \t\t\t\t$cell->setValue($arr_rural[$i]['ratio40']);\n\t\t\t \t\t$cell->setFontSize(12);\n\t\t\t \t\t$cell->setAlignment('left');\n\t\t\t \t\t$cell->setValignment('middle');\n\t\t\t \t});\n\t\t\t \t$sheet->cell('B'.$count,function($cell) use($arr_rural,$i){\n\t \t\t\t\t$cell->setValue($arr_rural[$i]['pri_count40']);\n\t\t\t \t\t$cell->setFontSize(12);\n\t\t\t \t\t$cell->setAlignment('left');\n\t\t\t \t\t$cell->setValignment('middle');\n\t\t\t \t});\n\t\t\t \t$sheet->cell('C'.$count,function($cell) use($arr_rural,$i){\n\t\t\t \t\t\n\t\t \t\t\t\t$cell->setValue($arr_rural[$i]['mid_count40']);\n\t\t\t \t\t$cell->setFontSize(12);\n\t\t\t \t\t$cell->setAlignment('left');\n\t\t\t \t\t$cell->setValignment('middle');\n\t\t\t \t});\n\t\t\t\t\t$sheet->cell('D'.$count,function($cell) use($arr_rural,$i){\n\t\t\t\t\t\n\t\t\t \t\t$cell->setValue($arr_rural[$i]['high_count40']);\n\t\t\t\t\t $cell->setFontSize(12);\n\t\t\t\t\t $cell->setAlignment('left');\n\t\t\t\t\t $cell->setValignment('middle');\n\t\t\t\t\t});\n\t\t\t\t\t\n\t\t\t\t\t////ratio 45\n\t\t\t\t\t$count=$sheet->getHighestRow()+1;\n\t\t\t\t\t$sheet->cell('A'.$count,function($cell) use($arr_rural,$i){\n\t \t\t\t\t$cell->setValue($arr_rural[$i]['ratio45']);\n\t\t\t \t\t$cell->setFontSize(12);\n\t\t\t \t\t$cell->setAlignment('left');\n\t\t\t \t\t$cell->setValignment('middle');\n\t\t\t \t});\n\t\t\t \t$sheet->cell('B'.$count,function($cell) use($arr_rural,$i){\n\t \t\t\t\t$cell->setValue($arr_rural[$i]['pri_count45']);\n\t\t\t \t\t$cell->setFontSize(12);\n\t\t\t \t\t$cell->setAlignment('left');\n\t\t\t \t\t$cell->setValignment('middle');\n\t\t\t \t});\n\t\t\t \t$sheet->cell('C'.$count,function($cell) use($arr_rural,$i){\n\t\t\t \t\t\n\t\t \t\t\t\t$cell->setValue($arr_rural[$i]['mid_count45']);\n\t\t\t \t\t$cell->setFontSize(12);\n\t\t\t \t\t$cell->setAlignment('left');\n\t\t\t \t\t$cell->setValignment('middle');\n\t\t\t \t});\n\t\t\t\t\t$sheet->cell('D'.$count,function($cell) use($arr_rural,$i){\n\t\t\t\t\t\n\t\t\t \t\t$cell->setValue($arr_rural[$i]['high_count45']);\n\t\t\t\t\t $cell->setFontSize(12);\n\t\t\t\t\t $cell->setAlignment('left');\n\t\t\t\t\t $cell->setValignment('middle');\n\t\t\t\t\t});\n\n\t\t\t\t\t///ratio 50\n\t\t\t\t\t$count=$sheet->getHighestRow()+1;\n\t\t\t\t\t$sheet->cell('A'.$count,function($cell) use($arr_rural,$i){\n\t \t\t\t\t$cell->setValue($arr_rural[$i]['ratio50']);\n\t\t\t \t\t$cell->setFontSize(12);\n\t\t\t \t\t$cell->setAlignment('left');\n\t\t\t \t\t$cell->setValignment('middle');\n\t\t\t \t});\n\t\t\t \t$sheet->cell('B'.$count,function($cell) use($arr_rural,$i){\n\t \t\t\t\t$cell->setValue($arr_rural[$i]['pri_count50']);\n\t\t\t \t\t$cell->setFontSize(12);\n\t\t\t \t\t$cell->setAlignment('left');\n\t\t\t \t\t$cell->setValignment('middle');\n\t\t\t \t});\n\t\t\t \t$sheet->cell('C'.$count,function($cell) use($arr_rural,$i){\n\t\t\t \t\t\n\t\t \t\t\t\t$cell->setValue($arr_rural[$i]['mid_count50']);\n\t\t\t \t\t$cell->setFontSize(12);\n\t\t\t \t\t$cell->setAlignment('left');\n\t\t\t \t\t$cell->setValignment('middle');\n\t\t\t \t});\n\t\t\t\t\t$sheet->cell('D'.$count,function($cell) use($arr_rural,$i){\n\t\t\t\t\t\n\t\t\t \t\t$cell->setValue($arr_rural[$i]['high_count50']);\n\t\t\t\t\t $cell->setFontSize(12);\n\t\t\t\t\t $cell->setAlignment('left');\n\t\t\t\t\t $cell->setValignment('middle');\n\t\t\t\t\t});\n\t\t\t\t\t\n\t\t\t\t\t////ratio 60\n\t\t\t\t\t$count=$sheet->getHighestRow()+1;\n\t\t\t\t\t$sheet->cell('A'.$count,function($cell) use($arr_rural,$i){\n\t \t\t\t\t$cell->setValue($arr_rural[$i]['ratio60']);\n\t\t\t \t\t$cell->setFontSize(12);\n\t\t\t \t\t$cell->setAlignment('left');\n\t\t\t \t\t$cell->setValignment('middle');\n\t\t\t \t});\n\t\t\t \t$sheet->cell('B'.$count,function($cell) use($arr_rural,$i){\n\t \t\t\t\t$cell->setValue($arr_rural[$i]['pri_count60']);\n\t\t\t \t\t$cell->setFontSize(12);\n\t\t\t \t\t$cell->setAlignment('left');\n\t\t\t \t\t$cell->setValignment('middle');\n\t\t\t \t});\n\t\t\t \t$sheet->cell('C'.$count,function($cell) use($arr_rural,$i){\n\t\t\t \t\t\n\t\t \t\t\t\t$cell->setValue($arr_rural[$i]['mid_count60']);\n\t\t\t \t\t$cell->setFontSize(12);\n\t\t\t \t\t$cell->setAlignment('left');\n\t\t\t \t\t$cell->setValignment('middle');\n\t\t\t \t});\n\t\t\t\t\t$sheet->cell('D'.$count,function($cell) use($arr_rural,$i){\n\t\t\t\t\t\n\t\t\t \t\t$cell->setValue($arr_rural[$i]['high_count60']);\n\t\t\t\t\t $cell->setFontSize(12);\n\t\t\t\t\t $cell->setAlignment('left');\n\t\t\t\t\t $cell->setValignment('middle');\n\t\t\t\t\t});\n\n\t\t\t\t\t\n\t\t\t\t}\n \t\t\t} \n\t\t\t\t\n\t\t}\t\t\n\n\t//////////////// End Rural\n\n\t/////////////// Start Urban\n\n\t\t\t\t$count=$sheet->getHighestRow()+1;\n\t\t\t\t\t$sheet->appendRow(array('Location : Urban'))->mergeCells('A'.$count.':D'.$count,function($cell){\n\t\t\t\t\t$cell->setFontWeight('bold');\n\t\t \t\t$cell->setFontSize(18);\n\t\t \t\t$cell->setAlignment('left');\n\t\t \t\t$cell->setValignment('middle');\n\t\t\t\t});\n\t\t\t\tfor($ur=0;$ur<count($urban_levels);$ur++)\n\t\t\t\t{ \n\t\t\t\n\t\t\t\t$count=$sheet->getHighestRow()+1;\n\t\t\t\t\t$sheet->appendRow(array('School Level :'.$urban_levels[$ur]))->mergeCells('A'.$count.':D'.$count,function($cell){\n\t\t\t\t\t$cell->setFontWeight('bold');\n\t\t \t\t$cell->setFontSize(18);\n\t\t \t\t$cell->setAlignment('left');\n\t\t \t\t$cell->setValignment('middle');\n\t\t\t\t});\n\n\t\t\t\t$sheet->appendRow(array('Ratio','Primary Ratio','Middle Ratio','High Ratio'));\n\n\t\t\t\tfor($au=0;$au<count($arr_urban);$au++)\n\t\t\t\t{\t\n\t\t\t\tif($arr_urban[$au]['school_level'] == $urban_levels[$ur] && $arr_urban[$au]['location']==\"Urban\")\n\t\t\t\t{\n\t\t\t\t\t///ratio 0\n\t\t\t\t\t$count=$sheet->getHighestRow()+1;\n\t\t\t\t\t$sheet->cell('A'.$count,function($cell) use($arr_urban,$au){\n\t \t\t\t\t$cell->setValue('Ratio 0');\n\t\t\t \t\t$cell->setFontSize(12);\n\t\t\t \t\t$cell->setAlignment('left');\n\t\t\t \t\t$cell->setValignment('middle');\n\t\t\t \t});\n\t\t\t \t$sheet->cell('B'.$count,function($cell) use($arr_urban,$au){\n\t \t\t\t\t$cell->setValue($arr_urban[$au]['pri_count']);\n\t\t\t \t\t$cell->setFontSize(12);\n\t\t\t \t\t$cell->setAlignment('left');\n\t\t\t \t\t$cell->setValignment('middle');\n\t\t\t \t});\n\t\t\t \t$sheet->cell('C'.$count,function($cell) use($arr_urban,$au){\n\t\t\t \t\t\n\t\t \t\t\t\t$cell->setValue($arr_urban[$au]['mid_count']);\n\t\t\t \t\t$cell->setFontSize(12);\n\t\t\t \t\t$cell->setAlignment('left');\n\t\t\t \t\t$cell->setValignment('middle');\n\t\t\t \t});\n\t\t\t\t\t$sheet->cell('D'.$count,function($cell) use($arr_urban,$au){\n\t\t\t\t\t\n\t\t\t \t\t$cell->setValue($arr_urban[$au]['high_count']);\n\t\t\t\t\t $cell->setFontSize(12);\n\t\t\t\t\t $cell->setAlignment('left');\n\t\t\t\t\t $cell->setValignment('middle');\n\t\t\t\t\t});\n\t\t\t\t\t\n\t\t\t\t\t////ratio 25\n\t\t\t\t\t$count=$sheet->getHighestRow()+1;\n\t\t\t\t\t$sheet->cell('A'.$count,function($cell) use($arr_urban,$au){\n\t \t\t\t\t$cell->setValue($arr_urban[$au]['ratio25']);\n\t\t\t \t\t$cell->setFontSize(12);\n\t\t\t \t\t$cell->setAlignment('left');\n\t\t\t \t\t$cell->setValignment('middle');\n\t\t\t \t});\n\t\t\t \t$sheet->cell('B'.$count,function($cell) use($arr_urban,$au){\n\t \t\t\t\t$cell->setValue($arr_urban[$au]['pri_count25']);\n\t\t\t \t\t$cell->setFontSize(12);\n\t\t\t \t\t$cell->setAlignment('left');\n\t\t\t \t\t$cell->setValignment('middle');\n\t\t\t \t});\n\t\t\t \t$sheet->cell('C'.$count,function($cell) use($arr_urban,$au){\n\t\t\t \t\t\n\t\t \t\t\t\t$cell->setValue($arr_urban[$au]['mid_count25']);\n\t\t\t \t\t$cell->setFontSize(12);\n\t\t\t \t\t$cell->setAlignment('left');\n\t\t\t \t\t$cell->setValignment('middle');\n\t\t\t \t});\n\t\t\t\t\t$sheet->cell('D'.$count,function($cell) use($arr_urban,$au){\n\t\t\t\t\t\n\t\t\t \t\t$cell->setValue($arr_urban[$au]['high_count25']);\n\t\t\t\t\t $cell->setFontSize(12);\n\t\t\t\t\t $cell->setAlignment('left');\n\t\t\t\t\t $cell->setValignment('middle');\n\t\t\t\t\t});\n\n\t\t\t\t\t///ratio 30\n\t\t\t\t\t$count=$sheet->getHighestRow()+1;\n\t\t\t\t\t$sheet->cell('A'.$count,function($cell) use($arr_urban,$au){\n\t \t\t\t\t$cell->setValue($arr_urban[$au]['ratio30']);\n\t\t\t \t\t$cell->setFontSize(12);\n\t\t\t \t\t$cell->setAlignment('left');\n\t\t\t \t\t$cell->setValignment('middle');\n\t\t\t \t});\n\t\t\t \t$sheet->cell('B'.$count,function($cell) use($arr_urban,$au){\n\t \t\t\t\t$cell->setValue($arr_urban[$au]['pri_count30']);\n\t\t\t \t\t$cell->setFontSize(12);\n\t\t\t \t\t$cell->setAlignment('left');\n\t\t\t \t\t$cell->setValignment('middle');\n\t\t\t \t});\n\t\t\t \t$sheet->cell('C'.$count,function($cell) use($arr_urban,$au){\n\t\t\t \t\t\n\t\t \t\t\t\t$cell->setValue($arr_urban[$au]['mid_count30']);\n\t\t\t \t\t$cell->setFontSize(12);\n\t\t\t \t\t$cell->setAlignment('left');\n\t\t\t \t\t$cell->setValignment('middle');\n\t\t\t \t});\n\t\t\t\t\t$sheet->cell('D'.$count,function($cell) use($arr_urban,$au){\n\t\t\t\t\t\n\t\t\t \t\t$cell->setValue($arr_urban[$au]['high_count30']);\n\t\t\t\t\t $cell->setFontSize(12);\n\t\t\t\t\t $cell->setAlignment('left');\n\t\t\t\t\t $cell->setValignment('middle');\n\t\t\t\t\t});\n\t\t\t\t\t\n\t\t\t\t\t////ratio 35\n\t\t\t\t\t$count=$sheet->getHighestRow()+1;\n\t\t\t\t\t$sheet->cell('A'.$count,function($cell) use($arr_urban,$au){\n\t \t\t\t\t$cell->setValue($arr_urban[$au]['ratio35']);\n\t\t\t \t\t$cell->setFontSize(12);\n\t\t\t \t\t$cell->setAlignment('left');\n\t\t\t \t\t$cell->setValignment('middle');\n\t\t\t \t});\n\t\t\t \t$sheet->cell('B'.$count,function($cell) use($arr_urban,$au){\n\t \t\t\t\t$cell->setValue($arr_urban[$au]['pri_count35']);\n\t\t\t \t\t$cell->setFontSize(12);\n\t\t\t \t\t$cell->setAlignment('left');\n\t\t\t \t\t$cell->setValignment('middle');\n\t\t\t \t});\n\t\t\t \t$sheet->cell('C'.$count,function($cell) use($arr_urban,$au){\n\t\t\t \t\t\n\t\t \t\t\t\t$cell->setValue($arr_urban[$au]['mid_count35']);\n\t\t\t \t\t$cell->setFontSize(12);\n\t\t\t \t\t$cell->setAlignment('left');\n\t\t\t \t\t$cell->setValignment('middle');\n\t\t\t \t});\n\t\t\t\t\t$sheet->cell('D'.$count,function($cell) use($arr_urban,$au){\n\t\t\t\t\t\n\t\t\t \t\t$cell->setValue($arr_urban[$au]['high_count35']);\n\t\t\t\t\t $cell->setFontSize(12);\n\t\t\t\t\t $cell->setAlignment('left');\n\t\t\t\t\t $cell->setValignment('middle');\n\t\t\t\t\t});\n\n\t\t\t\t\t///ratio 40\n\t\t\t\t\t$count=$sheet->getHighestRow()+1;\n\t\t\t\t\t$sheet->cell('A'.$count,function($cell) use($arr_urban,$au){\n\t \t\t\t\t$cell->setValue($arr_urban[$au]['ratio40']);\n\t\t\t \t\t$cell->setFontSize(12);\n\t\t\t \t\t$cell->setAlignment('left');\n\t\t\t \t\t$cell->setValignment('middle');\n\t\t\t \t});\n\t\t\t \t$sheet->cell('B'.$count,function($cell) use($arr_urban,$au){\n\t \t\t\t\t$cell->setValue($arr_urban[$au]['pri_count40']);\n\t\t\t \t\t$cell->setFontSize(12);\n\t\t\t \t\t$cell->setAlignment('left');\n\t\t\t \t\t$cell->setValignment('middle');\n\t\t\t \t});\n\t\t\t \t$sheet->cell('C'.$count,function($cell) use($arr_urban,$au){\n\t\t\t \t\t\n\t\t \t\t\t\t$cell->setValue($arr_urban[$au]['mid_count40']);\n\t\t\t \t\t$cell->setFontSize(12);\n\t\t\t \t\t$cell->setAlignment('left');\n\t\t\t \t\t$cell->setValignment('middle');\n\t\t\t \t});\n\t\t\t\t\t$sheet->cell('D'.$count,function($cell) use($arr_urban,$au){\n\t\t\t\t\t\n\t\t\t \t\t$cell->setValue($arr_urban[$au]['high_count40']);\n\t\t\t\t\t $cell->setFontSize(12);\n\t\t\t\t\t $cell->setAlignment('left');\n\t\t\t\t\t $cell->setValignment('middle');\n\t\t\t\t\t});\n\t\t\t\t\t\n\t\t\t\t\t////ratio 45\n\t\t\t\t\t$count=$sheet->getHighestRow()+1;\n\t\t\t\t\t$sheet->cell('A'.$count,function($cell) use($arr_urban,$au){\n\t \t\t\t\t$cell->setValue($arr_urban[$au]['ratio45']);\n\t\t\t \t\t$cell->setFontSize(12);\n\t\t\t \t\t$cell->setAlignment('left');\n\t\t\t \t\t$cell->setValignment('middle');\n\t\t\t \t});\n\t\t\t \t$sheet->cell('B'.$count,function($cell) use($arr_urban,$au){\n\t \t\t\t\t$cell->setValue($arr_urban[$au]['pri_count45']);\n\t\t\t \t\t$cell->setFontSize(12);\n\t\t\t \t\t$cell->setAlignment('left');\n\t\t\t \t\t$cell->setValignment('middle');\n\t\t\t \t});\n\t\t\t \t$sheet->cell('C'.$count,function($cell) use($arr_urban,$au){\n\t\t\t \t\t\n\t\t \t\t\t\t$cell->setValue($arr_urban[$au]['mid_count45']);\n\t\t\t \t\t$cell->setFontSize(12);\n\t\t\t \t\t$cell->setAlignment('left');\n\t\t\t \t\t$cell->setValignment('middle');\n\t\t\t \t});\n\t\t\t\t\t$sheet->cell('D'.$count,function($cell) use($arr_urban,$au){\n\t\t\t\t\t\n\t\t\t \t\t$cell->setValue($arr_urban[$au]['high_count45']);\n\t\t\t\t\t $cell->setFontSize(12);\n\t\t\t\t\t $cell->setAlignment('left');\n\t\t\t\t\t $cell->setValignment('middle');\n\t\t\t\t\t});\n\n\t\t\t\t\t///ratio 50\n\t\t\t\t\t$count=$sheet->getHighestRow()+1;\n\t\t\t\t\t$sheet->cell('A'.$count,function($cell) use($arr_urban,$au){\n\t \t\t\t\t$cell->setValue($arr_urban[$au]['ratio50']);\n\t\t\t \t\t$cell->setFontSize(12);\n\t\t\t \t\t$cell->setAlignment('left');\n\t\t\t \t\t$cell->setValignment('middle');\n\t\t\t \t});\n\t\t\t \t$sheet->cell('B'.$count,function($cell) use($arr_urban,$au){\n\t \t\t\t\t$cell->setValue($arr_urban[$au]['pri_count50']);\n\t\t\t \t\t$cell->setFontSize(12);\n\t\t\t \t\t$cell->setAlignment('left');\n\t\t\t \t\t$cell->setValignment('middle');\n\t\t\t \t});\n\t\t\t \t$sheet->cell('C'.$count,function($cell) use($arr_urban,$au){\n\t\t\t \t\t\n\t\t \t\t\t\t$cell->setValue($arr_urban[$au]['mid_count50']);\n\t\t\t \t\t$cell->setFontSize(12);\n\t\t\t \t\t$cell->setAlignment('left');\n\t\t\t \t\t$cell->setValignment('middle');\n\t\t\t \t});\n\t\t\t\t\t$sheet->cell('D'.$count,function($cell) use($arr_urban,$au){\n\t\t\t\t\t\n\t\t\t \t\t$cell->setValue($arr_urban[$au]['high_count50']);\n\t\t\t\t\t $cell->setFontSize(12);\n\t\t\t\t\t $cell->setAlignment('left');\n\t\t\t\t\t $cell->setValignment('middle');\n\t\t\t\t\t});\n\t\t\t\t\t\n\t\t\t\t\t////ratio 60\n\t\t\t\t\t$count=$sheet->getHighestRow()+1;\n\t\t\t\t\t$sheet->cell('A'.$count,function($cell) use($arr_urban,$au){\n\t \t\t\t\t$cell->setValue($arr_urban[$au]['ratio60']);\n\t\t\t \t\t$cell->setFontSize(12);\n\t\t\t \t\t$cell->setAlignment('left');\n\t\t\t \t\t$cell->setValignment('middle');\n\t\t\t \t});\n\t\t\t \t$sheet->cell('B'.$count,function($cell) use($arr_urban,$au){\n\t \t\t\t\t$cell->setValue($arr_urban[$au]['pri_count60']);\n\t\t\t \t\t$cell->setFontSize(12);\n\t\t\t \t\t$cell->setAlignment('left');\n\t\t\t \t\t$cell->setValignment('middle');\n\t\t\t \t});\n\t\t\t \t$sheet->cell('C'.$count,function($cell) use($arr_urban,$au){\n\t\t\t \t\t\n\t\t \t\t\t\t$cell->setValue($arr_urban[$au]['mid_count60']);\n\t\t\t \t\t$cell->setFontSize(12);\n\t\t\t \t\t$cell->setAlignment('left');\n\t\t\t \t\t$cell->setValignment('middle');\n\t\t\t \t});\n\t\t\t\t\t$sheet->cell('D'.$count,function($cell) use($arr_urban,$au){\n\t\t\t\t\t\n\t\t\t \t\t$cell->setValue($arr_urban[$au]['high_count60']);\n\t\t\t\t\t $cell->setFontSize(12);\n\t\t\t\t\t $cell->setAlignment('left');\n\t\t\t\t\t $cell->setValignment('middle');\n\t\t\t\t\t});\n\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t////////////// End Urban\n\t\t\t\t$sheet->setBorder('A1'.':D'.$sheet->getHighestRow(), 'thin');\t\t\n\t \t});\n\n\t\t\t})->download('xlsx');\n\t\t\t$err = \"There is no data.\";\n\t\t\tthrow new Exception($err);\n\t\t\t\n\t\t} catch (Exception $e) {\n\n\t\t\t$error = \"There is no data.\";\n\t\t\treturn view('teacher_report.teacher_ratio_township', compact('error'));\n\n\t\t}\n\t}", "public function show(admin $admin)\n {\n //\n }", "public function show(admin $admin)\n {\n //\n }", "public function show(admin $admin)\n {\n //\n }" ]
[ "0.7728036", "0.74841607", "0.74841607", "0.72357666", "0.71794105", "0.709", "0.68735594", "0.6842283", "0.6746036", "0.6742462", "0.6722227", "0.6649828", "0.6613865", "0.66065145", "0.65718937", "0.65639657", "0.6468862", "0.6450488", "0.64448464", "0.64448464", "0.64349073", "0.64299256", "0.6360958", "0.63534266", "0.63216925", "0.6319212", "0.62999153", "0.6277784", "0.6271508", "0.6271508", "0.6240538", "0.6236556", "0.6228798", "0.62263983", "0.62069243", "0.6176949", "0.61657286", "0.61365324", "0.6121167", "0.61142695", "0.61016375", "0.6058608", "0.60276824", "0.599972", "0.599972", "0.599972", "0.5993228", "0.5990008", "0.59652895", "0.59228396", "0.5908013", "0.5883827", "0.58792603", "0.5874193", "0.5867351", "0.5852917", "0.5842873", "0.5840073", "0.58399254", "0.58384544", "0.58361596", "0.5835999", "0.5821146", "0.58190495", "0.58166844", "0.58115184", "0.58066934", "0.58026564", "0.57955664", "0.57849574", "0.5784552", "0.5784064", "0.57653093", "0.5762553", "0.57464534", "0.57455677", "0.57433546", "0.5738333", "0.573731", "0.57317203", "0.57166576", "0.57154036", "0.57091975", "0.5708089", "0.5701134", "0.57001907", "0.56972194", "0.56961274", "0.5688991", "0.56880563", "0.5686946", "0.56865376", "0.5675763", "0.5670692", "0.5654576", "0.5652234", "0.5652234", "0.56521547", "0.5651733", "0.5651733", "0.5651733" ]
0.0
-1
////////////paginator datewise data show for seeing admin
public function paginator_dis_admin($pageStartFrom=0,$Limit=5){ $query = "SELECT d.district_cd,d.district_name,c.input_date,c.unit from (SELECT district_cd,input_date,unit from consume_details where input_date='".$this->input_date."' ) c right outer join district_info d on c.district_cd=d.district_cd ORDER BY `d`.`district_cd` ASC LIMIT ".$pageStartFrom."," . $Limit; $_allval = array(); $result = mysqli_query($this->conn, $query); //You can also use mysqli_fetch_object e.g: $row= mysqli_fetch_object($result) while ($row = mysqli_fetch_assoc($result)) { $_allval[] = $row; } return $_allval; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function adminIndex(){\r\n\t\t$data = $this->paginate('AdminBooking');\r\n\t\t$this->set(compact('data'));\r\n\t}", "function listAdvisers(){\n \n //setup for paging ---\n $per_page = ($this->input->get('result_per_page')? $this->input->get('result_per_page') : 200);\n\t$offset = ($this->input->get('offset')? $this->input->get('offset') : ''); \n \n if($this->isSuper != TRUE)//this is not a Super Adviser\n { \n echo('This function is for super advisers only.');\n exit;\n }\n \n $allAdvisers = $this->adviser_accessor->getAdvisersOfFirm($this->hisFirmID);\n \n $data['advisers'] = $allAdvisers ; \n \n $data['can_edit_roles']= $this->can_edit_roles;\n $data['is_super'] = $this->isSuper;\n\n $data['page_title'] = \"Advisers\";\n $data['page_header'] = \"Listing of Advisers for the firm - \" . $this->firmName ;\n \n $data['content_view'] = \"adviser/list_advisers\";\n $data['sidebar_view'] = \"adviser/adviser_sidebar\";\n\n $data['mod_js'] = $this->getModule_js();\n \n $this->breadcrumbs->push('Adviser', '/adviser/');\n\t$this->breadcrumbs->push('Advisers', '/');\n \n $this->template->callDefaultTemplate($data);\n \n }", "public function getPaginationDataSource();", "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 index()\n {\n $perpage = isset($_GET['perpage'])?$_GET['perpage']:5;\n $pertanyaan = Pertanyaan::orderBy('created_at', 'desc')->paginate($perpage);\n // $get = Pertanyaan::status();\n return view('pertanyaan.timeline', compact('pertanyaan','perpage'));\n }", "public function indexAction()\n {\n $currentDate = date('Y-m');\n\n return $this->pagerAction($currentDate);\n }", "public function index()\n {\n \n //$etudiants = Etudiant::paginate(1);\n $etudiants = Etudiant::All();\n return EtudiantResource::collection($etudiants); \n\n }", "public function actionIndex()\n {\n $query=\\Yii::$app->request->get(\"serach\");\n $obj=DataUser::find()->where(['!=','status','9']);\n\n if(@$query['email']){\n $obj=$obj->andwhere(['email'=>$query['email']]);\n }\n if(@$query['name']){\n $obj=$obj->andwhere(\"name like '%\".$query['name'].\"%'\");\n }\n if(@$query['last_date']){\n $obj=$obj->andwhere(['last_date'=>$query['last_date']]);\n }\n\n $totalCount = $obj->count();\n $pages = new Pagination(['totalCount' =>$totalCount, 'pageSize' => 20]);\n $data=$obj->orderBy(\"created desc\")->offset($pages->offset)->limit($pages->limit)->all();\n \n return $this->render('index', [\n 'data' => $data,'pages'=>$pages,'menu1'=>'pass','menu2'=>'dekaron'\n ]);\n }", "function admin_index() {\n\t\t$this->Event->recursive = 0;\n\t\t$this->set('events',$this->paginate());\n\t}", "public function index()\n {\n //if (\\Gate::allows('isAdmin') || \\Gate::allows('isAuthor')) {\n return Curso::latest()->paginate(5);\n //}\n }", "public function indexAction()\n {\n\n $this->view['get'] = $this->params()->fromQuery();\n \n\t\t$db = new Depoimentos($this->tb, $this->adapter);\n\t\t$this->view['result'] = $db->getFilter($this->view['get']['de'],$this->view['get']['ate'], array('ativo','inativo'));\n\n\t\t//echo '<pre>'; print_r($this->view['result']); exit;\n\t\t\n \t\t$page = $this->params()->fromQuery('page', 0);\n \t\t$paginator = new \\Zend\\Paginator\\Paginator( new \\Zend\\Paginator\\Adapter\\ArrayAdapter( $this->view['result'] ) );\n \t\t$paginator->setItemCountPerPage( 10 );\n \t\t$paginator->setCurrentPageNumber( $page );\n \t\t$this->view['result'] = $paginator;\n\t\t//view\n\t\t$view = new ViewModel($this->view);\n\t\treturn $view;\n }", "public function index()\n {\n return EtudiantCollection::collection(Etudiant::paginate(20)); \n }", "public function index()\n {\n $dates=Date::all();\n return view('admin/date/index',compact('dates'));\n }", "public function index()\n {\n //$lim = 5;\n /*\n $vars = [\n \"customers\" => CustomerResource::collection(Customer::all()),\n \"transactions\" => TransactionResource::collection(Transaction::paginate(5)),\n \"search\" => \"\"\n ];\n return $vars;\n */\n $transactions = Transaction::orderBy('updated_at', 'desc')->paginate(5);\n $t = TransactionResource::collection($transactions);\n return $t; \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 index()\n {\n return koperasi::with('get_user','get_user_pinjam')->latest()->paginate(5);\n }", "public function lists()\t{\n\t\tCheckAdminLoginSession();\n\t\t$per_page = 20;\n if($this->uri->segment(4)){\n \t$page = ($this->uri->segment(4)) ;\n }\n else {\n \t$page = 1;\n }\n $start = ($page-1)*$per_page;\n $limit = $per_page;\n $totalCount = $this->admin_model->totalRecord($this->policy_duration);\n\t\t$data[\"dataCollection\"] = $this->admin_model->getDataCollection($this->policy_duration,$limit,$start);\n $totalResult = count($data['dataCollection']);\n\t\t$data[\"pagination\"] = Jpagination($totalCount,$limit,$start);\n\t\t$url = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on' ? \"https\" : \"http\") . \"://{$_SERVER['HTTP_HOST']}{$_SERVER['REQUEST_URI']}\";\n\t\t$explodedURL = parse_url($url);\n\t\t$data[\"current_link\"] = $explodedURL['scheme'].'://'.$explodedURL['host'].$explodedURL['path'];\n\t\t$this->load->view('admin/include/head');\n\t\t$this->load->view('admin/include/header');\n\t\t$this->load->view('admin/include/sidebar');\n\t\t$this->load->view('admin/policy_duration/list',$data);\n\t\t$this->load->view('admin/include/footer');\n\t\t$this->load->view('admin/include/foot');\n\t}", "public function index()\n {\n return Developer::latest()->paginate(10);\n }", "public function index()\n {\n //return view('admin.user.editUser');\n //return 11111;\n \n $list = DB::table('zd')->orderBy('ctime','desc')->paginate(5);\n \n \n \n return view('admin.money.zd',['list'=>$list]);\n }", "function index()\n {\n $login_user = sess('user_id'); \n //$this->model->readAll(\"where completed_id = 2 AND maintenance.technician_id = $login_user order by maintenance_date DESC Limit 40\");\n $this->model->readAll(\"where maintenance.technician_id = $login_user order by yearmonth DESC ,maintenance_date DESC Limit 100\"); \n $this->view->render('maintenanceTable');\n }", "public function actionIndex()\n {\n $role = Yii::$app->user->identity->roleName();\n\n if ($role == \"Super Admin\" || $role == \"Ketua Umum\" || $role == \"Sekertaris Umum\") {\n $dataProvider = new ActiveDataProvider([\n 'query' => ActivityDaily::find(),\n ]);\n } elseif ($role == \"Sekretariat\") {\n $dataProvider = new ActiveDataProvider([\n 'query' => ActivityDaily::find()->where(['role'=>4])->andWhere(['chief_status'=>1])->andWhere(['department_status'=>1]),\n ]);\n } elseif ($role == \"Seksi\") {\n $atasan = Yii::$app->user->identity->section->id_depart;\n $dataProvider = new ActiveDataProvider([\n 'query' => ActivityDaily::find()\n ->joinWith('activityDailyBudgetSections')\n ->joinWith('activityDailyBudgetSections.sectionBudget')\n ->joinWith('activityDailyBudgetSections.sectionBudget.section')\n ->where(['activity_daily.role'=>8])\n ->andWhere(['section.id_depart'=>$atasan]),\n ]);\n } elseif ($role == \"Bendahara\") {\n $dataProvider = new ActiveDataProvider([\n 'query' => ActivityDaily::find(),\n ]);\n }\n\n return $this->render('index', [\n 'dataProvider' => $dataProvider,\n ]);\n }", "function pagination(){}", "public function actionIndex()\n { \n $query = Admin::find()->where('a_id != 1');\n $page = new Pagination([\n 'totalCount' => $query->count(),\n 'defaultPageSize' => 5,\n ]);\n $admin = $query->limit($page->limit)->offset($page->offset)->asArray()->all();\n return $this->render('index', ['admin'=>$admin,'page'=>$page]);\n }", "public function paginate()\n {\n }", "public function index()\n {\n //\n return \\App\\Article::orderBy('created_at','desc')->paginate(25);\n }", "public function admin_view(){\n\n\n\t\t$dt = new DateTime('now', new DateTimezone('Asia/Dhaka'));\n $today = $dt->format('Y-m-d');\n\t\t////////////////////////// Morning ///////////////////////////////////\n\t\t$morning = array();\n $morning_shift_members_query = \t\"SELECT shift_member \n\t\t\t\t\t\t\t\t\tFROM `daytable` \n\t\t\t\t\t\t\t\t\tJOIN shifttable ON shifttable.shift_id = daytable.shift_id \n\t\t\t\t\t\t\t\t\tWHERE shifttable.shift_date = '\".$today.\"'\";\n\n\t\t$morning_shift_members = \\DB::select(\\DB::raw($morning_shift_members_query));\n\n\t\t$morning_person = \"\";\n\n\t\tforeach ($morning_shift_members as $row) {\n\t\t\t$morning_person .= $row->shift_member.\",\";\n\t\t}\n\n\t\t$morning_person = rtrim($morning_person,\",\");\n\t\t$morning = explode(\",\",$morning_person);\n\t\t$morning_person = \"\";\n\t\tforeach ($morning as $person) {\n\t\t\t$morning_person .= \"'\".$person.\"',\";\n\t\t}\n\t\t$morning_person = rtrim($morning_person,\",\");\n\n\t\t$morning_shift_address_query = \"SELECT * FROM rosterdb.emp_address_table WHERE emp_id IN ($morning_person)\";\n\t\t$morning_address = \\DB::select(\\DB::raw($morning_shift_address_query));\n\t\t////////////////////////////////////////////////////////////////////////\n\n\n\t\t////////////////////////// Evening ///////////////////////////////////\n\t\t$evening = array();\n\n $evening_shift_members_query = \t\"SELECT shift_member \n\t\t\t\t\t\t\t\t\tFROM `eveningtable` \n\t\t\t\t\t\t\t\t\tJOIN shifttable ON shifttable.shift_id = eveningtable.shift_id \n\t\t\t\t\t\t\t\t\tWHERE shifttable.shift_date = '\".$today.\"'\";\n\n\t\t$evening_shift_members = \\DB::select(\\DB::raw($evening_shift_members_query));\n\n\t\t$evening_person = \"\";\n\n\t\tforeach ($evening_shift_members as $row) {\n\t\t\t$evening_person .= $row->shift_member.\",\";\n\t\t}\n\n\t\t$evening_person = rtrim($evening_person,\",\");\n\t\t$evening = explode(\",\",$evening_person);\n\t\t$evening_person = \"\";\n\t\tforeach ($evening as $person) {\n\t\t\t$evening_person .= \"'\".$person.\"',\";\n\t\t}\n\t\t$evening_person = rtrim($evening_person,\",\");\n\n\t\t$evening_shift_address_query = \"SELECT * FROM rosterdb.emp_address_table WHERE emp_id IN ($evening_person)\";\n\t\t$evening_address = \\DB::select(\\DB::raw($evening_shift_address_query));\n\t\t////////////////////////////////////////////////////////////////////////\n\n\n\t\t////////////////////////// Night ///////////////////////////////////\n\t\t$night = array();\n\n $night_shift_members_query = \"SELECT shift_member \n\t\t\t\t\t\t\t\t\tFROM `nighttable` \n\t\t\t\t\t\t\t\t\tJOIN shifttable ON shifttable.shift_id = nighttable.shift_id \n\t\t\t\t\t\t\t\t\tWHERE shifttable.shift_date = '\".$today.\"'\";\n\n\t\t$night_shift_members = \\DB::select(\\DB::raw($night_shift_members_query));\n\n\t\t$night_person = \"\";\n\n\t\tforeach ($night_shift_members as $row) {\n\t\t\t$night_person .= $row->shift_member.\",\";\n\t\t}\n\n\t\t$night_person = rtrim($night_person,\",\");\n\t\t$night = explode(\",\",$night_person);\n\t\t$night_person = \"\";\n\t\tforeach ($night as $person) {\n\t\t\t$night_person .= \"'\".$person.\"',\";\n\t\t}\n\t\t$night_person = rtrim($night_person,\",\");\n\n\t\t$night_shift_address_query = \"SELECT * FROM rosterdb.emp_address_table WHERE emp_id IN ($night_person)\";\n\t\t$night_address = \\DB::select(\\DB::raw($night_shift_address_query));\n\t\t////////////////////////////////////////////////////////////////////////\n\t\t\n\t\t// print_r($morning_address);\n\t\t// echo \"<br>\";\n\t\t// echo \"<br>\";\n\t\t// print_r($evening_address);\n\t\t// echo \"<br>\";\n\t\t// echo \"<br>\";\n\t\t// print_r($night_address);\n\n\n\n\n\t\t// return \"\";\n\n\n\n\n\n\n\n\n\n\n\t\t// $morning_shift_query = \"SELECT daytable.*,emp_address_table.*\n\t\t// \t\t\t\t\t\tFROM `daytable` \n\t\t// \t\t\t\t\t\tJOIN shifttable ON shifttable.shift_id = daytable.shift_id\n\t\t// \t\t\t\t\t\tJOIN emp_address_table ON daytable.shift_member = emp_address_table.emp_id\n\t\t// \t\t\t\t\t\tWHERE shifttable.shift_date = '\".$today.\"'\";\n\n\t\t// echo $morning_shift_query;\n\t\t// dd(\"Stop\");\t\t\t\t\t\t\t\n\n\t\t// $evening_shift_query = \"SELECT eveningtable.*,emp_address_table.*\n\t\t// \t\t\t\t\t\tFROM `eveningtable` \n\t\t// \t\t\t\t\t\tJOIN shifttable ON shifttable.shift_id = eveningtable.shift_id\n\t\t// \t\t\t\t\t\tJOIN emp_address_table ON eveningtable.shift_member = emp_address_table.emp_id\n\t\t// \t\t\t\t\t\tWHERE shifttable.shift_date = '\".$today.\"'\";\n\n\n\t\t// $night_shift_query = \t\"SELECT nighttable.*,emp_address_table.*\n\t\t// \t\t\t\t\t\tFROM `nighttable` \n\t\t// \t\t\t\t\t\tJOIN shifttable ON shifttable.shift_id = nighttable.shift_id\n\t\t// \t\t\t\t\t\tJOIN emp_address_table ON nighttable.shift_member = emp_address_table.emp_id\n\t\t// \t\t\t\t\t\tWHERE shifttable.shift_date = '\".$today.\"'\";\n\n\t\t// $morning = \\DB::select(\\DB::raw($morning_shift_query));\n\t\t// $evening = \\DB::select(\\DB::raw($evening_shift_query));\n\t\t// $night = \\DB::select(\\DB::raw($night_shift_query));\n\t\t\t\t\t\t\t\t\n\n\t\treturn view('admin_view.view_roster',compact('morning_address','evening_address','night_address','today'));\n\t}", "public function index()\n { \n return User::latest()->paginate(12);\n }", "public function index()\n {\n $domainMetaData = DomainMetaData::paginate(10);\n return $this->response->paginator($domainMetaData,new DomainMetaDataTransformer());\n }", "public function index()\n {\n return Attendace::paginate(500);\n }", "public function index()\n {\n $data = ShopEmployeeLoginTimeEntry::with('ShopEmployeeEntry')->orderBy('employeeLoginTimeId','desc')->get();\n return ['showData' => $data];\n\n }", "public function index()\n {\n $datas = Penerbit::orderBy('created_at','decs')->paginate(10);\n\t\treturn view('admin.penerbit.table',compact('datas'));\n }", "function list_data($start_date=false,$end_date=false) {\n if(!$start_date)\n $start_date = date(\"Y-m\").'-01';\n if(!$end_date)\n $end_date = date(\"Y-m-d\");\n\n $list_data = $this->Sales_Invoices_model->get_details(array('start_date' => $start_date,'end_date' => $end_date))->result();\n $result = array();\n foreach ($list_data as $data) {\n $result[] = $this->_make_row($data);\n }\n echo json_encode(array(\"data\" => $result));\n }", "public function cal_indexAction()\n {\n $startDate = date(\"Y-m-d\") ;\n $endDate = date(\"Y-m-d\", mktime(0,0,0,date(\"m\"),date(\"d\"),date(\"Y\")+1));\n $em = $this->getDoctrine()->getManager();\n $dql1 = \"SELECT c.title,c.date,c.time,c.description FROM EnglishCalendarBundle:Calendar c WHERE c.date >= ?1 and c.date < ?2 ORDER BY c.date ASC\";\n $calendar = $em->createQuery($dql1)->setParameter('1',$startDate)->setParameter('2',$endDate)->getResult();\n return $this->render('EnglishHomeBundle:Default:cal_index.html.twig', array('calendar' => $calendar,));\n\n }", "public function actionIndex()\n {\n $searchModel = new LoanSearch();\n $dataProvider = $searchModel->search(Yii::$app->request->queryParams); \n $query_Belum_di_approve = \\common\\models\\Loan::find()->where(['start_date'=>\"0000-00-00\",'due_date'=>Null]); \n $belum_di_Approve = new \\yii\\data\\ActiveDataProvider(\n [\n 'query'=>$query_Belum_di_approve,\n 'pagination'=>['pageSize'=>10]\n ] \n );\n $time = date(\"Y-m-d\");\n $loan = \\common\\models\\Loan::find()->where(['datediff(\"'.$time.'\",due_date) <' =>'0','return_date'=>Null]);\n $loan_count = \\common\\models\\Loan::find()->where(['datediff(\"'.$time.'\",due_date) <' =>'0','return_date'=>Null]);\n $belum_jatuh_Tempo = new \\yii\\data\\ActiveDataProvider(\n [ \n 'query'=> $loan,\n 'pagination'=>['pageSize'=>10]\n ] \n ); \n $sudah = \\common\\models\\Loan::find()->where(['datediff(\"'.$time.'\",due_date) >' =>'0','return_date'=>Null])->orderBy('start_date');\n $sudah_jatuh_Tempo = new \\yii\\data\\ActiveDataProvider(\n [ \n 'query'=> $sudah,\n 'pagination'=>['pageSize'=>10]\n ] \n );\n \n return $this->render('index', [\n 'searchModel' => $searchModel,\n 'dataProvider' => $dataProvider,\n 'belum_di_Approve'=>$belum_di_Approve,\n 'belum_jatuh_tempo'=>$belum_jatuh_Tempo,\n 'sudah_jatuh_tempo'=>$sudah_jatuh_Tempo,\n ]);\n }", "public function index()\n {\n $today = Carbon::now()->format('Y-m-d').'%';\n $auth_man=1;\n $list=CalendarModel::with('patient')->where('start', 'like', $today)->where('user_id',auth()->id())\n ->where('status','active')->orderBy('id','desc')->get();\n $all = CalendarModel::all();\n return view('calendar.index',compact('list','auth_man','all'));\n }", "public function index()\n\t{\n\t\t// $invoices = auth()->user()->invoices->groupBy(function($query) {\n // return Carbon::parse($query->issue_date)->format('F');\n // });\n\n\t\treturn view('pages.panel');\n\t}", "public function index()\n {\n $this->data->setDate(date('d-M-y'));\n $this->callView();\n\n }", "public function index()\n {\n $users = User::orderBy('id', 'desc')->paginate($this->perPage);\n \n //$status = $this->articlePost->where(['base_id'=>15])->first()->open_date;\n \n return view('dashboard.user.index', ['users'=>$users]);\n }", "public function index()\n {\n return tahunAjaran::latest()->paginate(5);\n }", "public function index()\n {\n $data = $this->repository->getAllOrderedByDate();\n return $data;\n }", "public function index()\n {\n $data=[];\n $data['roles']=Role::all();\n $data['admins']=Admin::with('roles')->paginate(10);\n return $data;\n\n\n\n \n }", "public function getPaginated();", "public function index()\n {\n $supermasters = SuperMaster::paginate(10);\n return $this->response->paginator($supermasters,new SuperMasterTransformer());\n }", "public function getPaginate(){ }", "public function index()\n {\n\n $data = $this->analytic;\n // Search By Age\n if(($this->request->has('age') && !empty($this->request->age)) && ( $this->request->has('operator') && !empty($this->request->operator)) ){\n $data = $data->where('age', $this->request->operator ,$this->request->age);\n }\n // Search By Gender\n if($this->request->has('gender') && !empty($this->request->gender)) $data = $data->orWhere('gender', $this->request->gender);\n // Search By City\n if($this->request->has('city') && !empty($this->request->city))$data = $data->orWhere('city', 'LIKE', '%'.$this->request->city.'%');\n\n // Search Between Date\n if(($this->request->has('date1') && !empty($this->request->date1)) && ( $this->request->has('date2') && !empty($this->request->date2)) ){\n $data = $data->whereBetween('created_at', [$this->request->date1, $this->request->date2]);\n }\n\n return view('analytic.index')->with([\n \"data\" => $data->paginate(5)\n ]);\n }", "public function admin_index() {\n $this->paginate = array(\n 'limit' => 10,\n 'order' => array(\n 'User.username' => 'asc',\n ) ,\n 'conditions' => array(\n 'User.status' => 1,\n ),\n );\n $users = $this->paginate('User');\n $this->set(compact('users'));\n }", "public function index()\n { $eventuser=[];\n $events=Event::all()->sortBy('startDate');\n foreach($events as $event){\n $eventuser[]= ['user'=> $event->user,'event'=>$event ];\n \n }\n return ['data' => $eventuser];\n }", "public function index() {\n $totaluser = User::count();\n $penulis = User::where('post_count','>',0)->orderBy('post_count','DESC')->orderBy('username')->paginate(25, ['*']);\n $partner = User::where('role','partner')->orderBy('role','ASC')->orderBy('username','ASC')->paginate(25, ['*']);\n $premium = User::where('role','premium')->orderBy('role','ASC')->orderBy('username','ASC')->paginate(25, ['*']);\n $admin = User::where('role','admin')->orWhere('role','editor')->orderBy('role','ASC')->orderBy('username','ASC')->paginate(25, ['*'], 'adminpage');\n\n return view('admin.users.index_dt', compact('totaluser','penulis','admin','partner','premium'));\n }", "public function index()\n {\n return LeadResource::collection(\n auth()->user()\n ->tbl_leads()\n ->with(\n 'users',\n 'tbl_accounts',\n 'tbl_leadsource',\n 'tbl_leadstatus',\n 'tbl_industrytypes',\n 'tbl_leadsource',\n 'tbl_leadstatus',\n 'tbl_industrytypes',\n 'tbl_countries',\n 'tbl_states')\n ->latest()\n ->paginate(15));\n }", "function get_paged_list_approved_all($limit = 8, $offset = 0)\n\t{\n\t\t//$date1 = $dt->format('H:i:s');// exit;\n\t\t//echo $date1;//exit;\n\t\t$date = date('Y-m-d');\n\t\t//echo $date;\n\t\t//if($date1 == '00:00:01' && isset($date))\n\t\t//{\n\t\t\t$date2 = date('Y-m-d');\t\n\t\t\t//echo $date2;exit;\n\t\t\t$this->db->select(\"*\");\n\t\t\t$this->db->from('tbl_jobs');\n\t\t\t$this->db->order_by('jid','asc');\n\t\t\t\n\t\t\t$this->db->where('status', 'approved');\n\t\t\t//$this->db->where('start_date >=', $date);\n\t\t\t$this->db->where('start_date', $date);\n\t\t\t$this->db->or_where('start_date <', $date);\n\t\t\t\n\t\t\t$query = $this->db->get();\n\t\t\t//echo $this->db->last_query();exit;\n\t\t\tif($query->num_rows() > 0) \n\t\t\t{\n\t\t\t\treturn $query->result_array();\n\t\t\t}\t\n\t\t\t\t//echo $this->db->last_query();exit;\n\t\t\n\t\t//}else{\n\t\t\t/*$date2 = date('Y-m-d');\t\n\t\t\t$this->db->select(\"*\");\n\t\t\t$this->db->from('tbl_jobs');\n\t\t\t$this->db->order_by('jid','asc');\n\t\t\t\n\t\t\t$this->db->where('status', 'approved');\n\t\t\t$this->db->where('start_date >=', $date2);\n\t\t\t\n\t\t\t$query = $this->db->get();\n\t\t\t//echo $this->db->last_query();exit;\n\t\t\tif($query->num_rows() > 0) \n\t\t\t{\n\t\t\t\treturn $query->result_array();\n\t\t\t}\t\t*/\n\t\t\t\n\t\t//}\n\t}", "public function showData()\n {\n $students=DB::table('student')->paginate(3);\n\n // 2)Customizing Pagination URLs\n // $students->withPath('/cs/students');\n\n // 3)Retrieve Data With SimplePagination\n // $students=DB::table('student')->simplePaginate(3);\n\n\n\n return view('student', ['students'=>$students]);\n }", "public function actionIndex()\n {\n\n $query = Daodien::find();\n $pagination = new Pagination([\n 'defaultPageSize' => 5,\n 'totalCount' => $query->count(),\n ]);\n $listDaoDien = $query->orderBy(['created_at' => SORT_DESC])\n ->offset($pagination->offset)\n ->limit($pagination->limit)->all();\n $data = ObjDaoDien::getListObject($listDaoDien);\n return $this->render('index',[\n 'listDaoDien' => $data,\n 'pagination' => $pagination]);\n }", "public function index()\n {\n return Bien::paginate(3);\n }", "public function index()\n {\n Gate::authorize('haveaccess','periodos.index');\n $periodo = Periodo::all(); \n $periodo = Periodo::paginate(7);\n return view('admin.periodo.index', compact('periodo'));\n }", "public function index()\n {\n $doc_timeslot = Doctor_timeslot::paginate(5);\n return response(array(\n 'error' => true,\n 'patient_presciption' =>$doc_timeslot->toArray(),\n ),200);\n }", "public function admin_index() {\n\t\t$this->layout=\"admindefault\";\n\t\t$this->adminsessionchecked();\n\t\t$this->User->recursive = 0;\n\t\t$this->Paginator->settings=array(\n\t\t\t'conditions'=>array(\n\t\t\t\t'User.is_deleted'=>'0'\n\t\t\t)\n\t\t);\n\t\t$this->set('users', $this->Paginator->paginate());\n\t\t//$this->set('allowedimage',$this->allowedimageType);\n\t}", "public function index()\n {\n return view('result', ['adverts'=>Advert::with('modification.model.mark')\n ->orderBy('created_at', 'DESC')\n ->simplePaginate(5)]);\n }", "public function index()\n {\n //根据id查询,角色名查询,描述查询\n return $this->response()->paginator($this->repository->paginate(),new CommonTransformer());\n }", "public function index()\n {\n return User::latest()->paginate(10) ;\n }", "public function index()\n {\n $this->data['model'] = MailTracking::orderBy('Mtr_CreatedOn', 'desc')->paginate(10);\n\n return parent::index();\n }", "public function index()\n {\n $me=Carbon::now()->format('m');\n $anu=Carbon::now()->format('Y');\n \n $conceptos=Concepto::orderBy('id','DESC')->paginate(5);\n $egre=Egreso::where('estado','Activo')->sum('monto_total');\n $mes=Egreso::where('estado','Activo')->whereMonth('fecha', $me)->sum('monto_total') ; \n $anual=Egreso::where('estado','Activo')->whereYear ('fecha', $anu)->sum('monto_total') ;\n $egresos=Egreso::orderBy('id','DESC')->paginate(5);\n $usuarios=Usuario::All();\n return view('egresos.index',compact('conceptos', 'egresos','usuarios', 'egre','mes','anual') ); \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 }", "public function admin_index()\n {\n $this->Redirect->urlToNamed();\n\n // Sets Search Parameters\n $conditions = $this->getSearchConditions(array(\n array('model' => $this->modelClass, 'field' => \"name\", 'type' => 'string', 'view_field' => 'name'),\n ));\n \n $this->paginate[\"limit\"] = 20;\n $records = $this->paginate($this->modelClass, $conditions);\n \n //setting variables\n $this->set(compact('records')); \n }", "public function index()\n {\n $events = Event::whereDate('date_end','>',date('Y-m-d H:i:s'))->where('public', '1')->orderBy('date_start')->limit(10)->get();\n return view('dashboard', compact('events'));\n }", "public function index()\n {\n $employer = Employer::findOrFail(21);\n $jobs = $employer->jobs()->where('begin_date','<',Carbon::now())->get();\n return $this->showAll(Employer::all());\n }", "public function index()\n {\n $year=year::orderBy('created_at','desc')->paginate(6);\n return view('admin.settings.year')->with('year', $year);\n\n }", "public function showLedgerBalances(){\n// \n $date=\\date(\"t/m/Y\");\n $account= AccountModel::where('ACTION', 0)->where('TRANSFERED',1)->where('PERIOD',$date)->with('parent_account')->paginate(2);\n \n \n return view(\"dashboard.dashboard\")->with('data',$account);\n \n\n }", "public function index()\n {\n return AtributoValorResource::collection(AtributoValor::paginate(25));\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 }", "public function actionIndex(){\n\n if (Yii::app()->user->getState('roles') == '5') \n { \n $this->layout='//layouts/column1';\n }\n \n $criteria=new CDbCriteria();\n $criteria->order='id_reporte DESC';\n $count=Reportes::model()->count($criteria);\n \n\n\n \n //Le pasamos el total de registros de la tabla\n $pages=new CPagination($count);\n \n // Resultados por página\n $pages->pageSize=13;\n \n $pages->applyLimit($criteria);\n $getUsuarios=Reportes::model()->findAll($criteria);\n \n $this->render('index',array(\n \"usuarios\"=>$getUsuarios,\n \"pages\"=>$pages\n ));\n}", "public function admin_get_deals_of_member_paged($member_id,$num_to_fetch,$start_offset,&$data_arr,&$data_count){\n\t\tdie(\"UPDATE THIS, see front_get_deals_of_member_paged\");\n global $g_mc;\n $q = \"SELECT t.date_of_deal,t.id as deal_id, t.deal_cat_name,t.deal_subcat1_name,t.deal_subcat2_name, t.value_in_billion, pm.designation,pm.partner_id,firm.name AS firm_name, c.name AS deal_company_name,c.logo,c.company_id as deal_company_id FROM \".TP.\"transaction_partner_members AS pm LEFT JOIN \".TP.\"transaction AS t ON ( pm.transaction_id = t.id ) LEFT JOIN \".TP.\"company AS firm ON ( pm.partner_id = firm.company_id ) LEFT JOIN \".TP.\"company AS c ON ( t.company_id = c.company_id ) WHERE member_id = '\".$member_id.\"' ORDER BY t.date_of_deal DESC LIMIT \".$start_offset.\" , \".$num_to_fetch;\n \n $res = mysql_query($q);\n if(!$res){\n return false;\n }\n /////////////////////////\n $data_count = mysql_num_rows($res);\n if(0 == $data_count){\n //no deals done by this member\n return true;\n }\n ///////////////////////////\n for($i=0;$i<$data_count;$i++){\n $data_arr[$i] = mysql_fetch_assoc($res);\n $data_arr[$i]['firm_name'] = $g_mc->db_to_view($data_arr[$i]['firm_name']);\n $data_arr[$i]['deal_company_name'] = $g_mc->db_to_view($data_arr[$i]['deal_company_name']);\n if(($data_arr[$i]['deal_subcat1_name']!=\"\")&&($data_arr[$i]['deal_subcat1_name']!=\"n/a\")){\n if($data_arr[$i]['deal_subcat1_name']!=$data_arr[$i]['deal_cat_name']){\n $data_arr[$i]['deal_cat_name'].=\", \".$data_arr[$i]['deal_subcat1_name'];\n }\n }\n if(($data_arr[$i]['deal_subcat2_name']!=\"\")&&($data_arr[$i]['deal_subcat2_name']!=\"n/a\")){\n $data_arr[$i]['deal_cat_name'].=\", \".$data_arr[$i]['deal_subcat2_name'];\n }\n }\n return true;\n }", "public function index()\n {\n return AcResource::collection(Ac::latest()->paginate()); //\n }", "function index_sede()\n\t{\n\t\t$this->paginate = array('limit'=>20, 'order' => array('nombre_sede' => 'asc'));\n\t\t$this->set('sede',$this->paginate('Sede'));\n\t}", "public function index()\n {\n return new PacienteIngresadoResourceCollection(PacienteIngresado::paginate(10));\n }", "public function index()\n {\n $this->paginate = [\n 'limit' => 15,\n 'order' => [\n 'Orders.Created' => 'Desc'\n ]\n ];\n\n $query = $this->Orders->find('all')\n ->where(['User_IdUser = ' => $this->Auth->user('idUser')]);\n $query = $this->paginate($query);\n $this->set('orders',$query);\n }", "public function lists()\t{\n\t\tCheckAdminLoginSession();\n\t\t$per_page = 20;\n if($this->uri->segment(4)){\n \t$page = ($this->uri->segment(4)) ;\n }\n else {\n \t$page = 1;\n }\n $start = ($page-1)*$per_page;\n $limit = $per_page;\n $totalCount = $this->admin_model->totalRecord($this->optional_warranty);\n\t\t$data[\"dataCollection\"] = $this->admin_model->getDataCollection($this->optional_warranty,$limit,$start);\n $totalResult = count($data['dataCollection']);\n\t\t$data[\"pagination\"] = Jpagination($totalCount,$limit,$start);\n\t\t$this->load->view('admin/include/head');\n\t\t$this->load->view('admin/include/header');\n\t\t$this->load->view('admin/include/sidebar');\n\t\t$this->load->view('admin/optional_warranty/list',$data);\n\t\t$this->load->view('admin/include/footer');\n\t\t$this->load->view('admin/include/foot');\n\t}", "public function admin_index($range = 0) {\n\n $this->checkAccess('Report', 'can_view');\n $this->loadModel(\"Order\");\n $this->layout = 'admin';\n $limit = DEFAULT_PAGE_SIZE;\n $order = 'order_no ASC';\n $conditions = array();\n\n if ($this->Session->check('page_size')) {\n $limit = $this->Session->read('page_size');\n }\n\n $conditions = array('Order.is_completed' => 'Y');\n $is_super_admin = $this->Session->read('Admin.is_super_admin');\n if ('Y' <> $is_super_admin) {\n $conditions['Order.is_hide'] = 'N';\n $conditions['Order.cashier_id'] = $this->Session->read('Admin.id');\n }\n\n $year = @$this->params->query['year'] ? @$this->params->query['year'] : date(\"Y\");\n $month = @$this->params->query['year'] ? @$this->params->query['date'] : date(\"Y-m\");\n $date = @$this->params->query['date'] ? @$this->params->query['date'] : date(\"Y-m-d\");\n $cashier = @$this->params->query['cashier'];\n\n //Modified by Yishou Liao @ Dec 07 2016\n switch ($range) {\n case 0:\n $conditions['Order.created like '] = \"%$date%\";\n break;\n case 1:\n $conditions['Order.created like '] = \"%$month%\";\n break;\n case 2:\n $conditions['Order.created like '] = \"%$year%\";\n break;\n };\n //End @ Dec 07 2016\n\n if ($cashier)\n $conditions['Order.counter_id'] = $cashier;\n\n $query = array(\n 'conditions' => $conditions,\n );\n \n if ('all' == $limit) {\n $records = $this->Order->find('all', $query);\n } else {\n $query['limit'] = $limit;\n $this->paginate = $query;\n $records = $this->paginate('Order');\n };\n\n //Modified by Yishou Liao @ Dec 07 2016\n $query = array(\n 'conditions' => $conditions,\n 'fields' => array(\n 'sum(Order.change) as change_total', 'sum(Order.card_val) as card_val', 'sum(Order.cash_val) as cash_val', 'sum(Order.subtotal) as subtotal', 'sum(Order.tax_amount) as tax_amount', 'sum(Order.total) as total', 'DATE_FORMAT(Order.created, \"%m\") as month'\n )//,\n //'recursive' => -1\n );\n\n //Modified by Yishou Liao @ Dec 07 2016\n switch ($range) {\n case 0:\n $query['group'] = 'DATE_FORMAT(Order.created, \"%Y-%m-%d\")';\n break;\n case 1:\n $query['group'] = 'DATE_FORMAT(Order.created, \"%Y-%m\")';\n break;\n case 2:\n $query['group'] = 'DATE_FORMAT(Order.created, \"%Y\")';\n break;\n };\n //End @ Dec 07 2016\n\n // modified by Yu Dec 13, 2016\n $this->set('range', $range);\n\n $records_summaies = $this->Order->find('all', $query);\n //End @ Dec 07 2016\n // get all cashiers list \n $this->loadModel('Cashier');\n $conditions = [];\n if ($is_super_admin <> 'Y')\n $conditions = array('restaurant_id' => $this->Session->read('Admin.id'));\n\n $cashiers = $this->Cashier->find('list', array('fields' => array('Cashier.id', 'Cashier.firstname'), 'conditions' => $conditions, 'order' => array('Cashier.firstname' => 'ASC')));\n $this->set(compact('records', 'records_summaies', 'limit', 'is_super_admin', 'cashier', 'cashiers', 'range'));\n }", "public function index()\n {\n return $this->response->paginator(User::paginate(10), new UserTransformer());\n }", "public function index()\n {\n return $this->paginate();\n }", "public function index()\n {\n\t\t$data\t\t\t= Mpesawat::paginate(10);\n return view('admin.pesawat.index',compact('data'));\n }", "public function index()\n {\n //$personales = Tb_personal::latest()->paginate(4);\n\t\t//$personales = Tb_personalController::latest();\n\t\t$personales = Tb_personal::all();\n\t\t\n return view('usuario.listausuario',compact('personales'));\n //->with('i', (request()->input('page', 1) - 1) * 5);\n }", "public function indexAction() {\n\n //GET NAVIGATION\n $this->view->navigation = $navigation = Engine_Api::_()->getApi('menus', 'core')->getNavigation('sitepagemember_admin_main', array(), 'sitepagemember_admin_widget_settings');\n \n //FORM GENERATION\n $this->view->formFilter = $formFilter = new Sitepagemember_Form_Admin_Manage_Filter();\n\n $page = $this->_getParam('page', 1);\n\n $values = array();\n\n if ($formFilter->isValid($this->_getAllParams())) {\n $values = $formFilter->getValues();\n }\n\n $values = array_merge( array('order' => 'start_date', 'order_direction' => 'DESC'), $values );\n\n $this->view->assign($values);\n $this->view->memberOfDaysList = $memberOfDay = Engine_Api::_()->getDbtable('itemofthedays', 'sitepage')->getItemOfDayList($values, 'user_id', 'user');\n\n $memberOfDay->setItemCountPerPage(50);\n $memberOfDay->setCurrentPageNumber($page);\n\n }", "public function fetchAllPaginated() {\r\n \r\n // Create a Paginator for the blog posts query\r\n \r\n $paginator = Zend_Paginator::factory($this->select());\r\n \r\n // $select = $db->select()->from('posts')->sort('date_created DESC');\r\n \r\n // Create a Paginator for the blog posts query\r\n \r\n \r\n return $paginator; \r\n \r\n }", "public function index(NewsDatatable $news)\n {\n $news_all = News::orderBy('created_at','DESC')->paginate(6);\n // News::orderBy('id', 'desc');\n\n\n return $news->render('back.news.index',['title'=>trans('admin.news'),'news_all'=>$news_all]);\n }", "public function index_ahkam(Request $request){\n \n $ahkam = Ahkam::with('authorizedUsers')->take(100);\n \n if ($request->end_date && $request->start_date) { \n $start_date = Helper::hejri_to_gr($request->start_date); \n $end_date = Helper::hejri_to_gr($request->end_date);\n\n $ahkam = Ahkam::where('date_of_archiving', '>=', $start_date );\n $ahkam = $ahkam->where('date_of_archiving', '<=',$end_date); \n }\n\n if ($request->start_date && !$request->end_date) { \n if($request->start_date == Helper::current_year_full()){\n $ahkam = Ahkam::whereYear('date_of_archiving', '=', date('Y'));\n }\n }\n \n $ahkam = $ahkam->get()->sortByDesc('id'); \n\n return view('Ahkam.panel_ahkam', compact('ahkam'));\n\n \n \n }", "public function index()\n {\n return Asignatura::get();\n //$datos['asignaturas']= Asignatura::paginate(15);\n //return view('asignatura.index',$datos);\n }", "public function showData()\n {\n // $all_students = Crud::latest() ->get(); //It will show latest data as descending order\n\n $all_students = Crud::all(); // it will show all data as ascending order\n return view('crud.all',[\n 'students' =>$all_students,\n ]);\n }", "public function index()\n {\n return $this->paginator($this->collator());\n }", "public function index()\n {\n\n\n $employes = Employe::with('position', 'department')\n // ->where('id_positione','!=',$positionHeadDepartament->id)\n ->orderBy('full_name')\n ->paginate(10);\n\n return EmployeResource::collection($employes);\n }", "public function index()\n\t{\n\t\t return view('Citas/index_date');\n\t}", "public function index()\n {\n $data=Admin::where(\"super_admin\",0)->paginate(10);\n\n return view('admin.admins.index',['items'=>$data]);\n }", "public function index()\n {\n\n Gate::authorize('haveaccess','user.index');\n\n //$users = User::orderBy('id','Asc')->paginate(8);\n\n //return view('user.index',compact('users'));\n\n //$users = User::all();\n\n return datatables()\n ->eloquent(User::query())\n //->eloquent($users)\n ->addColumn('accion', 'user.adicionales' )\n ->rawColumns(['accion'])\n ->toJson();\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 index()\n {\n $this->data['contentTitle'] = 'Please Select Period to Calculate Alternative Priority';\n $this->data['model'] = Dss::active()\n ->notDeleted()\n ->where('Dss_CriteriaConsistencyRatio', '<', 0.1)\n ->paginate(10);\n\n return parent::index();\n }", "public function index()\n {\n $user =User::where('status',0)->get();\n foreach($user as $item){\n foreach($item->blogs as $blog){\n if((Carbon::now('Asia/Ho_Chi_Minh'))->lessThanOrEqualTo(Carbon::parse($blog->outdate)->timezone('Asia/Ho_Chi_Minh'))){\n $data['blogsArray'][][]= $blog;\n } \n }\n }\n\n $blogs = (new Collection($data['blogsArray']))->paginate(config('appConst.appConst.PRODUCT_IN_PER_PAGE'));\n $data['tags'] = Tag::all();\n return view('user.blog.blog_list',[\n 'tags'=>$data['tags'],\n 'blogs'=>$blogs,\n ]);\n \n }", "public function index()\n {\n return Customer::paginate( 50 );\n }", "public function index()\n {\n return Container::paginate();\n }", "function admin_cms_list(){\r\r\n\t\t\r\r\n\t\t$this->layout='backend/backend';\r\r\n\t\t$this->set(\"title_for_layout\",CMS_PAGE_LISTING);\r\r\n\t\tApp::import(\"Model\",\"CmsPage\");\r\r\n\t\t$this->CmsPage = new CmsPage();\r\r\n\t\t$conditions = array(\"CmsPage.is_deleted\"=>\"0\");\r\r\n\t\t\r\r\n\t\t$this->paginate = array('recursive'=>-1,'conditions'=>$conditions,'limit' =>CMS_PAGE_LIMIT,'order'=>array(\"CmsPage.page_order\"=>\"asc\"));\r\r\n\t\t$cms_page_data = $this->paginate('CmsPage'); \r\r\n\t\t$this->set('cms_page_data',$cms_page_data);\r\r\n\t}", "public function index()\n {\n return SOA_OVL::latest()->paginate(0);\n /*return DB::table('tblmotorvehiclelist')\n ->select('PlateNumber','DriverName','OperatorName','EngineNumber','SerialNumber')\n ->orderBy('id', 'desc')\n ->paginate(7);*/\n }", "public function index()\n {\n $date = Carbon::now()->subDay()->format('d.m.Y');\n $query = Apartment::thisYear()\n ->selectRaw('MONTH(created_at) as month, count(id) as number')\n ->groupBY('month')\n ->get();\n\n\n return view('admin.report', ['range' => $query->pluck('month'), 'number' => $query->pluck('number'), 'dateStart'=>$date, 'dateEnd'=>$date, 'data'=>\"Apartment\", 'rangeType'=>\"YEAR\"]);\n }" ]
[ "0.7173731", "0.6655028", "0.6591564", "0.65483606", "0.65204066", "0.65038323", "0.64876264", "0.6471345", "0.6469117", "0.64064264", "0.6405504", "0.63988787", "0.6377355", "0.63769853", "0.6376619", "0.63558674", "0.6351463", "0.6341201", "0.633729", "0.6327569", "0.63149935", "0.6313129", "0.6311456", "0.6310193", "0.6309606", "0.62975746", "0.62882465", "0.6284304", "0.6284192", "0.6282718", "0.62735295", "0.62716407", "0.62615865", "0.62527764", "0.6238468", "0.62295806", "0.62257516", "0.62256235", "0.62254906", "0.6224597", "0.6224243", "0.6222494", "0.62200546", "0.6217083", "0.6215301", "0.62126225", "0.6212174", "0.6209832", "0.62062275", "0.62061214", "0.6185305", "0.6182616", "0.6181965", "0.61812806", "0.6181167", "0.61789566", "0.6171388", "0.616762", "0.61625636", "0.6161475", "0.6159036", "0.6158809", "0.615424", "0.6151847", "0.6151661", "0.6150618", "0.61466485", "0.6144842", "0.612644", "0.6125229", "0.6125159", "0.6123024", "0.6122943", "0.6117895", "0.6117768", "0.6114385", "0.6113446", "0.6108434", "0.6106316", "0.6106165", "0.6102939", "0.6100627", "0.6095671", "0.6095319", "0.60952485", "0.6087241", "0.6084595", "0.6083282", "0.6081544", "0.60814404", "0.60804796", "0.60770184", "0.60746264", "0.6072857", "0.6072257", "0.6069378", "0.60656327", "0.60639733", "0.6059967", "0.605617" ]
0.61339766
68
/////////////////end data for front page index page ////////////////STATEMENT AS DAILY ////////////////////count
public function count_d(){ //$dd=$this->district_cd; // echo $dd; $query = "SELECT COUNT(*) AS totalItem FROM `neci`.`consume_details` WHERE `deleted_at` IS NULL AND `input_date`>='".$this->fdate."' AND `input_date`<='".$this->tdate."'"; $result = mysqli_query($this->conn, $query); $row = mysqli_fetch_assoc($result); return $row['totalItem']; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "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}", "public function getCount() {}", "public function getCount() {}", "public function getCount() {}", "protected function get_stats()\n\t{\n\t\tif ($this->index_created())\n\t\t{\n\t\t\t$sql = 'SELECT COUNT(post_id) as total_posts\n\t\t\t\tFROM ' . POSTS_TABLE;\n\t\t\t$result = $this->db->sql_query($sql);\n\t\t\t$this->stats['total_posts'] = (int) $this->db->sql_fetchfield('total_posts');\n\t\t\t$this->db->sql_freeresult($result);\n\n\t\t\t$sql = 'SELECT COUNT(p.post_id) as main_posts\n\t\t\t\tFROM ' . POSTS_TABLE . ' p, ' . SPHINX_TABLE . ' m\n\t\t\t\tWHERE p.post_id <= m.max_doc_id\n\t\t\t\t\tAND m.counter_id = 1';\n\t\t\t$result = $this->db->sql_query($sql);\n\t\t\t$this->stats['main_posts'] = (int) $this->db->sql_fetchfield('main_posts');\n\t\t\t$this->db->sql_freeresult($result);\n\t\t}\n\t}", "public function getCount();", "public function getCount();", "public function getCount();", "function counter($js=false) {\n global $sql,$useronline,$where,$isSpider,$cache;\n \n if(!$js) {\n $counter = '<div style=\"width:100%;padding:10px 0;text-align:center\"><img src=\"../inc/images/ajax_loading.gif\" alt=\"\" /></div>'.\n \"<script language=\\\"javascript\\\" type=\\\"text/javascript\\\">DZCP.initDynLoader('navCounter','counter','',true);</script>\";\n } else {\n if(!$isSpider) {\n if(!$cache->isExisting('counter')) {\n $get2day = $sql->fetch(\"SELECT `visitors` FROM `{prefix_counter}` WHERE `today` = ?;\",array(date(\"j.n.Y\")));\n if($sql->rowCount()) {\n $v_today = $get2day['visitors'];\n }\n\n $gestern = time() - 86400;\n $tag = date(\"j\", $gestern);\n $monat = date(\"n\", $gestern);\n $jahr = date(\"Y\", $gestern);\n $yesterday = $tag.\".\".$monat.\".\".$jahr;\n\n $yDay = 0;\n $getyday = $sql->fetch(\"SELECT `visitors` FROM `{prefix_counter}` WHERE `today` = ?;\",array($yesterday));\n if($sql->rowCount()) {\n $yDay = $getyday['visitors'];\n }\n\n $getstats = $sql->fetch(\"SELECT SUM(visitors) AS `allvisitors`, \"\n . \"MAX(visitors) AS `maxvisitors`, \"\n . \"MAX(maxonline) AS `maxonline`, \"\n . \"AVG(visitors) AS `avgvisitors`, \"\n . \"SUM(visitors) AS `allvisitors` \"\n . \"FROM `{prefix_counter}`;\");\n\n $info = '';\n if(($online_reg = online_reg()) != 0) {\n $qryo = $sql->select(\"SELECT `id` FROM `{prefix_users}` WHERE (time+?) > ? AND `online` = 1 ORDER BY `nick`;\",array($useronline,time()));\n $kats = ''; $text = '';\n if($sql->rowCount()) {\n foreach($qryo as $geto) {\n $kats .= fabo_autor($geto['id']).';';\n $text .= jsconvert(getrank($geto['id'])).';';\n }\n }\n\n $info = 'onmouseover=\"DZCP.showInfo(\\''._online_head.'\\', \\''.$kats.'\\', \\''.$text.'\\')\" onmouseout=\"DZCP.hideInfo()\"';\n }\n\n $counter = show(\"menu/counter\", array(\"v_today\" => $v_today,\n \"v_yesterday\" => $yDay,\n \"v_all\" => ($getstats['allvisitors']),\n \"v_perday\" => round($getstats['avgvisitors'], 2),\n \"v_max\" => $getstats['maxvisitors'],\n \"g_online\" => strval(online_guests($where)),\n \"u_online\" => strval($online_reg),\n \"info\" => $info,\n \"v_online\" => $getstats['maxonline']));\n \n $cache->set('counter', $counter, 6);\n } else {\n $counter = $cache->get('counter');\n }\n }\n }\n\n return '<div id=\"navCounter\">'.$counter.'</div>';\n}", "public function index()\n {\n $days = Input::get('days', 7);\n\n $range = \\Carbon\\Carbon::now()->subDays($days);\n \n $stats = User::where('created_at', '>=', $range)\n ->groupBy('date')\n ->orderBy('date', 'DESC')\n ->remember(1440)\n ->get([\n DB::raw('Date(created_at) as date'),\n DB::raw('COUNT(*) as value')\n ])\n ->toJSON();\n // return view('home');\n \n$this->layout->content = View::make('home', compact('stats'));\n }", "function counterHits(){\n\tglobal $pth; include($pth['app']['globals']);\n\t$count \t\t= '';\n\t$counterHits= $pth['site']['counterHits'];\n\tclearstatcache();\n\tif(!is_file($counterHits)){ $handle\t= fopen($counterHits,'w'); fwrite($handle,'0'); fclose($handle); }\n\t// get current Hits + count\n\t$count\t= file_get_contents($counterHits);\n\tif(!$adm){\n\t\t$count = $count+1;\n\t\t// save Hits\n\t\t$files = fopen($counterHits,'w'); \n\t\tfwrite($files,$count);\n\t\tfclose($files);\n\t}\n\t\n\treturn '<p><strong>'.$count.'</strong> '.$txt['counterHits']['views'].'.</p>';\n}", "public function index()\n {\n return ['services' => Service::all()->count(), 'about' => About::all()->count(), 'info' => Info::all()->count(), 'projects' => Projects::all()->count(), 'clients' => Client::all()->count()];\n }", "public function index()\n\t{\n\t\t// page is yet to be fetched\n\t\t$sql = \"SELECT COUNT(content_id) AS count \n\t\t\t\tFROM nr_pb_mynewsdesk_content\n\t\t\t\tWHERE mynewsdesk_company_id = 0\";\n\n\t\t$counter = $this->db->query($sql)->row()->count;\n\t\tif ($counter)\n\t\t\treturn;\t\n\n\t\t// Checking if any newsroom\n\t\t// on mynewsdesk.com is yet \n\t\t// to be crawled for data\n\n\t\t$sql = \"SELECT count(cd.mynewsdesk_company_id) AS count\n\t\t\t\tFROM ac_nr_mynewsdesk_company_data cd\n\t\t\t\tLEFT JOIN ac_nr_mynewsdesk_nr_crawled w\n\t\t\t\tON w.mynewsdesk_company_id = cd.mynewsdesk_company_id\n\t\t\t\tWHERE w.mynewsdesk_company_id IS NULL \n\t\t\t\tAND NOT ISNULL(NULLIF(cd.newsroom_url, ''))\";\n\n\t\t$counter = $this->db->query($sql)->row()->count;\n\t\tif ($counter)\n\t\t\treturn;\n\t\t\n\n\t\t// Checking if any company website is yet to \n\t\t// be crawled for data\n\n\t\t$sql = \"SELECT COUNT(cd.mynewsdesk_company_id) AS count\n\t\t\t\tFROM ac_nr_mynewsdesk_company_data cd\n\t\t\t\tLEFT JOIN ac_nr_mynewsdesk_website_crawled w\n\t\t\t\tON w.mynewsdesk_company_id = cd.mynewsdesk_company_id\n\t\t\t\tWHERE w.mynewsdesk_company_id IS NULL \n\t\t\t\tAND NOT ISNULL(NULLIF(website, ''))\n\t\t\t\tAND cd.is_website_valid = 1\";\n\n\t\t$counter = $this->db->query($sql)->row()->count;\n\t\tif ($counter)\n\t\t\treturn;\n\n\t\t// Checking if any social accounts\n\t\t// are yet to be verified\n\n\t\t$sql = \"SELECT COUNT(mynewsdesk_company_id) AS count\n\t\t\t\tFROM ac_nr_mynewsdesk_company_data \n\t\t\t\tWHERE (soc_fb IS NOT NULL AND soc_fb <> '' AND soc_fb_feed_status = ?)\n\t\t\t\tOR (soc_twitter IS NOT NULL AND soc_twitter <> '' AND soc_twitter_feed_status = ?)\n\t\t\t\tOR (soc_gplus IS NOT NULL AND soc_gplus <> '' AND soc_gplus_feed_status = ?)\n\t\t\t\tOR (soc_youtube IS NOT NULL AND soc_youtube <> '' AND soc_youtube_feed_status = ?)\n\t\t\t\tOR (soc_pinterest IS NOT NULL AND soc_pinterest <> '' AND soc_pinterest_feed_status = ?)\";\n\t\t\t\n\t\t$nc = Model_MyNewsDesk_Company_Data::SOCIAL_NOT_CHECKED;\n\t\t$counter = $this->db->query($sql, array($nc, $nc, $nc, $nc, $nc))->row()->count;\n\t\tif ($counter)\n\t\t\treturn;\n\n\t\t// Checking if any website crawling \n\t\t// for email fetching is left\n\t\t\n\t\t$sql = \"SELECT COUNT(cd.mynewsdesk_company_id) AS count\n\t\t\t\tFROM ac_nr_mynewsdesk_company_data cd\n\t\t\t\tLEFT JOIN ac_nr_mynewsdesk_fetch_email e\n\t\t\t\tON e.mynewsdesk_company_id = cd.mynewsdesk_company_id\n\t\t\t\tWHERE e.mynewsdesk_company_id IS NULL \n\t\t\t\tAND ISNULL(NULLIF(cd.email, ''))\n\t\t\t\tAND NOT ISNULL(NULLIF(website, ''))\n\t\t\t\tAND cd.is_website_valid = 1\";\n\t\t\n\t\t$counter = $this->db->query($sql)->row()->count;\n\t\tif ($counter)\n\t\t\treturn;\n\n\t\t\t\t\n\t\t// Checking if any duplicate companies\n\t\t// based on dup URL are yet to be removed\n\n\t\t$sql = \"SELECT website, COUNT(website) AS counter \n\t\t\t\tFROM ac_nr_mynewsdesk_company_data\n\t\t\t\tWHERE is_website_valid = 1\n\t\t\t\tGROUP BY website\n\t\t\t\tHAVING COUNT(website) > 1\";\n\n\t\t$result = $this->db->query($sql);\n\t\tif ($result->num_rows())\n\t\t\treturn;\n\n\t\t// Now checking if domainiq whois check\n\t\t// of any missing emails is to be performed\n\t\t$sql = \"SELECT COUNT(cd.mynewsdesk_company_id) AS count\n\t\t\t\tFROM ac_nr_mynewsdesk_company_data cd\n\t\t\t\tINNER JOIN ac_nr_mynewsdesk_fetch_email fe\n\t\t\t\tON fe.mynewsdesk_company_id = cd.mynewsdesk_company_id\n\t\t\t\tLEFT JOIN ac_nr_whois_check_domainiq diq\n\t\t\t\tON diq.source_company_id = cd.mynewsdesk_company_id\n\t\t\t\tAND diq.source = ?\n\t\t\t\tWHERE diq.source_company_id IS NULL \n\t\t\t\tAND cd.email is NULL \n\t\t\t\tAND cd.website IS NOT NULL\n\t\t\t\tAND cd.is_website_valid = 1\";\n\n\t\t$counter = $this->db->query($sql, array(Model_Whois_Check_Domainiq::SOURCE_MYNEWSDESK))->row()->count;\n\t\tif ($counter)\n\t\t\treturn;\n\n\n\t\t// Now checking if domainindex whois check\n\t\t// of any missing emails is to be performed\n\t\t$sql = \"SELECT COUNT(cd.mynewsdesk_company_id) AS count\n\t\t\t\tFROM ac_nr_mynewsdesk_company_data cd\t\t\t\t\n\t\t\t\tINNER JOIN ac_nr_whois_check_domainiq diq\n\t\t\t\tON diq.source_company_id = cd.mynewsdesk_company_id\n\t\t\t\tAND diq.source = ?\n\t\t\t\tLEFT JOIN ac_nr_whois_check_domainindex di\n\t\t\t\tON di.source_company_id = cd.mynewsdesk_company_id\n\t\t\t\tAND di.source = ?\n\t\t\t\tWHERE di.source_company_id IS NULL \n\t\t\t\tAND cd.email is NULL \n\t\t\t\tAND cd.website IS NOT NULL\n\t\t\t\tAND cd.is_website_valid = 1\";\n\n\t\t$source = Model_Whois_Check_Domainiq::SOURCE_MYNEWSDESK;\n\t\t$counter = $this->db->query($sql, array($source, $source))->row()->count;\n\t\tif ($counter)\n\t\t\treturn;\n\n\n\t\t// Checking if any contact us URL\n\t\t// is yet to be retrieved\n\t\t$sql = \"SELECT COUNT(cd.mynewsdesk_company_id) AS count\n\t\t\t\tFROM ac_nr_mynewsdesk_company_data cd\n\t\t\t\tLEFT JOIN ac_nr_fetch_contact_us_url e\n\t\t\t\tON e.source_company_id = cd.mynewsdesk_company_id\n\t\t\t\tAND e.source = ?\n\t\t\t\tWHERE e.source_company_id IS NULL\n\t\t\t\tAND NOT ISNULL(NULLIF(cd.website, ''))\";\n\n\t\t$source = Model_Whois_Check_Domainiq::SOURCE_MYNEWSDESK;\n\t\t$counter = $this->db->query($sql, array($source))->row()->count;\n\t\tif ($counter)\n\t\t\treturn;\n\n\t\t// Checking if language has been\n\t\t// detected for all the scraped PRs\n\t\t$sql = \"SELECT COUNT(p.content_id) AS count\n\t\t\t\tFROM nr_pb_mynewsdesk_content p\n\t\t\t\tINNER JOIN nr_content c\n\t\t\t\tON p.content_id = c.id\n\t\t\t\tINNER JOIN nr_content_data cd\n\t\t\t\tON p.content_id = cd.content_id\n\t\t\t\tWHERE p.mynewsdesk_company_id > 0\n\t\t\t\tAND p.language IS NULL\n\t\t\t\tAND c.type = ?\";\n\n\t\t$counter = $this->db->query($sql, array(Model_Content::TYPE_PR))->row()->count;\n\t\tif ($counter)\n\t\t\treturn;\n\n\n\t\t// Checking if language has been detected \n\t\t// for all companies' about blurbs\n\t\t$sql = \"SELECT COUNT(mynewsdesk_company_id) AS count\n\t\t\t\tFROM ac_nr_mynewsdesk_company_data\n\t\t\t\tWHERE NOT ISNULL(NULLIF(about_company, ''))\n\t\t\t\tAND about_company_lang IS NULL\";\n\n\t\t$counter = $this->db->query($sql, array(Model_Content::TYPE_PR))->row()->count;\n\t\tif ($counter)\n\t\t\treturn;\n\n\t\t\n\t\t$sql = \"UPDATE ac_nr_mynewsdesk_category\n\t\t\t\tSET pages_scanned = 0,\n\t\t\t\tis_completed = 0\";\n\n\t\t$this->db->query($sql);\n\t}", "public function getPageCount() \r\n { \r\n }", "function index2()\n {\n //$data['count'] = $this->home_model->labelfinder_counter($condtion);\n //$counter = $this->db->query(\" SELECT count(*) as total FROM products WHERE Activate = 'Y' \")->row_array();\n //$data['count'] = $counter['total'];\n\n $data['main_content'] = 'index_home';\n $this->load->View('page');\n }", "public function count()\r\n\t{\r\n//\t\techo json_encode($this->db->query_first($sql));\r\n\t\techo json_encode(array('total'=>30));\r\n\t}", "static function getCount(){\n if(empty($query[2])){\n self::$contador=\"Home\";\n }else{\n self::$contador=self::$query[2];\n } \n return self::$contador;\n }", "public function actionIndex()\n {\n //check if there are expire leads . leads passed 10 minutes\n // count them all\n //\n }", "public function index()\n {\n $countevents = Event::latest()->whereRaw('Date(start_date) = CURDATE()')->count();\n $countusers = Users::latest()->count();\n $countpending = Event::latest()->where('status',0)->count();\n\n $event = Event::latest()->whereRaw('Date(start_date) = CURDATE()')->paginate(100);\n $pending = Event::latest()->where('status',0)->paginate(100);\n return view('home',compact( 'event','pending'))->with('countevents',$countevents)\n ->with('countusers',$countusers)\n ->with('countpending',$countpending)\n ->with('i', (request()->input('page', 1) - 1) * 100);\n\n }", "abstract public function getCount();", "public function index()\n {\n $servicecount = Service::count();\n $productcount = Product::count();\n $gallerycount = Gallery::count();\n $contacts = Contact::latest()->get();\n $contacttoday= Contact::whereRaw('date(created_at) = ?', [Carbon::today()])->count();\n return view('home',compact('servicecount','productcount','contacttoday','gallerycount','contacts'));\n }", "public function index()\n {\n\n $news = Post::get()->count();\n $catagory = Catagory::get()->count();\n $tag = Tag::get()->count();\n $reporter= Reporter::get()->count();\n $posts= Post::orderBy('created_at','DESC')->paginate(6);\n\n $n=1;\n\n\n return view('dashboard',compact('news','catagory','tag','reporter','posts','n'));\n }", "public function index()\n {\n $counter=Counter::where('id',1)->select('data_selection','no_of_volunteer', 'no_of_volunteer_opportunities', 'no_of_volunteer_hours','no_of_organizations')->first();\n return view('Dashboard.staticPages.counter',compact('counter'));\n }", "function fetchCount();", "public function totalPage();", "public function quickCount()\n {\n return view('layouts.tabulasi.quick_count');\n\n }", "public function countFrontend(){\n\t\t\t\t\t return count($this->listeFrontend());\n\t\t\t\t\t }", "public function indexAction() {\n //on forge la requete SQL\n $articles = $this->repo->getAll();\n \n if ($articles) {\n $nbRows = count($articles);\n \n \n \n \n \n \n \n }\n \n \n \n }", "public function count_lists(){\n $cart_result = @mysqli_query($this->dbc, \"SELECT SUM(state='draft') as draft, SUM(article_type='news' and state='published') as news, SUM(article_type='guidance' and state='published') as guidance from `news_advice`\") or die(\"Couldn't ViewSql page USERS lists()\");\n $this->num_rows = mysqli_num_rows($cart_result);\n while ($row = mysqli_fetch_assoc($cart_result)) {\n $this->draft = $row[\"draft\"];\n $this->news = $row[\"news\"];\n $this->guidance = $row[\"guidance\"];\n }// end while\n mysqli_close($this->dbc);\n }", "static function init($data){\n \n $pages = ceil($data['count_all'] / $data['limit']);\n \n $res = \"\";\n \n for($i = 1; $i <= $pages; $i++){\n \n if($i == $data['current_page'] ){ \n $res .= \"<b>$i</b>\";\n }\n else{\n $res .= \"<a href='\".$data['url'].\"&page=$i'>$i</a>\";\n }\n \n }\n \n \n return $res;\n \n \n \n \n }", "public function getCounterFeeds() {\n if (Request::ajax()) {\n $clave = Input::get(\"clave\");\n $fecha = Input::get(\"fecha\");\n $counterFeeds = DB::table('FeedsProgram')\n ->select('img', 'title', 'startDate', 'startTime', 'duration', 'secuency')\n ->where('programKey', '=', $clave)\n ->where('startDate', '=', date(\"Y-m-d\", strtotime($fecha)))\n ->count();\n echo $counterFeeds;\n }\n }", "public function index()\n {\n return Bien::paginate(3);\n }", "function count()\n { \n $output['success'] = FALSE;\n $ceklogin = $this->cek_session->islogin();\n $output['logged_in'] = $ceklogin;\n if($ceklogin)\n {\n $this->mongo_db->select_db(\"Articles\");\n $this->mongo_db->select_collection(\"Event\"); \n $tempdata = $this->mongo_db->count2(array());\n if($tempdata)\n {\n $output['success'] = TRUE;\n $output['count'] = (int)$tempdata;\n }\n }\n echo json_encode($output);\n }", "public function actionIndex(){\n\t\t$this->layout = 'bootstrap';\n\t\t$query = new Query();\n\t\t$command = $query->from('advert')->orderBy('idadvert desc')->limit(5);\n\t\t$result_general = $command->all();\n\t\t$count_general = $command->count();\n\t\t\n return $this->render('index', ['result_general' => $result_general, 'count_general' => $count_general]);\n }", "function more_data(){\t \t \n\t\t$page = $this->input->post('page');\n\t\tif(empty($page)){ $page=0; }\n\t\t$offset = 10*$page;\n\t\t$limit = 10;\n\t\t$user__list = $this->InteractModal->all__active_users_limit('client',$limit, $offset);\n\t\t$count_record = $this->InteractModal->count_users('client');\n\t\t$page_data['user__list']= $user__list;\n\t\t$page_data['page']= $page;\n\t\t$this->load->view('common/client_load_more', $page_data);\t\n\t\t\t\t\n\t\t\t\n\t}", "function sportal_index()\n{\n\tglobal $smcFunc, $context, $scripturl, $modSettings, $txt;\n\n\t$context['sub_template'] = 'portal_index';\n\n\tif (empty($modSettings['sp_articles_index']))\n\t\treturn;\n\n\t$request = $smcFunc['db_query']('','\n\t\tSELECT COUNT(*)\n\t\tFROM {db_prefix}sp_articles AS spa\n\t\t\tINNER JOIN {db_prefix}sp_categories AS spc ON (spc.id_category = spa.id_category)\n\t\tWHERE spa.status = {int:article_status}\n\t\t\tAND spc.status = {int:category_status}\n\t\t\tAND {raw:article_permissions}\n\t\t\tAND {raw:category_permissions}\n\t\tLIMIT {int:limit}',\n\t\tarray(\n\t\t\t'article_status' => 1,\n\t\t\t'category_status' => 1,\n\t\t\t'article_permissions' => sprintf($context['SPortal']['permissions']['query'], 'spa.permissions'),\n\t\t\t'category_permissions' => sprintf($context['SPortal']['permissions']['query'], 'spc.permissions'),\n\t\t\t'limit' => 1,\n\t\t)\n\t);\n\tlist ($total_articles) = $smcFunc['db_fetch_row']($request);\n\t$smcFunc['db_free_result']($request);\n\n\t$total = min($total_articles, !empty($modSettings['sp_articles_index_total']) ? $modSettings['sp_articles_index_total'] : 20);\n\t$per_page = min($total, !empty($modSettings['sp_articles_index_per_page']) ? $modSettings['sp_articles_index_per_page'] : 5);\n\t$start = !empty($_REQUEST['articles']) ? (int) $_REQUEST['articles'] : 0;\n\t$total_pages = $per_page > 0 ? ceil($total / $per_page) : 0;\n\t$current_page = $per_page > 0 ? ceil($start / $per_page) : 0;\n\n\tif ($total > $per_page)\n\t{\n\t\t$context['page_index'] = constructPageIndex($context['portal_url'] . '?articles=%1$d', $start, $total, $per_page, true);\n\n\t\tif ($current_page > 0)\n\t\t\t$context['previous_start'] = ($current_page - 1) * $per_page;\n\t\tif ($current_page < $total_pages - 1)\n\t\t\t$context['next_start'] = ($current_page + 1) * $per_page;\n\t}\n\n\t$context['articles'] = sportal_get_articles(0, true, true, 'spa.id_article DESC', 0, $per_page, $start);\n\n\tforeach ($context['articles'] as $article)\n\t{\n\t\tif (($cutoff = $smcFunc['strpos']($article['body'], '[cutoff]')) !== false)\n\t\t\t$article['body'] = $smcFunc['substr']($article['body'], 0, $cutoff);\n\n\t\t$context['articles'][$article['id']]['preview'] = parse_bbc($article['body']);\n\t\t$context['articles'][$article['id']]['date'] = timeformat($article['date']);\n\t}\n}", "public function totalCount();", "public function totalCount();", "public function count()\n {\n return Page::count();\n }", "public function fetchData()\r\n {\r\n $this->objectcount = $this->search_obj->getObjectQueryCount($this->extra);\r\n }", "public function index()\n {\n $page = 'home';\n $user_count = AppUser::all()->count();\n $news_count = News::all()->count();\n $language_count = Language::all()->count();\n $categories_count = Category::all()->count();\n\n\n return view('dashboard',compact('page','user_count','news_count','categories_count','language_count'));\n }", "public function overviewAction(){\n \t$analytics = new Pas_Analytics_Gateway($this->_ID, $this->_pword);\n \t$analytics->setProfile(25726058);\n \t$timeframe = new Pas_Analytics_Timespan(); \n $timeframe->setTimespan($this->_getParam('timespan'));\n \t$dates = $timeframe->getDates();\n \t$analytics->setStart($dates['start']);\n \t$analytics->setEnd($dates['end']);\n \t$analytics->setMetrics(\n array(\n Zend_Gdata_Analytics_DataQuery::METRIC_VISITORS,\n Zend_Gdata_Analytics_DataQuery::METRIC_PAGEVIEWS,\n Zend_Gdata_Analytics_DataQuery::METRIC_UNIQUE_PAGEVIEWS,\n Zend_Gdata_Analytics_DataQuery::METRIC_AVG_TIME_ON_PAGE,\n Zend_Gdata_Analytics_DataQuery::METRIC_ENTRANCES,\n Zend_Gdata_Analytics_DataQuery::METRIC_EXITS,\n Zend_Gdata_Analytics_DataQuery::METRIC_BOUNCES\n \t\t));\n \t$analytics->setDimensions(\n array(\n Zend_Gdata_Analytics_DataQuery::DIMENSION_PAGE_TITLE,\n Zend_Gdata_Analytics_DataQuery::DIMENSION_PAGE_PATH,\t\t\n \t\t));\n \tif(is_null($this->_getParam('filter'))){\n \t$analytics->setFilters(\n array(\n Zend_Gdata_Analytics_DataQuery::DIMENSION_PAGE_PATH \n . Zend_Gdata_Analytics_DataQuery::REGULAR_NOT . 'forum'\n\t ));\n\t } else {\n \t$analytics->setFilters(\n array(\n Zend_Gdata_Analytics_DataQuery::DIMENSION_PAGE_PATH \n . Zend_Gdata_Analytics_DataQuery::REGULAR . '/'\n . $this->_getParam('filter')\n\t ));\n\t }\n \t$analytics->setMax(20);\n \t$analytics->setSort(Zend_Gdata_Analytics_DataQuery::METRIC_VISITORS);\n \t$analytics->setSortDirection(true);\n \t$analytics->setStartIndex($this->getStart());\n \t$this->view->results = $analytics->getData();\n $paginator = Zend_Paginator::factory((int)$analytics->getTotal());\n $paginator->setCurrentPageNumber((int)$this->getPage())\n\t\t\t->setItemCountPerPage((int)self::MAX_RESULTS);\n $this->view->paginator = $paginator;\n }", "public function actionIndex(){\n\n if (Yii::app()->user->getState('roles') == '5') \n { \n $this->layout='//layouts/column1';\n }\n \n $criteria=new CDbCriteria();\n $criteria->order='id_reporte DESC';\n $count=Reportes::model()->count($criteria);\n \n\n\n \n //Le pasamos el total de registros de la tabla\n $pages=new CPagination($count);\n \n // Resultados por página\n $pages->pageSize=13;\n \n $pages->applyLimit($criteria);\n $getUsuarios=Reportes::model()->findAll($criteria);\n \n $this->render('index',array(\n \"usuarios\"=>$getUsuarios,\n \"pages\"=>$pages\n ));\n}", "function getEventCount($per_page){\n\t\t//return ceil($count / $per_page); \n\t\treturn 3;\n\t}", "public function index()\n {\n $data = CrosswordsCounts::orderBy('id','desc')->paginate(10);\n return view('backend/crosswords_counts/index')->with('data',$data);\n }", "public function index()\n {\n $count_bisnis = DB::table('businesses')->count();\n $count_contact = DB::table('contacs')->count();\n $count_partner = DB::table('partners')->count();\n $count_user = DB::table('users')->count();\n $contact = DB::table('contacs')->orderBy('created_at','desc')->paginate(10);\n return view('admin.index', ['count_bisnis' => $count_bisnis, 'count_contact' => $count_contact, 'count_partner' => $count_partner, 'count_user' => $count_user, 'contact' => $contact]);\n }", "public function index()\n {\n $count_bisnis = DB::table('businesses')->count();\n $count_contact = DB::table('contacs')->count();\n $count_partner = DB::table('partners')->count();\n $count_user = DB::table('users')->count();\n $contact = DB::table('contacs')->orderBy('created_at','desc')->paginate(10);\n return view('admin.index', ['count_bisnis' => $count_bisnis, 'count_contact' => $count_contact, 'count_partner' => $count_partner, 'count_user' => $count_user, 'contact' => $contact]);\n }", "public function _count();", "function pantomime_num_queries(){\n\techo '<p id=\"footer-num-queries\">';\n\t_e('Generated from '. get_num_queries() .' queries in '. timer_stop(0,3) .' seconds.', 'pantomime');\n\techo '</p>';\n}", "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 index()\n {\n $user_id = auth()->user()->id;\n $task_counter = JtiPlan::where('assign_to', $user_id)\n ->where('new_flag', true)\n ->count();\n\n Session::put('task_counter', $task_counter);\n \n }", "function countHit() {\n\n $this->saveField('hits', $this->data['Ringsite']['hits']+1, false);\n }", "public function index()\n {\n // dd($allData);\n $allData=DB::table('haisou')->simplePaginate(5);\n $total=DB::table('haisou')->count();\n $thisPage=count($allData);\n \n return view('haisou.tableHome',['allData'=>$allData,'total'=>$total]);\n }", "function count() ;", "public function index()\n {\n // dd(Tweet::where('name', 'roobche')->get()->toArray());\n // $chart_end = Carbon::now();\n // $chart_start = $chart_end->copy()->subDays(10);\n // $period = CarbonPeriod::create($chart_start,$chart_end);\n // $key_array = $tweet_number = array();\n // foreach ($period as $date) {\n // $key = $date->format('Y-m-d');\n // $key_display = $date->format('d M Y');\n // array_push($key_array, $key_display);\n // $tweet = Tweet::where('date',$key)->count();\n // array_push($tweet_number,$tweet);\n // }\n\n // $now = date('Y-m-d');\n // $today_count = Tweet::where('date', $now)->get()->count();\n // $user_count = Tweet::get()->pluck('name')->unique()->count();\n // $tweet_counter = TweetCounter::get()->first();\n $active = 'home';\n $api_token = Auth::user()->api_token;\n return view('home', compact('active', 'api_token'));\n }", "function getNumberOfAnnouncements()\n {\n $dbQuery = sprintf(\"SELECT count(*) FROM CRC_Announcements_Info WHERE StartDate <= CURDATE() AND EndDate >= CURDATE()\");\n $result = getDBResultRecord($dbQuery);\n // Return data payload as JSON\n header(\"Content-type: application/json\");\n echo json_encode($result);\n }", "function getDBcounts( )\n{\n\t// \"frequency\" is how often data was collected eg \"Annual\"\n\tglobal $fields, $connect;\n\t$queryreg = mysqli_query($connect, \"\n\t \tSELECT * from counts ORDER BY count DESC\");\n\n\twhile($row = mysqli_fetch_array($queryreg,MYSQLI_ASSOC))\n\t{\n\t\t$fields[$row['field']] = $row['count']; \n\t//\techo \"<BR>\" . $row['field'] . ' = ' . $row['count'];\n\t}\n}", "public function statisticAction() {\n\t\t\t// @TODO: Check toArray\n\t\t$results = $this->resultRepository->findByFeuser((int) $GLOBALS['TSFE']->fe_user->user['uid'])->toArray();\n\t\t$this->view->assign('results', $results);\n\t\t$this->view->assign('page', $this->settings['certificate']['detailPid']);\n\t}", "public function index()\n {\n $count = array();\n $count['users'] = DB::table('users')->count();\n $count['poems'] = DB::table('dev_poem')->count();\n $count['authors'] = DB::table('dev_author')->count();\n $count['dynasty'] = DB::table('poem_dynasty')->count();\n $count['type'] = DB::table('poem_type')->count();\n $count['pages'] = DB::table('dev_pages')->count();\n $count['posts'] = DB::table('dev_post')->count();\n $count['zhuanlans'] = DB::table('dev_zhuanlan')->count();\n return view('la.dashboard')\n ->with('count',$count);\n }", "public function getCount() {\n \treturn $this->count();\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 index()\n {\n $count = new stdClass();;\n $count->user = $this->user->getNumber();\n $count->product = $this->product->getNumber();\n $count->category = $this->category->getNumber();\n $count->order = $this->order->getNumber();\n return view('admin.dashboard', ['count' => $count]);\n }", "function frontpage($request_data, $db) {\n $total_lang_xps = TOTAL_XP_CACHE;\n usort($total_lang_xps, function ($a, $b) {\n if ($a[1] === $b[1]) {\n return 0;\n }\n\n return ($a[1] > $b[1]) ? -1 : 1;\n });\n\n $total_xp = array_reduce($total_lang_xps, function ($acc, $lang) {\n return $acc + $lang[1];\n }, 0);\n\n $most_popular = array_slice($total_lang_xps, 0, 10);\n\n // Render template\n include 'front.tpl.php';\n}", "function countsreport(){\n\t\t//$this->set('surveyexports',$this->Surveyexport->find('count', array('conditions'=>array('id'=>'all'))));\n\t\t//$this->set('surveyexports',$this->Surveyexport->find('all'));\n\t\t//$this->set('surveyexports',$this->Surveyexport->find('count'));\n\t\t//$this->set('surveyexports',$this->Surveyexport->findAllById('*'),id);\n\t\t//$this->set('totalCount',$this->Surveyexport->find('count', array('fields'=>' DISTINCT state')));\n\t\t$this->set(('totalCount[0]'),$this->Surveyexport->find('count', array('fields'=>' DISTINCT id'))); // count individual ids in the database\n\t\t//$this->set('totalCount',$this->Surveyexport->find('count', array('fields'=>' DISTINCT focus_id'))); // ??????????????????????????? needs set in DB\n\t\t$this->set('totalCount[1]',$this->Surveyexport->find('count', array('fields'=>'id'))); // count all id's in the database\n\t\t\n\t}", "public function index() {\n \n if (!Auth::check()) {\n return Redirect::to('login');\n }\n\n $results = Sticky::where('user_id', '=', Auth::user()->id)\n ->orderBy('id', 'DESC')\n ->skip(0)\n ->take(8)\n ->get();\n $count = Sticky::where('user_id', '=', Auth::user()->id)\n ->count();\n \n $this->layout->content = View::make('sticky.show')\n ->with(array('results'=>$results,'count'=>$count));\n }", "function get_all_pagina_web_count()\r\n {\r\n $pagina_web = $this->db->query(\"\r\n SELECT\r\n count(*) as count\r\n\r\n FROM\r\n `pagina_web`\r\n \")->row_array();\r\n\r\n return $pagina_web['count'];\r\n }", "public function view(){\n $viewsCount = $this->views_count();\n\n if ( Config::get('counter.isViewCountEveryTime') ){\n //$viewCount = Cache::increment($this->cacheViewName, Config::get('counter.viewIncrementAmount', 1));\n $viewsCount = $this->incView();\n //$this->setViewed();\n }else if ( !$this->isViewed() ){\n $viewsCount = $this->incView();\n //$this->setViewed();\n }\n\n return $viewsCount;\n }", "public function action_index() {\n \n /* Try reading from cache */\n if(($nLikes = \\Cache::get('fblikes_' . $this->_sPage))) {\n $data['sName'] = \\Cache::get('fblikes_name_' . $this->_sPage);\n $data['nLikes'] = $nLikes;\n } else {\n /* Or get data from Facebook Graph API */\n $sContent = file_get_contents('https://graph.facebook.com/' . $this->_sPage);\n \n /* If the request was succefull, parse data */\n if($sContent !== false) {\n $oFb = json_decode($sContent);\n \n $data['sName'] = $oFb->name;\n $data['nLikes'] = $oFb->likes;\n \n \\Cache::set('fblikes_name_' . $this->_sPage, $oFb->name, 3600);\n \\Cache::set('fblikes_' . $this->_sPage, $oFb->likes, 3600);\n \n } else {\n $data['sName'] = 'noone';\n $data['nLikes'] = 0;\n }\n }\n \n /* Send data to view */\n $this->response->body = \\View::factory('facebooklikes', $data);\n }", "public function actionIndex()\n {\n\n $db = Yii::$app->db;\n $news_count = $db->createCommand('call news_count_in_sections()')\n ->queryAll();\n\n // $a = $db->createCommand('call news_count_in_sections()')\n // ->queryOne();\n \n // $a = $db->createCommand('call news_count_in_sections()')\n // ->queryColumn();\n \n // $a = $db->createCommand('call news_count_in_sections()')\n // ->queryScalar();\n\n // echo \"<pre>\";\n // print_r($a);\n // die;\n\n $searchModel = new NewsSearch();\n $dataProvider = $searchModel->search(Yii::$app->request->queryParams);\n\n return $this->render('index', [\n 'searchModel' => $searchModel,\n 'dataProvider' => $dataProvider,\n 'news_count' => $news_count,\n ]);\n }", "public function actionIndex()\n {\n $query = Post::find()->where(['post_status' => Post::STATUS_ACTIVE])->orderBy('created_at DESC');\n $countQuery = clone $query;\n $pages = new Pagination(['totalCount' => $countQuery->count()]);\n $pages->pageSize = 5;\n\n $model = $query->offset($pages->offset)\n ->limit($pages->limit)\n ->all();\n\n foreach ($model as $post) {\n $post->count_comment = $post->CommentsCount;\n }\n return $this->render('index', [\n 'model' => $model,\n 'pages' => $pages,\n ]);\n\n }", "function landing_visit_counter($_url_params) {\n\t$_url_params['key'] = _KEY;\n\t$_url_params['landing'] = _LANDING_URL;\n\n $_landing = request_post_api(_VISIT_COUNT_URL,$_url_params);\n return $_landing;\n}", "function count(){}", "private function getNumPages() {\n //display all in one page\n if (($this->limit < 1) || ($this->limit > $this->itemscount)) {\n $this->numpages = 1;\n } else {\n //Calculate rest numbers from dividing operation so we can add one\n //more page for this items\n $restItemsNum = $this->itemscount % $this->limit;\n //if rest items > 0 then add one more page else just divide items\n //by limit\n $restItemsNum > 0 ? $this->numpages = intval($this->itemscount / $this->limit) + 1 : $this->numpages = intval($this->itemscount / $this->limit);\n }\n }", "public function count()\r\n\t{\r\n\t\t$sql = \"SELECT COUNT(*) AS total FROM \" . DB_PREFIX . \"program_record_log WHERE 1 \";\r\n\r\n\t\t//获取查询条件\r\n\t\t$condition = $this->get_condition();\t\t\t\t\r\n\t\t$sql = $sql . $condition;\r\n\t\t$r = $this->db->query_first($sql);\r\n\r\n\t\t//暂时这样处理\r\n\t\techo json_encode($r);\r\n\t}", "public function record_count_activities() {\n return $this->db->count_all(\"page\");\n }", "public function actionSomemore()\n\t{\n\t\tif(isset($_GET['act']))\n\t\t{\n\t\t\tif($_GET['act']=='index')\n\t\t\t{\n\t\t\t\t$time=new CTimestamp;\n\t\t\t\t$value=$time->getDate();\n\t\t\t\t$end= $value[0];\n\t\t\t\t$start= $end-86400000;\n\t\t\t\t$allusersphotos = array();\n\t\t\t\t$country = Yii::app()->user->getState('usercountry');\n\t\t\t\t$criteria = new CDbCriteria();\n\t\t\t\t$criteria->select = 't.* , (SELECT COUNT( * )*(0.3) FROM log_photos_comment a WHERE a.owner_id = t.user_id AND a.log_photos_comment_date BETWEEN '.$start.' AND '.$end.' ) + (SELECT COUNT( * )*(1) FROM log_photos_hearts b WHERE b.owner_id = t.user_id AND b.log_photos_hearts_date BETWEEN '.$start.' AND '.$end.' ) + (SELECT COUNT( * )*(1.1) FROM log_photos_share c WHERE c.owner_id = t.user_id AND c.log_photos_share_date BETWEEN '.$start.' AND '.$end.' ) AS totalcount';\n\t\t\t\t$pageflag='';\t\t\t\t\n\t\t\t\tif(isset($_GET['pg']) && $_GET['pg']==\"newsfeed\"){\n\t\t\t\t\t//NewFeed Page Only\n\t\t\t\t\t$criteria->condition = 'userDetails.user_unique_url = \"poslyadmin\" OR t.photos_share_count>0';\n\t\t\t\t\t$pageflag='newsfeed';\n\t\t\t\t} else{\t\t\t\t\n\t\t\t\t\tif(!empty($country)){\n\t\t\t\t\t\t//Show Only User's Country\n\t\t\t\t\t\t$criteria->condition = 'userLocation.user_location_country=\"'.$country.'\" AND userDetails.user_unique_url<>\"poslyadmin\"';\t\t\t\n\t\t\t\t\t} else{\n\t\t\t\t\t\t$criteria->condition = 'userDetails.user_unique_url<>\"poslyadmin\"';\t\t\t\t\t\n\t\t\t\t\t}\t\t\t\t\n\t\t\t\t}\n\t\t\t\t$criteria->group = 't.user_id';\n\t\t\t\t$criteria->order = 'totalcount DESC';\n\t\t\t\t\n\t\t\t\tif($_GET['l']<6){\n\t\t\t\t\t$criteria->limit=$_GET['l']; //Total No of Records\n\t\t\t\t\t$criteria->offset=$_GET['l']-2; //Starts from..\n\t\t\t\t} else{\n\t\t\t\t\t$criteria->limit = $_GET['l']-2;\n\t\t\t\t\t$criteria->offset = $_GET['l'];\n\t\t\t\t}\n\t\t\t\tif(!empty($country))\n\t\t\t\t\t$allusersphotos=Photos::model()->with('user', 'user.userDetails','user.userLocation')->findAll($criteria);\n\t\t\t\telse\n\t\t\t\t\t$allusersphotos=Photos::model()->with('user', 'user.userDetails')->findAll($criteria);\t\t\n\t\t\t\t$this->renderPartial('somemore', array('photos'=>$allusersphotos,'pageflag'=>$pageflag));\n\t\t\t}\n\t\t\tif($_GET['act']=='viral')\n\t\t\t{\n\t\t\t\t$time=new CTimestamp;\n\t\t\t\t$value=$time->getDate();\n\t\t\t\t$end= $value[0];\n\t\t\t\t$start= $end-86400000;\n\t\t\t\t$allusersphotos = array();\n\t\t\t\t$country = Yii::app()->user->getState('usercountry');\n\t\t\t\t$criteria = new CDbCriteria();\n\t\t\t\t$criteria->select = 't.* , (SELECT COUNT( * )*(0.3) FROM log_photos_comment a WHERE a.owner_id = t.user_id AND a.log_photos_comment_date BETWEEN '.$start.' AND '.$end.' ) + (SELECT COUNT( * )*(1) FROM log_photos_hearts b WHERE b.owner_id = t.user_id AND b.log_photos_hearts_date BETWEEN '.$start.' AND '.$end.' ) + (SELECT COUNT( * )*(1.1) FROM log_photos_share c WHERE c.owner_id = t.user_id AND c.log_photos_share_date BETWEEN '.$start.' AND '.$end.' ) AS totalcount';\n\t\t\t\t$criteria->group = 't.user_id';\n\t\t\t\t$criteria->order = 'totalcount DESC';\t\t\t\t\n\t\t\t\tif($_GET['l']<6){\n\t\t\t\t\t$criteria->limit=$_GET['l']; //Total No of Records\n\t\t\t\t\t$criteria->offset=$_GET['l']-2; //Starts from..\n\t\t\t\t} else{\n\t\t\t\t\t$criteria->limit = $_GET['l']-2;\n\t\t\t\t\t$criteria->offset = $_GET['l'];\n\t\t\t\t}\n\t\t\t\tif(!empty($country)){\n\t\t\t\t\t//Show Only User's Country\n\t\t\t\t\t$criteria->condition = \"userLocation.user_location_country='$country' AND userDetails.user_unique_url<>'poslyadmin'\";\t\t\t\t\t\n\t\t\t\t\t$allusersphotos=Photos::model()->with('user', 'user.userDetails','user.userLocation')->findAll($criteria);\n\t\t\t\t} else{\n\t\t\t\t\t$criteria->condition = \"userDetails.user_unique_url<>'poslyadmin'\";\n\t\t\t\t\t$allusersphotos=Photos::model()->with('user', 'user.userDetails')->findAll($criteria);\n\t\t\t\t}\t\t\t\t\t\t\n\t\t\t\t$this->renderPartial('somemore', array('photos'=>$allusersphotos));\n\t\t\t\tunset($criteria);\n\t\t\t}\n\t\t\telseif($_GET['act']=='newmembers')\n\t\t\t{\t\t\t\t\n\t\t\t\t$criteria = new CDbCriteria();\t\t\t\t\n\t\t\t\t$criteria->group = 'userDetails.user_id';\n\t\t\t\tif($_GET['l']<6){\n\t\t\t\t\t$criteria->limit=$_GET['l']; //Total No of Records\n\t\t\t\t\t$criteria->offset=$_GET['l']-2; //Starts from..\n\t\t\t\t} else{\n\t\t\t\t\t$criteria->limit = $_GET['l']-2;\n\t\t\t\t\t$criteria->offset = $_GET['l'];\n\t\t\t\t}\n\t\t\t\t$country = Yii::app()->user->getState('usercountry');\n\t\t\t\tif(!empty($country)){\n\t\t\t\t\t//Show Only User's Country\n\t\t\t\t\t$criteria->condition = 'userLocation.user_location_country=\"$country\"';\n\t\t\t\t}else{\n\t\t\t\t\t$criteria->condition = 'userDetails.user_unique_url<>\"poslyadmin\"';\n\t\t\t\t}\n\t\t\t\t$criteria->order = 'userDetails.user_details_created_date DESC';\t\t\t\t\t\t\t\t\n\t\t\t\t$allusersphotos=Photos::model()->with('user', 'user.userDetails','user.userLocation')->findAll($criteria);\t\t\n\t\t\t\t$this->renderPartial('somemore', array('photos'=>$allusersphotos));\n\t\t\t\tunset($criteria);\n\t\t\t}\n\t\t\telseif($_GET['act']=='topmembers')\n\t\t\t{\t\t\t\t\t\t\t\n\t\t\t\t$allusersphotos = array();\n\t\t\t\t$criteria = new CDbCriteria();\t\t\t\t\n\t\t\t\t$criteria->select = 't.* , (SELECT COUNT(*) FROM log_photos_hearts b WHERE b.owner_id = t.user_id) AS totalcount';\n\t\t\t\t$criteria->group = 't.user_id';\n\t\t\t\t$criteria->order = 'totalcount DESC';\t\n\t\t\t\tif($_GET['l']<6){\n\t\t\t\t\t$criteria->limit=$_GET['l']; //Total No of Records\n\t\t\t\t\t$criteria->offset=$_GET['l']-2; //Starts from..\n\t\t\t\t} else{\n\t\t\t\t\t$criteria->limit = $_GET['l']-2;\n\t\t\t\t\t$criteria->offset = $_GET['l'];\n\t\t\t\t}\t\n\t\t\t\t$country = Yii::app()->user->getState('usercountry');\n\t\t\t\tif(!empty($country)){\n\t\t\t\t\t//Show Only User's Country\n\t\t\t\t\t$criteria->condition = \"userLocation.user_location_country='$country' AND userDetails.user_unique_url<>'poslyadmin'\";\t\t\t\t\t\n\t\t\t\t\t$allusersphotos=Photos::model()->with('user', 'user.userDetails','user.userLocation')->findAll($criteria);\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\t//If Not, Show World Wide\n\t\t\t\t\t$criteria->condition = 'exists(select * from photos where user_id=t.user_id) AND userDetails.user_unique_url<>\"poslyadmin\"';\t\t\t\n\t\t\t\t\t$allusersphotos=Photos::model()->with('user', 'user.userDetails')->findAll($criteria);\n\t\t\t\t}\t\t\n\t\t\t\tunset($criteria);\t\t\n\t\t\t\t$this->renderPartial('somemore', array('photos'=>$allusersphotos));\t\t\n\t\t\t}\n\t\t\telseif($_GET['act']=='males')\n\t\t\t{\n\t\t\t\t$criteria = new CDbCriteria();\t\n\t\t\t\t$criteria->condition = 'userDetails.user_details_gender = \"1\"';\n\t\t\t\t$criteria->group = 'userDetails.user_id';\n\t\t\t\t$criteria->order = 'userDetails.user_rank_worldwide ASC';\t\t\t\t\n\t\t\t\tif($_GET['l']<6){\n\t\t\t\t\t$criteria->limit=$_GET['l']; //Total No of Records\n\t\t\t\t\t$criteria->offset=$_GET['l']-2; //Starts from..\n\t\t\t\t} else{\n\t\t\t\t\t$criteria->limit = $_GET['l']-2;\n\t\t\t\t\t$criteria->offset = $_GET['l'];\n\t\t\t\t}\t\t\t\t\n\t\t\t\t$allusersphotos=Photos::model()->with('user', 'user.userDetails')->findAll($criteria);\t\t\n\t\t\t\t$this->renderPartial('somemore', array('photos'=>$allusersphotos));\n\t\t\t}\n\t\t\telseif($_GET['act']=='females') \n\t\t\t{\n\t\t\t\t$criteria = new CDbCriteria();\t\n\t\t\t\t$criteria->condition = 'userDetails.user_details_gender = \"0\"';\n\t\t\t\t$criteria->group = 'userDetails.user_id';\n\t\t\t\t$criteria->order = 'userDetails.user_rank_worldwide ASC';\t\t\t\t\n\t\t\t\tif($_GET['l']<6){\n\t\t\t\t\t$criteria->limit=$_GET['l']; //Total No of Records\n\t\t\t\t\t$criteria->offset=$_GET['l']-2; //Starts from..\n\t\t\t\t} else{\n\t\t\t\t\t$criteria->limit = $_GET['l']-2;\n\t\t\t\t\t$criteria->offset = $_GET['l'];\n\t\t\t\t}\t\t\t\t\n\t\t\t\t$allusersphotos=Photos::model()->with('user', 'user.userDetails')->findAll($criteria);\t\t\n\t\t\t\t$this->renderPartial('somemore', array('photos'=>$allusersphotos));\n\t\t\t}\n\t\t\telseif($_GET['act']=='country')\n\t\t\t{\n\t\t\t\t$criteria = new CDbCriteria();\n\t\t\t\t$c=Yii::app()->request->cookies['presentC']->value;\n\t\t\t\t$criteria->condition = \"exists(select * from photos where user_id=t.user_id) and userLocation.user_location_country LIKE '%$c%'\";\n\t\t\t\t$criteria->limit=$_GET['l'];\n\t\t\t\t$criteria->offset=$_GET['l']-2;\n\t\t\t\t$allusersphotos=Users::model()->with('photos','userDetails', 'userLocation')->findAll($criteria); \n\t\t\t\t$this->render('somemorenewmembers', array('photos'=>$allusersphotos));\n\t\t\t}\n\t\t\telseif($_GET['act']=='hashtags')\n\t\t\t{\t\t\t\t\n\t\t\t\t//To show Card wrt to selected HashTags..a Kind of Filter\n\t\t\t\t$photoidArray = array();\n\t\t\t\t$allusersphotos = '';\n\t\t\t\t$hid=Yii::app()->request->cookies['presentH']->value;\n\t\t\t\t$criteria = new CDbCriteria();\n\t\t\t\t$criteria->condition = \"t.hashtags_id=$hid\";\t\t\n\t\t\t\t$photos=PhotosHashtags::model()->findAll($criteria);\n\t\t\t\tif(isset($photos) && count($photos)>0){\n\t\t\t\t\tforeach($photos as $sp)\n\t\t\t\t\t$photoidArray[]=$sp->photos_id;\n\t\t\t\t}\n\t\t\t\tunset($photos);\n\t\t\t\tunset($criteria);\n\t\t\t\tif(count($photoidArray)>0)\n\t\t\t\t{\n\t\t\t\t\t$criteria = new CDbCriteria();\n\t\t\t\t\t$criteria->addInCondition('t.photos_id',$photoidArray);\n\t\t\t\t\t$criteria->group = 't.user_id';\n\t\t\t\t\tif($_GET['l']<6){\n\t\t\t\t\t\t$criteria->limit=$_GET['l']; //Total No of Records\n\t\t\t\t\t\t$criteria->offset=$_GET['l']-2; //Starts from..\n\t\t\t\t\t} else{\n\t\t\t\t\t\t$criteria->limit = $_GET['l']-2;\n\t\t\t\t\t\t$criteria->offset = $_GET['l'];\n\t\t\t\t\t}\t\t\t\t\n\t\t\t\t\t$allusersphotos=Photos::model()->with('user','user.userDetails')->findAll($criteria);\n\t\t\t\t}\n\t\t\t\t$this->renderPartial('somemore', array('photos'=>$allusersphotos,'pageflag'=>'hashtag','pageflagid'=>$photoidArray));\t\t\t\t\n\t\t\t}\n\t\t\telseif($_GET['act']=='following')\n\t\t\t{\n\t\t\t\t$id=Yii::app()->user->id;\n\t\t\t\t$criteria = new CDbCriteria();\n\t\t\t\t$criteria->condition = \"t.user_id=$id and exists(select * from photos where user_id=t.follow_id)\";\n\t\t\t\t$criteria->limit=$_GET['l'];\n\t\t\t\t$criteria->offset=$_GET['l']-2;\n\t\t\t\t$allusersphotos=UsersFollow::model()->with('follow', 'follow.userDetails', 'follow.photos')->findAll($criteria); \n\t\t\t\t$this->render('somemorefollowing', array('photos'=>$allusersphotos));\n\t\t\t}\n\t\t}\n\t\tYii::app()->end();\n\t}", "public function index()\n {\n $data = array(\n 'title' => 'Dashboard',\n 'authorCount' => Author::count('id'),\n 'bookCount' => Book::count('id'),\n 'issuedCount' => IssuedBook::where('status','issued')->count('id'),\n 'memberCount' => Member::count('id'),\n 'fictionCount' => Book::where('section_id', 5)->count('id'),\n 'circulationCount' => Book::where('section_id', 1)->count('id'),\n 'periodicalCount' => Book::where('section_id', 2)->count('id'),\n 'generalCount' => Book::where('section_id', 3)->count('id'),\n 'childrenCount' => Book::where('section_id', 4)->count('id'),\n 'booksWeeklyReport' => Book::where('created_at', '>=', Carbon::today()->subDays(7))->count('id'),\n 'issuedWeeklyReport' => IssuedBook::where('created_at', '>=', Carbon::today()->subDays(7))\n ->where('status', 'issued')\n ->count('id'),\n 'returnedWeeklyReport' => IssuedBook::where('created_at', '>=', Carbon::today()->subDays(7))\n ->where('status', 'returned')\n ->count('id'),\n 'membersWeeklyReport' => Member::where('created_at', '>=', Carbon::today()->subDays(7))->count('id'),\n 'lastMembers' => Member::orderBy('created_at', 'desc')->take(5)->get(), \n 'lastBooks' => DB::table('books')\n ->select('books.book_title as title', 'authors.author_name as author')\n ->join('authors', 'authors.id', '=', 'books.author_id')\n ->take(5)\n ->orderBy('books.created_at', 'desc')\n ->get(),\n );\n return view('pages.dashboard')->with($data);\n }", "function getCount ($data){\nreturn count($data);\n \n}", "abstract protected function prepareTotalCount();", "public function index()\n {\n return Response::create([\"total\" => GoodSearchItem::all('id')->count()]);\n }", "public function getTotalCount();", "public function getTotalCount();", "public function getTotalCount();", "public function index()\n {\n $count = Count::all();\n return response()->json($count);\n }", "public function index() {\n $categories = $this->category->model->where('parent_id', null)->orderBy('id', 'asc')->paginate(15);\n \n foreach ($categories as $category) { \n $category['products_count']=$category->articles()->count();\n }\n\n $all_categories = $this->category->model->all();\n $breadcrumbs = [['url' => '' , 'name' => trans('text.categories') ]];\n $category = null;\n return compact('categories', 'all_categories', 'breadcrumbs', 'category');\n }", "public function count(){\n \n }", "public function counter()\n {\n \n \n return view('counter') \n \n ->with('tags_count' , Tag::all()->count() ) \n ->with('post_count' , Post::all()->count() )\n ->with('users_count' , User::all()->count())\n ->with('categories_count' , Category::all()->count())\n ->with('trashed_count' , Post::onlyTrashed()->get()->count()) ;\n }", "private function _count_page()\n {\n $count_career = $this->core_model->count('career');\n return ceil($count_career / 4);\n }", "public function index()\n {\n return Press::sorted()->paginate(6);\n }", "public static function record_count()\r\r\n {\r\r\n global $wpdb;\r\r\n $result = false;\r\r\n $totalRecords = 0;\r\r\n $countKey = 'total';\r\r\n $mitambo_json_api = wpsearchconsole::getInstance()->mitambo_json_api;\r\r\n $lastCollectDate = $mitambo_json_api->last_collect_date;\r\r\n $tabName = List_of_Data::getCurrentTabName(isset($_GET['tab']) ? $_GET['tab'] : 1);\r\r\n $type = List_of_Data::getDefaultType($tabName);\r\r\n $type = (isset($_GET['type']) ? $_GET['type'] : $type);\r\r\n\r\r\n $sql = \"SELECT json_value FROM {$wpdb->prefix}wpsearchconsole_data\";\r\r\n\r\r\n $sql .= \" WHERE api_key = '$tabName'\";\r\r\n $sql .= ($tabName == 'keywords' && $type == 0) ? \" AND api_subkey = '$type'\" : \"\";\r\r\n $sql .= ($type && $type != 'all') ? \" AND api_subkey = '$type'\" : \"\";\r\r\n $sql .= \" AND datetime = '\" . substr($lastCollectDate, 0, 10) . \"'\";\r\r\n $sql .= \"GROUP BY api_subkey\";\r\r\n\r\r\n if ($tabName == 'duplication') {\r\r\n $countKey = 'DuplicateGroupsCount';\r\r\n }\r\r\n $response = $wpdb->get_results($sql);\r\r\n foreach ($response as $key => $val) {\r\r\n\r\r\n if (!empty($val) && array_key_exists('json_value', $val)) {\r\r\n\r\r\n $result = json_decode($val->json_value);\r\r\n $totalRecords += ($result && array_key_exists($countKey, $result)) ? $result->$countKey : 0;\r\r\n }\r\r\n }\r\r\n\r\r\n return $totalRecords;\r\r\n }", "public function count();", "public function count();", "public function count();", "public function count();", "public function count();", "public function count();", "public function count();", "public function count();", "public function count();", "public function count();", "public function count();" ]
[ "0.66539854", "0.6441428", "0.6441428", "0.64412236", "0.64246374", "0.6351484", "0.6351484", "0.6351484", "0.63409275", "0.6337255", "0.6337044", "0.63351464", "0.63086027", "0.63076586", "0.6305647", "0.6290673", "0.62773985", "0.62707794", "0.6249102", "0.62377316", "0.6211573", "0.61865276", "0.61798424", "0.6171828", "0.6169623", "0.6147627", "0.6123533", "0.612236", "0.61193824", "0.61131644", "0.6097852", "0.6091012", "0.60747147", "0.6069055", "0.60690224", "0.60679615", "0.6064103", "0.6064103", "0.6062365", "0.60551363", "0.6040561", "0.6034059", "0.60299397", "0.60208654", "0.6019959", "0.6018736", "0.6018736", "0.60184926", "0.6005645", "0.60014147", "0.59985805", "0.59854054", "0.59823525", "0.5979826", "0.5972864", "0.59704655", "0.59702855", "0.5966188", "0.59605384", "0.5959843", "0.595781", "0.5952796", "0.59524435", "0.59455377", "0.59452003", "0.5943895", "0.593888", "0.59385765", "0.5913056", "0.5910705", "0.5903178", "0.5900023", "0.5897105", "0.5893035", "0.58891815", "0.5886612", "0.5885835", "0.5884975", "0.5883601", "0.58764607", "0.5874962", "0.5874962", "0.5874962", "0.5869817", "0.58696216", "0.58691067", "0.58682644", "0.58656794", "0.586464", "0.58542675", "0.5849528", "0.5849528", "0.5849528", "0.5849528", "0.5849528", "0.5849528", "0.5849528", "0.5849528", "0.5849528", "0.5849528", "0.5849528" ]
0.0
-1
////////////////STATEMENT AS daily ////////////////////district info
public function getYear() { $allYear=array(); $query="SELECT YEAR (input_date) as cyear FROM `consume_details` group by YEAR (input_date)"; // Utility::dd() $result=mysqli_query($this->conn,$query); while ($row=mysqli_fetch_assoc($result)) { $allYear['cyear']=$row; } return $allYear; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function viewdistrict(){\r\n\t\t//sql query\r\n\t\t$sql = \"SELECT * FROM districts\";\r\n\t\t//return executed query\r\n\t\treturn $this->db_query($sql);\r\n\t}", "public function getDistrictData($input);", "public function allDistrict(){\n $str = '';\n $this->CI->load->model('supervisor');\n $value = $this->CI->supervisor->getDistrict();\n foreach($value as $val):\n $str.=$val->districtId . ') '. $val->districtName.'<br>';\n endforeach;\n return $str;\n }", "public function get_district(){\n\t\t$this->layout = 'ajax';\n\t\t$this->Client->load_district($this->request->query['id']);\n\t\t$this->render(false);\n\t\tdie;\n\t}", "public function getDistrict()\n {\n return $this->district;\n }", "public function getDistrict()\n {\n return $this->district;\n }", "public function getDistrictid()\n {\n return $this->districtid;\n }", "public function defineDistrict()\n\t {\n\t\tif ($this->_slicer->valid() === true)\n\t\t {\n\t\t\t$this->address = $this->_slicer->street . \", \" . $this->_slicer->house;\n\n\t\t\tif ($this->_gis->district !== null)\n\t\t\t {\n\t\t\t\t$this->district = $this->_gis->district;\n\t\t\t\t$this->_gis->setConnection($this->_db);\n\t\t\t\t$this->_gis->write();\n\t\t\t }\n\t\t\telse\n\t\t\t {\n\t\t\t\t$this->_gis->setConnection($this->_db);\n\t\t\t\tif ($this->_gis->location === null && isset($this->lat) === true && isset($this->lang) === true)\n\t\t\t\t {\n\t\t\t\t\t$this->_gis->setLocation([\"lat\" => $this->lat, \"lang\" => $this->lang]);\n\t\t\t\t } //end if\n\n\t\t\t\t$this->_gis->defineDistrict();\n\t\t\t\tif ($this->_gis->district !== null)\n\t\t\t\t {\n\t\t\t\t\t$this->district = $this->_gis->district;\n\t\t\t\t\t$this->_gis->write();\n\t\t\t\t } //end if\n\n\t\t\t } //end if\n\n\t\t } //end if\n\n\t }", "private function loadAllDistricts(){\n \n\n }", "public function show(District $district)\n {\n //\n }", "public function show(District $district)\n {\n //\n }", "public function getDistrict() :string\n {\n return $this->district;\n }", "public function run()\n {\n $subDistricts = [\n [1612010004,1612010,\"TALANG UBI BARAT\" ],\n [1612010005,1612010,\"PASAR BHAYANGKARA\" ],\n [1612010006,1612010,\"TALANG UBI SELATAN\" ],\n [1612010007,1612010,\"TALANG UBI TIMUR\" ],\n [1612010008,1612010,\"HANDAYANI MULIA\" ],\n [1612010009,1612010,\"SIMPANG TAIS\" ],\n [1612010010,1612010,\"TALANG BULANG\" ],\n [1612010011,1612010,\"BENUANG\" ],\n [1612010012,1612010,\"BERUGE DARAT\" ],\n [1612010013,1612010,\"KERTADEWA\" ],\n [1612010014,1612010,\"SINAR DEWA\" ],\n [1612010015,1612010,\"PANTA DEWA\" ],\n [1612010016,1612010,\"SUNGAI IBUL\" ],\n [1612010017,1612010,\"SUKAMAJU\" ],\n [1612010018,1612010,\"TALANG UBI UTARA\" ],\n [1612010019,1612010,\"SUKA DAMAI\" ],\n [1612010020,1612010,\"TALANG AKAR\" ],\n [1612020001,1612020,\"BUMIAYU\" ],\n [1612020002,1612020,\"TANAH ABANG SELATAN\" ],\n [1612020003,1612020,\"SUKA MANIS\" ],\n [1612020004,1612020,\"MUARA DUA\" ],\n [1612020005,1612020,\"PETULAI\" ],\n [1612020006,1612020,\"TANAH ABANG UTARA\" ],\n [1612020007,1612020,\"MUARA SUNGAI\" ],\n [1612020008,1612020,\"CURUP\" ],\n [1612020009,1612020,\"RAJA\" ],\n [1612020010,1612020,\"RAJA BARAT\" ],\n [1612020011,1612020,\"HARAPAN JAYA\" ],\n [1612020012,1612020,\"LUNAS JAYA\" ],\n [1612020013,1612020,\"SUKARAJA\" ],\n [1612020014,1612020,\"SEDUPI\" ],\n [1612020015,1612020,\"TANJUNG DALAM\" ],\n [1612020016,1612020,\"PANDAN\" ],\n [1612020017,1612020,\"MODONG\" ],\n [1612030001,1612030,\"PENGABUAN\" ],\n [1612030002,1612030,\"PENGABUAN TIMUR\" ],\n [1612030003,1612030,\"PERAMBATAN\" ],\n [1612030004,1612030,\"BETUNG\" ],\n [1612030005,1612030,\"BETUNG SELATAN\" ],\n [1612030006,1612030,\"BETUNG BARAT\" ],\n [1612030007,1612030,\"KARANG AGUNG\" ],\n [1612030008,1612030,\"TANJUNG KURUNG\" ],\n [1612040001,1612040,\"PURUN TIMUR\" ],\n [1612040002,1612040,\"PURUN\" ],\n [1612040003,1612040,\"BABAT\" ],\n [1612040004,1612040,\"SUNGAI LANGAN\" ],\n [1612040005,1612040,\"SEPANTAN JAYA\" ],\n [1612040006,1612040,\"GUNUNG RAJA\" ],\n [1612040007,1612040,\"SUKA RAJA\" ],\n [1612040008,1612040,\"GUNUNG MENANG\" ],\n [1612040009,1612040,\"MANGKUNEGARA\" ],\n [1612040010,1612040,\"RAJA JAYA\" ],\n [1612040011,1612040,\"MANGKUNEGARA TIMUR\" ],\n [1612040012,1612040,\"AIR ITAM\" ],\n [1612040013,1612040,\"AIR ITAM TIMUR\" ],\n [1612040014,1612040,\"SIMPANG TIGA BABAT\" ],\n [1612040015,1612040,\"SIMPANG BABAT\" ],\n [1612050001,1612050,\"TAMBAK\" ],\n [1612050002,1612050,\"SUKA RAMI\" ],\n [1612050003,1612050,\"TANJUNG BARU\" ],\n [1612050004,1612050,\"MUARA IKAN\" ],\n [1612050005,1612050,\"KOTA BARU\" ],\n [1612050006,1612050,\"TANDING MARGA\" ],\n [1612050007,1612050,\"KARANG TANDING\" ],\n [1612050008,1612050,\"LUBUK TAMPUI\" ],\n [1612050009,1612050,\"PRABUMENANG\" ],\n [1612050010,1612050,\"TEMPIRAI SELATAN\" ],\n [1612050011,1612050,\"TEMPIRAI UTARA\" ],\n [1612050012,1612050,\"TEMPIRAI TIMUR\" ],\n [1612050013,1612050,\"TEMPIRAI\" ],\n [1612050014,1612050,\"MADU KINCING\" ],\n [1612050015,1612050,\"TANDING JAYA\" ],\n [1613010001,1613010,\"KUTO TANJUNG\" ],\n [1613010002,1613010,\"NAPAL LICIN\" ],\n [1613010003,1613010,\"SOSOKAN\" ],\n [1613010004,1613010,\"MUARA KULAM\" ],\n [1613010005,1613010,\"MUARA KUIS\" ],\n [1613010006,1613010,\"PULAU KIDAK\" ],\n [1613010007,1613010,\"JANGKAT\" ],\n [1613020001,1613020,\"LUBUK KUMBUNG\" ],\n [1613020002,1613020,\"BUKIT ULU\" ],\n [1613020003,1613020,\"BUKIT LANGKAP\" ],\n [1613020004,1613020,\"RANTAU JAYA\" ],\n [1613020005,1613020,\"SUKARAJA\" ],\n [1613020006,1613020,\"MUARA BATANG EMPU\" ],\n [1613020007,1613020,\"RANTAU TELANG\" ],\n [1613020008,1613020,\"TANJUNG AGUNG\" ],\n [1613020009,1613020,\"SUKAMENANG\" ],\n [1613020010,1613020,\"TERUSAN\" ],\n [1613020011,1613020,\"KARANG JAYA\" ],\n [1613020012,1613020,\"EMBACANG BARU\" ],\n [1613020013,1613020,\"EMBACANG BARU ILIR\" ],\n [1613020014,1613020,\"EMBACANG LAMA\" ],\n [1613020015,1613020,\"MUARA TIKU\" ],\n [1613030001,1613030,\"LUBUK MAS\" ],\n [1613030002,1613030,\"PANGKALAN\" ],\n [1613030003,1613030,\"TELADAS\" ],\n [1613030004,1613030,\"KERTA DEWA\" ],\n [1613030005,1613030,\"PULAU LEBAR\" ],\n [1613030006,1613030,\"SUNGAI BAUNG\" ],\n [1613030007,1613030,\"SURULANGUN\" ],\n [1613030008,1613030,\"SUKOMORO\" ],\n [1613030009,1613030,\"PASAR SURULANGUN\" ],\n [1613030010,1613030,\"LESUNG BATU MUDA\" ],\n [1613030011,1613030,\"LESUNG BATU\" ],\n [1613030012,1613030,\"LUBUK KEMANG\" ],\n [1613030013,1613030,\"REMBAN\" ],\n [1613030014,1613030,\"SUNGAI KIJANG\" ],\n [1613030015,1613030,\"SUNGAI JAUH\" ],\n [1613030016,1613030,\"SIMPANG NIBUNG RAWAS\" ],\n [1613030017,1613030,\"SUNGAI LANANG\" ],\n [1613040001,1613040,\"BATU GAJAH\" ],\n [1613040002,1613040,\"TANJUNG BERINGIN\" ],\n [1613040003,1613040,\"NOMAN\" ],\n [1613040004,1613040,\"NOMAN BARU\" ],\n [1613040005,1613040,\"BATU GAJAH BARU\" ],\n [1613040006,1613040,\"MAUR BARU\" ],\n [1613040007,1613040,\"MAUR LAMA\" ],\n [1613040008,1613040,\"BINGIN RUPIT\" ],\n [1613040009,1613040,\"BERINGIN JAYA\" ],\n [1613040010,1613040,\"MUARA RUPIT\" ],\n [1613040011,1613040,\"KARANG ANYAR\" ],\n [1613040012,1613040,\"KARANG WARU\" ],\n [1613040013,1613040,\"LAWANG AGUNG\" ],\n [1613040014,1613040,\"LUBUK RUMBAI\" ],\n [1613040015,1613040,\"LUBUK RUMBAI BARU\" ],\n [1613040016,1613040,\"SUNGAI JERNIH\" ],\n [1613040017,1613040,\"PANTAI\" ],\n [1613050001,1613050,\"KERTASARI\" ],\n [1613050002,1613050,\"RANTAU KADAM\" ],\n [1613050003,1613050,\"KARANG DAPO I\" ],\n [1613050004,1613050,\"KARANG DAPO\" ],\n [1613050005,1613050,\"SETIA MARGA\" ],\n [1613050006,1613050,\"BIARO BARU\" ],\n [1613050007,1613050,\"BIARO LAMA\" ],\n [1613050008,1613050,\"ARINGIN\" ],\n [1613050009,1613050,\"BINA KARYA\" ],\n [1613060001,1613060,\"MANDI ANGIN\" ],\n [1613060002,1613060,\"BERINGIN MAKMUR I\" ],\n [1613060003,1613060,\"BATU KUCING\" ],\n [1613060004,1613060,\"PAUH\" ],\n [1613060005,1613060,\"MEKARSARI\" ],\n [1613060006,1613060,\"KETAPAT BENING\" ],\n [1613060007,1613060,\"AIR BENING\" ],\n [1613060008,1613060,\"PAUH I\" ],\n [1613060009,1613060,\"BELANI\" ],\n [1613060010,1613060,\"TANJUNG RAJA\" ],\n [1613060011,1613060,\"BERINGIN MAKMUR II\" ],\n [1613060012,1613060,\"BINGIN TELUK\" ],\n [1613060013,1613060,\"BERINGIN SAKTI\" ],\n [1613070001,1613070,\"JADI MULYA I\" ],\n [1613070002,1613070,\"KERANI JAYA\" ],\n [1613070003,1613070,\"JADI MULYA\" ],\n [1613070004,1613070,\"SUMBER MAKMUR\" ],\n [1613070005,1613070,\"MULYA JAYA\" ],\n [1613070006,1613070,\"KELUMPANG JAYA\" ],\n [1613070007,1613070,\"SRIJAYA MAKMUR\" ],\n [1613070008,1613070,\"KARYA MAKMUR\" ],\n [1613070009,1613070,\"BUMI MAKMUR\" ],\n [1613070010,1613070,\"SUMBER SARI\" ],\n [1613070011,1613070,\"TEBING TINGGI\" ],\n [1671010006,1671010,\"35 ILIR\" ],\n [1671010007,1671010,\"32 ILIR\" ],\n [1671010008,1671010,\"30 ILIR\" ],\n [1671010009,1671010,\"KEMANG MANIS\" ],\n [1671010010,1671010,\"29 ILIR\" ],\n [1671010011,1671010,\"28 ILIR\" ],\n [1671010012,1671010,\"27 ILIR\" ],\n [1671011001,1671011,\"PULO KERTO\" ],\n [1671011002,1671011,\"GANDUS\" ],\n [1671011003,1671011,\"KARANG JAYA\" ],\n [1671011004,1671011,\"KARANG ANYAR\" ],\n [1671011005,1671011,\"36 ILIR\" ],\n [1671020005,1671020,\"15 ULU\" ],\n [1671020008,1671020,\"1 ULU\" ],\n [1671020009,1671020,\"TUAN KENTANG\" ],\n [1671020010,1671020,\"2 ULU\" ],\n [1671020011,1671020,\"3-4 ULU\" ],\n [1671020012,1671020,\"5 ULU\" ],\n [1671020013,1671020,\"7 ULU\" ],\n [1671020014,1671020,\"8 ULU\" ],\n [1671020015,1671020,\"SILABERANTI\" ],\n [1671020016,1671020,\"9/10 ULU\" ],\n [1671021001,1671021,\"KARYA JAYA\" ],\n [1671021002,1671021,\"KERAMASAN\" ],\n [1671021003,1671021,\"KEMANG AGUNG\" ],\n [1671021004,1671021,\"KEMAS RINDO\" ],\n [1671021005,1671021,\"OGAN BARU\" ],\n [1671021006,1671021,\"KERTAPATI\" ],\n [1671030007,1671030,\"SENTOSA\" ],\n [1671030008,1671030,\"16 ULU\" ],\n [1671030010,1671030,\"TANGGA TAKAT\" ],\n [1671030011,1671030,\"14 ULU\" ],\n [1671030012,1671030,\"13 ULU\" ],\n [1671030013,1671030,\"12 ULU\" ],\n [1671030014,1671030,\"11 ULU\" ],\n [1671031001,1671031,\"PLAJU DARAT\" ],\n [1671031002,1671031,\"TALANG PUTRI\" ],\n [1671031003,1671031,\"KOMPERTA\" ],\n [1671031004,1671031,\"PLAJU ILIR\" ],\n [1671031005,1671031,\"TALANG BUBUK\" ],\n [1671031006,1671031,\"PLAJU ULU\" ],\n [1671031007,1671031,\"BAGUS KUNING\" ],\n [1671040001,1671040,\"BUKIT LAMA\" ],\n [1671040002,1671040,\"26 ILIR I\" ],\n [1671040009,1671040,\"LOROK PAKJO\" ],\n [1671040010,1671040,\"DEMANG LEBAR DAUN\" ],\n [1671040011,1671040,\"BUKIT BARU\" ],\n [1671040012,1671040,\"SIRING AGUNG\" ],\n [1671041001,1671041,\"TALANG SEMUT\" ],\n [1671041002,1671041,\"22 ILIR\" ],\n [1671041003,1671041,\"19 ILIR\" ],\n [1671041004,1671041,\"23 ILIR\" ],\n [1671041005,1671041,\"26 ILIR\" ],\n [1671041006,1671041,\"24 ILIR\" ],\n [1671050001,1671050,\"18 ILIR\" ],\n [1671050002,1671050,\"16 ILIR\" ],\n [1671050003,1671050,\"13 ILIR\" ],\n [1671050004,1671050,\"14 ILIR\" ],\n [1671050005,1671050,\"15 ILIR\" ],\n [1671050006,1671050,\"17 ILIR\" ],\n [1671050007,1671050,\"KEPANDEAN BARU\" ],\n [1671050008,1671050,\"20 ILIR I\" ],\n [1671050009,1671050,\"SEI PANGERAN\" ],\n [1671050011,1671050,\"20 ILIR III\" ],\n [1671050017,1671050,\"20 ILIR IV\" ],\n [1671051001,1671051,\"SEKIP JAYA\" ],\n [1671051002,1671051,\"PAHLAWAN\" ],\n [1671051003,1671051,\"20 ILIR II\" ],\n [1671051004,1671051,\"PIPA REJA\" ],\n [1671051005,1671051,\"TALANG AMAN\" ],\n [1671051006,1671051,\"ARIO KEMUNING\" ],\n [1671060001,1671060,\"10 ILIR\" ],\n [1671060002,1671060,\"11 ILIR\" ],\n [1671060003,1671060,\"KUTO BATU\" ],\n [1671060004,1671060,\"LAWANG KIDUL\" ],\n [1671060005,1671060,\"3 ILIR\" ],\n [1671060006,1671060,\"1 ILIR\" ],\n [1671060007,1671060,\"SUNGAI BUAH\" ],\n [1671060008,1671060,\"2 ILIR\" ],\n [1671060009,1671060,\"5 ILIR\" ],\n [1671060010,1671060,\"DUKU\" ],\n [1671060011,1671060,\"9 ILIR\" ],\n [1671060012,1671060,\"8 ILIR\" ],\n [1671061001,1671061,\"SEI LAIS\" ],\n [1671061002,1671061,\"SEI SELINCAH\" ],\n [1671061003,1671061,\"SEI SELAYUR\" ],\n [1671061004,1671061,\"KALIDONI\" ],\n [1671061005,1671061,\"BUKIT SANGKAL\" ],\n [1671070001,1671070,\"SUKAMAJU\" ],\n [1671070002,1671070,\"SIALANG\" ],\n [1671070003,1671070,\"SAKO\" ],\n [1671070007,1671070,\"SAKO BARU\" ],\n [1671071001,1671071,\"LEBONG GAJAH\" ],\n [1671071002,1671071,\"SRIMULYO\" ],\n [1671071003,1671071,\"SUKA MULYA\" ],\n [1671071004,1671071,\"KARYA MULYA\" ],\n [1671080002,1671080,\"SUKA BANGUN\" ],\n [1671080003,1671080,\"SUKAJAYA\" ],\n [1671080004,1671080,\"SUKARAMI\" ],\n [1671080008,1671080,\"KEBUN BUNGA\" ],\n [1671080009,1671080,\"TALANG BETUTU\" ],\n [1671080010,1671080,\"SUKODADI\" ],\n [1671080011,1671080,\"TALANG JAMBE\" ],\n [1671081001,1671081,\"SRIJAYA\" ],\n [1671081002,1671081,\"KARYA BARU\" ],\n [1671081003,1671081,\"TALANG KELAPA\" ],\n [1671081004,1671081,\"ALANG ALANG LEBAR\" ],\n [1672010001,1672010,\"RAMBANG SENULING\" ],\n [1672010002,1672010,\"TANJUNG RAMBANG\" ],\n [1672010003,1672010,\"KARANG BINDU\" ],\n [1672010005,1672010,\"KARYA MULYA\" ],\n [1672010006,1672010,\"SINAR RAMBANG\" ],\n [1672010007,1672010,\"JUNGAI\" ],\n [1672010008,1672010,\"TALANG BATU\" ],\n [1672010009,1672010,\"KARANGAN\" ],\n [1672010010,1672010,\"KEMANG TANDUK\" ],\n [1672020003,1672020,\"KARANG RAJA\" ],\n [1672020004,1672020,\"MUARA DUA\" ],\n [1672020005,1672020,\"GUNUNG IBUL BARAT\" ],\n [1672020006,1672020,\"GUNUNG IBUL\" ],\n [1672020007,1672020,\"KARANG JAYA\" ],\n [1672020008,1672020,\"TUGU KECIL\" ],\n [1672020009,1672020,\"PRABU JAYA\" ],\n [1672020010,1672020,\"SUKAJADI\" ],\n [1672021001,1672021,\"TANJUNG MENANG\" ],\n [1672021002,1672021,\"TANJUNG RAMAN\" ],\n [1672021003,1672021,\"SUKA RAJA\" ],\n [1672021004,1672021,\"MAJASARI\" ],\n [1672030001,1672030,\"GUNUNG KEMALA\" ],\n [1672030002,1672030,\"PATIH GALUNG\" ],\n [1672030003,1672030,\"PRABUMULIH\" ],\n [1672030008,1672030,\"MUNTANG TAPUS\" ],\n [1672030011,1672030,\"PAYU PUTAT\" ],\n [1672030012,1672030,\"TANJUNG TELANG\" ],\n [1672031001,1672031,\"WONOSARI\" ],\n [1672031002,1672031,\"PASAR PRABUMULIH\" ],\n [1672031003,1672031,\"MANGGA BESAR\" ],\n [1672031004,1672031,\"ANAK PETAI\" ],\n [1672031005,1672031,\"PASAR II PRABUMULIH\" ],\n [1672040003,1672040,\"SUNGAI MEDANG\" ],\n [1672040004,1672040,\"MUARA SUNGAI\" ],\n [1672040005,1672040,\"CAMBAI\" ],\n [1672040006,1672040,\"SINDUR\" ],\n [1672040007,1672040,\"PANGKUL\" ],\n [1673010001,1673010,\"PENJALANG\" ],\n [1673010002,1673010,\"LUBUK BUNTAK\" ],\n [1673010003,1673010,\"PERAHU DIPO\" ],\n [1673010004,1673010,\"KANCE DIWE\" ],\n [1673010005,1673010,\"ATUNG BUNGSU\" ],\n [1673011001,1673011,\"CANDI JAYA\" ],\n [1673011002,1673011,\"JOKOH\" ],\n [1673011003,1673011,\"PELANG KENIDAI\" ],\n [1673011004,1673011,\"PADANG TEMU\" ],\n [1673011005,1673011,\"KARANG DALO\" ],\n [1673020001,1673020,\"BURUNG DINANG\" ],\n [1673020002,1673020,\"MUARA SIBAN\" ],\n [1673020003,1673020,\"REBA TINGGI\" ],\n [1673020004,1673020,\"JANGKAR MAS\" ],\n [1673020005,1673020,\"PAGAR WANGI\" ],\n [1673020006,1673020,\"BUMI AGUNG\" ],\n [1673020007,1673020,\"AGUNG LAWANGAN\" ],\n [1673030001,1673030,\"TANJUNG AGUNG\" ],\n [1673030002,1673030,\"ULU RURAH\" ],\n [1673030003,1673030,\"TUMBAK ULAS\" ],\n [1673030004,1673030,\"BASEMAH SERASAN\" ],\n [1673030005,1673030,\"TEBAT GIRI INDAH\" ],\n [1673030006,1673030,\"SIDOREJO\" ],\n [1673030007,1673030,\"NENDAGUNG\" ],\n [1673030008,1673030,\"GUNUNG DEMPO\" ],\n [1673040001,1673040,\"DEMPO MAKMUR\" ],\n [1673040002,1673040,\"BANGUN REJO\" ],\n [1673040003,1673040,\"CURUP JARE\" ],\n [1673040004,1673040,\"PAGAR ALAM\" ],\n [1673040005,1673040,\"SUKOREJO\" ],\n [1673040006,1673040,\"BANGUN JAYA\" ],\n [1673040007,1673040,\"BERINGIN JAYA\" ],\n [1673040008,1673040,\"ALUN DUA\" ],\n [1673040009,1673040,\"KURIPAN BABAS\" ],\n [1673040010,1673040,\"SELIBAR\" ],\n [1674011001,1674011,\"KAYU ARA\" ],\n [1674011002,1674011,\"WATAS LUBUK DURIAN\" ],\n [1674011003,1674011,\"LUBUK TANJUNG\" ],\n [1674011004,1674011,\"TANJUNG INDAH\" ],\n [1674011005,1674011,\"TANJUNG AMAN\" ],\n [1674011006,1674011,\"LUBUK AMAN\" ],\n [1674011007,1674011,\"PELITA JAYA\" ],\n [1674011008,1674011,\"BANDUNG UJUNG\" ],\n [1674011009,1674011,\"BANDUNG KIRI\" ],\n [1674011010,1674011,\"SUKAJADI\" ],\n [1674011011,1674011,\"MUARA ENIM\" ],\n [1674012001,1674012,\"SIDOREJO\" ],\n [1674012002,1674012,\"TAPAK LEBAR\" ],\n [1674012003,1674012,\"ULAK LEBAR\" ],\n [1674012004,1674012,\"BANDUNG KANAN\" ],\n [1674012005,1674012,\"KEPUTERAAN\" ],\n [1674012006,1674012,\"LUBUK LINGGAU ULU\" ],\n [1674012007,1674012,\"LUBUK LINGGAU ILIR\" ],\n [1674012008,1674012,\"PASAR PERMIRI\" ],\n [1674021001,1674021,\"RAHMA\" ],\n [1674021002,1674021,\"PERUMNAS RAHMA\" ],\n [1674021003,1674021,\"JUKUNG\" ],\n [1674021004,1674021,\"AIR KATI\" ],\n [1674021005,1674021,\"LUBUK BINJAI\" ],\n [1674021006,1674021,\"LUBUK KUPANG\" ],\n [1674021007,1674021,\"AIR TEMAM\" ],\n [1674022001,1674022,\"TABA PINGIN\" ],\n [1674022002,1674022,\"MONENG SEPATI\" ],\n [1674022003,1674022,\"MARGA MULYA\" ],\n [1674022004,1674022,\"MARGA RAHAYU\" ],\n [1674022005,1674022,\"TANAH PERIUK\" ],\n [1674022006,1674022,\"SIMPANG PERIUK\" ],\n [1674022007,1674022,\"KARANG KETUAN\" ],\n [1674022008,1674022,\"EKA MARGA\" ],\n [1674022009,1674022,\"SIRING AGUNG\" ],\n [1674031001,1674031,\"TABA JEMEKEH\" ],\n [1674031002,1674031,\"TABA KOJI\" ],\n [1674031003,1674031,\"BATU URIP TABA\" ],\n [1674031004,1674031,\"WATERVANG\" ],\n [1674031005,1674031,\"MAJAPAHIT\" ],\n [1674031006,1674031,\"AIR KUTI\" ],\n [1674031007,1674031,\"NIKAN JAYA\" ],\n [1674031008,1674031,\"TABA LESTARI\" ],\n [1674032001,1674032,\"MESAT JAYA\" ],\n [1674032002,1674032,\"MESAT SENI\" ],\n [1674032003,1674032,\"JAWA KANAN\" ],\n [1674032004,1674032,\"JAWA KANAN SS\" ],\n [1674032005,1674032,\"JAWA KIRI\" ],\n [1674032006,1674032,\"WIRA KARYA\" ],\n [1674032007,1674032,\"DEMPO\" ],\n [1674032008,1674032,\"KARYA BHAKTI\" ],\n [1674032009,1674032,\"CEREME TABA\" ],\n [1674041001,1674041,\"SUMBER AGUNG\" ],\n [1674041002,1674041,\"PETANANG ULU\" ],\n [1674041003,1674041,\"PETANANG ILIR\" ],\n [1674041004,1674041,\"BELALAU I\" ],\n [1674041005,1674041,\"BELALAU II\" ],\n [1674041006,1674041,\"TABA BARU\" ],\n [1674041007,1674041,\"MARGO REJO\" ],\n [1674041008,1674041,\"MARGA BAKTI\" ],\n [1674041009,1674041,\"DURIAN RAMPAK\" ],\n [1674041010,1674041,\"TANJUNG RAYA\" ],\n [1674042001,1674042,\"ULAK SURUNG\" ],\n [1674042002,1674042,\"PASAR SATELIT\" ],\n [1674042003,1674042,\"KENANGA\" ],\n [1674042004,1674042,\"SENALANG\" ],\n [1674042005,1674042,\"BATU URIP\" ],\n [1674042006,1674042,\"MEGANG\" ],\n [1674042007,1674042,\"PONOROGO\" ],\n [1674042008,1674042,\"JOGOBOYO\" ],\n [1674042009,1674042,\"PUNCAK KEMUNING\" ],\n [1674042010,1674042,\"KALI SERAYU\" ],\n [1701040002,1701040,\"KETAPING\" ],\n [1701040003,1701040,\"TERULUNG\" ],\n [1701040004,1701040,\"MANGGUL\" ],\n [1701040005,1701040,\"TANJUNG BESAR\" ],\n [1701040030,1701040,\"LUBUK SIRIH ULU\" ],\n [1701040031,1701040,\"LUBUK SIRIH ILIR\" ],\n [1701040032,1701040,\"TANJUNG RAMAN\" ],\n [1701040033,1701040,\"KAYU KUNYIT\" ],\n [1701040050,1701040,\"KOTA PADANG\" ],\n [1701040051,1701040,\"MELAO\" ],\n [1701040052,1701040,\"GUNUNG SAKTI\" ],\n [1701040053,1701040,\"JERANGLAH RENDAH\" ],\n [1701040054,1701040,\"JERANGLAH TINGGI\" ],\n [1701040055,1701040,\"KEMBANG AYUN\" ],\n [1701040056,1701040,\"TAMBANGAN\" ],\n [1701040057,1701040,\"GUNUNG KEMBANG\" ],\n [1701040058,1701040,\"PADANG MANIS\" ],\n [1701040059,1701040,\"PADANG PANDAN\" ],\n [1701041006,1701041,\"KAMPUNG BARU\" ],\n [1701041007,1701041,\"PAGAR DEWA\" ],\n [1701041008,1701041,\"PASAR BARU\" ],\n [1701041013,1701041,\"KOTA MEDAN\" ],\n [1701041014,1701041,\"GUNUNG AYU\" ],\n [1701041015,1701041,\"PADANG NIUR\" ],\n [1701041016,1701041,\"TEBAT KUBU\" ],\n [1701041017,1701041,\"GELUMBANG\" ],\n [1701041018,1701041,\"PADANG KAPUK\" ],\n [1701041019,1701041,\"IBUL\" ],\n [1701041020,1701041,\"PADANG BERANGIN\" ],\n [1701042012,1701042,\"LAWANG AGUNG\" ],\n [1701042013,1701042,\"DURIAN SEBATANG\" ],\n [1701042014,1701042,\"PAJAR BULAN\" ],\n [1701042015,1701042,\"TANJUNG BESAR\" ],\n [1701042016,1701042,\"MUARA TIGA\" ],\n [1701042017,1701042,\"SUKANANTI\" ],\n [1701042018,1701042,\"TANJUNG NEGARA\" ],\n [1701042019,1701042,\"TANJUNG ALAM\" ],\n [1701042020,1701042,\"KEBAN AGUNG III\" ],\n [1701042021,1701042,\"KEBAN AGUNG II\" ],\n [1701042022,1701042,\"KEBAN AGUNG I\" ],\n [1701042023,1701042,\"PALAK SIRING\" ],\n [1701042024,1701042,\"BUMI AGUNG\" ],\n [1701042025,1701042,\"RANTAU SIALANG\" ],\n [1701042026,1701042,\"BATU AMPAR\" ],\n [1701042027,1701042,\"MUARA TIGA ILIR\" ],\n [1701042028,1701042,\"NANTI AGUNG\" ],\n [1701042029,1701042,\"KARANG AGUNG\" ],\n [1701042030,1701042,\"LUBUK RESAM\" ],\n [1701043001,1701043,\"TUMBUK TEBING\" ],\n [1701043002,1701043,\"PADANG BURNAI\" ],\n [1701043003,1701043,\"GUNUNG KAYO\" ],\n [1701043004,1701043,\"GINDOSULI\" ],\n [1701043005,1701043,\"TALANG INDAH\" ],\n [1701043006,1701043,\"TANJUNG TEBAT\" ],\n [1701043007,1701043,\"PADANG JAWI\" ],\n [1701043008,1701043,\"TANJUNG AUR\" ],\n [1701043009,1701043,\"PADANG NIBUNG\" ],\n [1701043010,1701043,\"KURIPAN\" ],\n [1701044001,1701044,\"PASAR BAWAH\" ],\n [1701044002,1701044,\"GUNUNG MESIR\" ],\n [1701044003,1701044,\"KETAPANG BESAR\" ],\n [1701044004,1701044,\"PADANG SIALANG\" ],\n [1701044005,1701044,\"BELAKANG GEDUNG\" ],\n [1701044006,1701044,\"PASAR MULIA\" ],\n [1701044007,1701044,\"BATU LAMBANG\" ],\n [1701044008,1701044,\"BATU KUNING\" ],\n [1701044009,1701044,\"TANJUNG MULIA\" ],\n [1701045001,1701045,\"LUBUK LADUNG\" ],\n [1701045002,1701045,\"AIR SULAU\" ],\n [1701045003,1701045,\"SUKAJAYA\" ],\n [1701045004,1701045,\"SUKARAJA\" ],\n [1701045005,1701045,\"LIMUS\" ],\n [1701045006,1701045,\"PENINDAIAN\" ],\n [1701045007,1701045,\"PADANG BINDU\" ],\n [1701045008,1701045,\"NANJUNGAN\" ],\n [1701045009,1701045,\"PAGAR BANYU\" ],\n [1701045010,1701045,\"SUKARAMI\" ],\n [1701045011,1701045,\"BETUNGAN\" ],\n [1701045012,1701045,\"KARANG CAYA\" ],\n [1701050001,1701050,\"MUARA PULUTAN\" ],\n [1701050002,1701050,\"MUARA PAYANG\" ],\n [1701050003,1701050,\"DURIAN SEGINIM\" ],\n [1701050004,1701050,\"BANDING AGUNG\" ],\n [1701050005,1701050,\"PAJAR BULAN\" ],\n [1701050006,1701050,\"PADANG LEBAR\" ],\n [1701050007,1701050,\"DUSUN TENGAH\" ],\n [1701050008,1701050,\"PADANG SIRING\" ],\n [1701050009,1701050,\"TANJUNG MENANG\" ],\n [1701050010,1701050,\"GUNUNG AYU\" ],\n [1701050011,1701050,\"KOTA BUMI BARU\" ],\n [1701050012,1701050,\"SINDANG BULAN\" ],\n [1701050013,1701050,\"SUKARAJA\" ],\n [1701050014,1701050,\"PASAR BARU\" ],\n [1701050015,1701050,\"DARAT SAWAH\" ],\n [1701050016,1701050,\"KOTA AGUNG\" ],\n [1701050017,1701050,\"MUARA DANAU\" ],\n [1701050018,1701050,\"BABATAN ILIR\" ],\n [1701050019,1701050,\"BABATAN ULU\" ],\n [1701050020,1701050,\"TANJUNG AGUNG\" ],\n [1701050021,1701050,\"DUSUN BARU\" ],\n [1701050022,1701050,\"DARAT SAWAH ULU\" ],\n [1701051001,1701051,\"SUKA BANDUNG\" ],\n [1701051002,1701051,\"PENANDINGAN\" ],\n [1701051003,1701051,\"MARAS\" ],\n [1701051004,1701051,\"KEBAN JATI\" ],\n [1701051005,1701051,\"TANJUNG BERINGIN\" ],\n [1701051006,1701051,\"PALAK BENGKERUNG\" ],\n [1701051007,1701051,\"SUKA NEGERI\" ],\n [1701051008,1701051,\"PINO BARU\" ],\n [1701051009,1701051,\"SUKA MAJU\" ],\n [1701051010,1701051,\"SUKARAMI\" ],\n [1701060013,1701060,\"PADANG LEBAR\" ],\n [1701060014,1701060,\"ANGGUT\" ],\n [1701060015,1701060,\"GEDUNG AGUNG\" ],\n [1701060016,1701060,\"TANJUNG ERAN\" ],\n [1701060017,1701060,\"TANJUNG AUR I\" ],\n [1701060018,1701060,\"PUDING\" ],\n [1701060019,1701060,\"AIR UMBAN\" ],\n [1701060020,1701060,\"MASAT\" ],\n [1701060024,1701060,\"ULAK LEBAR\" ],\n [1701060025,1701060,\"SEBILO\" ],\n [1701060026,1701060,\"GANJUH\" ],\n [1701060027,1701060,\"KOTA BUMI\" ],\n [1701060028,1701060,\"BATU BANDUNG\" ],\n [1701060029,1701060,\"BERINGIN DATAR\" ],\n [1701060030,1701060,\"PADANG MUMPO\" ],\n [1701060031,1701060,\"PADANG TAMBAK\" ],\n [1701061001,1701061,\"TANGGO RASO\" ],\n [1701061002,1701061,\"AIR KEMANG\" ],\n [1701061003,1701061,\"BANDUNG AYU\" ],\n [1701061004,1701061,\"TUNGKAL I\" ],\n [1701061005,1701061,\"TALANG PADANG\" ],\n [1701061006,1701061,\"PASAR PINO\" ],\n [1701061007,1701061,\"SELALI\" ],\n [1701061008,1701061,\"NANJUNGAN\" ],\n [1701061009,1701061,\"TUNGKAL II\" ],\n [1701061010,1701061,\"NAPAL MELINTANG\" ],\n [1701061011,1701061,\"SERANG BULAN\" ],\n [1701061012,1701061,\"KEMANG MANIS\" ],\n [1701061013,1701061,\"SUKA BANDUNG\" ],\n [1701061014,1701061,\"CINTO MANDI\" ],\n [1701061015,1701061,\"PAGAR GADING\" ],\n [1701061016,1701061,\"KEMBANG SERI\" ],\n [1701061017,1701061,\"KARANG CAYO\" ],\n [1701061018,1701061,\"TANJUNG AUR II\" ],\n [1701061019,1701061,\"PADANG BERIANG\" ],\n [1701061020,1701061,\"PADANG SERASAN\" ],\n [1701061022,1701061,\"TELAGA DALAM\" ],\n [1701061023,1701061,\"UPT TANJUNG AUR II\" ],\n [1701062001,1701062,\"BATU PANCO\" ],\n [1701062002,1701062,\"BATU KUNING\" ],\n [1701062003,1701062,\"BANDAR AGUNG\" ],\n [1701062004,1701062,\"MERAMBUNG\" ],\n [1701062005,1701062,\"SIMPANG PINO\" ],\n [1701062006,1701062,\"TALANG TINGGI\" ],\n [1701062007,1701062,\"KEBAN JATI\" ],\n [1701062008,1701062,\"LUBUK TAPI\" ],\n [1701062009,1701062,\"KAYU AJARAN\" ],\n [1701062010,1701062,\"AIR TENAM\" ],\n [1702020007,1702020,\"DURIAN MAS\" ],\n [1702020008,1702020,\"LUBUK MUMPO\" ],\n [1702020009,1702020,\"DUSUN BARU\" ],\n [1702020010,1702020,\"BEDENG SS\" ],\n [1702020011,1702020,\"KOTA PADANG\" ],\n [1702020012,1702020,\"SUKA RAMI\" ],\n [1702020013,1702020,\"TABA ANYAR\" ],\n [1702020014,1702020,\"DERATI\" ],\n [1702020015,1702020,\"KOTA PADANG BARU\" ],\n [1702020016,1702020,\"TANJUNG GELANG\" ],\n [1702021001,1702021,\"MERANTAU\" ],\n [1702021002,1702021,\"PERIANG\" ],\n [1702021003,1702021,\"BALAI BUTAR\" ],\n [1702021004,1702021,\"LUBUK BELIMBING I\" ],\n [1702021005,1702021,\"SARI PULAU\" ],\n [1702021006,1702021,\"SUKA MERINDU\" ],\n [1702021007,1702021,\"LUBUK BELIMBING II\" ],\n [1702021008,1702021,\"LUBUK BINGIN BARU\" ],\n [1702021009,1702021,\"LUBUK TUNJUNG\" ],\n [1702021010,1702021,\"SUKA KARYA\" ],\n [1702030028,1702030,\"KARANG BARU\" ],\n [1702030029,1702030,\"GURU AGUNG\" ],\n [1702030031,1702030,\"TANJUNG SANAI I\" ],\n [1702030032,1702030,\"TANJUNG SANAI II\" ],\n [1702030033,1702030,\"ULAK TANDING\" ],\n [1702030034,1702030,\"PASAR PADANG ULAK TANDING\" ],\n [1702030035,1702030,\"TABA TINGGI\" ],\n [1702030036,1702030,\"MUARA TELITA\" ],\n [1702030037,1702030,\"T A K T O I\" ],\n [1702030040,1702030,\"UJAN PANAS\" ],\n [1702030041,1702030,\"KASIE KASUBUN\" ],\n [1702030042,1702030,\"BELUMAI II\" ],\n [1702030043,1702030,\"BELUMAI I\" ],\n [1702030044,1702030,\"BUKIT BATU\" ],\n [1702030045,1702030,\"AIR KATI\" ],\n [1702031001,1702031,\"SINDANG JAYA\" ],\n [1702031006,1702031,\"SINDANG JATI\" ],\n [1702031007,1702031,\"AIR DINGIN\" ],\n [1702031008,1702031,\"KAYU MANIS\" ],\n [1702031011,1702031,\"BERINGIN TIGA\" ],\n [1702031012,1702031,\"PELALO\" ],\n [1702031013,1702031,\"BELITAR MUKA\" ],\n [1702031014,1702031,\"BELITAR SEBERANG\" ],\n [1702031015,1702031,\"TANJUNG AUR\" ],\n [1702031016,1702031,\"CAHAYA NEGERI\" ],\n [1702032001,1702032,\"KEPALA CURUP\" ],\n [1702032002,1702032,\"SIMPANG BELITI\" ],\n [1702032003,1702032,\"KAMPUNG JERUK\" ],\n [1702032004,1702032,\"AIR APO\" ],\n [1702032005,1702032,\"TABA PADANG\" ],\n [1702033001,1702033,\"A P U R\" ],\n [1702033002,1702033,\"LAWANG AGUNG\" ],\n [1702033003,1702033,\"LUBUK ALAI\" ],\n [1702033004,1702033,\"KARANG PINANG\" ],\n [1702033005,1702033,\"TANJUNG AGUNG\" ],\n [1702033006,1702033,\"PENGAMBANG\" ],\n [1702033007,1702033,\"J A B I\" ],\n [1702033008,1702033,\"TANJUNG HERAN\" ],\n [1702033009,1702033,\"AIR NAU\" ],\n [1702034001,1702034,\"IV SUKU MENANTI\" ],\n [1702034002,1702034,\"BENGKO\" ],\n [1702034003,1702034,\"SINAR GUNUNG\" ],\n [1702034004,1702034,\"AIR RUSA\" ],\n [1702034005,1702034,\"TALANG BELITAR\" ],\n [1702034006,1702034,\"WARUNG POJOK\" ],\n [1702040012,1702040,\"AIR PUTIH LAMA\" ],\n [1702040013,1702040,\"AIR RAMBAI\" ],\n [1702040014,1702040,\"DWI TUNGGAL\" ],\n [1702040015,1702040,\"ADIREJO\" ],\n [1702040016,1702040,\"TALANG BENIH\" ],\n [1702040017,1702040,\"JALAN BARU\" ],\n [1702040018,1702040,\"PASAR BARU\" ],\n [1702040019,1702040,\"PASAR TENGAH\" ],\n [1702040061,1702040,\"TIMBUL REJO\" ],\n [1702041001,1702041,\"BARU MANIS\" ],\n [1702041002,1702041,\"AIR PIKAT\" ],\n [1702041003,1702041,\"TEBAT TENONG DALAM\" ],\n [1702041004,1702041,\"SUKA RAMI\" ],\n [1702041007,1702041,\"PAGAR GUNUNG\" ],\n [1702041008,1702041,\"AIR MUNDU\" ],\n [1702041009,1702041,\"KAMPUNG SAJAD\" ],\n [1702041010,1702041,\"SENTRAL BARU\" ],\n [1702041011,1702041,\"KAMPUNG MELAYU\" ],\n [1702041013,1702041,\"SELAMAT SUDIARJO\" ],\n [1702041014,1702041,\"PURWODADI\" ],\n [1702041015,1702041,\"TEBAT PULAU\" ],\n [1702042001,1702042,\"AIR MELES ATAS\" ],\n [1702042002,1702042,\"CAWANG BARU\" ],\n [1702042003,1702042,\"CAWANG LAMA\" ],\n [1702042004,1702042,\"KAYU MANIS\" ],\n [1702042005,1702042,\"SIMPANG NANGKA\" ],\n [1702042006,1702042,\"KAMPUNG BARU\" ],\n [1702042007,1702042,\"SUBAN AYAM\" ],\n [1702042008,1702042,\"AIR PUTIH KALI BANDUNG\" ],\n [1702042009,1702042,\"AIR DUKU\" ],\n [1702042010,1702042,\"SAMBIREJO\" ],\n [1702042011,1702042,\"SUMBER BENING\" ],\n [1702042012,1702042,\"SUMBER URIP\" ],\n [1702042013,1702042,\"KARANG JAYA\" ],\n [1702042014,1702042,\"KALI PADANG\" ],\n [1702042015,1702042,\"TALANG LAHAT\" ],\n [1702042016,1702042,\"MOJOREJO\" ],\n [1702043001,1702043,\"AIR LANANG\" ],\n [1702043002,1702043,\"TANJUNG DALAM\" ],\n [1702043003,1702043,\"TURAN BARU\" ],\n [1702043004,1702043,\"PUNGGUK LALANG\" ],\n [1702043005,1702043,\"WATAS MARGA\" ],\n [1702043006,1702043,\"LUBUK UBAR\" ],\n [1702043007,1702043,\"RIMBO RECAP\" ],\n [1702043008,1702043,\"SUKA MARGA\" ],\n [1702043009,1702043,\"TEMPEL REJO\" ],\n [1702043010,1702043,\"AIR PUTIH BARU\" ],\n [1702043011,1702043,\"DESA TELADAN\" ],\n [1702044001,1702044,\"KEPALA SIRING\" ],\n [1702044002,1702044,\"TALANG RIMBO BARU\" ],\n [1702044003,1702044,\"TALANG RIMBO LAMA\" ],\n [1702044004,1702044,\"BANYUMAS\" ],\n [1702044005,1702044,\"PELABUHAN BARU\" ],\n [1702044006,1702044,\"KAMPUNG JAWA\" ],\n [1702044007,1702044,\"SIDOREJO\" ],\n [1702044008,1702044,\"AIR BANG\" ],\n [1702044009,1702044,\"AIR MERAH\" ],\n [1702044010,1702044,\"BATU GALING\" ],\n [1702045001,1702045,\"BANDUNG MARGA\" ],\n [1702045002,1702045,\"PAL VII\" ],\n [1702045003,1702045,\"SUMBER REJO TRANSAD\" ],\n [1702045004,1702045,\"PAL 100\" ],\n [1702045005,1702045,\"KARANG ANYAR PAL VIII\" ],\n [1702045006,1702045,\"TEBAT TENONG LUAR\" ],\n [1702045007,1702045,\"BANGUN JAYA\" ],\n [1702045008,1702045,\"AIR BENING\" ],\n [1702045009,1702045,\"BABAKAN BARU\" ],\n [1702045010,1702045,\"DATARAN TAPUS\" ],\n [1702046001,1702046,\"DUSUN CURUP\" ],\n [1702046002,1702046,\"BATU DEWA\" ],\n [1702046003,1702046,\"TUNAS HARAPAN\" ],\n [1702046004,1702046,\"PERBO\" ],\n [1702046005,1702046,\"BATU PANCO\" ],\n [1702046006,1702046,\"SUKA DATANG\" ],\n [1702046007,1702046,\"LUBUK KEMBANG\" ],\n [1702046008,1702046,\"DUSUN SAWAH\" ],\n [1702046009,1702046,\"TABARENAH\" ],\n [1702046010,1702046,\"DESA PAHLAWAN\" ],\n [1702046011,1702046,\"TASIK MALAYA\" ],\n [1702046012,1702046,\"TANJUNG BERINGIN\" ],\n [1702046013,1702046,\"KOTA PAGU\" ],\n [1702046014,1702046,\"SEGURING\" ],\n [1702047001,1702047,\"DUKU ULU\" ],\n [1702047002,1702047,\"DUKU ILIR\" ],\n [1702047003,1702047,\"KAMPUNG DELIMA\" ],\n [1702047004,1702047,\"KESAMBE LAMA\" ],\n [1702047005,1702047,\"KARANG ANYAR\" ],\n [1702047006,1702047,\"AIR MELES BAWAH\" ],\n [1702047007,1702047,\"SUKARAJA\" ],\n [1702047008,1702047,\"KESAMBE BARU\" ],\n [1702047009,1702047,\"TALANG ULU\" ],\n [1703010001,1703010,\"BANJAR SARI\" ],\n [1703010002,1703010,\"MEOK\" ],\n [1703010003,1703010,\"APOHO\" ],\n [1703010004,1703010,\"MALAKONI\" ],\n [1703010005,1703010,\"KAANA\" ],\n [1703010006,1703010,\"KAHYAPU\" ],\n [1703050033,1703050,\"TANJUNG PUTUS\" ],\n [1703050036,1703050,\"TALANG JAMBU\" ],\n [1703050037,1703050,\"TEBAT PACUR\" ],\n [1703050039,1703050,\"PENYANGKAK\" ],\n [1703050040,1703050,\"MAGELANG\" ],\n [1703050041,1703050,\"TALANG CURUP\" ],\n [1703050042,1703050,\"BANYUMAS BARU\" ],\n [1703050043,1703050,\"SERUMBUNG\" ],\n [1703050044,1703050,\"LUBUK DURIAN\" ],\n [1703050045,1703050,\"SALAM HARJO\" ],\n [1703050046,1703050,\"BANYUMAS LAMA\" ],\n [1703050047,1703050,\"TALANG PASAK\" ],\n [1703050048,1703050,\"JOGYA BARU\" ],\n [1703050049,1703050,\"PERBO\" ],\n [1703050050,1703050,\"SIMPANG KETENONG\" ],\n [1703050051,1703050,\"AUR GADING\" ],\n [1703050052,1703050,\"LUBUK JALE\" ],\n [1703050053,1703050,\"KEDU BARU\" ],\n [1703051001,1703051,\"TEPI LAUT\" ],\n [1703051002,1703051,\"PASAR BEMBAH\" ],\n [1703051003,1703051,\"PASAR KERKAP\" ],\n [1703051004,1703051,\"AIR NAPAL\" ],\n [1703051005,1703051,\"TALANG JARANG\" ],\n [1703051006,1703051,\"TALANG KERING\" ],\n [1703051007,1703051,\"SELUBUK\" ],\n [1703051008,1703051,\"PASAR TEBAT\" ],\n [1703051009,1703051,\"LUBUK TANJUNG\" ],\n [1703051010,1703051,\"PASAR PALIK\" ],\n [1703051011,1703051,\"TEBING KANDANG\" ],\n [1703051012,1703051,\"DUSUN PUKUR\" ],\n [1703052001,1703052,\"KOTA AGUNG\" ],\n [1703052002,1703052,\"TALANG LEMBAK\" ],\n [1703052003,1703052,\"TALANG RENAH\" ],\n [1703052004,1703052,\"SUNGAI PURA\" ],\n [1703052005,1703052,\"TANJUNG GENTING\" ],\n [1703052006,1703052,\"LUBUK BALAM\" ],\n [1703052007,1703052,\"DATAR MACANG\" ],\n [1703052010,1703052,\"GENTING PERANGKAP\" ],\n [1703052011,1703052,\"TALANG BARU GINTING\" ],\n [1703052012,1703052,\"TALANG PUNGGUK\" ],\n [1703052013,1703052,\"KERTAPATI\" ],\n [1703052014,1703052,\"TALANG GINTING\" ],\n [1703052015,1703052,\"TANJUNG KARET\" ],\n [1703052016,1703052,\"DUSUN CURUP\" ],\n [1703052017,1703052,\"PENYANGKAK\" ],\n [1703053001,1703053,\"KOTA LEKAT ILIR\" ],\n [1703053002,1703053,\"AIR BANAI\" ],\n [1703053003,1703053,\"AIR BAUS II\" ],\n [1703053004,1703053,\"AIR BAUS I\" ],\n [1703053005,1703053,\"TABA PADANG KOL\" ],\n [1703053006,1703053,\"TABA PADANG REJANG\" ],\n [1703053007,1703053,\"PADANG BENDAR\" ],\n [1703053008,1703053,\"BATU LAYANG\" ],\n [1703053009,1703053,\"BATU RAJA KOL\" ],\n [1703053010,1703053,\"BATU RAJA REJANG\" ],\n [1703053011,1703053,\"BATU ROTO\" ],\n [1703053012,1703053,\"PEMATANG BALAM\" ],\n [1703053013,1703053,\"TALANG RENDAH\" ],\n [1703053014,1703053,\"SUMBEREJO\" ],\n [1703053015,1703053,\"KOTA LEKAT MUDIK\" ],\n [1703054001,1703054,\"LUBUK SEMATUNG\" ],\n [1703054002,1703054,\"KETAPI\" ],\n [1703054003,1703054,\"SAWANG LEBAR\" ],\n [1703054004,1703054,\"LUBUK GADING\" ],\n [1703054005,1703054,\"SAWANG LEBAR ILIR\" ],\n [1703054006,1703054,\"LUBUK PENDAM\" ],\n [1703054007,1703054,\"ALUNDDUA\" ],\n [1703054008,1703054,\"SENGKUANG\" ],\n [1703054009,1703054,\"TANJUNG AGUNG\" ],\n [1703054010,1703054,\"PADANG SEPAN\" ],\n [1703060010,1703060,\"TALANG DENAU\" ],\n [1703060011,1703060,\"GUNUNG SELAN\" ],\n [1703060012,1703060,\"GUNUNG AGUNG\" ],\n [1703060013,1703060,\"RAMA AGUNG\" ],\n [1703060014,1703060,\"GUNUNG ALAM\" ],\n [1703060015,1703060,\"SIDO URIP\" ],\n [1703060016,1703060,\"DATAR RUYUNG\" ],\n [1703060017,1703060,\"TANJUNG RAMAN\" ],\n [1703060020,1703060,\"LUBUK SAUNG\" ],\n [1703060021,1703060,\"KARANG SUCI\" ],\n [1703060022,1703060,\"PURWODADI\" ],\n [1703060023,1703060,\"KARANG ANYAR II\" ],\n [1703060024,1703060,\"KARANG ANYAR\" ],\n [1703060025,1703060,\"TABA TEMBILANG\" ],\n [1703060026,1703060,\"SENALI\" ],\n [1703060027,1703060,\"KURO TIDUR\" ],\n [1703061001,1703061,\"GARDU\" ],\n [1703061002,1703061,\"PAGAR BANYU\" ],\n [1703061003,1703061,\"PEMATANG SAPANG\" ],\n [1703061004,1703061,\"SUMBER AGUNG\" ],\n [1703061005,1703061,\"SIDODADI\" ],\n [1703061006,1703061,\"GUNUNG BESAR\" ],\n [1703061007,1703061,\"KALI\" ],\n [1703061008,1703061,\"PAGAR RUYUNG\" ],\n [1703061009,1703061,\"AIR MERAH\" ],\n [1703061010,1703061,\"TEBING KANING\" ],\n [1703061011,1703061,\"KEMUMU\" ],\n [1703061012,1703061,\"KALAI DUAI\" ],\n [1703070001,1703070,\"PASAR LAIS\" ],\n [1703070002,1703070,\"PAL TIGA PULUH\" ],\n [1703070003,1703070,\"JAGO BAYO\" ],\n [1703070004,1703070,\"LUBUK LESUNG\" ],\n [1703070005,1703070,\"DUSUN RAJA\" ],\n [1703070006,1703070,\"DURIAN DAUN\" ],\n [1703070007,1703070,\"AIR PADANG\" ],\n [1703070008,1703070,\"DATAR LEBAR\" ],\n [1703070010,1703070,\"TALANG RASAU\" ],\n [1703070011,1703070,\"LUBUK GEDANG\" ],\n [1703070012,1703070,\"SUKA LANGU\" ],\n [1703070026,1703070,\"TABA BARU\" ],\n [1703070027,1703070,\"KALBANG\" ],\n [1703071001,1703071,\"SERANGAI\" ],\n [1703071002,1703071,\"SELOLONG\" ],\n [1703071003,1703071,\"AIRLAKOK\" ],\n [1703071004,1703071,\"BINTUNAN\" ],\n [1703071005,1703071,\"SUKAMARGA\" ],\n [1703071006,1703071,\"BATIK NAU\" ],\n [1703071007,1703071,\"PAGAR RUYUNG\" ],\n [1703071008,1703071,\"DURIAN AMPARAN\" ],\n [1703071009,1703071,\"SAMBAN JAYA\" ],\n [1703071010,1703071,\"MANINJAU\" ],\n [1703071011,1703071,\"AIR MENGANYAU\" ],\n [1703071012,1703071,\"TABA KELINTANG\" ],\n [1703071013,1703071,\"ULAK TANDING\" ],\n [1703071014,1703071,\"SEKIAU\" ],\n [1703071015,1703071,\"SEBERANG TUNGGAL\" ],\n [1703072001,1703072,\"SUKAMAKMUR\" ],\n [1703072002,1703072,\"TANJUNG ANOM\" ],\n [1703072003,1703072,\"GIRI MULYA\" ],\n [1703072004,1703072,\"WONOHARJO\" ],\n [1703072005,1703072,\"RENA JAYA\" ],\n [1703072006,1703072,\"SUKA MULYA\" ],\n [1703073001,1703073,\"TANJUNG AUR\" ],\n [1703073002,1703073,\"MESIGIT\" ],\n [1703073003,1703073,\"RETES\" ],\n [1703073004,1703073,\"LUBUK MUMPO\" ],\n [1703073005,1703073,\"TALANG ULU\" ],\n [1703073006,1703073,\"KEMBANG MANIS\" ],\n [1703073007,1703073,\"SUKARAMI\" ],\n [1703073008,1703073,\"TELUK AJANG\" ],\n [1703073009,1703073,\"DUSUN BALAM\" ],\n [1703073010,1703073,\"PADANG KALA\" ],\n [1703080001,1703080,\"LUBUK BANYAU\" ],\n [1703080002,1703080,\"SIDO MUKTI\" ],\n [1703080003,1703080,\"ARGA MULYA\" ],\n [1703080004,1703080,\"TALANG TUA\" ],\n [1703080005,1703080,\"PADANG JAYA\" ],\n [1703080006,1703080,\"TANJUNG HARAPAN\" ],\n [1703080007,1703080,\"MARGA SAKTI\" ],\n [1703080008,1703080,\"MARGA JAYA\" ],\n [1703080009,1703080,\"TANAH HITAM\" ],\n [1703080010,1703080,\"TAMBAK REJO\" ],\n [1703080011,1703080,\"TANAH TINGGI\" ],\n [1703080012,1703080,\"SIDO LUHUR\" ],\n [1703090001,1703090,\"URAI\" ],\n [1703090007,1703090,\"PASAR KETAHUN\" ],\n [1703090008,1703090,\"GIRI KENCANA\" ],\n [1703090011,1703090,\"KUALA LELANGI\" ],\n [1703090012,1703090,\"TALANG BARU\" ],\n [1703090013,1703090,\"DUSUN RAJA\" ],\n [1703090014,1703090,\"FAJAR BARU\" ],\n [1703090015,1703090,\"LUBUK MINDAI\" ],\n [1703090024,1703090,\"MELATI HARJO\" ],\n [1703090025,1703090,\"BUKIT INDAH\" ],\n [1703090026,1703090,\"BUKIT TINGGI\" ],\n [1703091006,1703091,\"TANJUNG ALAI\" ],\n [1703091007,1703091,\"DUSUN JABI\" ],\n [1703091008,1703091,\"NAPAL PUTIH\" ],\n [1703091013,1703091,\"LEBONG TANDAI\" ],\n [1703091014,1703091,\"AIR TENANG\" ],\n [1703091015,1703091,\"TELUK ANGGUNG\" ],\n [1703091016,1703091,\"TANJUNG KEMENYAN\" ],\n [1703091017,1703091,\"MUARA SANTAN\" ],\n [1703091019,1703091,\"GEMBUNG RAYA\" ],\n [1703091020,1703091,\"KINAL JAYA\" ],\n [1703092001,1703092,\"PAGAR DIN\" ],\n [1703092002,1703092,\"TANJUNG DALAM\" ],\n [1703092003,1703092,\"AIR LELANGI\" ],\n [1703092004,1703092,\"PONDOK BAKIL\" ],\n [1703092005,1703092,\"TALANG BERANTAI\" ],\n [1703092006,1703092,\"BUKIT BERLIAN\" ],\n [1703092007,1703092,\"TANJUNG HARAPAN\" ],\n [1703092008,1703092,\"TANJUNG SARI\" ],\n [1703092009,1703092,\"SP 7 BANGUN KARYA\" ],\n [1703092010,1703092,\"BUKIT SARI\" ],\n [1703093001,1703093,\"AIR SIMPANG\" ],\n [1703093002,1703093,\"AIR SEBAYUR\" ],\n [1703093003,1703093,\"AIR SEKAMANAK\" ],\n [1703093004,1703093,\"MARGA BAKTI\" ],\n [1703093005,1703093,\"BUKIT MAKMUR\" ],\n [1703093006,1703093,\"BUKIT HARAPAN\" ],\n [1703093007,1703093,\"GUNUNG PAYUNG\" ],\n [1703093008,1703093,\"TANJUNG MUARA\" ],\n [1703093010,1703093,\"SUMBER MULYA\" ],\n [1703093011,1703093,\"BUMI HARJO\" ],\n [1703100001,1703100,\"AIR PETAI\" ],\n [1703100002,1703100,\"KARANG PULAU\" ],\n [1703100003,1703100,\"KARANG TENGAH\" ],\n [1703100004,1703100,\"AIR MURING\" ],\n [1703100005,1703100,\"PASAR BARU KOTA BANI\" ],\n [1703100006,1703100,\"PASAR SEBELAT\" ],\n [1703100007,1703100,\"TALANG ARAH\" ],\n [1703100008,1703100,\"CIPTA MULYA\" ],\n [1703100009,1703100,\"AIR PANDAN\" ],\n [1703101001,1703101,\"SUKA NEGARA\" ],\n [1703101002,1703101,\"KARYA JAYA\" ],\n [1703101003,1703101,\"KARYA BAKTI\" ],\n [1703101004,1703101,\"SUKA MEDAN\" ],\n [1703101005,1703101,\"SUKA MERINDU\" ],\n [1703101006,1703101,\"SUKA MAJU\" ],\n [1703101007,1703101,\"SUKA BARU\" ],\n [1703101008,1703101,\"KARYA PELITA\" ],\n [1703101009,1703101,\"SUKA MAKMUR\" ],\n [1703101010,1703101,\"AIR PUTIH\" ],\n [1704010001,1704010,\"TANJUNG BETUAH\" ],\n [1704010003,1704010,\"GEDUNG MENUNG\" ],\n [1704010004,1704010,\"ULAK PANDAN\" ],\n [1704010005,1704010,\"MERPAS\" ],\n [1704010006,1704010,\"AIR PALAWAN\" ],\n [1704010007,1704010,\"MUARA DUA\" ],\n [1704010008,1704010,\"BUKIT INDAH\" ],\n [1704010009,1704010,\"SUKU TIGA\" ],\n [1704010010,1704010,\"TEBING RAMBUTAN\" ],\n [1704010011,1704010,\"BATU LUNGUN\" ],\n [1704010012,1704010,\"SUMBER HARAPAN\" ],\n [1704010013,1704010,\"SUKA JAYA\" ],\n [1704010014,1704010,\"PASAR BARU\" ],\n [1704010015,1704010,\"TRI JAYA\" ],\n [1704010016,1704010,\"AIR BATANG\" ],\n [1704010017,1704010,\"SINAR BANTEN\" ],\n [1704010018,1704010,\"PASAR JUMAT\" ],\n [1704020001,1704020,\"PARDA SUKA\" ],\n [1704020002,1704020,\"AIR LONG\" ],\n [1704020003,1704020,\"LINAU\" ],\n [1704020004,1704020,\"WAY HAWANG\" ],\n [1704020005,1704020,\"TANJUNG BARU\" ],\n [1704020006,1704020,\"PENYANDINGAN\" ],\n [1704020007,1704020,\"TANJUNG AUR\" ],\n [1704020008,1704020,\"KEDATARAN\" ],\n [1704020009,1704020,\"TANJUNG GANTI\" ],\n [1704020011,1704020,\"BENTENG HARAPAN\" ],\n [1704020012,1704020,\"SUKA MENANTI\" ],\n [1704020013,1704020,\"SINAR MULYA\" ],\n [1704020014,1704020,\"BAKAL MAKMUR\" ],\n [1704020015,1704020,\"MUARA JAYA\" ],\n [1704020016,1704020,\"TANJUNG AGUNG\" ],\n [1704020017,1704020,\"ARGA MULIA\" ],\n [1704020018,1704020,\"AIR JELATANG\" ],\n [1704020020,1704020,\"SUMBER HARAPAN\" ],\n [1704020021,1704020,\"TANJUNG BERINGIN\" ],\n [1704030012,1704030,\"SEKUNYIT\" ],\n [1704030013,1704030,\"SUKA BANDUNG\" ],\n [1704030014,1704030,\"AIR DINGIN\" ],\n [1704030015,1704030,\"PASAR BARU\" ],\n [1704030016,1704030,\"JEMBATAN DUA\" ],\n [1704030017,1704030,\"GEDUNG SAKO\" ],\n [1704030018,1704030,\"BANDAR\" ],\n [1704030019,1704030,\"PASAR LAMA\" ],\n [1704030020,1704030,\"TANJUNG BESAR\" ],\n [1704030035,1704030,\"PENGUBAIAN\" ],\n [1704030036,1704030,\"PAHLAWAN RATU\" ],\n [1704030037,1704030,\"PASAR SAUH\" ],\n [1704030038,1704030,\"PADANG PETRON\" ],\n [1704030039,1704030,\"KEPALA PASAR\" ],\n [1704030040,1704030,\"SAWAH JANGKUNG\" ],\n [1704030041,1704030,\"SELASIH\" ],\n [1704030042,1704030,\"PADANG GENTENG\" ],\n [1704030043,1704030,\"GEDUNG SAKO II\" ],\n [1704030044,1704030,\"SINAR PAGI\" ],\n [1704031001,1704031,\"SUKA BANJAR\" ],\n [1704031002,1704031,\"TANJUNG BUNGA\" ],\n [1704031003,1704031,\"TANJUNG AGUNG\" ],\n [1704031004,1704031,\"BABAT\" ],\n [1704031005,1704031,\"CUCUPAN\" ],\n [1704031006,1704031,\"KEPAHYANG\" ],\n [1704031007,1704031,\"TANJUNG DALAM\" ],\n [1704031008,1704031,\"PAGAR DEWA\" ],\n [1704031009,1704031,\"MUARA TETAP\" ],\n [1704031010,1704031,\"KASUK BARU\" ],\n [1704031011,1704031,\"SUKA RAJA\" ],\n [1704031012,1704031,\"PADANG BINJAI\" ],\n [1704040007,1704040,\"PADANG BARU\" ],\n [1704040008,1704040,\"TANJUNG PANDAN\" ],\n [1704040009,1704040,\"TANJUNG IMAN\" ],\n [1704040010,1704040,\"PENYANDINGAN\" ],\n [1704040011,1704040,\"KEMANG MANIS\" ],\n [1704040012,1704040,\"PADANG HANGAT\" ],\n [1704040013,1704040,\"PAJAR BULAN\" ],\n [1704040014,1704040,\"SUKA RAMI\" ],\n [1704040015,1704040,\"SINAR JAYA\" ],\n [1704041001,1704041,\"BENUA RATU\" ],\n [1704041002,1704041,\"TUGUK\" ],\n [1704041003,1704041,\"UMBUL\" ],\n [1704041004,1704041,\"TANJUNG BERINGIN\" ],\n [1704041005,1704041,\"DURIAN BESAR\" ],\n [1704041006,1704041,\"GANDA SULI\" ],\n [1704041007,1704041,\"PADANG JATI\" ],\n [1704041008,1704041,\"CAHAYA NEGERI\" ],\n [1704041009,1704041,\"BANGUN JIWA\" ],\n [1704041010,1704041,\"KEPAHYANG\" ],\n [1704041011,1704041,\"PULAU PANGGUNG\" ],\n [1704041012,1704041,\"SERDANG INDAH\" ],\n [1704042001,1704042,\"BUKIT MAKMUR\" ],\n [1704042002,1704042,\"ULAK BANDUNG\" ],\n [1704042003,1704042,\"SUMBER MAKMUR\" ],\n [1704042004,1704042,\"TRI TUNGGAL BHAKTI\" ],\n [1704042005,1704042,\"MUARA SAHUNG\" ],\n [1704042006,1704042,\"ULAK LEBAR\" ],\n [1704042007,1704042,\"CINTA MAKMUR\" ],\n [1704050010,1704050,\"GEDUNG WANI\" ],\n [1704050011,1704050,\"GERAMAT\" ],\n [1704050012,1704050,\"PENANDINGAN\" ],\n [1704050013,1704050,\"TANJUNG ALAM\" ],\n [1704050014,1704050,\"TANJUNG BARU\" ],\n [1704050015,1704050,\"PENGURUNG\" ],\n [1704050016,1704050,\"PINANG JAWA I\" ],\n [1704050017,1704050,\"GUNUNG TERANG\" ],\n [1704050018,1704050,\"TALANG PADANG\" ],\n [1704050019,1704050,\"GUNUNG MEGANG\" ],\n [1704050020,1704050,\"JAWI\" ],\n [1704050021,1704050,\"TALANG BERANGIN\" ],\n [1704050023,1704050,\"PINANG JAWA II\" ],\n [1704050024,1704050,\"PAPAHAN\" ],\n [1704051001,1704051,\"NUSUK\" ],\n [1704051002,1704051,\"TANJUNG HARAPAN\" ],\n [1704051003,1704051,\"AWAT MATA\" ],\n [1704051004,1704051,\"SUKA MERINDU\" ],\n [1704051005,1704051,\"MENTIRING I\" ],\n [1704051006,1704051,\"LUBUK GUNG\" ],\n [1704051007,1704051,\"CAHAYA BATHIN\" ],\n [1704051008,1704051,\"GUNUNG TIGA I\" ],\n [1704051009,1704051,\"KARANG DAPO\" ],\n [1704051010,1704051,\"BUNGA MELUR\" ],\n [1704051012,1704051,\"GUNUNG TIGA II\" ],\n [1704051013,1704051,\"PADANG PANJANG\" ],\n [1704051015,1704051,\"MENTIRING II\" ],\n [1704060001,1704060,\"BERIANG TINGGI\" ],\n [1704060002,1704060,\"TANJUNG BULAN\" ],\n [1704060003,1704060,\"PADANG LEBAN\" ],\n [1704060004,1704060,\"TINGGI ARI\" ],\n [1704060005,1704060,\"TANJUNG AUR I\" ],\n [1704060006,1704060,\"AUR RINGIT\" ],\n [1704060007,1704060,\"TANJUNG KEMUNING I\" ],\n [1704060008,1704060,\"SELIKA I\" ],\n [1704060009,1704060,\"TANJUNG IMAN I\" ],\n [1704060010,1704060,\"PELAJARAN I\" ],\n [1704060011,1704060,\"SULAUWANGI\" ],\n [1704060012,1704060,\"PADANG KEDONDONG\" ],\n [1704060013,1704060,\"SELIKA II\" ],\n [1704060014,1704060,\"PELAJARAN II\" ],\n [1704060015,1704060,\"PADANG TINGGI\" ],\n [1704060017,1704060,\"TANJUNG KEMUNING II\" ],\n [1704060018,1704060,\"TANJUNG KEMUNING III\" ],\n [1704060020,1704060,\"TANJUNG AUR II\" ],\n [1704060022,1704060,\"TANJUNG IMAN II\" ],\n [1704060023,1704060,\"SELIKA III\" ],\n [1704061001,1704061,\"PAGAR DEWA\" ],\n [1704061002,1704061,\"TALANG TAIS\" ],\n [1704061003,1704061,\"PENANTIAN\" ],\n [1704061004,1704061,\"SIRING AGUNG\" ],\n [1704061005,1704061,\"DARAT SAWAH\" ],\n [1704061006,1704061,\"SUKARAMI I\" ],\n [1704061007,1704061,\"RIGANGAN I\" ],\n [1704061008,1704061,\"RIGANGAN II\" ],\n [1704061009,1704061,\"RIGANGAN III\" ],\n [1704061010,1704061,\"TANJUNG GANTI I\" ],\n [1704061011,1704061,\"TANJUNG GANTI II\" ],\n [1704061012,1704061,\"TALANG MARAP\" ],\n [1704061014,1704061,\"SUKARAMI II\" ],\n [1704070027,1704070,\"PADANG MANIS\" ],\n [1704070028,1704070,\"GUNUNG AGUNG\" ],\n [1704070029,1704070,\"BANDU AGUNG\" ],\n [1704070031,1704070,\"SIMPANG TIGA\" ],\n [1704070032,1704070,\"GURU AGUNG I\" ],\n [1704070034,1704070,\"TANJUNG BETUNG I\" ],\n [1704070040,1704070,\"PANCUR NEGARA\" ],\n [1704070041,1704070,\"PERUGAIAN\" ],\n [1704070042,1704070,\"COKO ENAU\" ],\n [1704070043,1704070,\"TANJUNG BETUNG II\" ],\n [1704070045,1704070,\"GURU AGUNG II\" ],\n [1704071001,1704071,\"GUNUNG KAYA\" ],\n [1704071002,1704071,\"ULAK AGUNG\" ],\n [1704071003,1704071,\"AIR KERING I\" ],\n [1704071004,1704071,\"TALANG PADANG\" ],\n [1704071005,1704071,\"TALANG JAWI I\" ],\n [1704071006,1704071,\"TALANG JAWI II\" ],\n [1704071007,1704071,\"TALANG BESAR\" ],\n [1704071008,1704071,\"PULAU PANGGUNG\" ],\n [1704071010,1704071,\"AIR KERING II\" ],\n [1704072001,1704072,\"DATAR LEBAR I\" ],\n [1704072002,1704072,\"TANJUNG BUNIAN\" ],\n [1704072003,1704072,\"SINAR BULAN\" ],\n [1704072004,1704072,\"SUKA NANTI\" ],\n [1704072005,1704072,\"LAWANG AGUNG\" ],\n [1704072006,1704072,\"TANJUNG KURUNG\" ],\n [1704072007,1704072,\"SENAK\" ],\n [1704072009,1704072,\"DATAR LEBAR II\" ],\n [1704072010,1704072,\"AUR GADING\" ],\n [1704073001,1704073,\"PAGAR GUNUNG\" ],\n [1704073002,1704073,\"COKOH BETUNG\" ],\n [1704073003,1704073,\"PAGAR ALAM\" ],\n [1704073004,1704073,\"MANAU SEMBILAN I\" ],\n [1704073005,1704073,\"MANAU SEMBILAN II\" ],\n [1704073006,1704073,\"BUNGIN TAMBUN I\" ],\n [1704073007,1704073,\"BUNGIN TAMBUN II\" ],\n [1704073008,1704073,\"BUNGIN TAMBUN III\" ],\n [1704073009,1704073,\"NAGA RANTAI\" ],\n [1704073010,1704073,\"MARGO MULYO\" ],\n [1704073011,1704073,\"JATI MULYO\" ],\n [1705010001,1705010,\"TEDUNAN\" ],\n [1705010002,1705010,\"KEMBANG MUMPO\" ],\n [1705010003,1705010,\"KETAPANG BARU\" ],\n [1705010004,1705010,\"PADANG BAKUNG\" ],\n [1705010005,1705010,\"TALANG ALAI\" ],\n [1705010006,1705010,\"JAMBAT AKAR\" ],\n [1705010007,1705010,\"KARANG ANYAR\" ],\n [1705010008,1705010,\"UJUNG PADANG\" ],\n [1705010009,1705010,\"SENDAWAR\" ],\n [1705010010,1705010,\"GELOMBANG\" ],\n [1705010011,1705010,\"LUBUK BETUNG\" ],\n [1705010012,1705010,\"PADANG PERI\" ],\n [1705010013,1705010,\"MARAS TENGAH\" ],\n [1705010014,1705010,\"GUNUNG KEMBANG\" ],\n [1705010015,1705010,\"GUNUNG BANTAN\" ],\n [1705010016,1705010,\"GENTING JUAR\" ],\n [1705010017,1705010,\"PADANG KELAPO\" ],\n [1705010018,1705010,\"TALANG BERINGIN\" ],\n [1705010019,1705010,\"MUARA MARAS\" ],\n [1705010020,1705010,\"PEMATANG RIDING\" ],\n [1705010021,1705010,\"MUARA TIMPUT\" ],\n [1705010022,1705010,\"SERIAN BANDUNG\" ],\n [1705010023,1705010,\"TALANG KEMANG\" ],\n [1705010024,1705010,\"RIMBO BESAR\" ],\n [1705010025,1705010,\"KARANG DAPO\" ],\n [1705010026,1705010,\"MARAS BANTAN\" ],\n [1705020001,1705020,\"MARAS JAUH\" ],\n [1705020002,1705020,\"TEBAT GUNUNG\" ],\n [1705020003,1705020,\"PADANG SERUNAIAN\" ],\n [1705020004,1705020,\"GUNUNG MESIR\" ],\n [1705020005,1705020,\"PETAI KAYU\" ],\n [1705020006,1705020,\"NANJUNGAN\" ],\n [1705020007,1705020,\"BANDUNG AGUNG\" ],\n [1705020008,1705020,\"PINJU LAYANG\" ],\n [1705020009,1705020,\"NANTI AGUNG\" ],\n [1705020010,1705020,\"PAJAR BULAN\" ],\n [1705020011,1705020,\"RANTAU PANJANG\" ],\n [1705020012,1705020,\"TALANG DURIAN\" ],\n [1705020013,1705020,\"AIR MELANCAR\" ],\n [1705020014,1705020,\"CUGUNG LANGU\" ],\n [1705020015,1705020,\"RENAH GAJAH MATI 1\" ],\n [1705020016,1705020,\"MUARA DUA\" ],\n [1705020017,1705020,\"RENAH GAJAH MATI II\" ],\n [1705020018,1705020,\"KAYU ELANG\" ],\n [1705020019,1705020,\"NAPALAN\" ],\n [1705020020,1705020,\"MEKAR SARI MUKTI\" ],\n [1705020021,1705020,\"SUBAN\" ],\n [1705020022,1705020,\"TELATAN\" ],\n [1705020023,1705020,\"KEMANG MANIS\" ],\n [1705020024,1705020,\"GUNUNG MEGANG\" ],\n [1705030043,1705030,\"KEMBANG SERI\" ],\n [1705030044,1705030,\"LUBUK GIO\" ],\n [1705030045,1705030,\"MUARA DANAU\" ],\n [1705030048,1705030,\"DURIAN BUBUR\" ],\n [1705030049,1705030,\"MASMAMBANG\" ],\n [1705030050,1705030,\"SERAMBI GUNUNG\" ],\n [1705030051,1705030,\"AIR PAYANGAN\" ],\n [1705030052,1705030,\"BATU TUGU\" ],\n [1705030053,1705030,\"AIR TERAS\" ],\n [1705030054,1705030,\"BUNUT TINGGI\" ],\n [1705030055,1705030,\"LUBUK GADIS\" ],\n [1705030056,1705030,\"KAMPAI\" ],\n [1705030057,1705030,\"LUBUK NGANTUNGAN\" ],\n [1705030058,1705030,\"NAPAL MELINTANG\" ],\n [1705030059,1705030,\"SIMPANG TIGA PAGAR GASING\" ],\n [1705030060,1705030,\"HARAPAN MULYA\" ],\n [1705031001,1705031,\"DUSUN BARU\" ],\n [1705031002,1705031,\"PADANG BATU\" ],\n [1705031003,1705031,\"PENAGO I\" ],\n [1705031004,1705031,\"PENAGO BARU\" ],\n [1705031005,1705031,\"RAWA INDAH\" ],\n [1705031006,1705031,\"TANAH ABANG\" ],\n [1705031007,1705031,\"PENAGO II\" ],\n [1705031008,1705031,\"TALANG KABU\" ],\n [1705031009,1705031,\"TALANG PANJANG\" ],\n [1705031010,1705031,\"PADANG CEKUR\" ],\n [1705031011,1705031,\"NANTI AGUNG\" ],\n [1705031012,1705031,\"PASAR TALO\" ],\n [1705031013,1705031,\"MARGO SARI\" ],\n [1705031014,1705031,\"PALUH TERAP\" ],\n [1705031015,1705031,\"MEKAR SARI\" ],\n [1705032001,1705032,\"PERING BARU\" ],\n [1705032002,1705032,\"SUKA MERINDU\" ],\n [1705032003,1705032,\"SUKA BULAN\" ],\n [1705032004,1705032,\"TALANG PADANG\" ],\n [1705032005,1705032,\"TABA\" ],\n [1705032006,1705032,\"BAKAL DALAM\" ],\n [1705032007,1705032,\"SUNGAI PETAI\" ],\n [1705032008,1705032,\"LUBUK LAGAN\" ],\n [1705032009,1705032,\"NAPALAN\" ],\n [1705032010,1705032,\"TEBAT SIBUN\" ],\n [1705032011,1705032,\"BATU BALAI\" ],\n [1705033001,1705033,\"PAGAR\" ],\n [1705033002,1705033,\"BANYU KENCANA\" ],\n [1705033003,1705033,\"PAGAR AGUNG\" ],\n [1705033004,1705033,\"AIR KERUH\" ],\n [1705033005,1705033,\"MUARA SIMPUR\" ],\n [1705033006,1705033,\"HARGO BINANGUN\" ],\n [1705033007,1705033,\"SIMPUR IJANG\" ],\n [1705033008,1705033,\"MEKAR JAYA\" ],\n [1705033009,1705033,\"GIRI NANTO\" ],\n [1705033010,1705033,\"GIRI MULYA\" ],\n [1705033011,1705033,\"PAGAR BANYU\" ],\n [1705033012,1705033,\"TANJUNG AGUNG\" ],\n [1705033013,1705033,\"MUARA NIBUNG\" ],\n [1705040020,1705040,\"NAPAL\" ],\n [1705040021,1705040,\"TALANG DANTUK\" ],\n [1705040027,1705040,\"DUSUN BARU\" ],\n [1705040028,1705040,\"TALANG SALING\" ],\n [1705040029,1705040,\"LUBUK LINTANG\" ],\n [1705040030,1705040,\"PASAR TAIS\" ],\n [1705040031,1705040,\"LUBUK KEBUR\" ],\n [1705041001,1705041,\"TANJUNG SELUAI\" ],\n [1705041002,1705041,\"RIMBO KEDUI\" ],\n [1705041003,1705041,\"SIDO MULYO\" ],\n [1705041004,1705041,\"PADANG RAMBUN\" ],\n [1705041005,1705041,\"PASAR SELUMA\" ],\n [1705041006,1705041,\"SUKA RAMI\" ],\n [1705041007,1705041,\"TANGGA BATU\" ],\n [1705041008,1705041,\"PADANG GENTING\" ],\n [1705041009,1705041,\"SENGKUANG\" ],\n [1705041010,1705041,\"TANJUNG SERU\" ],\n [1705041011,1705041,\"TANJUNGAN\" ],\n [1705041012,1705041,\"PADANG MERBAU\" ],\n [1705042001,1705042,\"PURBOSARI\" ],\n [1705042002,1705042,\"TALANG PERAPAT\" ],\n [1705042003,1705042,\"AIR LATAK\" ],\n [1705042004,1705042,\"PAGAR AGUNG\" ],\n [1705042005,1705042,\"TALANG TINGGI\" ],\n [1705042006,1705042,\"LUNJUK\" ],\n [1705042007,1705042,\"LUBUK LAGAN\" ],\n [1705042008,1705042,\"TANJUNG AGUNG\" ],\n [1705042009,1705042,\"SENGKUANG JAYA\" ],\n [1705043001,1705043,\"TENANGAN\" ],\n [1705043002,1705043,\"RAWASARI\" ],\n [1705043003,1705043,\"TALANG SALI\" ],\n [1705043004,1705043,\"KUNDURAN\" ],\n [1705043005,1705043,\"KOTA AGUNG\" ],\n [1705043006,1705043,\"SELEBAR\" ],\n [1705043007,1705043,\"SEMBAYAT\" ],\n [1705043008,1705043,\"BUNGA MAS\" ],\n [1705044001,1705044,\"SIMPANG\" ],\n [1705044002,1705044,\"SELINGSINGAN\" ],\n [1705044003,1705044,\"PUGUK\" ],\n [1705044004,1705044,\"PANDAN\" ],\n [1705044005,1705044,\"TALANG BERINGIN\" ],\n [1705044006,1705044,\"TALANG RAMI\" ],\n [1705044007,1705044,\"LUBUK RESAM\" ],\n [1705044008,1705044,\"SEKALAK\" ],\n [1705044009,1705044,\"SINAR PAGI\" ],\n [1705044010,1705044,\"TALANG EMPAT\" ],\n [1705050011,1705050,\"SUKARAJA\" ],\n [1705050012,1705050,\"LUBUK SAHUNG\" ],\n [1705050014,1705050,\"BUKIT PENINJAUAN II\" ],\n [1705050015,1705050,\"PADANG PELAWI\" ],\n [1705050016,1705050,\"KAYU ARANG\" ],\n [1705050017,1705050,\"N I U R\" ],\n [1705050018,1705050,\"CAHAYA NEGERI\" ],\n [1705050019,1705050,\"BUKIT PENINJAUAN I\" ],\n [1705050020,1705050,\"RIAK SIABUN\" ],\n [1705050021,1705050,\"JENGGALU\" ],\n [1705050022,1705050,\"BABATAN\" ],\n [1705050033,1705050,\"SIDO SARI\" ],\n [1705050034,1705050,\"SARI MULYO\" ],\n [1705050035,1705050,\"SIDO LUHUR\" ],\n [1705050036,1705050,\"SUMBER ARUM\" ],\n [1705050037,1705050,\"RIAK SIABUN I\" ],\n [1705050038,1705050,\"PADANG KUAS\" ],\n [1705050039,1705050,\"KUTI AGUNG\" ],\n [1705050040,1705050,\"AIR KEMUNING\" ],\n [1705050041,1705050,\"AIR PETAI\" ],\n [1705050042,1705050,\"SUMBER MAKMUR\" ],\n [1705051001,1705051,\"PASAR NGALAM\" ],\n [1705051002,1705051,\"SUKASARI\" ],\n [1705051003,1705051,\"TAWANG REJO\" ],\n [1705051004,1705051,\"KUNGKAI BARU\" ],\n [1705051005,1705051,\"KEBAN AGUNG\" ],\n [1705051006,1705051,\"LAWANG AGUNG\" ],\n [1705051007,1705051,\"PADANG PELASAN\" ],\n [1705051008,1705051,\"AIR PERIUKAN\" ],\n [1705051009,1705051,\"DERMAYU\" ],\n [1705051010,1705051,\"SUKA MAJU\" ],\n [1705051011,1705051,\"TALANG BENUANG\" ],\n [1705051012,1705051,\"TALANG ALAI\" ],\n [1705051013,1705051,\"LUBUK GILANG\" ],\n [1705051014,1705051,\"TALANG SEBARIS\" ],\n [1705051015,1705051,\"LOKASI BARU\" ],\n [1705051016,1705051,\"TABA LUBUK PUDING\" ],\n [1705052001,1705052,\"TUMBUAN\" ],\n [1705052002,1705052,\"RENAH PANJANG\" ],\n [1705052003,1705052,\"GUNUNG AGUNG\" ],\n [1705052004,1705052,\"PADANG CAPO ULU\" ],\n [1705052005,1705052,\"TALANG GIRING\" ],\n [1705052006,1705052,\"TANJUNG KUAW\" ],\n [1705052007,1705052,\"DUSUN TENGAH\" ],\n [1705052008,1705052,\"TALANG KEBUN\" ],\n [1705052009,1705052,\"ARANG SAPAT\" ],\n [1705052010,1705052,\"NAPAL JUNGUR\" ],\n [1705052011,1705052,\"CAWANG\" ],\n [1705052012,1705052,\"PADANG CAPO ILIR\" ],\n [1705052013,1705052,\"SAKAIAN\" ],\n [1705052014,1705052,\"LUBUK TERENTANG\" ],\n [1706010016,1706010,\"AIR BULUH\" ],\n [1706010017,1706010,\"PULAU BARU\" ],\n [1706010018,1706010,\"SEMUNDAM\" ],\n [1706010019,1706010,\"TANJUNG JAYA\" ],\n [1706010020,1706010,\"DUSUN SIBAK\" ],\n [1706010021,1706010,\"MEDAN JAYA\" ],\n [1706010022,1706010,\"TANJUNG HARAPAN\" ],\n [1706010023,1706010,\"PASAR IPUH\" ],\n [1706010024,1706010,\"MANUNGGAL JAYA\" ],\n [1706010025,1706010,\"RETAK HILIR\" ],\n [1706010028,1706010,\"PULAI PAYUNG\" ],\n [1706010029,1706010,\"TANJUNG MEDAN\" ],\n [1706010030,1706010,\"TIRTA MULYA\" ],\n [1706010031,1706010,\"PASAR BARU\" ],\n [1706010032,1706010,\"PULAU MAKMUR\" ],\n [1706010033,1706010,\"MUNDAM MARAP\" ],\n [1706011001,1706011,\"AIR RAMI\" ],\n [1706011002,1706011,\"RAMI MULIA\" ],\n [1706011003,1706011,\"MEKAR JAYA\" ],\n [1706011004,1706011,\"DUSUN PULAU\" ],\n [1706011005,1706011,\"TALANG RIO\" ],\n [1706011006,1706011,\"ARGA JAYA\" ],\n [1706011007,1706011,\"IPUH II/CE SP IV /MAKMUR JAYA\" ],\n [1706011008,1706011,\"MARGA MULIA\" ],\n [1706011009,1706011,\"BUKIT HARAPAN\" ],\n [1706011010,1706011,\"TIRTA KENCANA\" ],\n [1706011011,1706011,\"BUKIT MULYA\" ],\n [1706011012,1706011,\"CINTA ASIH\" ],\n [1706012001,1706012,\"SEMAMBANG MAKMUR\" ],\n [1706012002,1706012,\"GAJAH MAKMUR\" ],\n [1706012003,1706012,\"LUBUK TALANG\" ],\n [1706012004,1706012,\"SERAMI BARU\" ],\n [1706012005,1706012,\"TALANG ARAH\" ],\n [1706012006,1706012,\"TALANG BARU\" ],\n [1706012007,1706012,\"AIR MERAH\" ],\n [1706012008,1706012,\"UPT LUBUK TALANG\" ],\n [1706020005,1706020,\"AIR HITAM\" ],\n [1706020006,1706020,\"DUSUN TUNGGANG\" ],\n [1706020007,1706020,\"AIR BERAU\" ],\n [1706020008,1706020,\"PONDOK SUGUH\" ],\n [1706020010,1706020,\"AIR BIKUK\" ],\n [1706020011,1706020,\"SINAR LAUT\" ],\n [1706020013,1706020,\"LUBUK BENTO\" ],\n [1706020014,1706020,\"PONDOK KANDANG\" ],\n [1706020022,1706020,\"BUMI MEKAR JAYA\" ],\n [1706020023,1706020,\"KARYA MULYA\" ],\n [1706020024,1706020,\"TELUK BAKUNG\" ],\n [1706021001,1706021,\"PADANG GADING\" ],\n [1706021002,1706021,\"RETAK MUDIK\" ],\n [1706021003,1706021,\"MEKAR SARI\" ],\n [1706021004,1706021,\"GAJAH MATI\" ],\n [1706021005,1706021,\"SUMBER MAKMUR\" ],\n [1706021006,1706021,\"TALANG GADING\" ],\n [1706021007,1706021,\"SIDODADI\" ],\n [1706021008,1706021,\"GADING JAYA\" ],\n [1706021009,1706021,\"BANJAR SARI\" ],\n [1706022001,1706022,\"PASAR BANTAL\" ],\n [1706022002,1706022,\"TERAMANG JAYA\" ],\n [1706022003,1706022,\"NENGGALO\" ],\n [1706022004,1706022,\"PONDOK BARU\" ],\n [1706022005,1706022,\"BUNGA TANJUNG\" ],\n [1706022006,1706022,\"SIDO MAKMUR\" ],\n [1706022007,1706022,\"LUBUK SELANDAK\" ],\n [1706022008,1706022,\"BANDAR JAYA\" ],\n [1706022009,1706022,\"MANDI ANGIN JAYA\" ],\n [1706022010,1706022,\"NELAN INDAH\" ],\n [1706022011,1706022,\"PERNYAH\" ],\n [1706022012,1706022,\"BATU EJUNG\" ],\n [1706022013,1706022,\"BRANGAN MULYA\" ],\n [1706030012,1706030,\"TERAS TERUNJAM\" ],\n [1706030013,1706030,\"SETIA BUDI\" ],\n [1706030014,1706030,\"PONDOK KOPI\" ],\n [1706030015,1706030,\"TUNGGAL JAYA\" ],\n [1706030022,1706030,\"MEKAR JAYA\" ],\n [1706030023,1706030,\"KARANG JAYA\" ],\n [1706030024,1706030,\"TERUNTUNG\" ],\n [1706030025,1706030,\"TELANG KUNING\" ],\n [1706031001,1706031,\"BUMI MULYA\" ],\n [1706031002,1706031,\"PENARIK\" ],\n [1706031003,1706031,\"LUBUK MUKTI\" ],\n [1706031004,1706031,\"SUKA MAJU\" ],\n [1706031005,1706031,\"BUKIT MAKMUR\" ],\n [1706031006,1706031,\"SUMBER MULYA\" ],\n [1706031007,1706031,\"WONOSOBO\" ],\n [1706031008,1706031,\"MEKAR MULYA\" ],\n [1706031009,1706031,\"SIDO MULYO\" ],\n [1706031010,1706031,\"MARGA MUKTI\" ],\n [1706031011,1706031,\"SIDODADI\" ],\n [1706031012,1706031,\"MAJU MAKMUR\" ],\n [1706031013,1706031,\"SENDANG MULYO\" ],\n [1706031014,1706031,\"MARGA MULYA\" ],\n [1706032001,1706032,\"SUNGAI JERINJING\" ],\n [1706032002,1706032,\"PONDOK BARU\" ],\n [1706032003,1706032,\"SUNGAI IPUH\" ],\n [1706032004,1706032,\"SUNGAI GADING\" ],\n [1706032005,1706032,\"SURIAN BUNGKAL\" ],\n [1706032006,1706032,\"LUBUK SAHUNG\" ],\n [1706032007,1706032,\"LUBUK BANGKO\" ],\n [1706032008,1706032,\"TALANG BUAI\" ],\n [1706032009,1706032,\"AUR CINA\" ],\n [1706032010,1706032,\"SUNGAI IPUH SATU\" ],\n [1706032011,1706032,\"SUNGAI IPUH DUA\" ],\n [1706032012,1706032,\"TALANG MEDAN\" ],\n [1706040005,1706040,\"TANAH REKAH\" ],\n [1706040006,1706040,\"PASAR MUKOMUKO\" ],\n [1706040007,1706040,\"UJUNG PADANG\" ],\n [1706040008,1706040,\"PONDOK BATU\" ],\n [1706040009,1706040,\"SELAGAN JAYA\" ],\n [1706040014,1706040,\"PASAR SEBELAH\" ],\n [1706040033,1706040,\"KOTO JAYA\" ],\n [1706040034,1706040,\"BANDAR RATU\" ],\n [1706040035,1706040,\"TANAH HARAPAN\" ],\n [1706041001,1706041,\"AIR DIKIT\" ],\n [1706041002,1706041,\"PONDOK LUNANG\" ],\n [1706041003,1706041,\"DUSUN BARU V KOTO\" ],\n [1706041004,1706041,\"SARI BULAN\" ],\n [1706041005,1706041,\"SARI MAKMUR\" ],\n [1706041006,1706041,\"SUMBER SARI\" ],\n [1706041007,1706041,\"AIR KASAI\" ],\n [1706042001,1706042,\"RAWA MULYA\" ],\n [1706042002,1706042,\"DUSUN BARU PELOKAN\" ],\n [1706042003,1706042,\"LUBUK SANAI\" ],\n [1706042004,1706042,\"PAUH TERENJAH\" ],\n [1706042005,1706042,\"TANJUNG MULYA\" ],\n [1706042006,1706042,\"RAWA BANGUN\" ],\n [1706042007,1706042,\"LUBUK SANAI II\" ],\n [1706042008,1706042,\"LUBUK SANAI III\" ],\n [1706050001,1706050,\"SUMBER MAKMUR\" ],\n [1706050002,1706050,\"TANJUNG ALAI\" ],\n [1706050003,1706050,\"LUBUK GEDANG\" ],\n [1706050010,1706050,\"ARAH TIGA\" ],\n [1706050011,1706050,\"LUBUK PINANG\" ],\n [1706050012,1706050,\"SUKA PINDAH\" ],\n [1706050018,1706050,\"RANAH KARYA\" ],\n [1706051001,1706051,\"AGUNG JAYA\" ],\n [1706051002,1706051,\"PONDOK MAKMUR\" ],\n [1706051003,1706051,\"MANJUNTO JAYA\" ],\n [1706051004,1706051,\"TIRTA MAKMUR\" ],\n [1706051005,1706051,\"TIRTA MULYA\" ],\n [1706051006,1706051,\"KOTA PRAJA\" ],\n [1706051007,1706051,\"SINAR JAYA\" ],\n [1706051008,1706051,\"SIDO MAKMUR\" ],\n [1706052001,1706052,\"PONDOK TENGAH\" ],\n [1706052002,1706052,\"SUNGAI LINTANG\" ],\n [1706052003,1706052,\"TALANG PETAI\" ],\n [1706052004,1706052,\"LALANG LUAS\" ],\n [1706052005,1706052,\"RASNO\" ],\n [1706052006,1706052,\"PONDOK PANJANG\" ],\n [1706052007,1706052,\"TALANG SAKTI\" ],\n [1706052008,1706052,\"TALANG SEPAKAT\" ],\n [1706052009,1706052,\"LUBUK CABAU\" ],\n [1706052010,1706052,\"SUNGAI RENGAS\" ],\n [1707010001,1707010,\"BIOA SENGOK\" ],\n [1707010002,1707010,\"RIMBO PENGADANG\" ],\n [1707010003,1707010,\"TELUK DIEN\" ],\n [1707010009,1707010,\"TALANG RATU\" ],\n [1707010011,1707010,\"TIK KUTO\" ],\n [1707010012,1707010,\"BAJOK\" ],\n [1707011001,1707011,\"TOPOS\" ],\n [1707011002,1707011,\"TIK SIRONG\" ],\n [1707011003,1707011,\"SUKA NEGERI\" ],\n [1707011004,1707011,\"AJAI SIANG\" ],\n [1707011005,1707011,\"TALANG DONOK\" ],\n [1707011006,1707011,\"TALANG DONOK I\" ],\n [1707011007,1707011,\"TALANG BARU I\" ],\n [1707011008,1707011,\"TALANG BARU II\" ],\n [1707020010,1707020,\"SUKA SARI\" ],\n [1707020011,1707020,\"KUTAI DONOK\" ],\n [1707020012,1707020,\"MANGKURAJO\" ],\n [1707020013,1707020,\"T E S\" ],\n [1707020014,1707020,\"TABA ANYAR\" ],\n [1707020015,1707020,\"TURAN TIGING\" ],\n [1707020016,1707020,\"MUBAI\" ],\n [1707020017,1707020,\"TURAN LALANG\" ],\n [1707020026,1707020,\"TIK JENIAK\" ],\n [1707020027,1707020,\"MANAI BLAU\" ],\n [1707021001,1707021,\"KARANG DAPO ATAS\" ],\n [1707021002,1707021,\"BUKIT NIBUNG\" ],\n [1707021003,1707021,\"KARANG DAPO BAWAH\" ],\n [1707021004,1707021,\"PUNGGUK PEDARO\" ],\n [1707021005,1707021,\"TALANG KERINCI\" ],\n [1707021006,1707021,\"PELABUHAN TALANG LIAK\" ],\n [1707021007,1707021,\"TALANG LIAK I\" ],\n [1707021008,1707021,\"TALANG LIAK II\" ],\n [1707021009,1707021,\"BUNGIN\" ],\n [1707030001,1707030,\"SEMELAKO ATAS\" ],\n [1707030002,1707030,\"SEMELAKO I\" ],\n [1707030003,1707030,\"KARANG ANYAR\" ],\n [1707030004,1707030,\"TANJUNG BUNGAI I\" ],\n [1707030005,1707030,\"PAGAR AGUNG\" ],\n [1707030006,1707030,\"EMBONG PANJANG\" ],\n [1707030013,1707030,\"TANJUNG BUNGAI II\" ],\n [1707030014,1707030,\"SEMELAKO II\" ],\n [1707030015,1707030,\"SEMELAKO III\" ],\n [1707030016,1707030,\"DANAU LIANG\" ],\n [1707030017,1707030,\"SUKA DAMAI\" ],\n [1707031001,1707031,\"UJUNG TANJUNG I\" ],\n [1707031002,1707031,\"MUNING AGUNG\" ],\n [1707031003,1707031,\"UJUNG TANJUNG II\" ],\n [1707031004,1707031,\"UJUNG TANJUNG III\" ],\n [1707031005,1707031,\"MAGELANG BARU\" ],\n [1707031006,1707031,\"LEMEU PIT\" ],\n [1707031007,1707031,\"TABEAK KAUK\" ],\n [1707031008,1707031,\"TABEAK DIPOA\" ],\n [1707031009,1707031,\"SUKA BUMI\" ],\n [1707040001,1707040,\"TIK TEBING\" ],\n [1707040002,1707040,\"TABEAK BLAU\" ],\n [1707040005,1707040,\"BLAU\" ],\n [1707040006,1707040,\"SUKAU KAYO\" ],\n [1707040007,1707040,\"TABEAK BLAU I\" ],\n [1707040008,1707040,\"DANEU\" ],\n [1707041001,1707041,\"PADANG BANO\" ],\n [1707041002,1707041,\"SEBAYUA\" ],\n [1707041003,1707041,\"UEI\" ],\n [1707041004,1707041,\"KEMBUNG\" ],\n [1707041005,1707041,\"LIMES\" ],\n [1707042001,1707042,\"TANJUNG AGUNG\" ],\n [1707042002,1707042,\"SUKAU DATANG\" ],\n [1707042003,1707042,\"SUKAU DATANG I\" ],\n [1707042004,1707042,\"GUNUNG ALAM\" ],\n [1707042005,1707042,\"TABEAK BLAU II\" ],\n [1707042006,1707042,\"KOTA BARU SANTAN\" ],\n [1707042007,1707042,\"TIK TELEU\" ],\n [1707042008,1707042,\"PELABAI\" ],\n [1707050013,1707050,\"TALANG ULU\" ],\n [1707050014,1707050,\"KAMPUNG MUARA AMAN\" ],\n [1707050028,1707050,\"NANGAI AMEN\" ],\n [1707050029,1707050,\"PASAR MUARA AMAN\" ],\n [1707050030,1707050,\"KAMPUNG DALAM\" ],\n [1707050031,1707050,\"GANDUNG\" ],\n [1707050032,1707050,\"LOKASARI\" ],\n [1707050033,1707050,\"LEBONG TAMBANG\" ],\n [1707050034,1707050,\"KAMPUNG JAWA\" ],\n [1707050035,1707050,\"LADANG PALEMBANG\" ],\n [1707050036,1707050,\"TUNGGANG\" ],\n [1707050043,1707050,\"GANDUNG BARU\" ],\n [1707051001,1707051,\"NANGAI TAYAU\" ],\n [1707051002,1707051,\"NANGAI TAYAU I\" ],\n [1707051003,1707051,\"PYANG MBIK\" ],\n [1707051004,1707051,\"SUKAU MERGO\" ],\n [1707051005,1707051,\"SUKAU RAJO\" ],\n [1707051006,1707051,\"TALANG BUNUT\" ],\n [1707051007,1707051,\"SELEBAR JAYA\" ],\n [1707051008,1707051,\"GARUT\" ],\n [1707051009,1707051,\"AMEN\" ],\n [1707051010,1707051,\"SUNGAI GERONG\" ],\n [1707052001,1707052,\"EMBONG\" ],\n [1707052002,1707052,\"EMBONG SATU\" ],\n [1707052003,1707052,\"KOTA BARU\" ],\n [1707052004,1707052,\"KOTA AGUNG\" ],\n [1707052005,1707052,\"LEMEU\" ],\n [1707052006,1707052,\"PANGKALAN\" ],\n [1707052007,1707052,\"TANGUA\" ],\n [1707053001,1707053,\"KETENONG SATU\" ],\n [1707053002,1707053,\"KETENONG DUA\" ],\n [1707053003,1707053,\"KETENONG JAYA\" ],\n [1707053004,1707053,\"TAMBANG SAWEAK\" ],\n [1707053005,1707053,\"AIR KOPRAS\" ],\n [1707053006,1707053,\"BIOA PUTIAK\" ],\n [1707053007,1707053,\"SEBELET\" ],\n [1707053008,1707053,\"SUNGAI LISAI\" ],\n [1708010001,1708010,\"LIMBUR BARU\" ],\n [1708010002,1708010,\"BATU KALUNG\" ],\n [1708010003,1708010,\"SOSOKAN BARU\" ],\n [1708010004,1708010,\"SOSOKAN TABA\" ],\n [1708010005,1708010,\"BATU BANDUNG\" ],\n [1708010006,1708010,\"TALANG TIGE\" ],\n [1708010007,1708010,\"RENAH KURUNG\" ],\n [1708010008,1708010,\"WARUNG POJOK\" ],\n [1708020001,1708020,\"KEMBANG SERI\" ],\n [1708020002,1708020,\"PAGAR AGUNG\" ],\n [1708020003,1708020,\"TALANG PITO\" ],\n [1708020004,1708020,\"TALANG SAWAH\" ],\n [1708020005,1708020,\"KOTA AGUNG\" ],\n [1708020006,1708020,\"EMBONG IJUK\" ],\n [1708020007,1708020,\"LIMBUR LAMA\" ],\n [1708020008,1708020,\"CINTO MANDI\" ],\n [1708020009,1708020,\"KEBAN AGUNG\" ],\n [1708020010,1708020,\"GUNUNG AGUNG\" ],\n [1708020011,1708020,\"EMBONG SIDO\" ],\n [1708020012,1708020,\"TABA BARU\" ],\n [1708020013,1708020,\"BATU BELARIK\" ],\n [1708020014,1708020,\"BUKIT MENYAN\" ],\n [1708020015,1708020,\"SOSOKAN CINTO MANDI\" ],\n [1708020016,1708020,\"MUARA LANGKAP\" ],\n [1708020017,1708020,\"AIR RAMAN\" ],\n [1708020018,1708020,\"LANGGAR JAYA\" ],\n [1708020019,1708020,\"CINTA MANDI BARU\" ],\n [1708030001,1708030,\"BENUANG GALING\" ],\n [1708030002,1708030,\"AIR SELIMANG\" ],\n [1708030003,1708030,\"TEBAT LAUT\" ],\n [1708030004,1708030,\"TABA PADANG\" ],\n [1708030005,1708030,\"LUBUK SAHUNG\" ],\n [1708030006,1708030,\"TEMDAK\" ],\n [1708030007,1708030,\"KANDANG\" ],\n [1708030008,1708030,\"CIREBON BARU\" ],\n [1708030009,1708030,\"TALANG GELOMPOK\" ],\n [1708030010,1708030,\"AIR PESI\" ],\n [1708030011,1708030,\"TALANG BABATAN\" ],\n [1708030012,1708030,\"BAYUNG\" ],\n [1708030013,1708030,\"SUNGAI JERNIH\" ],\n [1708040001,1708040,\"TERTIK\" ],\n [1708040002,1708040,\"TABA AIR PAUH\" ],\n [1708040003,1708040,\"PENANJUNG PANJANG\" ],\n [1708040004,1708040,\"PERADUAN BINJAI\" ],\n [1708040005,1708040,\"TALANG KARET\" ],\n [1708040006,1708040,\"TEBAT KARAI\" ],\n [1708040007,1708040,\"TABA SATING\" ],\n [1708040008,1708040,\"NANTI AGUNG\" ],\n [1708040009,1708040,\"KARANG TENGAH\" ],\n [1708040010,1708040,\"TAPAK GEDUNG\" ],\n [1708040011,1708040,\"TEBING PENYAMUN\" ],\n [1708040012,1708040,\"SINAR GUNUNG\" ],\n [1708040013,1708040,\"TABA SALING\" ],\n [1708040014,1708040,\"PENANJUNG PANJANG ATAS\" ],\n [1708050001,1708050,\"TEBAT MONOK\" ],\n [1708050002,1708050,\"KELILIK\" ],\n [1708050003,1708050,\"IMIGRASI PERMU\" ],\n [1708050004,1708050,\"PERMU\" ],\n [1708050005,1708050,\"PASAR UJUNG\" ],\n [1708050006,1708050,\"KARANG ENDAH\" ],\n [1708050007,1708050,\"WESKUST\" ],\n [1708050008,1708050,\"KAMPUNG BOGOR\" ],\n [1708050009,1708050,\"PENSIUNAN\" ],\n [1708050010,1708050,\"PASAR KEPAHIANG\" ],\n [1708050011,1708050,\"DUSUN KEPAHIANG\" ],\n [1708050012,1708050,\"KUTO REJO\" ],\n [1708050013,1708050,\"KARANG ANYAR\" ],\n [1708050014,1708050,\"TABA TEBELET\" ],\n [1708050015,1708050,\"PELANGKIAN\" ],\n [1708050016,1708050,\"KELOBAK\" ],\n [1708050017,1708050,\"PAGAR GUNUNG\" ],\n [1708050018,1708050,\"SUKA MERINDU\" ],\n [1708050019,1708050,\"KAMPUNG PENSIUNAN\" ],\n [1708050020,1708050,\"PASAR SEJANTUNG\" ],\n [1708050021,1708050,\"PADANG LEKAT\" ],\n [1708050022,1708050,\"BOGOR BARU\" ],\n [1708050023,1708050,\"PERMU BAWAH\" ],\n [1708060001,1708060,\"SUKA SARI\" ],\n [1708060002,1708060,\"BUKIT SARI\" ],\n [1708060003,1708060,\"TANGSI DUREN\" ],\n [1708060004,1708060,\"TANGSI BARU\" ],\n [1708060005,1708060,\"PEMATANG DONOK\" ],\n [1708060006,1708060,\"BABAKAN BOGOR\" ],\n [1708060007,1708060,\"BARAT WETAN\" ],\n [1708060008,1708060,\"AIR SEMPIANG\" ],\n [1708060009,1708060,\"TUGU REJO\" ],\n [1708060010,1708060,\"BANDUNG BARU\" ],\n [1708060011,1708060,\"SIDO MAKMUR\" ],\n [1708060012,1708060,\"SUMBER SARI\" ],\n [1708060013,1708060,\"MEKAR SARI\" ],\n [1708060015,1708060,\"SIDO REJO\" ],\n [1708060016,1708060,\"BANDUNG JAYA\" ],\n [1708070001,1708070,\"DASPETAH\" ],\n [1708070002,1708070,\"UJAN MAS BAWAH\" ],\n [1708070003,1708070,\"UJAN MAS ATAS\" ],\n [1708070004,1708070,\"SURO LEMBAK\" ],\n [1708070005,1708070,\"SURO ILIR\" ],\n [1708070006,1708070,\"SURO MUNCAR\" ],\n [1708070007,1708070,\"SURO BARU\" ],\n [1708070008,1708070,\"PEKALONGAN\" ],\n [1708070009,1708070,\"PUNGGUK MERANTI\" ],\n [1708070010,1708070,\"BUMI SARI\" ],\n [1708070011,1708070,\"CUGUNG LALANG\" ],\n [1708070012,1708070,\"SURO BALI\" ],\n [1708070013,1708070,\"TANJUNG ALAM\" ],\n [1708070014,1708070,\"PUNGGUK BERINGANG\" ],\n [1708070015,1708070,\"MERANTI JAYA\" ],\n [1708070016,1708070,\"AIR HITAM\" ],\n [1708070017,1708070,\"DASPETAH II\" ],\n [1708080001,1708080,\"LUBUK PENYAMUN\" ],\n [1708080002,1708080,\"BUKIT BARISAN\" ],\n [1708080003,1708080,\"DURIAN DEPUN\" ],\n [1708080004,1708080,\"PULO GETO\" ],\n [1708080005,1708080,\"TABA MULAN\" ],\n [1708080006,1708080,\"SIMPANG KOTA BINGIN\" ],\n [1708080007,1708080,\"BATU AMPAR\" ],\n [1708080008,1708080,\"PULO GETO BARU\" ],\n [1709010001,1709010,\"AIR SEBAKUL\" ],\n [1709010002,1709010,\"BUKIT\" ],\n [1709010003,1709010,\"LAGAN BUNGIN\" ],\n [1709010004,1709010,\"TABALAGAN\" ],\n [1709010005,1709010,\"LAGAN\" ],\n [1709010006,1709010,\"PULAU PANGGUNG\" ],\n [1709010007,1709010,\"JAYAKARTA\" ],\n [1709010008,1709010,\"TENGAH PADANG\" ],\n [1709010009,1709010,\"KEMBANG SERI\" ],\n [1709010010,1709010,\"TABA PASMAH\" ],\n [1709010011,1709010,\"NAKAU\" ],\n [1709010012,1709010,\"PADANG ULAK TANJUNG\" ],\n [1709010013,1709010,\"PAGAR JATI\" ],\n [1709010014,1709010,\"JUMAT\" ],\n [1709010015,1709010,\"AIR PUTIH\" ],\n [1709020001,1709020,\"KARANG NANDING\" ],\n [1709020002,1709020,\"PENANDING\" ],\n [1709020003,1709020,\"DURIAN DEMANG\" ],\n [1709020004,1709020,\"DUSUN BARU II\" ],\n [1709020005,1709020,\"KARANG TINGGI\" ],\n [1709020006,1709020,\"TABA MUTUNG\" ],\n [1709020007,1709020,\"KANCING\" ],\n [1709020008,1709020,\"UJUNG KARANG\" ],\n [1709020009,1709020,\"TALANG EMPAT\" ],\n [1709020010,1709020,\"TABA TERUNJAM\" ],\n [1709020011,1709020,\"PADANG TAMBAK\" ],\n [1709020012,1709020,\"RENA LEBAR\" ],\n [1709020013,1709020,\"PELAJAU\" ],\n [1709020014,1709020,\"RENA SEMANEK\" ],\n [1709020015,1709020,\"GAJAH MATI\" ],\n [1709020016,1709020,\"SEMIDANG\" ],\n [1709020017,1709020,\"PAGAR GUNUNG\" ],\n [1709020018,1709020,\"PADANG SIRING\" ],\n [1709030001,1709030,\"KOTA NIUR\" ],\n [1709030002,1709030,\"TANJUNG RAMAN\" ],\n [1709030003,1709030,\"SUKARAMI\" ],\n [1709030004,1709030,\"KARANG TENGAH\" ],\n [1709030005,1709030,\"LUBUK SINI\" ],\n [1709030006,1709030,\"BAJAK I\" ],\n [1709030007,1709030,\"SURAU\" ],\n [1709030008,1709030,\"RINDU HATI\" ],\n [1709030009,1709030,\"TANJUNG HERAN\" ],\n [1709030010,1709030,\"TABA TERET\" ],\n [1709030011,1709030,\"TABA PENANJUNG\" ],\n [1709030012,1709030,\"DATAR LEBAR\" ],\n [1709030019,1709030,\"PENUM\" ],\n [1709030020,1709030,\"TABA BARU\" ],\n [1709031001,1709031,\"BAJAK II\" ],\n [1709031002,1709031,\"JAMBU\" ],\n [1709031003,1709031,\"PENEMBANG\" ],\n [1709031004,1709031,\"LUBUK UNEN\" ],\n [1709031005,1709031,\"PUNGGUK KETUPAK\" ],\n [1709031006,1709031,\"PUNGGUK BERINGIN\" ],\n [1709031007,1709031,\"KELINDANG\" ],\n [1709031008,1709031,\"ULAK LEBAR\" ],\n [1709031009,1709031,\"TABA DURIAN SEBAKUL\" ],\n [1709031010,1709031,\"TALANG AMBUNG\" ],\n [1709031011,1709031,\"LUBUK UNEN BARU\" ],\n [1709031012,1709031,\"PADANG KEDEPER\" ],\n [1709031013,1709031,\"KELINDANG ATAS\" ],\n [1709040008,1709040,\"TABA RENAH\" ],\n [1709040009,1709040,\"TEMIANG\" ],\n [1709040011,1709040,\"KERTAPATI\" ],\n [1709040012,1709040,\"PAGAR JATI\" ],\n [1709040014,1709040,\"ARGA INDAH I\" ],\n [1709040015,1709040,\"DATAR PENOKOT\" ],\n [1709040016,1709040,\"LAYANG LEKAT\" ],\n [1709040017,1709040,\"TALANG CURUP\" ],\n [1709040018,1709040,\"TUMBUK\" ],\n [1709040019,1709040,\"RENA KANDIS\" ],\n [1709040020,1709040,\"KARANG ARE\" ],\n [1709040021,1709040,\"KERTAPATI MUDIK\" ],\n [1709040022,1709040,\"KEROYA\" ],\n [1709040023,1709040,\"RENA JAYA\" ],\n [1709041001,1709041,\"LUBUK PUAR\" ],\n [1709041002,1709041,\"PUNJUNG\" ],\n [1709041003,1709041,\"BAJAK III\" ],\n [1709041004,1709041,\"KOMERING\" ],\n [1709041005,1709041,\"ARGA INDAH II\" ],\n [1709041006,1709041,\"CURUP\" ],\n [1709041007,1709041,\"KARANG PANGGUNG\" ],\n [1709041008,1709041,\"LUBUK PENDAM\" ],\n [1709041009,1709041,\"RAJAK BESI\" ],\n [1709041010,1709041,\"SUSUP\" ],\n [1709041011,1709041,\"PAGAR AGUNG\" ],\n [1709041012,1709041,\"DURIAN LEBAR\" ],\n [1709041013,1709041,\"TABA GEMANTUNG\" ],\n [1709041014,1709041,\"PUNGGUK JAYA\" ],\n [1709041015,1709041,\"PAGAR BESI\" ],\n [1709050001,1709050,\"PEKIK NYARING\" ],\n [1709050002,1709050,\"SRIKUNCORO\" ],\n [1709050010,1709050,\"PANCA MUKTI\" ],\n [1709050011,1709050,\"SRIKATON\" ],\n [1709050012,1709050,\"PASAR PEDATI\" ],\n [1709050013,1709050,\"TALANG PAUH\" ],\n [1709050014,1709050,\"SIDODADI\" ],\n [1709050015,1709050,\"TALANG BUSENG\" ],\n [1709050017,1709050,\"KEMBANG AYUN\" ],\n [1709050018,1709050,\"PAGARDEWA\" ],\n [1709050019,1709050,\"SIDOREJO\" ],\n [1709050020,1709050,\"SUNDA KELAPA\" ],\n [1709050021,1709050,\"PONDOK KELAPA\" ],\n [1709050022,1709050,\"PADANG BETUAH\" ],\n [1709050023,1709050,\"BINTANG SELATAN\" ],\n [1709050024,1709050,\"ABU SAKIM\" ],\n [1709050025,1709050,\"HARAPAN\" ],\n [1709051001,1709051,\"TANJUNG TERDANA\" ],\n [1709051002,1709051,\"PONDOK KUBANG\" ],\n [1709051003,1709051,\"ANYAR\" ],\n [1709051004,1709051,\"BATU RAJA\" ],\n [1709051005,1709051,\"TANJUNG DALAM\" ],\n [1709051006,1709051,\"TALANG TENGAH I\" ],\n [1709051007,1709051,\"LINGGAR GALING\" ],\n [1709051008,1709051,\"PAKU HAJI\" ],\n [1709051009,1709051,\"DUSUN BARU I\" ],\n [1709051010,1709051,\"HARAPAN MAKMUR\" ],\n [1709051011,1709051,\"TABA JAMBU\" ],\n [1709051012,1709051,\"MARGO MULYO\" ],\n [1709060011,1709060,\"KOTA TITIK\" ],\n [1709060012,1709060,\"ATURAN MUMPO\" ],\n [1709060013,1709060,\"SENABAH\" ],\n [1709060014,1709060,\"TALANG TENGAH II\" ],\n [1709060015,1709060,\"TANJUNG KEPAYANG\" ],\n [1709060016,1709060,\"KEBUN LEBAR\" ],\n [1709060017,1709060,\"TIAMBANG\" ],\n [1709060018,1709060,\"PEMATANG TIGA\" ],\n [1709060019,1709060,\"BATU BARIANG\" ],\n [1709060020,1709060,\"AIR KOTOK\" ],\n [1709060021,1709060,\"ATURAN MUMPO II\" ],\n [1709060022,1709060,\"GENTING DABUK\" ],\n [1709060023,1709060,\"PEMATANG TIGA LAMA\" ],\n [1709061001,1709061,\"SEKAYUN\" ],\n [1709061002,1709061,\"SEKAYUN MUDIK\" ],\n [1709061003,1709061,\"SEKAYUN ILIR\" ],\n [1709061004,1709061,\"TALANG DONOK\" ],\n [1709061005,1709061,\"TABA TENGAH\" ],\n [1709061006,1709061,\"PADANG BURNAI\" ],\n [1709061007,1709061,\"LUBUK LANGKAP\" ],\n [1709061008,1709061,\"AIR NAPAL\" ],\n [1709061009,1709061,\"GENTING\" ],\n [1709061010,1709061,\"TALANG PANJANG\" ],\n [1709061011,1709061,\"BANG HAJI\" ],\n [1709061012,1709061,\"SUNGKAI BERAYUN\" ],\n [1771010003,1771010,\"BETUNGAN\" ],\n [1771010004,1771010,\"PEKAN SABTU\" ],\n [1771010005,1771010,\"SUKA RAMI\" ],\n [1771010006,1771010,\"PAGAR DEWA\" ],\n [1771010007,1771010,\"BUMIAYU\" ],\n [1771010008,1771010,\"SUMUR DEWA\" ],\n [1771011001,1771011,\"TELUK SEPANG\" ],\n [1771011002,1771011,\"SUMBER JAYA\" ],\n [1771011003,1771011,\"KANDANG\" ],\n [1771011004,1771011,\"KANDANG MAS\" ],\n [1771011005,1771011,\"PADANG SERAI\" ],\n [1771011006,1771011,\"MUARA DUA\" ],\n [1771020001,1771020,\"SIDO MULYO\" ],\n [1771020005,1771020,\"JALAN GEDANG\" ],\n [1771020006,1771020,\"PADANG HARAPAN\" ],\n [1771020024,1771020,\"CEMPAKA PERMAI\" ],\n [1771020027,1771020,\"LINKAR BARAT\" ],\n [1771021001,1771021,\"TANAH PATAH\" ],\n [1771021002,1771021,\"KEBUN TEBENG\" ],\n [1771021003,1771021,\"SAWAH LEBAR BARU\" ],\n [1771021004,1771021,\"SAWAH LEBAR\" ],\n [1771021005,1771021,\"NUSA INDAH\" ],\n [1771021006,1771021,\"KEBUN KENANGA\" ],\n [1771021007,1771021,\"KEBUN BELER\" ],\n [1771021008,1771021,\"LEMPUING\" ],\n [1771022001,1771022,\"ANGGUT BAWAH\" ],\n [1771022002,1771022,\"PENURUNAN\" ],\n [1771022003,1771022,\"PADANG JATI\" ],\n [1771022004,1771022,\"BELAKANG PONDOK\" ],\n [1771022005,1771022,\"PENGANTUNGAN\" ],\n [1771022006,1771022,\"KEBUN DAHRI\" ],\n [1771022007,1771022,\"KEBUN GERAND\" ],\n [1771022008,1771022,\"ANGGUT ATAS\" ],\n [1771022009,1771022,\"ANGGUT DALAM\" ],\n [1771023001,1771023,\"JEMBATAN KECIL\" ],\n [1771023002,1771023,\"PANORAMA\" ],\n [1771023003,1771023,\"LINGKAR TIMUR\" ],\n [1771023004,1771023,\"TIMUR INDAH\" ],\n [1771023005,1771023,\"PADANG NANGKA\" ],\n [1771023006,1771023,\"DUSUN BESAR\" ],\n [1771030001,1771030,\"KEBUN KELING\" ],\n [1771030004,1771030,\"MALABERO\" ],\n [1771030005,1771030,\"SUMUR MELELE\" ],\n [1771030006,1771030,\"PASAR BERKAS\" ],\n [1771030007,1771030,\"PASAR BARU\" ],\n [1771030008,1771030,\"PASAR JITRA\" ],\n [1771030009,1771030,\"PASAR MELINTANG\" ],\n [1771030011,1771030,\"PONDOK BESI\" ],\n [1771030012,1771030,\"KEBUN ROS\" ],\n [1771030013,1771030,\"PINTU BATU\" ],\n [1771030014,1771030,\"TENGAH PADANG\" ],\n [1771030015,1771030,\"BAJAK\" ],\n [1771030016,1771030,\"KAMPUNG BALI\" ],\n [1771031001,1771031,\"SURABAYA\" ],\n [1771031002,1771031,\"SEMARANG\" ],\n [1771031003,1771031,\"TANJUNG JAYA\" ],\n [1771031004,1771031,\"TANJUNG AGUNG\" ],\n [1771031005,1771031,\"SUKA MERINDU\" ],\n [1771031006,1771031,\"KAMPUNG KELAWI\" ],\n [1771031007,1771031,\"PASAR BENGKULU\" ],\n [1771040001,1771040,\"BERINGIN RAYA\" ],\n [1771040002,1771040,\"RAWA MAKMUR\" ],\n [1771040003,1771040,\"KANDANG LIMUN\" ],\n [1771040004,1771040,\"PEMATANG GUBERNUR\" ],\n [1771040005,1771040,\"BENTIRING\" ],\n [1771040006,1771040,\"RAWA MAKMUR PERMAI\" ],\n [1771040007,1771040,\"BENTIRING PERMAI\" ],\n [1801040001,1801040,\"KUBU PERAHU\" ],\n [1801040002,1801040,\"WAY EMPULAU ULU\" ],\n [1801040003,1801040,\"WATAS\" ],\n [1801040004,1801040,\"PADANG DALOM\" ],\n [1801040005,1801040,\"GUNUNG SUGIH\" ],\n [1801040006,1801040,\"SEBARUS\" ],\n [1801040007,1801040,\"PASAR LIWA\" ],\n [1801040008,1801040,\"WAY MENGAKU\" ],\n [1801040009,1801040,\"PADANG CAHYA\" ],\n [1801040012,1801040,\"SUKARAME\" ],\n [1801040013,1801040,\"BAHWAY\" ],\n [1801040014,1801040,\"SEDAMPAH INDAH\" ],\n [1801041001,1801041,\"TANJUNG RAYA\" ],\n [1801041002,1801041,\"HANAKAU\" ],\n [1801041003,1801041,\"BUAY NYERUPA\" ],\n [1801041004,1801041,\"TAPAK SIRING\" ],\n [1801041005,1801041,\"PAGAR DEWA\" ],\n [1801041006,1801041,\"JAGA RAGA\" ],\n [1801041012,1801041,\"SUKA MULYA\" ],\n [1801041018,1801041,\"BANDAR BARU\" ],\n [1801041019,1801041,\"BUMI JAYA\" ],\n [1801041020,1801041,\"TEBA PERING RAYA\" ],\n [1801042001,1801042,\"LOMBOK\" ],\n [1801042002,1801042,\"HENI ARONG\" ],\n [1801042003,1801042,\"SUKA BANJAR\" ],\n [1801042004,1801042,\"LOMBOK TIMUR\" ],\n [1801042005,1801042,\"SUKA BANJAR II UJUNG REMBUN\" ],\n [1801042006,1801042,\"SUKA MAJU\" ],\n [1801042007,1801042,\"UJUNG\" ],\n [1801042008,1801042,\"KEAGUNGAN\" ],\n [1801042009,1801042,\"TAWAN SUKA MULYA\" ],\n [1801042010,1801042,\"PANCUR MAS\" ],\n [1801042011,1801042,\"LOMBOK SELATAN\" ],\n [1801050025,1801050,\"HUJUNG\" ],\n [1801050026,1801050,\"KENALI\" ],\n [1801050027,1801050,\"BEDUDU\" ],\n [1801050028,1801050,\"SUKARAMI\" ],\n [1801050031,1801050,\"KEJADIAN\" ],\n [1801050032,1801050,\"BUMI AGUNG\" ],\n [1801050033,1801050,\"TURGAK\" ],\n [1801050034,1801050,\"SERUNGKUK\" ],\n [1801050039,1801050,\"SUKA MAKMUR\" ],\n [1801050041,1801050,\"PAJAR AGUNG\" ],\n [1801051001,1801051,\"TIGA JAYA\" ],\n [1801051002,1801051,\"WASPADA\" ],\n [1801051003,1801051,\"GIHAM SUKAMAJU\" ],\n [1801051004,1801051,\"SEKINCAU\" ],\n [1801051005,1801051,\"PAMPANGAN\" ],\n [1801052001,1801052,\"TUGU RATU\" ],\n [1801052002,1801052,\"BANDING AGUNG\" ],\n [1801052003,1801052,\"ROWOREJO\" ],\n [1801052006,1801052,\"SUMBER AGUNG\" ],\n [1801052007,1801052,\"SUKA MARGA\" ],\n [1801052013,1801052,\"SIDO REJO\" ],\n [1801052017,1801052,\"RINGIN SARI\" ],\n [1801053001,1801053,\"KOTA BESI\" ],\n [1801053002,1801053,\"CANGGU\" ],\n [1801053003,1801053,\"GUNUNG SUGIH\" ],\n [1801053004,1801053,\"PEKON BALAK\" ],\n [1801053005,1801053,\"SUKABUMI\" ],\n [1801053006,1801053,\"KEGERINGAN\" ],\n [1801053007,1801053,\"NEGERI RATU\" ],\n [1801053008,1801053,\"KEMBAHANG\" ],\n [1801053009,1801053,\"SUKARAJA\" ],\n [1801053010,1801053,\"KERANG\" ],\n [1801053011,1801053,\"TEBA LIYOKH\" ],\n [1801054001,1801054,\"PAHAYU JAYA\" ],\n [1801054002,1801054,\"BASUNGAN\" ],\n [1801054003,1801054,\"MEKAR SARI\" ],\n [1801054004,1801054,\"SIDOMULYO\" ],\n [1801054005,1801054,\"SIDODADI\" ],\n [1801054006,1801054,\"MARGA JAYA\" ],\n [1801054007,1801054,\"SUKA JAYA\" ],\n [1801054008,1801054,\"BATU API\" ],\n [1801054009,1801054,\"PAGAR DEWA\" ],\n [1801054010,1801054,\"SUKA MULYA\" ],\n [1801055001,1801055,\"ARGOMULYO\" ],\n [1801055002,1801055,\"BATU KEBAYAN\" ],\n [1801055003,1801055,\"ATAR BAWANG\" ],\n [1801055004,1801055,\"CAMPANG TIGA\" ],\n [1801055005,1801055,\"LUAS\" ],\n [1801055006,1801055,\"BAKHU\" ],\n [1801055007,1801055,\"WAY NGISON\" ],\n [1801055008,1801055,\"KUBU LIKU JAYA\" ],\n [1801055009,1801055,\"SUMBER REJO\" ],\n [1801055010,1801055,\"ATAR KUWAU\" ],\n [1801056001,1801056,\"SUOH\" ],\n [1801056002,1801056,\"SRIMULYO\" ],\n [1801056003,1801056,\"BANDAR AGUNG\" ],\n [1801056004,1801056,\"RINGIN JAYA\" ],\n [1801056005,1801056,\"BUMI HANTATAI\" ],\n [1801056006,1801056,\"GUNUNG RATU\" ],\n [1801056007,1801056,\"TANJUNG SARI\" ],\n [1801056008,1801056,\"NEGERI JAYA\" ],\n [1801056009,1801056,\"TEMBELANG\" ],\n [1801056010,1801056,\"TRI MEKAR JAYA\" ],\n [1801060014,1801060,\"SINDANG PAGAR\" ],\n [1801060015,1801060,\"SUKA JAYA\" ],\n [1801060026,1801060,\"SIMPANG SARI\" ],\n [1801060027,1801060,\"WAY PETAY\" ],\n [1801060028,1801060,\"SUKAPURA\" ],\n [1801060030,1801060,\"TUGUSARI\" ],\n [1801061001,1801061,\"TAMBAK JAYA\" ],\n [1801061002,1801061,\"PADANG TAMBAK\" ],\n [1801061003,1801061,\"SUKARAJA\" ],\n [1801061004,1801061,\"SUKANANTI\" ],\n [1801061007,1801061,\"TANJUNG RAYA\" ],\n [1801061011,1801061,\"MUTAR ALAM\" ],\n [1801061012,1801061,\"KARANG AGUNG\" ],\n [1801061013,1801061,\"PURA LAKSANA\" ],\n [1801061014,1801061,\"FAJAR BULAN\" ],\n [1801062001,1801062,\"MEKAR JAYA\" ],\n [1801062002,1801062,\"PURA MEKAR\" ],\n [1801062003,1801062,\"CIPTA WARAS\" ],\n [1801062004,1801062,\"TRI MULYO\" ],\n [1801062005,1801062,\"GEDUNG SURIAN\" ],\n [1801063001,1801063,\"PURA JAYA\" ],\n [1801063002,1801063,\"PURA WIWITAN\" ],\n [1801063003,1801063,\"TRIBUDI SYUKUR\" ],\n [1801063004,1801063,\"MUARA JAYA I\" ],\n [1801063005,1801063,\"MUARA JAYA II\" ],\n [1801063006,1801063,\"TRIBUDI MAKMUR\" ],\n [1801063007,1801063,\"TUGU MULYA\" ],\n [1801063008,1801063,\"CIPTA MULYA\" ],\n [1801063009,1801063,\"MUARA BARU\" ],\n [1801063010,1801063,\"SINAR LUAS\" ],\n [1801064001,1801064,\"SIDODADI\" ],\n [1801064002,1801064,\"SEMARANG JAYA\" ],\n [1801064003,1801064,\"SUMBER ALAM\" ],\n [1801064004,1801064,\"GUNUNG TERANG\" ],\n [1801064005,1801064,\"SUKA JADI\" ],\n [1801064006,1801064,\"SRI MENANTI\" ],\n [1801064007,1801064,\"SINAR JAYA\" ],\n [1801064008,1801064,\"RIGIS JAYA\" ],\n [1801064009,1801064,\"SUKA DAMAI\" ],\n [1801064010,1801064,\"MANGGARAI\" ],\n [1802010003,1802010,\"KARANG ANYAR\" ],\n [1802010008,1802010,\"KALIREJO\" ],\n [1802010009,1802010,\"DADIREJO\" ],\n [1802010010,1802010,\"BANYU URIP\" ],\n [1802010011,1802010,\"WONOSOBO\" ],\n [1802010012,1802010,\"SOPONYONO\" ],\n [1802010013,1802010,\"BANDAR KEJADIAN\" ],\n [1802010014,1802010,\"WAY PANAS\" ],\n [1802010015,1802010,\"SINAR SAUDARA\" ],\n [1802010016,1802010,\"SRIDADI\" ],\n [1802010017,1802010,\"LAKARAN\" ],\n [1802010018,1802010,\"PADANG RATU\" ],\n [1802010019,1802010,\"PARDA SUKA\" ],\n [1802010020,1802010,\"TANJUNG KURUNG\" ],\n [1802010021,1802010,\"PADANG MANIS\" ],\n [1802010022,1802010,\"KEJADIAN\" ],\n [1802010023,1802010,\"DADISARI\" ],\n [1802010024,1802010,\"KALISARI\" ],\n [1802010029,1802010,\"BANJAR NEGORO\" ],\n [1802010030,1802010,\"PEKON BALAK\" ],\n [1802010031,1802010,\"KUNYAYAN\" ],\n [1802010032,1802010,\"BANJARSARI\" ],\n [1802010037,1802010,\"NEGERI NGARIP\" ],\n [1802010038,1802010,\"SAMPANG TURUS\" ],\n [1802010039,1802010,\"WAY LIWOK\" ],\n [1802010040,1802010,\"SUMUR TUJUH\" ],\n [1802010041,1802010,\"DADI MULYO\" ],\n [1802010042,1802010,\"SRI MELATI\" ],\n [1802011001,1802011,\"TUGU PAPAK\" ],\n [1802011002,1802011,\"KARANG REJO\" ],\n [1802011003,1802011,\"GARUT\" ],\n [1802011004,1802011,\"SIDO DADI\" ],\n [1802011005,1802011,\"KACA PURA\" ],\n [1802011006,1802011,\"TUGU REJO\" ],\n [1802011007,1802011,\"BANGUN REJO\" ],\n [1802011008,1802011,\"SUKARAJA\" ],\n [1802011009,1802011,\"SEDAYU\" ],\n [1802011010,1802011,\"KANOMAN\" ],\n [1802011011,1802011,\"SUDIMORO\" ],\n [1802011012,1802011,\"SUDIMORO BANGUN\" ],\n [1802011013,1802011,\"WAY KERAP\" ],\n [1802011014,1802011,\"SRI PURNOMO\" ],\n [1802011015,1802011,\"SRI KUNCORO\" ],\n [1802011016,1802011,\"SRI KATON\" ],\n [1802011017,1802011,\"PARDA WARAS\" ],\n [1802011018,1802011,\"KARANG AGUNG\" ],\n [1802011019,1802011,\"SIDO MULYO\" ],\n [1802011020,1802011,\"TULUNG ASAHAN\" ],\n [1802011021,1802011,\"MARGO MULYO\" ],\n [1802011022,1802011,\"SUKA JAYA\" ],\n [1802012001,1802012,\"NEGERI AGUNG\" ],\n [1802012002,1802012,\"BANDAR SUKABUMI\" ],\n [1802012003,1802012,\"SANGGI\" ],\n [1802012004,1802012,\"RAJA BASA\" ],\n [1802012005,1802012,\"GUNUNG DOH\" ],\n [1802012006,1802012,\"BANDING\" ],\n [1802012007,1802012,\"ATAR LEBAR\" ],\n [1802012008,1802012,\"SIMPANG BAYUR\" ],\n [1802012009,1802012,\"SANGGI UNGGAK\" ],\n [1802012010,1802012,\"SINAR BANGUN\" ],\n [1802012011,1802012,\"TULUNG SARI\" ],\n [1802020021,1802020,\"NEGERI RATU\" ],\n [1802020024,1802020,\"PENANGGUNGAN\" ],\n [1802020025,1802020,\"TERDANA\" ],\n [1802020026,1802020,\"BAROS\" ],\n [1802020027,1802020,\"PASAR MADANG\" ],\n [1802020028,1802020,\"KURIPAN\" ],\n [1802020029,1802020,\"KELUNGU\" ],\n [1802020030,1802020,\"PARDASUKA\" ],\n [1802020031,1802020,\"TERATAS\" ],\n [1802020032,1802020,\"KUSA\" ],\n [1802020033,1802020,\"TERBAYA\" ],\n [1802020034,1802020,\"KEDAMAIAN\" ],\n [1802020035,1802020,\"KOTA AGUNG\" ],\n [1802020036,1802020,\"KOTA BATU\" ],\n [1802020037,1802020,\"CAMPANG TIGA\" ],\n [1802020038,1802020,\"BENTENGAN JAYA\" ],\n [1802021001,1802021,\"TAMPANG\" ],\n [1802021002,1802021,\"KAUR GADING\" ],\n [1802021003,1802021,\"TIROM\" ],\n [1802021004,1802021,\"WAY NIPAH\" ],\n [1802021005,1802021,\"GURING\" ],\n [1802021006,1802021,\"BETUNG\" ],\n [1802021007,1802021,\"TANJUNGAN\" ],\n [1802021011,1802021,\"TELUK BRAK\" ],\n [1802021012,1802021,\"KARANG BRAK\" ],\n [1802021013,1802021,\"PESANGUAN\" ],\n [1802021014,1802021,\"WAY ASAHAN\" ],\n [1802021015,1802021,\"TAMPANG MUDA\" ],\n [1802021016,1802021,\"KAMPUNG BARU\" ],\n [1802021017,1802021,\"MATANDA\" ],\n [1802022001,1802022,\"TEBA\" ],\n [1802022002,1802022,\"KARTA\" ],\n [1802022003,1802022,\"TANJUNG ANOM\" ],\n [1802022004,1802022,\"UMBUL BUAH\" ],\n [1802022005,1802022,\"KAGUNGAN\" ],\n [1802022006,1802022,\"SUKA BANJAR\" ],\n [1802022007,1802022,\"MENGGALA\" ],\n [1802022008,1802022,\"MULANG MAYA\" ],\n [1802022009,1802022,\"KAMPUNG BARU\" ],\n [1802022010,1802022,\"BATU KERAMAT\" ],\n [1802022011,1802022,\"TALANG REJO\" ],\n [1802022012,1802022,\"TANJUNG JATI\" ],\n [1802023001,1802023,\"BELU\" ],\n [1802023002,1802023,\"NEGARA BATIN\" ],\n [1802023003,1802023,\"BANJAR MASIN\" ],\n [1802023004,1802023,\"KANYANGAN\" ],\n [1802023005,1802023,\"KALI MIRING\" ],\n [1802023006,1802023,\"PAYUNG\" ],\n [1802023007,1802023,\"MAJA\" ],\n [1802023008,1802023,\"PULAU BENAWANG\" ],\n [1802023009,1802023,\"GEDUNG JAMBU\" ],\n [1802023010,1802023,\"KANDANG BESI\" ],\n [1802023011,1802023,\"TEBA BUNUK\" ],\n [1802023012,1802023,\"WAY GELANG\" ],\n [1802023013,1802023,\"TELA GENING\" ],\n [1802023014,1802023,\"KESUGIHAN\" ],\n [1802023015,1802023,\"PAJAJARAN\" ],\n [1802023016,1802023,\"TANJUNG AGUNG\" ],\n [1802030001,1802030,\"TALANG BERINGIN\" ],\n [1802030002,1802030,\"GUNUNG MEGANG\" ],\n [1802030003,1802030,\"TANJUNG REJO\" ],\n [1802030004,1802030,\"TANJUNG BEGELUNG\" ],\n [1802030005,1802030,\"SINAR MULYO\" ],\n [1802030006,1802030,\"KEMUNING\" ],\n [1802030007,1802030,\"GEDUNG AGUNG\" ],\n [1802030008,1802030,\"PENANTIAN\" ],\n [1802030009,1802030,\"MUARA DUA\" ],\n [1802030010,1802030,\"TEKAD\" ],\n [1802030014,1802030,\"PULAU PANGGUNG\" ],\n [1802030016,1802030,\"WAY ILAHAN\" ],\n [1802030017,1802030,\"GUNUNG MERAKSA\" ],\n [1802030018,1802030,\"BATU BEDIL\" ],\n [1802030019,1802030,\"AIR BAKOMAN\" ],\n [1802030020,1802030,\"SUMBER MULYA\" ],\n [1802030021,1802030,\"SINDANG MARGA\" ],\n [1802030022,1802030,\"TALANG JAWA\" ],\n [1802030023,1802030,\"TANJUNG GUNUNG\" ],\n [1802030024,1802030,\"SINAR MANCAK\" ],\n [1802030025,1802030,\"SRI MENGANTEN\" ],\n [1802031001,1802031,\"DATARAJAN\" ],\n [1802031002,1802031,\"GUNUNGTIGA\" ],\n [1802031003,1802031,\"KARANGREJO\" ],\n [1802031004,1802031,\"PAGARALAM ULUBELU\" ],\n [1802031005,1802031,\"MUARADUA ULUBELU\" ],\n [1802031006,1802031,\"NGARIP\" ],\n [1802031007,1802031,\"PENANTIAN ULUBELU\" ],\n [1802031008,1802031,\"GUNUNGSARI\" ],\n [1802031009,1802031,\"SIRNAGALIH\" ],\n [1802031010,1802031,\"ULU SEMONG\" ],\n [1802031011,1802031,\"REJOSARI\" ],\n [1802031012,1802031,\"SUKAMAJU\" ],\n [1802031013,1802031,\"TANJUNG BARU\" ],\n [1802031014,1802031,\"SINAR BANTEN\" ],\n [1802031015,1802031,\"AIR ABANG\" ],\n [1802031016,1802031,\"PETAY KAYU\" ],\n [1802032001,1802032,\"WAY HARONG\" ],\n [1802032002,1802032,\"AIR KUBANG\" ],\n [1802032003,1802032,\"KARANG SARI\" ],\n [1802032004,1802032,\"SIDOMULYO\" ],\n [1802032005,1802032,\"AIR NANINGAN\" ],\n [1802032006,1802032,\"SINAR JAWA\" ],\n [1802032007,1802032,\"DATAR LEBUAY\" ],\n [1802032008,1802032,\"BATU TEGI\" ],\n [1802032009,1802032,\"SINAR SEKAMPUNG\" ],\n [1802032010,1802032,\"MARGO MULYO\" ],\n [1802040019,1802040,\"KALIBENING\" ],\n [1802040022,1802040,\"KEJAYAAN\" ],\n [1802040023,1802040,\"SUKABUMI\" ],\n [1802040024,1802040,\"SUKANEGERI JAYA\" ],\n [1802040025,1802040,\"BANJARSARI\" ],\n [1802040026,1802040,\"SINGOSARI\" ],\n [1802040031,1802040,\"SINAR BANTEN\" ],\n [1802040032,1802040,\"SUKARAME\" ],\n [1802040033,1802040,\"BANDING AGUNG\" ],\n [1802040034,1802040,\"TALANG PADANG\" ],\n [1802040035,1802040,\"SUKA NEGERI\" ],\n [1802040036,1802040,\"SUKA BANDUNG\" ],\n [1802040037,1802040,\"SUKA MERINDU\" ],\n [1802040038,1802040,\"SINAR SEMENDO\" ],\n [1802040039,1802040,\"NEGERI AGUNG\" ],\n [1802040040,1802040,\"SINAR PETIR\" ],\n [1802040041,1802040,\"WAY HALOM\" ],\n [1802040042,1802040,\"TALANG SEPUH\" ],\n [1802040043,1802040,\"SINAR HARAPAN\" ],\n [1802040044,1802040,\"SINAR BETUNG\" ],\n [1802041001,1802041,\"MARGOYOSO\" ],\n [1802041002,1802041,\"DADAPAN\" ],\n [1802041003,1802041,\"SIMPANG KANAN\" ],\n [1802041004,1802041,\"MARGODADI\" ],\n [1802041005,1802041,\"ARGOPENI\" ],\n [1802041006,1802041,\"SUMBER MULYO\" ],\n [1802041007,1802041,\"WONOHARJO\" ],\n [1802041008,1802041,\"TEGAL BINANGUN\" ],\n [1802041009,1802041,\"SUMBERREJO\" ],\n [1802041010,1802041,\"SIDOMULYO\" ],\n [1802041011,1802041,\"KEBUMEN\" ],\n [1802041012,1802041,\"ARGOMULYO\" ],\n [1802041013,1802041,\"SIDOREJO\" ],\n [1802042001,1802042,\"GISTING ATAS\" ],\n [1802042002,1802042,\"GISTING BAWAH\" ],\n [1802042003,1802042,\"PURWODADI\" ],\n [1802042004,1802042,\"KUTA DALOM\" ],\n [1802042005,1802042,\"BANJARMANIS\" ],\n [1802042006,1802042,\"CAMPANG\" ],\n [1802042007,1802042,\"SIDOKATON\" ],\n [1802042008,1802042,\"LANBAUW\" ],\n [1802042009,1802042,\"GISTING PERMAI\" ],\n [1802043001,1802043,\"BANJAR NEGERI\" ],\n [1802043002,1802043,\"CIHERANG\" ],\n [1802043003,1802043,\"SUKARAJA\" ],\n [1802043004,1802043,\"BANJAR AGUNG\" ],\n [1802043005,1802043,\"KEDALOMAN\" ],\n [1802043006,1802043,\"SUKABANJAR\" ],\n [1802043007,1802043,\"SUKAMERNAH\" ],\n [1802043008,1802043,\"PARIAMAN\" ],\n [1802043009,1802043,\"SUKADAMAI\" ],\n [1802043010,1802043,\"WAY HALOM\" ],\n [1802043011,1802043,\"PENANGGUNGAN\" ],\n [1802043012,1802043,\"DARUS SALAM\" ],\n [1802050001,1802050,\"TAMANSARI\" ],\n [1802050002,1802050,\"CAMPANG WAY HANDAK\" ],\n [1802050003,1802050,\"GADING\" ],\n [1802050004,1802050,\"SUMANDA\" ],\n [1802050005,1802050,\"TANJUNG AGUNG\" ],\n [1802050006,1802050,\"BABAKAN\" ],\n [1802050007,1802050,\"GUNUNG KASIH\" ],\n [1802050008,1802050,\"TANJUNG KEMALA\" ],\n [1802050009,1802050,\"BINJAI WANGI\" ],\n [1802050010,1802050,\"SUKAJADI\" ],\n [1802050011,1802050,\"RANTAU TIJANG\" ],\n [1802050012,1802050,\"SINAR AGUNG\" ],\n [1802050013,1802050,\"NEGERI RATU\" ],\n [1802050014,1802050,\"WAY JAHA\" ],\n [1802050015,1802050,\"TIUH MEMON\" ],\n [1802050016,1802050,\"BANJAR AGUNG ILIR\" ],\n [1802050017,1802050,\"BANJAR AGUNG UDIK\" ],\n [1802050018,1802050,\"TANJUNG HERAN\" ],\n [1802050019,1802050,\"TANGKIT SERDANG\" ],\n [1802050020,1802050,\"WAY PRING\" ],\n [1802050021,1802050,\"PUNGKUT\" ],\n [1802050022,1802050,\"SUKAMAJU\" ],\n [1802050023,1802050,\"SUKAMULYA\" ],\n [1802050024,1802050,\"KAYU HUBI\" ],\n [1802050025,1802050,\"GUNUNG TIGA\" ],\n [1802050026,1802050,\"WAY MANAK\" ],\n [1802050027,1802050,\"TALANG LEBAR\" ],\n [1802101001,1802101,\"SINARPETIR\" ],\n [1802101002,1802101,\"NAPAL\" ],\n [1802101003,1802101,\"GUNUNG TERANG\" ],\n [1802101004,1802101,\"BANJAR MASIN\" ],\n [1802101005,1802101,\"SUKAMARA\" ],\n [1802101006,1802101,\"SUKANEGARA\" ],\n [1802101007,1802101,\"SUKA AGUNG TIMUR\" ],\n [1802101008,1802101,\"SUKA AGUNG BARAT\" ],\n [1802101009,1802101,\"PEMATANG NEBAK\" ],\n [1802101010,1802101,\"TANJUNG SARI\" ],\n [1802110001,1802110,\"KARANG BUAH\" ],\n [1802110002,1802110,\"SAWANG BALAK\" ],\n [1802110012,1802110,\"SUKARAJA\" ],\n [1802110013,1802110,\"BANJAR NEGERI\" ],\n [1802110014,1802110,\"GEDUNG\" ],\n [1802110015,1802110,\"KEJADIANLOM\" ],\n [1802110016,1802110,\"SUKAPADANG\" ],\n [1802110017,1802110,\"KACAMARGA\" ],\n [1802110018,1802110,\"PAMPANGAN\" ],\n [1802110019,1802110,\"TANJUNG JATI\" ],\n [1802110021,1802110,\"TANJUNG RAJA\" ],\n [1802110022,1802110,\"WAY RILAU\" ],\n [1802110023,1802110,\"TENGOR\" ],\n [1802110024,1802110,\"BANJAR MANIS\" ],\n [1802110025,1802110,\"TANJUNG BETUAH\" ],\n [1802110026,1802110,\"PUTIH DOH\" ],\n [1802110027,1802110,\"PEKON DOH\" ],\n [1802110038,1802110,\"KUBU LANGKA\" ],\n [1802110039,1802110,\"KUTA KAKHANG\" ],\n [1802110040,1802110,\"SUKA BANJAR\" ],\n [1802111001,1802111,\"UMBAR\" ],\n [1802111002,1802111,\"PAKU\" ],\n [1802111003,1802111,\"NAPAL\" ],\n [1802111004,1802111,\"NEGERI KELUMBAYAN\" ],\n [1802111005,1802111,\"PEKON SUSUK\" ],\n [1802111006,1802111,\"PENYANDINGAN\" ],\n [1802111007,1802111,\"PEKON UNGGAK\" ],\n [1802111008,1802111,\"KILUAN NEGERI\" ],\n [1802112001,1802112,\"BADAK\" ],\n [1802112002,1802112,\"KURIPAN\" ],\n [1802112003,1802112,\"TEGINENENG\" ],\n [1802112004,1802112,\"KETAPANG\" ],\n [1802112005,1802112,\"PADANG RATU\" ],\n [1802112006,1802112,\"BANJAR AGUNG\" ],\n [1802112007,1802112,\"PEKON AMPAI\" ],\n [1802112008,1802112,\"PARIAMAN\" ],\n [1802112009,1802112,\"ANTARBRAK\" ],\n [1802112010,1802112,\"TANJUNG SIOM\" ],\n [1802112011,1802112,\"TANJUNG JAYA\" ],\n [1802113001,1802113,\"SIDOHARJO\" ],\n [1802113002,1802113,\"LENGKUKAI\" ],\n [1802113003,1802113,\"MERBAU\" ],\n [1802113004,1802113,\"BATU PATAH\" ],\n [1802113005,1802113,\"PURWOSARI\" ],\n [1802113006,1802113,\"MARGAMULYA\" ],\n [1803060001,1803060,\"HAJIMENA\" ],\n [1803060002,1803060,\"SIDOSARI\" ],\n [1803060003,1803060,\"PEMANGGILAN\" ],\n [1803060004,1803060,\"NATAR\" ],\n [1803060005,1803060,\"MERAK BATIN\" ],\n [1803060006,1803060,\"KRAWANG SARI\" ],\n [1803060007,1803060,\"MUARA PUTIH\" ],\n [1803060008,1803060,\"TANJUNGSARI\" ],\n [1803060009,1803060,\"NEGARA RATU\" ],\n [1803060010,1803060,\"REJOSARI\" ],\n [1803060011,1803060,\"BUMISARI\" ],\n [1803060012,1803060,\"CANDI MAS\" ],\n [1803060013,1803060,\"PANCASILA\" ],\n [1803060014,1803060,\"SUKADAMAI\" ],\n [1803060015,1803060,\"BANDAREJO\" ],\n [1803060016,1803060,\"PURWOSARI\" ],\n [1803060017,1803060,\"RULUNG RAYA\" ],\n [1803060018,1803060,\"BRANTIRAYA\" ],\n [1803060019,1803060,\"HADUYANG\" ],\n [1803060020,1803060,\"BANJARNEGERI\" ],\n [1803060021,1803060,\"MANDAH\" ],\n [1803060022,1803060,\"RULUNGHELOK\" ],\n [1803060023,1803060,\"KALI SARI\" ],\n [1803060024,1803060,\"WAI SARI\" ],\n [1803060025,1803060,\"RULUNG MULYA\" ],\n [1803060026,1803060,\"RULUNG SARI\" ],\n [1803070001,1803070,\"WAY HUWI\" ],\n [1803070002,1803070,\"JATIMULYO\" ],\n [1803070003,1803070,\"BANJAR AGUNG\" ],\n [1803070004,1803070,\"GEDUNG HARAPAN\" ],\n [1803070005,1803070,\"GEDUNG AGUNG\" ],\n [1803070006,1803070,\"MARGOMULYO\" ],\n [1803070007,1803070,\"SIDODADI ASRI\" ],\n [1803070008,1803070,\"PURWOTANI\" ],\n [1803070009,1803070,\"SUMBER JAYA\" ],\n [1803070010,1803070,\"MARGODADI\" ],\n [1803070011,1803070,\"MARGO LESTARI\" ],\n [1803070012,1803070,\"MARGA AGUNG\" ],\n [1803070013,1803070,\"MARGA KAYA\" ],\n [1803070014,1803070,\"SINAR REJEKI\" ],\n [1803070015,1803070,\"SIDOHARJO\" ],\n [1803070016,1803070,\"REJOMULYO\" ],\n [1803070017,1803070,\"KARANG ANYAR\" ],\n [1803070018,1803070,\"FAJAR BARU\" ],\n [1803070019,1803070,\"KARANG SARI\" ],\n [1803070020,1803070,\"KARANG REJO\" ],\n [1803070021,1803070,\"MARGOREJO\" ],\n [1803080001,1803080,\"KALI ASIN\" ],\n [1803080002,1803080,\"LEMATANG\" ],\n [1803080003,1803080,\"SABAH BALAU\" ],\n [1803080004,1803080,\"SUKANEGARA\" ],\n [1803080005,1803080,\"GALIH LUNIK\" ],\n [1803080006,1803080,\"SERDANG\" ],\n [1803080007,1803080,\"SINAR OGAN\" ],\n [1803080008,1803080,\"BUDI LESTARI\" ],\n [1803080009,1803080,\"JATIBARU\" ],\n [1803080010,1803080,\"JATI INDAH\" ],\n [1803080011,1803080,\"TRIMULYO\" ],\n [1803080019,1803080,\"SINDANG SARI\" ],\n [1803080020,1803080,\"PURWODADI SIMPANG\" ],\n [1803080021,1803080,\"WAY GALIH\" ],\n [1803080023,1803080,\"REJOMULYO\" ],\n [1803080024,1803080,\"SRIKATON\" ],\n [1803081001,1803081,\"SIDOMUKTI\" ],\n [1803081002,1803081,\"WAWASAN\" ],\n [1803081003,1803081,\"BANGUNSARI\" ],\n [1803081004,1803081,\"MULYO SARI\" ],\n [1803081005,1803081,\"KERTOSARI\" ],\n [1803081006,1803081,\"WONODADI\" ],\n [1803081007,1803081,\"PURWODADI DALAM\" ],\n [1803081008,1803081,\"MALANG SARI\" ],\n [1803090001,1803090,\"TARAHAN\" ],\n [1803090002,1803090,\"KARYA TUNGGAL\" ],\n [1803090003,1803090,\"BABATAN\" ],\n [1803090004,1803090,\"PARDASUKA\" ],\n [1803090005,1803090,\"SUKAJAYA\" ],\n [1803090006,1803090,\"TANJUNGRATU\" ],\n [1803090007,1803090,\"TANJUNGAGUNG\" ],\n [1803090008,1803090,\"TANJUNGAN\" ],\n [1803090009,1803090,\"TRANS TANJUNGAN\" ],\n [1803090024,1803090,\"NEGLASARI\" ],\n [1803090032,1803090,\"RANGAI TRI TUNGGAL\" ],\n [1803090033,1803090,\"SIDO MEKAR\" ],\n [1803091001,1803091,\"TANJUNG BARU\" ],\n [1803091002,1803091,\"BARU RANJI\" ],\n [1803091003,1803091,\"KARANG RAJA\" ],\n [1803091004,1803091,\"MEKAR JAYA\" ],\n [1803091005,1803091,\"SUBAN\" ],\n [1803091006,1803091,\"MERBAU MATARAM\" ],\n [1803091007,1803091,\"TRIHARJO\" ],\n [1803091008,1803091,\"PANCA TUNGGAL\" ],\n [1803091009,1803091,\"TALANG JAWA\" ],\n [1803091010,1803091,\"LEBUNGSARI\" ],\n [1803091011,1803091,\"PUJIRAHAYU\" ],\n [1803091012,1803091,\"BATUAGUNG\" ],\n [1803091013,1803091,\"SINAR KARYA\" ],\n [1803091014,1803091,\"TANJUNG HARAPAN\" ],\n [1803091015,1803091,\"KARANG JAYA\" ],\n [1803092001,1803092,\"PEMULIHAN\" ],\n [1803092002,1803092,\"PURWODADI\" ],\n [1803092003,1803092,\"SUKAMAJU\" ],\n [1803092004,1803092,\"BANJARSARI\" ],\n [1803092005,1803092,\"KARANG PUCUNG\" ],\n [1803092006,1803092,\"TALANG WAY SULAN\" ],\n [1803092007,1803092,\"SUMBERAGUNG\" ],\n [1803092008,1803092,\"MEKARSARI\" ],\n [1803100001,1803100,\"SUAK\" ],\n [1803100002,1803100,\"SIRING JAHA\" ],\n [1803100003,1803100,\"BUDI DAYA\" ],\n [1803100004,1803100,\"SUKAMAJU\" ],\n [1803100005,1803100,\"SUKAMARGA\" ],\n [1803100006,1803100,\"SIDOWALUYO\" ],\n [1803100012,1803100,\"SIDOREJO\" ],\n [1803100013,1803100,\"SIDODADI\" ],\n [1803100014,1803100,\"SELORETNO\" ],\n [1803100015,1803100,\"KOTA DALAM\" ],\n [1803100016,1803100,\"SUKABANJAR\" ],\n [1803100017,1803100,\"TALANG BARU\" ],\n [1803100018,1803100,\"BANDAR DALAM\" ],\n [1803100019,1803100,\"CAMPANG TIGA\" ],\n [1803100020,1803100,\"SIDOMULYO\" ],\n [1803100021,1803100,\"BANJAR SURI\" ],\n [1803101001,1803101,\"RANTAU MINYAK\" ],\n [1803101002,1803101,\"SIDOASRI\" ],\n [1803101003,1803101,\"WAY GELAM\" ],\n [1803101004,1803101,\"CANDIPURO/TITIWANGI\" ],\n [1803101005,1803101,\"TRIMOMUKTI\" ],\n [1803101006,1803101,\"BUMI JAYA\" ],\n [1803101007,1803101,\"RAWA SELAPAN\" ],\n [1803101008,1803101,\"SINAR PASEMAH\" ],\n [1803101009,1803101,\"BERINGIN KENCANA\" ],\n [1803101010,1803101,\"BANYUMAS\" ],\n [1803101011,1803101,\"CINTAMULYA\" ],\n [1803101012,1803101,\"SINAR PALEMBANG\" ],\n [1803101013,1803101,\"KARYA MULYA SARI\" ],\n [1803101014,1803101,\"BATULIMAN INDAH\" ],\n [1803102001,1803102,\"SIDOHARJO\" ],\n [1803102002,1803102,\"SIDOMAKMUR\" ],\n [1803102003,1803102,\"SIDORENO\" ],\n [1803102004,1803102,\"BALINURAGA\" ],\n [1803110016,1803110,\"JONDONG\" ],\n [1803110017,1803110,\"TENGKUJUH\" ],\n [1803110018,1803110,\"PAUH TANJUNG IMAN\" ],\n [1803110019,1803110,\"MAJA\" ],\n [1803110020,1803110,\"BUMI AGUNG\" ],\n [1803110021,1803110,\"KALIANDA\" ],\n [1803110022,1803110,\"SUMUR KUMBANG\" ],\n [1803110023,1803110,\"BUAH BERAK\" ],\n [1803110024,1803110,\"KESUGIHAN\" ],\n [1803110025,1803110,\"PEMATANG\" ],\n [1803110026,1803110,\"KECAPI\" ],\n [1803110027,1803110,\"BABULANG\" ],\n [1803110028,1803110,\"SUKARATU\" ],\n [1803110029,1803110,\"PALEMBAPANG\" ],\n [1803110030,1803110,\"TAJIMALELA\" ],\n [1803110031,1803110,\"MARGA CATUR\" ],\n [1803110032,1803110,\"SUKA TANI\" ],\n [1803110033,1803110,\"CANGGU\" ],\n [1803110034,1803110,\"KEDATON\" ],\n [1803110035,1803110,\"WAY URANG\" ],\n [1803110036,1803110,\"MERAK BELANTUNG\" ],\n [1803110037,1803110,\"GUNUNG TERANG\" ],\n [1803110038,1803110,\"MUNJUK SEMPURNA\" ],\n [1803110039,1803110,\"BULOK\" ],\n [1803110040,1803110,\"AGOM\" ],\n [1803110041,1803110,\"NEGERI PANDAN\" ],\n [1803110042,1803110,\"TAMAN AGUNG\" ],\n [1803110043,1803110,\"WAI LUBUK\" ],\n [1803110044,1803110,\"HARA BANJAR MANIS\" ],\n [1803111001,1803111,\"TEJANG PULAU SEBESI\" ],\n [1803111002,1803111,\"HARGO PANCORAN\" ],\n [1803111003,1803111,\"KERINJING\" ],\n [1803111004,1803111,\"CUGUNG\" ],\n [1803111005,1803111,\"BATU BALAK\" ],\n [1803111006,1803111,\"KUNJIR\" ],\n [1803111007,1803111,\"WAYMULI\" ],\n [1803111008,1803111,\"SUKARAJA\" ],\n [1803111009,1803111,\"RAJABASA\" ],\n [1803111010,1803111,\"BANDING\" ],\n [1803111011,1803111,\"CANTI\" ],\n [1803111012,1803111,\"CANGGUNG\" ],\n [1803111013,1803111,\"BETUNG\" ],\n [1803111014,1803111,\"TANJUNG GADING\" ],\n [1803111015,1803111,\"KOTA GURING\" ],\n [1803111016,1803111,\"WAI MULI TIMUR\" ],\n [1803120001,1803120,\"TANJUNG SARI\" ],\n [1803120002,1803120,\"BANGUNAN\" ],\n [1803120003,1803120,\"SUKARAJA\" ],\n [1803120004,1803120,\"SUKA MULYA\" ],\n [1803120005,1803120,\"SUKABAKTI\" ],\n [1803120015,1803120,\"PALAS PASEMAH\" ],\n [1803120016,1803120,\"PALAS JAYA\" ],\n [1803120017,1803120,\"PULAU TENGAH\" ],\n [1803120018,1803120,\"BANDAN HURIP\" ],\n [1803120019,1803120,\"PALAS AJI\" ],\n [1803120020,1803120,\"REJO MULYO\" ],\n [1803120021,1803120,\"BALI AGUNG\" ],\n [1803120022,1803120,\"BUMI DAYA\" ],\n [1803120023,1803120,\"BUMI RESTU\" ],\n [1803120024,1803120,\"TANJUNG JAYA\" ],\n [1803120025,1803120,\"BUMI ASIH\" ],\n [1803120026,1803120,\"MEKAR MULYA\" ],\n [1803120027,1803120,\"PEMATANG BARU\" ],\n [1803120028,1803120,\"KALI REJO\" ],\n [1803120029,1803120,\"BUMI ASRI\" ],\n [1803120030,1803120,\"PULAU JAYA\" ],\n [1803121001,1803121,\"BAKTI RASA\" ],\n [1803121002,1803121,\"SUKAPURA\" ],\n [1803121003,1803121,\"MANDALASARI\" ],\n [1803121004,1803121,\"SUMBER SARI\" ],\n [1803121005,1803121,\"MARGAJASA\" ],\n [1803121006,1803121,\"KEDAUNG\" ],\n [1803121007,1803121,\"SUMBER AGUNG\" ],\n [1803121008,1803121,\"KUALA SEKAMPUNG\" ],\n [1803121009,1803121,\"BANDAR AGUNG\" ],\n [1803121010,1803121,\"MARGASARI\" ],\n [1803130008,1803130,\"TANJUNG HERAN\" ],\n [1803130009,1803130,\"PISANG\" ],\n [1803130010,1803130,\"SUKABARU\" ],\n [1803130016,1803130,\"TETAAN\" ],\n [1803130017,1803130,\"SUKAJAYA\" ],\n [1803130018,1803130,\"PENENGAHAN\" ],\n [1803130019,1803130,\"GAYAM\" ],\n [1803130020,1803130,\"GEDUNGHARTA\" ],\n [1803130021,1803130,\"WAY KALAM\" ],\n [1803130022,1803130,\"PADAN\" ],\n [1803130023,1803130,\"KAMPUNGBARU\" ],\n [1803130024,1803130,\"BANJARMASIN\" ],\n [1803130031,1803130,\"KLATEN\" ],\n [1803130032,1803130,\"PASURUAN\" ],\n [1803130033,1803130,\"RUANG TENGAH\" ],\n [1803130034,1803130,\"KELAU\" ],\n [1803130035,1803130,\"TAMAN BARU\" ],\n [1803130036,1803130,\"KURIPAN\" ],\n [1803130037,1803130,\"RAWI\" ],\n [1803130038,1803130,\"BELAMBANGAN\" ],\n [1803130039,1803130,\"KEKILING\" ],\n [1803130041,1803130,\"GANDRI\" ],\n [1803131001,1803131,\"SUMUR\" ],\n [1803131002,1803131,\"RUGUK\" ],\n [1803131003,1803131,\"TRIDARMAYOGA\" ],\n [1803131004,1803131,\"LEGUNDI\" ],\n [1803131005,1803131,\"KETAPANG\" ],\n [1803131006,1803131,\"BANGUN REJO\" ],\n [1803131007,1803131,\"KARANG SARI\" ],\n [1803131008,1803131,\"SRI PENDOWO\" ],\n [1803131009,1803131,\"SUMBERNADI\" ],\n [1803131010,1803131,\"TAMAN SARI\" ],\n [1803131011,1803131,\"KEMUKUS\" ],\n [1803131012,1803131,\"LEBUNG NALA\" ],\n [1803131013,1803131,\"SIDOASIH\" ],\n [1803131014,1803131,\"PEMATANG PASIR\" ],\n [1803131015,1803131,\"BERUNDUNG\" ],\n [1803131016,1803131,\"SIDOLUHUR\" ],\n [1803131017,1803131,\"WAI SIDOMUKTI\" ],\n [1803132001,1803132,\"TOTOHARJO\" ],\n [1803132002,1803132,\"KELAWI\" ],\n [1803132003,1803132,\"BAKAUHENI\" ],\n [1803132004,1803132,\"HATA\" ],\n [1803132005,1803132,\"SEMANAK\" ],\n [1804010001,1804010,\"SUMBER AGUNG\" ],\n [1804010002,1804010,\"PURBO SEMBODO\" ],\n [1804010003,1804010,\"KIBANG\" ],\n [1804010004,1804010,\"MARGO JAYA\" ],\n [1804010005,1804010,\"MARGO TOTO\" ],\n [1804010006,1804010,\"MARGO SARI\" ],\n [1804010007,1804010,\"JAYA ASRI\" ],\n [1804020001,1804020,\"BUANA SAKTI\" ],\n [1804020002,1804020,\"BALAI KENCONO\" ],\n [1804020003,1804020,\"REJO AGUNG\" ],\n [1804020004,1804020,\"ADI WARNO\" ],\n [1804020005,1804020,\"NAMPI REJO\" ],\n [1804020006,1804020,\"BANAR JOYO\" ],\n [1804020007,1804020,\"TELOGO REJO\" ],\n [1804020008,1804020,\"SUMBER REJO\" ],\n [1804020009,1804020,\"BANJAR REJO\" ],\n [1804020010,1804020,\"BUMI HARJO\" ],\n [1804020011,1804020,\"BALE REJO\" ],\n [1804020012,1804020,\"BATANG HARJO\" ],\n [1804020013,1804020,\"BUMI MAS\" ],\n [1804020014,1804020,\"SELO REJO\" ],\n [1804020015,1804020,\"SRI BASUKI\" ],\n [1804020016,1804020,\"SUMBER AGUNG\" ],\n [1804020017,1804020,\"PURWODADI MEKAR\" ],\n [1804030001,1804030,\"SIDOMUKTI\" ],\n [1804030002,1804030,\"KARYA MUKTI\" ],\n [1804030003,1804030,\"SIDOMULYO\" ],\n [1804030004,1804030,\"SIDODADI\" ],\n [1804030005,1804030,\"TRIMULYO\" ],\n [1804030006,1804030,\"GIRIKARTO\" ],\n [1804030007,1804030,\"HARGOMULYO\" ],\n [1804030008,1804030,\"WONOKARTO\" ],\n [1804030009,1804030,\"SUKO HARJO\" ],\n [1804030010,1804030,\"GIRI KELOPO MULYO\" ],\n [1804030011,1804030,\"SUMBER GEDE\" ],\n [1804030012,1804030,\"SAMBIKARTO\" ],\n [1804030013,1804030,\"SUMBERSARI\" ],\n [1804030014,1804030,\"MEKAR MULYA\" ],\n [1804030015,1804030,\"MEKAR MUKTI\" ],\n [1804030016,1804030,\"JADI MULYO\" ],\n [1804030017,1804030,\"MEKAR SARI\" ],\n [1804040001,1804040,\"JAYA GUNA\" ],\n [1804040002,1804040,\"SUKARAJA TIGA\" ],\n [1804040003,1804040,\"GEDUNG WANI\" ],\n [1804040004,1804040,\"GEDUNG WANI TIMUR\" ],\n [1804040005,1804040,\"SURYA MATARAM\" ],\n [1804040006,1804040,\"NABANG BARU\" ],\n [1804040007,1804040,\"NEGERI JEMANTEN\" ],\n [1804040008,1804040,\"NEGERI AGUNG\" ],\n [1804040009,1804040,\"NEGERI KATON\" ],\n [1804040010,1804040,\"SUKADANA BARU\" ],\n [1804040011,1804040,\"TANJUNG HARAPAN\" ],\n [1804040012,1804040,\"NEGERI TUA\" ],\n [1804040013,1804040,\"TRI SINAR\" ],\n [1804050001,1804050,\"GUNUNG AGUNG\" ],\n [1804050002,1804050,\"GUNUNG PASIR JAYA\" ],\n [1804050003,1804050,\"GUNUNG SUGIH BESAR\" ],\n [1804050004,1804050,\"BAUH GUNUNG SARI\" ],\n [1804050005,1804050,\"BRAWIJAYA\" ],\n [1804050006,1804050,\"SIDOREJO\" ],\n [1804050007,1804050,\"PUGUNG RAHARJO\" ],\n [1804050008,1804050,\"BOJONG\" ],\n [1804050009,1804050,\"BANJAR AGUNG\" ],\n [1804050010,1804050,\"TUBA\" ],\n [1804050011,1804050,\"MENGANDUNG SARI\" ],\n [1804050012,1804050,\"SINDANG ANOM\" ],\n [1804050013,1804050,\"BUMI MULYO\" ],\n [1804050014,1804050,\"GUNUNG MULYO\" ],\n [1804050015,1804050,\"PURWO KENCONO\" ],\n [1804060001,1804060,\"MEKAR JAYA\" ],\n [1804060010,1804060,\"ADIREJO\" ],\n [1804060011,1804060,\"ASAHAN\" ],\n [1804060012,1804060,\"BELIMBING SARI\" ],\n [1804060013,1804060,\"GUNUNG MEKAR\" ],\n [1804060014,1804060,\"BENTENG SARI\" ],\n [1804060015,1804060,\"MUMBANG JAYA\" ],\n [1804060016,1804060,\"GUNUNG SUGIH KECIL\" ],\n [1804060017,1804060,\"PEMATANG TAHALO\" ],\n [1804060018,1804060,\"NEGARA BATIN\" ],\n [1804060019,1804060,\"NEGARA SAKA\" ],\n [1804060020,1804060,\"JABUNG\" ],\n [1804060021,1804060,\"ADI LUHUR\" ],\n [1804060022,1804060,\"TANJUNG SARI\" ],\n [1804060023,1804060,\"SAMBI REJO\" ],\n [1804061001,1804061,\"SUMUR KUCING\" ],\n [1804061002,1804061,\"LABUHAN RATU\" ],\n [1804061003,1804061,\"KEDUNG RINGIN\" ],\n [1804061004,1804061,\"REJO MULYO\" ],\n [1804061005,1804061,\"PURWOREJO\" ],\n [1804061006,1804061,\"MULYO SARI\" ],\n [1804061007,1804061,\"PASIR SAKTI\" ],\n [1804061008,1804061,\"MEKAR SARI\" ],\n [1804062001,1804062,\"MARGA BATIN\" ],\n [1804062002,1804062,\"SIDO RAHAYU\" ],\n [1804062003,1804062,\"NGESTI KARYA\" ],\n [1804062004,1804062,\"SUMBER JAYA\" ],\n [1804062005,1804062,\"SUMBER REJO\" ],\n [1804062006,1804062,\"MEKAR KARYA\" ],\n [1804062007,1804062,\"TANJUNG WANGI\" ],\n [1804062008,1804062,\"TRI TUNGGAL\" ],\n [1804062009,1804062,\"JEMBRANA\" ],\n [1804062010,1804062,\"KARANG ANOM\" ],\n [1804062011,1804062,\"KARYA BASUKI\" ],\n [1804063001,1804063,\"BUNGKUK\" ],\n [1804063002,1804063,\"GIRI MULYO\" ],\n [1804063003,1804063,\"GUNUNG MAS\" ],\n [1804063004,1804063,\"BATU BADAK\" ],\n [1804063005,1804063,\"PENIANGAN\" ],\n [1804063006,1804063,\"PURWOSARI\" ],\n [1804063007,1804063,\"GUNUNG RAYA\" ],\n [1804063008,1804063,\"BUKIT RAYA\" ],\n [1804070005,1804070,\"KARYATANI\" ],\n [1804070006,1804070,\"KARYA MAKMUR\" ],\n [1804070007,1804070,\"BANDAR NEGERI\" ],\n [1804070015,1804070,\"MARINGGAI\" ],\n [1804070016,1804070,\"MUARA GADING MAS\" ],\n [1804070017,1804070,\"LABUHAN MARINGAI\" ],\n [1804070031,1804070,\"SRI GADING\" ],\n [1804070032,1804070,\"SRI MINOSARI\" ],\n [1804070033,1804070,\"MARGASARI\" ],\n [1804070034,1804070,\"SUKORAHAYU\" ],\n [1804070035,1804070,\"KARANG ANYAR\" ],\n [1804071001,1804071,\"TULUNGPASIK\" ],\n [1804071002,1804071,\"MANDALA SARI\" ],\n [1804071003,1804071,\"KEBON DAMAR\" ],\n [1804071004,1804071,\"MATARAM BARU\" ],\n [1804071005,1804071,\"RAJABASA BARU\" ],\n [1804071006,1804071,\"TELUK DALEM\" ],\n [1804071007,1804071,\"WAI ARANG\" ],\n [1804072001,1804072,\"WARINGIN JAYA\" ],\n [1804072002,1804072,\"SRI BAWONO\" ],\n [1804072003,1804072,\"SRI MENANTI\" ],\n [1804072004,1804072,\"SRI PENDOWO\" ],\n [1804072005,1804072,\"BANDAR AGUNG\" ],\n [1804072006,1804072,\"SADAR SRIWIJAYA\" ],\n [1804072007,1804072,\"MEKAR JAYA\" ],\n [1804073001,1804073,\"SIDOMAKMUR\" ],\n [1804073002,1804073,\"TANJUNG AJI\" ],\n [1804073003,1804073,\"TEBING\" ],\n [1804073004,1804073,\"WANA\" ],\n [1804073005,1804073,\"SUMBERHADI\" ],\n [1804073006,1804073,\"ITIK RENDAI\" ],\n [1804074001,1804074,\"NEGERI AGUNG\" ],\n [1804074002,1804074,\"PEMPEN\" ],\n [1804074003,1804074,\"PELINDUNG JAYA\" ],\n [1804074004,1804074,\"WAI MILI\" ],\n [1804074005,1804074,\"NIBUNG\" ],\n [1804080001,1804080,\"BRAJA FAJAR\" ],\n [1804080002,1804080,\"BRAJA EMAS\" ],\n [1804080007,1804080,\"BRAJA CAKA\" ],\n [1804080008,1804080,\"BRAJA DEWA\" ],\n [1804080009,1804080,\"SRI WANGI\" ],\n [1804080010,1804080,\"JEPARA\" ],\n [1804080011,1804080,\"SUMBERJO\" ],\n [1804080012,1804080,\"SRI REJOSARI\" ],\n [1804080013,1804080,\"LABUHAN RATU DUA\" ],\n [1804080014,1804080,\"SUMUR BANDUNG\" ],\n [1804080018,1804080,\"LABUHAN RATU SATU\" ],\n [1804080019,1804080,\"BRAJA SAKTI\" ],\n [1804080022,1804080,\"BRAJA ASRI\" ],\n [1804080023,1804080,\"SUMBER MARGA\" ],\n [1804080024,1804080,\"LABUHAN RATU DANAU\" ],\n [1804080025,1804080,\"LABUHAN RATU BARU\" ],\n [1804081001,1804081,\"BRAJA GEMILANG\" ],\n [1804081002,1804081,\"BRAJA LUHUR\" ],\n [1804081003,1804081,\"BRAJA KENCANA\" ],\n [1804081004,1804081,\"BRAJA HARJOSARI\" ],\n [1804081005,1804081,\"BRAJA INDAH\" ],\n [1804081006,1804081,\"BRAJA YEKTI\" ],\n [1804081007,1804081,\"BRAJA MULYA\" ],\n [1804082001,1804082,\"LABUHAN RATU EMPAT\" ],\n [1804082002,1804082,\"LABUHAN RATU LIMA\" ],\n [1804082003,1804082,\"LABUHAN RATU TIGA\" ],\n [1804082004,1804082,\"LABUHAN RATU VII\" ],\n [1804082005,1804082,\"LABUHAN RATU\" ],\n [1804082006,1804082,\"LABUHAN RATU ENAM\" ],\n [1804082007,1804082,\"RAJA BASA LAMA\" ],\n [1804082008,1804082,\"RAJA BASA LAMA SATU\" ],\n [1804082009,1804082,\"RAJA BASA LAMA DUA\" ],\n [1804082010,1804082,\"LABUHAN RATU VIII\" ],\n [1804082011,1804082,\"LABUHAN RATU IX\" ],\n [1804090005,1804090,\"RAJA BASA BATANGHARI\" ],\n [1804090011,1804090,\"SUKADANA\" ],\n [1804090012,1804090,\"PUTRA AJI DUA\" ],\n [1804090013,1804090,\"PAKUAN AJI\" ],\n [1804090014,1804090,\"BUMI NABUNG UDIK\" ],\n [1804090015,1804090,\"SUKADANA TIMUR\" ],\n [1804090016,1804090,\"SURABAYA UDIK\" ],\n [1804090017,1804090,\"RANTAU JAYA UDIK II\" ],\n [1804090018,1804090,\"MUARA JAYA\" ],\n [1804090019,1804090,\"RANTAU JAYA UDIK\" ],\n [1804090020,1804090,\"PASAR SUKADANA\" ],\n [1804090021,1804090,\"MATARAM MARGA\" ],\n [1804090022,1804090,\"TERBANGGI MARGA\" ],\n [1804090023,1804090,\"SUKADANA ILIR\" ],\n [1804090024,1804090,\"NEGARA NABUNG\" ],\n [1804090025,1804090,\"BUMI AYU\" ],\n [1804090026,1804090,\"PUTRA AJI I\" ],\n [1804090027,1804090,\"SUKADANA SELATAN\" ],\n [1804090028,1804090,\"SUKADANA TENGAH\" ],\n [1804090029,1804090,\"SUKADANA JAYA\" ],\n [1804091001,1804091,\"MARGA MULYA\" ],\n [1804091002,1804091,\"DONOMULYO\" ],\n [1804091003,1804091,\"NYAMPIR\" ],\n [1804091004,1804091,\"BUMI TINGGI\" ],\n [1804091005,1804091,\"LEHAN\" ],\n [1804091006,1804091,\"CATUR SWAKO\" ],\n [1804091007,1804091,\"MULYO ASRI\" ],\n [1804092001,1804092,\"GUNUNG TIGA\" ],\n [1804092002,1804092,\"SUKACARI\" ],\n [1804092003,1804092,\"NEGARA RATU\" ],\n [1804092004,1804092,\"BUMI JAWA\" ],\n [1804092005,1804092,\"GEDUNG DALAM\" ],\n [1804092006,1804092,\"SUKARAJA NUBAN\" ],\n [1804092007,1804092,\"TRISNO MULYO\" ],\n [1804092008,1804092,\"CEMPAKA NUBAN\" ],\n [1804092009,1804092,\"KEDATON II (DUA)\" ],\n [1804092010,1804092,\"KEDATON INDUK\" ],\n [1804092011,1804092,\"KEDATON I (SATU)\" ],\n [1804092012,1804092,\"TULUNG BALAK\" ],\n [1804092013,1804092,\"PURWOSARI\" ],\n [1804100001,1804100,\"ADIREJO\" ],\n [1804100002,1804100,\"SIDODADI\" ],\n [1804100003,1804100,\"GONDANG REJO\" ],\n [1804100004,1804100,\"SIRAMAN\" ],\n [1804100005,1804100,\"PEKALONGAN\" ],\n [1804100006,1804100,\"TULUS REJO\" ],\n [1804100007,1804100,\"JOJOG\" ],\n [1804100008,1804100,\"GANTI WARNO\" ],\n [1804100009,1804100,\"KALI BENING\" ],\n [1804100010,1804100,\"WONO SARI\" ],\n [1804100011,1804100,\"ADIJAYA\" ],\n [1804100012,1804100,\"GANTIMULYO\" ],\n [1804110001,1804110,\"RAMAN AJI\" ],\n [1804110002,1804110,\"RUKTI SEDIYO\" ],\n [1804110003,1804110,\"RATNA DAYA\" ],\n [1804110004,1804110,\"KOTA RAMAN\" ],\n [1804110005,1804110,\"REJO BINANGUN\" ],\n [1804110006,1804110,\"RANTAU FAJAR\" ],\n [1804110007,1804110,\"RAMAN ENDRA\" ],\n [1804110008,1804110,\"RAMAN FAJAR\" ],\n [1804110009,1804110,\"RESTU RAHAYU\" ],\n [1804110010,1804110,\"REJO KATON\" ],\n [1804110011,1804110,\"RAMA PUJA\" ],\n [1804120001,1804120,\"TAMAN ASRI\" ],\n [1804120002,1804120,\"TAMAN BOGO\" ],\n [1804120003,1804120,\"TAMBAH DADI\" ],\n [1804120004,1804120,\"TAMAN CARI\" ],\n [1804120005,1804120,\"TAMAN ENDAH\" ],\n [1804120006,1804120,\"TAMAN FAJAR\" ],\n [1804120007,1804120,\"TEGAL GONDO\" ],\n [1804120008,1804120,\"TOTO HARJO\" ],\n [1804120009,1804120,\"TAMBAH LUHUR\" ],\n [1804120010,1804120,\"TANJUNG INTEN\" ],\n [1804120011,1804120,\"TEGAL YOSO\" ],\n [1804120012,1804120,\"TANJUNG KESUMA\" ],\n [1804121001,1804121,\"TOTO MULYO\" ],\n [1804121002,1804121,\"TEGAL OMBO\" ],\n [1804121003,1804121,\"TOTO PROJO\" ],\n [1804121004,1804121,\"TAMAN NEGERI\" ],\n [1804121005,1804121,\"TANJUNG KENCONO\" ],\n [1804121006,1804121,\"TAMBAH SUBUR\" ],\n [1804121007,1804121,\"TANJUNG TIRTO\" ],\n [1804121008,1804121,\"KALI PASIR\" ],\n [1805010006,1805010,\"PURWOSARI\" ],\n [1805010008,1805010,\"MOJOKERTO\" ],\n [1805010009,1805010,\"SENDANG AYU\" ],\n [1805010010,1805010,\"SURABAYA\" ],\n [1805010011,1805010,\"BANDARSARI\" ],\n [1805010012,1805010,\"SRI AGUNG\" ],\n [1805010013,1805010,\"KOTA BARU\" ],\n [1805010014,1805010,\"MARGOREJO\" ],\n [1805010015,1805010,\"KARANG TANJUNG\" ],\n [1805010028,1805010,\"KURIPAN\" ],\n [1805010029,1805010,\"HADUYANG RATU\" ],\n [1805010030,1805010,\"PADANG RATU\" ],\n [1805010051,1805010,\"KARANG SARI\" ],\n [1805010061,1805010,\"SUMBERSARI\" ],\n [1805010062,1805010,\"PURWOREJO\" ],\n [1805011001,1805011,\"MARGA JAYA\" ],\n [1805011002,1805011,\"LINGGA PURA\" ],\n [1805011003,1805011,\"NYUKANG HARJO\" ],\n [1805011004,1805011,\"SIDOHARJO\" ],\n [1805011005,1805011,\"TAMAN SARI\" ],\n [1805011006,1805011,\"NEGERI KATON\" ],\n [1805011007,1805011,\"KARANG ANYAR\" ],\n [1805011008,1805011,\"GALIH KARANGJATI\" ],\n [1805011009,1805011,\"GEDUNG HARTA\" ],\n [1805011010,1805011,\"NEGERI AGUNG\" ],\n [1805011011,1805011,\"TANJUNG RATU\" ],\n [1805011012,1805011,\"GEDUNG HAJI\" ],\n [1805011013,1805011,\"NEGERI JAYA\" ],\n [1805011014,1805011,\"MEKAR HARJO\" ],\n [1805012001,1805012,\"KOTA BATU\" ],\n [1805012002,1805012,\"TAWANG NEGERI\" ],\n [1805012003,1805012,\"PAYUNG MAKMUR\" ],\n [1805012004,1805012,\"PAYUNG DADI\" ],\n [1805012005,1805012,\"PAYUNG REJO\" ],\n [1805012006,1805012,\"TANJUNG REJO\" ],\n [1805012007,1805012,\"SANGUN RATU\" ],\n [1805012008,1805012,\"GUNUNG RAYA\" ],\n [1805012009,1805012,\"GUNUNG HAJI\" ],\n [1805012010,1805012,\"NEGERI RATU\" ],\n [1805012011,1805012,\"TANJUNG KEMALA\" ],\n [1805012012,1805012,\"NEGERI KEPAYUNGAN\" ],\n [1805012013,1805012,\"PAYUNG BATU\" ],\n [1805012014,1805012,\"SEGALA MIDER\" ],\n [1805012015,1805012,\"TIAS BANGUN\" ],\n [1805012016,1805012,\"SINAR NEGERI\" ],\n [1805012017,1805012,\"RIAU PERIANGAN\" ],\n [1805012018,1805012,\"PEKANDANGAN\" ],\n [1805012019,1805012,\"PAYUNG MULYA\" ],\n [1805012020,1805012,\"PADANG REJO\" ],\n [1805013001,1805013,\"SRI KATON\" ],\n [1805013002,1805013,\"JAYA SAKTI\" ],\n [1805013003,1805013,\"BUMI JAYA\" ],\n [1805013004,1805013,\"MULYO HAJI\" ],\n [1805013005,1805013,\"HAJI PEMANGGILAN\" ],\n [1805013006,1805013,\"NEGARA BUMI ILIR\" ],\n [1805013007,1805013,\"BUMI AJI\" ],\n [1805013008,1805013,\"NEGARA AJI TUA\" ],\n [1805013009,1805013,\"NEGARA BUMI UDIK\" ],\n [1805013010,1805013,\"NEGARA AJI BARU\" ],\n [1805013011,1805013,\"GUNUNG AGUNG\" ],\n [1805013012,1805013,\"TANJUNG HARAPAN\" ],\n [1805014001,1805014,\"GEDUNG RATU\" ],\n [1805014002,1805014,\"SRI MULYO\" ],\n [1805014003,1805014,\"GEDUNG SARI\" ],\n [1805014004,1805014,\"BANDAR PUTIH TUA\" ],\n [1805014005,1805014,\"SUKAJAYA\" ],\n [1805014006,1805014,\"KARANG JAWA\" ],\n [1805020002,1805020,\"SRI WAY LANGSEP\" ],\n [1805020003,1805020,\"WAYAKROY\" ],\n [1805020004,1805020,\"KALI REJO\" ],\n [1805020005,1805020,\"BALAI REJO\" ],\n [1805020006,1805020,\"SRI BASUKI\" ],\n [1805020007,1805020,\"KALI WUNGU\" ],\n [1805020008,1805020,\"KALI DADI\" ],\n [1805020017,1805020,\"SRI MULYO\" ],\n [1805020018,1805020,\"SRI DADI\" ],\n [1805020019,1805020,\"SUKOSARI\" ],\n [1805020020,1805020,\"WATU AGUNG\" ],\n [1805020021,1805020,\"SINAR SARI\" ],\n [1805020022,1805020,\"PONCO WARNO\" ],\n [1805020023,1805020,\"SRI PURNOMO\" ],\n [1805020024,1805020,\"AGUNG TIMUR\" ],\n [1805020025,1805020,\"SINAR REJO\" ],\n [1805020026,1805020,\"KALI SARI\" ],\n [1805021001,1805021,\"SENDANG MULYO\" ],\n [1805021002,1805021,\"SENDANG REJO\" ],\n [1805021003,1805021,\"SENDANG AGUNG\" ],\n [1805021004,1805021,\"SENDANG RETNO\" ],\n [1805021005,1805021,\"SENDANG BARU\" ],\n [1805021006,1805021,\"SENDANG ASIH\" ],\n [1805021007,1805021,\"SENDANG ASRI\" ],\n [1805021008,1805021,\"SENDANG MUKTI\" ],\n [1805021009,1805021,\"KUTOWINANGUN\" ],\n [1805030001,1805030,\"PURWODADI\" ],\n [1805030002,1805030,\"SIDODADI\" ],\n [1805030003,1805030,\"SIDOREJO\" ],\n [1805030004,1805030,\"CIMARIAS\" ],\n [1805030005,1805030,\"BANGUN REJO\" ],\n [1805030006,1805030,\"SIDOLUHUR\" ],\n [1805030007,1805030,\"SIDOMULYO\" ],\n [1805030008,1805030,\"TIMBUL REJO\" ],\n [1805030009,1805030,\"SUKA WARINGIN\" ],\n [1805030010,1805030,\"SUKA NEGARA\" ],\n [1805030011,1805030,\"SRI PENDOWO\" ],\n [1805030012,1805030,\"SINAR SEPUTIH\" ],\n [1805030013,1805030,\"SINAR LUAS\" ],\n [1805030014,1805030,\"TANJUNG JAYA\" ],\n [1805030015,1805030,\"TANJUNG PANDAN\" ],\n [1805030016,1805030,\"MEKAR JAYA\" ],\n [1805030017,1805030,\"SUKA NEGERI\" ],\n [1805040017,1805040,\"TERBANGGI SUBING\" ],\n [1805040018,1805040,\"WONO SARI\" ],\n [1805040019,1805040,\"TERBANGGI AGUNG\" ],\n [1805040020,1805040,\"GUNUNG SUGIH RAYA\" ],\n [1805040021,1805040,\"KOMERING AGUNG\" ],\n [1805040022,1805040,\"KOMERING PUTIH\" ],\n [1805040023,1805040,\"PAJAR BULAN\" ],\n [1805040024,1805040,\"SEPUTIH JAYA\" ],\n [1805040025,1805040,\"GUNUNG SARI\" ],\n [1805040026,1805040,\"GUNUNG SUGIH\" ],\n [1805040027,1805040,\"BUYUT UDIK\" ],\n [1805040028,1805040,\"PUTRA BUYUT\" ],\n [1805040029,1805040,\"BUYUT ILIR\" ],\n [1805040030,1805040,\"BUYUT UTARA\" ],\n [1805040031,1805040,\"BANGUN REJO\" ],\n [1805041001,1805041,\"KEDATUAN\" ],\n [1805041002,1805041,\"BINJAI AGUNG\" ],\n [1805041003,1805041,\"RENGAS\" ],\n [1805041004,1805041,\"KESUMADADI\" ],\n [1805041005,1805041,\"GORAS JAYA\" ],\n [1805041006,1805041,\"SINAR BANTEN/BEKRI\" ],\n [1805041007,1805041,\"KESUMA JAYA\" ],\n [1805041008,1805041,\"BANGUNSARI\" ],\n [1805042001,1805042,\"SUKAJAWA\" ],\n [1805042002,1805042,\"SIDOKERTO\" ],\n [1805042003,1805042,\"SUKAJADI\" ],\n [1805042004,1805042,\"WATES\" ],\n [1805042005,1805042,\"BUMIRATU\" ],\n [1805042006,1805042,\"BUMIRAHARJO\" ],\n [1805042007,1805042,\"BUMIRAHAYU\" ],\n [1805042008,1805042,\"SIDOWARAS\" ],\n [1805042009,1805042,\"BULUSARI\" ],\n [1805042010,1805042,\"TULUNG KAKAN\" ],\n [1805050001,1805050,\"ADIPURO\" ],\n [1805050002,1805050,\"LEMAN BENAWI\" ],\n [1805050003,1805050,\"DEPOK REJO\" ],\n [1805050004,1805050,\"TEMPURAN\" ],\n [1805050005,1805050,\"SIMBAR WARINGIN\" ],\n [1805050006,1805050,\"TRIMURJO\" ],\n [1805050007,1805050,\"NOTOHARJO\" ],\n [1805050008,1805050,\"UNTORO\" ],\n [1805050009,1805050,\"PURWOADI\" ],\n [1805050010,1805050,\"PURWODADI\" ],\n [1805050011,1805050,\"PUJODADI\" ],\n [1805050012,1805050,\"PUJOKERTO\" ],\n [1805050013,1805050,\"PUJO BASUKI\" ],\n [1805050014,1805050,\"PUJOASRI\" ],\n [1805060001,1805060,\"NUNGGAL REJO\" ],\n [1805060002,1805060,\"BADRAN SARI\" ],\n [1805060003,1805060,\"SRI SAWAHAN\" ],\n [1805060007,1805060,\"TOTO KATON\" ],\n [1805060008,1805060,\"TANGGUL ANGIN\" ],\n [1805060009,1805060,\"NGESTI RAHAYU\" ],\n [1805060010,1805060,\"MOJO PAHIT\" ],\n [1805060011,1805060,\"ASTO MULYO\" ],\n [1805060012,1805060,\"SIDO MULYO\" ],\n [1805061001,1805061,\"SRI TEJO KENCONO\" ],\n [1805061002,1805061,\"SAPTO MULYO\" ],\n [1805061003,1805061,\"NAMBAH REJO\" ],\n [1805061004,1805061,\"SUMBER REJO\" ],\n [1805061005,1805061,\"PURWOREJO\" ],\n [1805061006,1805061,\"KOTA GAJAH\" ],\n [1805061007,1805061,\"KOTA GAJAH TIMUR\" ],\n [1805070001,1805070,\"REJO BASUKI\" ],\n [1805070002,1805070,\"REJO ASRI\" ],\n [1805070003,1805070,\"RUKTI ENDAH\" ],\n [1805070004,1805070,\"RAMA GUNAWAN\" ],\n [1805070005,1805070,\"RAMA DEWA\" ],\n [1805070006,1805070,\"RATNA KHATON\" ],\n [1805070007,1805070,\"RAMAYANA\" ],\n [1805070008,1805070,\"RAMA INDERA\" ],\n [1805070009,1805070,\"RUKTI HARJO\" ],\n [1805070010,1805070,\"RAMA MURTI\" ],\n [1805070011,1805070,\"RAMA UTAMA\" ],\n [1805070012,1805070,\"RAMA NIRWANA\" ],\n [1805070013,1805070,\"BUYUT BARU\" ],\n [1805070014,1805070,\"RAMA KELANDUNGAN\" ],\n [1805080006,1805080,\"ADI JAYA\" ],\n [1805080008,1805080,\"YUKUM JAYA\" ],\n [1805080009,1805080,\"INDRA PUTRA SUBING\" ],\n [1805080010,1805080,\"KARANG ENDAH\" ],\n [1805080011,1805080,\"NAMBAH DADI\" ],\n [1805080012,1805080,\"ONO HARJO\" ],\n [1805080013,1805080,\"TERBANGGI BESAR\" ],\n [1805080014,1805080,\"PONCOWATI\" ],\n [1805080015,1805080,\"BANDAR JAYA TIMUR\" ],\n [1805080016,1805080,\"BANDAR JAYA BARAT\" ],\n [1805081001,1805081,\"HARAPAN REJO\" ],\n [1805081002,1805081,\"ENDANG REJO\" ],\n [1805081003,1805081,\"DONO ARUM\" ],\n [1805081004,1805081,\"SIMPANG AGUNG\" ],\n [1805081005,1805081,\"BUMI KENCANA\" ],\n [1805081006,1805081,\"GAYAU SAKTI\" ],\n [1805081007,1805081,\"FAJAR ASRI\" ],\n [1805081008,1805081,\"SELUSUBAN\" ],\n [1805081009,1805081,\"MUJI RAHAYU\" ],\n [1805081010,1805081,\"BUMI MAS\" ],\n [1805082001,1805082,\"BANJAR RATU\" ],\n [1805082002,1805082,\"CANDI REJO\" ],\n [1805082003,1805082,\"PURNAMA TUNGGAL\" ],\n [1805082004,1805082,\"TANJUNG RATU ILIR\" ],\n [1805082005,1805082,\"BANJAR KERTARAHAYU\" ],\n [1805082006,1805082,\"LEMPUYANG BANDAR\" ],\n [1805082007,1805082,\"BANJAR REJO\" ],\n [1805082008,1805082,\"PUTRA LEMPUYANG\" ],\n [1805090001,1805090,\"GUNUNG AGUNG\" ],\n [1805090002,1805090,\"BANDAR AGUNG\" ],\n [1805090003,1805090,\"BANDAR SAKTI\" ],\n [1805090004,1805090,\"TANJUNG ANOM\" ],\n [1805090005,1805090,\"GUNUNG BATIN BARU\" ],\n [1805090006,1805090,\"GUNUNG BATIN UDIK\" ],\n [1805090007,1805090,\"GUNUNG BATIN ILIR\" ],\n [1805100001,1805100,\"FAJAR MATARAM\" ],\n [1805100002,1805100,\"QURNIA MATARAM\" ],\n [1805100003,1805100,\"REJOSARI MATARAM\" ],\n [1805100004,1805100,\"SUMBER AGUNG MATARAM\" ],\n [1805100005,1805100,\"UTAMA JAYA MATARAM\" ],\n [1805100006,1805100,\"TRIMULYO MATARAM\" ],\n [1805100007,1805100,\"WIRATA AGUNG MATARAM\" ],\n [1805100008,1805100,\"VARIA AGUNG\" ],\n [1805100009,1805100,\"SUBING KARYA\" ],\n [1805100010,1805100,\"BUMI SETIA MATARAM\" ],\n [1805100011,1805100,\"DHARMA AGUNG MATARAM\" ],\n [1805100013,1805100,\"BANJAR AGUNG MATARAM\" ],\n [1805101001,1805101,\"UMAN AGUNG\" ],\n [1805101002,1805101,\"SRI WIJAYA\" ],\n [1805101003,1805101,\"SENDANG AGUNG MATARAM\" ],\n [1805101004,1805101,\"JATI DATAR MATARAM\" ],\n [1805101005,1805101,\"TERBANGGI MULYA\" ],\n [1805101006,1805101,\"TERBANGGI ILIR\" ],\n [1805101007,1805101,\"MATARAM UDIK\" ],\n [1805101008,1805101,\"MATARAM JAYA\" ],\n [1805101009,1805101,\"UPT WAY TERUSAN SP 1\" ],\n [1805101010,1805101,\"UPT WAY TERUSAN SP. 2\" ],\n [1805101011,1805101,\"UPT WAY TERUSAN SP.3\" ],\n [1805101012,1805101,\"SUMBER REJEKI\" ],\n [1805110001,1805110,\"SUMBER BAHAGIA\" ],\n [1805110002,1805110,\"SETIA BUMI\" ],\n [1805110003,1805110,\"SISWA BANGUN\" ],\n [1805110004,1805110,\"SANGGAR BUANA\" ],\n [1805110005,1805110,\"SAKTI BUANA\" ],\n [1805110006,1805110,\"SETIA BAKTI\" ],\n [1805110007,1805110,\"SUMBER BARU\" ],\n [1805110008,1805110,\"TANJUNG HARAPAN\" ],\n [1805110009,1805110,\"SARI BAKTI\" ],\n [1805110011,1805110,\"SRI BASUKI\" ],\n [1805110013,1805110,\"SWASTIKA BUANA\" ],\n [1805110014,1805110,\"SUMBER FAJAR\" ],\n [1805110015,1805110,\"TANJUNG KERAJAN\" ],\n [1805111001,1805111,\"SRI BAWONO\" ],\n [1805111002,1805111,\"SRI BUDAYA\" ],\n [1805111003,1805111,\"SUKO BINANGUN\" ],\n [1805111004,1805111,\"SRI BUSONO\" ],\n [1805111005,1805111,\"SIDO BINANGUN\" ],\n [1805111006,1805111,\"SANGGA BUANA\" ],\n [1805120006,1805120,\"BINA KARYA BUANA\" ],\n [1805120007,1805120,\"BINAKARYA PUTRA\" ],\n [1805120009,1805120,\"RUKTI BASUKI\" ],\n [1805120010,1805120,\"RESTU BARU\" ],\n [1805120011,1805120,\"RESTU BUANA\" ],\n [1805120013,1805120,\"RENO BASUKI\" ],\n [1805120014,1805120,\"REKSO BINANGUN\" ],\n [1805120015,1805120,\"TELUK DALEM ILIR\" ],\n [1805120016,1805120,\"BINA KARYA MANDIRI\" ],\n [1805121001,1805121,\"BUMI NABUNG SELATAN\" ],\n [1805121002,1805121,\"BUMI NABUNG BARU\" ],\n [1805121003,1805121,\"SRI KENCONO\" ],\n [1805121004,1805121,\"BUMI NABUNG TIMUR\" ],\n [1805121005,1805121,\"BUMI NABUNG ILIR\" ],\n [1805121006,1805121,\"BUMI NABUNG UTARA\" ],\n [1805121007,1805121,\"SRI KENCONO BARU\" ],\n [1805122001,1805122,\"JOHARAN\" ],\n [1805122002,1805122,\"RANTAU JAYA ILIR\" ],\n [1805122003,1805122,\"BINA KARYA SAKTI\" ],\n [1805122004,1805122,\"BINA KARYA JAYA\" ],\n [1805122005,1805122,\"BINA KARYA UTAMA\" ],\n [1805122006,1805122,\"RANTAU JAYA BARU\" ],\n [1805122007,1805122,\"MERANGGI JAYA\" ],\n [1805122008,1805122,\"MEKAR JAYA\" ],\n [1805122009,1805122,\"BINA KARYA BARU\" ],\n [1805122010,1805122,\"RANTAU JAYA MAKMUR\" ],\n [1805130001,1805130,\"GAYA BARU ENAM\" ],\n [1805130002,1805130,\"RAWA BETIK\" ],\n [1805130011,1805130,\"GAYA BARU EMPAT\" ],\n [1805130012,1805130,\"GAYA BARU TUJUH\" ],\n [1805130013,1805130,\"SUMBER KATON\" ],\n [1805130014,1805130,\"SRI KATON\" ],\n [1805130015,1805130,\"GAYA BARU DUA\" ],\n [1805130016,1805130,\"GAYA BARU TIGA\" ],\n [1805130018,1805130,\"KENANGA SARI\" ],\n [1805130019,1805130,\"SRI MULYA JAYA\" ],\n [1805130020,1805130,\"GAYA BARU SATU\" ],\n [1805130021,1805130,\"GAYA BARU DELAPAN\" ],\n [1805130022,1805130,\"MATARAM ILIR\" ],\n [1805131001,1805131,\"RAJA WALI\" ],\n [1805131002,1805131,\"SURABAYA ILIR\" ],\n [1805131003,1805131,\"BERINGIN JAYA\" ],\n [1805131004,1805131,\"CEMPAKA PUTIH\" ],\n [1805131005,1805131,\"SIDO DADI\" ],\n [1805131006,1805131,\"CABANG\" ],\n [1805131007,1805131,\"SUMBER AGUNG\" ],\n [1805131008,1805131,\"GAYA BARU LIMA\" ],\n [1805131009,1805131,\"SUBANG JAYA\" ],\n [1805131010,1805131,\"SURABAYA BARU\" ],\n [1806010001,1806010,\"TANJUNG BARU\" ],\n [1806010002,1806010,\"TANJUNG BARU TIMUR\" ],\n [1806010005,1806010,\"BUKIT KEMUNING\" ],\n [1806010006,1806010,\"MUARA AMAN\" ],\n [1806010007,1806010,\"SUKA MENANTI\" ],\n [1806010008,1806010,\"TANJUNG WARAS\" ],\n [1806010015,1806010,\"DWIKORA\" ],\n [1806010016,1806010,\"SIDOMULYO\" ],\n [1806011001,1806011,\"SIDOKAYO\" ],\n [1806011002,1806011,\"SEKIPI\" ],\n [1806011003,1806011,\"MUARA DUA\" ],\n [1806011004,1806011,\"ULAK RENGAS\" ],\n [1806011005,1806011,\"PULAU PANGGUNG\" ],\n [1806011006,1806011,\"KEBON DALAM\" ],\n [1806011007,1806011,\"SUKAMAJU\" ],\n [1806011008,1806011,\"SUKAMARGA\" ],\n [1806020001,1806020,\"TULUNG BALAK\" ],\n [1806020002,1806020,\"SUKA MULYA\" ],\n [1806020003,1806020,\"GUNUNG KATON\" ],\n [1806020004,1806020,\"KARANG WARINGIN\" ],\n [1806020005,1806020,\"SUKASARI\" ],\n [1806020006,1806020,\"SIDO MULYO\" ],\n [1806020007,1806020,\"TANJUNG BERINGIN\" ],\n [1806020008,1806020,\"MERAMBUNG\" ],\n [1806020009,1806020,\"SINAR JAYA\" ],\n [1806020010,1806020,\"SINDANG AGUNG\" ],\n [1806020011,1806020,\"MEKAR JAYA\" ],\n [1806020012,1806020,\"SRI MENANTI\" ],\n [1806020013,1806020,\"TANJUNG RAJA\" ],\n [1806020014,1806020,\"TANJUNG RIANG\" ],\n [1806020015,1806020,\"KEMALA RAJA\" ],\n [1806020016,1806020,\"ULAK ATA\" ],\n [1806020017,1806020,\"SINDANG MARGA\" ],\n [1806020018,1806020,\"SINAR MULYA\" ],\n [1806020019,1806020,\"PRIANGAN BARU\" ],\n [1806030017,1806030,\"HUJAN MAS\" ],\n [1806030024,1806030,\"BUMI NABUNG\" ],\n [1806030025,1806030,\"PENGARINGAN\" ],\n [1806030026,1806030,\"SIMPANG ABUNG\" ],\n [1806030027,1806030,\"WAY WAKAK\" ],\n [1806030028,1806030,\"TANJUNG HARTA\" ],\n [1806030029,1806030,\"CAHAYA NEGERI\" ],\n [1806030030,1806030,\"OGAN LIMA\" ],\n [1806030031,1806030,\"KISTANG\" ],\n [1806030032,1806030,\"KEMPLAS\" ],\n [1806030033,1806030,\"PEMATANG KASIH\" ],\n [1806030034,1806030,\"LEPANG BESAR\" ],\n [1806030036,1806030,\"GUNUNG BETUAH\" ],\n [1806030037,1806030,\"BUMI MANDIRI\" ],\n [1806031006,1806031,\"GUNUNG GIJUL\" ],\n [1806031008,1806031,\"GUNUNG SADAR\" ],\n [1806031009,1806031,\"SUBIK\" ],\n [1806031013,1806031,\"PEKURUN SELATAN\" ],\n [1806031014,1806031,\"PEKURUN BARAT\" ],\n [1806031015,1806031,\"PEKURUN UTARA\" ],\n [1806031016,1806031,\"KEDATON\" ],\n [1806031017,1806031,\"SRI BANDUNG\" ],\n [1806031018,1806031,\"NEGLA SARI\" ],\n [1806031019,1806031,\"KINCIRAN\" ],\n [1806031020,1806031,\"GUNUNG BESAR\" ],\n [1806032001,1806032,\"BERINGIN\" ],\n [1806032002,1806032,\"SABUK EMPAT\" ],\n [1806032003,1806032,\"SABUK INDAH\" ],\n [1806032004,1806032,\"TALANG JEMBATAN\" ],\n [1806032005,1806032,\"AJI KAGUNGAN\" ],\n [1806032006,1806032,\"BINDU\" ],\n [1806032007,1806032,\"WAY PERANCANG\" ],\n [1806033001,1806033,\"CAMPANG GIJUL\" ],\n [1806033002,1806033,\"NYAPAH BANYU\" ],\n [1806033003,1806033,\"SINAR GUNUNG\" ],\n [1806033004,1806033,\"OGAN CAMPANG\" ],\n [1806033005,1806033,\"SUMBER TANI\" ],\n [1806033006,1806033,\"OGAN JAYA\" ],\n [1806033007,1806033,\"PEKURUN UDIK\" ],\n [1806033008,1806033,\"PEKURUN TENGAH\" ],\n [1806033009,1806033,\"PEKURUN\" ],\n [1806040006,1806040,\"TALANG BOJONG\" ],\n [1806040011,1806040,\"KOTA GAPURA\" ],\n [1806040013,1806040,\"CEMPEDAK\" ],\n [1806040014,1806040,\"SRIBASUKI\" ],\n [1806040015,1806040,\"REJOSARI\" ],\n [1806040016,1806040,\"KOTABUMI TENGAH\" ],\n [1806040017,1806040,\"KOTABUMI ILIR\" ],\n [1806040018,1806040,\"KOTABUMI PASAR\" ],\n [1806040019,1806040,\"KOTABUMI UDIK\" ],\n [1806040020,1806040,\"SINDANG SARI\" ],\n [1806040027,1806040,\"KOTABUMI TENGAH BARAT\" ],\n [1806040028,1806040,\"BOJONG BARAT\" ],\n [1806040029,1806040,\"SUMBER ARUM\" ],\n [1806041001,1806041,\"KALI CINTA\" ],\n [1806041002,1806041,\"MADUKORO BARU\" ],\n [1806041003,1806041,\"MADUKORO\" ],\n [1806041004,1806041,\"TALANG JALI\" ],\n [1806041005,1806041,\"MARGOREJO\" ],\n [1806041006,1806041,\"BANJAR WANGI\" ],\n [1806041007,1806041,\"WONOMARTO\" ],\n [1806041008,1806041,\"SAWO JAJAR\" ],\n [1806042001,1806042,\"TAMAN JAYA\" ],\n [1806042002,1806042,\"JERANGKANG\" ],\n [1806042003,1806042,\"WAY MELAN\" ],\n [1806042004,1806042,\"BANDAR PUTIH\" ],\n [1806042005,1806042,\"KARANG AGUNG\" ],\n [1806042006,1806042,\"MULANG MAYA\" ],\n [1806042007,1806042,\"CURUP GURUH KAGUNGAN\" ],\n [1806042008,1806042,\"KOTA ALAM\" ],\n [1806042009,1806042,\"KELAPA TUJUH\" ],\n [1806042010,1806042,\"TANJUNG AMAN\" ],\n [1806042011,1806042,\"TANJUNG SENANG\" ],\n [1806042012,1806042,\"TANJUNG HARAPAN\" ],\n [1806042013,1806042,\"ALAM JAYA\" ],\n [1806042014,1806042,\"SINAR MAS ALAM\" ],\n [1806050001,1806050,\"GILIH SUKANEGERI\" ],\n [1806050002,1806050,\"CABANG EMPAT\" ],\n [1806050003,1806050,\"SINAR OGAN\" ],\n [1806050004,1806050,\"CANDI MAS\" ],\n [1806050005,1806050,\"TRIMODADI\" ],\n [1806050011,1806050,\"KALI BALANGAN\" ],\n [1806050012,1806050,\"KEMBANG TANJUNG\" ],\n [1806050013,1806050,\"KEMBANG GADING\" ],\n [1806050014,1806050,\"ABUNG JAYO\" ],\n [1806050015,1806050,\"CABANG ABUNG RAYA\" ],\n [1806050016,1806050,\"KALIBENING RAYA\" ],\n [1806050017,1806050,\"RATU ABUNG\" ],\n [1806050018,1806050,\"KEMALO ABUNG\" ],\n [1806050019,1806050,\"BANDAR KAGUNGAN RAYA\" ],\n [1806050020,1806050,\"WAY LUNIK\" ],\n [1806050021,1806050,\"BUMI RAYA\" ],\n [1806051001,1806051,\"SUKAMAJU\" ],\n [1806051002,1806051,\"SEMULI JAYA\" ],\n [1806051003,1806051,\"SEMULI RAYA\" ],\n [1806051004,1806051,\"PAPAN ASRI\" ],\n [1806051005,1806051,\"SIDO RAHAYU\" ],\n [1806051006,1806051,\"GUNUNG KRAMAT\" ],\n [1806051007,1806051,\"GUNUNG SARI\" ],\n [1806052001,1806052,\"JAGANG\" ],\n [1806052002,1806052,\"TANJUNG IMAN\" ],\n [1806052003,1806052,\"BLAMBANGAN\" ],\n [1806052004,1806052,\"PAGAR GADING\" ],\n [1806052005,1806052,\"TULUNG SINGKIP\" ],\n [1806052006,1806052,\"PAGAR\" ],\n [1806052007,1806052,\"BURING KENCANA\" ],\n [1806060001,1806060,\"BANJAR AGUNG\" ],\n [1806060002,1806060,\"BUMI AGUNG MARGA\" ],\n [1806060003,1806060,\"PERADUAN WARAS\" ],\n [1806060004,1806060,\"PENAGAN RATU\" ],\n [1806060005,1806060,\"GEDUNG NYAPAH\" ],\n [1806060006,1806060,\"PUNGGUK LAMA\" ],\n [1806060007,1806060,\"SURAKARTA\" ],\n [1806060008,1806060,\"SUMBER AGUNG\" ],\n [1806060009,1806060,\"SIDOMUKTI\" ],\n [1806060010,1806060,\"BUMI JAYA\" ],\n [1806060011,1806060,\"REJO MULYO\" ],\n [1806060021,1806060,\"PAPAN REJO\" ],\n [1806061001,1806061,\"BANDAR ABUNG\" ],\n [1806061002,1806061,\"BANGUN SARI\" ],\n [1806061003,1806061,\"TATA KARYA\" ],\n [1806061004,1806061,\"SUKOHARJO\" ],\n [1806061005,1806061,\"BUMI RESTU\" ],\n [1806061006,1806061,\"BUMI RAHARJA\" ],\n [1806061007,1806061,\"PURBA SAKTI\" ],\n [1806061008,1806061,\"BANDAR SAKTI\" ],\n [1806061009,1806061,\"KARYA SAKTI\" ],\n [1806070011,1806070,\"BUMI RATU\" ],\n [1806070014,1806070,\"SIRNA GALIH\" ],\n [1806070015,1806070,\"LABUHAN RATU PASAR\" ],\n [1806070016,1806070,\"LABUHAN RATU KAMPUNG\" ],\n [1806070017,1806070,\"GEDUNG KETAPANG\" ],\n [1806070018,1806070,\"BANJAR KETAPANG\" ],\n [1806070019,1806070,\"KOTA AGUNG\" ],\n [1806070020,1806070,\"KETAPANG\" ],\n [1806070021,1806070,\"KARANG REJO\" ],\n [1806070022,1806070,\"SIDODADI\" ],\n [1806070023,1806070,\"GUNUNG LABUHAN\" ],\n [1806071001,1806071,\"NEGERI RATU\" ],\n [1806071002,1806071,\"PAKUAN AGUNG\" ],\n [1806071003,1806071,\"BANJAR RATU\" ],\n [1806071004,1806071,\"BANJAR NEGERI\" ],\n [1806071005,1806071,\"NEGERI UJUNG KARANG\" ],\n [1806071006,1806071,\"BANDAR AGUNG\" ],\n [1806071007,1806071,\"KARANG SARI\" ],\n [1806071008,1806071,\"KARANG SAKTI\" ],\n [1806071009,1806071,\"KARANG REJO II\" ],\n [1806071010,1806071,\"KARANG MULYO\" ],\n [1806071011,1806071,\"SUMBER AGUNG\" ],\n [1806072001,1806072,\"KOTA NAPAL\" ],\n [1806072002,1806072,\"TANAH ABANG\" ],\n [1806072003,1806072,\"NEGARA TULANG BAWANG\" ],\n [1806072004,1806072,\"TULANG BAWANG BARU\" ],\n [1806072005,1806072,\"SUKADANA ILIR\" ],\n [1806072006,1806072,\"SUKADANA UDIK\" ],\n [1806072007,1806072,\"HADUYANG RATU\" ],\n [1806072008,1806072,\"ISOREJO\" ],\n [1806072009,1806072,\"MULYO REJO II\" ],\n [1806072010,1806072,\"MULYO REJO I\" ],\n [1806072011,1806072,\"SUKAMAJU\" ],\n [1806073001,1806073,\"COMOK SINAR JAYA\" ],\n [1806073002,1806073,\"WAY ISEM\" ],\n [1806073003,1806073,\"SINAR HARAPAN\" ],\n [1806073004,1806073,\"CAHAYA MAS\" ],\n [1806073005,1806073,\"GUNUNG MAKNIBAI\" ],\n [1806073006,1806073,\"NEGERI SAKTI\" ],\n [1806073007,1806073,\"GUNUNG RAJA\" ],\n [1806073008,1806073,\"KUBUHITU\" ],\n [1806073009,1806073,\"TANJUNG JAYA\" ],\n [1806073010,1806073,\"NEGERI BATIN JAYA\" ],\n [1806074001,1806074,\"LEPANG TENGAH\" ],\n [1806074002,1806074,\"SUKAJAYA\" ],\n [1806074003,1806074,\"NEGARA AGUNG\" ],\n [1806074004,1806074,\"SRI AGUNG\" ],\n [1806074005,1806074,\"CAHAYA MAKMUR\" ],\n [1806074006,1806074,\"SRI JAYA\" ],\n [1806074007,1806074,\"CEMPAKA BARAT\" ],\n [1806074008,1806074,\"CEMPAKA\" ],\n [1806074009,1806074,\"CEMPAKA TIMUR\" ],\n [1806080010,1806080,\"BARU RAHARJA\" ],\n [1806080012,1806080,\"OGAN JAYA\" ],\n [1806080013,1806080,\"BANGUN JAYA\" ],\n [1806080019,1806080,\"NEGERI RATU\" ],\n [1806080020,1806080,\"PADANG RATU\" ],\n [1806080021,1806080,\"NEGERI SAKTI\" ],\n [1806080022,1806080,\"CIAMIS\" ],\n [1806080024,1806080,\"GEDUNG BATIN\" ],\n [1806080025,1806080,\"NEGARA BATIN\" ],\n [1806080026,1806080,\"BATU RAJA\" ],\n [1806080027,1806080,\"NEGARA RATU\" ],\n [1806080029,1806080,\"KOTA NEGARA\" ],\n [1806080030,1806080,\"HANAKAU JAYA\" ],\n [1806080031,1806080,\"NEGARA BATIN II\" ],\n [1806080032,1806080,\"KOTA NEGARA ILIR\" ],\n [1806081001,1806081,\"BUNGLAI TENGAH\" ],\n [1806081002,1806081,\"NEGARA KEMAKMURAN\" ],\n [1806081003,1806081,\"TANJUNG HARAPAN\" ],\n [1806081004,1806081,\"LUBUK RUKAM\" ],\n [1806081005,1806081,\"GEDUNG MAKRIPAT\" ],\n [1806081006,1806081,\"BERINGIN JAYA\" ],\n [1806081007,1806081,\"IBUL JAYA\" ],\n [1806081008,1806081,\"TULUNG BUYUT\" ],\n [1806081009,1806081,\"GEDUNG RAJA\" ],\n [1806081010,1806081,\"GEDUNG NEGARA\" ],\n [1806082001,1806082,\"NEGERI CAMPANG JAYA\" ],\n [1806082002,1806082,\"PAMPANG TANGGUK JAYA\" ],\n [1806082003,1806082,\"RATU JAYA\" ],\n [1806082004,1806082,\"NEGERI GALIH REJO\" ],\n [1806082005,1806082,\"BATU NANGKOP\" ],\n [1806082006,1806082,\"MEKAR ASRI\" ],\n [1806082007,1806082,\"NEGARA BUMI\" ],\n [1806082008,1806082,\"MELUNGUN RATU\" ],\n [1807010001,1807010,\"JUKU BATU\" ],\n [1807010002,1807010,\"BANDAR AGUNG\" ],\n [1807010003,1807010,\"SUMBER SARI\" ],\n [1807010004,1807010,\"BONGLAI\" ],\n [1807010005,1807010,\"CAMPANG DELAPAN\" ],\n [1807010006,1807010,\"KEMU\" ],\n [1807010007,1807010,\"SUMBER BARU\" ],\n [1807010008,1807010,\"NEKI\" ],\n [1807010009,1807010,\"RANTAU TEMIANG\" ],\n [1807010010,1807010,\"MENANGA SIAMANG\" ],\n [1807010011,1807010,\"MENANGA JAYA\" ],\n [1807010012,1807010,\"REBANG TINGGI\" ],\n [1807010013,1807010,\"ARGOMULYO\" ],\n [1807010014,1807010,\"RANTAU JAYA\" ],\n [1807010015,1807010,\"SIMPANG ASAM\" ],\n [1807010016,1807010,\"PASAR BANJIT\" ],\n [1807010017,1807010,\"BALI SADAR SELATAN\" ],\n [1807010018,1807010,\"BALI SADAR TENGAH\" ],\n [1807010019,1807010,\"BALI SADAR UTARA\" ],\n [1807010020,1807010,\"DONO MULYO\" ],\n [1807020014,1807020,\"BANJAR MASIN\" ],\n [1807020015,1807020,\"BANJAR AGUNG\" ],\n [1807020016,1807020,\"BANJAR MULIA\" ],\n [1807020017,1807020,\"BANJAR BARU\" ],\n [1807020018,1807020,\"BANJAR NEGARA\" ],\n [1807020019,1807020,\"BANJAR SETIA\" ],\n [1807020020,1807020,\"MEKAR ASRI\" ],\n [1807020021,1807020,\"TIUH BALAK\" ],\n [1807020022,1807020,\"CAMPUR ASRI\" ],\n [1807020023,1807020,\"GEDUNG REJO\" ],\n [1807020024,1807020,\"TAMAN ASRI\" ],\n [1807020025,1807020,\"TIUH BALAK PASAR\" ],\n [1807020026,1807020,\"SETIA NEGARA\" ],\n [1807020027,1807020,\"BHAKTI NEGARA\" ],\n [1807020028,1807020,\"TIUH BALAK I\" ],\n [1807020029,1807020,\"GEDUNG PAKUON\" ],\n [1807020030,1807020,\"CUGAH\" ],\n [1807020031,1807020,\"BUMI MERAPI\" ],\n [1807020032,1807020,\"BUMI REJO\" ],\n [1807020033,1807020,\"BANJAR SARI\" ],\n [1807020034,1807020,\"SUKOSARI\" ],\n [1807020038,1807020,\"GUNUNG KATUN\" ],\n [1807021001,1807021,\"BANJAR RATU\" ],\n [1807021002,1807021,\"BANJAR SAKTI\" ],\n [1807021003,1807021,\"GUNUNG BARU\" ],\n [1807021004,1807021,\"SUKA NEGERI\" ],\n [1807021005,1807021,\"NEGERI MULYO\" ],\n [1807021006,1807021,\"NEGERI SUNGKAI\" ],\n [1807021007,1807021,\"GUNUNG SARI\" ],\n [1807021008,1807021,\"GUNUNG LABUHAN\" ],\n [1807021009,1807021,\"BENGKULU REJO\" ],\n [1807021010,1807021,\"BENGKULU\" ],\n [1807021011,1807021,\"WAY TUBA\" ],\n [1807021012,1807021,\"BENGKULU RAMAN\" ],\n [1807021013,1807021,\"KAYU BATU\" ],\n [1807021014,1807021,\"BENGKULU JAYA\" ],\n [1807021015,1807021,\"CURUP PATAH\" ],\n [1807021016,1807021,\"TIUH BALAK II\" ],\n [1807021017,1807021,\"SUKARAME\" ],\n [1807021018,1807021,\"NEGERI UJAN MAS\" ],\n [1807021019,1807021,\"BENGKULU TENGAH\" ],\n [1807021020,1807021,\"GUNUNG PEKUWON\" ],\n [1807021021,1807021,\"LABUHAN JAYA\" ],\n [1807030001,1807030,\"SINAR GADING\" ],\n [1807030002,1807030,\"SUKAJADI\" ],\n [1807030003,1807030,\"KARANG LANTANG\" ],\n [1807030004,1807030,\"KEDATON\" ],\n [1807030005,1807030,\"DATAR BANCONG\" ],\n [1807030006,1807030,\"KASUI PASAR\" ],\n [1807030007,1807030,\"KASUI LAMA\" ],\n [1807030008,1807030,\"TALANG MANGGA\" ],\n [1807030009,1807030,\"JAYA TINGGI\" ],\n [1807030010,1807030,\"GELOMBANG PANJANG\" ],\n [1807030011,1807030,\"KAMPUNG BARU\" ],\n [1807030012,1807030,\"TANGKAS\" ],\n [1807030013,1807030,\"JUKUH KEMUNING\" ],\n [1807030015,1807030,\"KOTA WAY\" ],\n [1807030016,1807030,\"TANJUNG BULAN\" ],\n [1807030017,1807030,\"TANJUNG HARAPAN\" ],\n [1807030018,1807030,\"TANJUNG KURUNG\" ],\n [1807030019,1807030,\"TANJUNG KURUNG LAMA\" ],\n [1807030020,1807030,\"BUKIT BATU\" ],\n [1807031001,1807031,\"GUNUNG SARI\" ],\n [1807031002,1807031,\"LEBAK PENIANGAN\" ],\n [1807031003,1807031,\"MADANG JAYA\" ],\n [1807031004,1807031,\"TANJUNG TIGA\" ],\n [1807031005,1807031,\"AIR RINGKIH\" ],\n [1807031006,1807031,\"SIMPANG TIGA\" ],\n [1807031007,1807031,\"TANJUNG RAYA\" ],\n [1807031008,1807031,\"BERINGIN JAYA\" ],\n [1807031009,1807031,\"KARYA MAJU\" ],\n [1807031010,1807031,\"MULYA JAYA\" ],\n [1807040001,1807040,\"RAMBANG JAYA\" ],\n [1807040002,1807040,\"GISTANG\" ],\n [1807040003,1807040,\"NEGERI BATIN\" ],\n [1807040004,1807040,\"NEGERI BARU\" ],\n [1807040005,1807040,\"BUMI RATU\" ],\n [1807040006,1807040,\"SRIWIJAYA\" ],\n [1807040007,1807040,\"SIDOARJO\" ],\n [1807040008,1807040,\"BRATA YUDA\" ],\n [1807040009,1807040,\"GEDUNG BATIN\" ],\n [1807040025,1807040,\"SRI REJEKI\" ],\n [1807040026,1807040,\"BLAMBANGAN UMPU\" ],\n [1807040027,1807040,\"LEMBASUNG\" ],\n [1807040028,1807040,\"UMPU BAKTI\" ],\n [1807040029,1807040,\"UMPU KENCANA\" ],\n [1807040030,1807040,\"KARANG UMPU\" ],\n [1807040031,1807040,\"GUNUNG SANGKARAN\" ],\n [1807040032,1807040,\"SANGKARAN BHAKTI\" ],\n [1807040033,1807040,\"BUMI BARU\" ],\n [1807040034,1807040,\"TANJUNG SARI\" ],\n [1807040035,1807040,\"TANJUNG RAJA GIHAM\" ],\n [1807040046,1807040,\"SEGARA MIDAR\" ],\n [1807040047,1807040,\"TANJUNG RAJA SAKTI\" ],\n [1807040048,1807040,\"NEGERI BUMI PUTRA\" ],\n [1807040049,1807040,\"PANCA NEGERI\" ],\n [1807040050,1807040,\"GEDUNG RIANG\" ],\n [1807040051,1807040,\"OJOLALI\" ],\n [1807041001,1807041,\"BUKIT GEMURUH\" ],\n [1807041002,1807041,\"BUMI DANA\" ],\n [1807041003,1807041,\"WAY MENCAR\" ],\n [1807041004,1807041,\"BANDAR SARI\" ],\n [1807041005,1807041,\"SUMA MUKTI\" ],\n [1807041006,1807041,\"RAMSAI\" ],\n [1807041007,1807041,\"WAY TUBA\" ],\n [1807041008,1807041,\"KARYA JAYA\" ],\n [1807041009,1807041,\"SAY UMPU\" ],\n [1807041010,1807041,\"BERINGIN JAYA\" ],\n [1807041011,1807041,\"BUKIT HARAPAN\" ],\n [1807041012,1807041,\"WAY PISANG\" ],\n [1807041013,1807041,\"WAY TUBA ASRI\" ],\n [1807042001,1807042,\"GEDUNG JAYA\" ],\n [1807042002,1807042,\"WAY LIMAU\" ],\n [1807042003,1807042,\"KALI PAPAN\" ],\n [1807042004,1807042,\"BANDAR DALAM\" ],\n [1807042005,1807042,\"NEGERI AGUNG\" ],\n [1807042006,1807042,\"PULAU BATU\" ],\n [1807042007,1807042,\"KARYA AGUNG\" ],\n [1807042008,1807042,\"PENENGAHAN\" ],\n [1807042009,1807042,\"MULYA SARI\" ],\n [1807042010,1807042,\"TANJUNG REJO\" ],\n [1807042011,1807042,\"SUNGSANG\" ],\n [1807042012,1807042,\"KOTA BARU\" ],\n [1807042013,1807042,\"KOTABUMI WAY KANAN\" ],\n [1807042014,1807042,\"GEDUNG MENANG\" ],\n [1807042015,1807042,\"GEDUNG HARAPAN\" ],\n [1807042016,1807042,\"REJO SARI\" ],\n [1807042017,1807042,\"BANDAR KASIH\" ],\n [1807042018,1807042,\"SUMBER REJEKI\" ],\n [1807042019,1807042,\"MULYA AGUNG\" ],\n [1807050002,1807050,\"GIRI HARJO\" ],\n [1807050003,1807050,\"TULANG BAWANG\" ],\n [1807050004,1807050,\"MESIR UDIK\" ],\n [1807050005,1807050,\"MESIR ILIR\" ],\n [1807050020,1807050,\"BUMI AGUNG WATAS\" ],\n [1807050021,1807050,\"SERDANG KURING\" ],\n [1807050022,1807050,\"SAPTO RENGGO\" ],\n [1807050023,1807050,\"BUMI AGUNG\" ],\n [1807050024,1807050,\"MEKAR JAYA\" ],\n [1807050025,1807050,\"KOTA DEWA\" ],\n [1807050026,1807050,\"DEWA AGUNG\" ],\n [1807051001,1807051,\"PUNJUL AGUNG\" ],\n [1807051002,1807051,\"SUKA AGUNG\" ],\n [1807051003,1807051,\"SUKA DANA\" ],\n [1807051004,1807051,\"SUKABUMI\" ],\n [1807051005,1807051,\"BUMI HARJO\" ],\n [1807051006,1807051,\"SRI TUNGGAL\" ],\n [1807051007,1807051,\"NUAR MAJU\" ],\n [1807051008,1807051,\"LEBUNG LAWE\" ],\n [1807051009,1807051,\"WAY AGUNG\" ],\n [1807052001,1807052,\"TANJUNG DALOM\" ],\n [1807052002,1807052,\"KARANGAN\" ],\n [1807052003,1807052,\"BUMI AGUNG\" ],\n [1807052004,1807052,\"MULYO HARJO\" ],\n [1807052005,1807052,\"WONOHARJO\" ],\n [1807052006,1807052,\"PISANG BARU\" ],\n [1807052007,1807052,\"SRINUMPI\" ],\n [1807052008,1807052,\"PISANG INDAH\" ],\n [1807052009,1807052,\"SUKA MAJU\" ],\n [1807052010,1807052,\"BUMI SAY AGUNG\" ],\n [1807060002,1807060,\"BHAKTI NEGARA\" ],\n [1807060003,1807060,\"TANJUNG SERUPA\" ],\n [1807060004,1807060,\"SUKABUMI\" ],\n [1807060005,1807060,\"TANJUNG AGUNG\" ],\n [1807060006,1807060,\"SERUPA INDAH\" ],\n [1807060007,1807060,\"PAKUAN BARU\" ],\n [1807060008,1807060,\"TANJUNG RATU\" ],\n [1807060009,1807060,\"WAY TAWAR\" ],\n [1807060010,1807060,\"PAKUAN SAKTI\" ],\n [1807060011,1807060,\"NEGARA HARJA\" ],\n [1807060012,1807060,\"NEGARA TAMA\" ],\n [1807060032,1807060,\"BUMI MULYA\" ],\n [1807060035,1807060,\"NEGARA SAKTI\" ],\n [1807060036,1807060,\"NEGARA RATU\" ],\n [1807060037,1807060,\"RUMBIH\" ],\n [1807060038,1807060,\"GUNUNG WARAS\" ],\n [1807060039,1807060,\"GUNUNG CAHYA\" ],\n [1807060040,1807060,\"PAKUAN RATU\" ],\n [1807060041,1807060,\"KARANG AGUNG\" ],\n [1807061001,1807061,\"SETIA NEGARA\" ],\n [1807061002,1807061,\"PURWA AGUNG\" ],\n [1807061003,1807061,\"SRI MULYO\" ],\n [1807061004,1807061,\"SRI MENANTI\" ],\n [1807061005,1807061,\"NEGARA BATIN\" ],\n [1807061006,1807061,\"PURWA NEGARA\" ],\n [1807061007,1807061,\"MARGA JAYA\" ],\n [1807061008,1807061,\"KARTA JAYA\" ],\n [1807061009,1807061,\"GEDONG JAYA\" ],\n [1807061010,1807061,\"ADI JAYA\" ],\n [1807061011,1807061,\"SARI JAYA\" ],\n [1807061012,1807061,\"GISTING JAYA\" ],\n [1807061013,1807061,\"BUMI JAYA\" ],\n [1807061014,1807061,\"NEGARA MULYA\" ],\n [1807061015,1807061,\"KOTA JAWA\" ],\n [1807062001,1807062,\"SRI BASUKI\" ],\n [1807062002,1807062,\"NEGARA JAYA\" ],\n [1807062003,1807062,\"BIMA SAKTI\" ],\n [1807062004,1807062,\"TEGAL MUKTI\" ],\n [1807062005,1807062,\"PAGAR IMAN\" ],\n [1807062006,1807062,\"KALIAWI\" ],\n [1807062007,1807062,\"NEGERI BESAR\" ],\n [1807062008,1807062,\"TIUH BARU\" ],\n [1807062009,1807062,\"KILING KILING\" ],\n [1807062010,1807062,\"KALIAWI INDAH\" ],\n [1807062011,1807062,\"NEGERI JAYA\" ],\n [1807062012,1807062,\"TANJUNG MAS\" ],\n [1807062013,1807062,\"NEGERI KASIH\" ],\n [1808030007,1808030,\"BANJAR AGUNG\" ],\n [1808030008,1808030,\"TUNGGAL WARGA\" ],\n [1808030009,1808030,\"DWI WARGA TUNGGAL JAYA\" ],\n [1808030010,1808030,\"MORIS JAYA\" ],\n [1808030011,1808030,\"TRI DHARMA WIRAJAYA\" ],\n [1808030012,1808030,\"TRI MULYA JAYA\" ],\n [1808030013,1808030,\"TRI MUKTI JAYA\" ],\n [1808030014,1808030,\"TRI TUNGGAL JAYA\" ],\n [1808030015,1808030,\"WARGA MAKMUR JAYA\" ],\n [1808030016,1808030,\"WARGA INDAH JAYA\" ],\n [1808030017,1808030,\"BANJAR DEWA\" ],\n [1808031001,1808031,\"RINGIN SARI\" ],\n [1808031002,1808031,\"CATUR KARYA BUANA JAYA\" ],\n [1808031003,1808031,\"BUJUK AGUNG\" ],\n [1808031004,1808031,\"SUKAMAJU\" ],\n [1808031005,1808031,\"PENAWAR JAYA\" ],\n [1808031006,1808031,\"PURWA JAYA\" ],\n [1808031007,1808031,\"AGUNG DALEM\" ],\n [1808031008,1808031,\"SUMBER MAKMUR\" ],\n [1808031009,1808031,\"TRI TUNGGAL JAYA\" ],\n [1808031010,1808031,\"AGUNG JAYA\" ],\n [1808031011,1808031,\"PENAWAR REJO\" ],\n [1808031012,1808031,\"MEKAR JAYA\" ],\n [1808032001,1808032,\"JAYA MAKMUR\" ],\n [1808032002,1808032,\"KAHURIPAN JAYA\" ],\n [1808032003,1808032,\"BAWANG SAKTI JAYA\" ],\n [1808032004,1808032,\"BAWANG TIRTO MULYO\" ],\n [1808032005,1808032,\"MEKAR INDAH JAYA\" ],\n [1808032006,1808032,\"MEKAR JAYA\" ],\n [1808032007,1808032,\"BALAI MURNI JAYA\" ],\n [1808032008,1808032,\"KARYA MURNI JAYA\" ],\n [1808032009,1808032,\"PANCA KARSA PURNA JAYA\" ],\n [1808032010,1808032,\"PANCA MULIA\" ],\n [1808040001,1808040,\"PENAWAR BARU\" ],\n [1808040002,1808040,\"GEDUNG AJI\" ],\n [1808040003,1808040,\"PENAWAR\" ],\n [1808040004,1808040,\"AJI JAYA KNPI\" ],\n [1808040005,1808040,\"KECUBUNG JAYA\" ],\n [1808040014,1808040,\"KECUBUNG MULYA\" ],\n [1808040015,1808040,\"AJI MURNI JAYA\" ],\n [1808040016,1808040,\"AJI MESIR\" ],\n [1808040017,1808040,\"AJI PERMAI TALANG BUAH\" ],\n [1808040018,1808040,\"BANDAR AJI JAYA\" ],\n [1808041001,1808041,\"SUMBER SARI\" ],\n [1808041002,1808041,\"KARYA MAKMUR\" ],\n [1808041003,1808041,\"PANCA TUNGGAL JAYA\" ],\n [1808041004,1808041,\"GEDUNG HARAPAN\" ],\n [1808041005,1808041,\"GEDUNG REJO SAKTI\" ],\n [1808041006,1808041,\"WONO REJO\" ],\n [1808041007,1808041,\"GEDUNG ASRI\" ],\n [1808041008,1808041,\"PASAR BATANG\" ],\n [1808041009,1808041,\"SUKA MAKMUR\" ],\n [1808042001,1808042,\"PADUAN RAJAWALI\" ],\n [1808042002,1808042,\"BANGUN REJO\" ],\n [1808042003,1808042,\"SUKARAME\" ],\n [1808042004,1808042,\"BINA BUMI\" ],\n [1808042005,1808042,\"KARYA BHAKTI\" ],\n [1808042006,1808042,\"KECUBUNG RAYA\" ],\n [1808042007,1808042,\"MARGA JAYA\" ],\n [1808042008,1808042,\"MULYO AJI\" ],\n [1808050001,1808050,\"BUJUNG TENUK\" ],\n [1808050002,1808050,\"ASTRA KSETRA\" ],\n [1808050005,1808050,\"UJUNG GUNUNG ILIR\" ],\n [1808050012,1808050,\"MENGGALA SELATAN\" ],\n [1808050013,1808050,\"UJUNG GUNUNG\" ],\n [1808050014,1808050,\"MENGGALA TENGAH\" ],\n [1808050015,1808050,\"MENGGALA KOTA\" ],\n [1808050016,1808050,\"KAGUNGAN RAHAYU\" ],\n [1808050017,1808050,\"TIUH TOHOU\" ],\n [1808051011,1808051,\"BOGA TAMA\" ],\n [1808051012,1808051,\"TRI REJO MULYO\" ],\n [1808051013,1808051,\"SIDOHARJO\" ],\n [1808051014,1808051,\"SIDOMULYO\" ],\n [1808051015,1808051,\"TRI JAYA\" ],\n [1808051016,1808051,\"TRI TUNGGAL JAYA\" ],\n [1808051017,1808051,\"WIRATAMA\" ],\n [1808051018,1808051,\"PULO GADUNG\" ],\n [1808051019,1808051,\"SIDODADI\" ],\n [1808051020,1808051,\"DWIMULYO\" ],\n [1808051021,1808051,\"REJO SARI\" ],\n [1808051022,1808051,\"WIRA AGUNG SARI\" ],\n [1808051023,1808051,\"SIDOMAKMUR\" ],\n [1808051024,1808051,\"TRIKARYA\" ],\n [1808052003,1808052,\"BUMI RATU\" ],\n [1808052004,1808052,\"HARGO REJO\" ],\n [1808052005,1808052,\"YUDHA KARYA JITU\" ],\n [1808052010,1808052,\"KARYA JITU MUKTI\" ],\n [1808052011,1808052,\"HARGO MULYO\" ],\n [1808052012,1808052,\"WONO AGUNG\" ],\n [1808052013,1808052,\"MEDASARI\" ],\n [1808052014,1808052,\"GEDUNG KARYA JITU\" ],\n [1808052015,1808052,\"KARYA CIPTA ABADI\" ],\n [1808053001,1808053,\"BAKUNG UDIK\" ],\n [1808053002,1808053,\"BAKUNG ILIR\" ],\n [1808053003,1808053,\"GUNUNG TAPA\" ],\n [1808053004,1808053,\"GEDUNG MENENG\" ],\n [1808053008,1808053,\"GEDUNG BANDAR RAHAYU\" ],\n [1808053009,1808053,\"GUNUNG TAPA ILIR\" ],\n [1808053010,1808053,\"GUNUNG TAPA TENGAH\" ],\n [1808053011,1808053,\"GUNUNG TAPA UDIK\" ],\n [1808053012,1808053,\"GEDUNG BANDAR REJO\" ],\n [1808053013,1808053,\"BAKUNG RAHAYU\" ],\n [1808053014,1808053,\"GEDUNG MENENG BARU\" ],\n [1808054001,1808054,\"BUMI DIPASENA SENTOSA\" ],\n [1808054002,1808054,\"BUMI DIPASENA UTAMA\" ],\n [1808054003,1808054,\"BUMI DIPASENA AGUNG\" ],\n [1808054004,1808054,\"BUMI DIPASENA JAYA\" ],\n [1808054005,1808054,\"BUMI DIPASENA MULYA\" ],\n [1808054006,1808054,\"BUMI DIPASENA MAKMUR\" ],\n [1808054007,1808054,\"BUMI DIPASENA SEJAHTERA\" ],\n [1808054008,1808054,\"BUMI DIPASENA ABADI\" ],\n [1808055001,1808055,\"RAWA RAGIL\" ],\n [1808055002,1808055,\"GEDUNG JAYA\" ],\n [1808055003,1808055,\"DUTO YOSO MULYO\" ],\n [1808055004,1808055,\"ANDALAS CERMIN\" ],\n [1808055005,1808055,\"PANGGUNG MULYO\" ],\n [1808055006,1808055,\"BATANG HARI\" ],\n [1808055007,1808055,\"SUMBER AGUNG\" ],\n [1808055008,1808055,\"BUMI SARI\" ],\n [1808055009,1808055,\"MULYO DADI\" ],\n [1808056001,1808056,\"BATU AMPAR\" ],\n [1808056002,1808056,\"SUKA BHAKTI\" ],\n [1808056003,1808056,\"SIDO MUKTI\" ],\n [1808056004,1808056,\"MAKARTI TAMA\" ],\n [1808056005,1808056,\"SETIA TAMA\" ],\n [1808056006,1808056,\"MESIR DWI JAYA\" ],\n [1808056007,1808056,\"SUMBER JAYA\" ],\n [1808056008,1808056,\"MEKAR ASRI\" ],\n [1808056009,1808056,\"SIDOMEKAR\" ],\n [1808057001,1808057,\"PASIRAN JAYA\" ],\n [1808057002,1808057,\"BRATASENA MANDIRI\" ],\n [1808057003,1808057,\"BRATASENA ADIWARNA\" ],\n [1808057004,1808057,\"SUNGAI NIBUNG\" ],\n [1808057005,1808057,\"MAHABANG\" ],\n [1808057006,1808057,\"KUALA TELADAS\" ],\n [1808057007,1808057,\"KEKATUNG\" ],\n [1808057008,1808057,\"TELADAS\" ],\n [1808057009,1808057,\"WAY DENTE\" ],\n [1808057010,1808057,\"DENTE MAKMUR\" ],\n [1808057011,1808057,\"PENDOWO ASRI\" ],\n [1808057012,1808057,\"SUNGAI BURUNG\" ],\n [1808058001,1808058,\"MENGGALA\" ],\n [1808058002,1808058,\"SUNGAI LUAR\" ],\n [1808058003,1808058,\"BEDAROU INDAH\" ],\n [1808058004,1808058,\"KIBANG\" ],\n [1808058005,1808058,\"CEMPAKA JAYA\" ],\n [1808058006,1808058,\"TRI MAKMUR JAYA\" ],\n [1808058007,1808058,\"KAHURIPAN DALAM\" ],\n [1808058008,1808058,\"LEBUH DALEM\" ],\n [1808058009,1808058,\"CEMPAKA DALAM\" ],\n [1808058010,1808058,\"LINGAI\" ],\n [1809010001,1809010,\"SUKAMAJU\" ],\n [1809010002,1809010,\"BAWANG\" ],\n [1809010003,1809010,\"PAGAR JAYA\" ],\n [1809010004,1809010,\"PULAU LEGUNDI\" ],\n [1809010005,1809010,\"SUKARAME\" ],\n [1809010006,1809010,\"KOTA JAWA\" ],\n [1809010007,1809010,\"RUSABA\" ],\n [1809010008,1809010,\"SUKAJAYA PIDADA\" ],\n [1809010009,1809010,\"BATU RAJA\" ],\n [1809010010,1809010,\"BANDING AGUNG\" ],\n [1809010021,1809010,\"BANGUN REJO\" ],\n [1809011001,1809011,\"KAMPUNGBARU\" ],\n [1809011002,1809011,\"KEKATANG\" ],\n [1809011003,1809011,\"PEKON AMPAI\" ],\n [1809011004,1809011,\"KUNYAIAN\" ],\n [1809011005,1809011,\"UMBUL LIMUS\" ],\n [1809011006,1809011,\"TAJUR\" ],\n [1809011007,1809011,\"PENYANDINGAN\" ],\n [1809011008,1809011,\"MAJA\" ],\n [1809011009,1809011,\"SUKA JAYA PUNDUH\" ],\n [1809011010,1809011,\"PULAU PAHAWANG\" ],\n [1809020021,1809020,\"SANGGI\" ],\n [1809020022,1809020,\"DURIAN\" ],\n [1809020023,1809020,\"BANJARAN\" ],\n [1809020030,1809020,\"WAY URANG\" ],\n [1809020031,1809020,\"PAYA\" ],\n [1809020032,1809020,\"TAMBANGAN\" ],\n [1809020033,1809020,\"HANAU BERAK\" ],\n [1809020034,1809020,\"PADANG CERMIN\" ],\n [1809020042,1809020,\"GAYAU\" ],\n [1809020043,1809020,\"TRIMULYO\" ],\n [1809020047,1809020,\"KHEPONG JAYA\" ],\n [1809021001,1809021,\"BATU MENYAN\" ],\n [1809021002,1809021,\"GEBANG\" ],\n [1809021003,1809021,\"SIDODADI\" ],\n [1809021004,1809021,\"HANURA\" ],\n [1809021005,1809021,\"CILIMUS\" ],\n [1809021006,1809021,\"HURUN\" ],\n [1809021007,1809021,\"SUKAJAYA LEMPASING\" ],\n [1809021008,1809021,\"MUNCA\" ],\n [1809021009,1809021,\"TANJUNG AGUNG\" ],\n [1809021010,1809021,\"TALANG MULYO\" ],\n [1809022001,1809022,\"SUMBER JAYA\" ],\n [1809022002,1809022,\"BUNUT SEBERANG\" ],\n [1809022003,1809022,\"CERINGIN ASRI\" ],\n [1809022004,1809022,\"PONCOREJO\" ],\n [1809022005,1809022,\"GUNUNG REJO\" ],\n [1809022006,1809022,\"MULYOSARI\" ],\n [1809022007,1809022,\"WATES WAY RATAI\" ],\n [1809022008,1809022,\"BUNUT\" ],\n [1809022009,1809022,\"PESAWARAN INDAH\" ],\n [1809022010,1809022,\"HARAPAN JAYA\" ],\n [1809030010,1809030,\"SUKAMAJU\" ],\n [1809030011,1809030,\"WAYKEPAYANG\" ],\n [1809030012,1809030,\"KEDONDONG\" ],\n [1809030013,1809030,\"SINAR HARAPAN\" ],\n [1809030014,1809030,\"TEMPEL REJO\" ],\n [1809030015,1809030,\"PASAR BARU\" ],\n [1809030016,1809030,\"KERTA SANA\" ],\n [1809030017,1809030,\"GUNUNG SUGIH\" ],\n [1809030032,1809030,\"BABAKAN LOA\" ],\n [1809030033,1809030,\"PESAWARAN\" ],\n [1809030034,1809030,\"TEBAJAWA\" ],\n [1809030035,1809030,\"HARAPAN JAYA\" ],\n [1809031001,1809031,\"BAYAS JAYA\" ],\n [1809031002,1809031,\"PADANG CERMIN\" ],\n [1809031003,1809031,\"SUKAJAYA\" ],\n [1809031004,1809031,\"PENENGAHAN\" ],\n [1809031005,1809031,\"TANJUNG KERTA\" ],\n [1809031006,1809031,\"KOTAJAWA\" ],\n [1809031007,1809031,\"MADA JAYA\" ],\n [1809031008,1809031,\"GUNUNGSARI\" ],\n [1809031009,1809031,\"KUBU BATU\" ],\n [1809031010,1809031,\"TANJUNG REJO\" ],\n [1809040001,1809040,\"GUNUNGREJO\" ],\n [1809040002,1809040,\"CIMANUK\" ],\n [1809040003,1809040,\"SUKAMANDI\" ],\n [1809040004,1809040,\"WAY HARONG\" ],\n [1809040005,1809040,\"MARGODADI\" ],\n [1809040006,1809040,\"TANJUNG AGUNG\" ],\n [1809040007,1809040,\"KOTADALAM\" ],\n [1809040008,1809040,\"BATURAJA\" ],\n [1809040009,1809040,\"SINDANG GARUT\" ],\n [1809040010,1809040,\"SIDODADI\" ],\n [1809040011,1809040,\"GEDUNG DALAM\" ],\n [1809040012,1809040,\"PEKONDOH\" ],\n [1809040013,1809040,\"PEKONDOH GEDUNG\" ],\n [1809040014,1809040,\"BANJAR NEGERI\" ],\n [1809040015,1809040,\"PADANG MANIS\" ],\n [1809040016,1809040,\"PAGUYUBAN\" ],\n [1809050001,1809050,\"PADANG RATU\" ],\n [1809050002,1809050,\"CIPADANG\" ],\n [1809050003,1809050,\"PAMPANGAN\" ],\n [1809050004,1809050,\"WAYLAYAP\" ],\n [1809050005,1809050,\"SUKADADI\" ],\n [1809050006,1809050,\"BOGOREJO\" ],\n [1809050007,1809050,\"SUKARAJA\" ],\n [1809050008,1809050,\"GEDUNG TATAAN\" ],\n [1809050009,1809050,\"KUTOARJO\" ],\n [1809050010,1809050,\"KARANG ANYAR\" ],\n [1809050011,1809050,\"BAGELEN\" ],\n [1809050012,1809050,\"KEBAGUSAN\" ],\n [1809050013,1809050,\"WIYONO\" ],\n [1809050014,1809050,\"TAMANSARI\" ],\n [1809050015,1809050,\"BERNUNG\" ],\n [1809050016,1809050,\"SUNGAI LANGKA\" ],\n [1809050017,1809050,\"NEGERI SAKTI\" ],\n [1809050018,1809050,\"KURUNGANNYAWA\" ],\n [1809050019,1809050,\"SUKABANJAR\" ],\n [1809060001,1809060,\"PURWOREJO\" ],\n [1809060002,1809060,\"KAGUNGANRATU\" ],\n [1809060003,1809060,\"PUJORAHAYU\" ],\n [1809060004,1809060,\"KALIREJO\" ],\n [1809060005,1809060,\"TANJUNG REJO\" ],\n [1809060006,1809060,\"NEGERIKATUN\" ],\n [1809060007,1809060,\"NEGARASAKA\" ],\n [1809060008,1809060,\"PEJAMBON\" ],\n [1809060009,1809060,\"HALANGAN RATU\" ],\n [1809060010,1809060,\"TRISNO MAJU\" ],\n [1809060011,1809060,\"LUMBI REJO\" ],\n [1809060012,1809060,\"ROWOREJO\" ],\n [1809060013,1809060,\"SIDOMULYO\" ],\n [1809060014,1809060,\"PONCOKRESNO\" ],\n [1809060015,1809060,\"TRI RAHAYU\" ],\n [1809060016,1809060,\"SINARBANDUNG\" ],\n [1809060017,1809060,\"BANGUN SARI\" ],\n [1809060018,1809060,\"KARANGREJO\" ],\n [1809060019,1809060,\"NEGERI ULANGAN JAYA\" ],\n [1809070001,1809070,\"KRESNO WIDODO\" ],\n [1809070002,1809070,\"GEDUNG GUMANTI\" ],\n [1809070003,1809070,\"KEJADIAN\" ],\n [1809070004,1809070,\"BUMIAGUNG\" ],\n [1809070005,1809070,\"BATANG HARI OGAN\" ],\n [1809070006,1809070,\"REJOAGUNG\" ],\n [1809070007,1809070,\"KOTA AGUNG\" ],\n [1809070008,1809070,\"NEGARA RATUWATES\" ],\n [1809070009,1809070,\"GUNUNG SUGIH BARU\" ],\n [1809070010,1809070,\"MARGO MULYO\" ],\n [1809070011,1809070,\"TRIMULYO\" ],\n [1809070012,1809070,\"SINAR JATI\" ],\n [1809070013,1809070,\"MARGO REJO\" ],\n [1809070014,1809070,\"GERNING\" ],\n [1809070015,1809070,\"PANCA BAKTI\" ],\n [1809070016,1809070,\"SRIWEDARI\" ],\n [1810010004,1810010,\"SELAPAN\" ],\n [1810010005,1810010,\"KEDAUNG\" ],\n [1810010006,1810010,\"SUKA NEGERI\" ],\n [1810010007,1810010,\"RANTAU TIJANG\" ],\n [1810010008,1810010,\"PARDASUKA\" ],\n [1810010009,1810010,\"TANJUNG RUSIA\" ],\n [1810010013,1810010,\"WARGO MULYO\" ],\n [1810010014,1810010,\"PUJODADI\" ],\n [1810010015,1810010,\"SUKOREJO\" ],\n [1810010018,1810010,\"SIDODADI\" ],\n [1810010019,1810010,\"PARDASUKA TIMUR\" ],\n [1810010020,1810010,\"TANJUNG RUSIA TIMUR\" ],\n [1810010021,1810010,\"PARDASUKA SELATAN\" ],\n [1810020001,1810020,\"KRESNOMULYO\" ],\n [1810020002,1810020,\"SUMBER AGUNG\" ],\n [1810020003,1810020,\"AMBARAWA\" ],\n [1810020004,1810020,\"AMBARAWA BARAT\" ],\n [1810020005,1810020,\"TANJUNG ANOM\" ],\n [1810020006,1810020,\"JATI AGUNG\" ],\n [1810020007,1810020,\"MARGODADI\" ],\n [1810020008,1810020,\"AMBARAWA TIMUR\" ],\n [1810030001,1810030,\"CANDI RETNO\" ],\n [1810030002,1810030,\"TANJUNG DALAM\" ],\n [1810030003,1810030,\"WAY NGISOM\" ],\n [1810030004,1810030,\"KARANGSARI\" ],\n [1810030005,1810030,\"GUMUK MAS\" ],\n [1810030006,1810030,\"PATOMAN\" ],\n [1810030007,1810030,\"PAGELARAN\" ],\n [1810030008,1810030,\"SUKARATU\" ],\n [1810030009,1810030,\"SUKAWANGI\" ],\n [1810030010,1810030,\"LUGUSARI\" ],\n [1810030011,1810030,\"PANUTAN\" ],\n [1810030012,1810030,\"BUMI RATU\" ],\n [1810030019,1810030,\"GEMAH RIPAH\" ],\n [1810030020,1810030,\"PAMENANG\" ],\n [1810030023,1810030,\"PASIR UKIR\" ],\n [1810030024,1810030,\"GUMUK REJO\" ],\n [1810030027,1810030,\"PUJI HARJO\" ],\n [1810030028,1810030,\"PADANG REJO\" ],\n [1810030029,1810030,\"SIDODADI\" ],\n [1810030030,1810030,\"SUMBER REJO\" ],\n [1810030031,1810030,\"GANJARAN\" ],\n [1810030032,1810030,\"BUMI REJO\" ],\n [1810031013,1810031,\"FAJAR BARU\" ],\n [1810031014,1810031,\"KEMILIN\" ],\n [1810031015,1810031,\"NEGLASARI\" ],\n [1810031016,1810031,\"SUMBER BANDUNG\" ],\n [1810031017,1810031,\"GIRI TUNGGAL\" ],\n [1810031018,1810031,\"MARGOSARI\" ],\n [1810031021,1810031,\"FAJAR MULIA\" ],\n [1810031022,1810031,\"MADARAYA\" ],\n [1810031025,1810031,\"GUNUNG RAYA\" ],\n [1810031026,1810031,\"WAY KUNIR\" ],\n [1810040007,1810040,\"MARGAKAYA\" ],\n [1810040008,1810040,\"WALUYOJATI\" ],\n [1810040009,1810040,\"PAJAR ESUK\" ],\n [1810040011,1810040,\"SIDOHARJO\" ],\n [1810040012,1810040,\"PODOMORO\" ],\n [1810040013,1810040,\"BUMI ARUM\" ],\n [1810040015,1810040,\"PAJAR AGUNG\" ],\n [1810040016,1810040,\"PRINGSEWU UTARA\" ],\n [1810040017,1810040,\"PRINGSEWU SELATAN\" ],\n [1810040018,1810040,\"PRINGSEWU BARAT\" ],\n [1810040019,1810040,\"PRINGSEWU TIMUR\" ],\n [1810040020,1810040,\"REJOSARI\" ],\n [1810040021,1810040,\"BUMI AYU\" ],\n [1810040022,1810040,\"PODOSARI\" ],\n [1810040023,1810040,\"FAJAR AGUNG BARAT\" ],\n [1810050001,1810050,\"PAREREJO\" ],\n [1810050002,1810050,\"BLITAREJO\" ],\n [1810050003,1810050,\"PANJEREJO\" ],\n [1810050004,1810050,\"BULUKARTO\" ],\n [1810050005,1810050,\"WATES\" ],\n [1810050006,1810050,\"BULUREJO\" ],\n [1810050007,1810050,\"TAMBAK REJO\" ],\n [1810050008,1810050,\"WONODADI\" ],\n [1810050009,1810050,\"GADING REJO\" ],\n [1810050010,1810050,\"TEGALSARI\" ],\n [1810050011,1810050,\"TULUNG AGUNG\" ],\n [1810050012,1810050,\"JOGYAKARTA\" ],\n [1810050013,1810050,\"KEDIRI\" ],\n [1810050014,1810050,\"MATARAM\" ],\n [1810050015,1810050,\"WONOSARI\" ],\n [1810050016,1810050,\"KLATEN\" ],\n [1810050017,1810050,\"WATES TIMUR\" ],\n [1810050018,1810050,\"WATES SELATAN\" ],\n [1810050019,1810050,\"GADING REJO TIMUR\" ],\n [1810050020,1810050,\"GADING REJO UTARA\" ],\n [1810050021,1810050,\"TAMBAH REJO BARAT\" ],\n [1810050022,1810050,\"YOGYAKARTA SELATAN\" ],\n [1810050023,1810050,\"WONODADI UTARA\" ],\n [1810060002,1810060,\"SINAR BARU\" ],\n [1810060003,1810060,\"SUKOHARJO I\" ],\n [1810060004,1810060,\"SUKOHARJO II\" ],\n [1810060005,1810060,\"SUKOHARJO IV\" ],\n [1810060006,1810060,\"PANGGUNG REJO\" ],\n [1810060007,1810060,\"PANDANSARI\" ],\n [1810060008,1810060,\"PANDAN SURAT\" ],\n [1810060009,1810060,\"SUKOHARJO III\" ],\n [1810060010,1810060,\"KEPUTRAN\" ],\n [1810060011,1810060,\"SUKOYOSO\" ],\n [1810060012,1810060,\"SILIWANGI\" ],\n [1810060022,1810060,\"WARINGINSARI BARAT\" ],\n [1810060023,1810060,\"PANDANSARI SELATAN\" ],\n [1810060024,1810060,\"SINAR BARU TIMUR\" ],\n [1810060025,1810060,\"PANGGUNG REJO UTARA\" ],\n [1810060026,1810060,\"SUKOHARJO III BARAT\" ],\n [1810070001,1810070,\"WAYA KRUI\" ],\n [1810070002,1810070,\"SRI RAHAYU\" ],\n [1810070003,1810070,\"NUSA WUNGU\" ],\n [1810070004,1810070,\"SUKAMULYA\" ],\n [1810070005,1810070,\"BANJAREJO\" ],\n [1810070006,1810070,\"SRIWUNGU\" ],\n [1810070007,1810070,\"BANYUWANGI\" ],\n [1810070008,1810070,\"BANYUMAS\" ],\n [1810070009,1810070,\"SINAR MULIA\" ],\n [1810070010,1810070,\"MULYOREJO\" ],\n [1810070011,1810070,\"BANYU URIP\" ],\n [1810080004,1810080,\"SINAR WAYA\" ],\n [1810080005,1810080,\"BANDUNG BARU\" ],\n [1810080006,1810080,\"WARINGINSARI TIMUR\" ],\n [1810080007,1810080,\"TRITUNGGAL MULYA\" ],\n [1810080008,1810080,\"ENGGAL REJO\" ],\n [1810080009,1810080,\"SUKOHARUM\" ],\n [1810080010,1810080,\"ADI LUWIH\" ],\n [1810080011,1810080,\"PURWODADI\" ],\n [1810080012,1810080,\"SRIKATON\" ],\n [1810080013,1810080,\"TUNGGUL PAWENANG\" ],\n [1810080014,1810080,\"BANDUNG BARU BARAT\" ],\n [1810080015,1810080,\"TOTO KARTO\" ],\n [1810080016,1810080,\"KUTA WARINGIN\" ],\n [1811010001,1811010,\"BUMI HARAPAN\" ],\n [1811010002,1811010,\"BUKO POSO\" ],\n [1811010003,1811010,\"HADI MULYO\" ],\n [1811010004,1811010,\"GEDUNG BOGA/RAJA\" ],\n [1811010005,1811010,\"SUKA AGUNG\" ],\n [1811010006,1811010,\"REJO MULYO\" ],\n [1811010007,1811010,\"LABUHAN BARU\" ],\n [1811010008,1811010,\"PANCA WARNA\" ],\n [1811010009,1811010,\"KEBUN DALAM\" ],\n [1811010010,1811010,\"KEJADIAN\" ],\n [1811010011,1811010,\"LABUHAN BATIN\" ],\n [1811010012,1811010,\"LABUHAN MAKMUR\" ],\n [1811010013,1811010,\"GEDUNG SRI MULYO\" ],\n [1811010014,1811010,\"LABUHAN PERMAI\" ],\n [1811010015,1811010,\"SUMBER REJO\" ],\n [1811010016,1811010,\"MARGO BHAKTI\" ],\n [1811010017,1811010,\"LABUHAN MULYA\" ],\n [1811010018,1811010,\"KARANG MULYA\" ],\n [1811010019,1811010,\"TRI TUNGGAL JAYA\" ],\n [1811010020,1811010,\"SUKA MANDIRI\" ],\n [1811020005,1811020,\"BUDI AJI\" ],\n [1811020006,1811020,\"SIMPANG PEMATANG\" ],\n [1811020007,1811020,\"HARAPAN JAYA\" ],\n [1811020008,1811020,\"MARGO RAHAYU\" ],\n [1811020009,1811020,\"WIRA BANGUN\" ],\n [1811020021,1811020,\"AGUNG BATIN\" ],\n [1811020022,1811020,\"BANGUN MULYO\" ],\n [1811020023,1811020,\"JAYA SAKTI\" ],\n [1811020024,1811020,\"REJO BINANGUN\" ],\n [1811020025,1811020,\"SIMPANG MESUJI\" ],\n [1811020026,1811020,\"MARGO MAKMUR\" ],\n [1811020027,1811020,\"AJI JAYA\" ],\n [1811020028,1811020,\"MULYA AGUNG\" ],\n [1811030001,1811030,\"MUKTI KARYA\" ],\n [1811030002,1811030,\"ADI LUHUR\" ],\n [1811030003,1811030,\"FAJAR BARU\" ],\n [1811030004,1811030,\"ADI MULYO\" ],\n [1811030005,1811030,\"FAJAR ASRI\" ],\n [1811030006,1811030,\"FAJAR INDAH\" ],\n [1811030007,1811030,\"ADI KARYA MULYA\" ],\n [1811040001,1811040,\"MUARA TENANG\" ],\n [1811040002,1811040,\"BRABASAN\" ],\n [1811040003,1811040,\"GEDUNG RAM\" ],\n [1811040004,1811040,\"MEKAR SARI\" ],\n [1811040005,1811040,\"SINAR LAGA\" ],\n [1811040006,1811040,\"WIRA JAYA\" ],\n [1811040007,1811040,\"BANGUN JAYA\" ],\n [1811040008,1811040,\"BUJUNG BURING\" ],\n [1811040009,1811040,\"HARAPAN MUKTI\" ],\n [1811040010,1811040,\"TRI KARYA MULYA\" ],\n [1811040011,1811040,\"TANJUNG SARI\" ],\n [1811040012,1811040,\"KAGUNGAN DALAM\" ],\n [1811040013,1811040,\"SRI TANJUNG\" ],\n [1811040014,1811040,\"BERASAN MAKMUR\" ],\n [1811040015,1811040,\"MEKAR JAYA\" ],\n [1811040016,1811040,\"GEDUNG MULYA\" ],\n [1811040017,1811040,\"TANJUNG HARAPAN\" ],\n [1811040018,1811040,\"MUARA TENANG TIMUR\" ],\n [1811040019,1811040,\"SRIWIJAYA\" ],\n [1811040020,1811040,\"MUKTI JAYA\" ],\n [1811040021,1811040,\"BUJUNG BURING BARU\" ],\n [1811050003,1811050,\"TIRTA LAGA\" ],\n [1811050020,1811050,\"WIRALAGA I\" ],\n [1811050021,1811050,\"WIRALAGA II\" ],\n [1811050022,1811050,\"TANJUNG SERAYAN\" ],\n [1811050040,1811050,\"NIPAH KUNING\" ],\n [1811050043,1811050,\"SUNGAI BADAK\" ],\n [1811050044,1811050,\"SIDOMULYO\" ],\n [1811050047,1811050,\"SUMBER MAKMUR\" ],\n [1811050048,1811050,\"MULYA SARI\" ],\n [1811050049,1811050,\"WIRALAGA MULYA\" ],\n [1811050050,1811050,\"SUKA MAJU\" ],\n [1811060001,1811060,\"PANGKAL MAS MULYA\" ],\n [1811060002,1811060,\"PANGKAL MAS JAYA\" ],\n [1811060003,1811060,\"TANJUNG MAS MAKMUR\" ],\n [1811060004,1811060,\"MUARA MAS\" ],\n [1811060005,1811060,\"TANJUNG MAS MULYA\" ],\n [1811060006,1811060,\"TANJUNG MAS JAYA\" ],\n [1811060007,1811060,\"WONOSARI\" ],\n [1811060008,1811060,\"DWI KARYA MUSTIKA\" ],\n [1811060009,1811060,\"EKA MULYA\" ],\n [1811060010,1811060,\"MARGA JADI\" ],\n [1811060011,1811060,\"TANJUNG MENANG\" ],\n [1811060012,1811060,\"TALANG BATU\" ],\n [1811060013,1811060,\"SUNGAI CAMBAI\" ],\n [1811060014,1811060,\"MARGO JAYA\" ],\n [1811060015,1811060,\"PANGKAL MAS\" ],\n [1811060016,1811060,\"TANJUNG MENANG RAYA\" ],\n [1811060017,1811060,\"TEBING KARYA MANDIRI\" ],\n [1811060018,1811060,\"TANJUNG MAS REJO\" ],\n [1811060019,1811060,\"MARGO MULYO\" ],\n [1811060020,1811060,\"MUARA ASRI\" ],\n [1811070001,1811070,\"SIDANG GUNUNG TIGA\" ],\n [1811070002,1811070,\"SIDANG BANDAR ANOM\" ],\n [1811070003,1811070,\"SIDANG KURNIA AGUNG\" ],\n [1811070004,1811070,\"SIDANG ISO MUKTI\" ],\n [1811070005,1811070,\"SIDANG SIDO RAHAYU\" ],\n [1811070006,1811070,\"SIDANG WAY PUJI\" ],\n [1811070007,1811070,\"PANGGUNG JAYA\" ],\n [1811070008,1811070,\"TLOGO REJO\" ],\n [1811070009,1811070,\"PANGGUNG REJO\" ],\n [1811070010,1811070,\"SUNGAI BUAYA\" ],\n [1811070011,1811070,\"SUNGAI SIDANG\" ],\n [1811070012,1811070,\"SIDANG MUARA JAYA\" ],\n [1811070013,1811070,\"SIDANG MAKMUR\" ],\n [1812010010,1812010,\"MARGA KENCANA\" ],\n [1812010011,1812010,\"KAGUNGAN RATU\" ],\n [1812010012,1812010,\"KARTA RAHARJA\" ],\n [1812010013,1812010,\"WAY SIDO\" ],\n [1812010014,1812010,\"KARTA SARI\" ],\n [1812010015,1812010,\"KARTA\" ],\n [1812010016,1812010,\"GUNUNG KATUN MALAY\" ],\n [1812010017,1812010,\"GUNUNG KATUN TANJUNGAN\" ],\n [1812010018,1812010,\"GEDUNG RATU\" ],\n [1812020001,1812020,\"GUNUNG MENANTI\" ],\n [1812020002,1812020,\"MARGO DADI\" ],\n [1812020003,1812020,\"MURNI JAYA\" ],\n [1812020004,1812020,\"MARGO MULYO\" ],\n [1812020005,1812020,\"DAYA ASRI\" ],\n [1812020006,1812020,\"DAYA MURNI\" ],\n [1812020007,1812020,\"DAYA SAKTI\" ],\n [1812020008,1812020,\"MAKARTI\" ],\n [1812020009,1812020,\"SUMBER REJO\" ],\n [1812020010,1812020,\"GUNUNG TIMBUL\" ],\n [1812030001,1812030,\"MULYA ASRI\" ],\n [1812030002,1812030,\"CANDRA KENCANA\" ],\n [1812030003,1812030,\"MULYA KENCANA\" ],\n [1812030004,1812030,\"PULUNG KENCANA\" ],\n [1812030005,1812030,\"TIRTA KENCANA\" ],\n [1812030006,1812030,\"PANARAGAN JAYA\" ],\n [1812030007,1812030,\"PENUMANGAN\" ],\n [1812030008,1812030,\"PENUMANGAN BARU\" ],\n [1812030009,1812030,\"PANARAGAN\" ],\n [1812030010,1812030,\"BANDAR DEWA\" ],\n [1812030011,1812030,\"MENGGALA MAS\" ],\n [1812030013,1812030,\"TUNAS ASRI\" ],\n [1812030014,1812030,\"WONOKERTO\" ],\n [1812030015,1812030,\"PANARAGAN JAYA UTAMA\" ],\n [1812030016,1812030,\"PANARAGAN JAYA INDAH\" ],\n [1812030017,1812030,\"MULYA JAYA\" ],\n [1812030018,1812030,\"TIRTA MAKMUR\" ],\n [1812030019,1812030,\"CANDRA MUKTI\" ],\n [1812030020,1812030,\"CANDRA JAYA\" ],\n [1812040001,1812040,\"PAGAR DEWA\" ],\n [1812040002,1812040,\"BUJUNG DEWA\" ],\n [1812040003,1812040,\"BUJUNG SARI MARGA\" ],\n [1812040004,1812040,\"PAGAR DEWA SUKA MULYA\" ],\n [1812040005,1812040,\"CAHYOU RANDU\" ],\n [1812040006,1812040,\"MARGA JAYA INDAH\" ],\n [1812050001,1812050,\"LESUNG BAKTI JAYA\" ],\n [1812050002,1812050,\"MEKAR SARI JAYA\" ],\n [1812050003,1812050,\"PAGAR JAYA\" ],\n [1812050004,1812050,\"SUMBER REJO\" ],\n [1812050005,1812050,\"GUNUNG SARI\" ],\n [1812050006,1812050,\"KIBANG BUDI JAYA\" ],\n [1812050007,1812050,\"KIBANG YEKTI JAYA\" ],\n [1812050008,1812050,\"KIBANG TRI JAYA\" ],\n [1812050009,1812050,\"GILANG TUNGGAL MAKARTA\" ],\n [1812050010,1812050,\"KIBANG MULYA JAYA\" ],\n [1812060001,1812060,\"MARGA SARI\" ],\n [1812060002,1812060,\"GUNUNG TERANG\" ],\n [1812060003,1812060,\"GUNUNG AGUNG\" ],\n [1812060004,1812060,\"PANCA MARGA\" ],\n [1812060005,1812060,\"TOTO WONODADI\" ],\n [1812060006,1812060,\"TOTO KATON\" ],\n [1812060007,1812060,\"MARGA MULYO\" ],\n [1812060008,1812060,\"TOTO MULYO\" ],\n [1812060009,1812060,\"SETIA BUMI\" ],\n [1812060011,1812060,\"SAKTI JAYA\" ],\n [1812060012,1812060,\"KAGUNGAN JAYA\" ],\n [1812060013,1812060,\"TERANG MULYA\" ],\n [1812060014,1812060,\"TERANG BUMI AGUNG\" ],\n [1812060015,1812060,\"SIDO MAKMUR\" ],\n [1812060016,1812060,\"SETIA AGUNG\" ],\n [1812060017,1812060,\"MARGO DADI\" ],\n [1812060018,1812060,\"MULYO JADI\" ],\n [1812060019,1812060,\"MULYO SARI\" ],\n [1812060020,1812060,\"TOTO MAKMUR\" ],\n [1812060021,1812060,\"TERANG MAKMUR\" ],\n [1812070001,1812070,\"MARGA JAYA\" ],\n [1812070002,1812070,\"MEKAR JAYA\" ],\n [1812070003,1812070,\"SUKA JAYA\" ],\n [1812070004,1812070,\"MULYA JAYA\" ],\n [1812070005,1812070,\"WONO REJO\" ],\n [1812070006,1812070,\"SUMBER JAYA\" ],\n [1812070007,1812070,\"BANGUN JAYA\" ],\n [1812070008,1812070,\"TUNAS JAYA\" ],\n [1812070009,1812070,\"JAYA MURNI\" ],\n [1812070010,1812070,\"TRI TUNGGAL JAYA\" ],\n [1812070011,1812070,\"MULYA SARI\" ],\n [1812070012,1812070,\"DWIKORA JAYA\" ],\n [1812070013,1812070,\"SUMBER REJEKI\" ],\n [1812080001,1812080,\"AGUNG JAYA\" ],\n [1812080002,1812080,\"MERCU BUANA\" ],\n [1812080003,1812080,\"BALAM JAYA\" ],\n [1812080004,1812080,\"INDRALOKA II\" ],\n [1812080005,1812080,\"PAGAR BUANA\" ],\n [1812080006,1812080,\"INDRALOKA I\" ],\n [1812080007,1812080,\"BALAM ASRI\" ],\n [1812080008,1812080,\"INDRALOKA MUKTI\" ],\n [1812080009,1812080,\"INDRALOKA JAYA\" ],\n [1813010001,1813010,\"WAY BATANG\" ],\n [1813010002,1813010,\"PARDA HAGA\" ],\n [1813010003,1813010,\"TANJUNG SAKTI\" ],\n [1813010004,1813010,\"TANJUNG JATI\" ],\n [1813010005,1813010,\"RATA AGUNG\" ],\n [1813010006,1813010,\"LEMONG\" ],\n [1813010007,1813010,\"CAHAYA NEGERI\" ],\n [1813010008,1813010,\"SUKA MULYA\" ],\n [1813010009,1813010,\"MALAYA\" ],\n [1813010010,1813010,\"BAMBANG\" ],\n [1813010011,1813010,\"PAGAR DALAM\" ],\n [1813010012,1813010,\"BANDAR PUGUNG\" ],\n [1813010013,1813010,\"PENENGAHAN\" ],\n [1813020001,1813020,\"WALUR\" ],\n [1813020002,1813020,\"PADANG RINDU\" ],\n [1813020003,1813020,\"KURIPAN\" ],\n [1813020004,1813020,\"NEGERI RATU\" ],\n [1813020005,1813020,\"KERBANG LANGGAR\" ],\n [1813020006,1813020,\"KERBANG DALAM\" ],\n [1813020007,1813020,\"BALAM\" ],\n [1813020008,1813020,\"WAY NARTA\" ],\n [1813020009,1813020,\"KOTA KARANG\" ],\n [1813020010,1813020,\"BATURAJA\" ],\n [1813020011,1813020,\"GEDAU\" ],\n [1813020012,1813020,\"PEMANCAR\" ],\n [1813030001,1813030,\"SUKAMARGA\" ],\n [1813030002,1813030,\"PEKON LOK\" ],\n [1813030003,1813030,\"BANDAR DALAM\" ],\n [1813030004,1813030,\"PASAR PULAU PISANG\" ],\n [1813030005,1813030,\"SUKADANA\" ],\n [1813030006,1813030,\"LABUHAN\" ],\n [1813040001,1813040,\"TEMBAKAK WAY SINDI\" ],\n [1813040002,1813040,\"WAY SINDI UTARA\" ],\n [1813040003,1813040,\"ASAHAN WAY SINDI\" ],\n [1813040004,1813040,\"WAY SINDI HANUAN\" ],\n [1813040005,1813040,\"WAY SINDI\" ],\n [1813040006,1813040,\"KEBUAYAN\" ],\n [1813040007,1813040,\"WAY NUKAK\" ],\n [1813040008,1813040,\"LAAY\" ],\n [1813040009,1813040,\"PENGGAWA LIMA ULU\" ],\n [1813040010,1813040,\"PENENGAHAN\" ],\n [1813040011,1813040,\"PENGGAWA LIMA TENGAH\" ],\n [1813040012,1813040,\"MENYANCANG\" ],\n [1813050001,1813050,\"BUMIWARAS\" ],\n [1813050002,1813050,\"PAJAR BULAN\" ],\n [1813050003,1813050,\"PENGGAWA LIMA\" ],\n [1813050004,1813050,\"PENGGAWA LIMA ILIR\" ],\n [1813050005,1813050,\"BANJAR AGUNG\" ],\n [1813050006,1813050,\"SUKA BARU\" ],\n [1813050007,1813050,\"ULU KRUI\" ],\n [1813050008,1813050,\"GUNUNG KEMALA\" ],\n [1813050009,1813050,\"LABUHAN MANDI\" ],\n [1813050010,1813050,\"GUNUNG KEMALA TIMUR\" ],\n [1813060001,1813060,\"WAY REDAK\" ],\n [1813060002,1813060,\"SERAY\" ],\n [1813060003,1813060,\"RAWAS\" ],\n [1813060004,1813060,\"KAMPUNG JAWA\" ],\n [1813060005,1813060,\"PASAR KRUI\" ],\n [1813060006,1813060,\"PASAR KOTA KRUI\" ],\n [1813060007,1813060,\"SUKANEGARA\" ],\n [1813060008,1813060,\"PAHMUNGAN\" ],\n [1813070001,1813070,\"WALUR\" ],\n [1813070002,1813070,\"PEMERIHAN\" ],\n [1813070003,1813070,\"LINTIK\" ],\n [1813070004,1813070,\"SUKA JADI\" ],\n [1813070005,1813070,\"PADANG HALUAN\" ],\n [1813070006,1813070,\"WAY NAPAL\" ],\n [1813070007,1813070,\"WAY SULUH\" ],\n [1813070008,1813070,\"PADANG RAYA\" ],\n [1813070009,1813070,\"BALAI KENCANA\" ],\n [1813070010,1813070,\"MANDIRI SEJATI\" ],\n [1813080001,1813080,\"MARANG\" ],\n [1813080002,1813080,\"TANJUNG RAYA\" ],\n [1813080003,1813080,\"BANGUN NEGARA\" ],\n [1813080004,1813080,\"WAY JAMBU\" ],\n [1813080005,1813080,\"PAKU NEGARA\" ],\n [1813080006,1813080,\"ULOK MANIK\" ],\n [1813080007,1813080,\"BIHA\" ],\n [1813080008,1813080,\"TANJUNG SETIA\" ],\n [1813080009,1813080,\"SUMUR JAYA\" ],\n [1813080010,1813080,\"PAGAR DALAM\" ],\n [1813080011,1813080,\"TANJUNG JATI\" ],\n [1813080012,1813080,\"PELITA JAYA\" ],\n [1813080013,1813080,\"SUKARAME\" ],\n [1813080014,1813080,\"NEGERI RATU TENUMBANG\" ],\n [1813080015,1813080,\"TULUNG BAMBAN\" ],\n [1813090001,1813090,\"GEDUNG CAHYA KUNINGAN\" ],\n [1813090002,1813090,\"SUKA BANJAR\" ],\n [1813090003,1813090,\"SUKA NEGARA\" ],\n [1813090004,1813090,\"PEKON MON\" ],\n [1813090005,1813090,\"MUARA TEMBULIH\" ],\n [1813090006,1813090,\"NEGERI RATU NGAMBUR\" ],\n [1813090007,1813090,\"BUMI RATU\" ],\n [1813090008,1813090,\"ULOK MUKTI\" ],\n [1813090009,1813090,\"SUMBER AGUNG\" ],\n [1813100001,1813100,\"PARDA SUKA\" ],\n [1813100002,1813100,\"SUKARAME\" ],\n [1813100003,1813100,\"SUKAMAJU\" ],\n [1813100004,1813100,\"RAJA BASA\" ],\n [1813100005,1813100,\"MULANG MAYA\" ],\n [1813100006,1813100,\"PADANG DALAM\" ],\n [1813100007,1813100,\"BANDAR JAYA\" ],\n [1813100008,1813100,\"NEGERI RATU NGARAS\" ],\n [1813100009,1813100,\"KOTA BATU\" ],\n [1813110001,1813110,\"WAY HARU\" ],\n [1813110002,1813110,\"SIRING GADING\" ],\n [1813110003,1813110,\"WAY TIAS\" ],\n [1813110004,1813110,\"BANDAR DALAM\" ],\n [1813110005,1813110,\"SUMBER REJO\" ],\n [1813110006,1813110,\"SUKA NEGERI\" ],\n [1813110007,1813110,\"KOTA JAWA\" ],\n [1813110008,1813110,\"PAGAR BUKIT INDUK\" ],\n [1813110009,1813110,\"PENYANDINGAN\" ],\n [1813110010,1813110,\"PEMERIHAN\" ],\n [1813110011,1813110,\"TANJUNG KEMALA\" ],\n [1813110012,1813110,\"SUKA MARGA\" ],\n [1813110013,1813110,\"TANJUNG REJO\" ],\n [1813110014,1813110,\"PAGAR BUKIT\" ],\n [1871010005,1871010,\"BAKUNG\" ],\n [1871010006,1871010,\"KURIPAN\" ],\n [1871010007,1871010,\"NEGERI OLOK GADING\" ],\n [1871010008,1871010,\"SUKARAME II\" ],\n [1871010011,1871010,\"BATU PUTUK\" ],\n [1871011001,1871011,\"SUKAMAJU\" ],\n [1871011002,1871011,\"KETEGUHAN\" ],\n [1871011003,1871011,\"KOTA KARANG\" ],\n [1871011004,1871011,\"PERWATA\" ],\n [1871011009,1871011,\"WAY TATAAN\" ],\n [1871011010,1871011,\"KOTA KARANG RAYA\" ],\n [1871020001,1871020,\"GEDONG PAKUON\" ],\n [1871020002,1871020,\"TALANG\" ],\n [1871020003,1871020,\"PESAWAHAN\" ],\n [1871020004,1871020,\"TELUK BETUNG\" ],\n [1871020013,1871020,\"SUMUR PUTRI\" ],\n [1871020014,1871020,\"GUNUNG MAS\" ],\n [1871021001,1871021,\"KANGKUNG\" ],\n [1871021002,1871021,\"BUMI WARAS\" ],\n [1871021003,1871021,\"BUMI RAYA\" ],\n [1871021004,1871021,\"SUKARAJA\" ],\n [1871021005,1871021,\"GARUNTANG\" ],\n [1871030001,1871030,\"SRENGSEM\" ],\n [1871030002,1871030,\"PANJANG SELATAN\" ],\n [1871030003,1871030,\"PANJANG UTARA\" ],\n [1871030004,1871030,\"PIDADA\" ],\n [1871030009,1871030,\"KARANG MARITIM\" ],\n [1871030010,1871030,\"WAY LUNIK\" ],\n [1871030011,1871030,\"KETAPANG\" ],\n [1871030012,1871030,\"KETAPANG KUALA\" ],\n [1871040002,1871040,\"KOTA BARU\" ],\n [1871040003,1871040,\"TANJUNG AGUNG\" ],\n [1871040004,1871040,\"KEBON JERUK\" ],\n [1871040005,1871040,\"SAWAH LAMA\" ],\n [1871040006,1871040,\"SAWAH BREBES\" ],\n [1871041001,1871041,\"TANJUNG GADING\" ],\n [1871041002,1871041,\"TANJUNG RAYA\" ],\n [1871041003,1871041,\"KEDAMAIAN\" ],\n [1871041004,1871041,\"KALIBALAU KENCANA\" ],\n [1871041005,1871041,\"TANJUNG BARU\" ],\n [1871041006,1871041,\"BUMI KEDAMAIAN\" ],\n [1871041007,1871041,\"TANJUNG AGUNG RAYA\" ],\n [1871050001,1871050,\"KUPANG KOTA\" ],\n [1871050003,1871050,\"KUPANG TEBA\" ],\n [1871050004,1871050,\"KUPANG RAYA\" ],\n [1871050006,1871050,\"SUMUR BATU\" ],\n [1871050007,1871050,\"GULAK GALIK\" ],\n [1871050008,1871050,\"PENGAJARAN\" ],\n [1871060001,1871060,\"DURIAN PAYUNG\" ],\n [1871060002,1871060,\"GOTONG ROYONG\" ],\n [1871060005,1871060,\"PALAPA\" ],\n [1871060006,1871060,\"KALIAWI\" ],\n [1871060007,1871060,\"KELAPA TIGA\" ],\n [1871060010,1871060,\"PASIR GINTUNG\" ],\n [1871060013,1871060,\"KALIAWI PERSADA\" ],\n [1871061001,1871061,\"GUNUNG SARI\" ],\n [1871061002,1871061,\"TANJUNG KARANG\" ],\n [1871061003,1871061,\"PELITA\" ],\n [1871061004,1871061,\"ENGGAL\" ],\n [1871061005,1871061,\"RAWA LAUT\" ],\n [1871061006,1871061,\"PAHOMAN\" ],\n [1871070002,1871070,\"SUSUNAN BARU\" ],\n [1871070003,1871070,\"SUKADANA HAM\" ],\n [1871070004,1871070,\"SUKAJAWA\" ],\n [1871070005,1871070,\"GEDONG AIR\" ],\n [1871070006,1871070,\"SEGALA MIDER\" ],\n [1871070010,1871070,\"SUKAJAWA BARU\" ],\n [1871070013,1871070,\"KELAPA TIGA PERMAI\" ],\n [1871071001,1871071,\"SUMBER AGUNG\" ],\n [1871071002,1871071,\"KEDAUNG\" ],\n [1871071003,1871071,\"PINANG JAYA\" ],\n [1871071004,1871071,\"BERINGIN RAYA\" ],\n [1871071005,1871071,\"SUMBER REJO\" ],\n [1871071006,1871071,\"KEMILING PERMAI\" ],\n [1871071008,1871071,\"SUMBERREJO SEJAHTERA\" ],\n [1871071009,1871071,\"BERINGIN JAYA\" ],\n [1871071010,1871071,\"KEMILING RAYA\" ],\n [1871072001,1871072,\"BILABONG JAYA\" ],\n [1871072002,1871072,\"LANGKAPURA\" ],\n [1871072003,1871072,\"LANGKAPURA BARU\" ],\n [1871072004,1871072,\"GUNUNG TERANG\" ],\n [1871072005,1871072,\"GUNUNG AGUNG\" ],\n [1871080001,1871080,\"SUKAMENANTI\" ],\n [1871080002,1871080,\"SIDODADI\" ],\n [1871080003,1871080,\"SURABAYA\" ],\n [1871080005,1871080,\"KEDATON\" ],\n [1871080016,1871080,\"SUKAMENANTI BARU\" ],\n [1871080018,1871080,\"PENENGAHAN\" ],\n [1871080019,1871080,\"PENENGAHAN RAYA\" ],\n [1871081001,1871081,\"GEDONG MENENG\" ],\n [1871081002,1871081,\"RAJABASA\" ],\n [1871081003,1871081,\"RAJABASA RAYA\" ],\n [1871081004,1871081,\"RAJABASA JAYA\" ],\n [1871081005,1871081,\"GEDONG MENENG BARU\" ],\n [1871081006,1871081,\"RAJABASA PEMUKA\" ],\n [1871081007,1871081,\"RAJABASA NUNYAI\" ],\n [1871082001,1871082,\"LABUHAN DALAM\" ],\n [1871082002,1871082,\"TANJUNG SENANG\" ],\n [1871082003,1871082,\"WAY KANDIS\" ],\n [1871082004,1871082,\"PERUMNAS WAY KANDIS\" ],\n [1871082005,1871082,\"PEMATANG WANGI\" ],\n [1871083006,1871083,\"LABUHAN RATU\" ],\n [1871083009,1871083,\"KAMPUNG BARU\" ],\n [1871083013,1871083,\"SEPANG JAYA\" ],\n [1871083014,1871083,\"LABUHAN RATU RAYA\" ],\n [1871083015,1871083,\"KOTA SEPANG\" ],\n [1871083017,1871083,\"KAMPUNG BARU RAYA\" ],\n [1871090005,1871090,\"SUKARAME\" ],\n [1871090009,1871090,\"WAY DADI\" ],\n [1871090011,1871090,\"KORPRI JAYA\" ],\n [1871090012,1871090,\"WAY DADI BARU\" ],\n [1871090013,1871090,\"KORPRI RAYA\" ],\n [1871090014,1871090,\"SUKARAME BARU\" ],\n [1871091005,1871091,\"SUKABUMI INDAH\" ],\n [1871091006,1871091,\"SUKABUMI\" ],\n [1871091007,1871091,\"NUSANTARA PERMAI\" ],\n [1871091008,1871091,\"CAMPANG RAYA\" ],\n [1871091009,1871091,\"CAMPANG JAYA\" ],\n [1871091010,1871091,\"WAY GUBAK\" ],\n [1871091011,1871091,\"WAY LAGA\" ],\n [1871092001,1871092,\"JAGABAYA I\" ],\n [1871092002,1871092,\"JAGABAYA II\" ],\n [1871092003,1871092,\"JAGABAYA III\" ],\n [1871092004,1871092,\"GUNUNG SULAH\" ],\n [1871092005,1871092,\"WAY HALIM PERMAI\" ],\n [1871092006,1871092,\"PERUMNAS WAY HALIM\" ],\n [1872011001,1872011,\"SUMBERSARI\" ],\n [1872011002,1872011,\"REJOMULYO\" ],\n [1872011003,1872011,\"MARGODADI\" ],\n [1872011004,1872011,\"MARGOREJO\" ],\n [1872012001,1872012,\"MULYOJATI\" ],\n [1872012002,1872012,\"MULYOSARI\" ],\n [1872012003,1872012,\"GANJARAGUNG\" ],\n [1872012004,1872012,\"GANJARASRI\" ],\n [1872021001,1872021,\"TEJOSARI\" ],\n [1872021002,1872021,\"TEJOAGUNG\" ],\n [1872021003,1872021,\"IRINGMULYO\" ],\n [1872021004,1872021,\"YOSOREJO\" ],\n [1872021005,1872021,\"YOSODADI\" ],\n [1872022001,1872022,\"METRO\" ],\n [1872022002,1872022,\"IMOPURO\" ],\n [1872022003,1872022,\"HADIMULYO BARAT\" ],\n [1872022004,1872022,\"HADIMULYO TIMUR\" ],\n [1872022005,1872022,\"YOSOMULYO\" ],\n [1872023001,1872023,\"BANJARSARI\" ],\n [1872023002,1872023,\"PURWOSARI\" ],\n [1872023003,1872023,\"PURWOASRI\" ],\n [1872023004,1872023,\"KARANGREJO\" ],\n [1901070001,1901070,\"KOTA KAPUR\" ],\n [1901070002,1901070,\"PENAGAN\" ],\n [1901070003,1901070,\"RUKAM\" ],\n [1901070004,1901070,\"AIR BULUH\" ],\n [1901070005,1901070,\"KACE\" ],\n [1901070006,1901070,\"CENGKONGABANG\" ],\n [1901070007,1901070,\"AIRDUREN\" ],\n [1901070008,1901070,\"PETALING\" ],\n [1901070009,1901070,\"MENDUK\" ],\n [1901070010,1901070,\"PAYABENUA\" ],\n [1901070011,1901070,\"KEMUJA\" ],\n [1901070012,1901070,\"ZED\" ],\n [1901070013,1901070,\"LABUH AIR PANDAN\" ],\n [1901070014,1901070,\"KACE TIMUR\" ],\n [1901070015,1901070,\"PETALING BANJAR\" ],\n [1901080010,1901080,\"KIMAK\" ],\n [1901080011,1901080,\"JADA BAHRIN\" ],\n [1901080012,1901080,\"BALUNIJUK\" ],\n [1901080013,1901080,\"PAGARAWAN\" ],\n [1901080014,1901080,\"BATURUSA\" ],\n [1901080015,1901080,\"AIR ANYIR\" ],\n [1901080016,1901080,\"RIDING PANJANG\" ],\n [1901080017,1901080,\"DWI MAKMUR\" ],\n [1901080018,1901080,\"JURUNG\" ],\n [1901080019,1901080,\"MERAWANG\" ],\n [1901081001,1901081,\"KOTAWARINGIN\" ],\n [1901081002,1901081,\"SAING\" ],\n [1901081003,1901081,\"TANAH BAWAH\" ],\n [1901081004,1901081,\"NIBUNG\" ],\n [1901081005,1901081,\"LABU\" ],\n [1901081006,1901081,\"PUDINGBESAR\" ],\n [1901081007,1901081,\"KAYU BESI\" ],\n [1901090014,1901090,\"KENANGA\" ],\n [1901090015,1901090,\"REBO\" ],\n [1901090016,1901090,\"PARIT PADANG\" ],\n [1901090017,1901090,\"SRIMENANTI\" ],\n [1901090018,1901090,\"SUNGAILIAT\" ],\n [1901090019,1901090,\"KUDAY\" ],\n [1901090020,1901090,\"SINAR BARU\" ],\n [1901090021,1901090,\"LUBUK KELIK\" ],\n [1901090022,1901090,\"SURYA TIMUR\" ],\n [1901090023,1901090,\"JELITIK\" ],\n [1901090024,1901090,\"BUKIT BETUNG\" ],\n [1901090025,1901090,\"SINAR JAYA JELUTUNG\" ],\n [1901090026,1901090,\"MATRAS\" ],\n [1901091001,1901091,\"PENYAMUN\" ],\n [1901091002,1901091,\"PEMALI\" ],\n [1901091003,1901091,\"AIR DUREN\" ],\n [1901091004,1901091,\"AIR RUAI\" ],\n [1901091005,1901091,\"KARYA MAKMUR\" ],\n [1901091006,1901091,\"SEMPAN\" ],\n [1901092001,1901092,\"MARAS SENANG\" ],\n [1901092002,1901092,\"KAPUK\" ],\n [1901092003,1901092,\"NEKNANG\" ],\n [1901092004,1901092,\"TIANG TARA\" ],\n [1901092005,1901092,\"DALIL\" ],\n [1901092006,1901092,\"BAKAM\" ],\n [1901092007,1901092,\"MANGKA\" ],\n [1901092008,1901092,\"MABAT\" ],\n [1901092009,1901092,\"BUKITLAYANG\" ],\n [1901130009,1901130,\"LUMUT\" ],\n [1901130010,1901130,\"RIDING PANJANG\" ],\n [1901130011,1901130,\"GUNUNG MUDA\" ],\n [1901130012,1901130,\"KUTO PANJI\" ],\n [1901130013,1901130,\"AIR JUKUNG\" ],\n [1901130014,1901130,\"BUKIT KETOK\" ],\n [1901130015,1901130,\"BINTET\" ],\n [1901130016,1901130,\"GUNUNG PELAWAN\" ],\n [1901131001,1901131,\"BANYU ASIN\" ],\n [1901131002,1901131,\"PANGKAL NIUR\" ],\n [1901131003,1901131,\"PUGUL\" ],\n [1901131004,1901131,\"CIT\" ],\n [1901131005,1901131,\"DENIANG\" ],\n [1901131006,1901131,\"MAPUR\" ],\n [1901131007,1901131,\"SILIP\" ],\n [1901131008,1901131,\"RIAU\" ],\n [1901131009,1901131,\"BERBURA\" ],\n [1902010001,1902010,\"PULAU SELIU\" ],\n [1902010002,1902010,\"MEMBALONG\" ],\n [1902010003,1902010,\"MENTIGI\" ],\n [1902010004,1902010,\"TANJUNG RUSA\" ],\n [1902010005,1902010,\"KEMBIRI\" ],\n [1902010006,1902010,\"PERPAT\" ],\n [1902010007,1902010,\"LASSAR\" ],\n [1902010008,1902010,\"SIMPANG RUSA\" ],\n [1902010009,1902010,\"BANTAN\" ],\n [1902010010,1902010,\"PULAU SUMEDANG\" ],\n [1902010011,1902010,\"GUNUNG RITING\" ],\n [1902010012,1902010,\"PADANG KANDIS\" ],\n [1902060007,1902060,\"BULUH TUMBANG\" ],\n [1902060008,1902060,\"PERAWAS\" ],\n [1902060009,1902060,\"LESUNG BATANG\" ],\n [1902060010,1902060,\"PANGKAL LALANG\" ],\n [1902060011,1902060,\"DUKONG\" ],\n [1902060012,1902060,\"JURU SEBERANG\" ],\n [1902060013,1902060,\"KOTA TANJUNG PANDAN\" ],\n [1902060014,1902060,\"PARIT\" ],\n [1902060015,1902060,\"TANJUNG PENDAM\" ],\n [1902060016,1902060,\"AIR SAGA\" ],\n [1902060017,1902060,\"PAAL SATU\" ],\n [1902060018,1902060,\"AIR MERBAU\" ],\n [1902060019,1902060,\"AIK KETEKOK\" ],\n [1902060020,1902060,\"AIK RAYAK\" ],\n [1902060021,1902060,\"AIK PELEMPANG JAYA\" ],\n [1902060022,1902060,\"KAMPONG DAMAI\" ],\n [1902061001,1902061,\"PEGANTUNGAN\" ],\n [1902061002,1902061,\"SUNGAI SAMAK\" ],\n [1902061003,1902061,\"CERUCUK\" ],\n [1902061004,1902061,\"BADAU\" ],\n [1902061005,1902061,\"KACANG BOTOR\" ],\n [1902061006,1902061,\"AIR BATU BUDING\" ],\n [1902061007,1902061,\"IBUL\" ],\n [1902062001,1902062,\"BATU ITAM\" ],\n [1902062002,1902062,\"TERONG\" ],\n [1902062003,1902062,\"AIR SERU\" ],\n [1902062004,1902062,\"AIR SELUMAR\" ],\n [1902062005,1902062,\"TANJUNG BINGA\" ],\n [1902062006,1902062,\"KECIPUT\" ],\n [1902062007,1902062,\"SIJUK\" ],\n [1902062008,1902062,\"SUNGAI PADANG\" ],\n [1902062009,1902062,\"TANJONG TINGGI\" ],\n [1902062010,1902062,\"PELEPAK PUTE\" ],\n [1902063001,1902063,\"SUAK GUAL\" ],\n [1902063002,1902063,\"PETALING\" ],\n [1902063003,1902063,\"SELAT NASIK\" ],\n [1902063004,1902063,\"PULAU GERSIK\" ],\n [1903010010,1903010,\"KAYUARANG\" ],\n [1903010011,1903010,\"MANCUNG\" ],\n [1903010012,1903010,\"SINAR SARI\" ],\n [1903010013,1903010,\"KELAPA\" ],\n [1903010014,1903010,\"BERUAS\" ],\n [1903010015,1903010,\"PUSUK\" ],\n [1903010016,1903010,\"TEBING\" ],\n [1903010017,1903010,\"AIR BULIN\" ],\n [1903010018,1903010,\"DENDANG\" ],\n [1903010019,1903010,\"KACUNG\" ],\n [1903010020,1903010,\"TERENTANG\" ],\n [1903010021,1903010,\"TUGANG\" ],\n [1903010022,1903010,\"TUIK\" ],\n [1903010023,1903010,\"PANGKAL BERAS\" ],\n [1903020001,1903020,\"TANJUNGNIUR\" ],\n [1903020002,1903020,\"BENTENG KUTA\" ],\n [1903020003,1903020,\"AIR LINTANG\" ],\n [1903020004,1903020,\"SINAR SURYA\" ],\n [1903020005,1903020,\"TEMPILANG\" ],\n [1903020006,1903020,\"BUYAN KELUMBI\" ],\n [1903020007,1903020,\"SANGKU\" ],\n [1903020008,1903020,\"PENYAMPAK\" ],\n [1903020009,1903020,\"SIMPANG YUL\" ],\n [1903030001,1903030,\"BELOLAUT\" ],\n [1903030004,1903030,\"AIR BELO\" ],\n [1903030005,1903030,\"SUNGAI BARU\" ],\n [1903030006,1903030,\"SUNGAI DAENG\" ],\n [1903030007,1903030,\"TANJUNG\" ],\n [1903030008,1903030,\"AIR PUTIH\" ],\n [1903030009,1903030,\"AIRLIMAU\" ],\n [1903040001,1903040,\"KUNDI\" ],\n [1903040002,1903040,\"SIMPANG TIGA\" ],\n [1903040003,1903040,\"MAYANG\" ],\n [1903040004,1903040,\"RAMBAT\" ],\n [1903040005,1903040,\"SIMPANG GONG\" ],\n [1903040006,1903040,\"PELANGAS\" ],\n [1903040007,1903040,\"BERANG\" ],\n [1903040008,1903040,\"IBUL\" ],\n [1903040009,1903040,\"PERADONG\" ],\n [1903040010,1903040,\"AIR NYATOH\" ],\n [1903040011,1903040,\"PANGEK\" ],\n [1903040012,1903040,\"AIR MENDUYUNG\" ],\n [1903040013,1903040,\"BUKIT TERAK\" ],\n [1903050001,1903050,\"JEBUS\" ],\n [1903050002,1903050,\"TUMBAK PETAR\" ],\n [1903050003,1903050,\"LIMBUNG\" ],\n [1903050004,1903050,\"RUKAM\" ],\n [1903050009,1903050,\"RANGGI/ASAM\" ],\n [1903050010,1903050,\"SUNGAI BULUH\" ],\n [1903050011,1903050,\"KETAP\" ],\n [1903050018,1903050,\"MISLAK\" ],\n [1903050019,1903050,\"AIR KUANG\" ],\n [1903050020,1903050,\"PEBUAR\" ],\n [1903050021,1903050,\"SINAR MANIK\" ],\n [1903051001,1903051,\"BAKIT\" ],\n [1903051002,1903051,\"SEMULUT\" ],\n [1903051003,1903051,\"KAPIT\" ],\n [1903051004,1903051,\"TELAK\" ],\n [1903051005,1903051,\"SEKAR BIRU\" ],\n [1903051006,1903051,\"PUPUT\" ],\n [1903051007,1903051,\"AIR GANTANG\" ],\n [1903051008,1903051,\"KELABAT\" ],\n [1903051009,1903051,\"CUPAT\" ],\n [1903051010,1903051,\"TELUK LIMAU\" ],\n [1904010001,1904010,\"NIBUNG\" ],\n [1904010006,1904010,\"KOBA\" ],\n [1904010007,1904010,\"ARUNG DALAM\" ],\n [1904010008,1904010,\"GUNTUNG\" ],\n [1904010009,1904010,\"TERENTANG TIGA\" ],\n [1904010010,1904010,\"PENYAK\" ],\n [1904010011,1904010,\"KURAU\" ],\n [1904010012,1904010,\"KURAU BARAT\" ],\n [1904010013,1904010,\"SIMPANG PERLANG\" ],\n [1904010014,1904010,\"PADANG MULIA\" ],\n [1904010015,1904010,\"BEROK\" ],\n [1904011001,1904011,\"KULUR\" ],\n [1904011002,1904011,\"KULUR ILIR\" ],\n [1904011003,1904011,\"TERUBUS\" ],\n [1904011004,1904011,\"PERLANG\" ],\n [1904011005,1904011,\"LUBUK BESAR\" ],\n [1904011006,1904011,\"LUBUK PABRIK\" ],\n [1904011007,1904011,\"LUBUK LINGKUK\" ],\n [1904011008,1904011,\"BATU BERIGA\" ],\n [1904011009,1904011,\"BELIMBING\" ],\n [1904020006,1904020,\"TANJUNG GUNUNG\" ],\n [1904020007,1904020,\"BENTENG\" ],\n [1904020008,1904020,\"AIRMESU\" ],\n [1904020009,1904020,\"DUL\" ],\n [1904020010,1904020,\"MANGKOL\" ],\n [1904020012,1904020,\"PADANG BARU\" ],\n [1904020013,1904020,\"JERUK\" ],\n [1904020014,1904020,\"BELULUK\" ],\n [1904020015,1904020,\"BATU BELUBANG\" ],\n [1904020016,1904020,\"PEDINDANG\" ],\n [1904020017,1904020,\"AIRMESU TIMUR\" ],\n [1904020018,1904020,\"KEBINTIK\" ],\n [1904021001,1904021,\"BELILIK\" ],\n [1904021002,1904021,\"NAMANG\" ],\n [1904021003,1904021,\"JELUTUNG\" ],\n [1904021004,1904021,\"CAMBAI\" ],\n [1904021005,1904021,\"KAYU BESI\" ],\n [1904021006,1904021,\"BUKIT KIJANG\" ],\n [1904021007,1904021,\"BASKARA BAKTI\" ],\n [1904021008,1904021,\"CAMBAI SELATAN\" ],\n [1904030001,1904030,\"SUNGAI SELAN\" ],\n [1904030002,1904030,\"LAMPUR\" ],\n [1904030003,1904030,\"KERANTAI\" ],\n [1904030008,1904030,\"KERETAK\" ],\n [1904030009,1904030,\"SARANGMANDI\" ],\n [1904030010,1904030,\"MUNGGU\" ],\n [1904030011,1904030,\"KEMINGKING\" ],\n [1904030012,1904030,\"SUNGAI SELAN ATAS\" ],\n [1904030013,1904030,\"RAMADHON\" ],\n [1904030014,1904030,\"KERAKAS\" ],\n [1904030015,1904030,\"TANJUNGPURA\" ],\n [1904030016,1904030,\"KERETAK ATAS\" ],\n [1904030017,1904030,\"MELABUN\" ],\n [1904040001,1904040,\"SUNGKAP\" ],\n [1904040002,1904040,\"CELUAK\" ],\n [1904040003,1904040,\"PUPUT\" ],\n [1904040004,1904040,\"SIMPANG KATIS\" ],\n [1904040005,1904040,\"TERU\" ],\n [1904040006,1904040,\"BERUAS\" ],\n [1904040007,1904040,\"TERAK\" ],\n [1904040008,1904040,\"PASIR GARAM\" ],\n [1904040009,1904040,\"PINANG SEBATANG\" ],\n [1904040010,1904040,\"KATIS\" ],\n [1905010005,1905010,\"BEDENGUNG\" ],\n [1905010006,1905010,\"IRAT\" ],\n [1905010007,1905010,\"SENGIR\" ],\n [1905010008,1905010,\"PAYUNG\" ],\n [1905010009,1905010,\"NADUNG\" ],\n [1905010010,1905010,\"RANGGUNG\" ],\n [1905010017,1905010,\"PANGKALBULUH\" ],\n [1905010018,1905010,\"MALIK\" ],\n [1905010020,1905010,\"PAKU\" ],\n [1905011001,1905011,\"BATU BETUMPANG\" ],\n [1905011002,1905011,\"PANCA TUNGGAL\" ],\n [1905011003,1905011,\"FAJAR INDAH\" ],\n [1905011004,1905011,\"SUKAJAYA\" ],\n [1905011005,1905011,\"SUMBER JAYA PERMAI\" ],\n [1905020001,1905020,\"JELUTUNG II\" ],\n [1905020002,1905020,\"GUDANG\" ],\n [1905020003,1905020,\"SEBAGIN\" ],\n [1905020004,1905020,\"RAJIK\" ],\n [1905020005,1905020,\"SIMPANG RIMBA\" ],\n [1905020006,1905020,\"BANGKA KOTA\" ],\n [1905020007,1905020,\"PERMIS\" ],\n [1905030001,1905030,\"RIAS\" ],\n [1905030002,1905030,\"TELADAN\" ],\n [1905030003,1905030,\"TANJUNG KETAPANG\" ],\n [1905030004,1905030,\"TOBOALI\" ],\n [1905030008,1905030,\"KAPOSANG\" ],\n [1905030009,1905030,\"GADUNG\" ],\n [1905030010,1905030,\"BIKANG\" ],\n [1905030011,1905030,\"JERIJI\" ],\n [1905030012,1905030,\"SERDANG\" ],\n [1905030013,1905030,\"RINDIK\" ],\n [1905030014,1905030,\"KEPOH\" ],\n [1905031001,1905031,\"SADAI\" ],\n [1905031002,1905031,\"PASIR PUTIH\" ],\n [1905031003,1905031,\"TUKAK\" ],\n [1905031004,1905031,\"TIRAM\" ],\n [1905031005,1905031,\"BUKIT TERAP\" ],\n [1905040001,1905040,\"PERGAM\" ],\n [1905040002,1905040,\"BENCAH\" ],\n [1905040003,1905040,\"TEPUS\" ],\n [1905040004,1905040,\"AIRGEGAS\" ],\n [1905040005,1905040,\"DELAS\" ],\n [1905040006,1905040,\"SIDOHARJO\" ],\n [1905040007,1905040,\"NYELANDING\" ],\n [1905040008,1905040,\"NANGKA\" ],\n [1905040009,1905040,\"RANGGAS\" ],\n [1905040010,1905040,\"AIR BARA\" ],\n [1905050001,1905050,\"PENUTUK\" ],\n [1905050002,1905050,\"TANJUNGLABU\" ],\n [1905050004,1905050,\"TANJUNG SANGKAR\" ],\n [1905050005,1905050,\"KUMBUNG\" ],\n [1905051001,1905051,\"CELAGEN\" ],\n [1905051002,1905051,\"PONGOK\" ],\n [1906010004,1906010,\"DENDANG\" ],\n [1906010005,1906010,\"JANGKANG\" ],\n [1906010006,1906010,\"NYURUK\" ],\n [1906010008,1906010,\"BALOK\" ],\n [1906011001,1906011,\"TANJUNG KELUMPANG\" ],\n [1906011002,1906011,\"TANJUNG BATU ITAM\" ],\n [1906011003,1906011,\"DUKONG\" ],\n [1906011004,1906011,\"SIMPANG PESAK\" ],\n [1906020001,1906020,\"LILANGAN\" ],\n [1906020002,1906020,\"JANGKAR ASAM\" ],\n [1906020003,1906020,\"GANTUNG\" ],\n [1906020004,1906020,\"SELINGSING\" ],\n [1906020008,1906020,\"LIMBONGAN\" ],\n [1906020009,1906020,\"BATU PENYU\" ],\n [1906020010,1906020,\"LENGGANG\" ],\n [1906021001,1906021,\"LINTANG\" ],\n [1906021002,1906021,\"AIK MADU\" ],\n [1906021003,1906021,\"RENGGIANG\" ],\n [1906021004,1906021,\"SIMPANG TIGA\" ],\n [1906030001,1906030,\"KELUBI\" ],\n [1906030002,1906030,\"PADANG\" ],\n [1906030003,1906030,\"LALANG\" ],\n [1906030004,1906030,\"LALANG JAYA\" ],\n [1906030005,1906030,\"KURNIA JAYA\" ],\n [1906030006,1906030,\"BARU\" ],\n [1906030010,1906030,\"BUKU LIMAU\" ],\n [1906030011,1906030,\"BENTAIAN JAYA\" ],\n [1906030012,1906030,\"MEKAR JAYA\" ],\n [1906031001,1906031,\"SUKAMANDI\" ],\n [1906031002,1906031,\"MENGKUBANG\" ],\n [1906031003,1906031,\"BURUNG MANDI\" ],\n [1906031004,1906031,\"MEMPAYA\" ],\n [1906031005,1906031,\"AIR KELIK\" ],\n [1906040001,1906040,\"CENDIL\" ],\n [1906040002,1906040,\"BUDING\" ],\n [1906040003,1906040,\"MENTAWAK\" ],\n [1906040004,1906040,\"SENYUBUK\" ],\n [1906040005,1906040,\"MAYANG\" ],\n [1906040007,1906040,\"PEMBAHARUAN\" ],\n [1971010001,1971010,\"ASAM\" ],\n [1971010002,1971010,\"PARIT LALANG\" ],\n [1971010004,1971010,\"BINTANG\" ],\n [1971010009,1971010,\"MELINTANG\" ],\n [1971010010,1971010,\"KERAMAT\" ],\n [1971010013,1971010,\"MASJID JAMIK\" ],\n [1971010015,1971010,\"PINTU AIR\" ],\n [1971010016,1971010,\"GAJAH MADA\" ],\n [1971020008,1971020,\"SEMABUNG LAMA\" ],\n [1971020009,1971020,\"BACANG\" ],\n [1971020010,1971020,\"AIR ITAM\" ],\n [1971020011,1971020,\"SINAR BULAN\" ],\n [1971020012,1971020,\"TEMBERAN\" ],\n [1971020013,1971020,\"AIR MAWAR\" ],\n [1971020014,1971020,\"PASIR PUTIH\" ],\n [1971021001,1971021,\"SRIWIJAYA\" ],\n [1971021002,1971021,\"BUKIT BESAR\" ],\n [1971021003,1971021,\"BATU INTAN\" ],\n [1971021004,1971021,\"SEMABUNG BARU\" ],\n [1971021005,1971021,\"PASAR PADI\" ],\n [1971030006,1971030,\"AMPUI\" ],\n [1971030009,1971030,\"LONTONG PANCUR\" ],\n [1971030010,1971030,\"PASIR GARAM\" ],\n [1971030015,1971030,\"REJOSARI\" ],\n [1971030016,1971030,\"KETAPANG\" ],\n [1971031001,1971031,\"AIR SALEMBA\" ],\n [1971031002,1971031,\"GABEK SATU\" ],\n [1971031003,1971031,\"GABEK DUA\" ],\n [1971031004,1971031,\"SELINDUNG BARU\" ],\n [1971031005,1971031,\"SELINDUNG\" ],\n [1971031006,1971031,\"JERAMBAH GANTUNG\" ],\n [1971040019,1971040,\"BATIN TIKAL\" ],\n [1971040020,1971040,\"RAWA BANGUN\" ],\n [1971040021,1971040,\"GEDUNG NASIONAL\" ],\n [1971040022,1971040,\"OPAS INDAH\" ],\n [1971040023,1971040,\"KEJAKSAAN\" ],\n [1971041002,1971041,\"KACANG PEDANG\" ],\n [1971041003,1971041,\"TUATUNU INDAH\" ],\n [1971041004,1971041,\"BUKIT MERAPIN\" ],\n [1971041005,1971041,\"BUKIT SARI\" ],\n [1971041006,1971041,\"TAMAN BUNGA\" ],\n [1971041007,1971041,\"AIR KEPALA TUJUH\" ],\n [2101010003,2101010,\"MORO\" ],\n [2101010004,2101010,\"PAUH\" ],\n [2101010005,2101010,\"SUGIE\" ],\n [2101010006,2101010,\"KEBAN\" ],\n [2101010007,2101010,\"SELAT MIE\" ],\n [2101010008,2101010,\"TANJUNG PELANDUK\" ],\n [2101010009,2101010,\"JANG\" ],\n [2101010010,2101010,\"MORO TIMUR\" ],\n [2101010011,2101010,\"PULAU MORO\" ],\n [2101010012,2101010,\"NIUR PERMAI\" ],\n [2101010013,2101010,\"RAWA JAYA\" ],\n [2101010014,2101010,\"BULUH PATAH\" ],\n [2101011001,2101011,\"TELAGA TUJUH\" ],\n [2101011002,2101011,\"SANGLAR\" ],\n [2101011003,2101011,\"SEMEMBANG\" ],\n [2101011004,2101011,\"TANJUNG KILANG\" ],\n [2101020001,2101020,\"TANJUNG BATU BARAT\" ],\n [2101020002,2101020,\"TANJUNG BATU KOTA\" ],\n [2101020004,2101020,\"SUNGAI SEBESI\" ],\n [2101020005,2101020,\"SUNGAI UNGAR\" ],\n [2101020006,2101020,\"LUBUK\" ],\n [2101020009,2101020,\"GADING SARI\" ],\n [2101021001,2101021,\"SUNGAI UNGAR UTARA\" ],\n [2101021005,2101021,\"TANJUNG BERLIAN KOTA\" ],\n [2101021006,2101021,\"TELUK RADANG\" ],\n [2101021007,2101021,\"TANJUNG BERLIAN BARAT\" ],\n [2101021008,2101021,\"PERAYUN\" ],\n [2101022001,2101022,\"SAWANG\" ],\n [2101022002,2101022,\"SAWANG LAUT\" ],\n [2101022003,2101022,\"KUNDUR\" ],\n [2101022004,2101022,\"SAWANG SELATAN\" ],\n [2101022005,2101022,\"GEMURUH\" ],\n [2101023003,2101023,\"ALAI\" ],\n [2101023007,2101023,\"BATU LIMAU\" ],\n [2101023008,2101023,\"NGAL\" ],\n [2101023010,2101023,\"SUNGAI BULUH\" ],\n [2101024002,2101024,\"LEBUH\" ],\n [2101024003,2101024,\"PENARAH\" ],\n [2101024004,2101024,\"SEBELE\" ],\n [2101024008,2101024,\"SUNGAI ASAM\" ],\n [2101024009,2101024,\"DEGONG\" ],\n [2101024010,2101024,\"TEBIAS\" ],\n [2101030004,2101030,\"PARIT\" ],\n [2101030005,2101030,\"TULANG\" ],\n [2101030006,2101030,\"TANJUNG BALAI\" ],\n [2101030007,2101030,\"TELUK AIR\" ],\n [2101030008,2101030,\"SUNGAI LAKAM TIMUR\" ],\n [2101030009,2101030,\"LUBUK SEMUT\" ],\n [2101030010,2101030,\"SELAT MENDAUN\" ],\n [2101030011,2101030,\"TANJUNG BALAI KOTA\" ],\n [2101030012,2101030,\"SUNGAI LAKAM BARAT\" ],\n [2101031001,2101031,\"TANJUNG HUTAN\" ],\n [2101031002,2101031,\"BURU\" ],\n [2101031003,2101031,\"LUBUK PUDING\" ],\n [2101031004,2101031,\"TANJUNG BATU KECIL\" ],\n [2101032001,2101032,\"MERAL KOTA\" ],\n [2101032002,2101032,\"BARAN BARAT\" ],\n [2101032003,2101032,\"SUNGAI RAYA\" ],\n [2101032006,2101032,\"SUNGAI PASIR\" ],\n [2101032007,2101032,\"BARAN TIMUR\" ],\n [2101032008,2101032,\"PARIT BENUT\" ],\n [2101033001,2101033,\"TEBING\" ],\n [2101033002,2101033,\"TELUK UMA\" ],\n [2101033004,2101033,\"KAPLING\" ],\n [2101033005,2101033,\"PAMAK\" ],\n [2101033006,2101033,\"HARJOSARI\" ],\n [2101033008,2101033,\"PONGKAR\" ],\n [2101034004,2101034,\"PASIR PANJANG\" ],\n [2101034005,2101034,\"PANGKE\" ],\n [2101034007,2101034,\"DARUSALAM\" ],\n [2101034009,2101034,\"PANGKE BARAT\" ],\n [2102040001,2102040,\"PANGKIL\" ],\n [2102040002,2102040,\"PENGUJAN\" ],\n [2102040003,2102040,\"PENAGA\" ],\n [2102040004,2102040,\"TEMBELING\" ],\n [2102040005,2102040,\"BINTAN BUYU\" ],\n [2102040006,2102040,\"TEMBELING TANJUNG\" ],\n [2102050003,2102050,\"LANCANG KUNING\" ],\n [2102050004,2102050,\"TANJUNG UBAN SELATAN\" ],\n [2102050005,2102050,\"TANJUNG UBAN KOTA\" ],\n [2102050006,2102050,\"TANJUNG UBAN UTARA\" ],\n [2102050009,2102050,\"TANJUNG UBAN TIMUR\" ],\n [2102051001,2102051,\"SEBONG PEREH\" ],\n [2102051002,2102051,\"SEBONG LAGOI\" ],\n [2102051003,2102051,\"EKANG ANCULAI\" ],\n [2102051004,2102051,\"SRI BINTAN\" ],\n [2102051005,2102051,\"PENGUDANG\" ],\n [2102051006,2102051,\"BERAKIT\" ],\n [2102051007,2102051,\"KOTA BARU\" ],\n [2102052001,2102052,\"KUALA SEMPANG\" ],\n [2102052002,2102052,\"BUSUNG\" ],\n [2102052003,2102052,\"TELUK SASAH\" ],\n [2102052004,2102052,\"TELUK LOBAM\" ],\n [2102052005,2102052,\"TANJUNG PERMAI\" ],\n [2102060005,2102060,\"KIJANG KOTA\" ],\n [2102060006,2102060,\"SUNGAI ENAM\" ],\n [2102060007,2102060,\"GUNUNG LENGKUAS\" ],\n [2102060008,2102060,\"SUNGAI LEKOP\" ],\n [2102061001,2102061,\"GUNUNG KIJANG\" ],\n [2102061003,2102061,\"KAWAL\" ],\n [2102061004,2102061,\"TELUK BAKAU\" ],\n [2102061005,2102061,\"MALANG RAPAT\" ],\n [2102062001,2102062,\"MANTANG LAMA\" ],\n [2102062002,2102062,\"MANTANG BESAR\" ],\n [2102062003,2102062,\"MANTANG BARU\" ],\n [2102062004,2102062,\"DENDUN\" ],\n [2102063001,2102063,\"MAPUR\" ],\n [2102063002,2102063,\"NUMBING\" ],\n [2102063003,2102063,\"KELONG\" ],\n [2102063004,2102063,\"AIR GLUBI\" ],\n [2102064001,2102064,\"TOAPAYA UTARA\" ],\n [2102064002,2102064,\"TOAPAYA\" ],\n [2102064003,2102064,\"TOAPAYA ASRI\" ],\n [2102064004,2102064,\"TOAPAYA SELATAN\" ],\n [2102070001,2102070,\"PULAU PINANG\" ],\n [2102070002,2102070,\"PULAU MENTEBUNG\" ],\n [2102070003,2102070,\"KAMPUNG MELAYU\" ],\n [2102070004,2102070,\"KAMPUNG HILIR\" ],\n [2102070005,2102070,\"TELUK SEKUNI\" ],\n [2102070006,2102070,\"BATU LEPUK\" ],\n [2102070007,2102070,\"KUKUP\" ],\n [2102070008,2102070,\"PENGIKIK\" ],\n [2103030001,2103030,\"SEBELAT\" ],\n [2103030002,2103030,\"BATU BELANAK\" ],\n [2103030003,2103030,\"SABANG BARAT\" ],\n [2103030004,2103030,\"GUNUNG JAMBAT\" ],\n [2103030005,2103030,\"AIR PUTIH\" ],\n [2103030006,2103030,\"AIR KUMPAI\" ],\n [2103040004,2103040,\"SEDANAU TIMUR\" ],\n [2103040005,2103040,\"SEDARAT BARU\" ],\n [2103040006,2103040,\"BATUBI JAYA\" ],\n [2103040007,2103040,\"GUNUNG PUTRI\" ],\n [2103040008,2103040,\"SEDANAU\" ],\n [2103040014,2103040,\"MEKAR JAYA\" ],\n [2103040015,2103040,\"BINJAI\" ],\n [2103040016,2103040,\"PIAN TENGAH\" ],\n [2103040017,2103040,\"SEMEDANG\" ],\n [2103040018,2103040,\"SELAUT\" ],\n [2103041001,2103041,\"KELARIK BARAT\" ],\n [2103041002,2103041,\"KELARIK\" ],\n [2103041003,2103041,\"KELARIK UTARA\" ],\n [2103041004,2103041,\"KELARIK AIR MALI\" ],\n [2103041005,2103041,\"TELUK BUTON\" ],\n [2103041006,2103041,\"BELAKANG GUNUNG\" ],\n [2103041007,2103041,\"SELUAN BARAT\" ],\n [2103041008,2103041,\"GUNUNG DURIAN\" ],\n [2103042001,2103042,\"AIR PAYANG\" ],\n [2103042002,2103042,\"TANJUNG PALA\" ],\n [2103042003,2103042,\"KADUR\" ],\n [2103043001,2103043,\"SEDEDAP\" ],\n [2103043002,2103043,\"SABANG MAWANG\" ],\n [2103043003,2103043,\"PULAU TIGA\" ],\n [2103043004,2103043,\"TANJUNG BATANG\" ],\n [2103043005,2103043,\"SERANTAS\" ],\n [2103043006,2103043,\"SABANG MAWANG BARAT\" ],\n [2103043007,2103043,\"TANJUNG KUMBIK UTARA\" ],\n [2103043008,2103043,\"SETUMUK\" ],\n [2103043009,2103043,\"SELADING\" ],\n [2103043010,2103043,\"TELUK LABUH\" ],\n [2103050002,2103050,\"SUNGAI ULU\" ],\n [2103050003,2103050,\"RANAI\" ],\n [2103050008,2103050,\"SEPEMPANG\" ],\n [2103050014,2103050,\"BATU GAJAH\" ],\n [2103050015,2103050,\"RANAI DARAT\" ],\n [2103050016,2103050,\"BANDARSYAH\" ],\n [2103051001,2103051,\"CERUK\" ],\n [2103051002,2103051,\"TANJUNG\" ],\n [2103051003,2103051,\"KELANGA\" ],\n [2103051004,2103051,\"PENGADAH\" ],\n [2103051005,2103051,\"SEBADAI HULU\" ],\n [2103051006,2103051,\"LIMAU MANIS\" ],\n [2103051007,2103051,\"SELEMAM\" ],\n [2103052001,2103052,\"HARAPAN JAYA\" ],\n [2103052002,2103052,\"TAPAU\" ],\n [2103052003,2103052,\"AIR LENGIT\" ],\n [2103053001,2103053,\"CEMAGA\" ],\n [2103053002,2103053,\"CEMAGA UTARA\" ],\n [2103053003,2103053,\"CEMAGA SELATAN\" ],\n [2103053004,2103053,\"CEMAGA TENGAH\" ],\n [2103060001,2103060,\"KAMPUNG HILIR\" ],\n [2103060002,2103060,\"SERASAN\" ],\n [2103060005,2103060,\"BATU BERIAN\" ],\n [2103060006,2103060,\"TANJUNG SETELUNG\" ],\n [2103060007,2103060,\"TANJUNG BALAU\" ],\n [2103060008,2103060,\"PANGKALAN\" ],\n [2103060009,2103060,\"JERMALIK\" ],\n [2103061001,2103061,\"PULAU PANJANG\" ],\n [2103061002,2103061,\"SUBI BESAR\" ],\n [2103061003,2103061,\"SUBI\" ],\n [2103061004,2103061,\"MELIAH\" ],\n [2103061005,2103061,\"TERAYAK\" ],\n [2103061006,2103061,\"KERDAU\" ],\n [2103061007,2103061,\"SUBI BESAR TIMUR\" ],\n [2103061008,2103061,\"MELIAH SELATAN\" ],\n [2103062001,2103062,\"ARUNG AYAM\" ],\n [2103062002,2103062,\"AIR NUSA\" ],\n [2103062003,2103062,\"AIR RINGAU\" ],\n [2103062004,2103062,\"PAYAK\" ],\n [2104010001,2104010,\"MAROK TUA\" ],\n [2104010002,2104010,\"SUNGAI BULUH\" ],\n [2104010003,2104010,\"KUALA RAYA\" ],\n [2104010004,2104010,\"BAKONG\" ],\n [2104010006,2104010,\"SUNGAI HARAPAN\" ],\n [2104010007,2104010,\"JAGOH\" ],\n [2104010008,2104010,\"SUNGAI RAYA\" ],\n [2104010009,2104010,\"RAYA\" ],\n [2104010010,2104010,\"BUKIT BELAH\" ],\n [2104010011,2104010,\"TANJUNG IRAT\" ],\n [2104010012,2104010,\"LANGKAP\" ],\n [2104010013,2104010,\"TINJUL\" ],\n [2104011001,2104011,\"POSEK\" ],\n [2104011002,2104011,\"SUAK BUAYA\" ],\n [2104011003,2104011,\"BUSUNG PANJANG\" ],\n [2104020003,2104020,\"DABO\" ],\n [2104020008,2104020,\"BATU BERDAUN\" ],\n [2104020009,2104020,\"DABO LAMA\" ],\n [2104020010,2104020,\"BATU KACANG\" ],\n [2104020011,2104020,\"TANJUNG HARAPAN\" ],\n [2104020012,2104020,\"SUNGAI LUMPUR\" ],\n [2104021001,2104021,\"BERHALA\" ],\n [2104021002,2104021,\"MAROK KECIL\" ],\n [2104021003,2104021,\"RESANG\" ],\n [2104022001,2104022,\"BERINDAT\" ],\n [2104022002,2104022,\"PERSING\" ],\n [2104022003,2104022,\"SEDAMAI\" ],\n [2104022004,2104022,\"LANJUT\" ],\n [2104022005,2104022,\"KOTE\" ],\n [2104022006,2104022,\"PELAKAK\" ],\n [2104030001,2104030,\"PEKAJANG\" ],\n [2104030004,2104030,\"KELUMU\" ],\n [2104030005,2104030,\"MEPAR\" ],\n [2104030006,2104030,\"KELOMBOK\" ],\n [2104030007,2104030,\"MERAWANG\" ],\n [2104030008,2104030,\"DAIK\" ],\n [2104030009,2104030,\"PANGGAK DARAT\" ],\n [2104030010,2104030,\"PANGGAK LAUT\" ],\n [2104030011,2104030,\"MUSAI\" ],\n [2104030016,2104030,\"MENTUDA\" ],\n [2104030017,2104030,\"NEREKEH\" ],\n [2104031001,2104031,\"SELAYAR\" ],\n [2104031002,2104031,\"PENUBA\" ],\n [2104031003,2104031,\"PANTAI HARAPAN\" ],\n [2104031004,2104031,\"PENUBA TIMUR\" ],\n [2104032001,2104032,\"BUKIT LANGKAP\" ],\n [2104032002,2104032,\"KERANDIN\" ],\n [2104032003,2104032,\"PEKAKA\" ],\n [2104032004,2104032,\"KETON\" ],\n [2104032005,2104032,\"SUNGAI PINANG\" ],\n [2104032006,2104032,\"KUDUNG\" ],\n [2104040001,2104040,\"SEKANAH\" ],\n [2104040002,2104040,\"DUARA\" ],\n [2104040003,2104040,\"RESUN\" ],\n [2104040004,2104040,\"LIMBUNG\" ],\n [2104040005,2104040,\"BUKIT HARAPAN\" ],\n [2104040006,2104040,\"TELUK\" ],\n [2104040007,2104040,\"LINAU\" ],\n [2104040008,2104040,\"PANCUR\" ],\n [2104040009,2104040,\"RANTAU PANJANG\" ],\n [2104040010,2104040,\"SUNGAI BESAR\" ],\n [2104040011,2104040,\"RESUN PESISIR\" ],\n [2104040012,2104040,\"BELUNGKUR\" ],\n [2104050001,2104050,\"MAMUT\" ],\n [2104050002,2104050,\"SENAYANG\" ],\n [2104050003,2104050,\"REJAI\" ],\n [2104050004,2104050,\"PASIR PANJANG\" ],\n [2104050005,2104050,\"TEMIANG\" ],\n [2104050006,2104050,\"PULAU MEDANG\" ],\n [2104050007,2104050,\"TANJUNG KELIT\" ],\n [2104050008,2104050,\"BATU BELUBANG\" ],\n [2104050009,2104050,\"PULAU BATANG\" ],\n [2104050010,2104050,\"MENSANAK\" ],\n [2104050011,2104050,\"BENAN\" ],\n [2104050012,2104050,\"TANJUNG LIPAT\" ],\n [2104050013,2104050,\"PENAAH\" ],\n [2104050014,2104050,\"LABOH\" ],\n [2104050015,2104050,\"BARAN\" ],\n [2104050016,2104050,\"CEMPA\" ],\n [2104050017,2104050,\"TAJUR BIRU\" ],\n [2104050018,2104050,\"PULAU DUYUNG\" ],\n [2104050019,2104050,\"PULAU BUKIT\" ],\n [2105010004,2105010,\"MAMPOK\" ],\n [2105010005,2105010,\"LETUNG\" ],\n [2105010006,2105010,\"REWAK\" ],\n [2105010007,2105010,\"KERAMUT\" ],\n [2105010008,2105010,\"IMPOL\" ],\n [2105010009,2105010,\"AIR BIRU\" ],\n [2105010010,2105010,\"SUNGGAK\" ],\n [2105010011,2105010,\"BATU BERAPIT\" ],\n [2105010012,2105010,\"LANDAK\" ],\n [2105020001,2105020,\"ULU MARAS\" ],\n [2105020002,2105020,\"KUALA MARAS\" ],\n [2105020003,2105020,\"BUKIT PADI\" ],\n [2105020004,2105020,\"GENTING PULUR\" ],\n [2105030001,2105030,\"KIABU\" ],\n [2105030002,2105030,\"TELAGA\" ],\n [2105030003,2105030,\"MENGKAIT\" ],\n [2105030004,2105030,\"TIANGAU\" ],\n [2105030005,2105030,\"TELAGA KECIL\" ],\n [2105030006,2105030,\"LINGAI\" ],\n [2105030007,2105030,\"AIR BINI\" ],\n [2105040003,2105040,\"TAREMPA BARAT\" ],\n [2105040004,2105040,\"TAREMPA\" ],\n [2105040005,2105040,\"TAREMPA SELATAN\" ],\n [2105040006,2105040,\"TAREMPA TIMUR\" ],\n [2105040007,2105040,\"SRI TANJUNG\" ],\n [2105040008,2105040,\"TAREMPA BARAT DAYA\" ],\n [2105040009,2105040,\"PESISIR TIMUR\" ],\n [2105050001,2105050,\"NYAMUK\" ],\n [2105050002,2105050,\"BATU BELAH\" ],\n [2105050003,2105050,\"MUNJAN\" ],\n [2105050004,2105050,\"SERAT\" ],\n [2105050005,2105050,\"AIR PUTIH\" ],\n [2105050006,2105050,\"TEMBURUN\" ],\n [2105060001,2105060,\"AIR ASUK\" ],\n [2105060002,2105060,\"AIR SENA\" ],\n [2105060003,2105060,\"TELUK SIANTAN\" ],\n [2105060004,2105060,\"LIUK\" ],\n [2105060005,2105060,\"LIDI\" ],\n [2105060006,2105060,\"TELUK SUNTING\" ],\n [2105070002,2105070,\"TEBANG\" ],\n [2105070003,2105070,\"LADAN\" ],\n [2105070004,2105070,\"MUBUR\" ],\n [2105070005,2105070,\"PAYALAMAN\" ],\n [2105070008,2105070,\"PUTIK\" ],\n [2105070009,2105070,\"BAYAT\" ],\n [2105070010,2105070,\"PIABUNG\" ],\n [2105070011,2105070,\"LANGIR\" ],\n [2105070012,2105070,\"CANDI\" ],\n [2105070013,2105070,\"PIASAN\" ],\n [2105070014,2105070,\"BELIBAK\" ],\n [2105070015,2105070,\"TELUK BAYUR\" ],\n [2105070016,2105070,\"MATAK\" ],\n [2105070017,2105070,\"PAYAMARAM\" ],\n [2105070018,2105070,\"BATU AMPAR\" ],\n [2171010001,2171010,\"PULAU TERONG\" ],\n [2171010002,2171010,\"PECONG\" ],\n [2171010003,2171010,\"KASU\" ],\n [2171010004,2171010,\"PEMPING\" ],\n [2171010006,2171010,\"TANJUNG SARI\" ],\n [2171010007,2171010,\"SEKANAK RAYA\" ],\n [2171020001,2171020,\"PANTAI GELAM\" ],\n [2171020002,2171020,\"TEMOYONG\" ],\n [2171020003,2171020,\"PULAU SETOKOK\" ],\n [2171020004,2171020,\"BATU LEGONG\" ],\n [2171020005,2171020,\"BULANG LINTANG\" ],\n [2171020006,2171020,\"PULAU BULUH\" ],\n [2171030001,2171030,\"PULAU ABANG\" ],\n [2171030002,2171030,\"KARAS\" ],\n [2171030003,2171030,\"SIJANTUNG\" ],\n [2171030004,2171030,\"SEMBULANG\" ],\n [2171030005,2171030,\"REMPANG CATE\" ],\n [2171030006,2171030,\"SUBANG MAS\" ],\n [2171030007,2171030,\"GALANG BARU\" ],\n [2171030008,2171030,\"AIR RAJA\" ],\n [2171040003,2171040,\"TANJUNG PIAYU\" ],\n [2171040004,2171040,\"MUKA KUNING\" ],\n [2171040005,2171040,\"DURIANGKANG\" ],\n [2171040006,2171040,\"MANGSANG\" ],\n [2171041001,2171041,\"TEMBESI\" ],\n [2171041002,2171041,\"SUNGAI BINTI\" ],\n [2171041003,2171041,\"SUNGAI LEKOP\" ],\n [2171041004,2171041,\"SAGULUNG KOTA\" ],\n [2171041005,2171041,\"SUNGAI LANGKAI\" ],\n [2171041006,2171041,\"SUNGAI PELUNGGUT\" ],\n [2171050001,2171050,\"NGENANG\" ],\n [2171050002,2171050,\"KABIL\" ],\n [2171050003,2171050,\"BATU BESAR\" ],\n [2171050008,2171050,\"SAMBAU\" ],\n [2171051001,2171051,\"TAMAN BALOI\" ],\n [2171051002,2171051,\"BALOI PERMAI\" ],\n [2171051003,2171051,\"BELIAN\" ],\n [2171051004,2171051,\"TELUK TERING\" ],\n [2171051005,2171051,\"SUNGAI PANAS\" ],\n [2171051006,2171051,\"SUKAJADI\" ],\n [2171060002,2171060,\"TANJUNG RIAU\" ],\n [2171060003,2171060,\"TIBAN BARU\" ],\n [2171060004,2171060,\"TIBAN LAMA\" ],\n [2171060005,2171060,\"TIBAN INDAH\" ],\n [2171060006,2171060,\"PATAM LESTARI\" ],\n [2171060007,2171060,\"SUNGAI HARAPAN\" ],\n [2171060008,2171060,\"TANJUNG PINGGIR\" ],\n [2171061001,2171061,\"TANJUNG UNCANG\" ],\n [2171061002,2171061,\"BUKIT TEMPAYAN\" ],\n [2171061003,2171061,\"BULIANG\" ],\n [2171061004,2171061,\"KIBING\" ],\n [2171070001,2171070,\"BALOI INDAH\" ],\n [2171070002,2171070,\"BATU SELICIN\" ],\n [2171070003,2171070,\"KAMPUNG PELITA\" ],\n [2171070004,2171070,\"LUBUK BAJA KOTA\" ],\n [2171070005,2171070,\"TANJUNG UMA\" ],\n [2171080004,2171080,\"KAMPUNG SERAYA\" ],\n [2171080005,2171080,\"SUNGAI JODOH\" ],\n [2171080007,2171080,\"TANJUNG SENGKUANG\" ],\n [2171080008,2171080,\"BATU MERAH\" ],\n [2171081001,2171081,\"BENGKONG LAUT\" ],\n [2171081002,2171081,\"BENGKONG INDAH\" ],\n [2171081003,2171081,\"SADAI\" ],\n [2171081004,2171081,\"TANJUNG BUNTUNG\" ],\n [2172010001,2172010,\"DOMPAK\" ],\n [2172010002,2172010,\"TANJUNGPINANG TIMUR\" ],\n [2172010003,2172010,\"TANJUNG AYUN SAKTI\" ],\n [2172010004,2172010,\"SEI JANG\" ],\n [2172010005,2172010,\"TANJUNG UNGGAT\" ],\n [2172020001,2172020,\"BATU SEMBILAN\" ],\n [2172020002,2172020,\"MELAYU KOTA PIRING\" ],\n [2172020003,2172020,\"AIR RAJA\" ],\n [2172020004,2172020,\"PINANG KENCANA\" ],\n [2172020005,2172020,\"KAMPUNG BULANG\" ],\n [2172030001,2172030,\"TANJUNGPINANG KOTA\" ],\n [2172030002,2172030,\"PENYENGAT\" ],\n [2172030003,2172030,\"KAMPUNG BUGIS\" ],\n [2172030004,2172030,\"SENGGARANG\" ],\n [2172040001,2172040,\"TANJUNGPINANG BARAT\" ],\n [2172040002,2172040,\"KEMBOJA\" ],\n [2172040003,2172040,\"KAMPUNG BARU\" ],\n [2172040004,2172040,\"BUKIT CERMIN\" ],\n [3101010001,3101010,\"PULAU TIDUNG\" ],\n [3101010002,3101010,\"PULAU PARI\" ],\n [3101010003,3101010,\"PULAU UNTUNG JAWA\" ],\n [3101020001,3101020,\"PULAU PANGGANG\" ],\n [3101020002,3101020,\"PULAU KELAPA\" ],\n [3101020003,3101020,\"PULAU HARAPAN\" ],\n [3171010001,3171010,\"CIPEDAK\" ],\n [3171010002,3171010,\"SRENGSENG SAWAH\" ],\n [3171010003,3171010,\"CIGANJUR\" ],\n [3171010004,3171010,\"JAGAKARSA\" ],\n [3171010005,3171010,\"LENTENG AGUNG\" ],\n [3171010006,3171010,\"TANJUNG BARAT\" ],\n [3171020001,3171020,\"CILANDAK TIMUR\" ],\n [3171020002,3171020,\"RAGUNAN\" ],\n [3171020003,3171020,\"KEBAGUSAN\" ],\n [3171020004,3171020,\"PASAR MINGGU\" ],\n [3171020005,3171020,\"JATI PADANG\" ],\n [3171020006,3171020,\"PEJATEN BARAT\" ],\n [3171020007,3171020,\"PEJATEN TIMUR\" ],\n [3171030001,3171030,\"LEBAK BULUS\" ],\n [3171030002,3171030,\"PONDOK LABU\" ],\n [3171030003,3171030,\"CILANDAK BARAT\" ],\n [3171030004,3171030,\"GANDARIA SELATAN\" ],\n [3171030005,3171030,\"CIPETE SELATAN\" ],\n [3171040001,3171040,\"BINTARO\" ],\n [3171040002,3171040,\"PESANGGRAHAN\" ],\n [3171040003,3171040,\"ULUJAMI\" ],\n [3171040004,3171040,\"PETUKANGAN SELATAN\" ],\n [3171040005,3171040,\"PETUKANGAN UTARA\" ],\n [3171050001,3171050,\"PONDOK PINANG\" ],\n [3171050002,3171050,\"KEBAYORAN LAMA SELATAN\" ],\n [3171050003,3171050,\"KEBAYORAN LAMA UTARA\" ],\n [3171050004,3171050,\"CIPULIR\" ],\n [3171050005,3171050,\"GROGOL SELATAN\" ],\n [3171050006,3171050,\"GROGOL UTARA\" ],\n [3171060001,3171060,\"GANDARIA UTARA\" ],\n [3171060002,3171060,\"CIPETE UTARA\" ],\n [3171060003,3171060,\"PULO\" ],\n [3171060004,3171060,\"PETOGOGAN\" ],\n [3171060005,3171060,\"MELAWAI\" ],\n [3171060006,3171060,\"KRAMAT PELA\" ],\n [3171060007,3171060,\"GUNUNG\" ],\n [3171060008,3171060,\"SELONG\" ],\n [3171060009,3171060,\"RAWA BARAT\" ],\n [3171060010,3171060,\"SENAYAN\" ],\n [3171070001,3171070,\"BANGKA\" ],\n [3171070002,3171070,\"PELA MAMPANG\" ],\n [3171070003,3171070,\"TEGAL PARANG\" ],\n [3171070004,3171070,\"MAMPANG PRAPATAN\" ],\n [3171070005,3171070,\"KUNINGAN BARAT\" ],\n [3171080001,3171080,\"KALIBATA\" ],\n [3171080002,3171080,\"RAWAJATI\" ],\n [3171080003,3171080,\"DUREN TIGA\" ],\n [3171080004,3171080,\"PANCORAN\" ],\n [3171080005,3171080,\"PENGADEGAN\" ],\n [3171080006,3171080,\"CIKOKO\" ],\n [3171090001,3171090,\"MENTENG DALAM\" ],\n [3171090002,3171090,\"TEBET BARAT\" ],\n [3171090003,3171090,\"TEBET TIMUR\" ],\n [3171090004,3171090,\"KEBON BARU\" ],\n [3171090005,3171090,\"BUKIT DURI\" ],\n [3171090006,3171090,\"MANGGARAI SELATAN\" ],\n [3171090007,3171090,\"MANGGARAI\" ],\n [3171100001,3171100,\"KARET SEMANGGI\" ],\n [3171100002,3171100,\"KUNINGAN TIMUR\" ],\n [3171100003,3171100,\"KARET KUNINGAN\" ],\n [3171100004,3171100,\"KARET\" ],\n [3171100005,3171100,\"MENTENG ATAS\" ],\n [3171100006,3171100,\"PASAR MANGGIS\" ],\n [3171100007,3171100,\"GUNTUR\" ],\n [3171100008,3171100,\"SETIA BUDI\" ],\n [3172010001,3172010,\"PEKAYON\" ],\n [3172010002,3172010,\"KALISARI\" ],\n [3172010003,3172010,\"BARU\" ],\n [3172010004,3172010,\"CIJANTUNG\" ],\n [3172010005,3172010,\"GEDONG\" ],\n [3172020001,3172020,\"CIBUBUR\" ],\n [3172020002,3172020,\"KELAPA DUA WETAN\" ],\n [3172020003,3172020,\"CIRACAS\" ],\n [3172020004,3172020,\"SUSUKAN\" ],\n [3172020005,3172020,\"RAMBUTAN\" ],\n [3172030001,3172030,\"PONDOK RANGGON\" ],\n [3172030002,3172030,\"CILANGKAP\" ],\n [3172030003,3172030,\"MUNJUL\" ],\n [3172030004,3172030,\"CIPAYUNG\" ],\n [3172030005,3172030,\"SETU\" ],\n [3172030006,3172030,\"BAMBU APUS\" ],\n [3172030007,3172030,\"CEGER\" ],\n [3172030008,3172030,\"LUBANG BUAYA\" ],\n [3172040001,3172040,\"PINANG RANTI\" ],\n [3172040002,3172040,\"MAKASAR\" ],\n [3172040003,3172040,\"KEBON PALA\" ],\n [3172040004,3172040,\"HALIM PERDANA KUSUMAH\" ],\n [3172040005,3172040,\"CIPINANG MELAYU\" ],\n [3172050001,3172050,\"BALE KAMBANG\" ],\n [3172050002,3172050,\"BATU AMPAR\" ],\n [3172050003,3172050,\"KAMPUNG TENGAH\" ],\n [3172050004,3172050,\"DUKUH\" ],\n [3172050005,3172050,\"KRAMAT JATI\" ],\n [3172050006,3172050,\"CILILITAN\" ],\n [3172050007,3172050,\"CAWANG\" ],\n [3172060001,3172060,\"BIDARA CINA\" ],\n [3172060002,3172060,\"CIPINANG CEMPEDAK\" ],\n [3172060003,3172060,\"CIPINANG BESAR SELATAN\" ],\n [3172060004,3172060,\"CIPINANG MUARA\" ],\n [3172060005,3172060,\"CIPINANG BESAR UTARA\" ],\n [3172060006,3172060,\"RAWA BUNGA\" ],\n [3172060007,3172060,\"BALI MESTER\" ],\n [3172060008,3172060,\"KAMPUNG MELAYU\" ],\n [3172070001,3172070,\"PONDOK BAMBU\" ],\n [3172070002,3172070,\"DUREN SAWIT\" ],\n [3172070003,3172070,\"PONDOK KELAPA\" ],\n [3172070004,3172070,\"PONDOK KOPI\" ],\n [3172070005,3172070,\"MALAKA JAYA\" ],\n [3172070006,3172070,\"MALAKA SARI\" ],\n [3172070007,3172070,\"KLENDER\" ],\n [3172080001,3172080,\"JATINEGARA\" ],\n [3172080002,3172080,\"PENGGILINGAN\" ],\n [3172080003,3172080,\"PULO GEBANG\" ],\n [3172080004,3172080,\"UJUNG MENTENG\" ],\n [3172080005,3172080,\"CAKUNG TIMUR\" ],\n [3172080006,3172080,\"CAKUNG BARAT\" ],\n [3172080007,3172080,\"RAWA TERATE\" ],\n [3172090001,3172090,\"PISANGAN TIMUR\" ],\n [3172090002,3172090,\"CIPINANG\" ],\n [3172090003,3172090,\"JATINEGARA KAUM\" ],\n [3172090004,3172090,\"JATI\" ],\n [3172090005,3172090,\"RAWAMANGUN\" ],\n [3172090006,3172090,\"KAYU PUTIH\" ],\n [3172090007,3172090,\"PULO GADUNG\" ],\n [3172100001,3172100,\"KEBON MANGGIS\" ],\n [3172100002,3172100,\"PAL MERIEM\" ],\n [3172100003,3172100,\"PISANGAN BARU\" ],\n [3172100004,3172100,\"KAYU MANIS\" ],\n [3172100005,3172100,\"UTAN KAYU SELATAN\" ],\n [3172100006,3172100,\"UTAN KAYU UTARA\" ],\n [3173010001,3173010,\"GELORA\" ],\n [3173010002,3173010,\"BENDUNGAN HILIR\" ],\n [3173010003,3173010,\"KARET TENGSIN\" ],\n [3173010004,3173010,\"KEBON MELATI\" ],\n [3173010005,3173010,\"PETAMBURAN\" ],\n [3173010006,3173010,\"KEBON KACANG\" ],\n [3173010007,3173010,\"KAMPUNG BALI\" ],\n [3173020001,3173020,\"MENTENG\" ],\n [3173020002,3173020,\"PEGANGSAAN\" ],\n [3173020003,3173020,\"CIKINI\" ],\n [3173020004,3173020,\"GONDANGDIA\" ],\n [3173020005,3173020,\"KEBON SIRIH\" ],\n [3173030001,3173030,\"KENARI\" ],\n [3173030002,3173030,\"PASEBAN\" ],\n [3173030003,3173030,\"KRAMAT\" ],\n [3173030004,3173030,\"KWITANG\" ],\n [3173030005,3173030,\"SENEN\" ],\n [3173030006,3173030,\"BUNGUR\" ],\n [3173040001,3173040,\"JOHAR BARU\" ],\n [3173040002,3173040,\"KAMPUNG RAWA\" ],\n [3173040003,3173040,\"TANAH TINGGI\" ],\n [3173040004,3173040,\"GALUR\" ],\n [3173050001,3173050,\"RAWA SARI\" ],\n [3173050002,3173050,\"CEMPAKA PUTIH TIMUR\" ],\n [3173050003,3173050,\"CEMPAKA PUTIH BARAT\" ],\n [3173060001,3173060,\"HARAPAN MULYA\" ],\n [3173060002,3173060,\"CEMPAKA BARU\" ],\n [3173060003,3173060,\"SUMUR BATU\" ],\n [3173060004,3173060,\"SERDANG\" ],\n [3173060005,3173060,\"UTAN PANJANG\" ],\n [3173060006,3173060,\"KEBON KOSONG\" ],\n [3173060007,3173060,\"KEMAYORAN\" ],\n [3173060008,3173060,\"GUNUNG SAHARI SELATAN\" ],\n [3173070001,3173070,\"PASAR BARU\" ],\n [3173070002,3173070,\"GUNUNG SAHARI UTARA\" ],\n [3173070003,3173070,\"KARTINI\" ],\n [3173070004,3173070,\"KARANG ANYAR\" ],\n [3173070005,3173070,\"MANGGA DUA SELATAN\" ],\n [3173080001,3173080,\"CIDENG\" ],\n [3173080002,3173080,\"PETOJO SELATAN\" ],\n [3173080003,3173080,\"GAMBIR\" ],\n [3173080004,3173080,\"KEBON KELAPA\" ],\n [3173080005,3173080,\"PETOJO UTARA\" ],\n [3173080006,3173080,\"DURI PULO\" ],\n [3174010001,3174010,\"JOGLO\" ],\n [3174010002,3174010,\"SRENGSENG\" ],\n [3174010003,3174010,\"MERUYA SELATAN\" ],\n [3174010004,3174010,\"MERUYA UTARA\" ],\n [3174010005,3174010,\"KEMBANGAN SELATAN\" ],\n [3174010006,3174010,\"KEMBANGAN UTARA\" ],\n [3174020001,3174020,\"SUKABUMI SELATAN\" ],\n [3174020002,3174020,\"SUKABUMI UTARA\" ],\n [3174020003,3174020,\"KELAPA DUA\" ],\n [3174020004,3174020,\"KEBON JERUK\" ],\n [3174020005,3174020,\"DURI KEPA\" ],\n [3174020006,3174020,\"KEDOYA SELATAN\" ],\n [3174020007,3174020,\"KEDOYA UTARA\" ],\n [3174030001,3174030,\"PALMERAH\" ],\n [3174030002,3174030,\"SLIPI\" ],\n [3174030003,3174030,\"KEMANGGISAN\" ],\n [3174030004,3174030,\"KOTA BAMBU UTARA\" ],\n [3174030005,3174030,\"KOTA BAMBU SELATAN\" ],\n [3174030006,3174030,\"JATI PULO\" ],\n [3174040001,3174040,\"TANJUNG DUREN UTARA\" ],\n [3174040002,3174040,\"TANJUNG DUREN SELATAN\" ],\n [3174040003,3174040,\"TOMANG\" ],\n [3174040004,3174040,\"GROGOL\" ],\n [3174040005,3174040,\"JELAMBAR\" ],\n [3174040006,3174040,\"WIJAYA KESUMA\" ],\n [3174040007,3174040,\"JELAMBAR BARU\" ],\n [3174050001,3174050,\"KALIANYAR\" ],\n [3174050002,3174050,\"DURI SELATAN\" ],\n [3174050003,3174050,\"TANAH SEREAL\" ],\n [3174050004,3174050,\"DURI UTARA\" ],\n [3174050005,3174050,\"KRENDANG\" ],\n [3174050006,3174050,\"JEMBATAN BESI\" ],\n [3174050007,3174050,\"ANGKE\" ],\n [3174050008,3174050,\"JEMBATAN LIMA\" ],\n [3174050009,3174050,\"TAMBORA\" ],\n [3174050010,3174050,\"ROA MALAKA\" ],\n [3174050011,3174050,\"PEKOJAN\" ],\n [3174060001,3174060,\"KRUKUT\" ],\n [3174060002,3174060,\"MAPHAR\" ],\n [3174060003,3174060,\"TAMAN SARI\" ],\n [3174060004,3174060,\"TANGKI\" ],\n [3174060005,3174060,\"MANGGA BESAR\" ],\n [3174060006,3174060,\"KEAGUNGAN\" ],\n [3174060007,3174060,\"GLODOK\" ],\n [3174060008,3174060,\"PINANGSIA\" ],\n [3174070001,3174070,\"DURI KOSAMBI\" ],\n [3174070002,3174070,\"RAWA BUAYA\" ],\n [3174070003,3174070,\"KEDAUNG KALI ANGKE\" ],\n [3174070004,3174070,\"KAPUK\" ],\n [3174070005,3174070,\"CENGKARENG TIMUR\" ],\n [3174070006,3174070,\"CENGKARENG BARAT\" ],\n [3174080001,3174080,\"SEMANAN\" ],\n [3174080002,3174080,\"KALIDERES\" ],\n [3174080003,3174080,\"PEGADUNGAN\" ],\n [3174080004,3174080,\"TEGAL ALUR\" ],\n [3174080005,3174080,\"KAMAL\" ],\n [3175010001,3175010,\"KAMAL MUARA\" ],\n [3175010002,3175010,\"KAPUK MUARA\" ],\n [3175010003,3175010,\"PEJAGALAN\" ],\n [3175010004,3175010,\"PENJARINGAN\" ],\n [3175010005,3175010,\"PLUIT\" ],\n [3175020001,3175020,\"PADEMANGAN BARAT\" ],\n [3175020002,3175020,\"PADEMANGAN TIMUR\" ],\n [3175020003,3175020,\"ANCOL\" ],\n [3175030001,3175030,\"SUNTER AGUNG\" ],\n [3175030002,3175030,\"SUNTER JAYA\" ],\n [3175030003,3175030,\"PAPANGO\" ],\n [3175030004,3175030,\"WARAKAS\" ],\n [3175030005,3175030,\"SUNGAI BAMBU\" ],\n [3175030006,3175030,\"KEBON BAWANG\" ],\n [3175030007,3175030,\"TANJUNG PRIUK\" ],\n [3175040001,3175040,\"RAWABADAK SELATAN\" ],\n [3175040002,3175040,\"TUGU SELATAN\" ],\n [3175040003,3175040,\"TUGU UTARA\" ],\n [3175040004,3175040,\"LAGOA\" ],\n [3175040005,3175040,\"RAWABADAK UTARA\" ],\n [3175040006,3175040,\"KOJA\" ],\n [3175050001,3175050,\"KELAPA GADING BARAT\" ],\n [3175050002,3175050,\"KELAPA GADING TIMUR\" ],\n [3175050003,3175050,\"PEGANGSAAN DUA\" ],\n [3175060001,3175060,\"SUKA PURA\" ],\n [3175060002,3175060,\"ROROTAN\" ],\n [3175060003,3175060,\"MARUNDA\" ],\n [3175060004,3175060,\"CILINCING\" ],\n [3175060005,3175060,\"SEMPER TIMUR\" ],\n [3175060006,3175060,\"SEMPER BARAT\" ],\n [3175060007,3175060,\"KALI BARU\" ],\n [3201010001,3201010,\"MALASARI\" ],\n [3201010002,3201010,\"BANTAR KARET\" ],\n [3201010003,3201010,\"CISARUA\" ],\n [3201010004,3201010,\"CURUG BITUNG\" ],\n [3201010005,3201010,\"NANGGUNG\" ],\n [3201010006,3201010,\"PANGKAL JAYA\" ],\n [3201010007,3201010,\"SUKALUYU\" ],\n [3201010008,3201010,\"HAMBARO\" ],\n [3201010009,3201010,\"KALONG LIUD\" ],\n [3201010010,3201010,\"PARAKAN MUNCANG\" ],\n [3201010011,3201010,\"BATU TULIS\" ],\n [3201020001,3201020,\"PURASARI\" ],\n [3201020002,3201020,\"PURASEDA\" ],\n [3201020003,3201020,\"KARYASARI\" ],\n [3201020004,3201020,\"PABANGBON\" ],\n [3201020005,3201020,\"KARACAK\" ],\n [3201020006,3201020,\"BARENGKOK\" ],\n [3201020007,3201020,\"CIBEBER II\" ],\n [3201020016,3201020,\"CIBEBER I\" ],\n [3201020017,3201020,\"LEUWIMEKAR\" ],\n [3201020018,3201020,\"LEUWILIANG\" ],\n [3201020019,3201020,\"KAREHKEL\" ],\n [3201021001,3201021,\"WANGUN JAYA\" ],\n [3201021002,3201021,\"SADENGKOLOT\" ],\n [3201021003,3201021,\"LEUWISADENG\" ],\n [3201021004,3201021,\"SIBANTENG\" ],\n [3201021005,3201021,\"BABAKAN SADENG\" ],\n [3201021006,3201021,\"SADENG\" ],\n [3201021007,3201021,\"KALONG II\" ],\n [3201021008,3201021,\"KALONG I\" ],\n [3201030001,3201030,\"CIBUNIAN\" ],\n [3201030002,3201030,\"PURWABAKTI\" ],\n [3201030003,3201030,\"CIASMARA\" ],\n [3201030004,3201030,\"CIASIHAN\" ],\n [3201030005,3201030,\"GUNUNG SARI\" ],\n [3201030006,3201030,\"GUNUNG BUNDER 2\" ],\n [3201030007,3201030,\"GUNUNG BUNDER 1\" ],\n [3201030008,3201030,\"CIBENING\" ],\n [3201030009,3201030,\"GUNUNG PICUNG\" ],\n [3201030010,3201030,\"CIBITUNG KULON\" ],\n [3201030011,3201030,\"CIBITUNG WETAN\" ],\n [3201030012,3201030,\"PAMIJAHAN\" ],\n [3201030013,3201030,\"PASAREAN\" ],\n [3201030014,3201030,\"GUNUNG MENYAN\" ],\n [3201030015,3201030,\"CIMAYANG\" ],\n [3201040001,3201040,\"SITU UDIK\" ],\n [3201040002,3201040,\"SITU ILIR\" ],\n [3201040003,3201040,\"CIBATOK 2\" ],\n [3201040004,3201040,\"CIARUTEN UDIK\" ],\n [3201040005,3201040,\"CIBATOK 1\" ],\n [3201040006,3201040,\"SUKAMAJU\" ],\n [3201040007,3201040,\"CEMPLANG\" ],\n [3201040008,3201040,\"GALUGA\" ],\n [3201040009,3201040,\"DUKUH\" ],\n [3201040010,3201040,\"CIMANGGU 2\" ],\n [3201040011,3201040,\"CIMANGGU 1\" ],\n [3201040012,3201040,\"GIRIMULYA\" ],\n [3201040013,3201040,\"LEUWEUNG KOLOT\" ],\n [3201040014,3201040,\"CIARUTEN ILIR\" ],\n [3201040015,3201040,\"CIJUJUNG\" ],\n [3201050004,3201050,\"CIAMPEA UDIK\" ],\n [3201050008,3201050,\"CINANGKA\" ],\n [3201050009,3201050,\"CIBUNTU\" ],\n [3201050010,3201050,\"CICADAS\" ],\n [3201050011,3201050,\"TEGAL WARU\" ],\n [3201050012,3201050,\"BOJONG JENGKOL\" ],\n [3201050013,3201050,\"CIHIDEUNG UDIK\" ],\n [3201050014,3201050,\"CIHIDEUNG ILIR\" ],\n [3201050015,3201050,\"CIBANTENG\" ],\n [3201050016,3201050,\"BOJONG RANGKAS\" ],\n [3201050017,3201050,\"CIBADAK\" ],\n [3201050018,3201050,\"BENTENG\" ],\n [3201050019,3201050,\"CIAMPEA\" ],\n [3201051001,3201051,\"TAPOS 1\" ],\n [3201051002,3201051,\"GUNUNG MALANG\" ],\n [3201051003,3201051,\"TAPOS 2\" ],\n [3201051004,3201051,\"SITU DAUN\" ],\n [3201051005,3201051,\"CIBITUNG TENGAH\" ],\n [3201051006,3201051,\"CINANGNENG\" ],\n [3201051007,3201051,\"GUNUNG MULYA\" ],\n [3201060001,3201060,\"PURWASARI\" ],\n [3201060002,3201060,\"PETIR\" ],\n [3201060003,3201060,\"SUKADAMAI\" ],\n [3201060004,3201060,\"SUKAWENING\" ],\n [3201060005,3201060,\"NEGLASARI\" ],\n [3201060006,3201060,\"SINAR SARI\" ],\n [3201060007,3201060,\"CIHERANG\" ],\n [3201060008,3201060,\"DRAMAGA\" ],\n [3201060009,3201060,\"BABAKAN\" ],\n [3201060010,3201060,\"CIKARAWANG\" ],\n [3201070009,3201070,\"KOTA BATU\" ],\n [3201070010,3201070,\"MEKARJAYA\" ],\n [3201070011,3201070,\"PARAKAN\" ],\n [3201070012,3201070,\"CIOMAS\" ],\n [3201070013,3201070,\"PAGELARAN\" ],\n [3201070014,3201070,\"SUKAMAKMUR\" ],\n [3201070015,3201070,\"CIAPUS\" ],\n [3201070016,3201070,\"SUKAHARJA\" ],\n [3201070017,3201070,\"PADASUKA\" ],\n [3201070018,3201070,\"CIOMAS RAHAYU\" ],\n [3201070019,3201070,\"LALADON\" ],\n [3201071001,3201071,\"SUKAJADI\" ],\n [3201071002,3201071,\"SUKALUYU\" ],\n [3201071003,3201071,\"SUKAJAYA\" ],\n [3201071004,3201071,\"SUKARESMI\" ],\n [3201071005,3201071,\"PASIR EURIH\" ],\n [3201071006,3201071,\"TAMAN SARI\" ],\n [3201071007,3201071,\"SUKAMANTRI\" ],\n [3201071008,3201071,\"SIRNAGALIH\" ],\n [3201080010,3201080,\"WARUNG MENTENG\" ],\n [3201080011,3201080,\"CIJERUK\" ],\n [3201080012,3201080,\"CIPELANG\" ],\n [3201080013,3201080,\"CIBALUNG\" ],\n [3201080014,3201080,\"CIPICUNG\" ],\n [3201080015,3201080,\"TANJUNG SARI\" ],\n [3201080016,3201080,\"TAJUR HALANG\" ],\n [3201080017,3201080,\"PALASARI\" ],\n [3201080018,3201080,\"SUKAHARJA\" ],\n [3201081001,3201081,\"TUGU JAYA\" ],\n [3201081002,3201081,\"CIGOMBONG\" ],\n [3201081003,3201081,\"WATES JAYA\" ],\n [3201081004,3201081,\"SROGOL\" ],\n [3201081005,3201081,\"CIBURUY\" ],\n [3201081006,3201081,\"CISALADA\" ],\n [3201081007,3201081,\"PASIR JAYA\" ],\n [3201081008,3201081,\"CIBURAYUT\" ],\n [3201081009,3201081,\"CIADEG\" ],\n [3201090001,3201090,\"PASIR BUNCIR\" ],\n [3201090002,3201090,\"CINAGARA\" ],\n [3201090003,3201090,\"TANGKIL\" ],\n [3201090004,3201090,\"PASIR MUNCANG\" ],\n [3201090005,3201090,\"MUARA JAYA\" ],\n [3201090006,3201090,\"CARINGIN\" ],\n [3201090007,3201090,\"LEMAH DUHUR\" ],\n [3201090008,3201090,\"CIMANDE\" ],\n [3201090009,3201090,\"PANCAWATI\" ],\n [3201090010,3201090,\"CIDERUM\" ],\n [3201090011,3201090,\"CIHERANG PONDOK\" ],\n [3201090012,3201090,\"CIMANDE HILIR\" ],\n [3201100001,3201100,\"CILEUNGSI\" ],\n [3201100002,3201100,\"CITAPEN\" ],\n [3201100003,3201100,\"CIBEDUG\" ],\n [3201100004,3201100,\"BOJONG MURNI\" ],\n [3201100005,3201100,\"JAMBU LUWUK\" ],\n [3201100006,3201100,\"BANJAR SARI\" ],\n [3201100007,3201100,\"BANJAR WANGI\" ],\n [3201100008,3201100,\"BITUNG SARI\" ],\n [3201100009,3201100,\"TELUK PINANG\" ],\n [3201100010,3201100,\"BANJAR WARU\" ],\n [3201100011,3201100,\"CIAWI\" ],\n [3201100012,3201100,\"BENDUNGAN\" ],\n [3201100013,3201100,\"PANDANSARI\" ],\n [3201110001,3201110,\"CITEKO\" ],\n [3201110002,3201110,\"CIBEUREUM\" ],\n [3201110003,3201110,\"TUGU SELATAN\" ],\n [3201110004,3201110,\"TUGU UTARA\" ],\n [3201110005,3201110,\"BATU LAYANG\" ],\n [3201110006,3201110,\"CISARUA\" ],\n [3201110007,3201110,\"KOPO\" ],\n [3201110008,3201110,\"LEUWIMALANG\" ],\n [3201110009,3201110,\"JOGJOGAN\" ],\n [3201110010,3201110,\"CILEMBER\" ],\n [3201120001,3201120,\"SUKARESMI\" ],\n [3201120002,3201120,\"SUKAGALIH\" ],\n [3201120003,3201120,\"KUTA\" ],\n [3201120004,3201120,\"SUKAKARYA\" ],\n [3201120005,3201120,\"SUKAMANAH\" ],\n [3201120006,3201120,\"SUKAMAJU\" ],\n [3201120007,3201120,\"SUKAMAHI\" ],\n [3201120008,3201120,\"GADOG\" ],\n [3201120009,3201120,\"CIPAYUNG\" ],\n [3201120010,3201120,\"CIPAYUNG GIRANG\" ],\n [3201120011,3201120,\"MEGAMENDUNG\" ],\n [3201120012,3201120,\"PASIR ANGIN\" ],\n [3201130001,3201130,\"CIBANON\" ],\n [3201130002,3201130,\"GUNUNG GEULIS\" ],\n [3201130003,3201130,\"NAGRAK\" ],\n [3201130004,3201130,\"SUKATANI\" ],\n [3201130005,3201130,\"SUKARAJA\" ],\n [3201130006,3201130,\"CIKEAS\" ],\n [3201130007,3201130,\"CADAS NGAMPAR\" ],\n [3201130008,3201130,\"PASIRLAJA\" ],\n [3201130009,3201130,\"CIJUJUNG\" ],\n [3201130010,3201130,\"CIMANDALA\" ],\n [3201130011,3201130,\"PASIR JAMBU\" ],\n [3201130012,3201130,\"CILEBUT TIMUR\" ],\n [3201130013,3201130,\"CILEBUT BARAT\" ],\n [3201140001,3201140,\"CIJAYANTI\" ],\n [3201140002,3201140,\"BOJONG KONENG\" ],\n [3201140003,3201140,\"KARANG TENGAH\" ],\n [3201140004,3201140,\"SUMUR BATU\" ],\n [3201140005,3201140,\"BABAKAN MADANG\" ],\n [3201140006,3201140,\"CITARINGGUL\" ],\n [3201140007,3201140,\"CIPAMBUAN\" ],\n [3201140008,3201140,\"KADUMANGU\" ],\n [3201140009,3201140,\"SENTUL\" ],\n [3201150001,3201150,\"SUKAWANGI\" ],\n [3201150002,3201150,\"SUKAHARJA\" ],\n [3201150003,3201150,\"WARGAJAYA\" ],\n [3201150004,3201150,\"SIRNAJAYA\" ],\n [3201150005,3201150,\"SUKAMULYA\" ],\n [3201150006,3201150,\"SUKAMAKMUR\" ],\n [3201150007,3201150,\"CIBADAK\" ],\n [3201150008,3201150,\"PABUARAN\" ],\n [3201150009,3201150,\"SUKADAMAI\" ],\n [3201150010,3201150,\"SUKARESMI\" ],\n [3201160011,3201160,\"KARYA MEKAR\" ],\n [3201160012,3201160,\"BANTAR KUNING\" ],\n [3201160013,3201160,\"CIKUTAMAHI\" ],\n [3201160014,3201160,\"CIBATU TIGA\" ],\n [3201160015,3201160,\"MEKARWANGI\" ],\n [3201160016,3201160,\"TEGAL PANJANG\" ],\n [3201160017,3201160,\"CARIU\" ],\n [3201160018,3201160,\"KUTA MEKAR\" ],\n [3201160019,3201160,\"SUKAJADI\" ],\n [3201160020,3201160,\"BABAKAN RADEN\" ],\n [3201161001,3201161,\"CIBADAK\" ],\n [3201161002,3201161,\"TANJUNG SARI\" ],\n [3201161003,3201161,\"SINARSARI\" ],\n [3201161004,3201161,\"SINARRASA\" ],\n [3201161005,3201161,\"BUANAJAYA\" ],\n [3201161006,3201161,\"ANTAJAYA\" ],\n [3201161007,3201161,\"PASIR TANJUNG\" ],\n [3201161008,3201161,\"TANJUNG RASA\" ],\n [3201161009,3201161,\"SUKARASA\" ],\n [3201161010,3201161,\"SELAWANGI\" ],\n [3201170001,3201170,\"SUKAJAYA\" ],\n [3201170002,3201170,\"SUKANEGARA\" ],\n [3201170003,3201170,\"CIBODAS\" ],\n [3201170004,3201170,\"SINGASARI\" ],\n [3201170005,3201170,\"SINGAJAYA\" ],\n [3201170006,3201170,\"SUKASIRNA\" ],\n [3201170007,3201170,\"BALEKAMBANG\" ],\n [3201170008,3201170,\"BENDUNGAN\" ],\n [3201170009,3201170,\"SIRNAGALIH\" ],\n [3201170010,3201170,\"JONGGOL\" ],\n [3201170011,3201170,\"SUKAMAJU\" ],\n [3201170012,3201170,\"SUKAMANAH\" ],\n [3201170013,3201170,\"WENINGGALIH\" ],\n [3201170014,3201170,\"SUKAGALIH\" ],\n [3201180010,3201180,\"DAYEUH\" ],\n [3201180011,3201180,\"MAMPIR\" ],\n [3201180012,3201180,\"SETU SARI\" ],\n [3201180013,3201180,\"CIPEUCANG\" ],\n [3201180014,3201180,\"JATISARI\" ],\n [3201180015,3201180,\"GANDOANG\" ],\n [3201180016,3201180,\"MEKARSARI\" ],\n [3201180017,3201180,\"CILEUNGSI KIDUL\" ],\n [3201180018,3201180,\"CILEUNGSI\" ],\n [3201180019,3201180,\"LIMUS NUNGGAL\" ],\n [3201180020,3201180,\"PASIR ANGIN\" ],\n [3201180021,3201180,\"CIPENJO\" ],\n [3201181001,3201181,\"LEUWIKARET\" ],\n [3201181002,3201181,\"LULUT\" ],\n [3201181003,3201181,\"BANTAR JATI\" ],\n [3201181004,3201181,\"NAMBO\" ],\n [3201181005,3201181,\"KEMBANG KUNING\" ],\n [3201181006,3201181,\"KELAPA NUNGGAL\" ],\n [3201181007,3201181,\"LIGARMUKTI\" ],\n [3201181008,3201181,\"BOJONG\" ],\n [3201181009,3201181,\"CIKAHURIPAN\" ],\n [3201190001,3201190,\"KARANGGAN\" ],\n [3201190002,3201190,\"GUNUNG PUTRI\" ],\n [3201190003,3201190,\"TLAJUNG UDIK\" ],\n [3201190004,3201190,\"BOJONG NANGKA\" ],\n [3201190005,3201190,\"CICADAS\" ],\n [3201190006,3201190,\"WANAHERANG\" ],\n [3201190007,3201190,\"CIKEAS UDIK\" ],\n [3201190008,3201190,\"NAGRAK\" ],\n [3201190009,3201190,\"CIANGSANA\" ],\n [3201190010,3201190,\"BOJONG KULUR\" ],\n [3201200001,3201200,\"TANGKIL\" ],\n [3201200002,3201200,\"HAMBALANG\" ],\n [3201200003,3201200,\"TAJUR\" ],\n [3201200004,3201200,\"PASIR MUKTI\" ],\n [3201200005,3201200,\"SUKAHATI\" ],\n [3201200006,3201200,\"LEUWINUTUG\" ],\n [3201200007,3201200,\"SANJA\" ],\n [3201200008,3201200,\"KARANG ASEM BARAT\" ],\n [3201200009,3201200,\"KARANG ASEM TIMUR\" ],\n [3201200010,3201200,\"TARIKOLOT\" ],\n [3201200011,3201200,\"GUNUNG SARI\" ],\n [3201200012,3201200,\"CITEUREUP\" ],\n [3201200013,3201200,\"PUSPANEGARA\" ],\n [3201200014,3201200,\"PUSPASARI\" ],\n [3201210001,3201210,\"KARADENAN\" ],\n [3201210002,3201210,\"NANGGEWER\" ],\n [3201210003,3201210,\"NANGGEWER MEKAR\" ],\n [3201210004,3201210,\"CIBINONG\" ],\n [3201210005,3201210,\"PAKANSARI\" ],\n [3201210006,3201210,\"SUKAHATI\" ],\n [3201210007,3201210,\"TENGAH\" ],\n [3201210008,3201210,\"PONDOK RAJEG\" ],\n [3201210009,3201210,\"HARAPAN JAYA\" ],\n [3201210010,3201210,\"PABUARAN\" ],\n [3201210011,3201210,\"CIRIMEKAR\" ],\n [3201210012,3201210,\"CIRIUNG\" ],\n [3201220002,3201220,\"CIMANGGIS\" ],\n [3201220003,3201220,\"WARINGIN JAYA\" ],\n [3201220004,3201220,\"KEDUNG WARINGIN\" ],\n [3201220005,3201220,\"BOJONG GEDE\" ],\n [3201220011,3201220,\"SUSUKAN\" ],\n [3201220012,3201220,\"BOJONG BARU\" ],\n [3201220013,3201220,\"RAWA PANJANG\" ],\n [3201220014,3201220,\"PABUARAN\" ],\n [3201220015,3201220,\"RAGAJAYA\" ],\n [3201221001,3201221,\"TONJONG\" ],\n [3201221002,3201221,\"TAJUR HALANG\" ],\n [3201221003,3201221,\"SUKMAJAYA\" ],\n [3201221004,3201221,\"NANGGERANG\" ],\n [3201221005,3201221,\"SASAK PANJANG\" ],\n [3201221006,3201221,\"KALISUREN\" ],\n [3201221007,3201221,\"CITAYAM\" ],\n [3201230006,3201230,\"SEMPLAK BARAT\" ],\n [3201230007,3201230,\"ATANG SENJAYA\" ],\n [3201230008,3201230,\"PARAKAN JAYA\" ],\n [3201230009,3201230,\"BOJONG\" ],\n [3201230010,3201230,\"KEMANG\" ],\n [3201230011,3201230,\"PABUARAN\" ],\n [3201230013,3201230,\"TEGAL\" ],\n [3201230014,3201230,\"PONDOK UDIK\" ],\n [3201230015,3201230,\"JAMPANG\" ],\n [3201231001,3201231,\"MEKARSARI\" ],\n [3201231002,3201231,\"RANCA BUNGUR\" ],\n [3201231003,3201231,\"PASIR GAOK\" ],\n [3201231004,3201231,\"BANTARJAYA\" ],\n [3201231005,3201231,\"BANTAR SARI\" ],\n [3201231006,3201231,\"CANDALI\" ],\n [3201231007,3201231,\"CIMULANG\" ],\n [3201240009,3201240,\"IWUL\" ],\n [3201240010,3201240,\"JABON MEKAR\" ],\n [3201240011,3201240,\"PAMAGER SARI\" ],\n [3201240012,3201240,\"PARUNG\" ],\n [3201240013,3201240,\"WARU\" ],\n [3201240014,3201240,\"WARUJAYA\" ],\n [3201240015,3201240,\"BOJONG SEMPU\" ],\n [3201240016,3201240,\"BOJONG INDAH\" ],\n [3201240017,3201240,\"COGREG\" ],\n [3201241001,3201241,\"KARIHKIL\" ],\n [3201241002,3201241,\"CIBEUTEUNG UDIK\" ],\n [3201241003,3201241,\"BABAKAN\" ],\n [3201241004,3201241,\"PUTAT NUTUG\" ],\n [3201241005,3201241,\"CIBEUTEUNG MUARA\" ],\n [3201241006,3201241,\"CIBENTANG\" ],\n [3201241007,3201241,\"PARIGI MEKAR\" ],\n [3201241008,3201241,\"CISEENG\" ],\n [3201241009,3201241,\"CIHOWE\" ],\n [3201241010,3201241,\"KURIPAN\" ],\n [3201250001,3201250,\"JAMPANG\" ],\n [3201250002,3201250,\"CIBADUNG\" ],\n [3201250003,3201250,\"CIBINONG\" ],\n [3201250004,3201250,\"CIDOKOM\" ],\n [3201250005,3201250,\"PADURENAN\" ],\n [3201250006,3201250,\"CURUG\" ],\n [3201250007,3201250,\"RAWAKALONG\" ],\n [3201250008,3201250,\"PENGASINAN\" ],\n [3201250009,3201250,\"GUNUNG SINDUR\" ],\n [3201250010,3201250,\"PABUARAN\" ],\n [3201260001,3201260,\"LEUWIBATU\" ],\n [3201260002,3201260,\"CIDOKOM\" ],\n [3201260003,3201260,\"GOBANG\" ],\n [3201260004,3201260,\"RABAK\" ],\n [3201260005,3201260,\"CIBODAS\" ],\n [3201260006,3201260,\"KAMPUNG SAWAH\" ],\n [3201260007,3201260,\"RUMPIN\" ],\n [3201260008,3201260,\"CIPINANG\" ],\n [3201260009,3201260,\"SUKASARI\" ],\n [3201260010,3201260,\"KERTAJAYA\" ],\n [3201260011,3201260,\"TAMAN SARI\" ],\n [3201260012,3201260,\"SUKAMULYA\" ],\n [3201260013,3201260,\"MEKAR SARI\" ],\n [3201260014,3201260,\"MEKARJAYA\" ],\n [3201270006,3201270,\"SUKARAKSA\" ],\n [3201270009,3201270,\"SUKAMAJU\" ],\n [3201270010,3201270,\"CIGUDEG\" ],\n [3201270011,3201270,\"BANYU RESMI\" ],\n [3201270012,3201270,\"WARGAJAYA\" ],\n [3201270013,3201270,\"BUNAR\" ],\n [3201270014,3201270,\"MEKARJAYA\" ],\n [3201270015,3201270,\"CINTAMANIK\" ],\n [3201270016,3201270,\"BANYU WANGI\" ],\n [3201270017,3201270,\"BANYU ASIH\" ],\n [3201270018,3201270,\"TEGALEGA\" ],\n [3201270019,3201270,\"BATU JAJAR\" ],\n [3201270020,3201270,\"RENGASJAJAR\" ],\n [3201270021,3201270,\"BANGUNJAYA\" ],\n [3201270022,3201270,\"ARGAPURA\" ],\n [3201271001,3201271,\"CISARUA\" ],\n [3201271002,3201271,\"KIARASARI\" ],\n [3201271003,3201271,\"KIARAPANDAK\" ],\n [3201271004,3201271,\"HARKATJAYA\" ],\n [3201271005,3201271,\"SUKAJAYA\" ],\n [3201271006,3201271,\"SIPAYUNG\" ],\n [3201271007,3201271,\"SUKAMULIH\" ],\n [3201271008,3201271,\"PASIR MADANG\" ],\n [3201271009,3201271,\"CILEUKSA\" ],\n [3201271010,3201271,\"URUG\" ],\n [3201271011,3201271,\"JAYARAHARJA\" ],\n [3201280003,3201280,\"PANGRADIN\" ],\n [3201280004,3201280,\"KALONGSAWAH\" ],\n [3201280005,3201280,\"SIPAK\" ],\n [3201280006,3201280,\"PAMAGERSARI\" ],\n [3201280007,3201280,\"JUGALA JAYA\" ],\n [3201280008,3201280,\"CURUG\" ],\n [3201280009,3201280,\"TEGAL WANGI\" ],\n [3201280010,3201280,\"KOLEANG\" ],\n [3201280011,3201280,\"JASINGA\" ],\n [3201280012,3201280,\"SETU\" ],\n [3201280013,3201280,\"CIKOPOMAYAK\" ],\n [3201280014,3201280,\"NEGLASARI\" ],\n [3201280015,3201280,\"BAGOANG\" ],\n [3201280016,3201280,\"BARENGKOK\" ],\n [3201280017,3201280,\"PANGAUR\" ],\n [3201280018,3201280,\"WIRAJAYA\" ],\n [3201290001,3201290,\"CIOMAS\" ],\n [3201290002,3201290,\"TAPOS\" ],\n [3201290003,3201290,\"BATOK\" ],\n [3201290004,3201290,\"BABAKAN\" ],\n [3201290005,3201290,\"BOJONG\" ],\n [3201290006,3201290,\"SINGABRAJA\" ],\n [3201290007,3201290,\"TENJO\" ],\n [3201290008,3201290,\"CILAKU\" ],\n [3201290009,3201290,\"SINGABANGSA\" ],\n [3201300001,3201300,\"JAGABAYA\" ],\n [3201300002,3201300,\"GOROWONG\" ],\n [3201300003,3201300,\"DAGO\" ],\n [3201300004,3201300,\"CIKUDA\" ],\n [3201300005,3201300,\"PINGKU\" ],\n [3201300006,3201300,\"LUMPANG\" ],\n [3201300007,3201300,\"GINTUNG CILEJET\" ],\n [3201300008,3201300,\"JAGABITA\" ],\n [3201300009,3201300,\"CIBUNAR\" ],\n [3201300010,3201300,\"PARUNG PANJANG\" ],\n [3201300011,3201300,\"KABASIRAN\" ],\n [3202010001,3202010,\"CIBENDA\" ],\n [3202010002,3202010,\"CIWARU\" ],\n [3202010003,3202010,\"TAMANJAYA\" ],\n [3202010004,3202010,\"MEKARJAYA\" ],\n [3202010005,3202010,\"CIEMAS\" ],\n [3202010006,3202010,\"GIRIMUKTI\" ],\n [3202010007,3202010,\"MANDRAJAYA\" ],\n [3202010008,3202010,\"MEKARSAKTI\" ],\n [3202010009,3202010,\"SIDAMULYA\" ],\n [3202020001,3202020,\"GUNUNGBATU\" ],\n [3202020002,3202020,\"CIKANGKUNG\" ],\n [3202020003,3202020,\"PURWASEDAR\" ],\n [3202020004,3202020,\"CIRACAP\" ],\n [3202020005,3202020,\"PASIRPANJANG\" ],\n [3202020006,3202020,\"MEKARSARI\" ],\n [3202020007,3202020,\"PANGUMBAHAN\" ],\n [3202020008,3202020,\"UJUNG GENTENG\" ],\n [3202021001,3202021,\"CARINGIN NUNGGAL\" ],\n [3202021002,3202021,\"WALURAN\" ],\n [3202021003,3202021,\"SUKAMUKTI\" ],\n [3202021004,3202021,\"MEKAR MUKTI\" ],\n [3202021005,3202021,\"WALURAN MANDIRI\" ],\n [3202021006,3202021,\"MANGUNJAYA\" ],\n [3202030001,3202030,\"PASIRIPIS\" ],\n [3202030002,3202030,\"BUNIWANGI\" ],\n [3202030003,3202030,\"CIPEUNDEUY\" ],\n [3202030004,3202030,\"GUNUNG SUNGGING\" ],\n [3202030011,3202030,\"CITANGLAR\" ],\n [3202030012,3202030,\"JAGAMUKTI\" ],\n [3202030013,3202030,\"SURADE\" ],\n [3202030014,3202030,\"KADALEMAN\" ],\n [3202030015,3202030,\"WANASARI\" ],\n [3202030016,3202030,\"SIRNASARI\" ],\n [3202030017,3202030,\"SUKATANI\" ],\n [3202030018,3202030,\"KADEMANGAN\" ],\n [3202031001,3202031,\"CIDAHU\" ],\n [3202031002,3202031,\"CIBITUNG\" ],\n [3202031003,3202031,\"BANYUWANGI\" ],\n [3202031004,3202031,\"CIBODAS\" ],\n [3202031005,3202031,\"BANYUMURNI\" ],\n [3202031006,3202031,\"TALAGAMURNI\" ],\n [3202040001,3202040,\"CIPARAY\" ],\n [3202040002,3202040,\"BOJONG GENTENG\" ],\n [3202040003,3202040,\"BOJONGSARI\" ],\n [3202040004,3202040,\"MEKARJAYA\" ],\n [3202040005,3202040,\"NAGRAKSARI\" ],\n [3202040006,3202040,\"JAMPANG KULON\" ],\n [3202040007,3202040,\"TANJUNG\" ],\n [3202040008,3202040,\"PADAJAYA\" ],\n [3202040013,3202040,\"CIKARANG\" ],\n [3202040014,3202040,\"KARANGANYAR\" ],\n [3202040015,3202040,\"CIKARANGGEUSAN\" ],\n [3202041001,3202041,\"BOREGAH INDAH\" ],\n [3202041002,3202041,\"CIMANGGU\" ],\n [3202041003,3202041,\"SUKAMAJU\" ],\n [3202041004,3202041,\"SUKAJADI\" ],\n [3202041005,3202041,\"KARANGMEKAR\" ],\n [3202041006,3202041,\"SUKAMANAH\" ],\n [3202050001,3202050,\"CIMAHPAR\" ],\n [3202050002,3202050,\"SEKARSARI\" ],\n [3202050003,3202050,\"KALIBUNDER\" ],\n [3202050004,3202050,\"SUKALUYU\" ],\n [3202050005,3202050,\"BOJONG\" ],\n [3202050006,3202050,\"BALEKAMBANG\" ],\n [3202050007,3202050,\"MEKARWANGI\" ],\n [3202060001,3202060,\"SUMBERJAYA\" ],\n [3202060002,3202060,\"BUNIASIH\" ],\n [3202060003,3202060,\"TEGALBULEUD\" ],\n [3202060004,3202060,\"CALINGCING\" ],\n [3202060005,3202060,\"RAMBAY\" ],\n [3202060006,3202060,\"NANGELA\" ],\n [3202060007,3202060,\"BANGBAYANG\" ],\n [3202060008,3202060,\"SIRNAMEKAR\" ],\n [3202070001,3202070,\"CIDOLOG\" ],\n [3202070002,3202070,\"MEKARJAYA\" ],\n [3202070003,3202070,\"CIKARANG\" ],\n [3202070004,3202070,\"CIPAMINGKIS\" ],\n [3202070005,3202070,\"TEGALLEGA\" ],\n [3202080005,3202080,\"SINAR BENTANG\" ],\n [3202080006,3202080,\"GUNUNG BENTANG\" ],\n [3202080007,3202080,\"PASANGGRAHAN\" ],\n [3202080008,3202080,\"CURUGLUHUR\" ],\n [3202080009,3202080,\"DATARNANGKA\" ],\n [3202080010,3202080,\"SAGARANTEN\" ],\n [3202080011,3202080,\"MARGALUYU\" ],\n [3202080012,3202080,\"CIBITUNG\" ],\n [3202080017,3202080,\"HEGARMANAH\" ],\n [3202080018,3202080,\"CIBAREGBEG\" ],\n [3202080019,3202080,\"PUNCAKMANGGIS\" ],\n [3202080020,3202080,\"MEKARSARI\" ],\n [3202081001,3202081,\"HEGARMULYA\" ],\n [3202081002,3202081,\"CIDADAP\" ],\n [3202081003,3202081,\"PADASENANG\" ],\n [3202081004,3202081,\"BANJARSARI\" ],\n [3202081005,3202081,\"TENJOLAUT\" ],\n [3202081006,3202081,\"MEKARTANI\" ],\n [3202082001,3202082,\"CIMENTENG\" ],\n [3202082002,3202082,\"CURUGKEMBAR\" ],\n [3202082003,3202082,\"TANJUNGSARI\" ],\n [3202082004,3202082,\"SINDANGRAJA\" ],\n [3202082005,3202082,\"MEKARTANJUNG\" ],\n [3202082006,3202082,\"BOJONG TUGU\" ],\n [3202082007,3202082,\"NAGRAKJAYA\" ],\n [3202090001,3202090,\"SUKAJAYA\" ],\n [3202090002,3202090,\"CIWALAT\" ],\n [3202090003,3202090,\"PABUARAN\" ],\n [3202090004,3202090,\"CIBADAK\" ],\n [3202090005,3202090,\"SIRNASARI\" ],\n [3202090006,3202090,\"BANTARSARI\" ],\n [3202090007,3202090,\"LEMBURSAWAH\" ],\n [3202100001,3202100,\"LANGKAPJAYA\" ],\n [3202100002,3202100,\"CILANGKAP\" ],\n [3202100003,3202100,\"LENGKONG\" ],\n [3202100004,3202100,\"TEGALLEGA\" ],\n [3202100005,3202100,\"NEGLASARI\" ],\n [3202110005,3202110,\"CITARIK\" ],\n [3202110006,3202110,\"PALABUHANRATU\" ],\n [3202110007,3202110,\"CITEPUS\" ],\n [3202110008,3202110,\"CIBODAS\" ],\n [3202110009,3202110,\"BUNIWANGI\" ],\n [3202110010,3202110,\"CIKADU\" ],\n [3202110011,3202110,\"PASIRSUREN\" ],\n [3202110012,3202110,\"TONJONG\" ],\n [3202110013,3202110,\"JAYANTI\" ],\n [3202110014,3202110,\"CIMANGGU\" ],\n [3202111001,3202111,\"CIHAUR\" ],\n [3202111002,3202111,\"KERTAJAYA\" ],\n [3202111003,3202111,\"LOJI\" ],\n [3202111004,3202111,\"CIDADAP\" ],\n [3202111005,3202111,\"CIBUNTU\" ],\n [3202111006,3202111,\"MEKARASIH\" ],\n [3202111007,3202111,\"SANGRAWAYANG\" ],\n [3202120002,3202120,\"HEGARMANAH\" ],\n [3202120003,3202120,\"BANTARKALONG\" ],\n [3202120004,3202120,\"SIRNAJAYA\" ],\n [3202120005,3202120,\"BOJONGKERTA\" ],\n [3202120006,3202120,\"UBRUG\" ],\n [3202120007,3202120,\"GIRIJAYA\" ],\n [3202120008,3202120,\"WARUNGKIARA\" ],\n [3202120009,3202120,\"SUKAHARJA\" ],\n [3202120010,3202120,\"TARISI\" ],\n [3202120011,3202120,\"DAMARRAJA\" ],\n [3202120012,3202120,\"MEKARJAYA\" ],\n [3202120013,3202120,\"KERTAMUKTI\" ],\n [3202121001,3202121,\"BANTARGEBANG\" ],\n [3202121002,3202121,\"BOJONGGALING\" ],\n [3202121003,3202121,\"BANTARGADUNG\" ],\n [3202121004,3202121,\"MANGUNJAYA\" ],\n [3202121005,3202121,\"LIMUSNUNGGAL\" ],\n [3202121006,3202121,\"BUANAJAYA\" ],\n [3202121007,3202121,\"BOYONGSARI\" ],\n [3202130001,3202130,\"BANTARPANJANG\" ],\n [3202130009,3202130,\"BOJONGTIPAR\" ],\n [3202130010,3202130,\"CIJULANG\" ],\n [3202130011,3202130,\"NANGERANG\" ],\n [3202130012,3202130,\"BOJONG JENGKOL\" ],\n [3202130013,3202130,\"BANTAR AGUNG\" ],\n [3202130014,3202130,\"JAMPANG TENGAH\" ],\n [3202130015,3202130,\"PANUMBANGAN\" ],\n [3202130016,3202130,\"SINDANGRESMI\" ],\n [3202130017,3202130,\"TANJUNGSARI\" ],\n [3202130018,3202130,\"PADABEUNGHAR\" ],\n [3202131001,3202131,\"NEGLASARI\" ],\n [3202131002,3202131,\"CICUKANG\" ],\n [3202131003,3202131,\"MARGALUYU\" ],\n [3202131004,3202131,\"PURABAYA\" ],\n [3202131005,3202131,\"PAGELARAN\" ],\n [3202131006,3202131,\"CITAMIANG\" ],\n [3202131007,3202131,\"CIMERANG\" ],\n [3202140001,3202140,\"SUKAMAJU\" ],\n [3202140002,3202140,\"CIBATU\" ],\n [3202140003,3202140,\"PARAKANLIMA\" ],\n [3202140004,3202140,\"KERTARAHARJA\" ],\n [3202140005,3202140,\"BOJONG\" ],\n [3202140006,3202140,\"BOJONGKEMBAR\" ],\n [3202140007,3202140,\"CIKEMBAR\" ],\n [3202140008,3202140,\"CIMANGGU\" ],\n [3202140009,3202140,\"SUKAMULYA\" ],\n [3202140010,3202140,\"BOJONGRAHARJA\" ],\n [3202150001,3202150,\"CISITU\" ],\n [3202150002,3202150,\"NYALINDUNG\" ],\n [3202150003,3202150,\"KERTAANGSANA\" ],\n [3202150004,3202150,\"MEKARSARI\" ],\n [3202150005,3202150,\"BOJONGKALONG\" ],\n [3202150006,3202150,\"BOJONGSARI\" ],\n [3202150007,3202150,\"SUKAMAJU\" ],\n [3202150008,3202150,\"WANGUNREJA\" ],\n [3202150009,3202150,\"NEGLASARI\" ],\n [3202150010,3202150,\"CIJANGKAR\" ],\n [3202160001,3202160,\"CIENGANG\" ],\n [3202160002,3202160,\"SUKAMANAH\" ],\n [3202160003,3202160,\"GEGERBITUNG\" ],\n [3202160004,3202160,\"CIJUREY\" ],\n [3202160005,3202160,\"KARANGJAYA\" ],\n [3202160006,3202160,\"BUNIWANGI\" ],\n [3202160007,3202160,\"CARINGIN\" ],\n [3202170011,3202170,\"SELAWANGI\" ],\n [3202170012,3202170,\"PASIRHALANG\" ],\n [3202170013,3202170,\"SUKARAJA\" ],\n [3202170014,3202170,\"SUKAMEKAR\" ],\n [3202170015,3202170,\"CISARUA\" ],\n [3202170016,3202170,\"LIMBANGAN\" ],\n [3202170017,3202170,\"LANGENSARI\" ],\n [3202170018,3202170,\"SELAAWI\" ],\n [3202170021,3202170,\"MARGALUYU\" ],\n [3202171001,3202171,\"SASAGARAN\" ],\n [3202171002,3202171,\"JAMBENENGGANG\" ],\n [3202171003,3202171,\"CIKARET\" ],\n [3202171004,3202171,\"KEBONPEDES\" ],\n [3202171005,3202171,\"BOJONGSAWAH\" ],\n [3202172001,3202172,\"CIPURUT\" ],\n [3202172002,3202172,\"CIREUNGHAS\" ],\n [3202172003,3202172,\"BENCOY\" ],\n [3202172004,3202172,\"CIKURUTUG\" ],\n [3202172005,3202172,\"TEGALPANJANG\" ],\n [3202173001,3202173,\"SEMPLAK\" ],\n [3202173002,3202173,\"PRIANGANJAYA\" ],\n [3202173003,3202173,\"TITISAN\" ],\n [3202173004,3202173,\"CIMANGKOK\" ],\n [3202173005,3202173,\"SUKALARANG\" ],\n [3202173006,3202173,\"SUKAMAJU\" ],\n [3202180001,3202180,\"PARUNGSEAH\" ],\n [3202180002,3202180,\"WARNASARI\" ],\n [3202180003,3202180,\"SUKAJAYA\" ],\n [3202180004,3202180,\"SUDAJAYA GIRANG\" ],\n [3202180005,3202180,\"KARAWANG\" ],\n [3202180006,3202180,\"PERBAWATI\" ],\n [3202190001,3202190,\"MUARADUA\" ],\n [3202190002,3202190,\"CITAMIANG\" ],\n [3202190003,3202190,\"CIKAHURIPAN\" ],\n [3202190004,3202190,\"SUKAMANIS\" ],\n [3202190005,3202190,\"KADUDAMPIT\" ],\n [3202190006,3202190,\"GEDE PANGRANGO\" ],\n [3202190007,3202190,\"SUKAMAJU\" ],\n [3202190008,3202190,\"CIPETIR\" ],\n [3202190009,3202190,\"UNDRUS BINANGUN\" ],\n [3202200007,3202200,\"PADAASIH\" ],\n [3202200008,3202200,\"CISAAT\" ],\n [3202200009,3202200,\"BABAKAN\" ],\n [3202200010,3202200,\"SUKAMANTRI\" ],\n [3202200011,3202200,\"SUKAMANAH\" ],\n [3202200012,3202200,\"NAGRAK\" ],\n [3202200013,3202200,\"CIBATU\" ],\n [3202200014,3202200,\"CIBOLANG KALER\" ],\n [3202200015,3202200,\"KUTASIRNA\" ],\n [3202200016,3202200,\"SELAJAMBE\" ],\n [3202200017,3202200,\"SUKASARI\" ],\n [3202200018,3202200,\"GUNUNGJAYA\" ],\n [3202200019,3202200,\"SUKARESMI\" ],\n [3202201001,3202201,\"SIRNARESMI\" ],\n [3202201002,3202201,\"KEBONMANGGU\" ],\n [3202201003,3202201,\"GUNUNG GURUH\" ],\n [3202201004,3202201,\"CIKUJANG\" ],\n [3202201005,3202201,\"CIBENTANG\" ],\n [3202201006,3202201,\"CIBOLANG\" ],\n [3202201007,3202201,\"MANGKALAYA\" ],\n [3202210001,3202210,\"NEGLASARI\" ],\n [3202210002,3202210,\"TENJOJAYA\" ],\n [3202210003,3202210,\"SEKARWANGI\" ],\n [3202210009,3202210,\"BATUNUNGGAL\" ],\n [3202210010,3202210,\"KARANGTENGAH\" ],\n [3202210011,3202210,\"CIBADAK\" ],\n [3202210012,3202210,\"WARNAJATI\" ],\n [3202210013,3202210,\"SUKASIRNA\" ],\n [3202210014,3202210,\"PAMURUYAN\" ],\n [3202210015,3202210,\"CIHEULANG TONGGOH\" ],\n [3202211001,3202211,\"HEGARMANAH\" ],\n [3202211002,3202211,\"CICANTAYAN\" ],\n [3202211003,3202211,\"CIMAHI\" ],\n [3202211004,3202211,\"CISANDE\" ],\n [3202211005,3202211,\"CIJALINGAN\" ],\n [3202211006,3202211,\"LEMBURSAWAH\" ],\n [3202211007,3202211,\"SUKADAMAI\" ],\n [3202211008,3202211,\"CIMANGGIS\" ],\n [3202212001,3202212,\"CIJENGKOL\" ],\n [3202212002,3202212,\"MEKARJAYA\" ],\n [3202212003,3202212,\"TALAGA\" ],\n [3202212004,3202212,\"CARINGIN KULON\" ],\n [3202212005,3202212,\"CARINGIN WETAN\" ],\n [3202212006,3202212,\"SEUSEUPAN\" ],\n [3202212007,3202212,\"SUKAMULYA\" ],\n [3202212008,3202212,\"CIKEMBANG\" ],\n [3202212009,3202212,\"PASIRDATAR INDAH\" ],\n [3202220001,3202220,\"CISARUA\" ],\n [3202220002,3202220,\"BALEKAMBANG\" ],\n [3202220003,3202220,\"NAGRAK SELATAN\" ],\n [3202220004,3202220,\"NAGRAK UTARA\" ],\n [3202220005,3202220,\"KALAPAREA\" ],\n [3202220006,3202220,\"DARMAREJA\" ],\n [3202220007,3202220,\"GIRIJAYA\" ],\n [3202220008,3202220,\"BABAKAN PANJANG\" ],\n [3202220009,3202220,\"PAWENANG\" ],\n [3202220010,3202220,\"CIHANYAWAR\" ],\n [3202221001,3202221,\"MUNJUL\" ],\n [3202221002,3202221,\"CIAMBAR\" ],\n [3202221003,3202221,\"GINANJAR\" ],\n [3202221004,3202221,\"WANGUNJAYA\" ],\n [3202221005,3202221,\"CIBUNARJAYA\" ],\n [3202221006,3202221,\"AMBARJAYA\" ],\n [3202230001,3202230,\"MEKARSARI\" ],\n [3202230002,3202230,\"NYANGKOWEK\" ],\n [3202230003,3202230,\"PURWASARI\" ],\n [3202230004,3202230,\"CARINGIN\" ],\n [3202230005,3202230,\"BANGBAYANG\" ],\n [3202230006,3202230,\"CISAAT\" ],\n [3202230007,3202230,\"TENJOLAYA\" ],\n [3202230008,3202230,\"PASAWAHAN\" ],\n [3202230009,3202230,\"CICURUG\" ],\n [3202230010,3202230,\"NANGGERANG\" ],\n [3202230011,3202230,\"TENJOAYU\" ],\n [3202230012,3202230,\"BENDA\" ],\n [3202230013,3202230,\"KUTAJAYA\" ],\n [3202240001,3202240,\"PONDOK KASO TENGAH\" ],\n [3202240002,3202240,\"PASIRDOTON\" ],\n [3202240003,3202240,\"PONDOK KASO TONGGOH\" ],\n [3202240004,3202240,\"BABAKAN PARI\" ],\n [3202240005,3202240,\"TANGKIL\" ],\n [3202240006,3202240,\"JAYABAKTI\" ],\n [3202240007,3202240,\"CIDAHU\" ],\n [3202240008,3202240,\"GIRIJAYA\" ],\n [3202250001,3202250,\"SUKATANI\" ],\n [3202250002,3202250,\"SUKAKERSA\" ],\n [3202250003,3202250,\"BOJONGLONGOK\" ],\n [3202250004,3202250,\"BOJONGASIH\" ],\n [3202250005,3202250,\"LEBAKSARI\" ],\n [3202250006,3202250,\"PARAKANSALAK\" ],\n [3202260002,3202260,\"PALASARI HILIR\" ],\n [3202260003,3202260,\"SUNDAWENANG\" ],\n [3202260004,3202260,\"PARUNGKUDA\" ],\n [3202260008,3202260,\"LANGENSARI\" ],\n [3202260009,3202260,\"BOJONG KOKOSAN\" ],\n [3202260010,3202260,\"KOMPA\" ],\n [3202260011,3202260,\"PONDOK KASO LANDEUH\" ],\n [3202260012,3202260,\"BABAKANJAYA\" ],\n [3202261001,3202261,\"BEREKAH\" ],\n [3202261002,3202261,\"BOJONG GENTENG\" ],\n [3202261003,3202261,\"BOJONG GALING\" ],\n [3202261004,3202261,\"CIBODAS\" ],\n [3202261005,3202261,\"CIPANENGAH\" ],\n [3202270001,3202270,\"WALANGSARI\" ],\n [3202270002,3202270,\"PALASARI GIRANG\" ],\n [3202270003,3202270,\"KALAPANUNGGAL\" ],\n [3202270004,3202270,\"KADUNUNGGAL\" ],\n [3202270005,3202270,\"MAKASARI\" ],\n [3202270006,3202270,\"GUNUNG ENDUT\" ],\n [3202270007,3202270,\"PULOSARI\" ],\n [3202280001,3202280,\"SAMPORA\" ],\n [3202280002,3202280,\"CIJAMBE\" ],\n [3202280003,3202280,\"CIKIRAY\" ],\n [3202280004,3202280,\"MEKARNANGKA\" ],\n [3202280005,3202280,\"CIKIDANG\" ],\n [3202280006,3202280,\"GUNUNG MALANG\" ],\n [3202280007,3202280,\"NANGKAKONENG\" ],\n [3202280008,3202280,\"PANGKALAN\" ],\n [3202280009,3202280,\"BUMISARI\" ],\n [3202280010,3202280,\"CICAREUH\" ],\n [3202280011,3202280,\"TAMANSARI\" ],\n [3202280012,3202280,\"CIKARAE THOYIBAH\" ],\n [3202290001,3202290,\"PASIRBARU\" ],\n [3202290002,3202290,\"CIKAHURIPAN\" ],\n [3202290003,3202290,\"CISOLOK\" ],\n [3202290004,3202290,\"KARANGPAPAK\" ],\n [3202290012,3202290,\"SIRNARESMI\" ],\n [3202290013,3202290,\"CICADAS\" ],\n [3202290014,3202290,\"CIKELAT\" ],\n [3202290015,3202290,\"GUNUNG KRAMAT\" ],\n [3202290016,3202290,\"GUNUNG TANJUNG\" ],\n [3202290017,3202290,\"CARINGIN\" ],\n [3202290018,3202290,\"SUKARAME\" ],\n [3202290019,3202290,\"WANGUNSARI\" ],\n [3202290020,3202290,\"WANAJAYA\" ],\n [3202291001,3202291,\"CIMAJA\" ],\n [3202291002,3202291,\"CIKAKAK\" ],\n [3202291003,3202291,\"SUKAMAJU\" ],\n [3202291004,3202291,\"CILEUNGSING\" ],\n [3202291005,3202291,\"RIDOGALIH\" ],\n [3202291006,3202291,\"MARGALAKSANA\" ],\n [3202291007,3202291,\"SIRNARASA\" ],\n [3202291008,3202291,\"GANDASOLI\" ],\n [3202291009,3202291,\"CIRENDANG\" ],\n [3202300001,3202300,\"MEKARJAYA\" ],\n [3202300002,3202300,\"TUGUBANDUNG\" ],\n [3202300003,3202300,\"KABANDUNGAN\" ],\n [3202300004,3202300,\"CIPEUTEUY\" ],\n [3202300005,3202300,\"CIHAMERANG\" ],\n [3202300006,3202300,\"CIANAGA\" ],\n [3203010001,3203010,\"SINARLAUT\" ],\n [3203010002,3203010,\"BOJONGKASO\" ],\n [3203010003,3203010,\"SUKAMANAH\" ],\n [3203010004,3203010,\"WANASARI\" ],\n [3203010007,3203010,\"KARANGSARI\" ],\n [3203010008,3203010,\"NEGLASARI\" ],\n [3203010009,3203010,\"MULYASARI\" ],\n [3203010010,3203010,\"BUNISARI\" ],\n [3203010011,3203010,\"MEKARSARI\" ],\n [3203010012,3203010,\"TANJUNGSARI\" ],\n [3203010013,3203010,\"WANGUNJAYA\" ],\n [3203011001,3203011,\"PUSAKASARI\" ],\n [3203011002,3203011,\"NAGASARI\" ],\n [3203011003,3203011,\"SUKAJAYA\" ],\n [3203011004,3203011,\"SUKAMULYA\" ],\n [3203011005,3203011,\"PURABAYA\" ],\n [3203011006,3203011,\"SUKASIRNA\" ],\n [3203011007,3203011,\"WALAHIR\" ],\n [3203011008,3203011,\"PUNCAKWANGI\" ],\n [3203011009,3203011,\"SIRNASARI\" ],\n [3203011010,3203011,\"KARYAMUKTI\" ],\n [3203011011,3203011,\"MANDALAWANGI\" ],\n [3203011012,3203011,\"SINDANGSARI\" ],\n [3203020001,3203020,\"HEGARSARI\" ],\n [3203020002,3203020,\"JATISARI\" ],\n [3203020003,3203020,\"KERTASARI\" ],\n [3203020004,3203020,\"TALAGASARI\" ],\n [3203020005,3203020,\"SIRNAGALIH\" ],\n [3203020006,3203020,\"SAGANTEN\" ],\n [3203020007,3203020,\"JAYAGIRI\" ],\n [3203020008,3203020,\"MUARACIKADU\" ],\n [3203020009,3203020,\"GIRIMUKTI\" ],\n [3203020010,3203020,\"MEKARLAKSANA\" ],\n [3203020011,3203020,\"KERTAMUKTI\" ],\n [3203030001,3203030,\"KARYABAKTI\" ],\n [3203030002,3203030,\"SUKAPURA\" ],\n [3203030003,3203030,\"CISALAK\" ],\n [3203030004,3203030,\"JAYAPURA\" ],\n [3203030005,3203030,\"KERTAJADI\" ],\n [3203030006,3203030,\"CIDAMAR\" ],\n [3203030007,3203030,\"KARANGWANGI\" ],\n [3203030008,3203030,\"CIMARAGANG\" ],\n [3203030009,3203030,\"GELARPAWITAN\" ],\n [3203030010,3203030,\"NEGLASARI\" ],\n [3203030011,3203030,\"CIBULUH\" ],\n [3203030012,3203030,\"PUNCAKBARU\" ],\n [3203030013,3203030,\"MEKARJAYA\" ],\n [3203030014,3203030,\"GELARWANGI\" ],\n [3203040001,3203040,\"CINERANG\" ],\n [3203040002,3203040,\"WANGUNJAYA\" ],\n [3203040003,3203040,\"MEKARSARI\" ],\n [3203040004,3203040,\"WANGUNSARI\" ],\n [3203040005,3203040,\"MALATI\" ],\n [3203040006,3203040,\"SUKAMULYA\" ],\n [3203040007,3203040,\"NARINGGUL\" ],\n [3203040008,3203040,\"WANASARI\" ],\n [3203040009,3203040,\"SUKABAKTI\" ],\n [3203040010,3203040,\"BALEGEDE\" ],\n [3203040011,3203040,\"MARGASARI\" ],\n [3203050001,3203050,\"PANYINDANGAN\" ],\n [3203050002,3203050,\"WARGALUYU\" ],\n [3203050003,3203050,\"HAMERANG\" ],\n [3203050004,3203050,\"PANANGGAPAN\" ],\n [3203050005,3203050,\"GIRIJAYA\" ],\n [3203050006,3203050,\"SUKAJADI\" ],\n [3203050007,3203050,\"SUKAMEKAR\" ],\n [3203050008,3203050,\"BATULAWANG\" ],\n [3203050009,3203050,\"CIKANGKARENG\" ],\n [3203050015,3203050,\"PAMOYANAN\" ],\n [3203050016,3203050,\"CIMASKARA\" ],\n [3203050020,3203050,\"PADASUKA\" ],\n [3203050021,3203050,\"MEKARMUKTI\" ],\n [3203050022,3203050,\"CIBURIAL\" ],\n [3203051001,3203051,\"PADALUYU\" ],\n [3203051002,3203051,\"SUKALUYU\" ],\n [3203051003,3203051,\"MEKARLAKSANA\" ],\n [3203051004,3203051,\"CIKADU\" ],\n [3203051005,3203051,\"KALAPANUNGGAL\" ],\n [3203051006,3203051,\"MEKARWANGI\" ],\n [3203051007,3203051,\"CISARANTEN\" ],\n [3203051008,3203051,\"SUKAMULYA\" ],\n [3203051009,3203051,\"MEKARJAYA\" ],\n [3203051010,3203051,\"SUKAMANAH\" ],\n [3203060001,3203060,\"KARANGTENGAH\" ],\n [3203060002,3203060,\"RAWAGEDE\" ],\n [3203060003,3203060,\"SUKAJAYA\" ],\n [3203060004,3203060,\"TANGGEUNG\" ],\n [3203060005,3203060,\"KERTAJAYA\" ],\n [3203060006,3203060,\"SIRNAJAYA\" ],\n [3203060007,3203060,\"PASIR JAMBU\" ],\n [3203060008,3203060,\"CILONGSONG\" ],\n [3203060009,3203060,\"MARGALUYU\" ],\n [3203060010,3203060,\"PAGERMANEUH\" ],\n [3203060011,3203060,\"BOJONGPETIR\" ],\n [3203060012,3203060,\"PADALUYU\" ],\n [3203061001,3203061,\"MEKARMULYA\" ],\n [3203061002,3203061,\"KUBANG\" ],\n [3203061003,3203061,\"GIRIJAYA\" ],\n [3203061004,3203061,\"GIRIMUKTI\" ],\n [3203061005,3203061,\"SIMPANG\" ],\n [3203061006,3203061,\"KALIBARU\" ],\n [3203061007,3203061,\"PUSAKAJAYA\" ],\n [3203061008,3203061,\"KARANGJAYA\" ],\n [3203061009,3203061,\"PADAMULYA\" ],\n [3203070010,3203070,\"PASIRDALEM\" ],\n [3203070011,3203070,\"SUKARAJA\" ],\n [3203070012,3203070,\"KADUPANDAK\" ],\n [3203070013,3203070,\"TALAGASARI\" ],\n [3203070014,3203070,\"NEGLASARI\" ],\n [3203070015,3203070,\"SUKAKERTA\" ],\n [3203070016,3203070,\"SUKARAHARJA\" ],\n [3203070017,3203070,\"BOJONGKASIH\" ],\n [3203070018,3203070,\"SUKASARI\" ],\n [3203070019,3203070,\"WARGASARI\" ],\n [3203070020,3203070,\"WARGAASIH\" ],\n [3203070021,3203070,\"SUKARESMI\" ],\n [3203070022,3203070,\"GANDASARI\" ],\n [3203070023,3203070,\"SINDANGSARI\" ],\n [3203071001,3203071,\"PADAASIH\" ],\n [3203071002,3203071,\"SUKALUYU\" ],\n [3203071003,3203071,\"SINARBAKTI\" ],\n [3203071004,3203071,\"BOJONGLARANG\" ],\n [3203071005,3203071,\"SUKAMAHI\" ],\n [3203071006,3203071,\"CIJATI\" ],\n [3203071007,3203071,\"CIBODAS\" ],\n [3203071008,3203071,\"CARINGIN\" ],\n [3203071009,3203071,\"PARAKANTUGU\" ],\n [3203071010,3203071,\"SUKAMAJU\" ],\n [3203080001,3203080,\"WARINGINSARI\" ],\n [3203080002,3203080,\"SUKAGALIH\" ],\n [3203080003,3203080,\"SIMPANG\" ],\n [3203080004,3203080,\"SINDANGHAYU\" ],\n [3203080005,3203080,\"SINDANGRESMI\" ],\n [3203080006,3203080,\"BUNGBANGSARI\" ],\n [3203080007,3203080,\"CISUJEN\" ],\n [3203080008,3203080,\"PASAWAHAN\" ],\n [3203080009,3203080,\"HEGARMANAH\" ],\n [3203090001,3203090,\"JAYAGIRI\" ],\n [3203090002,3203090,\"CIGUHA\" ],\n [3203090003,3203090,\"SUKAKARYA\" ],\n [3203090004,3203090,\"SUKARAME\" ],\n [3203090005,3203090,\"SUKALAKSANA\" ],\n [3203090006,3203090,\"SUKANAGARA\" ],\n [3203090007,3203090,\"GUNUNGSARI\" ],\n [3203090008,3203090,\"SINDANGSARI\" ],\n [3203090009,3203090,\"SUKAJEMBAR\" ],\n [3203090010,3203090,\"SUKAMEKAR\" ],\n [3203100001,3203100,\"KERTARAHARJA\" ],\n [3203100002,3203100,\"PAGELARAN\" ],\n [3203100003,3203100,\"PADAMAJU\" ],\n [3203100008,3203100,\"BUNIWANGI\" ],\n [3203100009,3203100,\"BUNIJAYA\" ],\n [3203100010,3203100,\"PANGADEGAN\" ],\n [3203100011,3203100,\"SITUHIANG\" ],\n [3203100012,3203100,\"PASIRBARU\" ],\n [3203100013,3203100,\"SINDANGKERTA\" ],\n [3203100014,3203100,\"KARANGHARJA\" ],\n [3203100015,3203100,\"SELAGEDANG\" ],\n [3203100016,3203100,\"GELAR ANYAR\" ],\n [3203100017,3203100,\"MEKARSARI\" ],\n [3203100018,3203100,\"SUKAMAJU\" ],\n [3203110001,3203110,\"WANGUNJAYA\" ],\n [3203110002,3203110,\"SUKADANA\" ],\n [3203110003,3203110,\"KARYAMUKTI\" ],\n [3203110004,3203110,\"CIMENTENG\" ],\n [3203110005,3203110,\"GIRIMUKTI\" ],\n [3203110006,3203110,\"SUSUKAN\" ],\n [3203110007,3203110,\"SUKAJADI\" ],\n [3203110008,3203110,\"MARGALUYU\" ],\n [3203110009,3203110,\"MEKARJAYA\" ],\n [3203110010,3203110,\"CIDADAP\" ],\n [3203110011,3203110,\"CAMPAKA\" ],\n [3203111001,3203111,\"CAMPAKAWARNA\" ],\n [3203111002,3203111,\"CAMPAKAMULYA\" ],\n [3203111003,3203111,\"SUKABUNGAH\" ],\n [3203111004,3203111,\"CIBANGGALA\" ],\n [3203111005,3203111,\"SUKASIRNA\" ],\n [3203120001,3203120,\"CIBOKOR\" ],\n [3203120002,3203120,\"KANOMAN\" ],\n [3203120003,3203120,\"CIPETIR\" ],\n [3203120004,3203120,\"CIKONDANG\" ],\n [3203120005,3203120,\"CIHAUR\" ],\n [3203120006,3203120,\"SUKAMANAH\" ],\n [3203120007,3203120,\"SALAGEDANG\" ],\n [3203120008,3203120,\"CIBADAK\" ],\n [3203120009,3203120,\"GIRIMULYA\" ],\n [3203120010,3203120,\"CIMANGGU\" ],\n [3203120011,3203120,\"CISALAK\" ],\n [3203120012,3203120,\"MAYAK\" ],\n [3203120013,3203120,\"PEUTEUYCONDONG\" ],\n [3203120014,3203120,\"SUKARAHARJA\" ],\n [3203120015,3203120,\"SUKAMAJU\" ],\n [3203120016,3203120,\"CIBAREGBEG\" ],\n [3203120017,3203120,\"KARANGNUNGGAL\" ],\n [3203120018,3203120,\"SALAMNUNGGAL\" ],\n [3203130002,3203130,\"CISARANDI\" ],\n [3203130003,3203130,\"SUKAMULYA\" ],\n [3203130004,3203130,\"CIKAROYA\" ],\n [3203130012,3203130,\"JAMBUDIPA\" ],\n [3203130013,3203130,\"MEKARWANGI\" ],\n [3203130014,3203130,\"TEGALLEGA\" ],\n [3203130015,3203130,\"BUNIKASIH\" ],\n [3203130016,3203130,\"BUNISARI\" ],\n [3203130017,3203130,\"CIEUNDEUR\" ],\n [3203130018,3203130,\"CIWALEN\" ],\n [3203130019,3203130,\"SUKAWANGI\" ],\n [3203131001,3203131,\"CINTAASIH\" ],\n [3203131002,3203131,\"CIKANCANA\" ],\n [3203131003,3203131,\"SUKARATU\" ],\n [3203131004,3203131,\"BANGBAYANG\" ],\n [3203131005,3203131,\"SONGGOM\" ],\n [3203131006,3203131,\"CIKAHURIPAN\" ],\n [3203131007,3203131,\"GEKBRONG\" ],\n [3203131008,3203131,\"KEBONPEUTEUY\" ],\n [3203140001,3203140,\"SUKASARI\" ],\n [3203140002,3203140,\"SUKAKERTA\" ],\n [3203140003,3203140,\"SINDANGSARI\" ],\n [3203140004,3203140,\"MULYASARI\" ],\n [3203140005,3203140,\"CIHARASHAS\" ],\n [3203140006,3203140,\"CIBINONG HILIR\" ],\n [3203140007,3203140,\"SIRNAGALIH\" ],\n [3203140008,3203140,\"RAHONG\" ],\n [3203140009,3203140,\"MUNJUL\" ],\n [3203140010,3203140,\"RANCAGOONG\" ],\n [3203150001,3203150,\"MEKARJAYA\" ],\n [3203150002,3203150,\"PANYUSUHAN\" ],\n [3203150003,3203150,\"SUKALUYU\" ],\n [3203150004,3203150,\"SUKAMULYA\" ],\n [3203150005,3203150,\"BABAKANSARI\" ],\n [3203150006,3203150,\"TANJUNGSARI\" ],\n [3203150007,3203150,\"SELAJAMBE\" ],\n [3203150008,3203150,\"HEGARMANAH\" ],\n [3203150009,3203150,\"SUKASIRNA\" ],\n [3203150010,3203150,\"SINDANGRAJA\" ],\n [3203160001,3203160,\"SUKARAMA\" ],\n [3203160002,3203160,\"SUKAJAYA\" ],\n [3203160003,3203160,\"CIKONDANG\" ],\n [3203160004,3203160,\"JATISARI\" ],\n [3203160005,3203160,\"KEMANG\" ],\n [3203160006,3203160,\"CIBARENGKOK\" ],\n [3203160007,3203160,\"JATI\" ],\n [3203160008,3203160,\"BOJONGPICUNG\" ],\n [3203160009,3203160,\"SUKARATU\" ],\n [3203160012,3203160,\"NEGLASARI\" ],\n [3203160013,3203160,\"HEGARMANAH\" ],\n [3203161001,3203161,\"CIHEA\" ],\n [3203161002,3203161,\"SUKATANI\" ],\n [3203161003,3203161,\"RAMASARI\" ],\n [3203161004,3203161,\"HAURWANGI\" ],\n [3203161005,3203161,\"KERTASARI\" ],\n [3203161006,3203161,\"KERTAMUKTI\" ],\n [3203161007,3203161,\"CIPEUYEUM\" ],\n [3203161008,3203161,\"MEKARWANGI\" ],\n [3203170004,3203170,\"KARANGWANGI\" ],\n [3203170005,3203170,\"GUNUNGSARI\" ],\n [3203170006,3203170,\"KERTAJAYA\" ],\n [3203170007,3203170,\"SINDANGJAYA\" ],\n [3203170008,3203170,\"SINDANGSARI\" ],\n [3203170009,3203170,\"CIBIUK\" ],\n [3203170010,3203170,\"MEKARGALIH\" ],\n [3203170011,3203170,\"CIRANJANG\" ],\n [3203170012,3203170,\"NANGGALAMEKAR\" ],\n [3203180001,3203180,\"MEKARJAYA\" ],\n [3203180002,3203180,\"LEUWIKOJA\" ],\n [3203180003,3203180,\"KUTAWARINGIN\" ],\n [3203180004,3203180,\"SUKAMANAH\" ],\n [3203180005,3203180,\"CIANDAM\" ],\n [3203180006,3203180,\"JAMALI\" ],\n [3203180007,3203180,\"KADEMANGAN\" ],\n [3203180008,3203180,\"MULYASARI\" ],\n [3203180009,3203180,\"BOBOJONG\" ],\n [3203180010,3203180,\"CIKIDANGBAYABANG\" ],\n [3203180011,3203180,\"MURNISARI\" ],\n [3203180012,3203180,\"MANDE\" ],\n [3203190001,3203190,\"SUKAMANAH\" ],\n [3203190002,3203190,\"SINDANGASIH\" ],\n [3203190003,3203190,\"LANGENSARI\" ],\n [3203190004,3203190,\"SUKASARI\" ],\n [3203190005,3203190,\"MALEBER\" ],\n [3203190006,3203190,\"SABANDAR\" ],\n [3203190007,3203190,\"BOJONG\" ],\n [3203190008,3203190,\"HEGARMANAH\" ],\n [3203190009,3203190,\"BABAKANCARINGIN\" ],\n [3203190010,3203190,\"CIHERANG\" ],\n [3203190011,3203190,\"SUKAJADI\" ],\n [3203190012,3203190,\"SUKASARANA\" ],\n [3203190013,3203190,\"SUKAMANTRI\" ],\n [3203190014,3203190,\"SUKAMULYA\" ],\n [3203190015,3203190,\"SINDANGLAKA\" ],\n [3203190016,3203190,\"SUKATARIS\" ],\n [3203200001,3203200,\"NAGRAK\" ],\n [3203200002,3203200,\"SUKAMAJU\" ],\n [3203200003,3203200,\"SAYANG\" ],\n [3203200004,3203200,\"SOLOKPANDAN\" ],\n [3203200005,3203200,\"MUKA\" ],\n [3203200006,3203200,\"BOJONGHERANG\" ],\n [3203200007,3203200,\"PAMOYANAN\" ],\n [3203200008,3203200,\"SAWAH GEDE\" ],\n [3203200009,3203200,\"LIMBANGAN SARI\" ],\n [3203200010,3203200,\"MEKARSARI\" ],\n [3203200011,3203200,\"BABAKANKARET\" ],\n [3203210001,3203210,\"PADALUYU\" ],\n [3203210002,3203210,\"SUKAJAYA\" ],\n [3203210003,3203210,\"CIBULAKAN\" ],\n [3203210004,3203210,\"CIRUMPUT\" ],\n [3203210005,3203210,\"TALAGA\" ],\n [3203210006,3203210,\"BENJOT\" ],\n [3203210007,3203210,\"GASOL\" ],\n [3203210008,3203210,\"SARAMPAD\" ],\n [3203210009,3203210,\"MANGUNKERTA\" ],\n [3203210010,3203210,\"SUKAMULYA\" ],\n [3203210011,3203210,\"GALUDRA\" ],\n [3203210012,3203210,\"NYALINDUNG\" ],\n [3203210013,3203210,\"CIBEUREUM\" ],\n [3203210014,3203210,\"CIJEDIL\" ],\n [3203210015,3203210,\"SUKAMANAH\" ],\n [3203210016,3203210,\"WANGUNJAYA\" ],\n [3203220001,3203220,\"CIPUTRI\" ],\n [3203220002,3203220,\"CIHERANG\" ],\n [3203220003,3203220,\"CIPENDAWA\" ],\n [3203220004,3203220,\"CIBODAS\" ],\n [3203220005,3203220,\"GADOG\" ],\n [3203220008,3203220,\"SUKATANI\" ],\n [3203220014,3203220,\"SUKANAGALIH\" ],\n [3203221001,3203221,\"SINDANGJAYA\" ],\n [3203221002,3203221,\"CIPANAS\" ],\n [3203221003,3203221,\"SINDANGLAYA\" ],\n [3203221004,3203221,\"PALASARI\" ],\n [3203221005,3203221,\"CIMACAN\" ],\n [3203221006,3203221,\"CILOTO\" ],\n [3203221007,3203221,\"BATULAWANG\" ],\n [3203230001,3203230,\"PAKUON\" ],\n [3203230002,3203230,\"CIKANYERE\" ],\n [3203230003,3203230,\"SUKARESMI\" ],\n [3203230004,3203230,\"CIWALEN\" ],\n [3203230005,3203230,\"KAWUNGLUWUK\" ],\n [3203230006,3203230,\"CIBADAK\" ],\n [3203230007,3203230,\"RAWABELUT\" ],\n [3203230008,3203230,\"CIBANTENG\" ],\n [3203230009,3203230,\"KUBANG\" ],\n [3203230010,3203230,\"SUKAMAHI\" ],\n [3203230011,3203230,\"CIKANCANA\" ],\n [3203240001,3203240,\"PADAJAYA\" ],\n [3203240002,3203240,\"CINANGSI\" ],\n [3203240003,3203240,\"MENTENGSARI\" ],\n [3203240004,3203240,\"GUDANG\" ],\n [3203240005,3203240,\"SUKAGALIH\" ],\n [3203240006,3203240,\"MAJALAYA\" ],\n [3203240007,3203240,\"CIJAGANG\" ],\n [3203240008,3203240,\"MEKARJAYA\" ],\n [3203240009,3203240,\"MEKAR SARI\" ],\n [3203240010,3203240,\"SUKAMULYA\" ],\n [3203240011,3203240,\"MEKARGALIH\" ],\n [3203240012,3203240,\"NEGLASARI\" ],\n [3203240013,3203240,\"LEMBAHSARI\" ],\n [3203240014,3203240,\"WARUDOYONG\" ],\n [3203240015,3203240,\"KAMURANG\" ],\n [3203240016,3203240,\"CIRAMA GIRANG\" ],\n [3203240017,3203240,\"MEKAR MULYA\" ],\n [3203240018,3203240,\"CIGUNUNGHERANG\" ],\n [3204010001,3204010,\"PANUNDAAN\" ],\n [3204010002,3204010,\"CIWIDEY\" ],\n [3204010003,3204010,\"PANYOCOKAN\" ],\n [3204010004,3204010,\"LEBAKMUNCANG\" ],\n [3204010005,3204010,\"RAWABOGO\" ],\n [3204010006,3204010,\"NENGKELAN\" ],\n [3204010007,3204010,\"SUKAWENING\" ],\n [3204011001,3204011,\"CIPELAH\" ],\n [3204011002,3204011,\"SUKARESMI\" ],\n [3204011003,3204011,\"INDRAGIRI\" ],\n [3204011004,3204011,\"PATENGAN\" ],\n [3204011005,3204011,\"ALAMENDAH\" ],\n [3204020001,3204020,\"SUGIHMUKTI\" ],\n [3204020002,3204020,\"MARGAMULYA\" ],\n [3204020003,3204020,\"TENJOLAYA\" ],\n [3204020004,3204020,\"CISONDARI\" ],\n [3204020005,3204020,\"MEKARSARI\" ],\n [3204020006,3204020,\"CIBODAS\" ],\n [3204020007,3204020,\"CUKANGGENTENG\" ],\n [3204020008,3204020,\"PASIRJAMBU\" ],\n [3204020009,3204020,\"MEKARMAJU\" ],\n [3204020010,3204020,\"CIKONENG\" ],\n [3204030001,3204030,\"CIKALONG\" ],\n [3204030002,3204030,\"MEKARSARI\" ],\n [3204030003,3204030,\"CIPINANG\" ],\n [3204030004,3204030,\"CIMAUNG\" ],\n [3204030005,3204030,\"CAMPAKAMULYA\" ],\n [3204030006,3204030,\"PASIRHUNI\" ],\n [3204030007,3204030,\"JAGABAYA\" ],\n [3204030008,3204030,\"MALASARI\" ],\n [3204030009,3204030,\"SUKAMAJU\" ],\n [3204030010,3204030,\"WARJABAKTI\" ],\n [3204040001,3204040,\"WANASUKA\" ],\n [3204040002,3204040,\"BANJARSARI\" ],\n [3204040003,3204040,\"MARGALUYU\" ],\n [3204040004,3204040,\"SUKALUYU\" ],\n [3204040005,3204040,\"WARNASARI\" ],\n [3204040006,3204040,\"PULOSARI\" ],\n [3204040007,3204040,\"MARGAMEKAR\" ],\n [3204040008,3204040,\"SUKAMANAH\" ],\n [3204040009,3204040,\"MARGAMUKTI\" ],\n [3204040010,3204040,\"PANGALENGAN\" ],\n [3204040011,3204040,\"MARGAMULYA\" ],\n [3204040012,3204040,\"TRIBAKTIMULYA\" ],\n [3204040013,3204040,\"LAMAJANG\" ],\n [3204050001,3204050,\"NEGLAWANGI\" ],\n [3204050002,3204050,\"SANTOSA\" ],\n [3204050003,3204050,\"TARUMAJAYA\" ],\n [3204050004,3204050,\"CIKEMBANG\" ],\n [3204050005,3204050,\"CIBEUREUM\" ],\n [3204050006,3204050,\"CIHAWUK\" ],\n [3204050007,3204050,\"SUKAPURA\" ],\n [3204050008,3204050,\"RESMI TINGGAL\" ],\n [3204060001,3204060,\"CIKITU\" ],\n [3204060002,3204060,\"GIRIMULYA\" ],\n [3204060003,3204060,\"SUKARAME\" ],\n [3204060004,3204060,\"CIKAWAO\" ],\n [3204060005,3204060,\"NAGRAK\" ],\n [3204060006,3204060,\"MANDALAHAJI\" ],\n [3204060007,3204060,\"MARUYUNG\" ],\n [3204060008,3204060,\"PANGAUBAN\" ],\n [3204060009,3204060,\"CINANGGELA\" ],\n [3204060010,3204060,\"MEKARJAYA\" ],\n [3204060011,3204060,\"MEKARSARI\" ],\n [3204060012,3204060,\"CIPEUJEUH\" ],\n [3204060013,3204060,\"TANJUNGWANGI\" ],\n [3204070001,3204070,\"NEGLASARI\" ],\n [3204070002,3204070,\"DUKUH\" ],\n [3204070003,3204070,\"IBUN\" ],\n [3204070004,3204070,\"LAKSANA\" ],\n [3204070005,3204070,\"MEKARWANGI\" ],\n [3204070006,3204070,\"SUDI\" ],\n [3204070007,3204070,\"CIBEET\" ],\n [3204070008,3204070,\"PANGGUH\" ],\n [3204070009,3204070,\"KARYALAKSANA\" ],\n [3204070010,3204070,\"LAMPEGAN\" ],\n [3204070011,3204070,\"TALUN\" ],\n [3204070012,3204070,\"TANGGULUN\" ],\n [3204080001,3204080,\"LOA\" ],\n [3204080002,3204080,\"DRAWATI\" ],\n [3204080003,3204080,\"CIPAKU\" ],\n [3204080004,3204080,\"SINDANGSARI\" ],\n [3204080005,3204080,\"SUKAMANTRI\" ],\n [3204080006,3204080,\"SUKAMANAH\" ],\n [3204080007,3204080,\"MEKARPAWITAN\" ],\n [3204080008,3204080,\"CIJAGRA\" ],\n [3204080009,3204080,\"TANGSIMEKAR\" ],\n [3204080010,3204080,\"CIPEDES\" ],\n [3204080011,3204080,\"KARANGTUNGGAL\" ],\n [3204080012,3204080,\"CIGENTUR\" ],\n [3204090001,3204090,\"SRIRAHAYU\" ],\n [3204090002,3204090,\"CILULUK\" ],\n [3204090003,3204090,\"MEKARLAKSANA\" ],\n [3204090004,3204090,\"CIHANYIR\" ],\n [3204090005,3204090,\"CIKANCUNG\" ],\n [3204090006,3204090,\"MANDALASARI\" ],\n [3204090007,3204090,\"HEGARMANAH\" ],\n [3204090008,3204090,\"CIKASUNGKA\" ],\n [3204090009,3204090,\"TANJUNGLAYA\" ],\n [3204100001,3204100,\"NAGROG\" ],\n [3204100002,3204100,\"NARAWITA\" ],\n [3204100003,3204100,\"MARGAASIH\" ],\n [3204100004,3204100,\"CICALENGKA WETAN\" ],\n [3204100005,3204100,\"CIKUYA\" ],\n [3204100006,3204100,\"WALUYA\" ],\n [3204100007,3204100,\"PANENJOAN\" ],\n [3204100008,3204100,\"TENJOLAYA\" ],\n [3204100009,3204100,\"CICALENGKA KULON\" ],\n [3204100010,3204100,\"BABAKANPEUTEUY\" ],\n [3204100011,3204100,\"DAMPIT\" ],\n [3204100012,3204100,\"TANJUNGWANGI\" ],\n [3204101001,3204101,\"MANDALAWANGI\" ],\n [3204101002,3204101,\"BOJONG\" ],\n [3204101003,3204101,\"CIHERANG\" ],\n [3204101004,3204101,\"CIARO\" ],\n [3204101005,3204101,\"NAGREG\" ],\n [3204101006,3204101,\"CITAMAN\" ],\n [3204101007,3204101,\"NAGREG KENDAN\" ],\n [3204101008,3204101,\"GANJAR SABAR\" ],\n [3204110001,3204110,\"SUKAMANAH\" ],\n [3204110002,3204110,\"TEGALSUMEDANG\" ],\n [3204110003,3204110,\"RANCAEKEK KULON\" ],\n [3204110004,3204110,\"RANCAEKEK WETAN\" ],\n [3204110005,3204110,\"BOJONGLOA\" ],\n [3204110006,3204110,\"JELEGONG\" ],\n [3204110007,3204110,\"LINGGAR\" ],\n [3204110008,3204110,\"SUKAMULYA\" ],\n [3204110009,3204110,\"HAURPUGUR\" ],\n [3204110010,3204110,\"SANGIANG\" ],\n [3204110011,3204110,\"BOJONGSALAM\" ],\n [3204110012,3204110,\"CANGKUANG\" ],\n [3204110013,3204110,\"NANJUNGMEKAR\" ],\n [3204110014,3204110,\"RANCAEKEK KENCANA\" ],\n [3204120001,3204120,\"NEGLASARI\" ],\n [3204120002,3204120,\"WANGISAGARA\" ],\n [3204120003,3204120,\"PADAMULYA\" ],\n [3204120004,3204120,\"SUKAMUKTI\" ],\n [3204120005,3204120,\"PADAULUN\" ],\n [3204120006,3204120,\"BIRU\" ],\n [3204120007,3204120,\"SUKAMAJU\" ],\n [3204120008,3204120,\"MAJASETRA\" ],\n [3204120009,3204120,\"MAJALAYA\" ],\n [3204120010,3204120,\"MAJAKERTA\" ],\n [3204120011,3204120,\"BOJONG\" ],\n [3204121001,3204121,\"PANYADAP\" ],\n [3204121002,3204121,\"PADAMUKTI\" ],\n [3204121003,3204121,\"CIBODAS\" ],\n [3204121004,3204121,\"LANGENSARI\" ],\n [3204121005,3204121,\"SOLOKANJERUK\" ],\n [3204121006,3204121,\"RANCAKASUMBA\" ],\n [3204121007,3204121,\"BOJONGEMAS\" ],\n [3204130001,3204130,\"BABAKAN\" ],\n [3204130002,3204130,\"CIKONENG\" ],\n [3204130003,3204130,\"SIGARACIPTA\" ],\n [3204130004,3204130,\"PAKUTANDANG\" ],\n [3204130005,3204130,\"MANGGUNGHARJA\" ],\n [3204130006,3204130,\"MEKARSARI\" ],\n [3204130007,3204130,\"CIPARAY\" ],\n [3204130008,3204130,\"SUMBERSARI\" ],\n [3204130009,3204130,\"SARIMAHI\" ],\n [3204130010,3204130,\"SERANGMEKAR\" ],\n [3204130011,3204130,\"GUNUNGLEUTIK\" ],\n [3204130012,3204130,\"CIHEULANG\" ],\n [3204130013,3204130,\"MEKARLAKSANA\" ],\n [3204130014,3204130,\"BUMIWANGI\" ],\n [3204140001,3204140,\"JELEKONG\" ],\n [3204140002,3204140,\"MANGGAHANG\" ],\n [3204140003,3204140,\"BALEENDAH\" ],\n [3204140004,3204140,\"ANDIR\" ],\n [3204140005,3204140,\"MALAKASARI\" ],\n [3204140006,3204140,\"BOJONGMALAKA\" ],\n [3204140007,3204140,\"RANCAMANYAR\" ],\n [3204140008,3204140,\"WARGAMEKAR\" ],\n [3204150001,3204150,\"BATUKARUT\" ],\n [3204150002,3204150,\"MANGUNJAYA\" ],\n [3204150003,3204150,\"MEKARJAYA\" ],\n [3204150004,3204150,\"BAROS\" ],\n [3204150005,3204150,\"LEBAKWANGI\" ],\n [3204150006,3204150,\"WARGALUYU\" ],\n [3204150007,3204150,\"ARJASARI\" ],\n [3204150008,3204150,\"PINGGIRSARI\" ],\n [3204150009,3204150,\"PATROLSARI\" ],\n [3204150010,3204150,\"RANCAKOLE\" ],\n [3204150011,3204150,\"ANCOLMEKAR\" ],\n [3204160001,3204160,\"MEKARJAYA\" ],\n [3204160002,3204160,\"BANJARAN WETAN\" ],\n [3204160003,3204160,\"CIAPUS\" ],\n [3204160004,3204160,\"SINDANGPANON\" ],\n [3204160005,3204160,\"NEGLASARI\" ],\n [3204160006,3204160,\"MARGAHURIP\" ],\n [3204160007,3204160,\"KIANGROKE\" ],\n [3204160008,3204160,\"KAMASAN\" ],\n [3204160009,3204160,\"BANJARAN\" ],\n [3204160010,3204160,\"TARAJUSARI\" ],\n [3204160011,3204160,\"PASIRMULYA\" ],\n [3204161001,3204161,\"JATISARI\" ],\n [3204161002,3204161,\"NAGRAK\" ],\n [3204161003,3204161,\"BANDASARI\" ],\n [3204161004,3204161,\"PANANJUNG\" ],\n [3204161005,3204161,\"CILUNCAT\" ],\n [3204161006,3204161,\"CANGKUANG\" ],\n [3204161007,3204161,\"TANJUNGSARI\" ],\n [3204170001,3204170,\"BOJONGMANGGU\" ],\n [3204170002,3204170,\"LANGONSARI\" ],\n [3204170003,3204170,\"SUKASARI\" ],\n [3204170004,3204170,\"RANCAMULYA\" ],\n [3204170005,3204170,\"RANCATUNGKU\" ],\n [3204170006,3204170,\"BOJONGKUNCI\" ],\n [3204180004,3204180,\"GANDASARI\" ],\n [3204180005,3204180,\"KATAPANG\" ],\n [3204180006,3204180,\"CILAMPENI\" ],\n [3204180007,3204180,\"PANGAUBAN\" ],\n [3204180008,3204180,\"BANYUSARI\" ],\n [3204180009,3204180,\"SANGKANHURIP\" ],\n [3204180010,3204180,\"SUKAMUKTI\" ],\n [3204190002,3204190,\"SADU\" ],\n [3204190003,3204190,\"SUKAJADI\" ],\n [3204190004,3204190,\"SUKANAGARA\" ],\n [3204190005,3204190,\"PANYIRAPAN\" ],\n [3204190006,3204190,\"KARAMATMULYA\" ],\n [3204190007,3204190,\"SOREANG\" ],\n [3204190008,3204190,\"PAMEKARAN\" ],\n [3204190019,3204190,\"PARUNGSERAB\" ],\n [3204190020,3204190,\"SEKARWANGI\" ],\n [3204190021,3204190,\"CINGCIN\" ],\n [3204191001,3204191,\"CILAME\" ],\n [3204191002,3204191,\"BUNINAGARA\" ],\n [3204191003,3204191,\"PADASUKA\" ],\n [3204191004,3204191,\"SUKAMULYA\" ],\n [3204191005,3204191,\"KUTAWARINGIN\" ],\n [3204191006,3204191,\"KOPO\" ],\n [3204191007,3204191,\"CIBODAS\" ],\n [3204191008,3204191,\"JATISARI\" ],\n [3204191009,3204191,\"JELEGONG\" ],\n [3204191010,3204191,\"GAJAHMEKAR\" ],\n [3204191011,3204191,\"PAMEUNTASAN\" ],\n [3204250001,3204250,\"NANJUNG\" ],\n [3204250002,3204250,\"MEKAR RAHAYU\" ],\n [3204250003,3204250,\"RAHAYU\" ],\n [3204250004,3204250,\"CIGONDEWAH HILIR\" ],\n [3204250005,3204250,\"MARGAASIH\" ],\n [3204250006,3204250,\"LAGADAR\" ],\n [3204260001,3204260,\"SULAEMAN\" ],\n [3204260002,3204260,\"SUKAMENAK\" ],\n [3204260003,3204260,\"SAYATI\" ],\n [3204260004,3204260,\"MARGAHAYU SELATAN\" ],\n [3204260005,3204260,\"MARGAHAYU TENGAH\" ],\n [3204270001,3204270,\"CANGKUANG KULON\" ],\n [3204270002,3204270,\"CANGKUANG WETAN\" ],\n [3204270003,3204270,\"PASAWAHAN\" ],\n [3204270004,3204270,\"DAYEUHKOLOT\" ],\n [3204270005,3204270,\"CITEUREUP\" ],\n [3204270006,3204270,\"SUKAPURA\" ],\n [3204280001,3204280,\"BOJONGSARI\" ],\n [3204280002,3204280,\"BOJONGSOANG\" ],\n [3204280003,3204280,\"LENGKONG\" ],\n [3204280004,3204280,\"CIPAGALO\" ],\n [3204280005,3204280,\"BUAHBATU\" ],\n [3204280006,3204280,\"TEGALLUAR\" ],\n [3204290001,3204290,\"CIBIRU HILIR\" ],\n [3204290002,3204290,\"CINUNUK\" ],\n [3204290003,3204290,\"CIMEKAR\" ],\n [3204290004,3204290,\"CILEUNYI KULON\" ],\n [3204290005,3204290,\"CILEUNYI WETAN\" ],\n [3204290006,3204290,\"CIBIRU WETAN\" ],\n [3204300001,3204300,\"GIRIMEKAR\" ],\n [3204300002,3204300,\"JATIENDAH\" ],\n [3204300003,3204300,\"MELATIWANGI\" ],\n [3204300004,3204300,\"CIPANJALU\" ],\n [3204300005,3204300,\"CIPOREAT\" ],\n [3204300006,3204300,\"CILENGKRANG\" ],\n [3204310001,3204310,\"CIBEUNYING\" ],\n [3204310002,3204310,\"PADASUKA\" ],\n [3204310003,3204310,\"MANDALAMEKAR\" ],\n [3204310004,3204310,\"CIKADUT\" ],\n [3204310005,3204310,\"SINDANGLAYA\" ],\n [3204310006,3204310,\"MEKARMANIK\" ],\n [3204310007,3204310,\"CIMENYAN\" ],\n [3204310008,3204310,\"MEKARSALUYU\" ],\n [3204310009,3204310,\"CIBURIAL\" ],\n [3205010006,3205010,\"SUKAJAYA\" ],\n [3205010007,3205010,\"CIKARANG\" ],\n [3205010008,3205010,\"PAMALAYAN\" ],\n [3205010009,3205010,\"CISEWU\" ],\n [3205010010,3205010,\"GIRIMUKTI\" ],\n [3205010011,3205010,\"NYALINDUNG\" ],\n [3205010012,3205010,\"KARANGSEWU\" ],\n [3205010013,3205010,\"MEKARSEWU\" ],\n [3205010014,3205010,\"PANGGALIH\" ],\n [3205011001,3205011,\"CIMAHI\" ],\n [3205011002,3205011,\"INDRALAYANG\" ],\n [3205011003,3205011,\"PURBAYANI\" ],\n [3205011004,3205011,\"CARINGIN\" ],\n [3205011005,3205011,\"SUKARAME\" ],\n [3205011006,3205011,\"SAMUDRAJAYA\" ],\n [3205020001,3205020,\"SELAAWI\" ],\n [3205020002,3205020,\"MEKARMUKTI\" ],\n [3205020003,3205020,\"MEKARMULYA\" ],\n [3205020004,3205020,\"SUKAMULYA\" ],\n [3205020005,3205020,\"SUKAMAJU\" ],\n [3205020006,3205020,\"SUKALAKSANA\" ],\n [3205020007,3205020,\"MEKARWANGI\" ],\n [3205030001,3205030,\"SINARJAYA\" ],\n [3205030005,3205030,\"TEGALEGA\" ],\n [3205030006,3205030,\"WANGUNJAYA\" ],\n [3205030007,3205030,\"MEKARJAYA\" ],\n [3205030008,3205030,\"HANJUANG\" ],\n [3205030009,3205030,\"MARGALAKSANA\" ],\n [3205030010,3205030,\"GUNAMEKAR\" ],\n [3205030011,3205030,\"BUNGBULANG\" ],\n [3205030012,3205030,\"CIHIKEU\" ],\n [3205030013,3205030,\"BOJONG\" ],\n [3205030014,3205030,\"MEKARBAKTI\" ],\n [3205030015,3205030,\"GUNUNG JAMPANG\" ],\n [3205030016,3205030,\"HEGARMANAH\" ],\n [3205031001,3205031,\"KARANGWANGI\" ],\n [3205031002,3205031,\"CIJAYANA\" ],\n [3205031003,3205031,\"MEKARMUKTI\" ],\n [3205031004,3205031,\"JAGABAYA\" ],\n [3205031005,3205031,\"MEKARSARI\" ],\n [3205040001,3205040,\"LINGGARJATI\" ],\n [3205040002,3205040,\"GARUMUKTI\" ],\n [3205040003,3205040,\"PANAWA\" ],\n [3205040004,3205040,\"PAKENJENG\" ],\n [3205040005,3205040,\"PANANJUNG\" ],\n [3205050001,3205050,\"KARANGSARI\" ],\n [3205050002,3205050,\"TANJUNGMULYA\" ],\n [3205050003,3205050,\"TANJUNGJAYA\" ],\n [3205050004,3205050,\"TEGALGEDE\" ],\n [3205050005,3205050,\"NEGLASARI\" ],\n [3205050006,3205050,\"SUKAMULYA\" ],\n [3205050007,3205050,\"DEPOK\" ],\n [3205050008,3205050,\"PASIRLANGU\" ],\n [3205050009,3205050,\"PANYINDANGAN\" ],\n [3205050010,3205050,\"WANGUNJAYA\" ],\n [3205050011,3205050,\"JATIWANGI\" ],\n [3205050012,3205050,\"TALAGAWANGI\" ],\n [3205050013,3205050,\"JAYAMEKAR\" ],\n [3205060001,3205060,\"CIGADOG\" ],\n [3205060002,3205060,\"CIJAMBE\" ],\n [3205060003,3205060,\"CIKELET\" ],\n [3205060004,3205060,\"PAMALAYAN\" ],\n [3205060005,3205060,\"LINGGAMANIK\" ],\n [3205060006,3205060,\"KARANGSARI\" ],\n [3205060007,3205060,\"KERTAMUKTI\" ],\n [3205060008,3205060,\"CIROYOM\" ],\n [3205060009,3205060,\"GIRIMUKTI\" ],\n [3205060010,3205060,\"TIPAR\" ],\n [3205060011,3205060,\"AWASSAGARA\" ],\n [3205070001,3205070,\"MANCAGAHAR\" ],\n [3205070002,3205070,\"PAMEUNGPEUK\" ],\n [3205070003,3205070,\"MANDALAKASIH\" ],\n [3205070004,3205070,\"SIRNABAKTI\" ],\n [3205070005,3205070,\"PAAS\" ],\n [3205070006,3205070,\"BOJONG\" ],\n [3205070007,3205070,\"JATIMULYA\" ],\n [3205070008,3205070,\"BOJONGKIDUL\" ],\n [3205080001,3205080,\"MEKARSARI\" ],\n [3205080002,3205080,\"KARYASARI\" ],\n [3205080003,3205080,\"KARYA MUKTI\" ],\n [3205080004,3205080,\"SAGARA\" ],\n [3205080005,3205080,\"MAROKO\" ],\n [3205080006,3205080,\"SANCANG\" ],\n [3205080007,3205080,\"SIMPANG\" ],\n [3205080008,3205080,\"CIGARONGGONG\" ],\n [3205080009,3205080,\"MEKARMUKTI\" ],\n [3205080010,3205080,\"MEKARWANGI\" ],\n [3205080011,3205080,\"NAJATEN\" ],\n [3205090001,3205090,\"DEPOK\" ],\n [3205090002,3205090,\"SUKANAGARA\" ],\n [3205090003,3205090,\"CIHAURKUNING\" ],\n [3205090004,3205090,\"CIKONDANG\" ],\n [3205090005,3205090,\"JATISARI\" ],\n [3205090006,3205090,\"CISOMPET\" ],\n [3205090007,3205090,\"SUKAMUKTI\" ],\n [3205090008,3205090,\"PANYINDANGAN\" ],\n [3205090009,3205090,\"MARGAMULYA\" ],\n [3205090010,3205090,\"SINDANGSARI\" ],\n [3205090011,3205090,\"NEGLASARI\" ],\n [3205100001,3205100,\"PANGRUMASAN\" ],\n [3205100002,3205100,\"TOBLONG\" ],\n [3205100003,3205100,\"SUKANAGARA\" ],\n [3205100004,3205100,\"SARIBAKTI\" ],\n [3205100005,3205100,\"PEUNDEUY\" ],\n [3205100006,3205100,\"PURWAJAYA\" ],\n [3205110005,3205110,\"SINGAJAYA\" ],\n [3205110006,3205110,\"KARANGAGUNG\" ],\n [3205110007,3205110,\"MEKARTANI\" ],\n [3205110008,3205110,\"CIGINTUNG\" ],\n [3205110009,3205110,\"SUKAWANGI\" ],\n [3205110010,3205110,\"PANCASURA\" ],\n [3205110011,3205110,\"SUKAMULYA\" ],\n [3205110012,3205110,\"GIRIMUKTI\" ],\n [3205110013,3205110,\"CIUDIAN\" ],\n [3205111001,3205111,\"CISANGKAL\" ],\n [3205111002,3205111,\"JAYAMUKTI\" ],\n [3205111003,3205111,\"CIHURIP\" ],\n [3205111004,3205111,\"MEKARWANGI\" ],\n [3205120001,3205120,\"CIPANGRAMATAN\" ],\n [3205120002,3205120,\"MEKARJAYA\" ],\n [3205120003,3205120,\"GIRIJAYA\" ],\n [3205120004,3205120,\"GIRIAWAS\" ],\n [3205120005,3205120,\"CIBODAS\" ],\n [3205120006,3205120,\"CIKAJANG\" ],\n [3205120007,3205120,\"PADASUKA\" ],\n [3205120008,3205120,\"MEKARSARI\" ],\n [3205120009,3205120,\"SIMPANG\" ],\n [3205120010,3205120,\"CIKANDANG\" ],\n [3205120011,3205120,\"MARGAMULYA\" ],\n [3205120012,3205120,\"KARAMATWANGI\" ],\n [3205130001,3205130,\"DANGIANG\" ],\n [3205130002,3205130,\"JAYABAKTI\" ],\n [3205130003,3205130,\"BOJONG\" ],\n [3205130004,3205130,\"BANJARWANGI\" ],\n [3205130005,3205130,\"TALAGASARI\" ],\n [3205130006,3205130,\"PADAHURIP\" ],\n [3205130007,3205130,\"KADONGDONG\" ],\n [3205130008,3205130,\"WANGUNJAYA\" ],\n [3205130009,3205130,\"TALAGAJAYA\" ],\n [3205130010,3205130,\"TANJUNGJAYA\" ],\n [3205130011,3205130,\"MULYAJAYA\" ],\n [3205140001,3205140,\"SUKAMURNI\" ],\n [3205140002,3205140,\"SUKAMAJU\" ],\n [3205140003,3205140,\"SUKATANI\" ],\n [3205140004,3205140,\"MEKARSARI\" ],\n [3205140005,3205140,\"DAYEUHMANGGUNG\" ],\n [3205140006,3205140,\"KARYAMEKAR\" ],\n [3205140007,3205140,\"CILAWU\" ],\n [3205140008,3205140,\"PASANGGRAHAN\" ],\n [3205140009,3205140,\"MARGALAKSANA\" ],\n [3205140010,3205140,\"DAWUNGSARI\" ],\n [3205140011,3205140,\"DANGIANG\" ],\n [3205140012,3205140,\"SUKAMUKTI\" ],\n [3205140013,3205140,\"MEKARMUKTI\" ],\n [3205140014,3205140,\"SUKAHATI\" ],\n [3205140015,3205140,\"MANGKURAYAT\" ],\n [3205140016,3205140,\"DESAKOLOT\" ],\n [3205140017,3205140,\"NGAMPLANG\" ],\n [3205140018,3205140,\"NGAMPLANGSARI\" ],\n [3205150006,3205150,\"PAMALAYAN\" ],\n [3205150007,3205150,\"CIBURUY\" ],\n [3205150008,3205150,\"MULYASARI\" ],\n [3205150009,3205150,\"BAYONGBONG\" ],\n [3205150010,3205150,\"CINISTI\" ],\n [3205150011,3205150,\"CIELA\" ],\n [3205150012,3205150,\"KARYAJAYA\" ],\n [3205150013,3205150,\"PANEMBONG\" ],\n [3205150014,3205150,\"SUKARAME\" ],\n [3205150015,3205150,\"HEGARMANAH\" ],\n [3205150016,3205150,\"SIRNAGALIH\" ],\n [3205150017,3205150,\"SALAKURAY\" ],\n [3205150018,3205150,\"SUKASENANG\" ],\n [3205150019,3205150,\"CIKEDOKAN\" ],\n [3205150020,3205150,\"MEKARSARI\" ],\n [3205150021,3205150,\"BANJARSARI\" ],\n [3205150022,3205150,\"MEKARJAYA\" ],\n [3205150023,3205150,\"SUKAMANAH\" ],\n [3205151001,3205151,\"BARUSUDA\" ],\n [3205151002,3205151,\"CIGEDUG\" ],\n [3205151003,3205151,\"SUKAHURIP\" ],\n [3205151004,3205151,\"SINDANGSARI\" ],\n [3205151005,3205151,\"CINTANAGARA\" ],\n [3205160001,3205160,\"SUKAWARGI\" ],\n [3205160002,3205160,\"SUKATANI\" ],\n [3205160003,3205160,\"CIDATAR\" ],\n [3205160004,3205160,\"CISERO\" ],\n [3205160005,3205160,\"CISURUPAN\" ],\n [3205160006,3205160,\"KARAMATWANGI\" ],\n [3205160007,3205160,\"BALEWANGI\" ],\n [3205160008,3205160,\"TAMBAKBAYA\" ],\n [3205160009,3205160,\"SIRNAJAYA\" ],\n [3205160010,3205160,\"SIRNAGALIH\" ],\n [3205160011,3205160,\"PAKUWON\" ],\n [3205160012,3205160,\"SIMPANGSARI\" ],\n [3205160013,3205160,\"PANGAUBAN\" ],\n [3205160014,3205160,\"CIPAGANTI\" ],\n [3205160015,3205160,\"PAMULIHAN\" ],\n [3205160016,3205160,\"SITUSARI\" ],\n [3205160017,3205160,\"CINTAASIH\" ],\n [3205161001,3205161,\"SUKAMULYA\" ],\n [3205161002,3205161,\"SUKARESMI\" ],\n [3205161003,3205161,\"PADAMUKTI\" ],\n [3205161004,3205161,\"CINTADAMAI\" ],\n [3205161005,3205161,\"SUKAJAYA\" ],\n [3205161006,3205161,\"MEKARJAYA\" ],\n [3205161007,3205161,\"SUKALILAH\" ],\n [3205170013,3205170,\"CISARUA\" ],\n [3205170014,3205170,\"PARAKAN\" ],\n [3205170015,3205170,\"SUKALAKSANA\" ],\n [3205170016,3205170,\"SIRNASARI\" ],\n [3205170017,3205170,\"CINTAKARYA\" ],\n [3205170018,3205170,\"CINTARASA\" ],\n [3205170019,3205170,\"CINTARAYAT\" ],\n [3205170020,3205170,\"CINTAASIH\" ],\n [3205170021,3205170,\"SAMARANG\" ],\n [3205170022,3205170,\"SUKARASA\" ],\n [3205170023,3205170,\"SUKAKARYA\" ],\n [3205170024,3205170,\"TANJUNG KARYA\" ],\n [3205170025,3205170,\"TANJUNGANOM\" ],\n [3205171001,3205171,\"KARYAMEKAR\" ],\n [3205171002,3205171,\"SARIMUKTI\" ],\n [3205171003,3205171,\"TALAGA\" ],\n [3205171004,3205171,\"PASIRKIAMIS\" ],\n [3205171005,3205171,\"PADAMUKTI\" ],\n [3205171006,3205171,\"PADAASIH\" ],\n [3205171007,3205171,\"PADASUKA\" ],\n [3205171008,3205171,\"SIRNAJAYA\" ],\n [3205171009,3205171,\"PADAMULYA\" ],\n [3205171010,3205171,\"PASIRWANGI\" ],\n [3205171011,3205171,\"PADAAWAS\" ],\n [3205171012,3205171,\"BARUSARI\" ],\n [3205181001,3205181,\"KERSAMENAK\" ],\n [3205181002,3205181,\"CIBUNAR\" ],\n [3205181003,3205181,\"SUKABAKTI\" ],\n [3205181004,3205181,\"SUKAKARYA\" ],\n [3205181005,3205181,\"SUKAJAYA\" ],\n [3205181006,3205181,\"JAYAWARAS\" ],\n [3205181007,3205181,\"HAURPANGGUNG\" ],\n [3205181008,3205181,\"JAYARAGA\" ],\n [3205181009,3205181,\"PATARUMAN\" ],\n [3205181010,3205181,\"SUKAGALIH\" ],\n [3205181011,3205181,\"MEKARGALIH\" ],\n [3205181012,3205181,\"TAROGONG\" ],\n [3205182001,3205182,\"SIRNAJAYA\" ],\n [3205182002,3205182,\"MEKARWANGI\" ],\n [3205182003,3205182,\"SUKAJADI\" ],\n [3205182004,3205182,\"SUKAWANGI\" ],\n [3205182005,3205182,\"PANJIWANGI\" ],\n [3205182006,3205182,\"MEKARJAYA\" ],\n [3205182007,3205182,\"RANCABANGO\" ],\n [3205182008,3205182,\"LANGENSARI\" ],\n [3205182009,3205182,\"CIMANGANTEN\" ],\n [3205182010,3205182,\"JATI\" ],\n [3205182011,3205182,\"TANJUNGKAMUNING\" ],\n [3205182012,3205182,\"PANANJUNG\" ],\n [3205182013,3205182,\"PASAWAHAN\" ],\n [3205190001,3205190,\"MARGAWATI\" ],\n [3205190002,3205190,\"SUKANEGLA\" ],\n [3205190003,3205190,\"CIMUNCANG\" ],\n [3205190004,3205190,\"KOTAWETAN\" ],\n [3205190005,3205190,\"KOTAKULON\" ],\n [3205190006,3205190,\"MUARA SANDING\" ],\n [3205190007,3205190,\"PAMINGGIR\" ],\n [3205190008,3205190,\"REGOL\" ],\n [3205190009,3205190,\"CIWALEN\" ],\n [3205190010,3205190,\"PAKUWON\" ],\n [3205190011,3205190,\"SUKAMANTRI\" ],\n [3205200001,3205200,\"LEBAKAGUNG\" ],\n [3205200002,3205200,\"SUCI\" ],\n [3205200003,3205200,\"LEBAKJAYA\" ],\n [3205200004,3205200,\"TANJUNGSARI\" ],\n [3205200005,3205200,\"GODOG\" ],\n [3205200006,3205200,\"SINDANGGALIH\" ],\n [3205200007,3205200,\"SINDANGPALAY\" ],\n [3205200008,3205200,\"KARANGPAWITAN\" ],\n [3205200009,3205200,\"SITUGEDE\" ],\n [3205200010,3205200,\"SITUSARI\" ],\n [3205200011,3205200,\"SITUJAYA\" ],\n [3205200012,3205200,\"SITUSAEUR\" ],\n [3205200013,3205200,\"KARANGSARI\" ],\n [3205200014,3205200,\"CIMURAH\" ],\n [3205200015,3205200,\"SINDANGLAYA\" ],\n [3205200016,3205200,\"MEKARSARI\" ],\n [3205200017,3205200,\"JATISARI\" ],\n [3205200018,3205200,\"KARANGMULYA\" ],\n [3205200019,3205200,\"SUCIKALER\" ],\n [3205200020,3205200,\"LENGKONGJAYA\" ],\n [3205210005,3205210,\"SUKAMENAK\" ],\n [3205210007,3205210,\"SINDANGMEKAR\" ],\n [3205210008,3205210,\"SINDANGRATU\" ],\n [3205210012,3205210,\"CINUNUK\" ],\n [3205210013,3205210,\"WANAMEKAR\" ],\n [3205210014,3205210,\"WANARAJA\" ],\n [3205210015,3205210,\"WANASARI\" ],\n [3205210016,3205210,\"WANAJAYA\" ],\n [3205210017,3205210,\"SINDANGPRABU\" ],\n [3205211001,3205211,\"LINGGAMUKTI\" ],\n [3205211002,3205211,\"SUKALAKSANA\" ],\n [3205211003,3205211,\"CIGADOG\" ],\n [3205211004,3205211,\"TENJONAGARA\" ],\n [3205211005,3205211,\"SUKARATU\" ],\n [3205211006,3205211,\"TEGALPANJANG\" ],\n [3205211007,3205211,\"SADANG\" ],\n [3205212001,3205212,\"SUKAHURIP\" ],\n [3205212002,3205212,\"BABAKANLOA\" ],\n [3205212003,3205212,\"SUKARASA\" ],\n [3205212004,3205212,\"CIMARAGAS\" ],\n [3205212005,3205212,\"CIHUNI\" ],\n [3205212006,3205212,\"CITANGTU\" ],\n [3205212007,3205212,\"KARANGSARI\" ],\n [3205212008,3205212,\"SUKAMULYA\" ],\n [3205220001,3205220,\"PASANGGRAHAN\" ],\n [3205220006,3205220,\"SUKAMUKTI\" ],\n [3205220007,3205220,\"MEKARLUYU\" ],\n [3205220008,3205220,\"SUKAWENING\" ],\n [3205220009,3205220,\"SUDALARANG\" ],\n [3205220010,3205220,\"MARIPARI\" ],\n [3205220011,3205220,\"SUKAHAJI\" ],\n [3205220012,3205220,\"SUKASONO\" ],\n [3205220013,3205220,\"SUKALUYU\" ],\n [3205220014,3205220,\"MEKARWANGI\" ],\n [3205220015,3205220,\"MEKARHURIP\" ],\n [3205221001,3205221,\"SINDANGGALIH\" ],\n [3205221002,3205221,\"CINTA\" ],\n [3205221003,3205221,\"CINTAMANIK\" ],\n [3205221004,3205221,\"CARINGIN\" ],\n [3205230003,3205230,\"SUKARAJA\" ],\n [3205230004,3205230,\"SUKAKARYA\" ],\n [3205230005,3205230,\"PAMEKARSARI\" ],\n [3205230006,3205230,\"SUKASENANG\" ],\n [3205230007,3205230,\"SUKARATU\" ],\n [3205230008,3205230,\"CIPICUNG\" ],\n [3205230009,3205230,\"BAGENDIT\" ],\n [3205230010,3205230,\"SUKAMUKTI\" ],\n [3205230011,3205230,\"BANYURESMI\" ],\n [3205230012,3205230,\"BINAKARYA\" ],\n [3205230013,3205230,\"DANGDEUR\" ],\n [3205230014,3205230,\"KARYASARI\" ],\n [3205230015,3205230,\"KARYAMUKTI\" ],\n [3205230016,3205230,\"CIMAREME\" ],\n [3205230017,3205230,\"SUKALAKSANA\" ],\n [3205240001,3205240,\"DANO\" ],\n [3205240002,3205240,\"JANGKURANG\" ],\n [3205240003,3205240,\"LEMBANG\" ],\n [3205240004,3205240,\"CIPANCAR\" ],\n [3205240005,3205240,\"KANDANGMUKTI\" ],\n [3205240006,3205240,\"CIBURIAL\" ],\n [3205240007,3205240,\"SALAMNUNGGAL\" ],\n [3205240008,3205240,\"LELES\" ],\n [3205240009,3205240,\"HARUMAN\" ],\n [3205240010,3205240,\"MARGALUYU\" ],\n [3205240011,3205240,\"CANGKUANG\" ],\n [3205240012,3205240,\"SUKARAME\" ],\n [3205250001,3205250,\"MARGAHAYU\" ],\n [3205250002,3205250,\"MARGACINTA\" ],\n [3205250003,3205250,\"DUNGUSIKU\" ],\n [3205250004,3205250,\"TAMBAKSARI\" ],\n [3205250005,3205250,\"KARANGSARI\" ],\n [3205250006,3205250,\"KARANGANYAR\" ],\n [3205250007,3205250,\"SINDANGSARI\" ],\n [3205250008,3205250,\"LEUWIGOONG\" ],\n [3205260001,3205260,\"CIBATU\" ],\n [3205260002,3205260,\"KERTAJAYA\" ],\n [3205260003,3205260,\"WANAKERTA\" ],\n [3205260004,3205260,\"KARYAMUKTI\" ],\n [3205260005,3205260,\"PADASUKA\" ],\n [3205260006,3205260,\"KERESEK\" ],\n [3205260007,3205260,\"CIBUNAR\" ],\n [3205260008,3205260,\"SUKALILAH\" ],\n [3205260009,3205260,\"GIRIMUKTI\" ],\n [3205260015,3205260,\"MEKARSARI\" ],\n [3205260016,3205260,\"SINDANGSUKA\" ],\n [3205261001,3205261,\"SUKAMAJU\" ],\n [3205261002,3205261,\"GIRIJAYA\" ],\n [3205261003,3205261,\"KERSAMANAH\" ],\n [3205261004,3205261,\"NANJUNGJAYA\" ],\n [3205261005,3205261,\"SUKAMERANG\" ],\n [3205261006,3205261,\"MEKARRAYA\" ],\n [3205270001,3205270,\"CIPAREUAN\" ],\n [3205270002,3205270,\"CIBIUK KIDUL\" ],\n [3205270003,3205270,\"CIBIUK KALER\" ],\n [3205270004,3205270,\"MAJASARI\" ],\n [3205270005,3205270,\"LINGKUNGPASIR\" ],\n [3205280001,3205280,\"RANCASALAK\" ],\n [3205280002,3205280,\"MANDALASARI\" ],\n [3205280003,3205280,\"HEGARSARI\" ],\n [3205280004,3205280,\"TALAGASARI\" ],\n [3205280005,3205280,\"KARANGMULYA\" ],\n [3205280006,3205280,\"KARANGTENGAH\" ],\n [3205280007,3205280,\"GANDAMEKAR\" ],\n [3205280008,3205280,\"KADUNGORA\" ],\n [3205280009,3205280,\"NEGLASARI\" ],\n [3205280010,3205280,\"CIKEMBULAN\" ],\n [3205280011,3205280,\"CISAAT\" ],\n [3205280012,3205280,\"MEKARBAKTI\" ],\n [3205280013,3205280,\"TANGGULUN\" ],\n [3205280014,3205280,\"HARUMANSARI\" ],\n [3205290002,3205290,\"CIJOLANG\" ],\n [3205290003,3205290,\"CIGAGADE\" ],\n [3205290004,3205290,\"PASIRWARU\" ],\n [3205290005,3205290,\"LIMBANGANBARAT\" ],\n [3205290006,3205290,\"LIMBANGANTENGAH\" ],\n [3205290007,3205290,\"LIMBANGANTIMUR\" ],\n [3205290008,3205290,\"DUNGUSWIRU\" ],\n [3205290009,3205290,\"GALIHPAKUWON\" ],\n [3205290010,3205290,\"NEGLASARI\" ],\n [3205290011,3205290,\"SURABAYA\" ],\n [3205290012,3205290,\"CIWANGI\" ],\n [3205290013,3205290,\"PANGEUREUNAN\" ],\n [3205290014,3205290,\"SIMPEN KIDUL\" ],\n [3205290015,3205290,\"SIMPEN KALER\" ],\n [3205300001,3205300,\"CIGAWIR\" ],\n [3205300002,3205300,\"PUTRAJAWA\" ],\n [3205300003,3205300,\"MEKARSARI\" ],\n [3205300004,3205300,\"SELAAWI\" ],\n [3205300005,3205300,\"CIRAPUHAN\" ],\n [3205300006,3205300,\"SAMIDA\" ],\n [3205300007,3205300,\"PELITAASIH\" ],\n [3205310001,3205310,\"KUTANAGARA\" ],\n [3205310002,3205310,\"SANDING\" ],\n [3205310003,3205310,\"KARANGMULYA\" ],\n [3205310004,3205310,\"CINAGARA\" ],\n [3205310005,3205310,\"CIKARAG\" ],\n [3205310006,3205310,\"CAMPAKA\" ],\n [3205310007,3205310,\"SUKAMANAH\" ],\n [3205310008,3205310,\"CIHAURKUNING\" ],\n [3205310009,3205310,\"CITERAS\" ],\n [3205310010,3205310,\"LEWOBARU\" ],\n [3205310011,3205310,\"SUKARATU\" ],\n [3205310012,3205310,\"SUKARASA\" ],\n [3205310013,3205310,\"CIBUNAR\" ],\n [3205310014,3205310,\"MALANGBONG\" ],\n [3205310015,3205310,\"CISITU\" ],\n [3205310016,3205310,\"SAKAWAYANA\" ],\n [3205310017,3205310,\"SEKARWANGI\" ],\n [3205310018,3205310,\"MEKARASIH\" ],\n [3205310019,3205310,\"CILAMPUYANG\" ],\n [3205310020,3205310,\"MEKAR MULYA\" ],\n [3205310021,3205310,\"BARUDUA\" ],\n [3205310022,3205310,\"BUNISARI\" ],\n [3205310023,3205310,\"SUKAJAYA\" ],\n [3205310024,3205310,\"GIRIMAKMUR\" ],\n [3206010001,3206010,\"CIHERAS\" ],\n [3206010002,3206010,\"CIPANAS\" ],\n [3206010003,3206010,\"CIANDUM\" ],\n [3206010004,3206010,\"CIPATUJAH\" ],\n [3206010005,3206010,\"SINDANGKERTA\" ],\n [3206010006,3206010,\"CIKAWUNGADING\" ],\n [3206010007,3206010,\"KERTASARI\" ],\n [3206010008,3206010,\"PADAWARAS\" ],\n [3206010009,3206010,\"DARAWATI\" ],\n [3206010010,3206010,\"BANTARKALONG\" ],\n [3206010011,3206010,\"TOBONGJAYA\" ],\n [3206010012,3206010,\"NANGELASARI\" ],\n [3206010013,3206010,\"NAGROG\" ],\n [3206010014,3206010,\"PAMEUTINGAN\" ],\n [3206010015,3206010,\"SUKAHURIP\" ],\n [3206020001,3206020,\"CIDADAP\" ],\n [3206020002,3206020,\"KUJANG\" ],\n [3206020003,3206020,\"SARIMUKTI\" ],\n [3206020004,3206020,\"CIAWI\" ],\n [3206020005,3206020,\"CIKAPINIS\" ],\n [3206020006,3206020,\"CIKUPA\" ],\n [3206020007,3206020,\"KARANGNUNGGAL\" ],\n [3206020008,3206020,\"KARANGMEKAR\" ],\n [3206020009,3206020,\"CIBATUIRENG\" ],\n [3206020010,3206020,\"CIBATU\" ],\n [3206020011,3206020,\"SUKAWANGUN\" ],\n [3206020012,3206020,\"CINTAWANGI\" ],\n [3206020013,3206020,\"CIKUKULU\" ],\n [3206020014,3206020,\"SARIMANGGU\" ],\n [3206030001,3206030,\"MANDALAJAYA\" ],\n [3206030002,3206030,\"CIKALONG\" ],\n [3206030003,3206030,\"CIKANCRA\" ],\n [3206030004,3206030,\"TONJONGSARI\" ],\n [3206030005,3206030,\"SINGKIR\" ],\n [3206030006,3206030,\"PANYIARAN\" ],\n [3206030007,3206030,\"CIBEBER\" ],\n [3206030008,3206030,\"CIDADALI\" ],\n [3206030009,3206030,\"KUBANGSARI\" ],\n [3206030010,3206030,\"CIKADU\" ],\n [3206030011,3206030,\"SINDANGJAYA\" ],\n [3206030012,3206030,\"KALAPAGENEP\" ],\n [3206030013,3206030,\"CIMANUK\" ],\n [3206040001,3206040,\"MARGALUYU\" ],\n [3206040002,3206040,\"CIBUNIASIH\" ],\n [3206040003,3206040,\"PANGLIARAN\" ],\n [3206040004,3206040,\"PANCAWANGI\" ],\n [3206040005,3206040,\"JAYAMUKTI\" ],\n [3206040006,3206040,\"TONJONG\" ],\n [3206040007,3206040,\"CIBONGAS\" ],\n [3206040008,3206040,\"CIKAWUNG\" ],\n [3206040009,3206040,\"TAWANG\" ],\n [3206040010,3206040,\"MEKARSARI\" ],\n [3206040011,3206040,\"NEGLASARI\" ],\n [3206050001,3206050,\"GUNUNGSARI\" ],\n [3206050002,3206050,\"CILUMBA\" ],\n [3206050003,3206050,\"LINGGALAKSANA\" ],\n [3206050004,3206050,\"PAKEMITAN\" ],\n [3206050005,3206050,\"COGREG\" ],\n [3206050006,3206050,\"LENGKONGBARANG\" ],\n [3206050007,3206050,\"TANJUNGBARANG\" ],\n [3206050008,3206050,\"CAYUR\" ],\n [3206050009,3206050,\"SINDANGASIH\" ],\n [3206060001,3206060,\"EUREUNPALAY\" ],\n [3206060002,3206060,\"SETIAWARAS\" ],\n [3206060003,3206060,\"CISEMPUR\" ],\n [3206060004,3206060,\"PARUNG\" ],\n [3206060005,3206060,\"CIBALONG\" ],\n [3206060014,3206060,\"SINGAJAYA\" ],\n [3206061001,3206061,\"KARYABAKTI\" ],\n [3206061002,3206061,\"CIGUNUNG\" ],\n [3206061003,3206061,\"CIBUNGUR\" ],\n [3206061004,3206061,\"PARUNGPONTENG\" ],\n [3206061005,3206061,\"GIRIKENCANA\" ],\n [3206061006,3206061,\"BARUMEKAR\" ],\n [3206061007,3206061,\"CIBANTENG\" ],\n [3206061008,3206061,\"BURUJULJAYA\" ],\n [3206070002,3206070,\"SIRNAGALIH\" ],\n [3206070003,3206070,\"SIMPANG\" ],\n [3206070004,3206070,\"HEGARWANGI\" ],\n [3206070008,3206070,\"WANGUNSARI\" ],\n [3206070009,3206070,\"PAMIJAHAN\" ],\n [3206070010,3206070,\"PARAKANHONJE\" ],\n [3206070016,3206070,\"SUKAMAJU\" ],\n [3206070017,3206070,\"WAKAP\" ],\n [3206071001,3206071,\"GIRIJAYA\" ],\n [3206071002,3206071,\"BOJONGASIH\" ],\n [3206071003,3206071,\"SINDANGSARI\" ],\n [3206071004,3206071,\"CIKADONGDONG\" ],\n [3206071005,3206071,\"MERTAJAYA\" ],\n [3206071006,3206071,\"TOBLONGAN\" ],\n [3206072001,3206072,\"BOJONGSARI\" ],\n [3206072002,3206072,\"CINTABODAS\" ],\n [3206072003,3206072,\"CIKUYA\" ],\n [3206072004,3206072,\"CIPICUNG\" ],\n [3206072005,3206072,\"MEKARLAKSANA\" ],\n [3206080001,3206080,\"CAMPAKASARI\" ],\n [3206080002,3206080,\"BOJONGKAPOL\" ],\n [3206080003,3206080,\"WANDASARI\" ],\n [3206080004,3206080,\"PEDANGKAMULYAN\" ],\n [3206080005,3206080,\"KERTANEGLA\" ],\n [3206080006,3206080,\"BOJONGGAMBIR\" ],\n [3206080007,3206080,\"MANGKONJAYA\" ],\n [3206080008,3206080,\"CIROYOM\" ],\n [3206080009,3206080,\"PURWARAHARJA\" ],\n [3206080010,3206080,\"GIRIMUKTI\" ],\n [3206090001,3206090,\"CUKANGJAYAGUNA\" ],\n [3206090002,3206090,\"SUKABAKTI\" ],\n [3206090003,3206090,\"PARUMASAN\" ],\n [3206090004,3206090,\"SEPATNUNGGAL\" ],\n [3206090005,3206090,\"RAKSAJAYA\" ],\n [3206090006,3206090,\"SODONGHILIR\" ],\n [3206090007,3206090,\"CUKANGKAWUNG\" ],\n [3206090008,3206090,\"CIKALONG\" ],\n [3206090009,3206090,\"CIPAINGEUN\" ],\n [3206090010,3206090,\"PAKALONGAN\" ],\n [3206090011,3206090,\"LEUWIDULANG\" ],\n [3206090012,3206090,\"MUNCANG\" ],\n [3206100001,3206100,\"BANYUASIH\" ],\n [3206100002,3206100,\"TARAJU\" ],\n [3206100003,3206100,\"RAKSASARI\" ],\n [3206100004,3206100,\"SINGASARI\" ],\n [3206100005,3206100,\"CIKUBANG\" ],\n [3206100006,3206100,\"DEUDEUL\" ],\n [3206100007,3206100,\"KERTARAHARJA\" ],\n [3206100008,3206100,\"PURWARAHAYU\" ],\n [3206100009,3206100,\"PAGERALAM\" ],\n [3206110009,3206110,\"SUKARASA\" ],\n [3206110010,3206110,\"JAHIANG\" ],\n [3206110011,3206110,\"SUNDAWENANG\" ],\n [3206110012,3206110,\"KAWUNGSARI\" ],\n [3206110013,3206110,\"TENJOWARINGIN\" ],\n [3206110014,3206110,\"KUTAWARINGIN\" ],\n [3206110015,3206110,\"TANJUNGSARI\" ],\n [3206110016,3206110,\"NEGLASARI\" ],\n [3206110017,3206110,\"KARANGMUKTI\" ],\n [3206110018,3206110,\"SALAWU\" ],\n [3206110019,3206110,\"MARGALAKSANA\" ],\n [3206110020,3206110,\"SERANG\" ],\n [3206111001,3206111,\"MANDALASARI\" ],\n [3206111002,3206111,\"SUKASARI\" ],\n [3206111003,3206111,\"PUSPASARI\" ],\n [3206111004,3206111,\"PUSPAHIANG\" ],\n [3206111005,3206111,\"PUSPARAHAYU\" ],\n [3206111006,3206111,\"LUYUBAKTI\" ],\n [3206111007,3206111,\"CIMANGGU\" ],\n [3206111008,3206111,\"PUSPAJAYA\" ],\n [3206120001,3206120,\"CIKEUSAL\" ],\n [3206120002,3206120,\"SUKANAGARA\" ],\n [3206120003,3206120,\"SUKASENANG\" ],\n [3206120004,3206120,\"TANJUNGJAYA\" ],\n [3206120005,3206120,\"CINTAJAYA\" ],\n [3206120006,3206120,\"CIBALANARIK\" ],\n [3206120007,3206120,\"CILOLOHAN\" ],\n [3206130001,3206130,\"MEKARJAYA\" ],\n [3206130002,3206130,\"SIRNAJAYA\" ],\n [3206130003,3206130,\"JANGGALA\" ],\n [3206130004,3206130,\"SUKAPURA\" ],\n [3206130005,3206130,\"TARUNAJAYA\" ],\n [3206130006,3206130,\"LEUWIBUDAH\" ],\n [3206130007,3206130,\"LINGGARAJA\" ],\n [3206130008,3206130,\"MARGALAKSANA\" ],\n [3206140003,3206140,\"MANDALAHAYU\" ],\n [3206140004,3206140,\"KARYAMANDALA\" ],\n [3206140005,3206140,\"MULYASARI\" ],\n [3206140006,3206140,\"TANJUNGSARI\" ],\n [3206140007,3206140,\"MANDALAGUNA\" ],\n [3206140008,3206140,\"KAWITAN\" ],\n [3206140009,3206140,\"MANDALAWANGI\" ],\n [3206140010,3206140,\"BANJARWARINGIN\" ],\n [3206140018,3206140,\"KARYAWANGI\" ],\n [3206141001,3206141,\"MANDALAMEKAR\" ],\n [3206141002,3206141,\"KERSAGALIH\" ],\n [3206141003,3206141,\"CIWARAK\" ],\n [3206141004,3206141,\"JATIWARAS\" ],\n [3206141005,3206141,\"PAPAYAN\" ],\n [3206141006,3206141,\"NEGLASARI\" ],\n [3206141007,3206141,\"KAPUTIHAN\" ],\n [3206141008,3206141,\"SETIAWANGI\" ],\n [3206141009,3206141,\"SUKAKERTA\" ],\n [3206141010,3206141,\"KERTARAHAYU\" ],\n [3206141011,3206141,\"MANDALA HURIP\" ],\n [3206150001,3206150,\"CISARUA\" ],\n [3206150006,3206150,\"PASIRMUKTI\" ],\n [3206150007,3206150,\"CIKONDANG\" ],\n [3206150008,3206150,\"CIJULANG\" ],\n [3206150009,3206150,\"NAGARATENGAH\" ],\n [3206150010,3206150,\"CIAMPANAN\" ],\n [3206150011,3206150,\"CINEAM\" ],\n [3206150012,3206150,\"MADIASARI\" ],\n [3206150013,3206150,\"RAJADATU\" ],\n [3206150014,3206150,\"ANCOL\" ],\n [3206151001,3206151,\"CITALAHAB\" ],\n [3206151002,3206151,\"SIRNAJAYA\" ],\n [3206151003,3206151,\"KARANGJAYA\" ],\n [3206151004,3206151,\"KARANGLAYUNG\" ],\n [3206160007,3206160,\"BATUSUMUR\" ],\n [3206160008,3206160,\"CIHAUR\" ],\n [3206160009,3206160,\"PASIRPANJANG\" ],\n [3206160010,3206160,\"KALIMANGGIS\" ],\n [3206160011,3206160,\"CIBEBER\" ],\n [3206160012,3206160,\"GUNAJAYA\" ],\n [3206160013,3206160,\"MARGAHAYU\" ],\n [3206160014,3206160,\"KAMULYAN\" ],\n [3206160015,3206160,\"MANONJAYA\" ],\n [3206160016,3206160,\"MARGALUYU\" ],\n [3206160017,3206160,\"CILANGKAP\" ],\n [3206160018,3206160,\"PASIRBATANG\" ],\n [3206161001,3206161,\"CINUNJANG\" ],\n [3206161002,3206161,\"MALATISUKA\" ],\n [3206161003,3206161,\"GIRIWANGI\" ],\n [3206161004,3206161,\"JATIJAYA\" ],\n [3206161005,3206161,\"GUNUNGTANJUNG\" ],\n [3206161006,3206161,\"TANJUNGSARI\" ],\n [3206161007,3206161,\"BOJONGSARI\" ],\n [3206190007,3206190,\"SUKAASIH\" ],\n [3206190008,3206190,\"CIKUNTEN\" ],\n [3206190009,3206190,\"SUKAHERANG\" ],\n [3206190010,3206190,\"SINGASARI\" ],\n [3206190011,3206190,\"SINGAPARNA\" ],\n [3206190012,3206190,\"SUKAMULYA\" ],\n [3206190013,3206190,\"CIPAKAT\" ],\n [3206190020,3206190,\"CINTARAJA\" ],\n [3206190021,3206190,\"CIKUNIR\" ],\n [3206190022,3206190,\"CIKADONGDONG\" ],\n [3206191001,3206191,\"SUKARAPIH\" ],\n [3206191002,3206191,\"WARGAKERTA\" ],\n [3206191003,3206191,\"SUKA MENAK\" ],\n [3206191004,3206191,\"PADASUKA\" ],\n [3206191005,3206191,\"SUKAKARSA\" ],\n [3206191006,3206191,\"SUKARAME\" ],\n [3206192001,3206192,\"PASIRSALAM\" ],\n [3206192002,3206192,\"SUKALUYU\" ],\n [3206192003,3206192,\"SUKASUKUR\" ],\n [3206192004,3206192,\"SALEBU\" ],\n [3206192005,3206192,\"MANGUNREJA\" ],\n [3206192006,3206192,\"MARGAJAYA\" ],\n [3206200001,3206200,\"SIRNAGALIH\" ],\n [3206200002,3206200,\"KERSAMAJU\" ],\n [3206200003,3206200,\"TANJUNGKARANG\" ],\n [3206200004,3206200,\"NANGTANG\" ],\n [3206200005,3206200,\"PUSPARAJA\" ],\n [3206200006,3206200,\"JAYAPURA\" ],\n [3206200007,3206200,\"LENGKONGJAYA\" ],\n [3206200008,3206200,\"TENJONAGARA\" ],\n [3206200009,3206200,\"NANGGERANG\" ],\n [3206200010,3206200,\"SUKAMANAH\" ],\n [3206200011,3206200,\"SIRNAPUTRA\" ],\n [3206200012,3206200,\"SIRNARAJA\" ],\n [3206200013,3206200,\"CIGALONTANG\" ],\n [3206200014,3206200,\"PUSPAMUKTI\" ],\n [3206200015,3206200,\"CIDUGALEUN\" ],\n [3206200016,3206200,\"PARENTAS\" ],\n [3206210003,3206210,\"ARJASARI\" ],\n [3206210007,3206210,\"CIAWANG\" ],\n [3206210008,3206210,\"JAYAMUKTI\" ],\n [3206210015,3206210,\"LINGGAWANGI\" ],\n [3206210016,3206210,\"LINGGAMULYA\" ],\n [3206210017,3206210,\"CIGADOG\" ],\n [3206210018,3206210,\"MANDALAGIRI\" ],\n [3206211001,3206211,\"SIRNASARI\" ],\n [3206211002,3206211,\"LINGGASIRNA\" ],\n [3206211003,3206211,\"SELAWANGI\" ],\n [3206211004,3206211,\"SARIWANGI\" ],\n [3206211005,3206211,\"JAYAPUTRA\" ],\n [3206211006,3206211,\"JAYARATU\" ],\n [3206211007,3206211,\"SUKAMULIH\" ],\n [3206211008,3206211,\"SUKAHARJA\" ],\n [3206212001,3206212,\"CILAMPUNGHILIR\" ],\n [3206212002,3206212,\"RANCAPAKU\" ],\n [3206212003,3206212,\"CISARUNI\" ],\n [3206212004,3206212,\"PADAKEMBANG\" ],\n [3206212005,3206212,\"MEKARJAYA\" ],\n [3206221001,3206221,\"TAWANGBANTENG\" ],\n [3206221002,3206221,\"GUNUNGSARI\" ],\n [3206221003,3206221,\"SUKAMAHI\" ],\n [3206221004,3206221,\"SUKAGALIH\" ],\n [3206221005,3206221,\"INDRAJAYA\" ],\n [3206221006,3206221,\"SUKARATU\" ],\n [3206221007,3206221,\"SINAGAR\" ],\n [3206221008,3206221,\"LINGGAJATI\" ],\n [3206230001,3206230,\"SANTANAMEKAR\" ],\n [3206230002,3206230,\"CISAYONG\" ],\n [3206230003,3206230,\"SUKAJADI\" ],\n [3206230004,3206230,\"SUKASUKUR\" ],\n [3206230005,3206230,\"JATIHURIP\" ],\n [3206230006,3206230,\"SUKARAHARJA\" ],\n [3206230007,3206230,\"MEKARWANGI\" ],\n [3206230008,3206230,\"NUSAWANGI\" ],\n [3206230009,3206230,\"CIKADU\" ],\n [3206230010,3206230,\"PURWASARI\" ],\n [3206230011,3206230,\"CILEULEUS\" ],\n [3206230013,3206230,\"SUKASETIA\" ],\n [3206230014,3206230,\"SUKAMUKTI\" ],\n [3206231001,3206231,\"BANYURASA\" ],\n [3206231002,3206231,\"BANYURESMI\" ],\n [3206231003,3206231,\"CALINGCING\" ],\n [3206231004,3206231,\"KUDADEPA\" ],\n [3206231005,3206231,\"SUNDAKERTA\" ],\n [3206231006,3206231,\"SUKAHENING\" ],\n [3206231007,3206231,\"KIARAJANGKUNG\" ],\n [3206240001,3206240,\"RAJAMANDALA\" ],\n [3206240002,3206240,\"DAWAGUNG\" ],\n [3206240003,3206240,\"RAJAPOLAH\" ],\n [3206240004,3206240,\"MANGGUNGJAYA\" ],\n [3206240005,3206240,\"SUKANAGALIH\" ],\n [3206240006,3206240,\"SUKARAJA\" ],\n [3206240007,3206240,\"MANGGUNGSARI\" ],\n [3206240008,3206240,\"TANJUNGPURA\" ],\n [3206250001,3206250,\"KARANGSEMBUNG\" ],\n [3206250002,3206250,\"CONDONG\" ],\n [3206250003,3206250,\"BOJONGGAOK\" ],\n [3206250004,3206250,\"SINDANGRAJA\" ],\n [3206250005,3206250,\"TANJUNGMEKAR\" ],\n [3206250006,3206250,\"KARANGMULYA\" ],\n [3206250007,3206250,\"KARANGRESIK\" ],\n [3206250008,3206250,\"GERESIK\" ],\n [3206260001,3206260,\"KERTAMUKTI\" ],\n [3206260002,3206260,\"GOMBONG\" ],\n [3206260003,3206260,\"BUGEL\" ],\n [3206260004,3206260,\"MARGASARI\" ],\n [3206260005,3206260,\"PAKEMITANKIDUL\" ],\n [3206260006,3206260,\"CIAWI\" ],\n [3206260007,3206260,\"CITAMBA\" ],\n [3206260008,3206260,\"KURNIABAKTI\" ],\n [3206260009,3206260,\"PAKEMITAN\" ],\n [3206260010,3206260,\"SUKAMANTRI\" ],\n [3206260011,3206260,\"PASIRHUNI\" ],\n [3206261001,3206261,\"PAMOYANAN\" ],\n [3206261002,3206261,\"BUNIASIH\" ],\n [3206261003,3206261,\"MEKARSARI\" ],\n [3206261004,3206261,\"DIRGAHAYU\" ],\n [3206261005,3206261,\"CIBAHAYU\" ],\n [3206261006,3206261,\"KADIPATEN\" ],\n [3206270007,3206270,\"CIPACING\" ],\n [3206270010,3206270,\"SUKAMAJU\" ],\n [3206270011,3206270,\"PAGERSARI\" ],\n [3206270012,3206270,\"PAGERAGEUNG\" ],\n [3206270013,3206270,\"SUKADANA\" ],\n [3206270014,3206270,\"PUTERAN\" ],\n [3206270015,3206270,\"TANJUNGKERTA\" ],\n [3206270016,3206270,\"GURANTENG\" ],\n [3206270017,3206270,\"NANGGEWER\" ],\n [3206270018,3206270,\"SUKAPADA\" ],\n [3206271001,3206271,\"MARGAMULYA\" ],\n [3206271002,3206271,\"CIPONDOK\" ],\n [3206271003,3206271,\"SUKAMENAK\" ],\n [3206271004,3206271,\"SUKARESIK\" ],\n [3206271005,3206271,\"SUKARATU\" ],\n [3206271006,3206271,\"BANJARSARI\" ],\n [3206271007,3206271,\"SUKAPANCAR\" ],\n [3206271008,3206271,\"TANJUNGSARI\" ],\n [3207100001,3207100,\"CIKUPA\" ],\n [3207100002,3207100,\"KARYAMUKTI\" ],\n [3207100003,3207100,\"CIGAYAM\" ],\n [3207100004,3207100,\"BANJARANYAR\" ],\n [3207100005,3207100,\"KALIJAYA\" ],\n [3207100006,3207100,\"PASAWAHAN\" ],\n [3207100007,3207100,\"CIKASO\" ],\n [3207100008,3207100,\"SINDANGRASA\" ],\n [3207100009,3207100,\"SUKASARI\" ],\n [3207100010,3207100,\"LANGKAPSARI\" ],\n [3207100011,3207100,\"KAWASEN\" ],\n [3207100012,3207100,\"CIBADAK\" ],\n [3207100013,3207100,\"BANJARSARI\" ],\n [3207100014,3207100,\"SINDANGSARI\" ],\n [3207100015,3207100,\"SINDANGHAYU\" ],\n [3207100016,3207100,\"SINDANGASIH\" ],\n [3207100017,3207100,\"PURWASARI\" ],\n [3207100018,3207100,\"CIHERANG\" ],\n [3207100019,3207100,\"RATAWANGI\" ],\n [3207100020,3207100,\"CICAPAR\" ],\n [3207100021,3207100,\"CIULU\" ],\n [3207100022,3207100,\"TANJUNGSARI\" ],\n [3207110001,3207110,\"SINDANGANGIN\" ],\n [3207110002,3207110,\"PULOERANG\" ],\n [3207110003,3207110,\"KALAPASAWIT\" ],\n [3207110004,3207110,\"SUKANAGARA\" ],\n [3207110005,3207110,\"KERTAJAYA\" ],\n [3207110006,3207110,\"SIDAHARJA\" ],\n [3207110007,3207110,\"BAREGBEG\" ],\n [3207110008,3207110,\"CINTAJAYA\" ],\n [3207110009,3207110,\"TAMBAKREJA\" ],\n [3207110010,3207110,\"CINTARATU\" ],\n [3207111001,3207111,\"KUTAWARINGIN\" ],\n [3207111002,3207111,\"BANTARDAWA\" ],\n [3207111003,3207111,\"PASIRLAWANG\" ],\n [3207111004,3207111,\"PURWADADI\" ],\n [3207111005,3207111,\"PURWAJAYA\" ],\n [3207111006,3207111,\"SIDARAHAYU\" ],\n [3207111007,3207111,\"KARANGPANINGAL\" ],\n [3207111008,3207111,\"SUKAMULYA\" ],\n [3207111009,3207111,\"PADARINGAN\" ],\n [3207120001,3207120,\"SIDAMULIH\" ],\n [3207120002,3207120,\"MARGAJAYA\" ],\n [3207120003,3207120,\"NEGLASARI\" ],\n [3207120004,3207120,\"PAMARICAN\" ],\n [3207120005,3207120,\"SUKAHURIP\" ],\n [3207120006,3207120,\"KERTAHAYU\" ],\n [3207120007,3207120,\"SUKAJADI\" ],\n [3207120008,3207120,\"SUKAMUKTI\" ],\n [3207120009,3207120,\"SIDAHARJA\" ],\n [3207120010,3207120,\"BANGUNSARI\" ],\n [3207120011,3207120,\"SUKAJAYA\" ],\n [3207120012,3207120,\"BANTARSARI\" ],\n [3207120013,3207120,\"PASIRNAGARA\" ],\n [3207120014,3207120,\"MEKARMULYA\" ],\n [3207130001,3207130,\"JELEGONG\" ],\n [3207130002,3207130,\"CIPARAY\" ],\n [3207130003,3207130,\"CIDOLOG\" ],\n [3207130004,3207130,\"JANGGALA\" ],\n [3207130005,3207130,\"HEGARMANAH\" ],\n [3207130006,3207130,\"SUKASARI\" ],\n [3207140001,3207140,\"BOJONGMALANG\" ],\n [3207140002,3207140,\"RAKSABAYA\" ],\n [3207140003,3207140,\"BEBER\" ],\n [3207140004,3207140,\"CIMARAGAS\" ],\n [3207140005,3207140,\"JAYARAKSA\" ],\n [3207150001,3207150,\"HANDAPHERANG\" ],\n [3207150002,3207150,\"CIHARALANG\" ],\n [3207150003,3207150,\"BOJONGMENGGER\" ],\n [3207150004,3207150,\"KARANGKAMULYAN\" ],\n [3207150005,3207150,\"KERTABUMI\" ],\n [3207150006,3207150,\"CIJEUNGJING\" ],\n [3207150007,3207150,\"PAMALAYAN\" ],\n [3207150008,3207150,\"DEWASARI\" ],\n [3207150009,3207150,\"UTAMA\" ],\n [3207150010,3207150,\"KERTAHARJA\" ],\n [3207150011,3207150,\"KARANGANYAR\" ],\n [3207160001,3207160,\"DANASARI\" ],\n [3207160002,3207160,\"SIDAMULYA\" ],\n [3207160003,3207160,\"KEPEL\" ],\n [3207160004,3207160,\"MEKARMUKTI\" ],\n [3207160005,3207160,\"CISAGA\" ],\n [3207160006,3207160,\"WANGUNJAYA\" ],\n [3207160007,3207160,\"TANJUNGJAYA\" ],\n [3207160008,3207160,\"SUKAHURIP\" ],\n [3207160009,3207160,\"BANGUNHARJA\" ],\n [3207160010,3207160,\"GIRIMUKTI\" ],\n [3207160011,3207160,\"KARYAMULYA\" ],\n [3207170001,3207170,\"TAMBAKSARI\" ],\n [3207170002,3207170,\"KARANGPANINGAL\" ],\n [3207170003,3207170,\"KASO\" ],\n [3207170004,3207170,\"MEKARSARI\" ],\n [3207170005,3207170,\"SUKASARI\" ],\n [3207170006,3207170,\"KADUPANDAK\" ],\n [3207180001,3207180,\"KARANGPARI\" ],\n [3207180002,3207180,\"BOJONGGEDANG\" ],\n [3207180003,3207180,\"CISONTROL\" ],\n [3207180004,3207180,\"CILEUNGSIR\" ],\n [3207180005,3207180,\"KIARAPAYUNG\" ],\n [3207180006,3207180,\"KAWUNGLARANG\" ],\n [3207180007,3207180,\"RANCAH\" ],\n [3207180008,3207180,\"SITUMANDALA\" ],\n [3207180009,3207180,\"PATAKAHARJA\" ],\n [3207180010,3207180,\"DADIHARJA\" ],\n [3207180011,3207180,\"JANGALAHARJA\" ],\n [3207180012,3207180,\"GIRIHARJA\" ],\n [3207180013,3207180,\"WANGUNSARI\" ],\n [3207190001,3207190,\"TANJUNGSUKUR\" ],\n [3207190002,3207190,\"TANJUNGSARI\" ],\n [3207190003,3207190,\"TANJUNGJAYA\" ],\n [3207190004,3207190,\"RAJADESA\" ],\n [3207190005,3207190,\"SIRNABAYA\" ],\n [3207190006,3207190,\"SIRNAJAYA\" ],\n [3207190007,3207190,\"PURWARAJA\" ],\n [3207190008,3207190,\"ANDAPRAJA\" ],\n [3207190009,3207190,\"SUKAHARJA\" ],\n [3207190010,3207190,\"TIGAHERANG\" ],\n [3207190011,3207190,\"SUKAJAYA\" ],\n [3207200001,3207200,\"CIPARIGI\" ],\n [3207200002,3207200,\"BUNTER\" ],\n [3207200003,3207200,\"MARGAHARJA\" ],\n [3207200004,3207200,\"MARGAJAYA\" ],\n [3207200005,3207200,\"SUKADANA\" ],\n [3207200006,3207200,\"SALAKARIA\" ],\n [3207210001,3207210,\"IMBANAGARA RAYA\" ],\n [3207210002,3207210,\"CISADAP\" ],\n [3207210003,3207210,\"IMBANAGARA\" ],\n [3207210004,3207210,\"SINDANGRASA\" ],\n [3207210005,3207210,\"PANYINGKIRAN\" ],\n [3207210006,3207210,\"PAWINDAN\" ],\n [3207210007,3207210,\"LINGGASARI\" ],\n [3207210008,3207210,\"CIAMIS\" ],\n [3207210009,3207210,\"BENTENG\" ],\n [3207210010,3207210,\"CIGEMBOR\" ],\n [3207210011,3207210,\"KERTASARI\" ],\n [3207210012,3207210,\"MALEBER\" ],\n [3207211001,3207211,\"SUKAMAJU\" ],\n [3207211002,3207211,\"MEKARJAYA\" ],\n [3207211003,3207211,\"SAGULING\" ],\n [3207211004,3207211,\"BAREGBEG\" ],\n [3207211005,3207211,\"PETIRHILIR\" ],\n [3207211006,3207211,\"PUSAKANAGARA\" ],\n [3207211007,3207211,\"KARANGAMPEL\" ],\n [3207211008,3207211,\"JELAT\" ],\n [3207211009,3207211,\"SUKAMULYA\" ],\n [3207220001,3207220,\"PANARAGAN\" ],\n [3207220002,3207220,\"MARGALUYU\" ],\n [3207220003,3207220,\"CIKONENG\" ],\n [3207220004,3207220,\"KUJANG\" ],\n [3207220005,3207220,\"DARMACAANG\" ],\n [3207220006,3207220,\"NASOL\" ],\n [3207220007,3207220,\"SINDANGSARI\" ],\n [3207220008,3207220,\"CIMARI\" ],\n [3207220009,3207220,\"GEGEMPALAN\" ],\n [3207221001,3207221,\"SUKAMANAH\" ],\n [3207221002,3207221,\"SUKARAJA\" ],\n [3207221003,3207221,\"BUDIHARJA\" ],\n [3207221004,3207221,\"BUDIASIH\" ],\n [3207221005,3207221,\"GUNUNGCUPU\" ],\n [3207221006,3207221,\"SINDANGKASIH\" ],\n [3207221007,3207221,\"SUKASENANG\" ],\n [3207221008,3207221,\"SUKARESIK\" ],\n [3207221009,3207221,\"WANASIGRA\" ],\n [3207230001,3207230,\"SUKAMULYA\" ],\n [3207230002,3207230,\"SUKAHAJI\" ],\n [3207230003,3207230,\"SUKAHURIP\" ],\n [3207230004,3207230,\"SUKAMAJU\" ],\n [3207230005,3207230,\"CIJULANG\" ],\n [3207230006,3207230,\"SUKASETIA\" ],\n [3207230007,3207230,\"SUMBERJAYA\" ],\n [3207230008,3207230,\"CIHAURBEUTI\" ],\n [3207230009,3207230,\"PASIRTAMIANG\" ],\n [3207230010,3207230,\"PADAMULYA\" ],\n [3207230011,3207230,\"PAMOKOLAN\" ],\n [3207240001,3207240,\"MEKARJADI\" ],\n [3207240002,3207240,\"SUKAJADI\" ],\n [3207240003,3207240,\"WERASARI\" ],\n [3207240004,3207240,\"MANGKUBUMI\" ],\n [3207240005,3207240,\"BENDASARI\" ],\n [3207240006,3207240,\"SADANANYA\" ],\n [3207240007,3207240,\"TANJUNGSARI\" ],\n [3207240008,3207240,\"GUNUNGSARI\" ],\n [3207250001,3207250,\"MUKTISARI\" ],\n [3207250002,3207250,\"MEKARSARI\" ],\n [3207250003,3207250,\"BUNISEURI\" ],\n [3207250004,3207250,\"PUSAKASARI\" ],\n [3207250005,3207250,\"JALATRANG\" ],\n [3207250006,3207250,\"SUKAWENING\" ],\n [3207250007,3207250,\"CIPAKU\" ],\n [3207250008,3207250,\"BANGBAYANG\" ],\n [3207250009,3207250,\"CIEURIH\" ],\n [3207250010,3207250,\"SELAMANIK\" ],\n [3207250011,3207250,\"SELACAI\" ],\n [3207250012,3207250,\"GEREBA\" ],\n [3207250013,3207250,\"CIAKAR\" ],\n [3207260001,3207260,\"CINTANAGARA\" ],\n [3207260002,3207260,\"BAYASARI\" ],\n [3207260003,3207260,\"JATINAGARA\" ],\n [3207260004,3207260,\"DAYEUHLUHUR\" ],\n [3207260005,3207260,\"SUKANAGARA\" ],\n [3207260006,3207260,\"MULYASARI\" ],\n [3207270001,3207270,\"KERTAYASA\" ],\n [3207270002,3207270,\"KARANGPANINGAL\" ],\n [3207270003,3207270,\"INDRAGIRI\" ],\n [3207270004,3207270,\"PANAWANGAN\" ],\n [3207270005,3207270,\"SAGALAHERANG\" ],\n [3207270006,3207270,\"NAGARAPAGEUH\" ],\n [3207270007,3207270,\"NAGARAJAYA\" ],\n [3207270008,3207270,\"NAGARAJATI\" ],\n [3207270009,3207270,\"JAGABAYA\" ],\n [3207270010,3207270,\"CINYASAG\" ],\n [3207270011,3207270,\"GARDUJAYA\" ],\n [3207270012,3207270,\"SADAPAINGAN\" ],\n [3207270013,3207270,\"BANGUNJAYA\" ],\n [3207270014,3207270,\"GIRILAYA\" ],\n [3207270015,3207270,\"KERTAJAYA\" ],\n [3207270016,3207270,\"NAGARAWANGI\" ],\n [3207270017,3207270,\"NATANEGARA\" ],\n [3207270018,3207270,\"MEKARBUANA\" ],\n [3207280001,3207280,\"SINDANGSARI\" ],\n [3207280002,3207280,\"KAWALI\" ],\n [3207280003,3207280,\"KARANGPAWITAN\" ],\n [3207280004,3207280,\"KAWALIMUKTI\" ],\n [3207280005,3207280,\"TALAGASARI\" ],\n [3207280006,3207280,\"SELASARI\" ],\n [3207280007,3207280,\"MARGAMULYA\" ],\n [3207280008,3207280,\"WINDURAJA\" ],\n [3207280009,3207280,\"PURWASARI\" ],\n [3207280010,3207280,\"CITEUREUP\" ],\n [3207280011,3207280,\"LINGGAPURA\" ],\n [3207281001,3207281,\"CIKUPA\" ],\n [3207281002,3207281,\"SUKARAHARJA\" ],\n [3207281003,3207281,\"AWILUAR\" ],\n [3207281004,3207281,\"LUMBUNG\" ],\n [3207281005,3207281,\"DARMARAJA\" ],\n [3207281006,3207281,\"LUMBUNGSARI\" ],\n [3207281007,3207281,\"RAWA\" ],\n [3207281008,3207281,\"SADEWATA\" ],\n [3207290001,3207290,\"MANDALARE\" ],\n [3207290002,3207290,\"KERTAMANDALA\" ],\n [3207290003,3207290,\"CIOMAS\" ],\n [3207290004,3207290,\"SANDINGTAMAN\" ],\n [3207290005,3207290,\"MAPARAH\" ],\n [3207290006,3207290,\"PANJALU\" ],\n [3207290007,3207290,\"BAHARA\" ],\n [3207290008,3207290,\"HUJUNGTIWU\" ],\n [3207291001,3207291,\"TENGGERRAHARJA\" ],\n [3207291002,3207291,\"SUKAMANTRI\" ],\n [3207291003,3207291,\"CIBEUREUM\" ],\n [3207291004,3207291,\"SINDANGLAYA\" ],\n [3207291005,3207291,\"MEKARWANGI\" ],\n [3207300001,3207300,\"MEDANGLAYANG\" ],\n [3207300002,3207300,\"PANUMBANGAN\" ],\n [3207300003,3207300,\"TANJUNGMULYA\" ],\n [3207300004,3207300,\"KERTARAHARJA\" ],\n [3207300005,3207300,\"SUKAKERTA\" ],\n [3207300006,3207300,\"GOLAT\" ],\n [3207300007,3207300,\"SINDANGHERANG\" ],\n [3207300008,3207300,\"SINDANGMUKTI\" ],\n [3207300009,3207300,\"JAYAGIRI\" ],\n [3207300010,3207300,\"BANJARANGSANA\" ],\n [3207300011,3207300,\"PAYUNGSARI\" ],\n [3207300012,3207300,\"PAYUNGAGUNG\" ],\n [3207300013,3207300,\"SINDANGBARANG\" ],\n [3207300014,3207300,\"BUANAMEKAR\" ],\n [3208010001,3208010,\"CIMENGA\" ],\n [3208010002,3208010,\"TUGUMULYA\" ],\n [3208010003,3208010,\"CAGEUR\" ],\n [3208010004,3208010,\"SAKERTA TIMUR\" ],\n [3208010005,3208010,\"SAKERTA BARAT\" ],\n [3208010006,3208010,\"SUKARASA\" ],\n [3208010007,3208010,\"PANINGGARAN\" ],\n [3208010008,3208010,\"CIPASUNG\" ],\n [3208010009,3208010,\"KAWAHMANUK\" ],\n [3208010010,3208010,\"CIKUPA\" ],\n [3208010011,3208010,\"PARUNG\" ],\n [3208010012,3208010,\"DARMA\" ],\n [3208010013,3208010,\"JAGARA\" ],\n [3208010014,3208010,\"BAKOM\" ],\n [3208010015,3208010,\"KARANGANYAR\" ],\n [3208010016,3208010,\"GUNUNGSIRAH\" ],\n [3208010017,3208010,\"SITUSARI\" ],\n [3208010018,3208010,\"KARANGSARI\" ],\n [3208010019,3208010,\"SAGARAHIANG\" ],\n [3208020003,3208020,\"MARGABAKTI\" ],\n [3208020004,3208020,\"SINDANGJAWA\" ],\n [3208020009,3208020,\"KADUGEDE\" ],\n [3208020010,3208020,\"CIKETAK\" ],\n [3208020011,3208020,\"NANGKA\" ],\n [3208020012,3208020,\"WINDUJANTEN\" ],\n [3208020013,3208020,\"CIPONDOK\" ],\n [3208020014,3208020,\"BABATAN\" ],\n [3208020015,3208020,\"BAYUNING\" ],\n [3208020017,3208020,\"CIHERANG\" ],\n [3208020018,3208020,\"TINGGAR\" ],\n [3208020019,3208020,\"CISUKADANA\" ],\n [3208021001,3208021,\"HAURKUNING\" ],\n [3208021002,3208021,\"KERTAYUGA\" ],\n [3208021003,3208021,\"WINDUSARI\" ],\n [3208021004,3208021,\"NUSAHERANG\" ],\n [3208021005,3208021,\"KERTAWIRAMA\" ],\n [3208021006,3208021,\"CIKADU\" ],\n [3208021007,3208021,\"JAMBAR\" ],\n [3208021008,3208021,\"CIASIH\" ],\n [3208030009,3208030,\"GUNUNGMANIK\" ],\n [3208030010,3208030,\"PINARA\" ],\n [3208030011,3208030,\"CIPEDES\" ],\n [3208030012,3208030,\"PAMUPUKAN\" ],\n [3208030013,3208030,\"CIJEMIT\" ],\n [3208030014,3208030,\"CINIRU\" ],\n [3208030015,3208030,\"RAMBATAN\" ],\n [3208030016,3208030,\"LONGKEWANG\" ],\n [3208030017,3208030,\"MUNGKALDATAR\" ],\n [3208031001,3208031,\"TUNDAGAN\" ],\n [3208031002,3208031,\"BUNIGEULIS\" ],\n [3208031003,3208031,\"HANTARA\" ],\n [3208031004,3208031,\"CIKONDANG\" ],\n [3208031005,3208031,\"PASIRAGUNG\" ],\n [3208031006,3208031,\"CITAPEN\" ],\n [3208031007,3208031,\"PAKAPASAN HILIR\" ],\n [3208031008,3208031,\"PAKAPASAN GIRANG\" ],\n [3208040001,3208040,\"CANTILAN\" ],\n [3208040002,3208040,\"SELAJAMBE\" ],\n [3208040003,3208040,\"CIBERUNG\" ],\n [3208040004,3208040,\"KUTAWARINGIN\" ],\n [3208040005,3208040,\"BAGAWAT\" ],\n [3208040006,3208040,\"JAMBERAMA\" ],\n [3208040007,3208040,\"PADAHURIP\" ],\n [3208050001,3208050,\"TANGKOLO\" ],\n [3208050002,3208050,\"PAMULIHAN\" ],\n [3208050004,3208050,\"JATISARI\" ],\n [3208050009,3208050,\"SUBANG\" ],\n [3208050010,3208050,\"BANGUNJAYA\" ],\n [3208050011,3208050,\"GUNUNGACI\" ],\n [3208050012,3208050,\"SITUGEDE\" ],\n [3208051001,3208051,\"MANDAPAJAYA\" ],\n [3208051002,3208051,\"LEGOKHERANG\" ],\n [3208051003,3208051,\"BUNGURBERES\" ],\n [3208051004,3208051,\"CILEBAK\" ],\n [3208051005,3208051,\"JALATRANG\" ],\n [3208051006,3208051,\"PATALA\" ],\n [3208051007,3208051,\"CILIMUSARI\" ],\n [3208060001,3208060,\"CITUNDUN\" ],\n [3208060006,3208060,\"SAGARANTEN\" ],\n [3208060007,3208060,\"SUMBERJAYA\" ],\n [3208060008,3208060,\"LEBAKHERANG\" ],\n [3208060009,3208060,\"CILAYUNG\" ],\n [3208060010,3208060,\"CIWARU\" ],\n [3208060011,3208060,\"LINGGA JAYA\" ],\n [3208060013,3208060,\"KARANGBARU\" ],\n [3208060014,3208060,\"GARAJATI\" ],\n [3208060016,3208060,\"BAOK\" ],\n [3208060017,3208060,\"ANDAMUI\" ],\n [3208060018,3208060,\"CITIKUR\" ],\n [3208061001,3208061,\"MARGACINA\" ],\n [3208061002,3208061,\"JABRANTI\" ],\n [3208061003,3208061,\"KARANGKANCANA\" ],\n [3208061004,3208061,\"KADUAGUNG\" ],\n [3208061005,3208061,\"SEGONG\" ],\n [3208061006,3208061,\"TANJUNGKERTA\" ],\n [3208061007,3208061,\"SUKASARI\" ],\n [3208061008,3208061,\"SIMPAY JAYA\" ],\n [3208061009,3208061,\"CIHANJARO\" ],\n [3208070002,3208070,\"CIANGIR\" ],\n [3208070003,3208070,\"CIPONDOK\" ],\n [3208070004,3208070,\"SUKAHARJA\" ],\n [3208070005,3208070,\"SINDANGJAWA\" ],\n [3208070011,3208070,\"SUKAMAJU\" ],\n [3208070012,3208070,\"CIBINGBIN\" ],\n [3208070013,3208070,\"CITENJO\" ],\n [3208070014,3208070,\"DUKUHBADAG\" ],\n [3208070017,3208070,\"CISAAT\" ],\n [3208070018,3208070,\"BANTARPANJANG\" ],\n [3208071001,3208071,\"CIMARA\" ],\n [3208071002,3208071,\"KAWUNGSARI\" ],\n [3208071003,3208071,\"SUKARAPIH\" ],\n [3208071004,3208071,\"SUMURWIRU\" ],\n [3208071005,3208071,\"CIBEUREUM\" ],\n [3208071006,3208071,\"RANDUSARI\" ],\n [3208071007,3208071,\"SUKADANA\" ],\n [3208071008,3208071,\"TARIKOLOT\" ],\n [3208080001,3208080,\"WALAHARCAGEUR\" ],\n [3208080002,3208080,\"DUKUHPICUNG\" ],\n [3208080003,3208080,\"WILANAGARA\" ],\n [3208080004,3208080,\"SINDANGSARI\" ],\n [3208080005,3208080,\"CIGEDANG\" ],\n [3208080006,3208080,\"LURAGUNGTONGGOH\" ],\n [3208080007,3208080,\"MARGASARI\" ],\n [3208080008,3208080,\"CIRAHAYU\" ],\n [3208080009,3208080,\"SINDANGSUKA\" ],\n [3208080010,3208080,\"CIKANDANG\" ],\n [3208080011,3208080,\"PANYOSOGAN\" ],\n [3208080012,3208080,\"GUNUNGKARUNG\" ],\n [3208080013,3208080,\"DUKUHMAJA\" ],\n [3208080014,3208080,\"LURAGUNGLANDEUH\" ],\n [3208080015,3208080,\"CIKADUWETAN\" ],\n [3208080016,3208080,\"BENDA\" ],\n [3208081001,3208081,\"CILEUYA\" ],\n [3208081004,3208081,\"MARGAMUKTI\" ],\n [3208081005,3208081,\"CIMULYA\" ],\n [3208081006,3208081,\"GUNUNGSARI\" ],\n [3208081007,3208081,\"CIMAHI\" ],\n [3208081008,3208081,\"KANANGA\" ],\n [3208081009,3208081,\"CIKEUSAL\" ],\n [3208081010,3208081,\"MULYAJAYA\" ],\n [3208081011,3208081,\"SUKAJAYA\" ],\n [3208081012,3208081,\"MEKARJAYA\" ],\n [3208090001,3208090,\"CIHIDEUNGGIRANG\" ],\n [3208090002,3208090,\"CIHIDEUNGHILIR\" ],\n [3208090003,3208090,\"CIDAHU\" ],\n [3208090004,3208090,\"KERTAWINANGUN\" ],\n [3208090005,3208090,\"DATAR\" ],\n [3208090006,3208090,\"BUNDER\" ],\n [3208090007,3208090,\"LEGOK\" ],\n [3208090008,3208090,\"CIEURIH\" ],\n [3208090009,3208090,\"NANGGELA\" ],\n [3208090016,3208090,\"CIBULAN\" ],\n [3208090017,3208090,\"CIKEUSIK\" ],\n [3208090018,3208090,\"JATIMULYA\" ],\n [3208091001,3208091,\"KALIMANGGIS KULON\" ],\n [3208091002,3208091,\"KALIMANGGIS WETAN\" ],\n [3208091003,3208091,\"CIPANCUR\" ],\n [3208091004,3208091,\"PARTAWANGUNAN\" ],\n [3208091005,3208091,\"KERTAWANA\" ],\n [3208091006,3208091,\"WANASARAYA\" ],\n [3208100002,3208100,\"CIJAGAMULYA\" ],\n [3208100003,3208100,\"CIOMAS\" ],\n [3208100004,3208100,\"SIDARAJA\" ],\n [3208100005,3208100,\"PAJAWANLOR\" ],\n [3208100006,3208100,\"LEBAKSIUH\" ],\n [3208100007,3208100,\"KERAMATMULYA\" ],\n [3208100008,3208100,\"GERESIK\" ],\n [3208100009,3208100,\"CIPUTAT\" ],\n [3208100010,3208100,\"KAPANDAYAN\" ],\n [3208100011,3208100,\"DUKUHDALEM\" ],\n [3208100014,3208100,\"PANGKALAN\" ],\n [3208100015,3208100,\"CIAWIGEBANG\" ],\n [3208100016,3208100,\"KADURAMA\" ],\n [3208100017,3208100,\"PAMIJAHAN\" ],\n [3208100018,3208100,\"KARANGKAMULYAN\" ],\n [3208100019,3208100,\"CIAWILOR\" ],\n [3208100026,3208100,\"CIHAUR\" ],\n [3208100027,3208100,\"CIGARUKGAK\" ],\n [3208100028,3208100,\"MEKARJAYA\" ],\n [3208100029,3208100,\"SUKARAJA\" ],\n [3208100031,3208100,\"PADARAMA\" ],\n [3208100032,3208100,\"SUKADANA\" ],\n [3208100033,3208100,\"CIKUBANGMULYA\" ],\n [3208100034,3208100,\"CIHIRUP\" ],\n [3208101001,3208101,\"MUNCANGELA\" ],\n [3208101002,3208101,\"KAROYA\" ],\n [3208101003,3208101,\"SUSUKAN\" ],\n [3208101004,3208101,\"SUKAMUKTI\" ],\n [3208101005,3208101,\"CIPICUNG\" ],\n [3208101006,3208101,\"MEKARSARI\" ],\n [3208101007,3208101,\"CIMARANTEN\" ],\n [3208101008,3208101,\"PAMULIHAN\" ],\n [3208101009,3208101,\"SALAREUMA\" ],\n [3208101010,3208101,\"SUGANANGAN\" ],\n [3208110014,3208110,\"CINAGARA\" ],\n [3208110015,3208110,\"CINEUMBEUY\" ],\n [3208110016,3208110,\"CIPETIR\" ],\n [3208110017,3208110,\"LEBAKWANGI\" ],\n [3208110018,3208110,\"MANCAGAR\" ],\n [3208110019,3208110,\"LANGSEB\" ],\n [3208110023,3208110,\"PAJAWANKIDUL\" ],\n [3208110024,3208110,\"PAGUNDAN\" ],\n [3208110025,3208110,\"MANGGARI\" ],\n [3208110026,3208110,\"PASAYANGAN\" ],\n [3208110027,3208110,\"SINDANG\" ],\n [3208110028,3208110,\"BENDUNGAN\" ],\n [3208110029,3208110,\"MEKARWANGI\" ],\n [3208111001,3208111,\"CIPAKEM\" ],\n [3208111002,3208111,\"GIRIWARINGIN\" ],\n [3208111003,3208111,\"GARAHAJI\" ],\n [3208111004,3208111,\"GALAHERANG\" ],\n [3208111005,3208111,\"MEKARSARI\" ],\n [3208111006,3208111,\"PADAMULYA\" ],\n [3208111007,3208111,\"CIKAHURIPAN\" ],\n [3208111008,3208111,\"PARAKAN\" ],\n [3208111009,3208111,\"KUTAMANDARAKAN\" ],\n [3208111010,3208111,\"MALEBER\" ],\n [3208111011,3208111,\"KARANGTENGAH\" ],\n [3208111012,3208111,\"DUKUHTENGAH\" ],\n [3208111013,3208111,\"BUNIASIH\" ],\n [3208111014,3208111,\"CIPORANG\" ],\n [3208111015,3208111,\"KUTARAJA\" ],\n [3208111016,3208111,\"MANDALAJAYA\" ],\n [3208120001,3208120,\"CIRUKEM\" ],\n [3208120002,3208120,\"GEWOK\" ],\n [3208120003,3208120,\"KUTAKEMBARAN\" ],\n [3208120004,3208120,\"PAKEMBANGAN\" ],\n [3208120005,3208120,\"KADATUAN\" ],\n [3208120006,3208120,\"TEMBONG\" ],\n [3208120007,3208120,\"LENGKONG\" ],\n [3208120008,3208120,\"PURWASARI\" ],\n [3208120009,3208120,\"GARAWANGI\" ],\n [3208120010,3208120,\"KARAMATWANGI\" ],\n [3208120011,3208120,\"SUKAIMUT\" ],\n [3208120012,3208120,\"CIKANANGA\" ],\n [3208120013,3208120,\"TAMBAKBAYA\" ],\n [3208120014,3208120,\"MEKARMULYA\" ],\n [3208120015,3208120,\"SUKAMULYA\" ],\n [3208120016,3208120,\"MANCAGAR\" ],\n [3208120017,3208120,\"CITIUSARI\" ],\n [3208121001,3208121,\"KERTAUNGARAN\" ],\n [3208121002,3208121,\"KADUAGUNG\" ],\n [3208121003,3208121,\"SINDANGSARI\" ],\n [3208121004,3208121,\"KERTAWANGUNAN\" ],\n [3208121005,3208121,\"SINDANGAGUNG\" ],\n [3208121006,3208121,\"BALONG\" ],\n [3208121007,3208121,\"MEKARMUKTI\" ],\n [3208121008,3208121,\"KERTAYASA\" ],\n [3208121009,3208121,\"TIRTAWANGUNAN\" ],\n [3208121010,3208121,\"BABAKANREUMA\" ],\n [3208121011,3208121,\"DUKUHLOR\" ],\n [3208121012,3208121,\"TARAJU\" ],\n [3208130001,3208130,\"CIBINUANG\" ],\n [3208130002,3208130,\"CITANGTU\" ],\n [3208130003,3208130,\"KARANGTAWANG\" ],\n [3208130004,3208130,\"WINDUHAJI\" ],\n [3208130005,3208130,\"KUNINGAN\" ],\n [3208130006,3208130,\"PURWAWINANGUN\" ],\n [3208130007,3208130,\"CIGINTUNG\" ],\n [3208130008,3208130,\"CIJOHO\" ],\n [3208130009,3208130,\"WINDUSENGKAHAN\" ],\n [3208130010,3208130,\"CIPORANG\" ],\n [3208130011,3208130,\"ANCARAN\" ],\n [3208130012,3208130,\"KEDUNGARUM\" ],\n [3208130013,3208130,\"CIRENDANG\" ],\n [3208130014,3208130,\"AWIRARANGAN\" ],\n [3208130015,3208130,\"KASTURI\" ],\n [3208130016,3208130,\"PADAREK\" ],\n [3208140001,3208140,\"CIGADUNG\" ],\n [3208140002,3208140,\"SUKAMULYA\" ],\n [3208140003,3208140,\"CILEULEUY\" ],\n [3208140004,3208140,\"PUNCAK\" ],\n [3208140005,3208140,\"BABAKANMULYA\" ],\n [3208140006,3208140,\"CISANTANA\" ],\n [3208140007,3208140,\"CIGUGUR\" ],\n [3208140008,3208140,\"WINDUHERANG\" ],\n [3208140009,3208140,\"GUNUNGKELING\" ],\n [3208140010,3208140,\"CIPARI\" ],\n [3208150001,3208150,\"PAJAMBON\" ],\n [3208150002,3208150,\"RAGAWACANA\" ],\n [3208150003,3208150,\"CILOWA\" ],\n [3208150005,3208150,\"GEREBA\" ],\n [3208150007,3208150,\"CIKUBANGSARI\" ],\n [3208150008,3208150,\"WIDARASARI\" ],\n [3208150009,3208150,\"CILAJA\" ],\n [3208150010,3208150,\"BOJONG\" ],\n [3208150011,3208150,\"CIKASO\" ],\n [3208150012,3208150,\"KRAMATMULYA\" ],\n [3208150013,3208150,\"CIBENTANG\" ],\n [3208150014,3208150,\"GANDASOLI\" ],\n [3208150015,3208150,\"KALAPAGUNUNG\" ],\n [3208150017,3208150,\"KARANGMANGU\" ],\n [3208160001,3208160,\"SUKAMUKTI\" ],\n [3208160002,3208160,\"SIDAMULYA\" ],\n [3208160003,3208160,\"JALAKSANA\" ],\n [3208160004,3208160,\"BABAKANMULYA\" ],\n [3208160005,3208160,\"SANGKANERANG\" ],\n [3208160006,3208160,\"SAYANA\" ],\n [3208160007,3208160,\"PEUSING\" ],\n [3208160008,3208160,\"SEMBAWA\" ],\n [3208160009,3208160,\"SADAMANTRA\" ],\n [3208160010,3208160,\"MANISKIDUL\" ],\n [3208160011,3208160,\"MANISLOR\" ],\n [3208160013,3208160,\"PADAMENAK\" ],\n [3208160014,3208160,\"CINIRU\" ],\n [3208160016,3208160,\"SINDANGBARANG\" ],\n [3208160017,3208160,\"NANGGERANG\" ],\n [3208161001,3208161,\"RAJADANU\" ],\n [3208161002,3208161,\"DUKUHDALEM\" ],\n [3208161003,3208161,\"GARATENGAH\" ],\n [3208161004,3208161,\"JAPARA\" ],\n [3208161005,3208161,\"SINGKUP\" ],\n [3208161006,3208161,\"WANO\" ],\n [3208161007,3208161,\"CITAPEN\" ],\n [3208161008,3208161,\"CENGAL\" ],\n [3208161009,3208161,\"CIKELENG\" ],\n [3208161010,3208161,\"KALIMATI\" ],\n [3208170001,3208170,\"BANDORASA KULON\" ],\n [3208170002,3208170,\"BANDORASA WETAN\" ],\n [3208170012,3208170,\"BOJONG\" ],\n [3208170013,3208170,\"LINGGAMEKAR\" ],\n [3208170014,3208170,\"LINGGASANA\" ],\n [3208170015,3208170,\"LINGGAJATI\" ],\n [3208170016,3208170,\"LINGGAINDAH\" ],\n [3208170017,3208170,\"CILIMUS\" ],\n [3208170020,3208170,\"CARACAS\" ],\n [3208170021,3208170,\"SAMPORA\" ],\n [3208170022,3208170,\"KALIAREN\" ],\n [3208170023,3208170,\"SETIANEGARA\" ],\n [3208170024,3208170,\"CIBEUREUM\" ],\n [3208171001,3208171,\"SANGKANURIP\" ],\n [3208171002,3208171,\"SANGKANMULYA\" ],\n [3208171003,3208171,\"KARANGMUNCANG\" ],\n [3208171004,3208171,\"KOREAK\" ],\n [3208171005,3208171,\"JAMBUGEULIS\" ],\n [3208171006,3208171,\"BUNIGEULIS\" ],\n [3208171007,3208171,\"BABAKANJATI\" ],\n [3208171008,3208171,\"TIMBANG\" ],\n [3208171009,3208171,\"PANAWUAN\" ],\n [3208171010,3208171,\"INDAPATRA\" ],\n [3208171011,3208171,\"CIBUNTU\" ],\n [3208180001,3208180,\"TRIJAYA\" ],\n [3208180002,3208180,\"RANDOBAWAGIRANG\" ],\n [3208180003,3208180,\"SALAKADOMAS\" ],\n [3208180004,3208180,\"PAKEMBANGAN\" ],\n [3208180007,3208180,\"RANDOBAWAILIR\" ],\n [3208180008,3208180,\"KERTAWINANGUN\" ],\n [3208180009,3208180,\"SEDA\" ],\n [3208180010,3208180,\"NANGGERANGJAYA\" ],\n [3208180011,3208180,\"SUKASARI\" ],\n [3208180012,3208180,\"CIREA\" ],\n [3208180013,3208180,\"NANGGELA\" ],\n [3208180014,3208180,\"MANDIRANCAN\" ],\n [3208181001,3208181,\"SILEBU\" ],\n [3208181002,3208181,\"KAHIYANGAN\" ],\n [3208181003,3208181,\"PATALAGAN\" ],\n [3208181004,3208181,\"SUMBAKELING\" ],\n [3208181005,3208181,\"DANALAMPAH\" ],\n [3208181006,3208181,\"SINDANGKEMPENG\" ],\n [3208181007,3208181,\"PANCALANG\" ],\n [3208181008,3208181,\"TAJURBUNTU\" ],\n [3208181009,3208181,\"RAJAWETAN\" ],\n [3208181010,3208181,\"MEKARJAYA\" ],\n [3208181011,3208181,\"TENJOLAYAR\" ],\n [3208181012,3208181,\"TARIKOLOT\" ],\n [3208181013,3208181,\"SAREWU\" ],\n [3208190001,3208190,\"CIBUNTU\" ],\n [3208190002,3208190,\"PANIIS\" ],\n [3208190003,3208190,\"SINGKUP\" ],\n [3208190004,3208190,\"CIDAHU\" ],\n [3208190005,3208190,\"PASAWAHAN\" ],\n [3208190006,3208190,\"PADABEUNGHAR\" ],\n [3208190007,3208190,\"KADUELA\" ],\n [3208190008,3208190,\"PADAMATANG\" ],\n [3208190009,3208190,\"CIWIRU\" ],\n [3208190010,3208190,\"CIMARA\" ],\n [3209010008,3209010,\"WALED DESA\" ],\n [3209010009,3209010,\"WALED KOTA\" ],\n [3209010010,3209010,\"MEKARSARI\" ],\n [3209010011,3209010,\"WALED ASEM\" ],\n [3209010012,3209010,\"AMBIT\" ],\n [3209010013,3209010,\"CIUYAH\" ],\n [3209010014,3209010,\"GUNUNGSARI\" ],\n [3209010015,3209010,\"KARANGSARI\" ],\n [3209010016,3209010,\"CIKULAK KIDUL\" ],\n [3209010017,3209010,\"CIKULAK\" ],\n [3209010018,3209010,\"CIBOGO\" ],\n [3209010019,3209010,\"CISAAT\" ],\n [3209011001,3209011,\"TONJONG\" ],\n [3209011002,3209011,\"TANJUNG ANOM\" ],\n [3209011003,3209011,\"CILENGKRANG GIRANG\" ],\n [3209011004,3209011,\"CILENGKRANG\" ],\n [3209011005,3209011,\"PASALEMAN\" ],\n [3209011006,3209011,\"CIGOBANGWANGI\" ],\n [3209011007,3209011,\"CIGOBANG\" ],\n [3209020008,3209020,\"LEUWEUNGGAJAH\" ],\n [3209020009,3209020,\"TENJOMAYA\" ],\n [3209020010,3209020,\"DAMARGUNA\" ],\n [3209020011,3209020,\"JATISEENG\" ],\n [3209020012,3209020,\"JATISEENG KIDUL\" ],\n [3209020013,3209020,\"CILEDUG KULON\" ],\n [3209020014,3209020,\"CILEDUG WETAN\" ],\n [3209020015,3209020,\"CILEDUG LOR\" ],\n [3209020016,3209020,\"CILEDUG TENGAH\" ],\n [3209020017,3209020,\"BOJONGNEGARA\" ],\n [3209021001,3209021,\"SUKADANA\" ],\n [3209021002,3209021,\"PABUARAN KIDUL\" ],\n [3209021003,3209021,\"PABUARAN WETAN\" ],\n [3209021004,3209021,\"PABUARAN LOR\" ],\n [3209021005,3209021,\"JATIRENGGANG\" ],\n [3209021006,3209021,\"HULUBANTENG\" ],\n [3209021007,3209021,\"HULUBANTENG LOR\" ],\n [3209030009,3209030,\"ASTANALANGGAR\" ],\n [3209030010,3209030,\"BARISAN\" ],\n [3209030011,3209030,\"LOSARI KIDUL\" ],\n [3209030012,3209030,\"PANGGANGSARI\" ],\n [3209030013,3209030,\"LOSARI LOR\" ],\n [3209030014,3209030,\"MULYASARI\" ],\n [3209030015,3209030,\"KALIRAHAYU\" ],\n [3209030016,3209030,\"KALISARI\" ],\n [3209030017,3209030,\"AMBULU\" ],\n [3209030018,3209030,\"TAWANGSARI\" ],\n [3209031001,3209031,\"BABAKAN LOSARI\" ],\n [3209031002,3209031,\"SIDARESMI\" ],\n [3209031003,3209031,\"KALIBUNTU\" ],\n [3209031004,3209031,\"DUKUHWIDARA\" ],\n [3209031005,3209031,\"PASURUAN\" ],\n [3209031006,3209031,\"KALIMUKTI\" ],\n [3209031007,3209031,\"PABEDILAN KALER\" ],\n [3209031008,3209031,\"BABAKAN LOSARI LOR\" ],\n [3209031009,3209031,\"PABEDILAN KIDUL\" ],\n [3209031010,3209031,\"PABEDILAN KULON\" ],\n [3209031011,3209031,\"PABEDILAN WETAN\" ],\n [3209031012,3209031,\"TERSANA\" ],\n [3209031013,3209031,\"SILIHASIH\" ],\n [3209040001,3209040,\"CANGKUANG\" ],\n [3209040002,3209040,\"SERANG WETAN\" ],\n [3209040003,3209040,\"BOJONGGEBANG\" ],\n [3209040004,3209040,\"KUDUKERAS\" ],\n [3209040005,3209040,\"SUMBER KIDUL\" ],\n [3209040006,3209040,\"KUDUMULYA\" ],\n [3209040007,3209040,\"SUMBER LOR\" ],\n [3209040008,3209040,\"BABAKAN\" ],\n [3209040009,3209040,\"PAKUSAMBEN\" ],\n [3209040010,3209040,\"KARANGWANGUN\" ],\n [3209040011,3209040,\"BABAKAN GEBANG\" ],\n [3209040012,3209040,\"GEMBONGAN\" ],\n [3209040013,3209040,\"SERANG KULON\" ],\n [3209040014,3209040,\"GEMBONGAN MEKAR\" ],\n [3209041001,3209041,\"DOMPYONG KULON\" ],\n [3209041002,3209041,\"DOMPYONG WETAN\" ],\n [3209041003,3209041,\"KALIMEKAR\" ],\n [3209041004,3209041,\"KALIMARO\" ],\n [3209041005,3209041,\"GAGASARI\" ],\n [3209041006,3209041,\"KALIPASUNG\" ],\n [3209041007,3209041,\"GEBANG KULON\" ],\n [3209041008,3209041,\"GEBANG\" ],\n [3209041009,3209041,\"GEBANG UDIK\" ],\n [3209041010,3209041,\"GEBANG ILIR\" ],\n [3209041011,3209041,\"GEBANG MEKAR\" ],\n [3209041012,3209041,\"PELAYANGAN\" ],\n [3209041013,3209041,\"MELAKASARI\" ],\n [3209050008,3209050,\"TAMBELANG\" ],\n [3209050015,3209050,\"KARANGSUWUNG\" ],\n [3209050016,3209050,\"KARANGTENGAH\" ],\n [3209050017,3209050,\"KALIMEANG\" ],\n [3209050018,3209050,\"KARANGMALANG\" ],\n [3209050019,3209050,\"KARANGMEKAR\" ],\n [3209050020,3209050,\"KUBANGKARANG\" ],\n [3209050021,3209050,\"KARANGSEMBUNG\" ],\n [3209051001,3209051,\"SEUSEUPAN\" ],\n [3209051002,3209051,\"SUMURKONDANG\" ],\n [3209051003,3209051,\"JATIPIRING\" ],\n [3209051004,3209051,\"KUBANGDELEG\" ],\n [3209051005,3209051,\"KARANGANYAR\" ],\n [3209051006,3209051,\"KARANGWANGI\" ],\n [3209051007,3209051,\"BLENDER\" ],\n [3209051008,3209051,\"KARANGWARENG\" ],\n [3209051009,3209051,\"KARANGASEM\" ],\n [3209060005,3209060,\"PICUNGPUGUR\" ],\n [3209060006,3209060,\"LEUWIDINGDING\" ],\n [3209060007,3209060,\"ASEM\" ],\n [3209060013,3209060,\"CIPEUJEUH KULON\" ],\n [3209060014,3209060,\"SINDANGLAUT\" ],\n [3209060015,3209060,\"CIPEUJEUH WETAN\" ],\n [3209060016,3209060,\"LEMAHABANG KULON\" ],\n [3209060017,3209060,\"LEMAHABANG\" ],\n [3209060018,3209060,\"SIGONG\" ],\n [3209060019,3209060,\"SARAJAYA\" ],\n [3209060020,3209060,\"TUK KARANGSUWUNG\" ],\n [3209060021,3209060,\"BELAWA\" ],\n [3209060022,3209060,\"WANGKELANG\" ],\n [3209061001,3209061,\"KARANGMANGU\" ],\n [3209061002,3209061,\"KALIGAWE\" ],\n [3209061003,3209061,\"KALIGAWE WETAN\" ],\n [3209061004,3209061,\"CURUG WETAN\" ],\n [3209061005,3209061,\"CURUG\" ],\n [3209061006,3209061,\"WILULANG\" ],\n [3209061007,3209061,\"SUSUKAN AGUNG\" ],\n [3209061008,3209061,\"SUSUKAN LEBAK\" ],\n [3209061009,3209061,\"SUSUKAN TONGGOH\" ],\n [3209061010,3209061,\"SAMPIH\" ],\n [3209061011,3209061,\"PASAWAHAN\" ],\n [3209061012,3209061,\"CIAWI ASIH\" ],\n [3209061013,3209061,\"CIAWIJAPURA\" ],\n [3209070001,3209070,\"KARANGWUNI\" ],\n [3209070002,3209070,\"SEDONG KIDUL\" ],\n [3209070003,3209070,\"SEDONG LOR\" ],\n [3209070004,3209070,\"WINDUJAYA\" ],\n [3209070005,3209070,\"WINDUHAJI\" ],\n [3209070006,3209070,\"KERTAWANGUN\" ],\n [3209070007,3209070,\"PANAMBANGAN\" ],\n [3209070008,3209070,\"PUTAT\" ],\n [3209070009,3209070,\"PANONGAN\" ],\n [3209070010,3209070,\"PANONGAN LOR\" ],\n [3209080004,3209080,\"MUNJUL\" ],\n [3209080005,3209080,\"SIDAMULYA\" ],\n [3209080006,3209080,\"MERTAPADA KULON\" ],\n [3209080007,3209080,\"MERTAPADA WETAN\" ],\n [3209080008,3209080,\"BUNTET\" ],\n [3209080009,3209080,\"KANCI KULON\" ],\n [3209080010,3209080,\"KANCI\" ],\n [3209080011,3209080,\"ASTANAJAPURA\" ],\n [3209080015,3209080,\"KENDAL\" ],\n [3209080016,3209080,\"JAPURA KIDUL\" ],\n [3209080017,3209080,\"JAPURABAKTI\" ],\n [3209081001,3209081,\"ASTANAMUKTI\" ],\n [3209081002,3209081,\"PENGARENGAN\" ],\n [3209081003,3209081,\"JAPURA LOR\" ],\n [3209081004,3209081,\"BERINGIN\" ],\n [3209081005,3209081,\"RAWAURIP\" ],\n [3209081006,3209081,\"BENDUNGAN\" ],\n [3209081007,3209081,\"PANGENAN\" ],\n [3209081008,3209081,\"GETRAKMOYAN\" ],\n [3209081009,3209081,\"ENDER\" ],\n [3209090001,3209090,\"SETUPATOK\" ],\n [3209090002,3209090,\"PENPEN\" ],\n [3209090003,3209090,\"MUNDU MESIGIT\" ],\n [3209090004,3209090,\"LUWUNG\" ],\n [3209090005,3209090,\"WARUDUWUR\" ],\n [3209090006,3209090,\"CITEMU\" ],\n [3209090007,3209090,\"BANDENGAN\" ],\n [3209090008,3209090,\"MUNDU PESISIR\" ],\n [3209090009,3209090,\"SUCI\" ],\n [3209090010,3209090,\"BANJARWANGUNAN\" ],\n [3209090011,3209090,\"PAMENGKANG\" ],\n [3209090012,3209090,\"SINARANCANG\" ],\n [3209100001,3209100,\"WANAYASA\" ],\n [3209100002,3209100,\"SINDANGKASIH\" ],\n [3209100003,3209100,\"SINDANGHAYU\" ],\n [3209100004,3209100,\"CIAWIGAJAH\" ],\n [3209100008,3209100,\"CIKANCAS\" ],\n [3209100009,3209100,\"HALIMPU\" ],\n [3209100010,3209100,\"CIPINANG\" ],\n [3209100011,3209100,\"BEBER\" ],\n [3209100012,3209100,\"PATAPAN\" ],\n [3209100013,3209100,\"KONDANGSARI\" ],\n [3209101001,3209101,\"GUMULUNG LEBAK\" ],\n [3209101002,3209101,\"LEBAK MEKAR\" ],\n [3209101003,3209101,\"GUMULUNG TONGGOH\" ],\n [3209101005,3209101,\"KAMARANG\" ],\n [3209101006,3209101,\"GREGED\" ],\n [3209101007,3209101,\"KAMARANG LEBAK\" ],\n [3209101014,3209101,\"DURAJAYA\" ],\n [3209101015,3209101,\"JATIPANCUR\" ],\n [3209101016,3209101,\"SINDANG KEMPENG\" ],\n [3209101017,3209101,\"NANGGELA\" ],\n [3209111001,3209111,\"SAMPIRAN\" ],\n [3209111002,3209111,\"CIPERNA\" ],\n [3209111003,3209111,\"KECOMBERAN\" ],\n [3209111004,3209111,\"CIREBON GIRANG\" ],\n [3209111005,3209111,\"KERANDON\" ],\n [3209111006,3209111,\"WANASABA KIDUL\" ],\n [3209111007,3209111,\"WANASABA LOR\" ],\n [3209111012,3209111,\"CEMPAKA\" ],\n [3209111013,3209111,\"KEPONGPONGAN\" ],\n [3209111014,3209111,\"KUBANG\" ],\n [3209111015,3209111,\"SARWADADI\" ],\n [3209120010,3209120,\"MATANGAJI\" ],\n [3209120011,3209120,\"SIDAWANGI\" ],\n [3209120014,3209120,\"BABAKAN\" ],\n [3209120015,3209120,\"SUMBER\" ],\n [3209120016,3209120,\"PERBUTULAN\" ],\n [3209120017,3209120,\"KEMANTREN\" ],\n [3209120018,3209120,\"SENDANG\" ],\n [3209120019,3209120,\"GEGUNUNG\" ],\n [3209120020,3209120,\"PEJAMBON\" ],\n [3209120021,3209120,\"WATUBELAH\" ],\n [3209120022,3209120,\"PASALAKAN\" ],\n [3209120023,3209120,\"KALIWADAS\" ],\n [3209120024,3209120,\"TUKMUDAL\" ],\n [3209120025,3209120,\"KENANGA\" ],\n [3209121001,3209121,\"BOBOS\" ],\n [3209121002,3209121,\"CIKALAHANG\" ],\n [3209121003,3209121,\"MANDALA\" ],\n [3209121004,3209121,\"CISAAT\" ],\n [3209121005,3209121,\"SINDANGJAWA\" ],\n [3209121006,3209121,\"SINDANGMEKAR\" ],\n [3209121007,3209121,\"CANGKOAK\" ],\n [3209121008,3209121,\"KEPUNDUAN\" ],\n [3209121009,3209121,\"BALAD\" ],\n [3209121010,3209121,\"DUKUPUNTANG\" ],\n [3209121011,3209121,\"CIPANAS\" ],\n [3209121012,3209121,\"GIRINATA\" ],\n [3209121013,3209121,\"KEDONGDONG KIDUL\" ],\n [3209130003,3209130,\"KEPUH\" ],\n [3209130006,3209130,\"CILUKRAK\" ],\n [3209130007,3209130,\"BALERANTE\" ],\n [3209130008,3209130,\"PANONGAN\" ],\n [3209130009,3209130,\"BEBERAN\" ],\n [3209130010,3209130,\"SEMPLO\" ],\n [3209130011,3209130,\"PALIMANAN TIMUR\" ],\n [3209130014,3209130,\"PEGAGAN\" ],\n [3209130015,3209130,\"LUNGBENDA\" ],\n [3209130016,3209130,\"CIAWI\" ],\n [3209130017,3209130,\"CENGKUANG\" ],\n [3209130018,3209130,\"TEGALKARANG\" ],\n [3209140006,3209140,\"CEMPAKA\" ],\n [3209140007,3209140,\"PAMIJAHAN\" ],\n [3209140017,3209140,\"LURAH\" ],\n [3209140018,3209140,\"MARIKANGEN\" ],\n [3209140019,3209140,\"BODE LOR\" ],\n [3209140020,3209140,\"BODESARI\" ],\n [3209140021,3209140,\"GOMBANG\" ],\n [3209140022,3209140,\"KARANGMULYA\" ],\n [3209140023,3209140,\"KARANGASEM\" ],\n [3209140024,3209140,\"PLUMBON\" ],\n [3209140025,3209140,\"PURBAWINANGUN\" ],\n [3209140026,3209140,\"KEBAREPAN\" ],\n [3209140027,3209140,\"PASANGGRAHAN\" ],\n [3209140028,3209140,\"KEDUNGSANA\" ],\n [3209140029,3209140,\"DANAMULYA\" ],\n [3209141001,3209141,\"CIKEDUK\" ],\n [3209141002,3209141,\"WARUGEDE\" ],\n [3209141003,3209141,\"KARANGWANGI\" ],\n [3209141004,3209141,\"GETASAN\" ],\n [3209141005,3209141,\"KEJUDEN\" ],\n [3209141006,3209141,\"KEDUANAN\" ],\n [3209141007,3209141,\"WARUROYOM\" ],\n [3209141008,3209141,\"WARUKAWUNG\" ],\n [3209141009,3209141,\"WARUJAYA\" ],\n [3209141010,3209141,\"DEPOK\" ],\n [3209141011,3209141,\"KASUGENGAN KIDUL\" ],\n [3209141012,3209141,\"KASUGENGAN LOR\" ],\n [3209150005,3209150,\"KARANGSARI\" ],\n [3209150006,3209150,\"KERTASARI\" ],\n [3209150007,3209150,\"MEGU CILIK\" ],\n [3209150008,3209150,\"MEGU GEDE\" ],\n [3209150009,3209150,\"SETU WETAN\" ],\n [3209150010,3209150,\"WERU KIDUL\" ],\n [3209150011,3209150,\"SETU KULON\" ],\n [3209150012,3209150,\"TEGALWANGI\" ],\n [3209150015,3209150,\"WERU LOR\" ],\n [3209151001,3209151,\"PANEMBAHAN\" ],\n [3209151002,3209151,\"TRUSMI WETAN\" ],\n [3209151003,3209151,\"TRUSMI KULON\" ],\n [3209151004,3209151,\"SARABAU\" ],\n [3209151005,3209151,\"GAMEL\" ],\n [3209151006,3209151,\"WOTGALI\" ],\n [3209151007,3209151,\"KALIWULU\" ],\n [3209151008,3209151,\"TEGALSARI\" ],\n [3209151009,3209151,\"CANGKRING\" ],\n [3209151010,3209151,\"PANGKALAN\" ],\n [3209161001,3209161,\"PALIR\" ],\n [3209161002,3209161,\"ASTAPADA\" ],\n [3209161003,3209161,\"GESIK\" ],\n [3209161004,3209161,\"KEMLAKAGEDE\" ],\n [3209161005,3209161,\"DAWUAN\" ],\n [3209161006,3209161,\"BATEMBAT\" ],\n [3209161007,3209161,\"KALIBARU\" ],\n [3209161008,3209161,\"KALITENGAH\" ],\n [3209162001,3209162,\"KALIKOA\" ],\n [3209162002,3209162,\"KEDUNGDAWA\" ],\n [3209162003,3209162,\"TUK\" ],\n [3209162004,3209162,\"KEDUNGJAYA\" ],\n [3209162005,3209162,\"KEDAWUNG\" ],\n [3209162006,3209162,\"KERTAWINANGUN\" ],\n [3209162007,3209162,\"SUTAWINANGUN\" ],\n [3209162008,3209162,\"PILANGSARI\" ],\n [3209171001,3209171,\"ADIDHARMA\" ],\n [3209171002,3209171,\"PASINDANGAN\" ],\n [3209171003,3209171,\"JADIMULYA\" ],\n [3209171004,3209171,\"KLAYAN\" ],\n [3209171005,3209171,\"JATIMERTA\" ],\n [3209171006,3209171,\"ASTANA\" ],\n [3209171007,3209171,\"KALISAPU\" ],\n [3209171008,3209171,\"WANAKAYA\" ],\n [3209171009,3209171,\"GROGOL\" ],\n [3209171010,3209171,\"BABADAN\" ],\n [3209171011,3209171,\"BUYUT\" ],\n [3209171012,3209171,\"MAYUNG\" ],\n [3209171013,3209171,\"SAMBENG\" ],\n [3209171014,3209171,\"SIRNABAYA\" ],\n [3209171015,3209171,\"MERTASINGA\" ],\n [3209180010,3209180,\"BUNGKO\" ],\n [3209180011,3209180,\"KERTASURA\" ],\n [3209180012,3209180,\"PEGAGAN KIDUL\" ],\n [3209180015,3209180,\"PEGAGAN LOR\" ],\n [3209180016,3209180,\"DUKUH\" ],\n [3209180017,3209180,\"KARANGKENDAL\" ],\n [3209180018,3209180,\"GROGOL\" ],\n [3209180020,3209180,\"KAPETAKAN\" ],\n [3209180021,3209180,\"BUNGKO LOR\" ],\n [3209181001,3209181,\"SURANENGGALA KULON\" ],\n [3209181002,3209181,\"SURAKARTA\" ],\n [3209181003,3209181,\"KERATON\" ],\n [3209181004,3209181,\"PURWAWINANGUN\" ],\n [3209181005,3209181,\"MUARA\" ],\n [3209181006,3209181,\"KARANGREJA\" ],\n [3209181007,3209181,\"SURANENGGALA KIDUL\" ],\n [3209181008,3209181,\"SURANENGGALA LOR\" ],\n [3209181009,3209181,\"SURANENGGALA\" ],\n [3209190001,3209190,\"SERANG\" ],\n [3209190002,3209190,\"KLANGENAN\" ],\n [3209190003,3209190,\"DANAWINANGUN\" ],\n [3209190007,3209190,\"PEKANTINGAN\" ],\n [3209190008,3209190,\"JEMARAS KIDUL\" ],\n [3209190009,3209190,\"JEMARAS LOR\" ],\n [3209190011,3209190,\"SLANGIT\" ],\n [3209190012,3209190,\"KREYO\" ],\n [3209190013,3209190,\"BANGODUA\" ],\n [3209191004,3209191,\"JAMBLANG\" ],\n [3209191005,3209191,\"SITIWINANGUN\" ],\n [3209191006,3209191,\"WANGUNHARJA\" ],\n [3209191014,3209191,\"BOJONG WETAN\" ],\n [3209191015,3209191,\"BOJONG LOR\" ],\n [3209191016,3209191,\"ORIMALANG\" ],\n [3209191017,3209191,\"BAKUNG KIDUL\" ],\n [3209191018,3209191,\"BAKUNG LOR\" ],\n [3209200001,3209200,\"SENDE\" ],\n [3209200002,3209200,\"JUNGJANG WETAN\" ],\n [3209200010,3209200,\"JUNGJANG\" ],\n [3209200011,3209200,\"ARJAWINANGUN\" ],\n [3209200012,3209200,\"TEGALGUBUG\" ],\n [3209200013,3209200,\"RAWAGATEL\" ],\n [3209200014,3209200,\"TEGALGUBUG LOR\" ],\n [3209200015,3209200,\"KARANGSAMBUNG\" ],\n [3209200016,3209200,\"BULAK\" ],\n [3209200017,3209200,\"GEYONGAN\" ],\n [3209200018,3209200,\"KEBONTURI\" ],\n [3209201001,3209201,\"KALIANYAR\" ],\n [3209201002,3209201,\"PANGURAGAN KULON\" ],\n [3209201003,3209201,\"PANGURAGAN WETAN\" ],\n [3209201004,3209201,\"PANGURAGAN LOR\" ],\n [3209201005,3209201,\"PANGURAGAN\" ],\n [3209201006,3209201,\"GUJEG\" ],\n [3209201007,3209201,\"LEMAHTAMBA\" ],\n [3209201008,3209201,\"KARANGANYAR\" ],\n [3209201009,3209201,\"KROYA\" ],\n [3209210004,3209210,\"CIWARINGIN\" ],\n [3209210005,3209210,\"BABAKAN\" ],\n [3209210006,3209210,\"BUDUR\" ],\n [3209210007,3209210,\"GINTUNGRANJENG\" ],\n [3209210008,3209210,\"GINTUNG KIDUL\" ],\n [3209210009,3209210,\"GINTUNG TENGAH\" ],\n [3209210010,3209210,\"BRINGIN\" ],\n [3209210011,3209210,\"GALAGAMBA\" ],\n [3209211001,3209211,\"CUPANG\" ],\n [3209211002,3209211,\"CIKEUSAL\" ],\n [3209211003,3209211,\"WALAHAR\" ],\n [3209211004,3209211,\"PALIMANAN BARAT\" ],\n [3209211005,3209211,\"GEMPOL\" ],\n [3209211006,3209211,\"KEDUNGBUNDER\" ],\n [3209211007,3209211,\"KEMPEK\" ],\n [3209211008,3209211,\"WINONG\" ],\n [3209220001,3209220,\"TANGKIL\" ],\n [3209220002,3209220,\"WIYONG\" ],\n [3209220003,3209220,\"KEDONGDONG\" ],\n [3209220004,3209220,\"GINTUNG LOR\" ],\n [3209220005,3209220,\"BOJONG KULON\" ],\n [3209220006,3209220,\"KEJIWAN\" ],\n [3209220007,3209220,\"SUSUKAN\" ],\n [3209220008,3209220,\"LUWUNG KENCANA\" ],\n [3209220009,3209220,\"BUNDER\" ],\n [3209220010,3209220,\"JATIPURA\" ],\n [3209220011,3209220,\"UJUNGGEBANG\" ],\n [3209220012,3209220,\"JATIANOM\" ],\n [3209230007,3209230,\"BAYALANGU KIDUL\" ],\n [3209230008,3209230,\"BAYALANGU LOR\" ],\n [3209230009,3209230,\"KEDUNGDALEM\" ],\n [3209230010,3209230,\"PANUNGGUL\" ],\n [3209230011,3209230,\"GEGESIK WETAN\" ],\n [3209230012,3209230,\"GEGESIK KIDUL\" ],\n [3209230016,3209230,\"SLENDRA\" ],\n [3209230017,3209230,\"JAGAPURA KIDUL\" ],\n [3209230018,3209230,\"GEGESIK LOR\" ],\n [3209230019,3209230,\"GEGESIK KULON\" ],\n [3209230020,3209230,\"JAGAPURA WETAN\" ],\n [3209230021,3209230,\"JAGAPURA KULON\" ],\n [3209230022,3209230,\"JAGAPURA LOR\" ],\n [3209230023,3209230,\"SIBUBUT\" ],\n [3209231001,3209231,\"KALIDERES\" ],\n [3209231002,3209231,\"PRAJAWINANGUN WETAN\" ],\n [3209231003,3209231,\"PRAJAWINANGUN KULON\" ],\n [3209231004,3209231,\"KALIWEDI KIDUL\" ],\n [3209231005,3209231,\"KALIWEDI LOR\" ],\n [3209231006,3209231,\"UJUNGSEMI\" ],\n [3209231007,3209231,\"WARGABINANGUN\" ],\n [3209231008,3209231,\"GUWA KIDUL\" ],\n [3209231009,3209231,\"GUWA LOR\" ],\n [3210010001,3210010,\"CIPASUNG\" ],\n [3210010002,3210010,\"BOROGOJOL\" ],\n [3210010003,3210010,\"BANGBAYANG\" ],\n [3210010004,3210010,\"CIBULAN\" ],\n [3210010005,3210010,\"LEMAH PUTIH\" ],\n [3210010006,3210010,\"SADAWANGI\" ],\n [3210010007,3210010,\"MARGAJAYA\" ],\n [3210010008,3210010,\"KALAPADUA\" ],\n [3210010009,3210010,\"CIGALEUH\" ],\n [3210010010,3210010,\"MEKARMULYA\" ],\n [3210010011,3210010,\"SINARGALIH\" ],\n [3210010012,3210010,\"PADAREK\" ],\n [3210010013,3210010,\"SUKAJADI\" ],\n [3210010014,3210010,\"KEPUH\" ],\n [3210010015,3210010,\"MEKAR WANGI\" ],\n [3210010016,3210010,\"SUKAMAJU\" ],\n [3210010017,3210010,\"LEMAHSUGIH\" ],\n [3210010018,3210010,\"DAYEUHWANGI\" ],\n [3210010019,3210010,\"CISALAK\" ],\n [3210020009,3210020,\"SINDANGHURIP\" ],\n [3210020010,3210020,\"CIPEUNDEUY\" ],\n [3210020012,3210020,\"CIMANGGUHILIR\" ],\n [3210020013,3210020,\"SALAWANGI\" ],\n [3210020014,3210020,\"SILIHWANGI\" ],\n [3210020015,3210020,\"WADOWETAN\" ],\n [3210020016,3210020,\"BANTARUJEG\" ],\n [3210020017,3210020,\"BABAKANSARI\" ],\n [3210020018,3210020,\"GUNUNGLARANG\" ],\n [3210020019,3210020,\"CIKIDANG\" ],\n [3210020020,3210020,\"CINAMBO\" ],\n [3210020021,3210020,\"HAURGEULIS\" ],\n [3210020022,3210020,\"SUKAMENAK\" ],\n [3210021001,3210021,\"BUNINAGARA\" ],\n [3210021002,3210021,\"WERASARI\" ],\n [3210021003,3210021,\"MALAUSMA\" ],\n [3210021004,3210021,\"BANYUSARI\" ],\n [3210021005,3210021,\"JAGAMULYA\" ],\n [3210021006,3210021,\"CIMUNCANG\" ],\n [3210021007,3210021,\"CIRANCA\" ],\n [3210021008,3210021,\"LEBAKWANGI\" ],\n [3210021009,3210021,\"SUKADANA\" ],\n [3210021010,3210021,\"GIRIMUKTI\" ],\n [3210021011,3210021,\"KRAMATJAYA\" ],\n [3210030014,3210030,\"CISOKA\" ],\n [3210030015,3210030,\"SINDANGPANJI\" ],\n [3210030016,3210030,\"CIKIJING\" ],\n [3210030017,3210030,\"CIDULANG\" ],\n [3210030018,3210030,\"SUKAMUKTI\" ],\n [3210030019,3210030,\"KASTURI\" ],\n [3210030020,3210030,\"BANJARANSARI\" ],\n [3210030021,3210030,\"SINDANG\" ],\n [3210030022,3210030,\"SUKASARI\" ],\n [3210030023,3210030,\"SUNALARI\" ],\n [3210030024,3210030,\"BAGJASARI\" ],\n [3210030025,3210030,\"JAGASARI\" ],\n [3210030026,3210030,\"CILANGCANG\" ],\n [3210030027,3210030,\"KANCANA\" ],\n [3210030028,3210030,\"CIPULUS\" ],\n [3210031001,3210031,\"SEDARAJA\" ],\n [3210031002,3210031,\"CINTAASIH\" ],\n [3210031003,3210031,\"CIDADAP\" ],\n [3210031004,3210031,\"MANIIS\" ],\n [3210031005,3210031,\"RAWA\" ],\n [3210031006,3210031,\"NAGARAKEMBANG\" ],\n [3210031007,3210031,\"WANGKELANG\" ],\n [3210031008,3210031,\"CIMANGGUGIRANG\" ],\n [3210031009,3210031,\"CIRANJENG\" ],\n [3210031010,3210031,\"CINGAMBUL\" ],\n [3210031011,3210031,\"MUKTISARI\" ],\n [3210031012,3210031,\"CIKONDANG\" ],\n [3210031013,3210031,\"KONDANGMEKAR\" ],\n [3210040001,3210040,\"MARGAMUKTI\" ],\n [3210040002,3210040,\"CIBEUREUM\" ],\n [3210040003,3210040,\"CIKEUSAL\" ],\n [3210040004,3210040,\"JATIPAMOR\" ],\n [3210040005,3210040,\"CICANIR\" ],\n [3210040006,3210040,\"CAMPAGA\" ],\n [3210040007,3210040,\"LAMPUYANG\" ],\n [3210040008,3210040,\"MEKARRAHARJA\" ],\n [3210040009,3210040,\"TALAGAKULON\" ],\n [3210040010,3210040,\"TALAGAWETAN\" ],\n [3210040011,3210040,\"SALADO\" ],\n [3210040012,3210040,\"ARGASARI\" ],\n [3210040013,3210040,\"GUNUNGMANIK\" ],\n [3210040014,3210040,\"GANEAS\" ],\n [3210040015,3210040,\"SUKAPERNA\" ],\n [3210040016,3210040,\"KERTARAHAYU\" ],\n [3210040017,3210040,\"MEKARHURIP\" ],\n [3210041001,3210041,\"GENTENG\" ],\n [3210041002,3210041,\"HEGARMANAH\" ],\n [3210041003,3210041,\"SINDANGPALA\" ],\n [3210041004,3210041,\"DARMALARANG\" ],\n [3210041005,3210041,\"SUNIABARU\" ],\n [3210041006,3210041,\"SANGIANG\" ],\n [3210041007,3210041,\"SUNIA\" ],\n [3210041008,3210041,\"KAREO\" ],\n [3210041009,3210041,\"BANJARAN\" ],\n [3210041010,3210041,\"KAGOK\" ],\n [3210041011,3210041,\"CIMEONG\" ],\n [3210041012,3210041,\"PANYINDANGAN\" ],\n [3210041013,3210041,\"GIRIMULYA\" ],\n [3210050001,3210050,\"SAGARA\" ],\n [3210050002,3210050,\"CIBUNUT\" ],\n [3210050003,3210050,\"TEJAMULYA\" ],\n [3210050004,3210050,\"SUKASARI KIDUL\" ],\n [3210050005,3210050,\"SUKASARI KALER\" ],\n [3210050006,3210050,\"SADASARI\" ],\n [3210050007,3210050,\"SUKADANA\" ],\n [3210050008,3210050,\"ARGAMUKTI\" ],\n [3210050009,3210050,\"ARGALINGGA\" ],\n [3210050010,3210050,\"HAURSEAH\" ],\n [3210050011,3210050,\"GUNUNGWANGI\" ],\n [3210050012,3210050,\"MEKARWANGI\" ],\n [3210050013,3210050,\"HEUBEULISUK\" ],\n [3210050014,3210050,\"CIKARACAK\" ],\n [3210060001,3210060,\"CIHAUR\" ],\n [3210060002,3210060,\"WANAHAYU\" ],\n [3210060003,3210060,\"CENGAL\" ],\n [3210060004,3210060,\"ANGGRAWATI\" ],\n [3210060005,3210060,\"CIPICUNG\" ],\n [3210060006,3210060,\"MALONGPONG\" ],\n [3210060007,3210060,\"TEGALSARI\" ],\n [3210060008,3210060,\"MAJA SELATAN\" ],\n [3210060009,3210060,\"MAJA UTARA\" ],\n [3210060010,3210060,\"PASANGGRAHAN\" ],\n [3210060011,3210060,\"CIEURIH\" ],\n [3210060012,3210060,\"KERTABASUKI\" ],\n [3210060013,3210060,\"SINDANGKERTA\" ],\n [3210060014,3210060,\"BANJARAN\" ],\n [3210060015,3210060,\"PANIIS\" ],\n [3210060016,3210060,\"CICALUNG\" ],\n [3210060017,3210060,\"PAGERAJI\" ],\n [3210060018,3210060,\"NUNUK BARU\" ],\n [3210070001,3210070,\"BABAKAN JAWA\" ],\n [3210070002,3210070,\"CIBODAS\" ],\n [3210070003,3210070,\"KULUR\" ],\n [3210070004,3210070,\"KAWUNGGIRANG\" ],\n [3210070005,3210070,\"SINDANGKASIH\" ],\n [3210070006,3210070,\"CICURUG\" ],\n [3210070007,3210070,\"MAJALENGKA WETAN\" ],\n [3210070008,3210070,\"TONJONG\" ],\n [3210070009,3210070,\"TARIKOLOT\" ],\n [3210070010,3210070,\"CIKASARUNG\" ],\n [3210070011,3210070,\"CIJATI\" ],\n [3210070012,3210070,\"MAJALENGKA KULON\" ],\n [3210070013,3210070,\"MUNJUL\" ],\n [3210070014,3210070,\"SIDAMUKTI\" ],\n [3210080001,3210080,\"KAWUNGHILIR\" ],\n [3210080002,3210080,\"TAJUR\" ],\n [3210080003,3210080,\"CIGASONG\" ],\n [3210080004,3210080,\"SIMPEUREUM\" ],\n [3210080005,3210080,\"TENJOLAYAR\" ],\n [3210080006,3210080,\"KUTAMANGGU\" ],\n [3210080007,3210080,\"CICENANG\" ],\n [3210080008,3210080,\"BARIBIS\" ],\n [3210080009,3210080,\"BATUJAYA\" ],\n [3210080010,3210080,\"KARAYUNAN\" ],\n [3210090001,3210090,\"CANDRAJAYA\" ],\n [3210090002,3210090,\"CIOMAS\" ],\n [3210090010,3210090,\"PADAHANTEN\" ],\n [3210090011,3210090,\"SUKAHAJI\" ],\n [3210090012,3210090,\"CIKALONG\" ],\n [3210090013,3210090,\"BABAKAN MANJETI\" ],\n [3210090014,3210090,\"CIKONENG\" ],\n [3210090015,3210090,\"PALABUAN\" ],\n [3210090016,3210090,\"CIKEUSIK\" ],\n [3210090017,3210090,\"SALAGEDANG\" ],\n [3210090018,3210090,\"TANJUNGSARI\" ],\n [3210090019,3210090,\"JAYI\" ],\n [3210090020,3210090,\"NANGGEWER\" ],\n [3210091001,3210091,\"PASIRAYU\" ],\n [3210091002,3210091,\"GARAWASTU\" ],\n [3210091003,3210091,\"SANGKANHURIP\" ],\n [3210091004,3210091,\"INDRAKILA\" ],\n [3210091005,3210091,\"SINDANG\" ],\n [3210091006,3210091,\"GUNUNG KUNING\" ],\n [3210091007,3210091,\"BAYUREJA\" ],\n [3210100001,3210100,\"PAJAJAR\" ],\n [3210100002,3210100,\"TEJA\" ],\n [3210100003,3210100,\"PAYUNG\" ],\n [3210100004,3210100,\"SINDANGPANO\" ],\n [3210100005,3210100,\"BABAKANKAREO\" ],\n [3210100006,3210100,\"SADOMAS\" ],\n [3210100007,3210100,\"KUMBUNG\" ],\n [3210100008,3210100,\"RAJAGALUH KIDUL\" ],\n [3210100009,3210100,\"SINGAWADA\" ],\n [3210100010,3210100,\"RAJAGALUH\" ],\n [3210100011,3210100,\"RAJAGALUH LOR\" ],\n [3210100012,3210100,\"CIPINANG\" ],\n [3210100013,3210100,\"CISETU\" ],\n [3210110001,3210110,\"BANTAR AGUNG\" ],\n [3210110002,3210110,\"PADAHERANG\" ],\n [3210110003,3210110,\"LENGKONGWETAN\" ],\n [3210110004,3210110,\"LENGKONGKULON\" ],\n [3210110005,3210110,\"JERUKLEUEUT\" ],\n [3210110006,3210110,\"SINDANGWANGI\" ],\n [3210110007,3210110,\"BUAHKAPAS\" ],\n [3210110008,3210110,\"UJUNGBERUNG\" ],\n [3210110009,3210110,\"LEUWILAJA\" ],\n [3210110010,3210110,\"BALAGEDOG\" ],\n [3210120001,3210120,\"PARAKAN\" ],\n [3210120002,3210120,\"LAME\" ],\n [3210120003,3210120,\"MINDI\" ],\n [3210120004,3210120,\"RAJAWANGI\" ],\n [3210120005,3210120,\"LEUWIKUJANG\" ],\n [3210120006,3210120,\"NANGGERANG\" ],\n [3210120007,3210120,\"PATUANAN\" ],\n [3210120008,3210120,\"TANJUNGSARI\" ],\n [3210120009,3210120,\"KARANGASEM\" ],\n [3210120010,3210120,\"HEULEUT\" ],\n [3210120011,3210120,\"CIPARAY\" ],\n [3210120012,3210120,\"LEUWIMUNDING\" ],\n [3210120013,3210120,\"MIRAT\" ],\n [3210120014,3210120,\"PARUNGJAYA\" ],\n [3210130001,3210130,\"WERAGATI\" ],\n [3210130002,3210130,\"TRAJAYA\" ],\n [3210130003,3210130,\"TARIKOLOT\" ],\n [3210130004,3210130,\"SINDANGHAJI\" ],\n [3210130005,3210130,\"ENGGALWANGI\" ],\n [3210130006,3210130,\"BUNIWANGI\" ],\n [3210130007,3210130,\"PALASAH\" ],\n [3210130008,3210130,\"PASIR\" ],\n [3210130009,3210130,\"WARINGIN\" ],\n [3210130010,3210130,\"KARAMAT\" ],\n [3210130011,3210130,\"SINDANGWASA\" ],\n [3210130012,3210130,\"CISAMBENG\" ],\n [3210130013,3210130,\"MAJASUKA\" ],\n [3210140001,3210140,\"PINANGRAJA\" ],\n [3210140002,3210140,\"SUKARAJA KULON\" ],\n [3210140003,3210140,\"SUKARAJA WETAN\" ],\n [3210140004,3210140,\"CIBENTAR\" ],\n [3210140005,3210140,\"LEUWENGGEDE\" ],\n [3210140006,3210140,\"ANDIR\" ],\n [3210140007,3210140,\"CICADAS\" ],\n [3210140008,3210140,\"BURUJUL WETAN\" ],\n [3210140009,3210140,\"BURUJUL KULON\" ],\n [3210140010,3210140,\"MEKARSARI\" ],\n [3210140011,3210140,\"JATIWANGI\" ],\n [3210140012,3210140,\"SURAWANGI\" ],\n [3210140013,3210140,\"JATISURA\" ],\n [3210140014,3210140,\"SUTAWANGI\" ],\n [3210140015,3210140,\"CIBORELANG\" ],\n [3210140016,3210140,\"LOJI\" ],\n [3210150011,3210150,\"BOJONGCIDERES\" ],\n [3210150012,3210150,\"DAWUAN\" ],\n [3210150013,3210150,\"GENTENG\" ],\n [3210150014,3210150,\"GANDU\" ],\n [3210150015,3210150,\"SINARJATI\" ],\n [3210150016,3210150,\"BATURUYUK\" ],\n [3210150017,3210150,\"MANDAPA\" ],\n [3210150018,3210150,\"BALIDA\" ],\n [3210150019,3210150,\"PASIRMALATI\" ],\n [3210150020,3210150,\"KARANGANYAR\" ],\n [3210150021,3210150,\"SALAWANA\" ],\n [3210151001,3210151,\"JATISAWIT\" ],\n [3210151002,3210151,\"LEUWIKIDANG\" ],\n [3210151003,3210151,\"GIRIMUKTI\" ],\n [3210151004,3210151,\"JATIMULYA\" ],\n [3210151005,3210151,\"WANAJAYA\" ],\n [3210151006,3210151,\"RANJIWETAN\" ],\n [3210151007,3210151,\"RANJIKULON\" ],\n [3210151008,3210151,\"GUNUNGSARI\" ],\n [3210151009,3210151,\"KASOKANDEL\" ],\n [3210151010,3210151,\"GANDASARI\" ],\n [3210160001,3210160,\"CIJUREY\" ],\n [3210160002,3210160,\"PASIRMUNCANG\" ],\n [3210160003,3210160,\"JATIPAMOR\" ],\n [3210160004,3210160,\"BANTRANGSANA\" ],\n [3210160005,3210160,\"JATISERANG\" ],\n [3210160006,3210160,\"BONANG\" ],\n [3210160007,3210160,\"LEUWISEENG\" ],\n [3210160008,3210160,\"KARYAMUKTI\" ],\n [3210160009,3210160,\"PANYINGKIRAN\" ],\n [3210170001,3210170,\"LIANGJULANG\" ],\n [3210170002,3210170,\"HEULEUT\" ],\n [3210170003,3210170,\"CIPAKU\" ],\n [3210170004,3210170,\"KADIPATEN\" ],\n [3210170005,3210170,\"BABAKAN ANYAR\" ],\n [3210170006,3210170,\"KARANGSAMBUNG\" ],\n [3210170007,3210170,\"PAGANDON\" ],\n [3210180001,3210180,\"MEKARJAYA\" ],\n [3210180002,3210180,\"PALASAH\" ],\n [3210180003,3210180,\"PAKUBEUREUM\" ],\n [3210180004,3210180,\"SUKAWANA\" ],\n [3210180005,3210180,\"KERTAWINANGUN\" ],\n [3210180006,3210180,\"BABAKAN\" ],\n [3210180007,3210180,\"KERTAJATI\" ],\n [3210180008,3210180,\"KERTASARI\" ],\n [3210180009,3210180,\"MEKARMULYA\" ],\n [3210180010,3210180,\"SUKAMULYA\" ],\n [3210180011,3210180,\"BANTARJATI\" ],\n [3210180012,3210180,\"PASIRIPIS\" ],\n [3210180013,3210180,\"SUKAKERTA\" ],\n [3210180014,3210180,\"SAHBANDAR\" ],\n [3210190001,3210190,\"BIYAWAK\" ],\n [3210190002,3210190,\"PASINDANGAN\" ],\n [3210190003,3210190,\"PANONGAN\" ],\n [3210190004,3210190,\"PANYINGKIRAN\" ],\n [3210190005,3210190,\"RANDEGAN KULON\" ],\n [3210190006,3210190,\"RANDEGAN WETAN\" ],\n [3210190007,3210190,\"PUTRIDALEM\" ],\n [3210190008,3210190,\"JATITENGAH\" ],\n [3210190009,3210190,\"JATITUJUH\" ],\n [3210190010,3210190,\"BABAJURANG\" ],\n [3210190011,3210190,\"PILANGSARI\" ],\n [3210190012,3210190,\"JATIRAGA\" ],\n [3210190013,3210190,\"SUMBER KULON\" ],\n [3210190014,3210190,\"SUMBER WETAN\" ],\n [3210190015,3210190,\"PANGKALANPARI\" ],\n [3210200001,3210200,\"CIBOGOR\" ],\n [3210200002,3210200,\"KERTASARI\" ],\n [3210200003,3210200,\"GANDAWESI\" ],\n [3210200004,3210200,\"BEUSI\" ],\n [3210200005,3210200,\"TEGALAREN\" ],\n [3210200006,3210200,\"BUNTU\" ],\n [3210200007,3210200,\"BEBER\" ],\n [3210200008,3210200,\"WANASALAM\" ],\n [3210200009,3210200,\"LIGUNG LOR\" ],\n [3210200010,3210200,\"LIGUNG\" ],\n [3210200011,3210200,\"MAJASARI\" ],\n [3210200012,3210200,\"SUKAWERA\" ],\n [3210200013,3210200,\"BANTARWARU\" ],\n [3210200014,3210200,\"AMPEL\" ],\n [3210200015,3210200,\"LEUWEUNGHAPIT\" ],\n [3210200016,3210200,\"KODASARI\" ],\n [3210200017,3210200,\"KEDUNGKANCANA\" ],\n [3210200018,3210200,\"LEUWILIANG BARU\" ],\n [3210200019,3210200,\"KEDUNGSARI\" ],\n [3210210001,3210210,\"SUMBERJAYA\" ],\n [3210210002,3210210,\"GARAWANGI\" ],\n [3210210003,3210210,\"BANJARAN\" ],\n [3210210004,3210210,\"SEPAT\" ],\n [3210210005,3210210,\"PANINGKIRAN\" ],\n [3210210006,3210210,\"PARAPATAN\" ],\n [3210210007,3210210,\"PANJALIN KIDUL\" ],\n [3210210008,3210210,\"RANCAPUTAT\" ],\n [3210210009,3210210,\"BONGAS WETAN\" ],\n [3210210010,3210210,\"BONGAS KULON\" ],\n [3210210011,3210210,\"PANJALIN LOR\" ],\n [3210210012,3210210,\"CIDENOK\" ],\n [3210210013,3210210,\"LOJI KOBONG\" ],\n [3210210014,3210210,\"GELOKMULYA\" ],\n [3210210015,3210210,\"PANCAKSUJI\" ],\n [3211010001,3211010,\"CIPACING\" ],\n [3211010002,3211010,\"SAYANG\" ],\n [3211010003,3211010,\"MEKARGALIH\" ],\n [3211010004,3211010,\"CINTA MULYA\" ],\n [3211010005,3211010,\"CISEMPUR\" ],\n [3211010006,3211010,\"JATIMUKTI\" ],\n [3211010007,3211010,\"JATIROKE\" ],\n [3211010008,3211010,\"HEGARMANAH\" ],\n [3211010009,3211010,\"CIKERUH\" ],\n [3211010010,3211010,\"CIBEUSI\" ],\n [3211010011,3211010,\"CILELES\" ],\n [3211010012,3211010,\"CILAYUNG\" ],\n [3211020001,3211020,\"MANGUNARGA\" ],\n [3211020002,3211020,\"SAWAHDADAP\" ],\n [3211020003,3211020,\"SUKADANA\" ],\n [3211020004,3211020,\"CIHANJUANG\" ],\n [3211020005,3211020,\"CIKAHURIPAN\" ],\n [3211020006,3211020,\"SINDANGGALIH\" ],\n [3211020007,3211020,\"SINDANGPAKUON\" ],\n [3211020008,3211020,\"CIMANGGUNG\" ],\n [3211020009,3211020,\"TEGALMANGGUNG\" ],\n [3211020010,3211020,\"SINDULANG\" ],\n [3211020011,3211020,\"PASIRNANJUNG\" ],\n [3211030001,3211030,\"CINANJUNG\" ],\n [3211030002,3211030,\"RAHARJA\" ],\n [3211030008,3211030,\"GUNUNGMANIK\" ],\n [3211030009,3211030,\"MARGA JAYA\" ],\n [3211030010,3211030,\"TANJUNGSARI\" ],\n [3211030011,3211030,\"JATISARI\" ],\n [3211030012,3211030,\"KUTAMANDIRI\" ],\n [3211030014,3211030,\"MARGALUYU\" ],\n [3211030015,3211030,\"GUDANG\" ],\n [3211030018,3211030,\"PASIGARAN\" ],\n [3211030025,3211030,\"KADAKAJAYA\" ],\n [3211030027,3211030,\"CIJAMBU\" ],\n [3211031001,3211031,\"SUKARAPIH\" ],\n [3211031002,3211031,\"SUKASARI\" ],\n [3211031003,3211031,\"MEKARSARI\" ],\n [3211031004,3211031,\"SINDANGSARI\" ],\n [3211031005,3211031,\"NANGGERANG\" ],\n [3211031006,3211031,\"BANYURESMI\" ],\n [3211031007,3211031,\"GENTENG\" ],\n [3211032001,3211032,\"MEKARBAKTI\" ],\n [3211032002,3211032,\"CILEMBU\" ],\n [3211032003,3211032,\"CIMARIAS\" ],\n [3211032004,3211032,\"CINANGGERANG\" ],\n [3211032005,3211032,\"CIJERUK\" ],\n [3211032006,3211032,\"CIGENDEL\" ],\n [3211032007,3211032,\"HAURNGOMBONG\" ],\n [3211032008,3211032,\"CIPTASARI\" ],\n [3211032009,3211032,\"CITALI\" ],\n [3211032010,3211032,\"PAMULIHAN\" ],\n [3211032011,3211032,\"SUKAWANGI\" ],\n [3211040002,3211040,\"SUKASIRNARASA\" ],\n [3211040006,3211040,\"PASIR BIRU\" ],\n [3211040007,3211040,\"RANCAKALONG\" ],\n [3211040008,3211040,\"PAMEKARAN\" ],\n [3211040009,3211040,\"SUKAMAJU\" ],\n [3211040010,3211040,\"SUKAHAYU\" ],\n [3211040011,3211040,\"NAGARAWANGI\" ],\n [3211040012,3211040,\"CIBUNAR\" ],\n [3211040013,3211040,\"PANGADEGAN\" ],\n [3211040014,3211040,\"CIBUNGUR\" ],\n [3211050001,3211050,\"SUKAJAYA\" ],\n [3211050002,3211050,\"MARGAMEKAR\" ],\n [3211050003,3211050,\"CIPANCAR\" ],\n [3211050004,3211050,\"CITENGAH\" ],\n [3211050007,3211050,\"GUNASARI\" ],\n [3211050008,3211050,\"BAGINDA\" ],\n [3211050009,3211050,\"SUKAGALIH\" ],\n [3211050010,3211050,\"CIPAMEUNGPEUK\" ],\n [3211050011,3211050,\"REGOL WETAN\" ],\n [3211050012,3211050,\"KOTAKULON\" ],\n [3211050013,3211050,\"PASANGGRAHAN BARU\" ],\n [3211050014,3211050,\"CIHERANG\" ],\n [3211050015,3211050,\"MEKARRAHAYU\" ],\n [3211050016,3211050,\"MARGALAKSANA\" ],\n [3211060001,3211060,\"SIRNAMULYA\" ],\n [3211060002,3211060,\"GIRIMUKTI\" ],\n [3211060003,3211060,\"MULYASARI\" ],\n [3211060004,3211060,\"PADASUKA\" ],\n [3211060005,3211060,\"MARGAMUKTI\" ],\n [3211060006,3211060,\"MEKARJAYA\" ],\n [3211060007,3211060,\"JATIMULYA\" ],\n [3211060008,3211060,\"JATIHURIP\" ],\n [3211060009,3211060,\"KEBONJATI\" ],\n [3211060010,3211060,\"SITU\" ],\n [3211060011,3211060,\"KOTAKALER\" ],\n [3211060012,3211060,\"TALUN\" ],\n [3211060013,3211060,\"RANCAMULYA\" ],\n [3211061001,3211061,\"CIKONDANG\" ],\n [3211061002,3211061,\"TANJUNGHURIP\" ],\n [3211061003,3211061,\"DAYEUH LUHUR\" ],\n [3211061004,3211061,\"CIKONENG\" ],\n [3211061005,3211061,\"SUKAWENING\" ],\n [3211061006,3211061,\"GANEAS\" ],\n [3211061007,3211061,\"SUKALUYU\" ],\n [3211061008,3211061,\"CIKONENG KULON\" ],\n [3211070001,3211070,\"BANGBAYANG\" ],\n [3211070002,3211070,\"KADUWULUNG\" ],\n [3211070011,3211070,\"CIJATI\" ],\n [3211070012,3211070,\"MEKARMULYA\" ],\n [3211070013,3211070,\"CIKADU\" ],\n [3211070014,3211070,\"KARANGHEULEUT\" ],\n [3211070015,3211070,\"CIJELER\" ],\n [3211070016,3211070,\"AMBIT\" ],\n [3211070017,3211070,\"SUKATALI\" ],\n [3211070018,3211070,\"SITURAJA\" ],\n [3211070019,3211070,\"JATIMEKAR\" ],\n [3211070020,3211070,\"SITURAJA UTARA\" ],\n [3211070021,3211070,\"MALAKA\" ],\n [3211070022,3211070,\"PAMULIHAN\" ],\n [3211070023,3211070,\"CICARIMANAH\" ],\n [3211071001,3211071,\"SUNDAMEKAR\" ],\n [3211071002,3211071,\"CIMARGA\" ],\n [3211071003,3211071,\"CINANGSI\" ],\n [3211071004,3211071,\"LINGGAJAYA\" ],\n [3211071005,3211071,\"SITUMEKAR\" ],\n [3211071006,3211071,\"CISITU\" ],\n [3211071007,3211071,\"CIGINTUNG\" ],\n [3211071008,3211071,\"RANJENG\" ],\n [3211071009,3211071,\"CILOPANG\" ],\n [3211071010,3211071,\"PAJAGAN\" ],\n [3211080003,3211080,\"NEGLASARI\" ],\n [3211080004,3211080,\"SUKAMENAK\" ],\n [3211080005,3211080,\"JATIBUNGUR\" ],\n [3211080006,3211080,\"DARMAJAYA\" ],\n [3211080007,3211080,\"DARMARAJA\" ],\n [3211080008,3211080,\"CIPEUTEUY\" ],\n [3211080011,3211080,\"CIKEUSI\" ],\n [3211080012,3211080,\"CIEUNTEUNG\" ],\n [3211080013,3211080,\"TARUNAJAYA\" ],\n [3211080014,3211080,\"SUKARATU\" ],\n [3211080015,3211080,\"LEUWIHIDEUNG\" ],\n [3211080016,3211080,\"CIBOGO\" ],\n [3211080017,3211080,\"CIPAKU\" ],\n [3211080018,3211080,\"KARANG PAKUAN\" ],\n [3211080019,3211080,\"PAKU ALAM\" ],\n [3211080020,3211080,\"RANGGON\" ],\n [3211090001,3211090,\"BUANA MEKAR\" ],\n [3211090002,3211090,\"JAYA MEKAR\" ],\n [3211090003,3211090,\"CIBUGEL\" ],\n [3211090004,3211090,\"TAMANSARI\" ],\n [3211090005,3211090,\"SUKARAJA\" ],\n [3211090006,3211090,\"CIPASANG\" ],\n [3211090007,3211090,\"JAYAMANDIRI\" ],\n [3211100001,3211100,\"CILENGKRANG\" ],\n [3211100002,3211100,\"SUKAJADI\" ],\n [3211100003,3211100,\"GANJARESIK\" ],\n [3211100004,3211100,\"CIMUNGKAL\" ],\n [3211100011,3211100,\"MULYAJAYA\" ],\n [3211100012,3211100,\"CIKAREO SELATAN\" ],\n [3211100013,3211100,\"CIKAREO UTARA\" ],\n [3211100014,3211100,\"WADO\" ],\n [3211100015,3211100,\"PADAJAYA\" ],\n [3211100016,3211100,\"SUKAPURA\" ],\n [3211100017,3211100,\"CISURAT\" ],\n [3211101001,3211101,\"KIRISIK\" ],\n [3211101002,3211101,\"CIPEUNDEUY\" ],\n [3211101003,3211101,\"CIMANINTIN\" ],\n [3211101004,3211101,\"SUKAMANAH\" ],\n [3211101005,3211101,\"BANJARSARI\" ],\n [3211101006,3211101,\"SARIMEKAR\" ],\n [3211101007,3211101,\"TARIKOLOT\" ],\n [3211101008,3211101,\"SIRNASARI\" ],\n [3211101009,3211101,\"PAWENANG\" ],\n [3211111001,3211111,\"SUKAKERSA\" ],\n [3211111002,3211111,\"MEKARASIH\" ],\n [3211111003,3211111,\"CIRANGGEM\" ],\n [3211111004,3211111,\"CISAMPIH\" ],\n [3211111006,3211111,\"KADU\" ],\n [3211111007,3211111,\"LEBAKSIUH\" ],\n [3211111008,3211111,\"CINTAJAYA\" ],\n [3211111009,3211111,\"CIPICUNG\" ],\n [3211111010,3211111,\"JEMAH\" ],\n [3211111011,3211111,\"CIJEUNGJING\" ],\n [3211111012,3211111,\"KADUJAYA\" ],\n [3211111013,3211111,\"KAREDOK\" ],\n [3211120003,3211120,\"CIPELES\" ],\n [3211120004,3211120,\"DARMAWANGI\" ],\n [3211120005,3211120,\"JEMBARWANGI\" ],\n [3211120006,3211120,\"MARONGGE\" ],\n [3211120007,3211120,\"TOLENGAS\" ],\n [3211120008,3211120,\"TOMO\" ],\n [3211120009,3211120,\"KARYAMUKTI\" ],\n [3211120010,3211120,\"BUGEL\" ],\n [3211120011,3211120,\"MEKARWANGI\" ],\n [3211130001,3211130,\"CIPELANG\" ],\n [3211130002,3211130,\"PALABUAN\" ],\n [3211130003,3211130,\"KEBON CAU\" ],\n [3211130004,3211130,\"KUDANGWANGI\" ],\n [3211130005,3211130,\"SUKAMULYA\" ],\n [3211130006,3211130,\"PALASARI\" ],\n [3211130007,3211130,\"UJUNGJAYA\" ],\n [3211130008,3211130,\"SAKURJAYA\" ],\n [3211130009,3211130,\"CIBULUH\" ],\n [3211140001,3211140,\"NARIMBANG\" ],\n [3211140002,3211140,\"JAMBU\" ],\n [3211140003,3211140,\"CIPAMEKAR\" ],\n [3211140004,3211140,\"CONGGEANG KULON\" ],\n [3211140005,3211140,\"CONGGEANG WETAN\" ],\n [3211140006,3211140,\"CIBEUREUYEUH\" ],\n [3211140007,3211140,\"PADAASIH\" ],\n [3211140008,3211140,\"BABAKAN ASEM\" ],\n [3211140009,3211140,\"UNGKAL\" ],\n [3211140010,3211140,\"CACABAN\" ],\n [3211140011,3211140,\"KARANGLAYUNG\" ],\n [3211140012,3211140,\"CIBUBUAN\" ],\n [3211150001,3211150,\"LEGOK KALER\" ],\n [3211150002,3211150,\"LEGOK KIDUL\" ],\n [3211150003,3211150,\"PASEH KIDUL\" ],\n [3211150004,3211150,\"CIJAMBE\" ],\n [3211150005,3211150,\"PASIREUNGIT\" ],\n [3211150006,3211150,\"PADANAAN\" ],\n [3211150007,3211150,\"BONGKOK\" ],\n [3211150008,3211150,\"PASEH KALER\" ],\n [3211150009,3211150,\"HAURKUNING\" ],\n [3211150010,3211150,\"CITEPOK\" ],\n [3211160001,3211160,\"CIMUJA\" ],\n [3211160011,3211160,\"CIBEUREUM WETAN\" ],\n [3211160012,3211160,\"CIBEUREUM KULON\" ],\n [3211160013,3211160,\"MANDALAHERANG\" ],\n [3211160014,3211160,\"CIMALAKA\" ],\n [3211160015,3211160,\"SERANG\" ],\n [3211160016,3211160,\"GALUDRA\" ],\n [3211160017,3211160,\"CIKOLE\" ],\n [3211160018,3211160,\"TRUNAMANGGALA\" ],\n [3211160019,3211160,\"NYALINDUNG\" ],\n [3211160020,3211160,\"NALUK\" ],\n [3211160021,3211160,\"CITIMUN\" ],\n [3211160022,3211160,\"LICIN\" ],\n [3211160023,3211160,\"PADASARI\" ],\n [3211161001,3211161,\"CISALAK\" ],\n [3211161002,3211161,\"KEBONKALAPA\" ],\n [3211161003,3211161,\"CISARUA\" ],\n [3211161004,3211161,\"BANTARMARA\" ],\n [3211161005,3211161,\"CIUYAH\" ],\n [3211161006,3211161,\"CIMARA\" ],\n [3211161007,3211161,\"CIPANDANWANGI\" ],\n [3211170003,3211170,\"TANJUNGMEKAR\" ],\n [3211170004,3211170,\"CIGENTUR\" ],\n [3211170005,3211170,\"GUNTURMEKAR\" ],\n [3211170006,3211170,\"CIPANAS\" ],\n [3211170007,3211170,\"BANYUASIH\" ],\n [3211170008,3211170,\"MULYAMEKAR\" ],\n [3211170009,3211170,\"SUKAMANTRI\" ],\n [3211170016,3211170,\"KERTAHARJA\" ],\n [3211170017,3211170,\"KERTAMEKAR\" ],\n [3211170018,3211170,\"TANJUNGMULYA\" ],\n [3211170019,3211170,\"BOROS\" ],\n [3211170020,3211170,\"AWILEGA\" ],\n [3211171001,3211171,\"WARGALUYU\" ],\n [3211171002,3211171,\"TANJUNGWANGI\" ],\n [3211171003,3211171,\"SUKAMUKTI\" ],\n [3211171004,3211171,\"CIKARAMAS\" ],\n [3211171005,3211171,\"KERTAMUKTI\" ],\n [3211171006,3211171,\"SUKATANI\" ],\n [3211171007,3211171,\"KAMAL\" ],\n [3211171008,3211171,\"JINGKANG\" ],\n [3211171009,3211171,\"TANJUNGMEDAR\" ],\n [3211180001,3211180,\"SEKARWANGI\" ],\n [3211180002,3211180,\"CILANGKAP\" ],\n [3211180003,3211180,\"CIBITUNG\" ],\n [3211180004,3211180,\"CIKURUBUK\" ],\n [3211180005,3211180,\"BOJONGLOA\" ],\n [3211180006,3211180,\"NAGRAK\" ],\n [3211180007,3211180,\"PANYINDANGAN\" ],\n [3211180008,3211180,\"BUAHDUA\" ],\n [3211180009,3211180,\"GENDEREH\" ],\n [3211180010,3211180,\"CITALEUS\" ],\n [3211180011,3211180,\"MEKARMUKTI\" ],\n [3211180012,3211180,\"HARIANG\" ],\n [3211180014,3211180,\"KARANGBUNGUR\" ],\n [3211180015,3211180,\"CIAWITALI\" ],\n [3211181001,3211181,\"WANAJAYA\" ],\n [3211181002,3211181,\"WANASARI\" ],\n [3211181003,3211181,\"PAMEKARSARI\" ],\n [3211181004,3211181,\"SURIAN\" ],\n [3211181005,3211181,\"TANJUNG\" ],\n [3211181006,3211181,\"RANGGASARI\" ],\n [3211181007,3211181,\"SURIAMEDAL\" ],\n [3211181008,3211181,\"SURIAMUKTI\" ],\n [3211181009,3211181,\"NANJUNGWANGI\" ],\n [3212010007,3212010,\"HAURKOLOT\" ],\n [3212010008,3212010,\"HAURGEULIS\" ],\n [3212010009,3212010,\"SUKAJATI\" ],\n [3212010010,3212010,\"WANAKAYA\" ],\n [3212010011,3212010,\"KARANGTUMARITIS\" ],\n [3212010012,3212010,\"KERTANEGARA\" ],\n [3212010013,3212010,\"CIPANCUH\" ],\n [3212010014,3212010,\"MEKARJATI\" ],\n [3212010015,3212010,\"SIDADADI\" ],\n [3212010016,3212010,\"SUMBERMULYA\" ],\n [3212011001,3212011,\"BANTARWARU\" ],\n [3212011002,3212011,\"SANCA\" ],\n [3212011003,3212011,\"MEKARJAYA\" ],\n [3212011004,3212011,\"GANTAR\" ],\n [3212011005,3212011,\"SITURAJA\" ],\n [3212011006,3212011,\"BALERAJA\" ],\n [3212011007,3212011,\"MEKARWARU\" ],\n [3212020001,3212020,\"SUKASLAMET\" ],\n [3212020002,3212020,\"TANJUNGKERTA\" ],\n [3212020003,3212020,\"KROYA\" ],\n [3212020004,3212020,\"SUMBON\" ],\n [3212020005,3212020,\"SUKAMELANG\" ],\n [3212020006,3212020,\"TEMIYANG\" ],\n [3212020007,3212020,\"TEMIYANGSARI\" ],\n [3212020008,3212020,\"JAYAMULYA\" ],\n [3212020009,3212020,\"SUMBERJAYA\" ],\n [3212030001,3212030,\"KEDUNGDAWA\" ],\n [3212030002,3212030,\"BABAKANJAYA\" ],\n [3212030003,3212030,\"GABUSKULON\" ],\n [3212030004,3212030,\"SEKARMULYA\" ],\n [3212030005,3212030,\"KEDOKANGABUS\" ],\n [3212030006,3212030,\"RANCAMULYA\" ],\n [3212030007,3212030,\"RANCAHAN\" ],\n [3212030008,3212030,\"GABUSWETAN\" ],\n [3212030009,3212030,\"DRUNTEN WETAN\" ],\n [3212030010,3212030,\"DRUNTEN KULON\" ],\n [3212040003,3212040,\"LOYANG\" ],\n [3212040004,3212040,\"AMIS\" ],\n [3212040005,3212040,\"JATISURA\" ],\n [3212040006,3212040,\"JAMBAK\" ],\n [3212040007,3212040,\"CIKEDUNG\" ],\n [3212040012,3212040,\"CIKEDUNG LOR\" ],\n [3212040013,3212040,\"MUNDAKJAYA\" ],\n [3212041001,3212041,\"CIKAWUNG\" ],\n [3212041002,3212041,\"JATIMUNGGUL\" ],\n [3212041003,3212041,\"JATIMULYA\" ],\n [3212041004,3212041,\"PLOSOKEREP\" ],\n [3212041005,3212041,\"RAJASINGA\" ],\n [3212041006,3212041,\"KARANGASEM\" ],\n [3212041007,3212041,\"CIBERENG\" ],\n [3212041008,3212041,\"KENDAYAKAN\" ],\n [3212041009,3212041,\"MANGGUNGAN\" ],\n [3212050001,3212050,\"TUNGGULPAYUNG\" ],\n [3212050002,3212050,\"TUGU\" ],\n [3212050003,3212050,\"NUNUK\" ],\n [3212050004,3212050,\"TEMPEL\" ],\n [3212050005,3212050,\"PANGAUBAN\" ],\n [3212050006,3212050,\"TELAGASARI\" ],\n [3212050007,3212050,\"LANGGENGSARI\" ],\n [3212050008,3212050,\"TAMANSARI\" ],\n [3212050009,3212050,\"LELEA\" ],\n [3212050010,3212050,\"CEMPEH\" ],\n [3212050011,3212050,\"TEMPELKULON\" ],\n [3212060008,3212060,\"MULYASARI\" ],\n [3212060015,3212060,\"BANGODUA\" ],\n [3212060016,3212060,\"BEDUYUT\" ],\n [3212060017,3212060,\"KARANGGETAS\" ],\n [3212060018,3212060,\"TEGALGIRANG\" ],\n [3212060019,3212060,\"WANASARI\" ],\n [3212060020,3212060,\"MALANGSARI\" ],\n [3212060021,3212060,\"RANCASARI\" ],\n [3212061001,3212061,\"BODAS\" ],\n [3212061002,3212061,\"GADEL\" ],\n [3212061003,3212061,\"RANCAJAWAT\" ],\n [3212061004,3212061,\"KERTICALA\" ],\n [3212061005,3212061,\"SUKAMULYA\" ],\n [3212061006,3212061,\"KARANGKERTA\" ],\n [3212061007,3212061,\"CANGKO\" ],\n [3212061008,3212061,\"PAGEDANGAN\" ],\n [3212061009,3212061,\"SUKAPERNA\" ],\n [3212061010,3212061,\"SUKADANA\" ],\n [3212061011,3212061,\"TUKDANA\" ],\n [3212061012,3212061,\"LAJER\" ],\n [3212061013,3212061,\"MEKARSARI\" ],\n [3212070006,3212070,\"BANGKALOA ILIR\" ],\n [3212070007,3212070,\"WIDASARI\" ],\n [3212070008,3212070,\"KALENSARI\" ],\n [3212070010,3212070,\"BUNDER\" ],\n [3212070011,3212070,\"UJUNGARIS\" ],\n [3212070012,3212070,\"KONGSIJAYA\" ],\n [3212070013,3212070,\"UJUNGJAYA\" ],\n [3212070014,3212070,\"UJUNGPENDOKJAYA\" ],\n [3212070015,3212070,\"LEUWIGEDE\" ],\n [3212070016,3212070,\"KASMARAN\" ],\n [3212080007,3212080,\"TULUNGAGUNG\" ],\n [3212080008,3212080,\"JENGKOK\" ],\n [3212080009,3212080,\"TEGALWIRANGRONG\" ],\n [3212080010,3212080,\"MANGUNTARA\" ],\n [3212080011,3212080,\"JAMBE\" ],\n [3212080012,3212080,\"LEMAHAYU\" ],\n [3212080013,3212080,\"TENAJAR KIDUL\" ],\n [3212080014,3212080,\"KERTASEMAYA\" ],\n [3212080015,3212080,\"KLIWED\" ],\n [3212080016,3212080,\"TENAJAR\" ],\n [3212080017,3212080,\"LARANGANJAMBE\" ],\n [3212080018,3212080,\"TENAJAR LOR\" ],\n [3212080019,3212080,\"SUKAWERA\" ],\n [3212081001,3212081,\"CIBEBER\" ],\n [3212081002,3212081,\"BONDAN\" ],\n [3212081003,3212081,\"GUNUNGSARI\" ],\n [3212081004,3212081,\"SUKAGUMIWANG\" ],\n [3212081005,3212081,\"TERSANA\" ],\n [3212081006,3212081,\"CADANGPINGGAN\" ],\n [3212081007,3212081,\"GEDANGAN\" ],\n [3212090001,3212090,\"PURWAJAYA\" ],\n [3212090002,3212090,\"KAPRINGAN\" ],\n [3212090003,3212090,\"SINGAKERTA\" ],\n [3212090004,3212090,\"DUKUHJATI\" ],\n [3212090005,3212090,\"TEGALMULYA\" ],\n [3212090006,3212090,\"KEDUNGWUNGU\" ],\n [3212090007,3212090,\"SRENGSENG\" ],\n [3212090008,3212090,\"LUWUNGGESIK\" ],\n [3212090009,3212090,\"KALIANYAR\" ],\n [3212090010,3212090,\"KRANGKENG\" ],\n [3212090011,3212090,\"TANJAKAN\" ],\n [3212100007,3212100,\"KAPLONGANLOR\" ],\n [3212100008,3212100,\"TANJUNGPURA\" ],\n [3212100009,3212100,\"TANJUNGSARI\" ],\n [3212100010,3212100,\"PRINGGACALA\" ],\n [3212100011,3212100,\"BENDA\" ],\n [3212100012,3212100,\"SENDANG\" ],\n [3212100013,3212100,\"KARANGAMPEL KIDUL\" ],\n [3212100014,3212100,\"KARANGAMPEL\" ],\n [3212100015,3212100,\"DUKUHJERUK\" ],\n [3212100016,3212100,\"DUKUHTENGAH\" ],\n [3212100017,3212100,\"MUNDU\" ],\n [3212101001,3212101,\"KEDOKANBUNDER WETAN\" ],\n [3212101002,3212101,\"KAPLONGAN\" ],\n [3212101003,3212101,\"KEDOKAN AGUNG\" ],\n [3212101004,3212101,\"KEDOKANBUNDER\" ],\n [3212101005,3212101,\"JAYAWINANGUN\" ],\n [3212101006,3212101,\"CANGKINGAN\" ],\n [3212101007,3212101,\"JAYALAKSANA\" ],\n [3212110001,3212110,\"SEGERAN KIDUL\" ],\n [3212110002,3212110,\"SEGERAN\" ],\n [3212110003,3212110,\"JUNTIWEDEN\" ],\n [3212110004,3212110,\"JUNTIKEBON\" ],\n [3212110005,3212110,\"DADAP\" ],\n [3212110006,3212110,\"JUNTINYUAT\" ],\n [3212110007,3212110,\"JUNTIKEDOKAN\" ],\n [3212110008,3212110,\"PONDOH\" ],\n [3212110009,3212110,\"SAMBIMAYA\" ],\n [3212110010,3212110,\"TINUMPUK\" ],\n [3212110011,3212110,\"LOMBANG\" ],\n [3212110012,3212110,\"LIMBANGAN\" ],\n [3212120001,3212120,\"SLEMAN\" ],\n [3212120002,3212120,\"TAMBI\" ],\n [3212120003,3212120,\"SUDIKAMPIRAN\" ],\n [3212120004,3212120,\"TAMBI LOR\" ],\n [3212120005,3212120,\"SLEMAN LOR\" ],\n [3212120006,3212120,\"MAJASARI\" ],\n [3212120007,3212120,\"MAJASIH\" ],\n [3212120008,3212120,\"SLIYEG\" ],\n [3212120009,3212120,\"GADINGAN\" ],\n [3212120010,3212120,\"MEKARGADING\" ],\n [3212120011,3212120,\"SLIYEGLOR\" ],\n [3212120012,3212120,\"TUGU KIDUL\" ],\n [3212120013,3212120,\"TUGU\" ],\n [3212120016,3212120,\"LONGOK\" ],\n [3212130001,3212130,\"SUKALILA\" ],\n [3212130002,3212130,\"PILANGSARI\" ],\n [3212130003,3212130,\"JATIBARANG BARU\" ],\n [3212130004,3212130,\"BULAK\" ],\n [3212130005,3212130,\"BULAK LOR\" ],\n [3212130006,3212130,\"JATIBARANG\" ],\n [3212130007,3212130,\"KEBULEN\" ],\n [3212130008,3212130,\"PAWIDEAN\" ],\n [3212130009,3212130,\"JATISAWIT\" ],\n [3212130010,3212130,\"JATISAWIT LOR\" ],\n [3212130011,3212130,\"KRASAK\" ],\n [3212130012,3212130,\"KALIMATI\" ],\n [3212130013,3212130,\"MALANGSEMIRANG\" ],\n [3212130014,3212130,\"LOBENER\" ],\n [3212130015,3212130,\"LOBENER LOR\" ],\n [3212140001,3212140,\"TEGALSEMBADRA\" ],\n [3212140002,3212140,\"SUKAREJA\" ],\n [3212140003,3212140,\"SUKAURIP\" ],\n [3212140004,3212140,\"RAWADALEM\" ],\n [3212140005,3212140,\"GELARMENDALA\" ],\n [3212140006,3212140,\"TEGALURUNG\" ],\n [3212140007,3212140,\"BALONGAN\" ],\n [3212140008,3212140,\"SUDIMAMPIR\" ],\n [3212140009,3212140,\"SUDIMAMPIRLOR\" ],\n [3212140010,3212140,\"MAJAKERTA\" ],\n [3212150001,3212150,\"TELUKAGUNG\" ],\n [3212150002,3212150,\"PLUMBON\" ],\n [3212150003,3212150,\"DUKUH\" ],\n [3212150004,3212150,\"PEKANDANGAN JAYA\" ],\n [3212150005,3212150,\"SINGARAJA\" ],\n [3212150006,3212150,\"SINGAJAYA\" ],\n [3212150007,3212150,\"PEKANDANGAN\" ],\n [3212150008,3212150,\"BOJONGSARI\" ],\n [3212150009,3212150,\"KEPANDEAN\" ],\n [3212150010,3212150,\"KARANGMALANG\" ],\n [3212150011,3212150,\"KARANGANYAR\" ],\n [3212150012,3212150,\"LEMAHMEKAR\" ],\n [3212150013,3212150,\"LEMAHABANG\" ],\n [3212150014,3212150,\"MARGADADI\" ],\n [3212150015,3212150,\"PAOMAN\" ],\n [3212150016,3212150,\"KARANGSONG\" ],\n [3212150017,3212150,\"PABEANUDIK\" ],\n [3212150018,3212150,\"TAMBAK\" ],\n [3212160007,3212160,\"PANYINDANGAN KULON\" ],\n [3212160008,3212160,\"RAMBATAN WETAN\" ],\n [3212160009,3212160,\"PANYINDANGAN WETAN\" ],\n [3212160010,3212160,\"KENANGA\" ],\n [3212160011,3212160,\"TERUSAN\" ],\n [3212160012,3212160,\"DERMAYU\" ],\n [3212160013,3212160,\"SINDANG\" ],\n [3212160014,3212160,\"PENGANJANG\" ],\n [3212160015,3212160,\"BABADAN\" ],\n [3212160016,3212160,\"WANANTARA\" ],\n [3212161001,3212161,\"CANGKRING\" ],\n [3212161002,3212161,\"CANTIGI KULON\" ],\n [3212161003,3212161,\"CANTIGI WETAN\" ],\n [3212161004,3212161,\"PANYINGKIRAN LOR\" ],\n [3212161005,3212161,\"PANYINGKIRAN KIDUL\" ],\n [3212161006,3212161,\"LAMARANTARUNG\" ],\n [3212161007,3212161,\"CEMARA\" ],\n [3212162001,3212162,\"PAGIRIKAN\" ],\n [3212162002,3212162,\"PASEKAN\" ],\n [3212162003,3212162,\"BRONDONG\" ],\n [3212162004,3212162,\"PABEANILIR\" ],\n [3212162005,3212162,\"TOTORAN\" ],\n [3212162006,3212162,\"KARANGANYAR\" ],\n [3212170001,3212170,\"KIAJARAN KULON\" ],\n [3212170002,3212170,\"KIJARAN WETAN\" ],\n [3212170003,3212170,\"LANJAN\" ],\n [3212170004,3212170,\"LANGUT\" ],\n [3212170005,3212170,\"LARANGAN\" ],\n [3212170006,3212170,\"WARU\" ],\n [3212170007,3212170,\"LEGOK\" ],\n [3212170008,3212170,\"BOJONGSLAWI\" ],\n [3212170009,3212170,\"LOHBENER\" ],\n [3212170010,3212170,\"PAMAYAHAN\" ],\n [3212170011,3212170,\"SINDANGKERTA\" ],\n [3212170015,3212170,\"RAMBATAN KULON\" ],\n [3212171001,3212171,\"SUKASARI\" ],\n [3212171002,3212171,\"ARAHAN KIDUL\" ],\n [3212171003,3212171,\"ARAHAN LOR\" ],\n [3212171004,3212171,\"LINGGAJATI\" ],\n [3212171005,3212171,\"TAWANGSARI\" ],\n [3212171006,3212171,\"SUKADADI\" ],\n [3212171007,3212171,\"PRANGGONG\" ],\n [3212171008,3212171,\"CIDEMPET\" ],\n [3212180001,3212180,\"RANJENG\" ],\n [3212180002,3212180,\"KRIMUN\" ],\n [3212180003,3212180,\"PUNTANG\" ],\n [3212180004,3212180,\"PEGAGAN\" ],\n [3212180005,3212180,\"RAJAIYANG\" ],\n [3212180006,3212180,\"JANGGA\" ],\n [3212180007,3212180,\"JUMBLENG\" ],\n [3212180008,3212180,\"PANGKALAN\" ],\n [3212180010,3212180,\"LOSARANG\" ],\n [3212180011,3212180,\"MUNTUR\" ],\n [3212180012,3212180,\"SANTING\" ],\n [3212180013,3212180,\"CEMARA KULON\" ],\n [3212190001,3212190,\"CURUG\" ],\n [3212190002,3212190,\"PRANTI\" ],\n [3212190003,3212190,\"WIRAKANAN\" ],\n [3212190004,3212190,\"KARANGMULYA\" ],\n [3212190005,3212190,\"KARANGANYAR\" ],\n [3212190006,3212190,\"WIRAPANJUNAN\" ],\n [3212190007,3212190,\"PAREAN GIRANG\" ],\n [3212190008,3212190,\"BULAK\" ],\n [3212190009,3212190,\"ILIR\" ],\n [3212190010,3212190,\"SOGE\" ],\n [3212190011,3212190,\"ERETAN WETAN\" ],\n [3212190012,3212190,\"ERETAN KULON\" ],\n [3212190013,3212190,\"KERTAWINANGUN\" ],\n [3212200001,3212200,\"CIPEDANG\" ],\n [3212200002,3212200,\"SIDAMULYA\" ],\n [3212200003,3212200,\"MARGAMULYA\" ],\n [3212200004,3212200,\"KERTAJAYA\" ],\n [3212200005,3212200,\"BONGAS\" ],\n [3212200006,3212200,\"CIPAAT\" ],\n [3212200007,3212200,\"KERTAMULYA\" ],\n [3212200008,3212200,\"PLAWANGAN\" ],\n [3212210001,3212210,\"MANGUNJAYA\" ],\n [3212210002,3212210,\"BUGISTUA\" ],\n [3212210003,3212210,\"BUGIS\" ],\n [3212210004,3212210,\"SALAMDARMA\" ],\n [3212210005,3212210,\"KEDUNGWUNGU\" ],\n [3212210006,3212210,\"WANGUK\" ],\n [3212210007,3212210,\"LEMPUYANG\" ],\n [3212210008,3212210,\"KOPYAH\" ],\n [3212210009,3212210,\"ANJATAN BARU\" ],\n [3212210010,3212210,\"ANJATAN\" ],\n [3212210011,3212210,\"CILANDAK\" ],\n [3212210012,3212210,\"CILANDAK LOR\" ],\n [3212210013,3212210,\"ANJATAN UTARA\" ],\n [3212220001,3212220,\"BOGOR\" ],\n [3212220002,3212220,\"SUKRA\" ],\n [3212220003,3212220,\"UJUNGGEBANG\" ],\n [3212220004,3212220,\"TEGALTAMAN\" ],\n [3212220005,3212220,\"SUKRAWETAN\" ],\n [3212220006,3212220,\"SUMURADEM\" ],\n [3212220007,3212220,\"SUMURADEM TIMUR\" ],\n [3212220008,3212220,\"KARANGLAYUNG\" ],\n [3212221001,3212221,\"LIMPAS\" ],\n [3212221002,3212221,\"PATROL\" ],\n [3212221003,3212221,\"ARJASARI\" ],\n [3212221004,3212221,\"SUKAHAJI\" ],\n [3212221005,3212221,\"BUGEL\" ],\n [3212221006,3212221,\"PATROLLOR\" ],\n [3212221007,3212221,\"PATROL BARU\" ],\n [3212221008,3212221,\"MEKARSARI\" ],\n [3213010003,3213010,\"SUKAMANDI\" ],\n [3213010004,3213010,\"CICADAS\" ],\n [3213010005,3213010,\"SAGALAHERANG\" ],\n [3213010006,3213010,\"DAYEUHKOLOT\" ],\n [3213010011,3213010,\"LELES\" ],\n [3213010012,3213010,\"SAGALAHERANG KALER\" ],\n [3213010013,3213010,\"CURUGAGUNG\" ],\n [3213011001,3213011,\"CIPANCAR\" ],\n [3213011002,3213011,\"CIKUJANG\" ],\n [3213011003,3213011,\"CIJENGKOL\" ],\n [3213011004,3213011,\"CINTAMEKAR\" ],\n [3213011005,3213011,\"PONGGANG\" ],\n [3213011006,3213011,\"TALAGASARI\" ],\n [3213020007,3213020,\"CURUGRENDENG\" ],\n [3213020008,3213020,\"SARIREJA\" ],\n [3213020013,3213020,\"KUMPAY\" ],\n [3213020014,3213020,\"TAMBAKAN\" ],\n [3213020015,3213020,\"JALANCAGAK\" ],\n [3213020016,3213020,\"BUNIHAYU\" ],\n [3213020017,3213020,\"TAMBAKMEKAR\" ],\n [3213021001,3213021,\"CIATER\" ],\n [3213021002,3213021,\"NAGRAK\" ],\n [3213021003,3213021,\"CIBEUSI\" ],\n [3213021004,3213021,\"CIBITUNG\" ],\n [3213021005,3213021,\"SANCA\" ],\n [3213021006,3213021,\"PALASARI\" ],\n [3213021007,3213021,\"CISAAT\" ],\n [3213030001,3213030,\"CUPUNAGARA\" ],\n [3213030002,3213030,\"CIMANGGU\" ],\n [3213030003,3213030,\"GARDUSAYANG\" ],\n [3213030004,3213030,\"MAYANG\" ],\n [3213030005,3213030,\"SUKAKERTI\" ],\n [3213030008,3213030,\"DARMAGA\" ],\n [3213030009,3213030,\"CISALAK\" ],\n [3213030010,3213030,\"CIGADOG\" ],\n [3213030014,3213030,\"PAKUHAJI\" ],\n [3213031001,3213031,\"PASANGGRAHAN\" ],\n [3213031002,3213031,\"SINDANGSARI\" ],\n [3213031003,3213031,\"BOJONGLOA\" ],\n [3213031004,3213031,\"TENJOLAYA\" ],\n [3213031005,3213031,\"SUKAMELANG\" ],\n [3213031006,3213031,\"KASOMALANG WETAN\" ],\n [3213031007,3213031,\"KASOMALANG KULON\" ],\n [3213031008,3213031,\"CIMANGLID\" ],\n [3213040001,3213040,\"BUNIARA\" ],\n [3213040002,3213040,\"TANJUNGSIANG\" ],\n [3213040003,3213040,\"CIKAWUNG\" ],\n [3213040004,3213040,\"CIMEUHMAL\" ],\n [3213040005,3213040,\"SIRAP\" ],\n [3213040006,3213040,\"KAWUNGLUWUK\" ],\n [3213040008,3213040,\"CIBULUH\" ],\n [3213040009,3213040,\"SINDANGLAYA\" ],\n [3213040010,3213040,\"RANCAMANGGUNG\" ],\n [3213040011,3213040,\"GANDASOLI\" ],\n [3213050001,3213050,\"GUNUNGTUA\" ],\n [3213050002,3213050,\"CIJAMBE\" ],\n [3213050003,3213050,\"CIRANGKONG\" ],\n [3213050004,3213050,\"CIMENTENG\" ],\n [3213050005,3213050,\"CIKADU\" ],\n [3213050006,3213050,\"SUKAHURIP\" ],\n [3213050007,3213050,\"BANTARSARI\" ],\n [3213050008,3213050,\"TANJUNGWANGI\" ],\n [3213060002,3213060,\"SADAWARNA\" ],\n [3213060003,3213060,\"SUMURBARANG\" ],\n [3213060004,3213060,\"PADAASIH\" ],\n [3213060005,3213060,\"CIBOGO\" ],\n [3213060006,3213060,\"CINANGSI\" ],\n [3213060007,3213060,\"MAJASARI\" ],\n [3213060008,3213060,\"CIBALANDONGJAYA\" ],\n [3213060009,3213060,\"BELENDUNG\" ],\n [3213060010,3213060,\"CISAGA\" ],\n [3213070001,3213070,\"PARUNG\" ],\n [3213070002,3213070,\"PASIRKAREUMBI\" ],\n [3213070003,3213070,\"SOKLAT\" ],\n [3213070004,3213070,\"KARANGANYAR\" ],\n [3213070005,3213070,\"CIGADUNG\" ],\n [3213070006,3213070,\"DANGDEUR\" ],\n [3213070007,3213070,\"SUKAMELANG\" ],\n [3213070012,3213070,\"WANAREJA\" ],\n [3213080004,3213080,\"TANGGULUN TIMUR\" ],\n [3213080005,3213080,\"TANGGULUN BARAT\" ],\n [3213080006,3213080,\"MARENGMANG\" ],\n [3213080007,3213080,\"KALIJATI BARAT\" ],\n [3213080008,3213080,\"KALIJATI TIMUR\" ],\n [3213080016,3213080,\"KALIANGSANA\" ],\n [3213080017,3213080,\"BANGGALAMULYA\" ],\n [3213080018,3213080,\"JALUPANG\" ],\n [3213080019,3213080,\"CARACAS\" ],\n [3213080020,3213080,\"CIRULUK\" ],\n [3213081001,3213081,\"JAMBELAER\" ],\n [3213081002,3213081,\"MARGASARI\" ],\n [3213081003,3213081,\"CISAMPIH\" ],\n [3213081004,3213081,\"SITUSARI\" ],\n [3213081005,3213081,\"SUKASARI\" ]\n ];\n\n foreach ($subDistricts as $subDistrict) {\n $district = \\App\\District::where('code', $subDistrict[1])->first();\n \\Illuminate\\Support\\Facades\\DB::table('sub_districts')->insert(['code' => $subDistrict[0], 'sub_code' => $subDistrict[1], 'name' => $subDistrict[2], 'district_id' => $district ? $district->id : null]);\n }\n }", "public function SelectDist() {\n $this->layout = 'ajax';\n $this->loadModel('District');\n $state_id = '27';\n// $between = 'BETWEEN 01 AND 10';\n $arr = array('22', '23', '25', '20', '34', '19', '07', '09', '28');\n $dis = $this->District->find('list', array('conditions' => array('substring(District.distcd,1,2)' => $state_id, 'substring(District.distcd,3,4)' => $arr), 'fields' => array('distcd', 'distname'), 'order' => array('distname', 'distname DESC')));\n //array('substring(District.distcd,3,4) BETWEEN ? AND ?' => array('01','10'))\n// echo \"</pre>\" . print_r($dis) . \"</pre>\";\n// exit();\n $this->set('district_list', $dis);\n }", "public function run()\n {\n $subDistricts = [\n [1101010001, 1101010, \"LATIUNG\"],\n [1101010002, 1101010, \"LABUHAN BAJAU\"],\n [1101010003, 1101010, \"SUAK LAMATAN\"],\n [1101010004, 1101010, \"ANA AO\"],\n [1101010005, 1101010, \"LATALING\"],\n [1101010006, 1101010, \"PULAU BENGKALAK\"],\n [1101010007, 1101010, \"BADEGONG\"],\n [1101010008, 1101010, \"KEBUN BARU\"],\n [1101010009, 1101010, \"ULUL MAYANG\"],\n [1101010010, 1101010, \"PASIR TINGGI\"],\n [1101010011, 1101010, \"LABUHAN JAYA\"],\n [1101010012, 1101010, \"LABUHAN BAKTI\"],\n [1101010013, 1101010, \"BATU RALANG\"],\n [1101010014, 1101010, \"ALUS ALUS\"],\n [1101010015, 1101010, \"SEUNEUBOK\"],\n [1101010016, 1101010, \"BLANG SEBEL\"],\n [1101010017, 1101010, \"TRANS BARU\"],\n [1101010018, 1101010, \"TRANS MERANTI\"],\n [1101010019, 1101010, \"TRANS JERNGE\"],\n [1101020022, 1101020, \"AIR PINANG\"],\n [1101020023, 1101020, \"KUALA MAKMUR\"],\n [1101020024, 1101020, \"GANTING\"],\n [1101020025, 1101020, \"LINGGI\"],\n [1101020026, 1101020, \"LUGU\"],\n [1101020027, 1101020, \"SINABANG\"],\n [1101020028, 1101020, \"SUKA MAJU\"],\n [1101020029, 1101020, \"SUKA KARYA\"],\n [1101020030, 1101020, \"SUKA JAYA\"],\n [1101020031, 1101020, \"AIR DINGIN\"],\n [1101020032, 1101020, \"KOTA BATU\"],\n [1101020035, 1101020, \"SUAK BULUH\"],\n [1101020036, 1101020, \"UJUNG TINGGI\"],\n [1101020037, 1101020, \"PULAU SIUMAT\"],\n [1101020038, 1101020, \"SEFOYAN\"],\n [1101020039, 1101020, \"AMAITENG MULIA\"],\n [1101020040, 1101020, \"AMERIA BAHAGIA\"],\n [1101021001, 1101021, \"SITAL\"],\n [1101021002, 1101021, \"LEUBANG\"],\n [1101021003, 1101021, \"LEUBANG HULU\"],\n [1101021004, 1101021, \"AWE SEUBAL\"],\n [1101021005, 1101021, \"LANTIK\"],\n [1101021006, 1101021, \"AWE KECIL\"],\n [1101021007, 1101021, \"SALUR\"],\n [1101021008, 1101021, \"SALUR LATUN\"],\n [1101021009, 1101021, \"SALUR LASENGALU\"],\n [1101021010, 1101021, \"NANCALA\"],\n [1101021011, 1101021, \"MAUDIL\"],\n [1101021012, 1101021, \"INOR\"],\n [1101021013, 1101021, \"NAIBOS\"],\n [1101021014, 1101021, \"LAAYON\"],\n [1101021015, 1101021, \"ANGKEO\"],\n [1101021016, 1101021, \"BUNON\"],\n [1101021017, 1101021, \"SILENGAS\"],\n [1101021018, 1101021, \"PULAU TEUPAH\"],\n [1101022001, 1101022, \"KAHAT\"],\n [1101022002, 1101022, \"BUSUNG INDAH\"],\n [1101022003, 1101022, \"NANCAWA\"],\n [1101022004, 1101022, \"LABUAH\"],\n [1101022005, 1101022, \"ABAIL\"],\n [1101022006, 1101022, \"SIMPANG ABAIL\"],\n [1101022007, 1101022, \"LANTING\"],\n [1101022008, 1101022, \"LASIKIN\"],\n [1101022009, 1101022, \"MATANURUNG\"],\n [1101022010, 1101022, \"SUA SUA\"],\n [1101022011, 1101022, \"BATU BATU\"],\n [1101022012, 1101022, \"SITUBUK\"],\n [1101030001, 1101030, \"DIHIT\"],\n [1101030002, 1101030, \"LAUKE\"],\n [1101030003, 1101030, \"LAMBAYA\"],\n [1101030004, 1101030, \"LAKUBANG\"],\n [1101030005, 1101030, \"KAMPUNG AIE\"],\n [1101030006, 1101030, \"LAUREE\"],\n [1101030007, 1101030, \"LATITIK\"],\n [1101030008, 1101030, \"LAMAYANG\"],\n [1101030009, 1101030, \"WEL WEL\"],\n [1101030020, 1101030, \"SITUFA JAYA\"],\n [1101030021, 1101030, \"PUTRA JAYA\"],\n [1101030022, 1101030, \"LUAN SORIP\"],\n [1101030023, 1101030, \"SUAK BARU\"],\n [1101030024, 1101030, \"SEBBE\"],\n [1101030025, 1101030, \"KUTA BARU\"],\n [1101030026, 1101030, \"WEL LANGKOM\"],\n [1101031001, 1101031, \"KUALA BAKTI\"],\n [1101031002, 1101031, \"LUGU SEBAHAK\"],\n [1101031003, 1101031, \"GUNUNG PUTIH\"],\n [1101031004, 1101031, \"BABUSSALAM\"],\n [1101031005, 1101031, \"MUARA AMAN\"],\n [1101031006, 1101031, \"LUAN BALU\"],\n [1101031007, 1101031, \"SAMBAI\"],\n [1101031008, 1101031, \"KUALA BARU\"],\n [1101031009, 1101031, \"TANJUNG RAYA\"],\n [1101031010, 1101031, \"BULU HADIK\"],\n [1101032001, 1101032, \"BUBUHAN\"],\n [1101032002, 1101032, \"AMARABU\"],\n [1101032003, 1101032, \"KUTA INANG\"],\n [1101032004, 1101032, \"KUTA PADANG\"],\n [1101032005, 1101032, \"LATAK AYAH\"],\n [1101032006, 1101032, \"SIBULUH\"],\n [1101032007, 1101032, \"BORENGAN\"],\n [1101032008, 1101032, \"UJUNG PADANG\"],\n [1101040001, 1101040, \"UJUNG SALANG\"],\n [1101040002, 1101040, \"PADANG UNOI\"],\n [1101040003, 1101040, \"MEUNAFA\"],\n [1101040004, 1101040, \"NASREUHE\"],\n [1101040005, 1101040, \"ALONG\"],\n [1101040006, 1101040, \"PANTON LAWE\"],\n [1101040007, 1101040, \"MUTIARA\"],\n [1101040008, 1101040, \"KARYA BAKTI\"],\n [1101040009, 1101040, \"TAMON JAYA\"],\n [1101040010, 1101040, \"JAYA BARU\"],\n [1101040011, 1101040, \"TAMENG\"],\n [1101040012, 1101040, \"LALLA BAHAGIA\"],\n [1101040013, 1101040, \"SUAK MANANG\"],\n [1101040014, 1101040, \"BUNGA\"],\n [1101040015, 1101040, \"GANANG PUSAKO\"],\n [1101040016, 1101040, \"KENANGAN JAYA\"],\n [1101050007, 1101050, \"SANGGIRAN\"],\n [1101050008, 1101050, \"AMABAAN\"],\n [1101050009, 1101050, \"MITEUM\"],\n [1101050010, 1101050, \"MALASIN\"],\n [1101050011, 1101050, \"LAMAMEK\"],\n [1101050012, 1101050, \"SIGULAI\"],\n [1101050013, 1101050, \"SEMBILAN\"],\n [1101050014, 1101050, \"LAYABAUNG\"],\n [1101050015, 1101050, \"LHOK MAKMUR\"],\n [1101050016, 1101050, \"UJUNG HARAPAN\"],\n [1101050017, 1101050, \"LHOK BIKHAO\"],\n [1101050018, 1101050, \"BABUL MAKMUR\"],\n [1101050019, 1101050, \"BATU RAGI\"],\n [1101050020, 1101050, \"SINAR BAHAGIA\"],\n [1101051001, 1101051, \"LAFAKHA\"],\n [1101051002, 1101051, \"LHOK DALAM\"],\n [1101051003, 1101051, \"LUBUK BAIK\"],\n [1101051004, 1101051, \"LANGI\"],\n [1101051005, 1101051, \"SERAFON\"],\n [1101051006, 1101051, \"LHOK PAUH\"],\n [1101051007, 1101051, \"LAMEREM\"],\n [1101051008, 1101051, \"LEWAK\"],\n [1102010003, 1102010, \"PULAU BAGUK\"],\n [1102010004, 1102010, \"PULAU BALAI\"],\n [1102010005, 1102010, \"TELUK NIBUNG\"],\n [1102011001, 1102011, \"ASANTOLA\"],\n [1102011002, 1102011, \"UJUNG SIALIT\"],\n [1102011003, 1102011, \"HALOBAN\"],\n [1102011004, 1102011, \"SUKA MAKMUR\"],\n [1102020003, 1102020, \"PULO SAROK\"],\n [1102020004, 1102020, \"PASAR SINGKIL\"],\n [1102020005, 1102020, \"UJUNG\"],\n [1102020006, 1102020, \"KOTA SIMBOLING\"],\n [1102020007, 1102020, \"KILANGAN\"],\n [1102020009, 1102020, \"TELUK AMBUN\"],\n [1102020010, 1102020, \"RANTAU GEDANG\"],\n [1102020011, 1102020, \"TELUK RUMBIA\"],\n [1102020012, 1102020, \"TAKAL PASIR\"],\n [1102020013, 1102020, \"SELOK ACEH\"],\n [1102020014, 1102020, \"PEA BUMBUNG\"],\n [1102020015, 1102020, \"PEMUKA\"],\n [1102020019, 1102020, \"SUKA DAMAI\"],\n [1102020020, 1102020, \"UJUNG BAWANG\"],\n [1102020021, 1102020, \"SITI AMBIA\"],\n [1102020022, 1102020, \"SUKA MAKMUR\"],\n [1102021001, 1102021, \"GOSONG TELAGA UTARA\"],\n [1102021002, 1102021, \"GOSONG TELAGA SELATAN\"],\n [1102021003, 1102021, \"GOSONG TELAGA TIMUR\"],\n [1102021004, 1102021, \"TELAGA BAKTI\"],\n [1102021005, 1102021, \"KAMPUNG BARU\"],\n [1102021006, 1102021, \"KETAPANG INDAH\"],\n [1102021007, 1102021, \"GOSONG TELAGA BARAT\"],\n [1102022001, 1102022, \"KAYU MENANG\"],\n [1102022002, 1102022, \"KUALA BARU SUNGAI\"],\n [1102022003, 1102022, \"KUALA BARU LAUT\"],\n [1102022004, 1102022, \"SUKA JAYA\"],\n [1102030017, 1102030, \"PANGI\"],\n [1102030026, 1102030, \"TUGAN\"],\n [1102030027, 1102030, \"CIBUBUKAN\"],\n [1102030028, 1102030, \"KAIN GOLONG\"],\n [1102030029, 1102030, \"SUKAREJO\"],\n [1102030030, 1102030, \"TUH TUHAN\"],\n [1102030031, 1102030, \"LAE GECIH\"],\n [1102030032, 1102030, \"SIATAS\"],\n [1102030033, 1102030, \"KUTA KERANGAN\"],\n [1102030034, 1102030, \"LIPAT KAJANG\"],\n [1102030035, 1102030, \"TANJUNG MAS\"],\n [1102030036, 1102030, \"SERASAH\"],\n [1102030038, 1102030, \"UJUNG LIMUS\"],\n [1102030039, 1102030, \"SILATONG\"],\n [1102030040, 1102030, \"LAE RIMAN\"],\n [1102030041, 1102030, \"PERTABAS\"],\n [1102030042, 1102030, \"KUTA TINGGI\"],\n [1102030043, 1102030, \"LAE NIPE\"],\n [1102030044, 1102030, \"PAKIRAMAN\"],\n [1102030048, 1102030, \"LAE GAMBIR\"],\n [1102030049, 1102030, \"KUTA BATU\"],\n [1102030050, 1102030, \"GUHA\"],\n [1102030051, 1102030, \"LIPAT KAJANG ATAS\"],\n [1102030052, 1102030, \"SIDODADI\"],\n [1102030053, 1102030, \"PANDAN SARI\"],\n [1102031001, 1102031, \"PERTAMPAKAN\"],\n [1102031002, 1102031, \"TANAH MERAH\"],\n [1102031003, 1102031, \"SEBATANG\"],\n [1102031004, 1102031, \"SEPING BARU\"],\n [1102031005, 1102031, \"PERANGUSAN\"],\n [1102031006, 1102031, \"GUNUNG LAGAN\"],\n [1102031007, 1102031, \"TANAH BARA\"],\n [1102031008, 1102031, \"SUKA MAKMUR\"],\n [1102031009, 1102031, \"SIDOREJO\"],\n [1102031010, 1102031, \"PANDAN SARI\"],\n [1102031011, 1102031, \"BLOK 31\"],\n [1102031012, 1102031, \"BLOK 18\"],\n [1102031013, 1102031, \"SANGGABERU SILULUSAN\"],\n [1102031014, 1102031, \"BLOK 15\"],\n [1102031015, 1102031, \"TULAAN\"],\n [1102031016, 1102031, \"BLOK VI BARU\"],\n [1102031017, 1102031, \"TUNAS HARAPAN\"],\n [1102031018, 1102031, \"LAE BUTAR\"],\n [1102031019, 1102031, \"RIMO\"],\n [1102031020, 1102031, \"SIANJO ANJO MERIAH\"],\n [1102031021, 1102031, \"CINGKAM\"],\n [1102031022, 1102031, \"BUKIT HARAPAN\"],\n [1102031023, 1102031, \"PENJAHITAN\"],\n [1102031024, 1102031, \"TANJUNG BETIK\"],\n [1102031025, 1102031, \"LABUHAN KERA\"],\n [1102032001, 1102032, \"SITUBAN MAKMUR\"],\n [1102032002, 1102032, \"LAE BALNO\"],\n [1102032003, 1102032, \"SIKORAN\"],\n [1102032004, 1102032, \"NAPA GALUH\"],\n [1102032005, 1102032, \"BISKANG\"],\n [1102032006, 1102032, \"SITUBUH-TUBUH\"],\n [1102032007, 1102032, \"DANAU PINANG\"],\n [1102033001, 1102033, \"MANDUMPANG\"],\n [1102033002, 1102033, \"ALUR LINCI\"],\n [1102033003, 1102033, \"SIRIMO MUNGKUR\"],\n [1102033004, 1102033, \"KERAS\"],\n [1102033005, 1102033, \"KETANGKUHAN\"],\n [1102033006, 1102033, \"SIOMPIN\"],\n [1102033007, 1102033, \"BULU ARA\"],\n [1102033008, 1102033, \"LAE BANGUN\"],\n [1102033009, 1102033, \"BULU SEMA\"],\n [1102033010, 1102033, \"PANGKALAN SULAMPI\"],\n [1102033011, 1102033, \"SURO BARU\"],\n [1102033012, 1102033, \"LAE CIKALA\"],\n [1102042001, 1102042, \"SRI KAYU\"],\n [1102042002, 1102042, \"PEA JAMBU\"],\n [1102042003, 1102042, \"LAE PINANG\"],\n [1102042004, 1102042, \"SINGKOHOR\"],\n [1102042005, 1102042, \"MUKTI HARAPAN\"],\n [1102042006, 1102042, \"MUKTI JAYA\"],\n [1102042007, 1102042, \"LAE SIPOLA\"],\n [1102043001, 1102043, \"MUARA PEA\"],\n [1102043002, 1102043, \"SUMBER MUKTI\"],\n [1102043003, 1102043, \"LADANG BISIK\"],\n [1102043004, 1102043, \"SAMAR DUA\"],\n [1102043005, 1102043, \"BUTAR\"],\n [1102043006, 1102043, \"MUKTI LINCIR\"],\n [1102043007, 1102043, \"LAPAHAN BUAYA\"],\n [1102043008, 1102043, \"LENTONG\"],\n [1102043009, 1102043, \"DANAU BUNGARA\"],\n [1102043010, 1102043, \"SELAKAR UDANG\"],\n [1103010001, 1103010, \"KUTA PADANG\"],\n [1103010002, 1103010, \"RAKET\"],\n [1103010003, 1103010, \"GAMPONG TENGAH\"],\n [1103010004, 1103010, \"TEPIN TINGGI\"],\n [1103010005, 1103010, \"IE MEUDAMA\"],\n [1103010009, 1103010, \"UJONG TAN0H\"],\n [1103010010, 1103010, \"KEUDE TRUMON\"],\n [1103010011, 1103010, \"KUTA BARU\"],\n [1103010012, 1103010, \"SINGLENG\"],\n [1103010013, 1103010, \"PANTON BILI\"],\n [1103010027, 1103010, \"UPT II PD HARAPAN\"],\n [1103010030, 1103010, \"SEUNABOK JAYA (EX UPT V)\"],\n [1103011001, 1103011, \"TITI POBEN\"],\n [1103011002, 1103011, \"ALUR BUJOK\"],\n [1103011003, 1103011, \"SEUNEUBOK PUNTHO\"],\n [1103011008, 1103011, \"PINTO RIMBA\"],\n [1103011009, 1103011, \"KRUNG LUAS\"],\n [1103011010, 1103011, \"JAMBO DALEM\"],\n [1103011011, 1103011, \"KAPAI SEUSAK\"],\n [1103011012, 1103011, \"UPT I SNB PUSAKA\"],\n [1103012001, 1103012, \"LHOK RAYA\"],\n [1103012002, 1103012, \"IE JEUREUNEH\"],\n [1103012003, 1103012, \"NACA\"],\n [1103012004, 1103012, \"COT BAYU\"],\n [1103012005, 1103012, \"JAMBO PAPEUN\"],\n [1103012006, 1103012, \"LADANG RIMBA\"],\n [1103012007, 1103012, \"PULO PAYA\"],\n [1103012008, 1103012, \"KRUENG BATEE\"],\n [1103012009, 1103012, \"KAMPONG TEUNGOH\"],\n [1103012010, 1103012, \"GUNONG KAPHO\"],\n [1103020001, 1103020, \"UJUNG MANGKI\"],\n [1103020002, 1103020, \"KEUDE BAKONGAN\"],\n [1103020003, 1103020, \"KAMPUNG BARU\"],\n [1103020014, 1103020, \"UJUNG PADANG\"],\n [1103020015, 1103020, \"KMP DRIEN\"],\n [1103020023, 1103020, \"DAHRUL IHSAN\"],\n [1103020024, 1103020, \"PADANG BEURAHAN\"],\n [1103021002, 1103021, \"UJUNG PULO CUT\"],\n [1103021003, 1103021, \"UJUNG PULO RAYEUK\"],\n [1103021004, 1103021, \"PASI SEUBADEH\"],\n [1103021005, 1103021, \"LADANG RIMBA\"],\n [1103021006, 1103021, \"SIMPANG\"],\n [1103021007, 1103021, \"SAWAH TINGKEUM\"],\n [1103021008, 1103021, \"SEULEUKAT\"],\n [1103022001, 1103022, \"SENEUBOK ALUR BULAH\"],\n [1103022002, 1103022, \"ALURDUAMAS\"],\n [1103022003, 1103022, \"JAMBO KEUPOK\"],\n [1103022004, 1103022, \"UJUNG TANOH\"],\n [1103022005, 1103022, \"BEUTONG\"],\n [1103022006, 1103022, \"UJUNG GUNONG RAYEK\"],\n [1103022007, 1103022, \"UJUNG GUNUNG CUT\"],\n [1103022008, 1103022, \"RAMBONG\"],\n [1103022009, 1103022, \"SEUNEUBOK KEURANJI\"],\n [1103022010, 1103022, \"BUKIT GADING\"],\n [1103030001, 1103030, \"PASI LEMBANG\"],\n [1103030002, 1103030, \"UJUNG PADANG\"],\n [1103030003, 1103030, \"INDRA DAMAI\"],\n [1103030004, 1103030, \"SUAQ BAKONG\"],\n [1103030005, 1103030, \"BARAT DAYA\"],\n [1103030006, 1103030, \"SIALANG\"],\n [1103030007, 1103030, \"KAPEH\"],\n [1103030008, 1103030, \"PULO IE\"],\n [1103030009, 1103030, \"JUA\"],\n [1103030010, 1103030, \"PASI MERAPAT\"],\n [1103030011, 1103030, \"UJUNG\"],\n [1103030012, 1103030, \"LUAR\"],\n [1103030013, 1103030, \"KEDAI KANDANG\"],\n [1103030014, 1103030, \"RANTAU BINUANG\"],\n [1103030015, 1103030, \"UJUNG PASIR\"],\n [1103030016, 1103030, \"GELUMBUK\"],\n [1103030017, 1103030, \"KEDAI RUNDING\"],\n [1103031001, 1103031, \"SAPIK\"],\n [1103031002, 1103031, \"DURIAN KAWAN\"],\n [1103031003, 1103031, \"ALAI\"],\n [1103031004, 1103031, \"PAYA DAPUR\"],\n [1103031005, 1103031, \"PUCUK LEMBANG\"],\n [1103031006, 1103031, \"LAWE BULUH DIDI\"],\n [1103031007, 1103031, \"LAWE SAWAH\"],\n [1103031008, 1103031, \"PAYA LABA\"],\n [1103031009, 1103031, \"LAWE CIMANOK\"],\n [1103040001, 1103040, \"KEDAI PADANG\"],\n [1103040002, 1103040, \"PASI KUALA BAU\"],\n [1103040003, 1103040, \"SUAQ GERINGGENG\"],\n [1103040004, 1103040, \"SIMPANG LHEE\"],\n [1103040005, 1103040, \"SIMPANG EMPAT\"],\n [1103040006, 1103040, \"JAMBO MANYANG\"],\n [1103040007, 1103040, \"LIMAU PURUT\"],\n [1103040008, 1103040, \"PULO KAMBING\"],\n [1103040009, 1103040, \"KAMPUNG PAYA\"],\n [1103040010, 1103040, \"KRUENG BATU\"],\n [1103040011, 1103040, \"GUNONG PULO\"],\n [1103040012, 1103040, \"PULO IE I\"],\n [1103040013, 1103040, \"KRUENG BATEE\"],\n [1103040014, 1103040, \"PASI KUALA ASAHAN\"],\n [1103040015, 1103040, \"FAJAR HARAPAN\"],\n [1103040036, 1103040, \"KRUENG KLUET\"],\n [1103040039, 1103040, \"ALUR MAS\"],\n [1103040050, 1103040, \"KAMPUNG TINGGI\"],\n [1103040051, 1103040, \"KAMPUNG RUAK\"],\n [1103040052, 1103040, \"KOTA FAJAR\"],\n [1103040053, 1103040, \"GUNUNG PUDUNG\"],\n [1103041001, 1103041, \"UJUNG PADANG ASAHAN\"],\n [1103041002, 1103041, \"PULO IE II\"],\n [1103041003, 1103041, \"IE MIRAH\"],\n [1103041004, 1103041, \"UJUNG PADANG RASIAN\"],\n [1103041005, 1103041, \"PASI RASIAN\"],\n [1103041006, 1103041, \"TEUPIN GAJAH\"],\n [1103041007, 1103041, \"KAMPUNG BARO\"],\n [1103041008, 1103041, \"KRUENG KELEE\"],\n [1103041009, 1103041, \"LHOK SIALANG RAYEUK\"],\n [1103041010, 1103041, \"LHOK SIALANG CUT\"],\n [1103041011, 1103041, \"PAYATEUK\"],\n [1103041012, 1103041, \"SILOLO\"],\n [1103041013, 1103041, \"KAMPUNG BARU\"],\n [1103041014, 1103041, \"SI NEUBOK\"],\n [1103041015, 1103041, \"LADANG TUHA\"],\n [1103041016, 1103041, \"PANTON BILI\"],\n [1103041017, 1103041, \"LADANG TEUNGOH\"],\n [1103041018, 1103041, \"PUCUK KRUENG\"],\n [1103041019, 1103041, \"MATA IE\"],\n [1103041020, 1103041, \"UJUNG BATU\"],\n [1103041021, 1103041, \"PANTE RAJA\"],\n [1103042001, 1103042, \"JAMBO PAPAN\"],\n [1103042002, 1103042, \"KOTO INDARUNG\"],\n [1103042003, 1103042, \"SIURAI URAI\"],\n [1103042004, 1103042, \"MALAKA\"],\n [1103042005, 1103042, \"LAWE MELANG\"],\n [1103042006, 1103042, \"KOTO\"],\n [1103042007, 1103042, \"KAMPUNG SAWAH\"],\n [1103042008, 1103042, \"KAMPUNG PADANG\"],\n [1103042009, 1103042, \"PULO AIR\"],\n [1103042010, 1103042, \"MERSAK\"],\n [1103042011, 1103042, \"SIMPANG DUA\"],\n [1103042012, 1103042, \"SIMPANG TIGA\"],\n [1103042013, 1103042, \"ALUR KEJRUN\"],\n [1103050001, 1103050, \"GUNUNG KERAMBIL\"],\n [1103050002, 1103050, \"AIR BERUDANG\"],\n [1103050003, 1103050, \"LHOK KETAPANG\"],\n [1103050004, 1103050, \"HILIR\"],\n [1103050005, 1103050, \"PASAR\"],\n [1103050006, 1103050, \"PADANG\"],\n [1103050007, 1103050, \"TEPI AIR\"],\n [1103050008, 1103050, \"HULU\"],\n [1103050009, 1103050, \"JAMBO APHA\"],\n [1103050010, 1103050, \"LHOK BENGKUANG\"],\n [1103050011, 1103050, \"BATU ITAM\"],\n [1103050012, 1103050, \"PANJUPIAN\"],\n [1103050013, 1103050, \"LHOK RUKAM\"],\n [1103050014, 1103050, \"AIR PINANG\"],\n [1103050015, 1103050, \"PANTON LUAS\"],\n [1103050016, 1103050, \"LHOK BENGKUANG TIMUR\"],\n [1103060001, 1103060, \"UJUNG TANAH\"],\n [1103060002, 1103060, \"PAYONAN GADANG\"],\n [1103060003, 1103060, \"LUBUK LAYU\"],\n [1103060004, 1103060, \"SUAQ HULU\"],\n [1103060005, 1103060, \"LUAR\"],\n [1103060006, 1103060, \"UJUNG KAMPUNG\"],\n [1103060007, 1103060, \"TAMPANG\"],\n [1103060008, 1103060, \"JILATANG\"],\n [1103060009, 1103060, \"AIR SIALANG HULU\"],\n [1103060010, 1103060, \"AIR SIALANG TENGAH\"],\n [1103060011, 1103060, \"AIR SIALANG HILIR\"],\n [1103060012, 1103060, \"SUBARANG\"],\n [1103060013, 1103060, \"GUNUNG KETEK\"],\n [1103060014, 1103060, \"KOTA BARU\"],\n [1103060015, 1103060, \"MADAT\"],\n [1103060016, 1103060, \"DALAM\"],\n [1103060017, 1103060, \"TENGAH\"],\n [1103060018, 1103060, \"BALAI\"],\n [1103060019, 1103060, \"BARU\"],\n [1103060020, 1103060, \"GADANG\"],\n [1103060021, 1103060, \"LADANG KASIK PUTIH\"],\n [1103060022, 1103060, \"LADANG PANTON LUAS\"],\n [1103060023, 1103060, \"ALUR SIMERAH\"],\n [1103060024, 1103060, \"ALUR PINANG\"],\n [1103060025, 1103060, \"GUNUNG CUT\"],\n [1103060026, 1103060, \"KUTA BLANG\"],\n [1103060027, 1103060, \"BATEE TUNGGAI\"],\n [1103060028, 1103060, \"ARAFAH\"],\n [1103070001, 1103070, \"SAWANG BAU\"],\n [1103070002, 1103070, \"UJUNG PADANG\"],\n [1103070003, 1103070, \"KUTA BARO\"],\n [1103070004, 1103070, \"SIMPANG III\"],\n [1103070005, 1103070, \"BLANG GELINGGANG\"],\n [1103070006, 1103070, \"MEULIGO\"],\n [1103070007, 1103070, \"SAWANG I\"],\n [1103070008, 1103070, \"SAWANG II\"],\n [1103070009, 1103070, \"UJUNG KARANG\"],\n [1103070010, 1103070, \"LHOK PAWOH\"],\n [1103070011, 1103070, \"PANTON LUAS\"],\n [1103070012, 1103070, \"TRIENG MEUDURO TUNONG\"],\n [1103070013, 1103070, \"TRIENG MEUDURO BAROH\"],\n [1103070014, 1103070, \"SIKULAT\"],\n [1103070015, 1103070, \"MUTIARA\"],\n [1103080001, 1103080, \"ALUE MEUTUAH\"],\n [1103080002, 1103080, \"LHOK AMAN\"],\n [1103080003, 1103080, \"LADANG BARO\"],\n [1103080004, 1103080, \"LABUHAN TAROK\"],\n [1103080005, 1103080, \"TANJUNG HARAPAN\"],\n [1103080006, 1103080, \"KUTA BARO\"],\n [1103080007, 1103080, \"KEUDE MEUKEK\"],\n [1103080008, 1103080, \"ARON TUNGGAI\"],\n [1103080009, 1103080, \"BLANG BLADEH\"],\n [1103080010, 1103080, \"BLANG TEUNGOH\"],\n [1103080011, 1103080, \"IE BUBOH\"],\n [1103080012, 1103080, \"KUTA BULOH II\"],\n [1103080013, 1103080, \"KUTA BULOH I\"],\n [1103080014, 1103080, \"IE DINGEN\"],\n [1103080015, 1103080, \"DRIEN JALO\"],\n [1103080016, 1103080, \"JAMBO PAPEUN\"],\n [1103080017, 1103080, \"BUKET MEUH\"],\n [1103080018, 1103080, \"ALUE BARO\"],\n [1103080019, 1103080, \"ROT TEUNGOH\"],\n [1103080020, 1103080, \"BLANG KUALA\"],\n [1103080021, 1103080, \"LADANG TUHA\"],\n [1103080022, 1103080, \"LHOK MAMPLAM\"],\n [1103080023, 1103080, \"LABUHAN TAROK II\"],\n [1103090010, 1103090, \"PADANG BARU\"],\n [1103090011, 1103090, \"LEMBAH BARU\"],\n [1103090012, 1103090, \"TENGAH BARU\"],\n [1103090013, 1103090, \"PAWOH\"],\n [1103090014, 1103090, \"APHA\"],\n [1103090015, 1103090, \"PASAR LAMA\"],\n [1103090016, 1103090, \"PADANG BAKAU\"],\n [1103090028, 1103090, \"BAKAU HULU\"],\n [1103090029, 1103090, \"MANGGIS HARAPAN\"],\n [1103090030, 1103090, \"UJUNG BATU\"],\n [1103090031, 1103090, \"DALAM\"],\n [1103090032, 1103090, \"KOTA PALAK\"],\n [1103090033, 1103090, \"CACANG\"],\n [1103090034, 1103090, \"TENGAH PISANG\"],\n [1103090035, 1103090, \"PISANG\"],\n [1103090036, 1103090, \"HULU PISANG\"],\n [1103091001, 1103091, \"KEUMUMU HILIR\"],\n [1103091002, 1103091, \"PAYA PEULUMAT\"],\n [1103091003, 1103091, \"TENGAH PEULUMAT\"],\n [1103091004, 1103091, \"PADANG PEULUMAT\"],\n [1103091005, 1103091, \"LIMAU SARING\"],\n [1103091006, 1103091, \"AUR PEULUMAT\"],\n [1103091007, 1103091, \"KEUMUMU HULU\"],\n [1103091008, 1103091, \"BEUTONG\"],\n [1103091009, 1103091, \"PEUNALOP\"],\n [1103091010, 1103091, \"GUNUNG ROTAN\"],\n [1103091011, 1103091, \"KEUMUMU SEBERANG\"],\n [1103091012, 1103091, \"SAWANG INDAH\"],\n [1103092001, 1103092, \"PULO IE\"],\n [1103092002, 1103092, \"SUAK LOKAN\"],\n [1103092003, 1103092, \"IKU LHUNG\"],\n [1103092004, 1103092, \"PANTE GEULIMA\"],\n [1103092005, 1103092, \"BLANG BARU\"],\n [1103092006, 1103092, \"BLANG POROH\"],\n [1103092007, 1103092, \"KUTA IBOH\"],\n [1103092008, 1103092, \"TUTONG\"],\n [1103092009, 1103092, \"UJUNG PADANG\"],\n [1103092010, 1103092, \"TENGAH IBOH\"],\n [1103092011, 1103092, \"PEULOKAN\"],\n [1103092012, 1103092, \"KUTA TRIENG\"],\n [1103092013, 1103092, \"PANTON PAWOH\"],\n [1103092014, 1103092, \"BATEE MEUCANANG\"],\n [1103092015, 1103092, \"PANTON RUBEK\"],\n [1104010021, 1104010, \"MUARA BARU\"],\n [1104010022, 1104010, \"PASIR BANGUN\"],\n [1104010023, 1104010, \"NGKERAN\"],\n [1104010024, 1104010, \"LAWE KONGKIR\"],\n [1104010025, 1104010, \"KUBU\"],\n [1104010026, 1104010, \"KUTA CINGKAM II\"],\n [1104010027, 1104010, \"KUTA CINGKAM I\"],\n [1104010028, 1104010, \"LAWE SEMPILANG\"],\n [1104010029, 1104010, \"KUTA BATU II\"],\n [1104010030, 1104010, \"KUTA BATU I\"],\n [1104010031, 1104010, \"PRAPAT BATU NUNGGUL\"],\n [1104010032, 1104010, \"PULO SEPANG\"],\n [1104010034, 1104010, \"PAYA MUNJE\"],\n [1104010035, 1104010, \"DARUL AMIN\"],\n [1104010036, 1104010, \"LAWE LUBANG INDAH\"],\n [1104010037, 1104010, \"BATU HAMPARAN\"],\n [1104010038, 1104010, \"RIH MBELANG\"],\n [1104010039, 1104010, \"KUTE BATU BARU\"],\n [1104010040, 1104010, \"RUMAH KAMPUNG\"],\n [1104010041, 1104010, \"PASEKH PEKHMATE\"],\n [1104010042, 1104010, \"PASIR NUNGGUL\"],\n [1104010043, 1104010, \"LAWE KONGKIR HILIR\"],\n [1104010044, 1104010, \"PULO NDADAP\"],\n [1104010045, 1104010, \"PINTU KHIMBE\"],\n [1104010046, 1104010, \"PULO GADUNG\"],\n [1104010047, 1104010, \"CINGKAM MERANGGUN\"],\n [1104010048, 1104010, \"PASIR NUNANG\"],\n [1104010049, 1104010, \"DELENG KUKUSEN\"],\n [1104011001, 1104011, \"PENGUHAPAN\"],\n [1104011002, 1104011, \"SALIM PIPIT\"],\n [1104011003, 1104011, \"LAWE SUMUR\"],\n [1104011004, 1104011, \"UNING SIGUGUR\"],\n [1104011005, 1104011, \"KUTA LANG LANG\"],\n [1104011006, 1104011, \"LUMBAN SITIO TIO\"],\n [1104011007, 1104011, \"MERANTI\"],\n [1104011008, 1104011, \"PERDAMEAN\"],\n [1104011009, 1104011, \"MUTIARA DAMAI\"],\n [1104011010, 1104011, \"LUMBAN TUA\"],\n [1104011011, 1104011, \"DOLOK NAULI\"],\n [1104011012, 1104011, \"TUHI JONGKAT\"],\n [1104011013, 1104011, \"TITI MAS\"],\n [1104011017, 1104011, \"LAWE MALUN\"],\n [1104011018, 1104011, \"ALUR BANING\"],\n [1104011019, 1104011, \"SIGAI INDAH\"],\n [1104011020, 1104011, \"SUMUR ALAS\"],\n [1104011021, 1104011, \"TUAH MESADE\"],\n [1104011022, 1104011, \"LINGGA ALAS\"],\n [1104011023, 1104011, \"RAMBUNG TUBUNG\"],\n [1104011024, 1104011, \"SPERINDING\"],\n [1104011025, 1104011, \"TANAH SUBUR\"],\n [1104011026, 1104011, \"PINGGAN MBLANG\"],\n [1104011027, 1104011, \"UKIR DELENG\"],\n [1104011028, 1104011, \"ALAS MESIKHAT\"],\n [1104011029, 1104011, \"TITI HARAPAN\"],\n [1104011030, 1104011, \"ALUR BARU\"],\n [1104012001, 1104012, \"ALUR LANGSAT\"],\n [1104012002, 1104012, \"LAWE TUNGKAL\"],\n [1104012003, 1104012, \"RUMAH LUAR\"],\n [1104012005, 1104012, \"RAMBAH SAYANG\"],\n [1104012006, 1104012, \"JAMBUR DAMAR\"],\n [1104012007, 1104012, \"TENEMBAK ALAS\"],\n [1104012008, 1104012, \"SALIM PINIM\"],\n [1104012009, 1104012, \"RUTUNG MBELANG\"],\n [1104012010, 1104012, \"SETAMBUL JAYA\"],\n [1104012011, 1104012, \"ALUR NANGKA\"],\n [1104012012, 1104012, \"TIMANG RASA\"],\n [1104012013, 1104012, \"JAMBUR PERMATA\"],\n [1104012014, 1104012, \"KUTE MEJILE\"],\n [1104012015, 1104012, \"SALIM PINIM II\"],\n [1104020011, 1104020, \"LAWE LONING GAB\"],\n [1104020012, 1104020, \"LAWE LONING AMAN\"],\n [1104020013, 1104020, \"GABUNGAN PARSAORAN\"],\n [1104020014, 1104020, \"KEDATARAN GAB\"],\n [1104020016, 1104020, \"KUTA TENGAH\"],\n [1104020017, 1104020, \"TANAH BARU\"],\n [1104020018, 1104020, \"LAWE SIGALA TIMUR\"],\n [1104020019, 1104020, \"LAWE SIGALA BARAT\"],\n [1104020020, 1104020, \"SUKA DAMAI\"],\n [1104020021, 1104020, \"LAWE SIGALA II\"],\n [1104020022, 1104020, \"LAWE TUA GAB\"],\n [1104020023, 1104020, \"BUKIT MERDEKA\"],\n [1104020024, 1104020, \"LAWE KESUMPAT\"],\n [1104020027, 1104020, \"DARUL AMAN\"],\n [1104020035, 1104020, \"LAWE LONING SEPAKAT\"],\n [1104020036, 1104020, \"GAYA JAYA\"],\n [1104020037, 1104020, \"LAWE LONING I\"],\n [1104020038, 1104020, \"LAWE RAKAT\"],\n [1104020039, 1104020, \"SUKA MAJU\"],\n [1104020040, 1104020, \"SUKA JAYA\"],\n [1104020041, 1104020, \"LAWE SERKE\"],\n [1104020042, 1104020, \"LAWE TUA PERSATUAN\"],\n [1104020043, 1104020, \"LAWE TUA MAKMUR\"],\n [1104020044, 1104020, \"BUKIT SEPAKAT\"],\n [1104020045, 1104020, \"ENMYA BATU DUA RATUS\"],\n [1104020046, 1104020, \"SEBUNGKE\"],\n [1104020047, 1104020, \"LAWE LONING HAKHAPEN\"],\n [1104020048, 1104020, \"NDAUH NI TENGGAU\"],\n [1104020049, 1104020, \"KERTIMBANG\"],\n [1104020050, 1104020, \"LAWE SIGALA BARAT JAYA\"],\n [1104020051, 1104020, \"LAWE PEKHIDINAN\"],\n [1104020052, 1104020, \"GELAH MUSARA\"],\n [1104020053, 1104020, \"MULIE DAME\"],\n [1104020054, 1104020, \"KARYA INDAH\"],\n [1104020055, 1104020, \"KAYU MBELIN\"],\n [1104021002, 1104021, \"MUARA SITULEN\"],\n [1104021003, 1104021, \"PARDAMEAN\"],\n [1104021004, 1104021, \"SEJAHTERA\"],\n [1104021005, 1104021, \"KAMPUNG BHAKTI\"],\n [1104021006, 1104021, \"LAWE PERBUNGA\"],\n [1104021007, 1104021, \"CINTA DAMAI\"],\n [1104021008, 1104021, \"PARDOMUAN II\"],\n [1104021009, 1104021, \"LAWE DESKI SABAS\"],\n [1104021010, 1104021, \"PARDOMUAN I\"],\n [1104021011, 1104021, \"LAWE DESKI I\"],\n [1104021017, 1104021, \"MUSARA SETIA\"],\n [1104021018, 1104021, \"SEJAHTERA BARU\"],\n [1104021019, 1104021, \"TANOH ALAS\"],\n [1104021020, 1104021, \"CINTA MAKMUR\"],\n [1104021021, 1104021, \"LAWE MANTIK\"],\n [1104021022, 1104021, \"KUTE MAKMUR\"],\n [1104021023, 1104021, \"LAWE DESKY TONGAH\"],\n [1104021024, 1104021, \"LAWE TAWAKH\"],\n [1104021025, 1104021, \"SABILUSSALAM\"],\n [1104021026, 1104021, \"DESKI JAYA\"],\n [1104021027, 1104021, \"PINTU ALAS\"],\n [1104022001, 1104022, \"LAWE KINGA T TINGGI\"],\n [1104022002, 1104022, \"LAWE BERINGIN HORAS\"],\n [1104022003, 1104022, \"LAWE BERINGIN GAYO\"],\n [1104022004, 1104022, \"SUKA MAKMUR\"],\n [1104022005, 1104022, \"NGK ALUR BULUH\"],\n [1104022006, 1104022, \"SIMPANG SEMADAM\"],\n [1104022007, 1104022, \"SEMADAM AWAL\"],\n [1104022008, 1104022, \"KEBUN SERE\"],\n [1104022009, 1104022, \"SEMADAM ASAL\"],\n [1104022010, 1104022, \"LAWE KINGA GAB\"],\n [1104022011, 1104022, \"TITI PASIR\"],\n [1104022012, 1104022, \"PASAR PUNTUNG\"],\n [1104022013, 1104022, \"LAWE PETANDUK\"],\n [1104022014, 1104022, \"SEPAKAT SEGENEP\"],\n [1104022015, 1104022, \"KAMPUNG BARU\"],\n [1104022016, 1104022, \"SELAMAT INDAH\"],\n [1104022017, 1104022, \"LAWE MEJILE\"],\n [1104022018, 1104022, \"LAWE KINGA LAPTER\"],\n [1104022019, 1104022, \"LAWE PETANDUK I\"],\n [1104023001, 1104023, \"NAGA TIMBUL\"],\n [1104023002, 1104023, \"GUNUNG PAK-PAK\"],\n [1104023003, 1104023, \"BUNBUN ALAS\"],\n [1104023004, 1104023, \"TANJUNG SARI\"],\n [1104023005, 1104023, \"BINTANG ALGA MUSARA\"],\n [1104023006, 1104023, \"BUKIT BINTANG INDAH\"],\n [1104023007, 1104023, \"SUKA DAMAI\"],\n [1104023008, 1104023, \"SEPAKAT\"],\n [1104023009, 1104023, \"PUNCE NALI\"],\n [1104023010, 1104023, \"SADE ATE\"],\n [1104023011, 1104023, \"ARIH MEJILAI\"],\n [1104023012, 1104023, \"UKHAT PESELUK\"],\n [1104023013, 1104023, \"TUNAS MUDE\"],\n [1104023014, 1104023, \"GAYE SENDAH\"],\n [1104023015, 1104023, \"KUTE HAKHAPEN\"],\n [1104023016, 1104023, \"TUAH KERINE\"],\n [1104023017, 1104023, \"LAWE SEKHAKUT\"],\n [1104023018, 1104023, \"BUN BUN INDAH\"],\n [1104023019, 1104023, \"LAUT TAWAR\"],\n [1104023020, 1104023, \"KANE MENDE\"],\n [1104023021, 1104023, \"KOMPAS\"],\n [1104023022, 1104023, \"BUKIT MERIAH\"],\n [1104023023, 1104023, \"PERMATA MUSARA\"],\n [1104030016, 1104030, \"TUALANG SEMBILAR\"],\n [1104030017, 1104030, \"TERUTUNG PAYUNG HILIR\"],\n [1104030018, 1104030, \"TERUTUNG PAYUNG HULU\"],\n [1104030019, 1104030, \"LIKAT\"],\n [1104030020, 1104030, \"RIKIT\"],\n [1104030021, 1104030, \"KUNING I\"],\n [1104030022, 1104030, \"CINTA DAMAI\"],\n [1104030023, 1104030, \"KUNING II\"],\n [1104030024, 1104030, \"KUTA LANG LANG\"],\n [1104030025, 1104030, \"PEDESI\"],\n [1104030026, 1104030, \"BIAK MULI\"],\n [1104030027, 1104030, \"TERUTUNG MEGARA ASLI\"],\n [1104030028, 1104030, \"PINDING\"],\n [1104030029, 1104030, \"LAWE HIJO\"],\n [1104030034, 1104030, \"BAMBEL GABUNGAN\"],\n [1104030040, 1104030, \"PULO KEDONDONG\"],\n [1104030041, 1104030, \"PULO PERENGGE\"],\n [1104030042, 1104030, \"KUTE ANTARA\"],\n [1104030046, 1104030, \"TERUTUNG SEPERAI\"],\n [1104030047, 1104030, \"LAWE KIHING\"],\n [1104030048, 1104030, \"BAMBEL\"],\n [1104030049, 1104030, \"KUTE SERI\"],\n [1104030050, 1104030, \"KUTA BULUH\"],\n [1104030051, 1104030, \"TUALANG SEMBILAR BARU\"],\n [1104030052, 1104030, \"TERUTUNG PAYUNG GABUNGAN\"],\n [1104030053, 1104030, \"BIAK MULI BARU\"],\n [1104030054, 1104030, \"BIAK MULI PANTE RAJA\"],\n [1104030055, 1104030, \"BIAK MULI SEJAHTERA\"],\n [1104030056, 1104030, \"LAWE HIJO METUAH\"],\n [1104030057, 1104030, \"LAWE HIJO AMPERA\"],\n [1104030058, 1104030, \"LEMBAH HAJI\"],\n [1104030059, 1104030, \"KUTA LANG LANG BARU\"],\n [1104030060, 1104030, \"PANCAR IMAN\"],\n [1104031001, 1104031, \"MAHA SINGKIL\"],\n [1104031002, 1104031, \"TENEMBAK BINTANG\"],\n [1104031003, 1104031, \"ALUR BULUH\"],\n [1104031004, 1104031, \"TUALANG BARU\"],\n [1104031005, 1104031, \"KUTA LENGAT PAGAN\"],\n [1104031006, 1104031, \"KUTA LENGAT SELIAN\"],\n [1104031007, 1104031, \"KUTA LINGGA\"],\n [1104031008, 1104031, \"REMA\"],\n [1104031009, 1104031, \"LAWE DUA GAB\"],\n [1104031010, 1104031, \"KERUKUNAN\"],\n [1104031012, 1104031, \"RIKIT BUR\"],\n [1104031013, 1104031, \"AMALIAH\"],\n [1104031014, 1104031, \"GUMPANG\"],\n [1104031015, 1104031, \"PEJUANG\"],\n [1104031016, 1104031, \"SEBUDI JAYA\"],\n [1104031017, 1104031, \"BAMBEL BARU\"],\n [1104031018, 1104031, \"DARUSSALAM\"],\n [1104031019, 1104031, \"KUTE GEKHAT\"],\n [1104031020, 1104031, \"MBAK SAKO\"],\n [1104031021, 1104031, \"PAYE RAMBUNG\"],\n [1104031022, 1104031, \"DARUL IMAMI\"],\n [1104031023, 1104031, \"RIKIT BUR II\"],\n [1104031024, 1104031, \"EMPAT LIMA\"],\n [1104032001, 1104032, \"KUTA LESUNG\"],\n [1104032002, 1104032, \"BERANDANG\"],\n [1104032003, 1104032, \"LAWE SUMUR\"],\n [1104032004, 1104032, \"TERUTUNG MEGARE LAWE PASARAN\"],\n [1104032005, 1104032, \"KISAM GABUNGAN\"],\n [1104032006, 1104032, \"PENOSAN\"],\n [1104032007, 1104032, \"KISAM KUTE PASIR\"],\n [1104032008, 1104032, \"BUAH PALA\"],\n [1104032009, 1104032, \"KUTE BUNIN\"],\n [1104032010, 1104032, \"LAWE SUMUR BARU\"],\n [1104032011, 1104032, \"SETIA BARU\"],\n [1104032012, 1104032, \"LAWE PERLAK\"],\n [1104032013, 1104032, \"LAWE SUMUR SEPAKAT\"],\n [1104032014, 1104032, \"TERUTUNG MEGARA BARU\"],\n [1104032015, 1104032, \"LAWE PASARAN TENGKU MBELIN\"],\n [1104032016, 1104032, \"KISAM LESTARI\"],\n [1104032017, 1104032, \"KISAM KUTA RAMBE\"],\n [1104032018, 1104032, \"TIGER MIKO\"],\n [1104040001, 1104040, \"KUTA RIH\"],\n [1104040002, 1104040, \"KUTACANE LAMA\"],\n [1104040003, 1104040, \"PERAPAT HILIR\"],\n [1104040004, 1104040, \"PERAPAT HULU\"],\n [1104040005, 1104040, \"PULO LATONG\"],\n [1104040010, 1104040, \"KOTA KUTACANE\"],\n [1104040011, 1104040, \"MUARA LAWE BULAN\"],\n [1104040012, 1104040, \"MBARUNG\"],\n [1104040013, 1104040, \"PULONAS\"],\n [1104040021, 1104040, \"BATU BULAN I\"],\n [1104040022, 1104040, \"BATU BULAN II\"],\n [1104040023, 1104040, \"BATU BULAN ASLI\"],\n [1104040024, 1104040, \"KAMPUNG RAJA\"],\n [1104040026, 1104040, \"KAMPUNG MELAYU GABUNGAN\"],\n [1104040027, 1104040, \"TERUTUNG PEDI\"],\n [1104040029, 1104040, \"GUMPANG JAYA\"],\n [1104040030, 1104040, \"BATUMBULAN BARU\"],\n [1104040031, 1104040, \"UJUNG BARAT\"],\n [1104040032, 1104040, \"PULO PEDING\"],\n [1104040033, 1104040, \"MEDABE\"],\n [1104040034, 1104040, \"PERAPAT SEPAKAT\"],\n [1104040035, 1104040, \"PERAPAT TITI PANJANG\"],\n [1104040036, 1104040, \"PULO SANGGAR\"],\n [1104040037, 1104040, \"MBARUNG DATUK SAUDANE\"],\n [1104040038, 1104040, \"BATU BULAN SEPAKAT\"],\n [1104040039, 1104040, \"KAMPUNG MELAYU I\"],\n [1104040040, 1104040, \"ALAS MERANCAR\"],\n [1104041001, 1104041, \"PASIR PENJENGAKAN\"],\n [1104041002, 1104041, \"KUTAMBARU\"],\n [1104041003, 1104041, \"PASIR GALA\"],\n [1104041004, 1104041, \"LAWE RUTUNG\"],\n [1104041005, 1104041, \"KUTA BANTIL\"],\n [1104041006, 1104041, \"LAWE KULOK\"],\n [1104041007, 1104041, \"LAWE SAGU HULU\"],\n [1104041012, 1104041, \"TENEMBAK JUHAR\"],\n [1104041013, 1104041, \"LAWE SAGU HILIR\"],\n [1104041014, 1104041, \"KP NANGKA GAB\"],\n [1104041016, 1104041, \"TELAGA MEKAR\"],\n [1104041018, 1104041, \"KUTE BULUH BOTONG\"],\n [1104041019, 1104041, \"KUTE MBARU BENCAWAN\"],\n [1104041020, 1104041, \"PULONAS BARU\"],\n [1104041021, 1104041, \"SIMPANG EMPAT\"],\n [1104041022, 1104041, \"KANDANG BELANG MANDIRI\"],\n [1104041023, 1104041, \"MBACANG RACUN\"],\n [1104041024, 1104041, \"LAWE KINGE\"],\n [1104041025, 1104041, \"PERAPAT TIMUR\"],\n [1104041026, 1104041, \"BAHAGIA\"],\n [1104041027, 1104041, \"KUTA GALUH\"],\n [1104041028, 1104041, \"KUTE GENTING\"],\n [1104041029, 1104041, \"LAWE SAGU\"],\n [1104041030, 1104041, \"KUTE PANGGUH\"],\n [1104050002, 1104050, \"KAMPUNG BARU\"],\n [1104050003, 1104050, \"PURWODADI\"],\n [1104050004, 1104050, \"LAWE BEKUNG\"],\n [1104050005, 1104050, \"SALANG ALAS\"],\n [1104050006, 1104050, \"KUTA TINGGI\"],\n [1104050014, 1104050, \"PERANGINAN\"],\n [1104050015, 1104050, \"KUTA PASIR\"],\n [1104050022, 1104050, \"NATAM\"],\n [1104050034, 1104050, \"KUMBANG JAYA\"],\n [1104050035, 1104050, \"KUMBANG INDAH\"],\n [1104050036, 1104050, \"DELENG MEGAKHE\"],\n [1104050037, 1104050, \"LAWE BEKUNG TEMPAHAN\"],\n [1104050038, 1104050, \"BADAR INDAH\"],\n [1104050040, 1104050, \"NATAM BARU\"],\n [1104050041, 1104050, \"TANAH MERAH\"],\n [1104050042, 1104050, \"BATU MBERONG\"],\n [1104050043, 1104050, \"LAWE SEKERAH\"],\n [1104050044, 1104050, \"TANOH MEGAKHE\"],\n [1104051001, 1104051, \"GULO\"],\n [1104051002, 1104051, \"LAWE STUL\"],\n [1104051003, 1104051, \"KITE MERANGGUN\"],\n [1104051004, 1104051, \"PULO PIKU\"],\n [1104051005, 1104051, \"TERUTUNG KUTE\"],\n [1104051006, 1104051, \"KUTA UJUNG\"],\n [1104051007, 1104051, \"MAMAS\"],\n [1104051008, 1104051, \"TANJUNG LAMA\"],\n [1104051009, 1104051, \"TANJUNG MUDA\"],\n [1104051010, 1104051, \"TANJUNG AMAN\"],\n [1104051011, 1104051, \"RAMBUNG TELDAK\"],\n [1104051012, 1104051, \"SERIMUDA\"],\n [1104051013, 1104051, \"DARUL MAKMUR\"],\n [1104051014, 1104051, \"KUTE RAMBE\"],\n [1104051015, 1104051, \"UJUNG BARU\"],\n [1104051016, 1104051, \"MAMAS BARU\"],\n [1104051017, 1104051, \"RAMBUNG JAYA\"],\n [1104051018, 1104051, \"MAKMUR JAYA\"],\n [1104051019, 1104051, \"PULO GADUNG\"],\n [1104051020, 1104051, \"ISTIQOMAH\"],\n [1104051021, 1104051, \"KHOTAN JAYA\"],\n [1104051022, 1104051, \"LAWE MAMAS INDAH\"],\n [1104051023, 1104051, \"TANJUNG BARU\"],\n [1104051024, 1104051, \"SIMPANG IV TANJUNG\"],\n [1104051025, 1104051, \"TANJUNG LEUSER\"],\n [1104051026, 1104051, \"LAWE PINIS\"],\n [1104051027, 1104051, \"KUNING ABADI\"],\n [1104051028, 1104051, \"BUNTUL KENDAWI\"],\n [1104052001, 1104052, \"DELENG DAMAR\"],\n [1104052002, 1104052, \"SIMPANG III JONGAR\"],\n [1104052003, 1104052, \"PENYEBRANGAN CINGKAM\"],\n [1104052004, 1104052, \"JONGAR\"],\n [1104052005, 1104052, \"LAWE PENANGGALAN\"],\n [1104052006, 1104052, \"JAMBUR LAK LAK\"],\n [1104052007, 1104052, \"LAWE MENGKUDU\"],\n [1104052008, 1104052, \"AUNAN SEPAKAT\"],\n [1104052009, 1104052, \"KETAMBE\"],\n [1104052010, 1104052, \"RUMAH BUNDAR\"],\n [1104052011, 1104052, \"KAYU MENTANGUR\"],\n [1104052012, 1104052, \"LAWE SEMBEKAN\"],\n [1104052013, 1104052, \"LAWE GEKH GEKH\"],\n [1104052014, 1104052, \"LAWE BERINGIN\"],\n [1104052015, 1104052, \"BENER BERPAPAH\"],\n [1104052016, 1104052, \"DATUK PINDING\"],\n [1104052017, 1104052, \"PENUNGKUNEN\"],\n [1104052018, 1104052, \"JATI SARA\"],\n [1104052019, 1104052, \"LEUSER\"],\n [1104052020, 1104052, \"BUKIT BARU\"],\n [1104052021, 1104052, \"KATI MAJU\"],\n [1104052022, 1104052, \"LAWE AUNAN\"],\n [1104052023, 1104052, \"BINTANG BENER\"],\n [1104052024, 1104052, \"SUKA RIMBUN\"],\n [1104052025, 1104052, \"SIMPUR JAYA\"],\n [1104053001, 1104053, \"BUNGA MELUR\"],\n [1104053002, 1104053, \"TERUTUNG MBELANG\"],\n [1104053003, 1104053, \"TENEMBAK LANG LANG\"],\n [1104053004, 1104053, \"PENAMPAAN\"],\n [1104053005, 1104053, \"TUALANG LAMA\"],\n [1104053006, 1104053, \"LAWE PANGKAT\"],\n [1104053007, 1104053, \"GUSUNG BATU\"],\n [1104053008, 1104053, \"KAYA PANGUR\"],\n [1104053009, 1104053, \"RANTO DIUR\"],\n [1104053010, 1104053, \"LEMBAH ALAS\"],\n [1104053011, 1104053, \"KAMPUNG SEPAKAT\"],\n [1104053012, 1104053, \"SALANG SIGOTOM\"],\n [1104053013, 1104053, \"SALANG BARU\"],\n [1104053014, 1104053, \"SALANG MUARA\"],\n [1104053015, 1104053, \"MUHAJIRIN\"],\n [1104053016, 1104053, \"BERINGIN NARU\"],\n [1104053017, 1104053, \"TANOH KHUKAHEN\"],\n [1104053018, 1104053, \"TADING NIULIHI\"],\n [1104053019, 1104053, \"PESELUK PESIMBE\"],\n [1104053020, 1104053, \"KATI JEROH\"],\n [1104053021, 1104053, \"KANE LOT\"],\n [1104053022, 1104053, \"LAWE HAKHUM\"],\n [1105080001, 1105080, \"LOKOP\"],\n [1105080002, 1105080, \"TUALANG\"],\n [1105080003, 1105080, \"GAMPONG TERUJAK\"],\n [1105080004, 1105080, \"LELES\"],\n [1105080013, 1105080, \"UJUNG KARANG\"],\n [1105080014, 1105080, \"UJUNG TARING\"],\n [1105080015, 1105080, \"SUNTI\"],\n [1105080016, 1105080, \"SEKUALAN\"],\n [1105080017, 1105080, \"LOOT\"],\n [1105080018, 1105080, \"NALON\"],\n [1105080019, 1105080, \"JERING\"],\n [1105080020, 1105080, \"RAMPAH\"],\n [1105080021, 1105080, \"MESIR\"],\n [1105080022, 1105080, \"SELEMAK\"],\n [1105080023, 1105080, \"SEMBUANG\"],\n [1105080028, 1105080, \"BUNIN\"],\n [1105080029, 1105080, \"ALUR DRIEN\"],\n [1105080030, 1105080, \"UPT I KUALA PANGOH\"],\n [1105081001, 1105081, \"HTI RANTO NARO\"],\n [1105081002, 1105081, \"TAMPUR BOOR\"],\n [1105081003, 1105081, \"TAMPOR PALOH\"],\n [1105081004, 1105081, \"MELIDI\"],\n [1105081005, 1105081, \"BATU SUMBANG\"],\n [1105081006, 1105081, \"SIMPANG JERNIH\"],\n [1105081007, 1105081, \"PANTE KERA\"],\n [1105081008, 1105081, \"RANTAU PANJANG\"],\n [1105082001, 1105082, \"ARUL PINANG\"],\n [1105082002, 1105082, \"PEUNARON BARU\"],\n [1105082003, 1105082, \"PEUNARON LAMA\"],\n [1105082004, 1105082, \"BUKIT TIGA\"],\n [1105082006, 1105082, \"SRI MULYA\"],\n [1105090001, 1105090, \"BUKET TIGA\"],\n [1105090002, 1105090, \"BENTENG\"],\n [1105090003, 1105090, \"AFD.II BUKET\"],\n [1105090004, 1105090, \"ALUE DRIEN\"],\n [1105090005, 1105090, \"ALUE CANANG\"],\n [1105090006, 1105090, \"JAMBUR LABU\"],\n [1105090007, 1105090, \"ALUE BULOH\"],\n [1105090008, 1105090, \"PEUTOW\"],\n [1105090009, 1105090, \"KEMUNING HULU\"],\n [1105090010, 1105090, \"ALUE TEH\"],\n [1105090011, 1105090, \"PAYA TAMPAH\"],\n [1105090012, 1105090, \"PAYA BILI II\"],\n [1105090013, 1105090, \"PAYA RAMBONG\"],\n [1105090014, 1105090, \"ALUE GADENG SATU\"],\n [1105090015, 1105090, \"BIREM RAYEUK\"],\n [1105090016, 1105090, \"KEUDE BIREM\"],\n [1105090017, 1105090, \"ARAMIYAH\"],\n [1105090018, 1105090, \"PAYA BILI I\"],\n [1105090019, 1105090, \"MERBAU II\"],\n [1105090020, 1105090, \"PAYA PEULAWI\"],\n [1105090021, 1105090, \"BAYEUN\"],\n [1105090022, 1105090, \"ALUE GADENG\"],\n [1105090023, 1105090, \"PERK. ALUE GADENG DUA\"],\n [1105090024, 1105090, \"BUKIT SEULEMAK\"],\n [1105090025, 1105090, \"BLANG TUALANG\"],\n [1105090026, 1105090, \"ALUE SENTANG\"],\n [1105090027, 1105090, \"ALUE NYAMUK\"],\n [1105100001, 1105100, \"ALUE TUWI\"],\n [1105100002, 1105100, \"ALUE KAOL\"],\n [1105100003, 1105100, \"ALUE PUNTI\"],\n [1105100004, 1105100, \"DAMAR SIPUT\"],\n [1105100005, 1105100, \"SIMPANG PEUT\"],\n [1105100006, 1105100, \"SARAH KAYEE\"],\n [1105100007, 1105100, \"ALUR SEULEUMAK\"],\n [1105100008, 1105100, \"SIMPANG ANEUH\"],\n [1105100009, 1105100, \"GAMPONG BAYEUN\"],\n [1105100010, 1105100, \"SARAH TEUBEE\"],\n [1105100011, 1105100, \"RANTAU PANJANG\"],\n [1105100012, 1105100, \"ALUE RAYA\"],\n [1105100013, 1105100, \"SEUNEUBOK DALAM\"],\n [1105100014, 1105100, \"ALUE KUMBA\"],\n [1105101001, 1105101, \"GAJAH MENTAH\"],\n [1105101002, 1105101, \"SEUNEUBOK ACEH\"],\n [1105101003, 1105101, \"SEUNEUBOK PASE\"],\n [1105101004, 1105101, \"SUNGAI SIMPANG\"],\n [1105101005, 1105101, \"PAYA KEUTAPANG\"],\n [1105101006, 1105101, \"ALUE ITAM\"],\n [1105101007, 1105101, \"BUKIT DRIEN\"],\n [1105101008, 1105101, \"BUKIT SELAMAT\"],\n [1105101009, 1105101, \"KUALA PAREK\"],\n [1105101010, 1105101, \"LABUHAN KEUDE\"],\n [1105101011, 1105101, \"KRUENG LINGKA\"],\n [1105101012, 1105101, \"GEULUMPANG PAYONG\"],\n [1105101013, 1105101, \"ALUE RANGAN\"],\n [1105110008, 1105110, \"CEK MBON\"],\n [1105110018, 1105110, \"SEUNEUBOK PIDIE\"],\n [1105110019, 1105110, \"KUALA LEUGE\"],\n [1105110020, 1105110, \"SEUNEUBOK PEUSANGAN\"],\n [1105110023, 1105110, \"LEUBUK PEMPENG\"],\n [1105110024, 1105110, \"DAMA TUTONG\"],\n [1105110025, 1105110, \"BALE BUYA\"],\n [1105110026, 1105110, \"MATANG GLEUM\"],\n [1105110027, 1105110, \"ALUE NIBONG\"],\n [1105110028, 1105110, \"BUKET PALA\"],\n [1105110029, 1105110, \"BLANG SIMPO\"],\n [1105110030, 1105110, \"PAYA KALUT\"],\n [1105110031, 1105110, \"ALUE DUA PAYA GAJAH\"],\n [1105110032, 1105110, \"SEUNEUBOK ACEH\"],\n [1105110033, 1105110, \"UTEUN DAMA\"],\n [1105110034, 1105110, \"PAYA MEULIGO\"],\n [1105110035, 1105110, \"PUNTI\"],\n [1105110036, 1105110, \"KEUMUNENG\"],\n [1105110037, 1105110, \"BANGKA RIMUENG\"],\n [1105110038, 1105110, \"LEUGE\"],\n [1105110039, 1105110, \"LHOK DALAM\"],\n [1105110040, 1105110, \"BANDRONG\"],\n [1105110042, 1105110, \"TANAH RATA\"],\n [1105110043, 1105110, \"TUALANG\"],\n [1105110044, 1105110, \"KEUDE PEUREULAK\"],\n [1105110045, 1105110, \"COT MUDA ITAM\"],\n [1105110046, 1105110, \"PASIR PUTIH\"],\n [1105110047, 1105110, \"BLANG BETRA\"],\n [1105110055, 1105110, \"BEUSA MEURANOU\"],\n [1105110056, 1105110, \"SEUMATANG MUDA ITAM\"],\n [1105110057, 1105110, \"BLANG BALOK\"],\n [1105110058, 1105110, \"KUALA BUGAK\"],\n [1105110059, 1105110, \"PAYA LIPAH\"],\n [1105110060, 1105110, \"COT GEULUMPANG\"],\n [1105110062, 1105110, \"COT KEH\"],\n [1105110063, 1105110, \"BLANG BATEE\"],\n [1105110064, 1105110, \"ALUE RAMBONG\"],\n [1105110065, 1105110, \"MATANG PEULAWI\"],\n [1105111001, 1105111, \"BUKIT MEURIAM\"],\n [1105111002, 1105111, \"SEUNEUBOK PUNTI\"],\n [1105111003, 1105111, \"ALUE BUGENG\"],\n [1105111004, 1105111, \"SEUNEUBOK TEUNGOH\"],\n [1105111005, 1105111, \"SEUNEUBOK TEUPIN\"],\n [1105111006, 1105111, \"ALUE BU/ALUE LHOK\"],\n [1105111007, 1105111, \"ALUE GUREP\"],\n [1105111008, 1105111, \"ALUE BU ALUE NIREH\"],\n [1105111009, 1105111, \"SEUNEUBOK PAYA\"],\n [1105111010, 1105111, \"SEUNEUBOK RAWANG\"],\n [1105111011, 1105111, \"ALUE THO\"],\n [1105111012, 1105111, \"SEUNEUBOK LAPANG\"],\n [1105111013, 1105111, \"SEUNEUBOK JALAN\"],\n [1105111014, 1105111, \"GEULANGGANG MERAK\"],\n [1105111015, 1105111, \"SEUMATANG KEUDE\"],\n [1105111016, 1105111, \"BABAH KRUENG\"],\n [1105111017, 1105111, \"KRUT LINTANG\"],\n [1105111018, 1105111, \"JEUNGKI\"],\n [1105111019, 1105111, \"SEUNEUBOK DALAM\"],\n [1105111020, 1105111, \"TUALANG PATENG\"],\n [1105112001, 1105112, \"KABU\"],\n [1105112002, 1105112, \"BEURINGIN\"],\n [1105112003, 1105112, \"TEUMPEUN\"],\n [1105112004, 1105112, \"KEBUN TEUMPEUN\"],\n [1105112005, 1105112, \"PAYA SEUNGAT\"],\n [1105112006, 1105112, \"TANJUNG TUALANG\"],\n [1105112007, 1105112, \"BEUSA SEBERANG\"],\n [1105112008, 1105112, \"PAYA GAJAH\"],\n [1105112009, 1105112, \"MON GEUDONG\"],\n [1105112010, 1105112, \"ALUE BU TUHA\"],\n [1105112011, 1105112, \"ALUE BU JALAN\"],\n [1105112012, 1105112, \"PAYA BIEK\"],\n [1105112013, 1105112, \"BEUSA BAROH\"],\n [1105112014, 1105112, \"ALUE BU TUNONG\"],\n [1105112015, 1105112, \"ALUE BU JALAN BAROH\"],\n [1105120001, 1105120, \"BEURANDANG\"],\n [1105120002, 1105120, \"ALUE GEUNTENG\"],\n [1105120003, 1105120, \"KLIET\"],\n [1105120004, 1105120, \"GAMPONG TAMPAK\"],\n [1105120005, 1105120, \"PAYA PALAS\"],\n [1105120006, 1105120, \"ALUE BATEE\"],\n [1105120007, 1105120, \"BHOM LAMA\"],\n [1105120008, 1105120, \"PASIR PUTIH\"],\n [1105120009, 1105120, \"ALUE DUA\"],\n [1105120010, 1105120, \"BUKET PALA BSP\"],\n [1105120011, 1105120, \"PUNTI PAYONG\"],\n [1105120012, 1105120, \"SEUMALY\"],\n [1105120013, 1105120, \"KP. PERTAMINA\"],\n [1105120014, 1105120, \"BLANG BAROM\"],\n [1105120015, 1105120, \"PULO BLANG\"],\n [1105120016, 1105120, \"SNB JOHAN\"],\n [1105120017, 1105120, \"PAYA UNOU\"],\n [1105120018, 1105120, \"SNB BARO\"],\n [1105120019, 1105120, \"SNB DALAM\"],\n [1105120020, 1105120, \"SEULEMAK MUDA\"],\n [1105120021, 1105120, \"MATA IE\"],\n [1105120022, 1105120, \"ALUE UDEP\"],\n [1105120023, 1105120, \"SEUMANAH JAYA\"],\n [1105130042, 1105130, \"DAMA PULO\"],\n [1105130043, 1105130, \"GUREB BLANG\"],\n [1105130044, 1105130, \"SEUNEUBOK TUTONG\"],\n [1105130045, 1105130, \"SAM PAI MAH\"],\n [1105130046, 1105130, \"SEUNEUBOK TUHA\"],\n [1105130047, 1105130, \"BUKET LANGA\"],\n [1105130048, 1105130, \"BUKET JUARA\"],\n [1105130049, 1105130, \"BUKET PALA\"],\n [1105130050, 1105130, \"MEUNASAH PUUK\"],\n [1105130051, 1105130, \"KEUDE BLANG\"],\n [1105130078, 1105130, \"BANTAYAN TIMUR\"],\n [1105130079, 1105130, \"GAMPONG ACEH\"],\n [1105130080, 1105130, \"KEUDE ACEH\"],\n [1105130081, 1105130, \"KUTA BLANG\"],\n [1105130083, 1105130, \"SEUNEUBOK BACEE\"],\n [1105130084, 1105130, \"TITI BARO\"],\n [1105130103, 1105130, \"SEUNEUBOK TEUNGOH (PR)\"],\n [1105130104, 1105130, \"SEUNEUBOK RAMBONG\"],\n [1105130105, 1105130, \"TANOH ANOU\"],\n [1105130106, 1105130, \"KAMPUNG TANJONG\"],\n [1105130107, 1105130, \"KUALA PD PUNTONG\"],\n [1105130108, 1105130, \"KAMPUNG JAWA\"],\n [1105130109, 1105130, \"BLANG GEULUMPANG\"],\n [1105130111, 1105130, \"GAMPONG JALAN\"],\n [1105130112, 1105130, \"BUKET MEULINTEUNG\"],\n [1105130113, 1105130, \"BUKET JOK\"],\n [1105130114, 1105130, \"TEUPIN BATEE\"],\n [1105130115, 1105130, \"ALUE DUA MUKA S\"],\n [1105130116, 1105130, \"TANJONG KAPAI\"],\n [1105130117, 1105130, \"GAMPONG BARO\"],\n [1105130118, 1105130, \"KUALA IDI\"],\n [1105130119, 1105130, \"KEUTAPANG MAMEH\"],\n [1105130120, 1105130, \"ULEE BLANG\"],\n [1105130121, 1105130, \"ALUE DUA MUKA 0\"],\n [1105130122, 1105130, \"KUTA LAWAH\"],\n [1105131001, 1105131, \"ASAN RAMPAK\"],\n [1105131002, 1105131, \"BUKET KUTA\"],\n [1105131003, 1105131, \"BLANG KUTA\"],\n [1105131004, 1105131, \"ALUE BATEE\"],\n [1105131005, 1105131, \"PAYA BILI I\"],\n [1105131006, 1105131, \"BLANG BUKET\"],\n [1105131007, 1105131, \"KUTA BARO\"],\n [1105131008, 1105131, \"SEUNEUBOK TEUNGOH\"],\n [1105131009, 1105131, \"SEUNEUBOK PUNTEUT\"],\n [1105131010, 1105131, \"SAMA DUA\"],\n [1105131011, 1105131, \"KAMPUNG KEUDE\"],\n [1105131012, 1105131, \"MEUNASAH KRUENG\"],\n [1105131013, 1105131, \"PAYA BILI DUA\"],\n [1105131014, 1105131, \"PAYA DUA\"],\n [1105131015, 1105131, \"KAMPUNG KUALA\"],\n [1105131016, 1105131, \"ALUE IE ITAM\"],\n [1105131017, 1105131, \"MATANG RAYEUK\"],\n [1105132001, 1105132, \"SEUNEUBOK BAYU\"],\n [1105132002, 1105132, \"JAMBO REUHAT\"],\n [1105132003, 1105132, \"BLANG RAMBONG\"],\n [1105132004, 1105132, \"ULEE JALAN\"],\n [1105132005, 1105132, \"SEUNEUBOK KANDANG\"],\n [1105132006, 1105132, \"SEUNEUBOK BENTENG\"],\n [1105132007, 1105132, \"SEUNEUBOK PANGOU\"],\n [1105132008, 1105132, \"URAM JALAN\"],\n [1105132009, 1105132, \"JALAN DUA\"],\n [1105132010, 1105132, \"PANTON RAYEUK T\"],\n [1105132011, 1105132, \"PANTON RAYEUK A\"],\n [1105132012, 1105132, \"PANTON RAYEUK B\"],\n [1105132013, 1105132, \"PANTON RAYEUK M\"],\n [1105132014, 1105132, \"BUKET DRIEN\"],\n [1105132015, 1105132, \"PAYA LAMAN\"],\n [1105132016, 1105132, \"SEUNEUBOK SIMPANG\"],\n [1105133001, 1105133, \"ALUE LHOK\"],\n [1105133002, 1105133, \"PADANG KASAH\"],\n [1105133003, 1105133, \"SEUNEUBOK BUYA\"],\n [1105133004, 1105133, \"PAYA AWE\"],\n [1105133005, 1105133, \"PAYA GABOH\"],\n [1105133006, 1105133, \"SEUNEUBOK DRIEN\"],\n [1105133007, 1105133, \"KEUDE KEUMUNENG\"],\n [1105133008, 1105133, \"GAMPONG KEUMUNING\"],\n [1105133009, 1105133, \"SEUNEUBOK MEURUDU\"],\n [1105133010, 1105133, \"SEUNEUBOK PUNTI\"],\n [1105133011, 1105133, \"SEUNEUBOK DALAM\"],\n [1105133012, 1105133, \"SEUNEUBOK JALAN\"],\n [1105133013, 1105133, \"BUKET TEUKUH\"],\n [1105133014, 1105133, \"KEUMUNING LHOK\"],\n [1105133015, 1105133, \"BUKET RUMIYA\"],\n [1105133016, 1105133, \"ALUE KUMBANG M\"],\n [1105133017, 1105133, \"ALUE KUMBANG A\"],\n [1105133018, 1105133, \"SEUNEUBOK BARO\"],\n [1105133019, 1105133, \"BUKET PUUK\"],\n [1105133020, 1105133, \"SEUNEUBOK BULOH\"],\n [1105133021, 1105133, \"BLANG MINJEI\"],\n [1105133022, 1105133, \"BLANG SEGUCI\"],\n [1105133023, 1105133, \"BANTAYAN BARAT\"],\n [1105133024, 1105133, \"SEUNEUBOK TEUPIN PANAH\"],\n [1105133025, 1105133, \"TEUPIN PANAH\"],\n [1105134001, 1105134, \"SEUNEUBOK ACEH BARO\"],\n [1105134002, 1105134, \"LHOK LEUMAK\"],\n [1105134003, 1105134, \"SEUNEUBOK TEUNGOH (KD II)\"],\n [1105134004, 1105134, \"MEUNASAH ARON\"],\n [1105134005, 1105134, \"LHOK DALAM\"],\n [1105134006, 1105134, \"LHOK MEUREU\"],\n [1105134007, 1105134, \"PT. MEUREUBO\"],\n [1105134008, 1105134, \"KHOK PANJOU\"],\n [1105134009, 1105134, \"ALUE JANGAT\"],\n [1105134010, 1105134, \"MEDANG ARA\"],\n [1105134011, 1105134, \"SEUNEUBOK KULAM\"],\n [1105134012, 1105134, \"GUNONG PUTOH\"],\n [1105134013, 1105134, \"SEUNEUBOK LAPANG\"],\n [1105134014, 1105134, \"KEUDE DUA\"],\n [1105134015, 1105134, \"BUKET PEULAWI\"],\n [1105134016, 1105134, \"PULO BLANG\"],\n [1105135001, 1105135, \"KETAPANG DUA\"],\n [1105135002, 1105135, \"MATANG RAYEUK (SMK)\"],\n [1105135003, 1105135, \"MENUNASAH JEUMPA\"],\n [1105135004, 1105135, \"LHOK ASAHAN\"],\n [1105135005, 1105135, \"TUALANG DALAM\"],\n [1105135006, 1105135, \"SEUNEUBOK KUYUN\"],\n [1105135007, 1105135, \"ULEE GLE\"],\n [1105135008, 1105135, \"SEUNEUBOK BARAT\"],\n [1105135009, 1105135, \"SEUNEUBOK TEUNGOH (SMK)\"],\n [1105135010, 1105135, \"SEUNEUBOK TIMUR\"],\n [1105135011, 1105135, \"MATANG BUNGONG\"],\n [1105135012, 1105135, \"MATANG RAYEUK (PR)\"],\n [1105135013, 1105135, \"SEUNEUBOK DALAM (SMK)\"],\n [1105140001, 1105140, \"SEUNEUBOK SIMPANG\"],\n [1105140002, 1105140, \"ALUR LHOK\"],\n [1105140003, 1105140, \"ALUR MERBO\"],\n [1105140004, 1105140, \"MEUNASAH KEUTAPANG\"],\n [1105140005, 1105140, \"ALUE DALAM\"],\n [1105140006, 1105140, \"DAMA POLO II\"],\n [1105140007, 1105140, \"ALUR LUDIN II\"],\n [1105140008, 1105140, \"JUNGKA GAJAH\"],\n [1105140009, 1105140, \"BUKET RUMIYA\"],\n [1105140010, 1105140, \"BUKET RAYA\"],\n [1105140011, 1105140, \"GASEH SAYANG\"],\n [1105140012, 1105140, \"SEUNEUBOK BULOH\"],\n [1105140013, 1105140, \"KAPAI BARO\"],\n [1105140014, 1105140, \"KEMUNING I\"],\n [1105140015, 1105140, \"SEUNEUBOK TUHA I\"],\n [1105140016, 1105140, \"ALUE GADENG\"],\n [1105140017, 1105140, \"TRIENG GADENG\"],\n [1105140018, 1105140, \"BUKET KULAM\"],\n [1105140019, 1105140, \"SEUNEUBOK TEUNGOH\"],\n [1105140020, 1105140, \"DAMA PULO I\"],\n [1105140021, 1105140, \"KAMPUNG BEUNOT\"],\n [1105140022, 1105140, \"TEUPIN DRUM\"],\n [1105140023, 1105140, \"KUALA IDI CUT\"],\n [1105140024, 1105140, \"KAMPUNG BARO\"],\n [1105140025, 1105140, \"ALUR LUDIN I\"],\n [1105140026, 1105140, \"LHOK GEULUMPANG\"],\n [1105140027, 1105140, \"BLANG BUKET\"],\n [1105140028, 1105140, \"SEUNEUBOK TUHA II\"],\n [1105140029, 1105140, \"KEMUNING II\"],\n [1105140030, 1105140, \"BUKET TUALANG\"],\n [1105140031, 1105140, \"BAGOK PANAH IV\"],\n [1105140032, 1105140, \"BAGOK PANAH III\"],\n [1105140033, 1105140, \"KEMUNING V\"],\n [1105140034, 1105140, \"KEMUNING III\"],\n [1105140035, 1105140, \"KEMUNING IV\"],\n [1105140036, 1105140, \"GRONG-GRONG\"],\n [1105140037, 1105140, \"KAMPUNG KEUDE\"],\n [1105140038, 1105140, \"KEUDE IDI CUT\"],\n [1105140039, 1105140, \"SEUNEUBOK BAROH\"],\n [1105140040, 1105140, \"MEUNASAH BLANG\"],\n [1105140041, 1105140, \"SEUNEUBOK ACEH\"],\n [1105140042, 1105140, \"MATANG GEUTOU\"],\n [1105140043, 1105140, \"MATANG PINEUNG\"],\n [1105140044, 1105140, \"BAGOK PANAH I\"],\n [1105140045, 1105140, \"BAGOK PANAH II\"],\n [1105150001, 1105150, \"ALUE SIWAH SERDANG\"],\n [1105150002, 1105150, \"GAMPONG LHEE\"],\n [1105150003, 1105150, \"BEURANDANG\"],\n [1105150005, 1105150, \"SEUNEUBOK RAMBONG\"],\n [1105150006, 1105150, \"GAMPUNG JALAN\"],\n [1105150008, 1105150, \"BUKET MEURAK\"],\n [1105150009, 1105150, \"SEUNEUBOK DALAM\"],\n [1105150010, 1105150, \"KAMPUNG MESJID\"],\n [1105150011, 1105150, \"PAYA ENJEE\"],\n [1105150012, 1105150, \"SEULEUMAK MUDA\"],\n [1105150013, 1105150, \"COT ASAN\"],\n [1105150014, 1105150, \"BUKET PANYANG\"],\n [1105150023, 1105150, \"BUKET PANJOU\"],\n [1105150024, 1105150, \"MATANG PANYANG\"],\n [1105150025, 1105150, \"MEUNASAH HAGU\"],\n [1105150026, 1105150, \"MATANG KUNYET\"],\n [1105150027, 1105150, \"MATANG NEUHEUN\"],\n [1105150028, 1105150, \"TEUPIN PUKAT\"],\n [1105150029, 1105150, \"PULO-U\"],\n [1105150030, 1105150, \"MATANG SEULEUMAK\"],\n [1105150031, 1105150, \"BANTAYAN\"],\n [1105150032, 1105150, \"BLANG PANJOU\"],\n [1105150034, 1105150, \"SEUMATANG ARON\"],\n [1105150035, 1105150, \"MEUDANG ARA\"],\n [1105150036, 1105150, \"MEUNASAH TEUNGOH\"],\n [1105150037, 1105150, \"KAMPUNG KEUDE BAGOK\"],\n [1105150038, 1105150, \"KEUDE BAGOK\"],\n [1105150039, 1105150, \"KUALA BAGOK\"],\n [1105150040, 1105150, \"ASAN TANJUNG\"],\n [1105150041, 1105150, \"BAROH BUGENG\"],\n [1105150042, 1105150, \"PEULAWI\"],\n [1105151001, 1105151, \"TUNONG BUGENG\"],\n [1105151002, 1105151, \"GAMPONG CEMPEUDAK\"],\n [1105151003, 1105151, \"BUKET TUFAH\"],\n [1105151004, 1105151, \"TUNONG ULEE GAJAH\"],\n [1105151005, 1105151, \"KEUDONDONG\"],\n [1105151006, 1105151, \"SEUNEUBOK PANTON\"],\n [1105151007, 1105151, \"BUKET TEUMPEN\"],\n [1105151008, 1105151, \"KEUDE BLANG\"],\n [1105151009, 1105151, \"PAYA KREUB\"],\n [1105151010, 1105151, \"TUNONG PAYA KREUB\"],\n [1105151011, 1105151, \"ALUE SIWAH DUA\"],\n [1105160006, 1105160, \"KEUMUNENG\"],\n [1105160007, 1105160, \"LADANG BARO\"],\n [1105160008, 1105160, \"SEUNEUBOK BARO\"],\n [1105160009, 1105160, \"SEUNEUBOK RAMBONG\"],\n [1105160010, 1105160, \"TEUPIN RAYA\"],\n [1105160011, 1105160, \"BUKET PANYANG\"],\n [1105160012, 1105160, \"BLANG KEUMUHANG\"],\n [1105160013, 1105160, \"BUKIT MAKMUR\"],\n [1105160014, 1105160, \"BUKET DINDENG\"],\n [1105160015, 1105160, \"LHOK RAMBONG\"],\n [1105160016, 1105160, \"BLANG MIDEUN\"],\n [1105160017, 1105160, \"BLANG JAMBEE\"],\n [1105160018, 1105160, \"PAYA BAKONG\"],\n [1105160019, 1105160, \"BUKET SERAJA\"],\n [1105160020, 1105160, \"BLANG PAOH SATU\"],\n [1105160021, 1105160, \"ULEE ATEUNG\"],\n [1105160022, 1105160, \"MANE RAMPAK\"],\n [1105160023, 1105160, \"UJONG TUNONG\"],\n [1105160024, 1105160, \"PAYA PASI\"],\n [1105160025, 1105160, \"BLANG GLEUM\"],\n [1105160026, 1105160, \"ALUE CEK DOY\"],\n [1105160027, 1105160, \"TUMPOK TEUNGOH\"],\n [1105160028, 1105160, \"MATANG\"],\n [1105160029, 1105160, \"JULOK TUNONG\"],\n [1105160030, 1105160, \"BLANG PAOH DUA\"],\n [1105160031, 1105160, \"KEUDE KUTA BINJAI\"],\n [1105160032, 1105160, \"ULEE TANOH\"],\n [1105160033, 1105160, \"KUALA GEULUMPANG\"],\n [1105160034, 1105160, \"BLANG UYOK\"],\n [1105160035, 1105160, \"ULEE BLANG\"],\n [1105160036, 1105160, \"NALEUNG\"],\n [1105160037, 1105160, \"LABOHAN\"],\n [1105160038, 1105160, \"GAMPONG BARO\"],\n [1105160039, 1105160, \"SEUMATANG\"],\n [1105160040, 1105160, \"TANJONG TOK BLANG\"],\n [1105160041, 1105160, \"SIMPANG LHEE\"],\n [1105160042, 1105160, \"LHOK SEUNTANG\"],\n [1105161001, 1105161, \"ALUE IE ITAM\"],\n [1105161002, 1105161, \"SEUNEUBOK BAYU\"],\n [1105161003, 1105161, \"BLANG NISAM\"],\n [1105161004, 1105161, \"BANDAR BARO\"],\n [1105161005, 1105161, \"ALUE PATONG\"],\n [1105161006, 1105161, \"SEUNEUBOK CINA\"],\n [1105161007, 1105161, \"PELITA SAGUP JAYA\"],\n [1105161008, 1105161, \"PERK JULOK RAYEUK UTARA\"],\n [1105161009, 1105161, \"PERK JULOK RAYEUK SELATAN\"],\n [1105161010, 1105161, \"JAMBO BALEE\"],\n [1105161011, 1105161, \"ALUE IE MIRAH\"],\n [1105161012, 1105161, \"JAMBO LUBOK\"],\n [1105161013, 1105161, \"SUKA MAKMUR\"],\n [1105170001, 1105170, \"BLANG SEUNONG\"],\n [1105170002, 1105170, \"PANTE LABU\"],\n [1105170003, 1105170, \"PANTE RAMBONG\"],\n [1105170004, 1105170, \"ALUE IE MIRAH\"],\n [1105170005, 1105170, \"SEUNEUBOK TUHA\"],\n [1105170006, 1105170, \"SEUNEUBOK SABOH\"],\n [1105170007, 1105170, \"BUKET KARENG\"],\n [1105170008, 1105170, \"BUKET BATA\"],\n [1105170009, 1105170, \"GRONG GRONG\"],\n [1105170010, 1105170, \"MEUNASAH TUNONG\"],\n [1105170011, 1105170, \"MATANG PEUREULAK\"],\n [1105170012, 1105170, \"MEUNASAH LEUBOK\"],\n [1105170013, 1105170, \"MEUNASAH TEUNGOH\"],\n [1105170014, 1105170, \"KEUDE BARO\"],\n [1105170015, 1105170, \"PANTE PANAH\"],\n [1105170016, 1105170, \"MATANG PUDENG\"],\n [1105170017, 1105170, \"GAMPONG PUTOH DUA\"],\n [1105170018, 1105170, \"MATANG KRUET\"],\n [1105170019, 1105170, \"PAYA DEUMAM SATU\"],\n [1105170020, 1105170, \"PAYA DEUMAM LHEE\"],\n [1105170021, 1105170, \"PAYA DEUMAM DUA\"],\n [1105170022, 1105170, \"PUTOH SATU\"],\n [1105170023, 1105170, \"SUKA DAMAI\"],\n [1105170024, 1105170, \"SAH RAJA\"],\n [1105170025, 1105170, \"SIJUDO\"],\n [1105180003, 1105180, \"MATANG WENG\"],\n [1105180005, 1105180, \"ALUE MULIENG\"],\n [1105180009, 1105180, \"PUCOK ALUE BARAT\"],\n [1105180010, 1105180, \"PUCOK ALUE SATU\"],\n [1105180011, 1105180, \"MATANG KUMBANG\"],\n [1105180012, 1105180, \"TITI BAROEH\"],\n [1105180013, 1105180, \"ARA KUNDO\"],\n [1105180014, 1105180, \"ALUE BULOH DUA\"],\n [1105180015, 1105180, \"MATANG RAYEUK\"],\n [1105180016, 1105180, \"TEUPIN BREUH\"],\n [1105180017, 1105180, \"BLANG ME\"],\n [1105180018, 1105180, \"PUCOK ALUE DUA\"],\n [1105180019, 1105180, \"PEULALU\"],\n [1105180023, 1105180, \"ALUE BULOH SATU\"],\n [1105180024, 1105180, \"KUALA SIMPANG ULIM\"],\n [1105180025, 1105180, \"KAMPONG BARO\"],\n [1105180026, 1105180, \"NICAH AWE\"],\n [1105180027, 1105180, \"BANTAYAN\"],\n [1105180028, 1105180, \"KEUDE TUHA\"],\n [1105180030, 1105180, \"GAMPONG BLANG\"],\n [1105180031, 1105180, \"LAMPUH RAYEUK\"],\n [1105180033, 1105180, \"TEUPIN MAMPLAM\"],\n [1105180034, 1105180, \"MATANG SEUPENG\"],\n [1105181001, 1105181, \"PAYA DEUMAM PEUT\"],\n [1105181002, 1105181, \"PAYA NADEN\"],\n [1105181003, 1105181, \"TANJUNG ARA\"],\n [1105181004, 1105181, \"TANJUNG MINJEI\"],\n [1105181005, 1105181, \"SEUNEUBOK PIDIE\"],\n [1105181006, 1105181, \"RAMBONG LOP\"],\n [1105181007, 1105181, \"MATANG JROK\"],\n [1105181008, 1105181, \"MATANG NIBONG\"],\n [1105181009, 1105181, \"MADAT\"],\n [1105181010, 1105181, \"ABEUK GEULANTEU\"],\n [1105181011, 1105181, \"MATANG KEUPULA SATU\"],\n [1105181012, 1105181, \"ULEE ATEUNG\"],\n [1105181013, 1105181, \"BLANG ANDAM\"],\n [1105181014, 1105181, \"BINTAH\"],\n [1105181015, 1105181, \"BLANG AWE\"],\n [1105181016, 1105181, \"PANTE MEUREUBO\"],\n [1105181017, 1105181, \"LUENG SATU\"],\n [1105181018, 1105181, \"MATANG KEUPULA LHEE\"],\n [1105181019, 1105181, \"MATANG KEUPULA DUA\"],\n [1105181020, 1105181, \"BLANG UBIT\"],\n [1105181021, 1105181, \"LUENG PEUT\"],\n [1105181022, 1105181, \"LUENG DUA\"],\n [1105181023, 1105181, \"MATANG GURU\"],\n [1105181024, 1105181, \"PANTE BAYAM\"],\n [1105181025, 1105181, \"MEUNASAH TINGKEUM\"],\n [1105181026, 1105181, \"MEUNASAH ASAN\"],\n [1106010007, 1106010, \"LUMUT\"],\n [1106010008, 1106010, \"DELUNG SEKINEL\"],\n [1106010009, 1106010, \"JAMAT\"],\n [1106010010, 1106010, \"LINGE\"],\n [1106010011, 1106010, \"OWAQ\"],\n [1106010012, 1106010, \"PENARUN\"],\n [1106010013, 1106010, \"UMANG\"],\n [1106010014, 1106010, \"SIMPANG TIGA UNING\"],\n [1106010015, 1106010, \"PANTAN NANGKA\"],\n [1106010016, 1106010, \"MUNGKUR\"],\n [1106010017, 1106010, \"GEWAT\"],\n [1106010018, 1106010, \"KEMERLENG\"],\n [1106010019, 1106010, \"KUTE RAYANG\"],\n [1106010020, 1106010, \"KUTE KERAMIL\"],\n [1106010021, 1106010, \"KUTE RIYEM\"],\n [1106010022, 1106010, \"KUTE BARU\"],\n [1106010023, 1106010, \"KUTE ROBEL\"],\n [1106010024, 1106010, \"GELAMPANG GADING\"],\n [1106010030, 1106010, \"GEMBOYAH\"],\n [1106010031, 1106010, \"DISPOT LINGE\"],\n [1106010036, 1106010, \"ISE-ISE\"],\n [1106010037, 1106010, \"KUTE REJE\"],\n [1106010038, 1106010, \"REJE PAYUNG\"],\n [1106010039, 1106010, \"ARUL ITEM\"],\n [1106010040, 1106010, \"ANTARA\"],\n [1106010041, 1106010, \"PANTAN REDUK\"],\n [1106011001, 1106011, \"ATU LINTANG\"],\n [1106011002, 1106011, \"MERAH MEGE\"],\n [1106011003, 1106011, \"TANOH ABU\"],\n [1106011004, 1106011, \"MERAH MUYANG\"],\n [1106011005, 1106011, \"MERAH PUPUK\"],\n [1106011006, 1106011, \"BINTANG KEKELIP\"],\n [1106011007, 1106011, \"MERAH JERNANG\"],\n [1106011008, 1106011, \"KEPALA AKAL\"],\n [1106011009, 1106011, \"GAYO MURNI\"],\n [1106011010, 1106011, \"PANTAN DAMAR\"],\n [1106011011, 1106011, \"DAMAR MULYO\"],\n [1106012001, 1106012, \"GEGARANG\"],\n [1106012002, 1106012, \"BERAWANG DEWAL\"],\n [1106012003, 1106012, \"JAGONG\"],\n [1106012004, 1106012, \"MERAH SAID\"],\n [1106012005, 1106012, \"JEGET AYU\"],\n [1106012006, 1106012, \"PAYA TUNGEL\"],\n [1106012007, 1106012, \"TELEGE SARI\"],\n [1106012008, 1106012, \"PAYA DEDEP\"],\n [1106012009, 1106012, \"BUKIT KEMUNING\"],\n [1106012010, 1106012, \"BUKIT SARI\"],\n [1106020001, 1106020, \"BAMIL NOSAR\"],\n [1106020002, 1106020, \"MUDE NOSAR\"],\n [1106020003, 1106020, \"BALE NOSAR\"],\n [1106020004, 1106020, \"MENGAYA\"],\n [1106020005, 1106020, \"BEWANG\"],\n [1106020006, 1106020, \"LINUNG BULEN I\"],\n [1106020007, 1106020, \"LINUNG BULEN II\"],\n [1106020008, 1106020, \"DEDAMAR\"],\n [1106020009, 1106020, \"SERULE\"],\n [1106020010, 1106020, \"KUALA II\"],\n [1106020011, 1106020, \"KUALA I\"],\n [1106020012, 1106020, \"KALA SEGI\"],\n [1106020013, 1106020, \"KELITU\"],\n [1106020014, 1106020, \"KEJURUN SYIAH UTAMA\"],\n [1106020015, 1106020, \"WIHLAH SETIE\"],\n [1106020016, 1106020, \"ATU PAYUNG\"],\n [1106020017, 1106020, \"WAKIL JALIL\"],\n [1106020018, 1106020, \"GENUREN\"],\n [1106020019, 1106020, \"KALA BINTANG\"],\n [1106020020, 1106020, \"JAMUR KONYEL\"],\n [1106020021, 1106020, \"MERODOT\"],\n [1106020022, 1106020, \"GEGARANG\"],\n [1106020023, 1106020, \"SINTEP\"],\n [1106020024, 1106020, \"GELEPULO\"],\n [1106031001, 1106031, \"ASIR ASIR\"],\n [1106031002, 1106031, \"ASIR ASIR ASIA\"],\n [1106031003, 1106031, \"BUJANG\"],\n [1106031004, 1106031, \"HAKIM BALE BUJANG\"],\n [1106031005, 1106031, \"KENAWAT\"],\n [1106031006, 1106031, \"PEDEMUN ONE ONE\"],\n [1106031007, 1106031, \"TOWEREN TOA\"],\n [1106031008, 1106031, \"TOWEREN ANTARA\"],\n [1106031009, 1106031, \"TOWEREN UKEN\"],\n [1106031010, 1106031, \"GUNUNG SUKU\"],\n [1106031011, 1106031, \"RAWE\"],\n [1106031012, 1106031, \"TAKENGON TIMUR\"],\n [1106031013, 1106031, \"BALE ATU\"],\n [1106031014, 1106031, \"TAKENGON BARAT\"],\n [1106031015, 1106031, \"KUTENI REJE\"],\n [1106031016, 1106031, \"MERAH MERSA\"],\n [1106031017, 1106031, \"ONE-ONE\"],\n [1106031018, 1106031, \"TOWEREN MUSARA\"],\n [1106032001, 1106032, \"GUNUNG BUKIT\"],\n [1106032002, 1106032, \"LOT KALA\"],\n [1106032003, 1106032, \"MENDALE\"],\n [1106032004, 1106032, \"JONGOK MELUEM\"],\n [1106032005, 1106032, \"PAYA REJE TAMI DELEM\"],\n [1106032006, 1106032, \"PINANGAN\"],\n [1106032007, 1106032, \"PAYA TUMPI\"],\n [1106032008, 1106032, \"BUKIT SAMA\"],\n [1106032009, 1106032, \"KELUPAK MATA\"],\n [1106032010, 1106032, \"GUNUNG BALOHEN\"],\n [1106032011, 1106032, \"BUKIT\"],\n [1106032013, 1106032, \"KALA LENGKIO\"],\n [1106032014, 1106032, \"JONGOK BATHIN\"],\n [1106032015, 1106032, \"BUKIT EWIH TAMI DELEM\"],\n [1106032016, 1106032, \"GUNUNG BAHGIE\"],\n [1106032017, 1106032, \"TIMANGAN GADING\"],\n [1106032018, 1106032, \"PAYA TUMPI I\"],\n [1106032019, 1106032, \"PAYA TUMPI BARU\"],\n [1106032030, 1106032, \"KUTE LOT\"],\n [1106032031, 1106032, \"TELEGE ATU\"],\n [1106040001, 1106040, \"WIH ILANG\"],\n [1106040002, 1106040, \"WIH LAH\"],\n [1106040003, 1106040, \"PEDEKOK\"],\n [1106040004, 1106040, \"URING\"],\n [1106040005, 1106040, \"IERELOP\"],\n [1106040006, 1106040, \"TERANG ULEN\"],\n [1106040007, 1106040, \"GELE LUNGI\"],\n [1106040008, 1106040, \"KEDELAH\"],\n [1106040009, 1106040, \"WIH NAREH\"],\n [1106040010, 1106040, \"KUNG\"],\n [1106040011, 1106040, \"SIMPANG KELAPING\"],\n [1106040012, 1106040, \"KUTE LINTANG\"],\n [1106040013, 1106040, \"KAYU KUL\"],\n [1106040019, 1106040, \"UNING\"],\n [1106040022, 1106040, \"ARUL BADAK\"],\n [1106040023, 1106040, \"BERAWANG BARO\"],\n [1106040024, 1106040, \"LELUMU\"],\n [1106040025, 1106040, \"TEBUK\"],\n [1106040026, 1106040, \"PAYA JEGET\"],\n [1106040027, 1106040, \"UJUNG GELE\"],\n [1106040028, 1106040, \"PEPALANG\"],\n [1106040029, 1106040, \"PEGASING\"],\n [1106040032, 1106040, \"WIH TERJUN\"],\n [1106040033, 1106040, \"PANTAN MUSARA\"],\n [1106040034, 1106040, \"PANANGEN MATA\"],\n [1106040035, 1106040, \"LINUNG AYU\"],\n [1106040036, 1106040, \"KALA PEGASING\"],\n [1106040038, 1106040, \"BELANG BEBANGKA\"],\n [1106040039, 1106040, \"JURUSEN\"],\n [1106040041, 1106040, \"JEJEM\"],\n [1106040042, 1106040, \"SUKA DAMAI\"],\n [1106041001, 1106041, \"ATANG JUNGKET\"],\n [1106041002, 1106041, \"LENGA\"],\n [1106041003, 1106041, \"PUCUK DEKU\"],\n [1106041004, 1106041, \"ARUL LATONG\"],\n [1106041005, 1106041, \"TEBES LUES\"],\n [1106041006, 1106041, \"BIES BARU\"],\n [1106041007, 1106041, \"BIES PENENTANAN\"],\n [1106041008, 1106041, \"SP UNING NIKEN\"],\n [1106041009, 1106041, \"BIES MULIE\"],\n [1106041010, 1106041, \"SIMPANG LUKUP BADAK\"],\n [1106041011, 1106041, \"UNING PEGANTUNGEN\"],\n [1106041012, 1106041, \"KARANG BAYUR\"],\n [1106050001, 1106050, \"BLANG GELE\"],\n [1106050002, 1106050, \"TANSARIL\"],\n [1106050003, 1106050, \"BLANG KOLAK II\"],\n [1106050004, 1106050, \"BLANG KOLAK I\"],\n [1106050005, 1106050, \"KEMILI\"],\n [1106050006, 1106050, \"SIMPANG EMPAT\"],\n [1106050007, 1106050, \"BEBESEN\"],\n [1106050008, 1106050, \"MONGAL\"],\n [1106050009, 1106050, \"DALING\"],\n [1106050010, 1106050, \"TENSAREN\"],\n [1106050011, 1106050, \"LELABU\"],\n [1106050012, 1106050, \"UMANG\"],\n [1106050019, 1106050, \"ATU TULU\"],\n [1106050020, 1106050, \"GELE LAH\"],\n [1106050021, 1106050, \"ATU GAJAH REJE GURU\"],\n [1106050022, 1106050, \"PENDERE SARIL\"],\n [1106050023, 1106050, \"SADONG JURU MUDI\"],\n [1106050024, 1106050, \"KERAMAT MUPAKAT\"],\n [1106050025, 1106050, \"NUNANG ANTARA\"],\n [1106050026, 1106050, \"KEBET\"],\n [1106050027, 1106050, \"EMPUS TALU\"],\n [1106050028, 1106050, \"LEMAH BURBANA\"],\n [1106050029, 1106050, \"BAHGIE\"],\n [1106050030, 1106050, \"BUR BIAH\"],\n [1106050031, 1106050, \"ULU NUIH\"],\n [1106050032, 1106050, \"MAH BENGI\"],\n [1106050033, 1106050, \"CALO BLANG GELE\"],\n [1106050034, 1106050, \"KALA KEMILI\"],\n [1106051001, 1106051, \"TAPAK MOGE\"],\n [1106051002, 1106051, \"KUTE PANANG\"],\n [1106051003, 1106051, \"PANTAN SILE\"],\n [1106051004, 1106051, \"RATAWALI\"],\n [1106051005, 1106051, \"TIMANG RASA\"],\n [1106051006, 1106051, \"TAWAR MIKO\"],\n [1106051007, 1106051, \"TAWARDI\"],\n [1106051008, 1106051, \"WIH NONGKAL\"],\n [1106051009, 1106051, \"DEDINGIN\"],\n [1106051010, 1106051, \"SEGENE BALIK\"],\n [1106051011, 1106051, \"BUTER BALIK\"],\n [1106051012, 1106051, \"BALIK\"],\n [1106051013, 1106051, \"ATU GOGOP\"],\n [1106051014, 1106051, \"LUKUP SABUN\"],\n [1106051015, 1106051, \"LUKUP SABUN TENGAH\"],\n [1106051016, 1106051, \"LUKUP SABUN TIMUR\"],\n [1106051017, 1106051, \"LUKUP SABUN BARAT\"],\n [1106051018, 1106051, \"BUKIT RATA\"],\n [1106051019, 1106051, \"KALA NONGKAL\"],\n [1106051020, 1106051, \"EMPU BALIK\"],\n [1106051021, 1106051, \"BLANG BALIK\"],\n [1106051022, 1106051, \"WIH NONGKAL TOA\"],\n [1106051023, 1106051, \"TAPAK MOGE TIMUR\"],\n [1106051024, 1106051, \"PANTAN JERIK\"],\n [1106060009, 1106060, \"RUTIH\"],\n [1106060011, 1106060, \"GENTING GERBANG\"],\n [1106060012, 1106060, \"PEPAYUNGEN ANGKUP\"],\n [1106060013, 1106060, \"REMESEN\"],\n [1106060014, 1106060, \"BURNI BIUS\"],\n [1106060015, 1106060, \"WIHNI BAKONG\"],\n [1106060016, 1106060, \"WIH PORAK\"],\n [1106060017, 1106060, \"ARULGELE\"],\n [1106060018, 1106060, \"GUNUNG SINGIT\"],\n [1106060019, 1106060, \"SEMELIT MUTIARA\"],\n [1106060020, 1106060, \"ARUL KUMER\"],\n [1106060021, 1106060, \"WIHNI DURIN\"],\n [1106060049, 1106060, \"PAYA BEKE\"],\n [1106060051, 1106060, \"JERATA\"],\n [1106060052, 1106060, \"TERANG ENGON\"],\n [1106060053, 1106060, \"SIMPANG KEMILI\"],\n [1106060054, 1106060, \"BURNI BIUS BARU\"],\n [1106060055, 1106060, \"REBEGEDUNG\"],\n [1106060056, 1106060, \"SANEHEN\"],\n [1106060057, 1106060, \"WIH PESAM\"],\n [1106060058, 1106060, \"PAYA PELU\"],\n [1106060059, 1106060, \"ARUL PUTIH\"],\n [1106060060, 1106060, \"ARUL RELEM\"],\n [1106060061, 1106060, \"TENEBUK KP. BARU\"],\n [1106060062, 1106060, \"REREMAL\"],\n [1106060065, 1106060, \"MULIE JADI\"],\n [1106060066, 1106060, \"BIUS UTAMA\"],\n [1106060067, 1106060, \"WIH SAGI INDAH\"],\n [1106060068, 1106060, \"MEKAR INDAH\"],\n [1106060069, 1106060, \"WIH BERSIH\"],\n [1106060070, 1106060, \"ARUL KUMER TIMUR\"],\n [1106060071, 1106060, \"ARUL KUMER BARAT\"],\n [1106060072, 1106060, \"ARUL KUMER SELATAN\"],\n [1106061001, 1106061, \"PANTAN PENYO\"],\n [1106061002, 1106061, \"BAH\"],\n [1106061003, 1106061, \"CANG DURI\"],\n [1106061004, 1106061, \"JALUK\"],\n [1106061005, 1106061, \"GELUMPANG PAYUNG\"],\n [1106061006, 1106061, \"BLANG MANCUNG\"],\n [1106061007, 1106061, \"KUTE GELIME\"],\n [1106061008, 1106061, \"KALAKETOL\"],\n [1106061009, 1106061, \"SEREMPAH\"],\n [1106061010, 1106061, \"BURLAH\"],\n [1106061011, 1106061, \"REJEWALI\"],\n [1106061012, 1106061, \"PONDOK BALIK\"],\n [1106061013, 1106061, \"BUTER\"],\n [1106061014, 1106061, \"KEKUYANG\"],\n [1106061015, 1106061, \"BINTANG PEPARA\"],\n [1106061016, 1106061, \"KARANG AMPAR\"],\n [1106061017, 1106061, \"PANTAN REDUK\"],\n [1106061018, 1106061, \"JERATA\"],\n [1106061019, 1106061, \"SIMPANG JULI\"],\n [1106061020, 1106061, \"JALAN TENGAH\"],\n [1106061021, 1106061, \"BLANG MANCUNG BAWAH\"],\n [1106061022, 1106061, \"GENTING BULEN\"],\n [1106061023, 1106061, \"SELON\"],\n [1106061024, 1106061, \"BUGE ARA\"],\n [1106061025, 1106061, \"BERGANG\"],\n [1106062001, 1106062, \"PAYA KOLAK\"],\n [1106062002, 1106062, \"ARUL GADING\"],\n [1106062003, 1106062, \"TANOH DEPET\"],\n [1106062004, 1106062, \"KUYUN UKEN\"],\n [1106062005, 1106062, \"KUYUN TOA\"],\n [1106062006, 1106062, \"UNING BERAWANG RAMUNG\"],\n [1106062007, 1106062, \"CIBRO\"],\n [1106062008, 1106062, \"BERAWANG GADING\"],\n [1106062009, 1106062, \"MELALA\"],\n [1106062010, 1106062, \"BLANG KEKUMUR\"],\n [1106062011, 1106062, \"MAKMUR\"],\n [1106062012, 1106062, \"CELALA\"],\n [1106062013, 1106062, \"RAMUNG ARA\"],\n [1106062014, 1106062, \"SEPAKAT\"],\n [1106062015, 1106062, \"KUYUN\"],\n [1106062016, 1106062, \"BLANG DELEM\"],\n [1106062017, 1106062, \"DEPET INDAH\"],\n [1106063001, 1106063, \"MERANDEH PAYA\"],\n [1106063002, 1106063, \"TANJUNG\"],\n [1106063003, 1106063, \"RUSIP\"],\n [1106063004, 1106063, \"PAYA TAMPU\"],\n [1106063005, 1106063, \"KUALA RAWA\"],\n [1106063006, 1106063, \"PANTAN TENGAH\"],\n [1106063007, 1106063, \"PILAR\"],\n [1106063008, 1106063, \"ARUL PERTIK\"],\n [1106063009, 1106063, \"ATU SINGKIH\"],\n [1106063010, 1106063, \"PANTAN BENER\"],\n [1106063011, 1106063, \"KERAWANG\"],\n [1106063012, 1106063, \"PILAR JAYA\"],\n [1106063013, 1106063, \"TIRMI ARA\"],\n [1106063014, 1106063, \"MEKAR MAJU\"],\n [1106063015, 1106063, \"PILAR WIH KIRI\"],\n [1106063016, 1106063, \"LAUT JAYA\"],\n [1107050001, 1107050, \"SUWAK INDRAPURI\"],\n [1107050002, 1107050, \"PASAR ACEH\"],\n [1107050003, 1107050, \"PADANG SEURAHET\"],\n [1107050004, 1107050, \"PANGGONG\"],\n [1107050005, 1107050, \"KAMPUNG BELAKANG\"],\n [1107050006, 1107050, \"KAMPUNG PASIR\"],\n [1107050007, 1107050, \"UJUNG KALAK\"],\n [1107050008, 1107050, \"UJONG BAROH\"],\n [1107050009, 1107050, \"RUNDENG\"],\n [1107050010, 1107050, \"KUTA PADANG\"],\n [1107050011, 1107050, \"DRIEN RAMPAK\"],\n [1107050012, 1107050, \"KAMPUNG DARAT\"],\n [1107050013, 1107050, \"GAMPA\"],\n [1107050014, 1107050, \"SEUNEUBOK\"],\n [1107050015, 1107050, \"SUAK RIBEE\"],\n [1107050016, 1107050, \"SUAK RAYA\"],\n [1107050017, 1107050, \"SUAK NIE\"],\n [1107050018, 1107050, \"LAPANG\"],\n [1107050019, 1107050, \"LEUHAN\"],\n [1107050020, 1107050, \"BLANG BERANDANG\"],\n [1107050021, 1107050, \"SUAK SIGADENG\"],\n [1107060007, 1107060, \"SUAK SEUMASEH\"],\n [1107060008, 1107060, \"SUAK GEUDUBANG\"],\n [1107060009, 1107060, \"SUAK PANTE BREUH\"],\n [1107060010, 1107060, \"SUAK SEUKEE\"],\n [1107060011, 1107060, \"SUAK PANDAN\"],\n [1107060012, 1107060, \"LHOK BUBON\"],\n [1107060013, 1107060, \"GAMPONG COT\"],\n [1107060014, 1107060, \"GAMPONG TEUNGOH\"],\n [1107060015, 1107060, \"KUALA BUBON\"],\n [1107060016, 1107060, \"SUAK TIMAH\"],\n [1107060017, 1107060, \"COT DARAT\"],\n [1107060018, 1107060, \"PUCOK LUENG\"],\n [1107060019, 1107060, \"ALUE RAYA\"],\n [1107060020, 1107060, \"COT PLUH\"],\n [1107060021, 1107060, \"COT MESJID\"],\n [1107060022, 1107060, \"COT SEULAMAT\"],\n [1107060023, 1107060, \"COT SEUMEURENG\"],\n [1107060024, 1107060, \"PAYA LUMPAT\"],\n [1107060025, 1107060, \"UJONG NGA\"],\n [1107060026, 1107060, \"GAMPONG LADANG\"],\n [1107060027, 1107060, \"COT LAMPISE\"],\n [1107060028, 1107060, \"PINEM\"],\n [1107060029, 1107060, \"RANGKILEH\"],\n [1107060030, 1107060, \"COT AMUN\"],\n [1107060031, 1107060, \"REUSAK\"],\n [1107060032, 1107060, \"DEUAH\"],\n [1107060033, 1107060, \"MESJID BARO\"],\n [1107060034, 1107060, \"LEUKEUN\"],\n [1107060035, 1107060, \"LUBOK\"],\n [1107060036, 1107060, \"KRUENG TINGGAI\"],\n [1107060037, 1107060, \"PANGE\"],\n [1107060038, 1107060, \"KEUREUSENG\"],\n [1107061001, 1107061, \"RAMBONG\"],\n [1107061002, 1107061, \"BEURAWANG\"],\n [1107061003, 1107061, \"KUTA PADANG\"],\n [1107061004, 1107061, \"LAYUNG\"],\n [1107061005, 1107061, \"ALUE BAKONG\"],\n [1107061006, 1107061, \"ALUE LHOK\"],\n [1107061007, 1107061, \"GUNONG PANAH\"],\n [1107061008, 1107061, \"SEUMULENG\"],\n [1107061009, 1107061, \"KUALA PLING\"],\n [1107061010, 1107061, \"ULEE BLANG\"],\n [1107061011, 1107061, \"SEUNEUBOK TRAP\"],\n [1107061012, 1107061, \"LICEH\"],\n [1107061013, 1107061, \"COT KEUMUNENG\"],\n [1107061014, 1107061, \"SUAK PANGKAT\"],\n [1107061015, 1107061, \"PEULANTEU SP\"],\n [1107061016, 1107061, \"COT LADA\"],\n [1107061017, 1107061, \"BLANG SIBEUTONG\"],\n [1107062001, 1107062, \"PANTE MEUTIA\"],\n [1107062002, 1107062, \"SUAK BIDOK\"],\n [1107062003, 1107062, \"SUAK IE BEUSOU\"],\n [1107062004, 1107062, \"SUAK KEUMUDEE\"],\n [1107062005, 1107062, \"ARONGAN\"],\n [1107062006, 1107062, \"COT KUMBANG\"],\n [1107062007, 1107062, \"KEUB\"],\n [1107062008, 1107062, \"PEURIBU\"],\n [1107062009, 1107062, \"TEUPIN PEURAHO\"],\n [1107062010, 1107062, \"UJONG BEUSA\"],\n [1107062011, 1107062, \"KUBU\"],\n [1107062012, 1107062, \"SEUNEUBOK LUENG\"],\n [1107062013, 1107062, \"DRIEN RAMPAK\"],\n [1107062014, 1107062, \"COT BULOH\"],\n [1107062015, 1107062, \"SIMPANG PEUT\"],\n [1107062016, 1107062, \"RIMBA LANGGEH\"],\n [1107062017, 1107062, \"SEUNEUBOK TEUNGOH\"],\n [1107062018, 1107062, \"GUNONG PULO\"],\n [1107062019, 1107062, \"KARANG HAMPA\"],\n [1107062020, 1107062, \"PEULANTEU LB\"],\n [1107062021, 1107062, \"UJONG SIMPANG\"],\n [1107062022, 1107062, \"PANTON MAKMUR\"],\n [1107062023, 1107062, \"PANTON BAHAGIA\"],\n [1107062024, 1107062, \"COT JURUMUDI\"],\n [1107062025, 1107062, \"ALUE SUNDAK\"],\n [1107062026, 1107062, \"ALUE BAGOK\"],\n [1107062027, 1107062, \"ALUE BATEE\"],\n [1107070015, 1107070, \"IE ITAM BAROH\"],\n [1107070016, 1107070, \"IE ITAM TUNONG\"],\n [1107070017, 1107070, \"COT MURONG\"],\n [1107070018, 1107070, \"PADANG JAWA\"],\n [1107070023, 1107070, \"RANTO PANYANG\"],\n [1107070024, 1107070, \"GEMPA RAYA\"],\n [1107070025, 1107070, \"COT LAGAN CM\"],\n [1107070026, 1107070, \"ARON BAROH\"],\n [1107070027, 1107070, \"PASI PANDAN\"],\n [1107070033, 1107070, \"ARON TUNONG\"],\n [1107070034, 1107070, \"PASI ACEH\"],\n [1107070035, 1107070, \"LHUNG TGK YAH\"],\n [1107070036, 1107070, \"PAYA DUA\"],\n [1107070037, 1107070, \"SUAK TRING\"],\n [1107070038, 1107070, \"GLEE SIBLAH\"],\n [1107070039, 1107070, \"DARUL HUDA\"],\n [1107070040, 1107070, \"PAYA LUAH\"],\n [1107070041, 1107070, \"GUNONG RAMBONG\"],\n [1107070042, 1107070, \"LUENG BULOH\"],\n [1107070043, 1107070, \"LUENG TANOH THO\"],\n [1107070044, 1107070, \"LUENG JAWA\"],\n [1107070045, 1107070, \"TINGKEUM PANYANG\"],\n [1107070046, 1107070, \"KUALA BHEE\"],\n [1107070047, 1107070, \"PASI LUNAK\"],\n [1107070048, 1107070, \"BAKAT\"],\n [1107070049, 1107070, \"COT KEUMUDEE\"],\n [1107070050, 1107070, \"ALUE BLANG\"],\n [1107070051, 1107070, \"BLANG MEE\"],\n [1107070052, 1107070, \"KEULEUMBAH\"],\n [1107070053, 1107070, \"JAWA\"],\n [1107070054, 1107070, \"ALUE PANYANG\"],\n [1107070055, 1107070, \"PULO IE\"],\n [1107070056, 1107070, \"PASI ARA KB\"],\n [1107070057, 1107070, \"GUNUNG HAMPA\"],\n [1107070058, 1107070, \"ALUE SIKAYA\"],\n [1107070059, 1107070, \"DRIN MANGKO\"],\n [1107070060, 1107070, \"SEUMANTOK\"],\n [1107070062, 1107070, \"COT SITUAH\"],\n [1107070063, 1107070, \"PASI BIRAH\"],\n [1107070070, 1107070, \"PANTON\"],\n [1107070071, 1107070, \"ALUE SUNDAK\"],\n [1107070079, 1107070, \"TEUMAROM\"],\n [1107070080, 1107070, \"JAWI\"],\n [1107071001, 1107071, \"ALUE LEUHOB\"],\n [1107071002, 1107071, \"BLANG LUAH LM\"],\n [1107071003, 1107071, \"PASI MALE\"],\n [1107071004, 1107071, \"NAPAI\"],\n [1107071005, 1107071, \"BLANG COT MAMEH\"],\n [1107071006, 1107071, \"KULAM KAJU\"],\n [1107071007, 1107071, \"LHOK MALE\"],\n [1107071008, 1107071, \"COT RAMBONG\"],\n [1107071009, 1107071, \"LUBUK PASI ARA\"],\n [1107071010, 1107071, \"ULEE PASI ARA\"],\n [1107071011, 1107071, \"COT LAGAN LM\"],\n [1107071012, 1107071, \"LUENG BARO\"],\n [1107071013, 1107071, \"ALUE PERMAN\"],\n [1107071014, 1107071, \"BLANG COT RUBEK\"],\n [1107071015, 1107071, \"PEULUEKUNG\"],\n [1107071016, 1107071, \"PASI JEUT\"],\n [1107071017, 1107071, \"MON PASONG\"],\n [1107071018, 1107071, \"PASI MALI\"],\n [1107071019, 1107071, \"KARAK\"],\n [1107071020, 1107071, \"ALUE KEUMUNENG\"],\n [1107071021, 1107071, \"IE SAYANG\"],\n [1107071022, 1107071, \"ULEE PULO\"],\n [1107071023, 1107071, \"PASI PANYANG\"],\n [1107071024, 1107071, \"SIMPANG TEUMAROM\"],\n [1107072001, 1107072, \"COT PUNTI\"],\n [1107072002, 1107072, \"PASI JANENG\"],\n [1107072003, 1107072, \"TANGKEH\"],\n [1107072004, 1107072, \"PAYA MEUGEUNDRANG\"],\n [1107072005, 1107072, \"GUNONG PANYANG\"],\n [1107072006, 1107072, \"SEUNEUBOK DALAM\"],\n [1107072007, 1107072, \"BLANG LUAH KB\"],\n [1107072008, 1107072, \"RAMBONG PINTO\"],\n [1107072009, 1107072, \"ALUE SEURALEN\"],\n [1107072010, 1107072, \"ALUE EMPEUK\"],\n [1107072011, 1107072, \"RAMBONG\"],\n [1107072012, 1107072, \"GAMPONG BARO WT\"],\n [1107072013, 1107072, \"PASI ARA WT\"],\n [1107072014, 1107072, \"KEUBEU CAPANG\"],\n [1107072015, 1107072, \"PAYA BARO\"],\n [1107072016, 1107072, \"ALUE BILIE\"],\n [1107072017, 1107072, \"TUWI EMPEUK\"],\n [1107072018, 1107072, \"ALUE MEUGANDA\"],\n [1107072019, 1107072, \"GAMPONG BARO KB\"],\n [1107072020, 1107072, \"LUBOK PANYANG\"],\n [1107072021, 1107072, \"SEURADEUK\"],\n [1107072022, 1107072, \"BLANG MAKMUR\"],\n [1107072023, 1107072, \"BUKIT MEGAJAH\"],\n [1107072024, 1107072, \"BLANG DALAM\"],\n [1107072025, 1107072, \"TEUMIKET RANOM\"],\n [1107072026, 1107072, \"ALUE KUYUEN\"],\n [1107080023, 1107080, \"MAREK\"],\n [1107080025, 1107080, \"PASI TEUNGOH\"],\n [1107080026, 1107080, \"PASI JAMBU\"],\n [1107080027, 1107080, \"ALUE TAMPAK\"],\n [1107080028, 1107080, \"TUMPOK LADANG\"],\n [1107080032, 1107080, \"MEUNASAH ARA\"],\n [1107080033, 1107080, \"MEUNASAH RAYEUK\"],\n [1107080034, 1107080, \"MEUNASAH BULOH\"],\n [1107080035, 1107080, \"PADANG MANCANG\"],\n [1107080036, 1107080, \"MESJID\"],\n [1107080037, 1107080, \"KEUDE ARON\"],\n [1107080038, 1107080, \"PEUNIA\"],\n [1107080039, 1107080, \"SIMPANG\"],\n [1107080040, 1107080, \"BEUREUGANG\"],\n [1107080041, 1107080, \"BATU JAYA\"],\n [1107080042, 1107080, \"BLANG GEUNANG\"],\n [1107080043, 1107080, \"MUKO\"],\n [1107080044, 1107080, \"TANJONG BUNGA\"],\n [1107080045, 1107080, \"PUTIM\"],\n [1107080046, 1107080, \"MEUNASAH RAMBOT\"],\n [1107080047, 1107080, \"ALUE ON\"],\n [1107080048, 1107080, \"PASI JEUMPA\"],\n [1107080049, 1107080, \"PALIMBUNGAN\"],\n [1107080050, 1107080, \"PASI MEUGAT\"],\n [1107080051, 1107080, \"PUUK\"],\n [1107080052, 1107080, \"MEUNASAH GANTUNG\"],\n [1107080053, 1107080, \"PUNGKIE\"],\n [1107080054, 1107080, \"BABAH MEULABOH\"],\n [1107080055, 1107080, \"MENUANG TANJONG\"],\n [1107080056, 1107080, \"TANJONG MEULABOH\"],\n [1107080057, 1107080, \"BLANG DALAM\"],\n [1107080058, 1107080, \"ALUE PEUDEUNG\"],\n [1107080059, 1107080, \"PASI ARA\"],\n [1107080060, 1107080, \"KEUDE TANJONG\"],\n [1107080061, 1107080, \"PUCOK PUNGKIE\"],\n [1107080062, 1107080, \"PASI KUMBANG\"],\n [1107080063, 1107080, \"TEUPIN PANAH\"],\n [1107080064, 1107080, \"DRIEN CALEE\"],\n [1107080065, 1107080, \"ALUE LHEE\"],\n [1107080067, 1107080, \"TEULADAN\"],\n [1107080068, 1107080, \"SAWANG TEUBEE\"],\n [1107080069, 1107080, \"ALUE LHOK\"],\n [1107080070, 1107080, \"PADANG SIKABU\"],\n [1107080071, 1107080, \"KEURAMAT\"],\n [1107081001, 1107081, \"PEUNAGA CUT UJONG\"],\n [1107081002, 1107081, \"GUNONG KLENG\"],\n [1107081003, 1107081, \"PEUNAGA PASI\"],\n [1107081004, 1107081, \"PEUNAGA RAYEUK\"],\n [1107081005, 1107081, \"PAYA PEUNAGA\"],\n [1107081006, 1107081, \"LANGUNG\"],\n [1107081007, 1107081, \"MEUREUBO\"],\n [1107081008, 1107081, \"UJONG DRIEN\"],\n [1107081009, 1107081, \"PASI PINANG\"],\n [1107081010, 1107081, \"UJONG TANJONG\"],\n [1107081011, 1107081, \"BUKIT JAYA\"],\n [1107081012, 1107081, \"BULOH\"],\n [1107081013, 1107081, \"RANTO PANYANG TIMUR\"],\n [1107081014, 1107081, \"RANTO PANYANG BARAT\"],\n [1107081015, 1107081, \"MESJID TUHA\"],\n [1107081016, 1107081, \"UJONG TANOH DARAT\"],\n [1107081017, 1107081, \"RANUB DONG\"],\n [1107081018, 1107081, \"PASI MESJID\"],\n [1107081019, 1107081, \"PULO TEUNGOH RANTO\"],\n [1107081020, 1107081, \"BALEE\"],\n [1107081021, 1107081, \"SUMBER BATU\"],\n [1107081022, 1107081, \"PASI ACEH BAROH\"],\n [1107081023, 1107081, \"PASI ACEH TUNONG\"],\n [1107081024, 1107081, \"REUDEUP\"],\n [1107081025, 1107081, \"PUCOK REUDEUP\"],\n [1107081026, 1107081, \"PAYA BARO RANTO PANJANG\"],\n [1107082001, 1107082, \"TEGAL SARI\"],\n [1107082002, 1107082, \"KRUENG BEUKAH\"],\n [1107082003, 1107082, \"BERDIKARI\"],\n [1107082004, 1107082, \"SUWAK AWE\"],\n [1107082005, 1107082, \"GUNONG TAROK\"],\n [1107082006, 1107082, \"BABAH KRUENG TEKLEP\"],\n [1107082007, 1107082, \"LHOK SARI\"],\n [1107082008, 1107082, \"LHOK GUCI\"],\n [1107082009, 1107082, \"KEUDE SUWAK AWE\"],\n [1107082010, 1107082, \"SAWANG RAMBOT\"],\n [1107082011, 1107082, \"MENUANG KINCO\"],\n [1107082012, 1107082, \"SEUMARA\"],\n [1107082013, 1107082, \"SEUMANTOK\"],\n [1107082014, 1107082, \"MANJENG\"],\n [1107082015, 1107082, \"PANTE CEUREUMEN\"],\n [1107082016, 1107082, \"PULO TEUNGOH MANYENG\"],\n [1107082017, 1107082, \"KEUTAMBANG\"],\n [1107082018, 1107082, \"CANGGAI\"],\n [1107082019, 1107082, \"LAWET\"],\n [1107082020, 1107082, \"LANGO\"],\n [1107082021, 1107082, \"BABAH LUENG\"],\n [1107082022, 1107082, \"BABAH ISEUNG\"],\n [1107082023, 1107082, \"ALUE KEUMANG\"],\n [1107082024, 1107082, \"JAMBAK\"],\n [1107082025, 1107082, \"SIKUNDO\"],\n [1107083001, 1107083, \"PAYA BARO MEUKO\"],\n [1107083002, 1107083, \"GUNUNG MATA IE\"],\n [1107083003, 1107083, \"BABAH KRUENG MANGGIE\"],\n [1107083004, 1107083, \"BLANG BALEE\"],\n [1107083005, 1107083, \"LEK LEK\"],\n [1107083006, 1107083, \"GAMPONG BARO\"],\n [1107083007, 1107083, \"MEUTULANG\"],\n [1107083008, 1107083, \"MANGGIE\"],\n [1107083009, 1107083, \"TAMPING\"],\n [1107083010, 1107083, \"COT MANGGIE\"],\n [1107083011, 1107083, \"KUALA MANYE\"],\n [1107083012, 1107083, \"TUWI BUYA\"],\n [1107083013, 1107083, \"UJONG RAJA\"],\n [1107083014, 1107083, \"MUGO CUT\"],\n [1107083015, 1107083, \"MUGO RAYEUK\"],\n [1107083016, 1107083, \"BARO PAYA\"],\n [1107083017, 1107083, \"SIBINTANG\"],\n [1107083018, 1107083, \"BLANG TEUNGOH\"],\n [1107083019, 1107083, \"ANTONG\"],\n [1107090001, 1107090, \"TUWI SAYA\"],\n [1107090002, 1107090, \"LUENG BARO\"],\n [1107090003, 1107090, \"SIPOT\"],\n [1107090004, 1107090, \"GASEU\"],\n [1107090005, 1107090, \"LEUBOK BEUTONG\"],\n [1107090006, 1107090, \"PUNGKIE\"],\n [1107090007, 1107090, \"GUNONG BULOH\"],\n [1107090008, 1107090, \"RAMITIE\"],\n [1107090009, 1107090, \"GLEUNG\"],\n [1107090010, 1107090, \"TANOH MIRAH\"],\n [1107090011, 1107090, \"DRIEN SIBAK\"],\n [1107090012, 1107090, \"SAKUY\"],\n [1107090013, 1107090, \"KAJEUNG\"],\n [1107090014, 1107090, \"GEUDONG\"],\n [1107090015, 1107090, \"TUNGKOP\"],\n [1107090016, 1107090, \"SARAH PERLAK\"],\n [1107090017, 1107090, \"LANCONG\"],\n [1107090018, 1107090, \"TUTUT\"],\n [1108010001, 1108010, \"MEUNASAH LHOK\"],\n [1108010002, 1108010, \"PUDENG\"],\n [1108010003, 1108010, \"PASI\"],\n [1108010004, 1108010, \"GLEE BRUEK\"],\n [1108010005, 1108010, \"MEUNASAH COT\"],\n [1108010006, 1108010, \"CUNDIEN\"],\n [1108010007, 1108010, \"GAPUY\"],\n [1108010008, 1108010, \"MON MATA\"],\n [1108010009, 1108010, \"KEUTAPANG\"],\n [1108010010, 1108010, \"LAMSUJEN\"],\n [1108010011, 1108010, \"LAMJUHANG\"],\n [1108010012, 1108010, \"UTAMONG\"],\n [1108010013, 1108010, \"SANEY\"],\n [1108010014, 1108010, \"LAMGEURIHEU\"],\n [1108010015, 1108010, \"UMONG SEURIBEE\"],\n [1108010016, 1108010, \"LAMKUTA BLANG MEE\"],\n [1108010017, 1108010, \"TEUNGOH BLANG MEE\"],\n [1108010018, 1108010, \"TEUNGOH GEUNTEUT\"],\n [1108010019, 1108010, \"BAROH GEUNTEUT\"],\n [1108010020, 1108010, \"BAROH BLANG MEE\"],\n [1108010021, 1108010, \"JANTANG\"],\n [1108010022, 1108010, \"MEUNASAH KRUENG KALA\"],\n [1108010023, 1108010, \"KAREUNG\"],\n [1108010024, 1108010, \"BIREK\"],\n [1108010025, 1108010, \"SEUNGKO MULAT\"],\n [1108010026, 1108010, \"BAROH KRUENG KALA\"],\n [1108010027, 1108010, \"TUNONG KRUENG KALA\"],\n [1108010028, 1108010, \"PAROY\"],\n [1108020007, 1108020, \"MON IKEUN\"],\n [1108020008, 1108020, \"NAGA UMBANG\"],\n [1108020009, 1108020, \"LAMBARO KUEH\"],\n [1108020010, 1108020, \"LAM ATEUK\"],\n [1108020011, 1108020, \"ANEUK PAYA\"],\n [1108020012, 1108020, \"LAMPAYA\"],\n [1108020013, 1108020, \"LAMKRUET\"],\n [1108020014, 1108020, \"WEURAYA\"],\n [1108020015, 1108020, \"MEUNASAH LAMBARO\"],\n [1108020016, 1108020, \"MON CUT\"],\n [1108020017, 1108020, \"MEUNASAH MANYANG\"],\n [1108020018, 1108020, \"MEUNASAH KARIENG\"],\n [1108020019, 1108020, \"LAMGABOH\"],\n [1108020020, 1108020, \"TANJONG\"],\n [1108020021, 1108020, \"KUEH\"],\n [1108020022, 1108020, \"NUSA\"],\n [1108020023, 1108020, \"SEUBUN KEUTAPANG\"],\n [1108020024, 1108020, \"SEUBUN AYON\"],\n [1108020025, 1108020, \"LAMBARO SEUBUN\"],\n [1108020026, 1108020, \"MEUNASAH MESJID LAMLHOM\"],\n [1108020027, 1108020, \"MEUNASAH BARO\"],\n [1108020028, 1108020, \"MEUNASAH MESJID LAMPUUK\"],\n [1108020029, 1108020, \"MEUNASAH BALEE\"],\n [1108020030, 1108020, \"LAMGIREK\"],\n [1108020031, 1108020, \"MEUNASAH BEUTONG\"],\n [1108020032, 1108020, \"LAMCOK\"],\n [1108020033, 1108020, \"MEUNASAH BLANG\"],\n [1108020034, 1108020, \"MEUNASAH CUT\"],\n [1108021001, 1108021, \"LAYEUN\"],\n [1108021002, 1108021, \"PULOT\"],\n [1108021003, 1108021, \"LAMSEUNIA\"],\n [1108021004, 1108021, \"MEUNASAH MESJID\"],\n [1108021005, 1108021, \"MEUNASAH BAK U\"],\n [1108021006, 1108021, \"DAYAH MAMPLAM\"],\n [1108030001, 1108030, \"ANEUK GLEE\"],\n [1108030002, 1108030, \"LAM ILIE GANTO\"],\n [1108030003, 1108030, \"LAM ILIE TEUNGOH\"],\n [1108030004, 1108030, \"REUKIH DAYAH\"],\n [1108030005, 1108030, \"KRUENG LAMKAREUNG\"],\n [1108030006, 1108030, \"RITING\"],\n [1108030028, 1108030, \"LAMPANAH TUNONG\"],\n [1108030029, 1108030, \"LAMPANAH BARO\"],\n [1108030030, 1108030, \"LAMPANAH TEUNGOH\"],\n [1108030031, 1108030, \"LAMPANAH DAYAH\"],\n [1108030032, 1108030, \"LAMPANAH RANJO\"],\n [1108030033, 1108030, \"SEUOT TUNONG\"],\n [1108030034, 1108030, \"SIHOM COT\"],\n [1108030035, 1108030, \"SIHOM LHOK\"],\n [1108030036, 1108030, \"SINYEU\"],\n [1108030037, 1108030, \"SEUOT BAROH\"],\n [1108030038, 1108030, \"PASAR INDRAPURI\"],\n [1108030039, 1108030, \"INDRA PURI\"],\n [1108030040, 1108030, \"REUKIH KEUPULA\"],\n [1108030041, 1108030, \"LAMLEUBOK\"],\n [1108030042, 1108030, \"LAM ILIE MESJID\"],\n [1108030043, 1108030, \"EMPE ARA\"],\n [1108030044, 1108030, \"ULEE KAREUNG\"],\n [1108030045, 1108030, \"SEUREMO\"],\n [1108030046, 1108030, \"MEUNARA\"],\n [1108030047, 1108030, \"LINGOM\"],\n [1108030048, 1108030, \"LAMBUNOT\"],\n [1108030049, 1108030, \"LAMSIOT\"],\n [1108030050, 1108030, \"ULEE UE\"],\n [1108030051, 1108030, \"JRUEK BAK KREH\"],\n [1108030052, 1108030, \"JRUEK BALEE\"],\n [1108030053, 1108030, \"GROT MANYANG\"],\n [1108030054, 1108030, \"GROT BARO\"],\n [1108030055, 1108030, \"MON ALUE\"],\n [1108030056, 1108030, \"GROT BLANG\"],\n [1108030057, 1108030, \"SEULANGAI\"],\n [1108030058, 1108030, \"LAMPUPOK BARO\"],\n [1108030059, 1108030, \"LAMPUPOK RAYA\"],\n [1108030060, 1108030, \"LAMBEUTONG\"],\n [1108030061, 1108030, \"LIMO LAMLUWEUNG\"],\n [1108030062, 1108030, \"LIMO MESJID\"],\n [1108030063, 1108030, \"LIMO BLANG\"],\n [1108030064, 1108030, \"COT KAREUNG\"],\n [1108030065, 1108030, \"CUREH\"],\n [1108030066, 1108030, \"LHEUE\"],\n [1108030067, 1108030, \"MESALEE\"],\n [1108030068, 1108030, \"LAMLUNG\"],\n [1108030069, 1108030, \"MUREU ULE TITIE\"],\n [1108030070, 1108030, \"MUREU BUNG U\"],\n [1108030071, 1108030, \"MUREU BARO\"],\n [1108030072, 1108030, \"MUREU LAMGLUMPANG\"],\n [1108030073, 1108030, \"MANGGRA\"],\n [1108031001, 1108031, \"BAK SUKON\"],\n [1108031002, 1108031, \"SIRON KRUENG\"],\n [1108031003, 1108031, \"SIRON BLANG\"],\n [1108031004, 1108031, \"BUENG SIMEK\"],\n [1108031005, 1108031, \"BITHAK\"],\n [1108031006, 1108031, \"TUTUI\"],\n [1108031007, 1108031, \"PAKUK\"],\n [1108031008, 1108031, \"PASAR LAMPAKU\"],\n [1108031009, 1108031, \"SIGAPANG\"],\n [1108031010, 1108031, \"KEUREUWEUNG KRUENG\"],\n [1108031011, 1108031, \"KEUREUWEUNG BLANG\"],\n [1108031012, 1108031, \"GLEE JAI\"],\n [1108031013, 1108031, \"LAMPAKUK\"],\n [1108031014, 1108031, \"BANDA SAFA\"],\n [1108031015, 1108031, \"LAMTUI\"],\n [1108031016, 1108031, \"LAMBEUGAK\"],\n [1108031017, 1108031, \"LAMLEUPUNG\"],\n [1108031018, 1108031, \"COT BAYU\"],\n [1108031019, 1108031, \"KEUMIREU\"],\n [1108031020, 1108031, \"LAMLEUOT\"],\n [1108031021, 1108031, \"LEUPUNG BALEU\"],\n [1108031022, 1108031, \"IE ALANG LAMKEUREUMEUH\"],\n [1108031023, 1108031, \"IE ALANG MESJID\"],\n [1108031024, 1108031, \"IE ALANG DAYAH\"],\n [1108031025, 1108031, \"IE ALANG LAMGHUI\"],\n [1108031026, 1108031, \"MAHENG\"],\n [1108031027, 1108031, \"LEUPUNG BRUEK\"],\n [1108031028, 1108031, \"LAM ALING\"],\n [1108031029, 1108031, \"LAMSIE\"],\n [1108031030, 1108031, \"LAMPOH RAJA\"],\n [1108031031, 1108031, \"BARIH LHOK\"],\n [1108031032, 1108031, \"LAMKLENG\"],\n [1108040016, 1108040, \"ALUE GINTONG\"],\n [1108040017, 1108040, \"LHIEB\"],\n [1108040019, 1108040, \"DATA GASEU\"],\n [1108040020, 1108040, \"KEUNALOI\"],\n [1108040021, 1108040, \"JAWIE\"],\n [1108040022, 1108040, \"BUGA\"],\n [1108040023, 1108040, \"PASAR SEULIMEUM\"],\n [1108040024, 1108040, \"RABO\"],\n [1108040025, 1108040, \"LAMPISANG TUNONG\"],\n [1108040026, 1108040, \"LAMPISANG TEUNGOH\"],\n [1108040027, 1108040, \"LAMPISANG DAYAH\"],\n [1108040028, 1108040, \"CAPEUNG BAROH\"],\n [1108040029, 1108040, \"CAPEUNG DAYAH\"],\n [1108040030, 1108040, \"BAK AGHU\"],\n [1108040031, 1108040, \"MEUNASAH JEUMPA\"],\n [1108040032, 1108040, \"PINTO KHOP\"],\n [1108040033, 1108040, \"KAYEE ADANG\"],\n [1108040034, 1108040, \"SEUNEUBOK\"],\n [1108040035, 1108040, \"SEULIMEUM\"],\n [1108040036, 1108040, \"GAMPONG RAYA\"],\n [1108040037, 1108040, \"LAMJRUEN\"],\n [1108040038, 1108040, \"IBOH TANJONG\"],\n [1108040039, 1108040, \"IBOH TUNONG\"],\n [1108040040, 1108040, \"ALUE RINDANG\"],\n [1108040041, 1108040, \"MEUNASAH BARO\"],\n [1108040047, 1108040, \"AYON\"],\n [1108040048, 1108040, \"BAYU\"],\n [1108040049, 1108040, \"BATEE LHEE\"],\n [1108040050, 1108040, \"MEUNASAH TUNONG\"],\n [1108040051, 1108040, \"MANGEU\"],\n [1108040052, 1108040, \"BAK SEUTUI\"],\n [1108040053, 1108040, \"UJONG MESJID TANOH ABEE\"],\n [1108040054, 1108040, \"LAMKUK\"],\n [1108040055, 1108040, \"LAMCARAK\"],\n [1108040056, 1108040, \"LAMPANTEE\"],\n [1108040057, 1108040, \"LAMTEUBA DROE\"],\n [1108040058, 1108040, \"PULO\"],\n [1108040059, 1108040, \"MEURAH\"],\n [1108040060, 1108040, \"LAMBADA\"],\n [1108040061, 1108040, \"BLANG TINGKEUM\"],\n [1108040062, 1108040, \"LAM APENG\"],\n [1108040063, 1108040, \"ATEUK\"],\n [1108040064, 1108040, \"BEUREUNUT\"],\n [1108040065, 1108040, \"UJONG KEUPULA\"],\n [1108040066, 1108040, \"LAMPANAH\"],\n [1108040067, 1108040, \"UJONG MESJID LAMPANAH\"],\n [1108040068, 1108040, \"LEUNGAH\"],\n [1108041001, 1108041, \"JANTHO BARU\"],\n [1108041002, 1108041, \"WEU\"],\n [1108041003, 1108041, \"AWEEK\"],\n [1108041004, 1108041, \"BUENG\"],\n [1108041005, 1108041, \"JALIN\"],\n [1108041006, 1108041, \"SUKA TANI\"],\n [1108041007, 1108041, \"DATA CUT\"],\n [1108041008, 1108041, \"JANTHO\"],\n [1108041009, 1108041, \"BARUEH\"],\n [1108041010, 1108041, \"JANTHO MAKMUR\"],\n [1108041011, 1108041, \"BUKIT MEUSARA\"],\n [1108041012, 1108041, \"TEUREUBEH\"],\n [1108041013, 1108041, \"CUCUM\"],\n [1108042001, 1108042, \"PANCA\"],\n [1108042002, 1108042, \"PANCA KUBU\"],\n [1108042003, 1108042, \"LAM KUBU\"],\n [1108042004, 1108042, \"LON ASAN\"],\n [1108042005, 1108042, \"LON BAROH\"],\n [1108042006, 1108042, \"PAYA KEUREULEH\"],\n [1108042007, 1108042, \"LAMBARO TUNONG\"],\n [1108042008, 1108042, \"TEULADAN\"],\n [1108042009, 1108042, \"LAMTAMOT\"],\n [1108042010, 1108042, \"SUKA DAMAI\"],\n [1108042011, 1108042, \"SUKA MULIA\"],\n [1108042012, 1108042, \"SAREE ACEH\"],\n [1108050001, 1108050, \"LAMNGA\"],\n [1108050002, 1108050, \"BARO\"],\n [1108050003, 1108050, \"NEUHEUN\"],\n [1108050004, 1108050, \"DURUNG\"],\n [1108050005, 1108050, \"LADONG\"],\n [1108050006, 1108050, \"RUYUNG\"],\n [1108050007, 1108050, \"PAYA KAMENG\"],\n [1108050008, 1108050, \"BEURANDEH\"],\n [1108050009, 1108050, \"MEUNASAH KULAM\"],\n [1108050010, 1108050, \"MEUNASAH KEUDEE\"],\n [1108050011, 1108050, \"MEUNASAH MON\"],\n [1108050012, 1108050, \"IE SEUM\"],\n [1108050013, 1108050, \"LAMREH\"],\n [1108060001, 1108060, \"LAMPUJA\"],\n [1108060002, 1108060, \"LAM UJONG\"],\n [1108060003, 1108060, \"LAM GAWEE\"],\n [1108060004, 1108060, \"LAM ASAN\"],\n [1108060005, 1108060, \"LAM REH\"],\n [1108060006, 1108060, \"SIEM\"],\n [1108060007, 1108060, \"KRUENG KALEE\"],\n [1108060008, 1108060, \"LAMBARO SUKON\"],\n [1108060009, 1108060, \"LAMBIHEU LAMBARO ANGAN\"],\n [1108060010, 1108060, \"LAMBIHEU SIEM\"],\n [1108060011, 1108060, \"LAM KLAT\"],\n [1108060012, 1108060, \"LAMKEUNEUNG\"],\n [1108060013, 1108060, \"LAMPUUK\"],\n [1108060014, 1108060, \"LAMTIMPEUNG\"],\n [1108060015, 1108060, \"LIMPOK\"],\n [1108060016, 1108060, \"BARABUNG\"],\n [1108060017, 1108060, \"TUNGKOB\"],\n [1108060018, 1108060, \"LAM DURO\"],\n [1108060019, 1108060, \"LAMBITRA\"],\n [1108060020, 1108060, \"LIEUE\"],\n [1108060021, 1108060, \"LAMBADA PEUKAN\"],\n [1108060022, 1108060, \"BLANG\"],\n [1108060023, 1108060, \"COT\"],\n [1108060024, 1108060, \"ANGAN\"],\n [1108060026, 1108060, \"MIRUEK TAMAN\"],\n [1108060027, 1108060, \"LAMPEUDAYA\"],\n [1108060028, 1108060, \"SULEUE\"],\n [1108060029, 1108060, \"TANJONG DEAH\"],\n [1108060030, 1108060, \"TANJUNG SELAMAT\"],\n [1108061001, 1108061, \"BLANG KRUENG\"],\n [1108061002, 1108061, \"BAET\"],\n [1108061003, 1108061, \"CADEK\"],\n [1108061004, 1108061, \"KAJHU\"],\n [1108061005, 1108061, \"COT PAYA\"],\n [1108061006, 1108061, \"LAMBADA LHOK\"],\n [1108061007, 1108061, \"KLIENG COT ARON\"],\n [1108061008, 1108061, \"MIRUEK LAMREUDEUP\"],\n [1108061009, 1108061, \"KLIENG MEURIA\"],\n [1108061010, 1108061, \"LAMPINEUNG\"],\n [1108061011, 1108061, \"LAM ASAN\"],\n [1108061012, 1108061, \"LABUY\"],\n [1108061013, 1108061, \"LAM UJONG\"],\n [1108070005, 1108070, \"GUE\"],\n [1108070009, 1108070, \"BABAH JURONG\"],\n [1108070010, 1108070, \"LAMBRO DEYAH\"],\n [1108070011, 1108070, \"LAM BAED\"],\n [1108070012, 1108070, \"KRUENG ANOI\"],\n [1108070013, 1108070, \"COT MASAM\"],\n [1108070014, 1108070, \"COT MANCANG\"],\n [1108070015, 1108070, \"BUENG BAKJOK\"],\n [1108070016, 1108070, \"COT BEUT\"],\n [1108070017, 1108070, \"UJONG BLANG\"],\n [1108070018, 1108070, \"SEUPEU\"],\n [1108070019, 1108070, \"LAM NEUHEUN\"],\n [1108070020, 1108070, \"LAM PUUK\"],\n [1108070021, 1108070, \"LAMBRO BILEU\"],\n [1108070022, 1108070, \"LAMPOH KEUDE\"],\n [1108070023, 1108070, \"COT PEUTANO\"],\n [1108070024, 1108070, \"COT CUT\"],\n [1108070025, 1108070, \"LAM GLUMPANG\"],\n [1108070026, 1108070, \"MEUNASAH BAK TRIENG\"],\n [1108070027, 1108070, \"LAM ASAN\"],\n [1108070028, 1108070, \"LAMCEU\"],\n [1108070029, 1108070, \"COT PREH\"],\n [1108070030, 1108070, \"PUUK\"],\n [1108070031, 1108070, \"LAM SEUNONG\"],\n [1108070032, 1108070, \"LAM TRIENG\"],\n [1108070033, 1108070, \"BEURANGONG\"],\n [1108070034, 1108070, \"RABEU\"],\n [1108070035, 1108070, \"DEYAH\"],\n [1108070036, 1108070, \"CUCUM\"],\n [1108070037, 1108070, \"COT YANG\"],\n [1108070038, 1108070, \"COT RAYA\"],\n [1108070039, 1108070, \"LAMPOH TAROM\"],\n [1108070040, 1108070, \"ARON\"],\n [1108070041, 1108070, \"LAM ROH\"],\n [1108070042, 1108070, \"BAK BULOH\"],\n [1108070043, 1108070, \"LAM RAYA\"],\n [1108070044, 1108070, \"TUMPOK LAMPOH\"],\n [1108070045, 1108070, \"LAMBUNOT TANOH\"],\n [1108070046, 1108070, \"LAMBUNOT PAYA\"],\n [1108070047, 1108070, \"LAMTEUBE MON ARA\"],\n [1108070048, 1108070, \"LAMTEUBEE GEUPULA\"],\n [1108070049, 1108070, \"LAM ALU CUT\"],\n [1108070050, 1108070, \"LAM SABANG\"],\n [1108070051, 1108070, \"LAM ALU RAYA\"],\n [1108070052, 1108070, \"LEUPUNG ULEE ALUE\"],\n [1108070053, 1108070, \"LEUPUNG MESJID\"],\n [1108070054, 1108070, \"COT LAMME\"],\n [1108080001, 1108080, \"WEU BADA\"],\n [1108080002, 1108080, \"PIYEUNG LHANG\"],\n [1108080003, 1108080, \"PIYEUNG DATU\"],\n [1108080004, 1108080, \"PIYEUNG MANE\"],\n [1108080005, 1108080, \"KUWEU\"],\n [1108080006, 1108080, \"BUENG DAROH\"],\n [1108080007, 1108080, \"COT LAMPOH SOH\"],\n [1108080008, 1108080, \"MON ARA\"],\n [1108080009, 1108080, \"COT LHOK\"],\n [1108080010, 1108080, \"BUENG RAYA\"],\n [1108080011, 1108080, \"ATONG\"],\n [1108080012, 1108080, \"TEUBANG PHUI MESJID\"],\n [1108080013, 1108080, \"LAMME GAROT\"],\n [1108080014, 1108080, \"REUDEUP\"],\n [1108080015, 1108080, \"BAKCIRIH\"],\n [1108080016, 1108080, \"MEUNASAH TUTONG\"],\n [1108080017, 1108080, \"EMPEE TANONG\"],\n [1108080018, 1108080, \"DAYAH DABOH\"],\n [1108080019, 1108080, \"LAMPASEH KRUENG\"],\n [1108080020, 1108080, \"LAMNGA\"],\n [1108080021, 1108080, \"LAMPASEH LHOK\"],\n [1108080022, 1108080, \"BAROH\"],\n [1108080023, 1108080, \"MATA IE\"],\n [1108080024, 1108080, \"WEU KRUENG\"],\n [1108080025, 1108080, \"ALUE\"],\n [1108080026, 1108080, \"WEU LHOK\"],\n [1108080027, 1108080, \"WARABO\"],\n [1108080028, 1108080, \"TEUBANG PHUI BARO\"],\n [1108080029, 1108080, \"BUENG TUJOH\"],\n [1108080030, 1108080, \"BIRA LHOK\"],\n [1108080031, 1108080, \"BIRA COT\"],\n [1108080032, 1108080, \"PEURUMPING\"],\n [1108080035, 1108080, \"BAK DILIP\"],\n [1108080036, 1108080, \"ULEE LHAT\"],\n [1108080037, 1108080, \"SEUBAM LHOK\"],\n [1108080038, 1108080, \"LAM RAYA\"],\n [1108080039, 1108080, \"COT SEUNONG\"],\n [1108080042, 1108080, \"SEUBAM COT\"],\n [1108080043, 1108080, \"SEUMET\"],\n [1108081001, 1108081, \"COT MON RAYA\"],\n [1108081002, 1108081, \"COT GEUNDREUT\"],\n [1108081003, 1108081, \"PAYA-UE\"],\n [1108081004, 1108081, \"LAMME\"],\n [1108081005, 1108081, \"MEULAYO\"],\n [1108081006, 1108081, \"LAM SIEM\"],\n [1108081007, 1108081, \"COT PUKLAT\"],\n [1108081008, 1108081, \"DATA MAKMUR\"],\n [1108081009, 1108081, \"KAYEE KUNYET\"],\n [1108081010, 1108081, \"COT MEULANGEN\"],\n [1108081011, 1108081, \"COT NAMBAK\"],\n [1108081012, 1108081, \"COT MANCANG\"],\n [1108081013, 1108081, \"EMPEE BATA\"],\n [1108081014, 1108081, \"COT BAGI\"],\n [1108081015, 1108081, \"TEUPIN BATEE\"],\n [1108081016, 1108081, \"COT LEUOT\"],\n [1108081017, 1108081, \"COT HOHO\"],\n [1108081018, 1108081, \"COT JAMBO\"],\n [1108081019, 1108081, \"COT RUMPUN\"],\n [1108081020, 1108081, \"BUNG PAGEU\"],\n [1108081021, 1108081, \"COT SAYUN\"],\n [1108081022, 1108081, \"COT KARIENG\"],\n [1108081023, 1108081, \"COT MALEM\"],\n [1108081024, 1108081, \"KAMPUNG BLANG\"],\n [1108081025, 1108081, \"BUNG SIDOM\"],\n [1108081026, 1108081, \"COT MADHI\"],\n [1108090001, 1108090, \"KAYEE LEE\"],\n [1108090002, 1108090, \"LAM TEUNGOH\"],\n [1108090003, 1108090, \"LUBOK SUKON\"],\n [1108090004, 1108090, \"LUBOK GAPUY\"],\n [1108090005, 1108090, \"LAMDAYA\"],\n [1108090006, 1108090, \"LAM UE\"],\n [1108090007, 1108090, \"PALEUH BLANG\"],\n [1108090008, 1108090, \"PALEUH PULO\"],\n [1108090009, 1108090, \"LAMBADA\"],\n [1108090010, 1108090, \"LAMCOT\"],\n [1108090011, 1108090, \"LAMPREH LAMJAMPOK\"],\n [1108090012, 1108090, \"LAM SINYEU\"],\n [1108090013, 1108090, \"COT MENTIWAN\"],\n [1108090014, 1108090, \"COT ALUE\"],\n [1108090015, 1108090, \"COT GUD\"],\n [1108090016, 1108090, \"COT BADA\"],\n [1108090017, 1108090, \"COT SURUY\"],\n [1108090018, 1108090, \"AJEE CUT\"],\n [1108090019, 1108090, \"AJEE RAYEUK\"],\n [1108090020, 1108090, \"DHAM PULO\"],\n [1108090021, 1108090, \"PASIE LUBUK\"],\n [1108090022, 1108090, \"UJONG XII\"],\n [1108090023, 1108090, \"LAMPREH LAMTEUNGOH\"],\n [1108090024, 1108090, \"BADA\"],\n [1108090025, 1108090, \"LAMBARO\"],\n [1108090026, 1108090, \"KALUT\"],\n [1108090027, 1108090, \"MEUNASAH MANYET\"],\n [1108090028, 1108090, \"AJEE PAGAR AIR\"],\n [1108090029, 1108090, \"LUBOK BATEE\"],\n [1108090030, 1108090, \"SIRON\"],\n [1108090031, 1108090, \"MEUNASAH BARO\"],\n [1108090032, 1108090, \"PASIE LAMGAROT\"],\n [1108090033, 1108090, \"DHAM CEUKOK\"],\n [1108090034, 1108090, \"GANI\"],\n [1108090035, 1108090, \"BUENG CEUKOK\"],\n [1108090036, 1108090, \"TEUBANG PHUI\"],\n [1108090037, 1108090, \"ATEUK LUENG IE\"],\n [1108090038, 1108090, \"ATEUK ANGGOK\"],\n [1108090039, 1108090, \"BAKOY\"],\n [1108090040, 1108090, \"MEUNASAH MANYANG LAMGAROT\"],\n [1108090041, 1108090, \"MEUNASAH TUTONG\"],\n [1108090042, 1108090, \"MEUNASAH DEYAH\"],\n [1108090043, 1108090, \"JURONG PEUJEURA\"],\n [1108090044, 1108090, \"PANTEE\"],\n [1108090045, 1108090, \"BINEH BLANG\"],\n [1108090046, 1108090, \"REULOH\"],\n [1108090047, 1108090, \"TANJONG\"],\n [1108090048, 1108090, \"MEUNASAH MANYANG PAGAR AIR\"],\n [1108090049, 1108090, \"SANTAN\"],\n [1108090050, 1108090, \"MNS KRUENG\"],\n [1108091001, 1108091, \"LAMPERMAI\"],\n [1108091002, 1108091, \"MIRUK\"],\n [1108091003, 1108091, \"GLA DEYAH\"],\n [1108091004, 1108091, \"GLA MEUNASAH BARO\"],\n [1108091005, 1108091, \"MEUNASAH INTAN\"],\n [1108091006, 1108091, \"MEUNASAH BAET\"],\n [1108091007, 1108091, \"MEUNASAH MANYANG\"],\n [1108091008, 1108091, \"LAMGAPANG\"],\n [1108091009, 1108091, \"RUMPET\"],\n [1108091010, 1108091, \"BAK TRIENG\"],\n [1108091011, 1108091, \"LUENG IE\"],\n [1108091012, 1108091, \"MEUNASAH PAPEUN\"],\n [1108100001, 1108100, \"LUTHU LAMWEU\"],\n [1108100002, 1108100, \"BAET MASJID\"],\n [1108100003, 1108100, \"BAET LAMPHUOT\"],\n [1108100004, 1108100, \"BAET MEESAGO\"],\n [1108100005, 1108100, \"PANTEE RAWA\"],\n [1108100021, 1108100, \"SIBREH KEUMUDEE\"],\n [1108100022, 1108100, \"DILIP LAMTEUNGOH\"],\n [1108100023, 1108100, \"DILIP BUKTI\"],\n [1108100024, 1108100, \"REUHAT TUHA\"],\n [1108100025, 1108100, \"SEUMEUREUNG\"],\n [1108100026, 1108100, \"LUTHU DAYAH KRUENG\"],\n [1108100027, 1108100, \"LAMTANJONG\"],\n [1108100028, 1108100, \"LAMBIRAH\"],\n [1108100029, 1108100, \"KAYEE ADANG\"],\n [1108100031, 1108100, \"TAMPOK BLANG\"],\n [1108100049, 1108100, \"LAMGEU BARO\"],\n [1108100050, 1108100, \"LAMGEU TUHA\"],\n [1108100051, 1108100, \"LAMLHEU\"],\n [1108100052, 1108100, \"LAMTEH DAYAH\"],\n [1108100053, 1108100, \"TAMPOK JEURAT RAYA\"],\n [1108100054, 1108100, \"LAMPANAH INEU\"],\n [1108100055, 1108100, \"KLING MANYANG\"],\n [1108100056, 1108100, \"LAMPISANG\"],\n [1108100057, 1108100, \"LAMBARO SIBREH\"],\n [1108100058, 1108100, \"WEUSITEH\"],\n [1108100059, 1108100, \"ANEUK GALONG TITI\"],\n [1108100060, 1108100, \"ANEUK GALONG BARO\"],\n [1108100061, 1108100, \"MEUNASAH BAKTHU\"],\n [1108100062, 1108100, \"BLANG CUT\"],\n [1108100063, 1108100, \"MEUNASAH TUHA\"],\n [1108100064, 1108100, \"ANEUK BATEE\"],\n [1108100065, 1108100, \"NIRON\"],\n [1108100066, 1108100, \"BUKLOH\"],\n [1108100067, 1108100, \"LAMBARIH JURONG RAYA\"],\n [1108100068, 1108100, \"LAMBARIH BAKMEE\"],\n [1108101001, 1108101, \"LEUBOK BATEE\"],\n [1108101002, 1108101, \"LEUBOK BUNI\"],\n [1108101003, 1108101, \"BUGHU\"],\n [1108101004, 1108101, \"TEU DAYAH\"],\n [1108101005, 1108101, \"LAM ARA TUNONG\"],\n [1108101006, 1108101, \"LAM ARA EUNGKIT\"],\n [1108101007, 1108101, \"LAM ARA CUT\"],\n [1108101008, 1108101, \"LEUPUNG CUT\"],\n [1108101009, 1108101, \"TUMBO BARO\"],\n [1108101010, 1108101, \"LAMBARO SAMAHANI\"],\n [1108101011, 1108101, \"LEUPUNG RIWAT\"],\n [1108101012, 1108101, \"LEUPUNG RAYEUK\"],\n [1108101013, 1108101, \"REULEUNG GLUMPANG\"],\n [1108101014, 1108101, \"REULEUNG KARIENG\"],\n [1108101015, 1108101, \"LAMSITEH COT\"],\n [1108102001, 1108102, \"TAN TUHA\"],\n [1108102002, 1108102, \"BLANG PREH\"],\n [1108102003, 1108102, \"BLANG MIRO\"],\n [1108102004, 1108102, \"BHA ULEE TUTU\"],\n [1108102005, 1108102, \"LAMBUNOT\"],\n [1108102006, 1108102, \"LAMBATEE\"],\n [1108102007, 1108102, \"NYA\"],\n [1108102008, 1108102, \"KRUENG MAK\"],\n [1108102009, 1108102, \"BATEE LINTEUNG\"],\n [1108102010, 1108102, \"ATEUK LAMPHANG\"],\n [1108102011, 1108102, \"ATEUK CUT\"],\n [1108102012, 1108102, \"ATEUK BLANG ASAN\"],\n [1108102013, 1108102, \"ATEUK MON PANAH\"],\n [1108102014, 1108102, \"ATEUK LAM URA\"],\n [1108102015, 1108102, \"ATEUK LAMPEUOT\"],\n [1108102016, 1108102, \"LAMJAMEE DAYAH\"],\n [1108102017, 1108102, \"LAMJAMEE LAMKRAK\"],\n [1108102018, 1108102, \"LAM URIT\"],\n [1108110014, 1108110, \"DEUNONG\"],\n [1108110015, 1108110, \"LEU GEU\"],\n [1108110017, 1108110, \"LAMSITEH\"],\n [1108110018, 1108110, \"LAMPEUNEUEN\"],\n [1108110019, 1108110, \"ULEE TUY\"],\n [1108110020, 1108110, \"PUNIE\"],\n [1108110021, 1108110, \"LEU UE\"],\n [1108110022, 1108110, \"GEUNDRING\"],\n [1108110023, 1108110, \"PASHEU BEUTONG\"],\n [1108110024, 1108110, \"LAMPASI ENGKING\"],\n [1108110025, 1108110, \"JEUMPET AJUN\"],\n [1108110026, 1108110, \"GAROT\"],\n [1108110027, 1108110, \"GUE GAJAH\"],\n [1108110028, 1108110, \"ULEE LUENG\"],\n [1108110029, 1108110, \"LAM BHEU\"],\n [1108110030, 1108110, \"KANDANG\"],\n [1108110031, 1108110, \"DAROY KAMEU\"],\n [1108110032, 1108110, \"TINGKEUM\"],\n [1108110033, 1108110, \"LAMTHEUN\"],\n [1108110034, 1108110, \"LAMSIDAYA\"],\n [1108110035, 1108110, \"KUTA KARANG\"],\n [1108110036, 1108110, \"LAMKAWEE\"],\n [1108110037, 1108110, \"LHEU BLANG\"],\n [1108110038, 1108110, \"LAGANG\"],\n [1108110039, 1108110, \"LAMBLANG MANYANG\"],\n [1108110040, 1108110, \"LAMBLANG TRIENG\"],\n [1108110041, 1108110, \"PAYAROH\"],\n [1108110042, 1108110, \"LAMPEUNEURUT UJONG BLANG\"],\n [1108110043, 1108110, \"LAMPEUNEURUT GAMPONG\"],\n [1108110044, 1108110, \"LAMCOT\"],\n [1108110045, 1108110, \"LAMREUNG\"],\n [1108110046, 1108110, \"BAYU\"],\n [1108111001, 1108111, \"LAMBARO BILUY\"],\n [1108111002, 1108111, \"EMPETRING\"],\n [1108111003, 1108111, \"BILUY\"],\n [1108111004, 1108111, \"LAMSOD\"],\n [1108111005, 1108111, \"MANEE DAYAH\"],\n [1108111006, 1108111, \"LAMTADOK\"],\n [1108111007, 1108111, \"LAMKUNYET\"],\n [1108111008, 1108111, \"LHANG\"],\n [1108111009, 1108111, \"LAMBATEE\"],\n [1108111010, 1108111, \"TURAM\"],\n [1108111011, 1108111, \"BLANG KIREE\"],\n [1108111012, 1108111, \"TEUBALUI\"],\n [1108111013, 1108111, \"NEUSOK\"],\n [1108111014, 1108111, \"LAM BLEUT\"],\n [1108120001, 1108120, \"BERADEUN\"],\n [1108120002, 1108120, \"KEUNEUEU\"],\n [1108120003, 1108120, \"LAMPISANG\"],\n [1108120004, 1108120, \"RIMA JEUNE\"],\n [1108120005, 1108120, \"RIMA KEUNERUM\"],\n [1108120006, 1108120, \"AJUEN\"],\n [1108120007, 1108120, \"LAM HASAN\"],\n [1108120008, 1108120, \"PAYATIENG\"],\n [1108120009, 1108120, \"LAMGEU-EU\"],\n [1108120010, 1108120, \"LAM RUKAM\"],\n [1108120011, 1108120, \"GURAH\"],\n [1108120012, 1108120, \"LAM ISEK\"],\n [1108120013, 1108120, \"LAM KEUMOK\"],\n [1108120014, 1108120, \"LAMLUMPU\"],\n [1108120015, 1108120, \"LAM TEEH\"],\n [1108120016, 1108120, \"BARO\"],\n [1108120017, 1108120, \"LAM MANYANG\"],\n [1108120018, 1108120, \"LAM AWEE\"],\n [1108120019, 1108120, \"MEUNASAH TUHA\"],\n [1108120020, 1108120, \"LAM TEUNGOH\"],\n [1108120021, 1108120, \"LAM TUTUI\"],\n [1108120022, 1108120, \"LAM GURON\"],\n [1108120023, 1108120, \"LAM BADEUK\"],\n [1108120024, 1108120, \"LAMBARO NEUJID\"],\n [1108120025, 1108120, \"LAM PAGEU\"],\n [1108120026, 1108120, \"PULO BUNTA\"],\n [1108130001, 1108130, \"TEUNOM\"],\n [1108130002, 1108130, \"PASI JANENG\"],\n [1108130003, 1108130, \"ALUE RIYEUNG\"],\n [1108130004, 1108130, \"DEUDAP\"],\n [1108130005, 1108130, \"RABO\"],\n [1108130006, 1108130, \"LAMTENG\"],\n [1108130007, 1108130, \"LHOH\"],\n [1108130008, 1108130, \"LAMPUYANG\"],\n [1108130009, 1108130, \"LAPENG\"],\n [1108130010, 1108130, \"PALOH\"],\n [1108130011, 1108130, \"BLANG SITUNGKOH\"],\n [1108130012, 1108130, \"ULEE PAYA\"],\n [1108130013, 1108130, \"SEURAPONG\"],\n [1108130014, 1108130, \"GUGOB\"],\n [1108130015, 1108130, \"ALUE RAYA\"],\n [1108130016, 1108130, \"RINON\"],\n [1108130017, 1108130, \"MELINGGE\"],\n [1109010003, 1109010, \"KEUNE\"],\n [1109010004, 1109010, \"BANGKEH\"],\n [1109010005, 1109010, \"PULO LOIH\"],\n [1109010006, 1109010, \"PUCOK\"],\n [1109010007, 1109010, \"LEUPU\"],\n [1109010008, 1109010, \"UPT V GEUMPANG\"],\n [1109011001, 1109011, \"MANE\"],\n [1109011002, 1109011, \"TURUE CUT\"],\n [1109011003, 1109011, \"LUTUENG\"],\n [1109011004, 1109011, \"BLANG DALAM\"],\n [1109070001, 1109070, \"KUMBANG KEUPULA\"],\n [1109070002, 1109070, \"TUFAH JEULATANG\"],\n [1109070003, 1109070, \"KEUTAPANG MESJID\"],\n [1109070004, 1109070, \"AMUD MESJID\"],\n [1109070005, 1109070, \"COT TUNONG\"],\n [1109070006, 1109070, \"COT BAROH\"],\n [1109070007, 1109070, \"KRUENG NYONG\"],\n [1109070008, 1109070, \"KRUENG JANGKO\"],\n [1109070009, 1109070, \"REUDEUP MEULAYU\"],\n [1109070010, 1109070, \"PANJOE\"],\n [1109070011, 1109070, \"PULO GAJAH MATEE\"],\n [1109070012, 1109070, \"MENJE\"],\n [1109070013, 1109070, \"JURONG PANDEE\"],\n [1109070014, 1109070, \"PULO LON/P.DAYAH\"],\n [1109070015, 1109070, \"KAMPUNG JUMPA\"],\n [1109070016, 1109070, \"BILI\"],\n [1109070017, 1109070, \"DAYAH TANOH\"],\n [1109070018, 1109070, \"SIMPANG\"],\n [1109070019, 1109070, \"KAYEE JATOE\"],\n [1109070020, 1109070, \"KRUET TEUMPEUN\"],\n [1109070021, 1109070, \"SUKON BAROH\"],\n [1109070022, 1109070, \"BLANG DRANG\"],\n [1109070023, 1109070, \"MAMPLAM\"],\n [1109070024, 1109070, \"SUKON MESJID\"],\n [1109070025, 1109070, \"PULO BATEE\"],\n [1109070026, 1109070, \"NEUROK\"],\n [1109070027, 1109070, \"LAMBARO\"],\n [1109070028, 1109070, \"BLANG PUEB\"],\n [1109070029, 1109070, \"BLANG TUNONG\"],\n [1109070030, 1109070, \"DAYAH KP. PISANG\"],\n [1109070031, 1109070, \"BALEE\"],\n [1109070032, 1109070, \"UDE GAMPONG\"],\n [1109070033, 1109070, \"KUPULA\"],\n [1109070039, 1109070, \"PULO LEUNG TEUGA\"],\n [1109071001, 1109071, \"MANYANG\"],\n [1109071002, 1109071, \"MEUNASAH SAGOE\"],\n [1109071003, 1109071, \"PULO IBOIH\"],\n [1109071004, 1109071, \"JURONG BARO\"],\n [1109071005, 1109071, \"GEUNTENG\"],\n [1109071006, 1109071, \"SUKON PAKU\"],\n [1109071007, 1109071, \"BLANG BAROH\"],\n [1109071008, 1109071, \"MEUNASAH SANGGET\"],\n [1109071009, 1109071, \"MEUNASAH BUNGONG\"],\n [1109071010, 1109071, \"MEUNASAH SEUKEE\"],\n [1109071011, 1109071, \"PULO PANJOU\"],\n [1109071012, 1109071, \"SEUREUKUI/CEBREK\"],\n [1109071013, 1109071, \"MEUNASAH DABOIH\"],\n [1109071014, 1109071, \"BALE GANTUNG\"],\n [1109071015, 1109071, \"ME TEUMPEUN\"],\n [1109071016, 1109071, \"U BUNGKOK\"],\n [1109071017, 1109071, \"KUMBANG UNOE\"],\n [1109071018, 1109071, \"GLUMPANG BUNGKOK\"],\n [1109071019, 1109071, \"MEUNASAH KUMPANG\"],\n [1109071020, 1109071, \"MEUNASAH UKEE\"],\n [1109071021, 1109071, \"PALONG\"],\n [1109080032, 1109080, \"PAYA TIBA\"],\n [1109080033, 1109080, \"RAPANA\"],\n [1109080034, 1109080, \"BARO YAMAN\"],\n [1109080044, 1109080, \"SENTOSA\"],\n [1109080045, 1109080, \"MESJID YAMAN\"],\n [1109080046, 1109080, \"BAROH BARAT YAMAN\"],\n [1109080047, 1109080, \"MEE TEUNGOH\"],\n [1109080048, 1109080, \"BALE\"],\n [1109080049, 1109080, \"LINGKOK\"],\n [1109080050, 1109080, \"REULUI\"],\n [1109080051, 1109080, \"DAYAH SYARIF\"],\n [1109080052, 1109080, \"RIBEUN\"],\n [1109080053, 1109080, \"PEUREULAK\"],\n [1109080054, 1109080, \"KUMBANG\"],\n [1109080055, 1109080, \"MEE PANYANG\"],\n [1109080056, 1109080, \"BLANG LILEUE\"],\n [1109080057, 1109080, \"BALE BARO KEUMANGAN\"],\n [1109080058, 1109080, \"MESJID KEUMANGAN\"],\n [1109080059, 1109080, \"LUENG SAGOE\"],\n [1109080060, 1109080, \"BLANG BEUREUEH\"],\n [1109080069, 1109080, \"LAMPOH SIRONG\"],\n [1109080070, 1109080, \"PANTE BEUREUEH\"],\n [1109080071, 1109080, \"PALOH KAMBUEK\"],\n [1109080072, 1109080, \"DAYAH BEUREUEH\"],\n [1109080073, 1109080, \"BLANG TIDIEK\"],\n [1109080074, 1109080, \"JADAN\"],\n [1109080075, 1109080, \"TUHA GAMPONG GAJAH\"],\n [1109080076, 1109080, \"DAYAH TIDIEK\"],\n [1109080077, 1109080, \"KEUMANGAN CUT\"],\n [1109081001, 1109081, \"TONG PERIA\"],\n [1109081002, 1109081, \"TONG WENG\"],\n [1109081003, 1109081, \"BARIEH\"],\n [1109081004, 1109081, \"BLANGONG BASAH\"],\n [1109081005, 1109081, \"KULAM ARA\"],\n [1109081006, 1109081, \"DIDOH\"],\n [1109081007, 1109081, \"RINTI\"],\n [1109081008, 1109081, \"BALEE UJONG RIMBA\"],\n [1109081009, 1109081, \"MEUGIT\"],\n [1109081010, 1109081, \"EMPEH\"],\n [1109081011, 1109081, \"MESJID GUMPUENG\"],\n [1109081012, 1109081, \"PULO DRIEN\"],\n [1109081013, 1109081, \"SIMBE\"],\n [1109081014, 1109081, \"ULEE GAMPONG\"],\n [1109081015, 1109081, \"MON ARA\"],\n [1109081016, 1109081, \"BAROH\"],\n [1109081017, 1109081, \"BARO UJONG RIMBA\"],\n [1109081018, 1109081, \"BLANG RIEK\"],\n [1109081019, 1109081, \"PALOH RAYA\"],\n [1109081020, 1109081, \"NIBONG\"],\n [1109081021, 1109081, \"PALOH LHOK USI\"],\n [1109081022, 1109081, \"CAMPLI USI\"],\n [1109081023, 1109081, \"DAYAH USI\"],\n [1109081024, 1109081, \"PALOH TINGGI\"],\n [1109081025, 1109081, \"RAMBONG\"],\n [1109081026, 1109081, \"MEE TANJONG USI\"],\n [1109081027, 1109081, \"MESJID USI\"],\n [1109081028, 1109081, \"GAMPONG COT USI\"],\n [1109081029, 1109081, \"REUBAT\"],\n [1109081030, 1109081, \"TIBA RAYA\"],\n [1109081031, 1109081, \"MESJID TIBA\"],\n [1109081032, 1109081, \"JOJO\"],\n [1109081033, 1109081, \"GAMPONG LADA\"],\n [1109081034, 1109081, \"DAYAH KUMBA\"],\n [1109081035, 1109081, \"COT KUTHANG\"],\n [1109081036, 1109081, \"MESJID JEURAT MANYANG\"],\n [1109081037, 1109081, \"SAGOE TEUMPEUN\"],\n [1109081038, 1109081, \"DAYAH TANOH\"],\n [1109081039, 1109081, \"BEUREU EH II\"],\n [1109081040, 1109081, \"JIEM\"],\n [1109081041, 1109081, \"ULEE TUTUE\"],\n [1109081042, 1109081, \"MECAT ADAN\"],\n [1109081043, 1109081, \"KARIENG\"],\n [1109081044, 1109081, \"RAMBOT ADAN\"],\n [1109081045, 1109081, \"ALUE ADAN\"],\n [1109081046, 1109081, \"DAYAH ADAN\"],\n [1109081047, 1109081, \"MEE ADAN\"],\n [1109081048, 1109081, \"JUMPHOIH ADAN\"],\n [1109090001, 1109090, \"BLANG RIKUI\"],\n [1109090002, 1109090, \"PANTON BEUNOT\"],\n [1109090003, 1109090, \"DAYA COT\"],\n [1109090004, 1109090, \"DAYA KAMPONG BARO\"],\n [1109090005, 1109090, \"DAYA BAROH\"],\n [1109090006, 1109090, \"DAYA TEUNGOH\"],\n [1109090007, 1109090, \"PULO KEUNARI\"],\n [1109090008, 1109090, \"PULO GLUMPANG\"],\n [1109090009, 1109090, \"PEUNADOK\"],\n [1109090010, 1109090, \"PULO TAMBO\"],\n [1109090011, 1109090, \"MNS. MANCANG\"],\n [1109090012, 1109090, \"MNS. PANAH\"],\n [1109090013, 1109090, \"PULO MESJID\"],\n [1109090014, 1109090, \"TRIENG CUDO TUNONG\"],\n [1109090015, 1109090, \"MAMPREE\"],\n [1109090016, 1109090, \"TRIENG CUDO BAROH\"],\n [1109090017, 1109090, \"RABO\"],\n [1109090018, 1109090, \"PULO SIBLAH\"],\n [1109090019, 1109090, \"LHOK IGEUH\"],\n [1109100001, 1109100, \"PULO SEJAHTRA\"],\n [1109100002, 1109100, \"KRUENG MEURIAM\"],\n [1109100003, 1109100, \"PEUNALOM II\"],\n [1109100004, 1109100, \"PEUNALOM I\"],\n [1109100005, 1109100, \"PULO BARO\"],\n [1109100006, 1109100, \"KEUDE TANGSE\"],\n [1109100007, 1109100, \"PULO MESJID I\"],\n [1109100008, 1109100, \"PULO MESJID II\"],\n [1109100009, 1109100, \"BLANG JEURAT\"],\n [1109100010, 1109100, \"LAYAN\"],\n [1109100011, 1109100, \"BLANG DALAM\"],\n [1109100012, 1109100, \"RANTO PANYANG\"],\n [1109100013, 1109100, \"BLANG TEUNGOH\"],\n [1109100014, 1109100, \"BLANG BUNGONG\"],\n [1109100015, 1109100, \"BLANG DHOD\"],\n [1109100016, 1109100, \"PAYA GUCI\"],\n [1109100017, 1109100, \"ULEE GUNONG\"],\n [1109100018, 1109100, \"KEUBON NILAM\"],\n [1109100019, 1109100, \"PULO SEUNONG\"],\n [1109100020, 1109100, \"PULO KAWA\"],\n [1109100021, 1109100, \"NEUBOK BADEUK\"],\n [1109100022, 1109100, \"BLANG MALO\"],\n [1109100023, 1109100, \"KRUENG SEUKEUK\"],\n [1109100024, 1109100, \"BEUNGGA\"],\n [1109100025, 1109100, \"PULO IEE\"],\n [1109100026, 1109100, \"ALUE CALONG\"],\n [1109100027, 1109100, \"LHOK KEUTAPANG\"],\n [1109100029, 1109100, \"BLANG PANDAK\"],\n [1109111001, 1109111, \"PAKO\"],\n [1109111002, 1109111, \"TUNONG\"],\n [1109111003, 1109111, \"PULO CAHI\"],\n [1109111004, 1109111, \"PULO SEUPENG\"],\n [1109111005, 1109111, \"PAPEUEN NICAH\"],\n [1109111006, 1109111, \"UGADENG\"],\n [1109111007, 1109111, \"KUMBANG\"],\n [1109111008, 1109111, \"SAGOE\"],\n [1109111009, 1109111, \"DAYAH KEUMALA\"],\n [1109111010, 1109111, \"RHENG\"],\n [1109111011, 1109111, \"MESJID NICAH\"],\n [1109111012, 1109111, \"ASAN NICAH\"],\n [1109111013, 1109111, \"PALOH TEUNGOH\"],\n [1109111014, 1109111, \"JIJIEM\"],\n [1109111015, 1109111, \"COT KREH\"],\n [1109111016, 1109111, \"PULO BARO\"],\n [1109111017, 1109111, \"COT NURAN\"],\n [1109111018, 1109111, \"PULO PANTE\"],\n [1109112001, 1109112, \"ALUE\"],\n [1109112002, 1109112, \"BLANG THO\"],\n [1109112003, 1109112, \"ASAN TONGPEUDENG\"],\n [1109112004, 1109112, \"MESJID TONGPEUDENG\"],\n [1109112005, 1109112, \"PULO LOIH\"],\n [1109112006, 1109112, \"PULO RAYA\"],\n [1109112007, 1109112, \"PALOH NALEUNG\"],\n [1109112008, 1109112, \"DAYAH MENARA\"],\n [1109112009, 1109112, \"PANTE SIREN\"],\n [1109112010, 1109112, \"UKE\"],\n [1109112011, 1109112, \"PANTE KULU\"],\n [1109112012, 1109112, \"CUT\"],\n [1109112013, 1109112, \"LINGKOK\"],\n [1109120001, 1109120, \"BARIEH\"],\n [1109120002, 1109120, \"KANDANG\"],\n [1109120003, 1109120, \"PALOH JEUREULA\"],\n [1109120004, 1109120, \"COT CANTEK\"],\n [1109120005, 1109120, \"LHOK PANAH\"],\n [1109120006, 1109120, \"BLANG COT\"],\n [1109120007, 1109120, \"BLANG KUMOT TUNONG\"],\n [1109120008, 1109120, \"MURONG COT\"],\n [1109120009, 1109120, \"MURONG LHOK\"],\n [1109120010, 1109120, \"GAMPONG COT\"],\n [1109120011, 1109120, \"RIWEUK\"],\n [1109120012, 1109120, \"MANCANG\"],\n [1109120013, 1109120, \"KP PISANG BUCUE\"],\n [1109120014, 1109120, \"LINGKOK\"],\n [1109120015, 1109120, \"CUMBOK LIE\"],\n [1109120016, 1109120, \"BLANG KUMOT BAROH\"],\n [1109120017, 1109120, \"LAM UJONG\"],\n [1109120018, 1109120, \"CUMBOK NIWA\"],\n [1109120019, 1109120, \"DAYAH KP PISANG\"],\n [1109120020, 1109120, \"LEUPUEM MESJID\"],\n [1109120021, 1109120, \"JURONG PANTE\"],\n [1109120022, 1109120, \"BEUTONG PERLAK\"],\n [1109120023, 1109120, \"BUCUE\"],\n [1109120024, 1109120, \"BALUE TANOH\"],\n [1109120025, 1109120, \"COT SUKON\"],\n [1109120026, 1109120, \"BALUE KULU\"],\n [1109120027, 1109120, \"LHOK ME\"],\n [1109120028, 1109120, \"BEUTONG POCUT\"],\n [1109120029, 1109120, \"PASAR KOTA BAKTI\"],\n [1109120030, 1109120, \"GAMPONG BARO\"],\n [1109120031, 1109120, \"MNS BLANG\"],\n [1109120032, 1109120, \"MNS BALE\"],\n [1109120033, 1109120, \"GAMPONG JUMPA\"],\n [1109120034, 1109120, \"PANTE KRUENG\"],\n [1109120035, 1109120, \"LAMEUE MNS RAYA\"],\n [1109120036, 1109120, \"DAYAH TUHA\"],\n [1109120037, 1109120, \"LAMEUE MNS BARO\"],\n [1109120038, 1109120, \"PULO JUMPA\"],\n [1109120039, 1109120, \"PULO KEUREMBOK\"],\n [1109120040, 1109120, \"PERLAK ASAN\"],\n [1109120041, 1109120, \"PERLAK BAROH\"],\n [1109120042, 1109120, \"MALI LAMKUTA\"],\n [1109120043, 1109120, \"MALI UKE\"],\n [1109120044, 1109120, \"MALI GUYUI\"],\n [1109120045, 1109120, \"TANG KUENG\"],\n [1109120046, 1109120, \"LAMEU MNS LEUNG\"],\n [1109120047, 1109120, \"LHOK EMPEH\"],\n [1109120048, 1109120, \"MALI MESJID\"],\n [1109120049, 1109120, \"MALI COT\"],\n [1109130001, 1109130, \"TUHA LALA\"],\n [1109130002, 1109130, \"MEUYUB LALA\"],\n [1109130003, 1109130, \"KULU\"],\n [1109130004, 1109130, \"LHOK LUBU\"],\n [1109130005, 1109130, \"KRUENG LALA\"],\n [1109130006, 1109130, \"BABAH JURONG\"],\n [1109130007, 1109130, \"MESJID ANDEUE\"],\n [1109130008, 1109130, \"DAYAH ANDEUE\"],\n [1109130009, 1109130, \"DAYAH SINTHOP\"],\n [1109130010, 1109130, \"PULO TANJONG\"],\n [1109130011, 1109130, \"TEUMEUCET\"],\n [1109130012, 1109130, \"BLANG CUT\"],\n [1109130013, 1109130, \"KUMBANG\"],\n [1109130014, 1109130, \"BLANG\"],\n [1109130015, 1109130, \"LAGANG\"],\n [1109130016, 1109130, \"TUNONG ILOT\"],\n [1109130017, 1109130, \"BAROH ILOT\"],\n [1109130018, 1109130, \"TEUNGOH ILOT\"],\n [1109130019, 1109130, \"MESJID ILOT\"],\n [1109130020, 1109130, \"ARA BUNGKOK\"],\n [1109140001, 1109140, \"SEUNADEU KUNYET\"],\n [1109140002, 1109140, \"BLANG GUNCI KUNYET\"],\n [1109140003, 1109140, \"KAMBUEK NICAH\"],\n [1109140004, 1109140, \"KAMBUEK PAYAPI KUNYET\"],\n [1109140005, 1109140, \"BARO KUNYET\"],\n [1109140006, 1109140, \"HAGU KUNYET\"],\n [1109140007, 1109140, \"PIALA KUNYET\"],\n [1109140008, 1109140, \"MESJID KUNYET\"],\n [1109140009, 1109140, \"DAYAH TANOH KUNYET\"],\n [1109140010, 1109140, \"COT KUNYET\"],\n [1109140011, 1109140, \"BLANG GEULEUDIENG\"],\n [1109140012, 1109140, \"MESJID GEULEUDIENG\"],\n [1109140013, 1109140, \"PERLAK PEUDAYA\"],\n [1109140014, 1109140, \"DAYAH BAROH KUNYET\"],\n [1109140015, 1109140, \"BUNI REULING PEUDAYA\"],\n [1109140016, 1109140, \"BULOH PEUDAYA\"],\n [1109140017, 1109140, \"MESJID PEUDAYA\"],\n [1109140018, 1109140, \"CUT PEUDAYA\"],\n [1109140019, 1109140, \"TUNONG PEUDAYA\"],\n [1109140020, 1109140, \"SEUKEUN PEUDAYA\"],\n [1109140021, 1109140, \"TUHA PEUDAYA\"],\n [1109140022, 1109140, \"GEULUMPANG GLD\"],\n [1109140023, 1109140, \"KREET PALOH\"],\n [1109140024, 1109140, \"CAPA PALOH\"],\n [1109140025, 1109140, \"JURONG ANOE\"],\n [1109140026, 1109140, \"TEUGOH PEUDAYA\"],\n [1109140027, 1109140, \"DAYAH PEUDAYA\"],\n [1109140028, 1109140, \"CUT PALOH\"],\n [1109140029, 1109140, \"PANTE CERMEN\"],\n [1109140030, 1109140, \"MEUKE GOGO\"],\n [1109140031, 1109140, \"RAYA GOGO\"],\n [1109140032, 1109140, \"BULOH GOGO\"],\n [1109140033, 1109140, \"KUMBANG GOGO\"],\n [1109140034, 1109140, \"TUHA GOGO\"],\n [1109140035, 1109140, \"GLEE GOGO\"],\n [1109140036, 1109140, \"PALOH JEURAT BEURABO\"],\n [1109140037, 1109140, \"ADANG BEURABO\"],\n [1109140038, 1109140, \"SEULEUNGGING BEURABO\"],\n [1109140039, 1109140, \"MEUKE BEURABO\"],\n [1109140040, 1109140, \"MESJID BEURABO\"],\n [1109140041, 1109140, \"MESJID GOGO\"],\n [1109140042, 1109140, \"ARON BUNOT GOGO\"],\n [1109140043, 1109140, \"TEUNGOH DRIEN GOGO\"],\n [1109140044, 1109140, \"PASAR PALOH\"],\n [1109140045, 1109140, \"SIRON PALOH\"],\n [1109140046, 1109140, \"BALEE PALOH\"],\n [1109140047, 1109140, \"SUYO PALOH\"],\n [1109140048, 1109140, \"GAMPONG COT PALOH\"],\n [1109140049, 1109140, \"PULO HAGU TANJUNG\"],\n [1109140050, 1109140, \"TRIENG PALOH\"],\n [1109140051, 1109140, \"LEUHOB PALOH\"],\n [1109140052, 1109140, \"PANTE CRUNG TANJONG\"],\n [1109140053, 1109140, \"GRONG GRONG GOGO\"],\n [1109140054, 1109140, \"SEUKEUM BROK BEURABO\"],\n [1109140055, 1109140, \"BARO BEURABO\"],\n [1109140056, 1109140, \"MEURIYA TANJONG\"],\n [1109140057, 1109140, \"KHANG TANJONG\"],\n [1109140058, 1109140, \"LEUN TANJONG\"],\n [1109140059, 1109140, \"COT KETAPANG TANJONG\"],\n [1109140060, 1109140, \"SIRON TANJONG\"],\n [1109140061, 1109140, \"MESJID TANJONG\"],\n [1109140062, 1109140, \"KEUPULA TANJONG\"],\n [1109140063, 1109140, \"JOK TANJONG\"],\n [1109140064, 1109140, \"TUNONG TANJONG\"],\n [1109150001, 1109150, \"KRUENG COT\"],\n [1109150002, 1109150, \"DAYAH BARO\"],\n [1109150003, 1109150, \"DAYAH BEUAH\"],\n [1109150004, 1109150, \"MESJID BEUAH\"],\n [1109150005, 1109150, \"SUKON LHONG\"],\n [1109150006, 1109150, \"SEUPEUNG\"],\n [1109150007, 1109150, \"LHEE MEUNASAH\"],\n [1109150008, 1109150, \"PUUK\"],\n [1109150009, 1109150, \"ULEE TUTUE RAYA\"],\n [1109150010, 1109150, \"MESJID AREE\"],\n [1109150011, 1109150, \"KEURUMBOK\"],\n [1109150012, 1109150, \"PULO TUNONG\"],\n [1109150013, 1109150, \"TUNONG\"],\n [1109150014, 1109150, \"RAYA\"],\n [1109150015, 1109150, \"DABOH\"],\n [1109150016, 1109150, \"CUT\"],\n [1109150017, 1109150, \"TANJUNG\"],\n [1109150018, 1109150, \"BULOH\"],\n [1109150019, 1109150, \"DAYAH REUBEE\"],\n [1109150020, 1109150, \"BUNGO\"],\n [1109150021, 1109150, \"KUMBANG\"],\n [1109150022, 1109150, \"REUBA\"],\n [1109150023, 1109150, \"KRUENG\"],\n [1109150024, 1109150, \"NEULOP\"],\n [1109150025, 1109150, \"GEUDONG\"],\n [1109150026, 1109150, \"MESJID REUBEE\"],\n [1109150027, 1109150, \"CEURIH KEUPULA\"],\n [1109150028, 1109150, \"PULO BAROH\"],\n [1109150029, 1109150, \"KEUTAPANG AREE\"],\n [1109150030, 1109150, \"PANTEE\"],\n [1109150031, 1109150, \"CEURIH BLANG MEE\"],\n [1109150032, 1109150, \"CEURIH COT\"],\n [1109150033, 1109150, \"CEURIH ALUE\"],\n [1109150034, 1109150, \"REUNTOH\"],\n [1109150035, 1109150, \"JAMBEE\"],\n [1109150036, 1109150, \"GLEE\"],\n [1109150039, 1109150, \"KEUTAPANG BAMBONG\"],\n [1109150040, 1109150, \"PANGOE\"],\n [1109150041, 1109150, \"METAREUM\"],\n [1109150042, 1109150, \"LUENG DAMA\"],\n [1109150043, 1109150, \"RUSEP\"],\n [1109150044, 1109150, \"MESJID BAMBONG\"],\n [1109150045, 1109150, \"SAGOE\"],\n [1109150046, 1109150, \"SEUKEUM\"],\n [1109151001, 1109151, \"BEUREULEUNG\"],\n [1109151002, 1109151, \"PANGGE/PILOK\"],\n [1109151003, 1109151, \"NICAH\"],\n [1109151004, 1109151, \"MESJID MEMEUANEUK\"],\n [1109151005, 1109151, \"SENTOSA\"],\n [1109151006, 1109151, \"SUKON\"],\n [1109151007, 1109151, \"DAKA\"],\n [1109151008, 1109151, \"BAROH BEUREULEUNG\"],\n [1109151009, 1109151, \"TEUNGOH BEUREULEUNG\"],\n [1109151010, 1109151, \"MESJID BEUREULEUNG\"],\n [1109151011, 1109151, \"MEE BEUREULEUNG\"],\n [1109151012, 1109151, \"PAYA\"],\n [1109151013, 1109151, \"GINTONG\"],\n [1109151014, 1109151, \"KARIENG\"],\n [1109151015, 1109151, \"GRONG GRONG\"],\n [1109160001, 1109160, \"TUHA SUWIEK\"],\n [1109160002, 1109160, \"MESJID SUWIEK\"],\n [1109160003, 1109160, \"TEUNGOH SUWIEK\"],\n [1109160004, 1109160, \"BEUREUDEUP\"],\n [1109160005, 1109160, \"SUKON ULGA\"],\n [1109160006, 1109160, \"PEUTOE\"],\n [1109160007, 1109160, \"GLEE GAPUI\"],\n [1109160008, 1109160, \"MESJID ULGA\"],\n [1109160009, 1109160, \"BLANG RAPAI\"],\n [1109160010, 1109160, \"BALEE BAROH GAPUI\"],\n [1109160011, 1109160, \"NEULOP II\"],\n [1109160012, 1109160, \"BARO GAPUI\"],\n [1109160013, 1109160, \"MESJID DIJIEM\"],\n [1109160014, 1109160, \"GUCI\"],\n [1109160015, 1109160, \"WAKEUEH\"],\n [1109160016, 1109160, \"DAYAH BIE\"],\n [1109160017, 1109160, \"JURONG\"],\n [1109160018, 1109160, \"BARO BLUEK\"],\n [1109160019, 1109160, \"RUMIA\"],\n [1109160020, 1109160, \"KEUTAPANG\"],\n [1109160021, 1109160, \"COT SEUKEE\"],\n [1109160022, 1109160, \"DRIEN\"],\n [1109160023, 1109160, \"BALE BAROH BLUEK\"],\n [1109160024, 1109160, \"TEUNGOH BLANG\"],\n [1109160025, 1109160, \"MEULAYU\"],\n [1109160026, 1109160, \"SUKON TUNGKOP\"],\n [1109160027, 1109160, \"KEUBANG\"],\n [1109160028, 1109160, \"GAROT CUT\"],\n [1109160029, 1109160, \"RAWA TUNGKOP\"],\n [1109160030, 1109160, \"MESJID TUNGKOP\"],\n [1109160031, 1109160, \"LAMREUNEUNG\"],\n [1109160032, 1109160, \"LAMKABU\"],\n [1109160033, 1109160, \"MESJID BARO\"],\n [1109160034, 1109160, \"TAMPIENG BAROH\"],\n [1109160035, 1109160, \"DAYAH CALEUE\"],\n [1109160036, 1109160, \"TAMPIENG TUNONG\"],\n [1109160037, 1109160, \"ULEE BIRAH\"],\n [1109160038, 1109160, \"BLANG LHOK KAJU\"],\n [1109160039, 1109160, \"BARO JRUEK\"],\n [1109160040, 1109160, \"MESJID LAM UJONG\"],\n [1109160041, 1109160, \"TUNGKOP CUT\"],\n [1109160042, 1109160, \"DAYAH MUARA GAROT\"],\n [1109160043, 1109160, \"BLANG GAROT\"],\n [1109160044, 1109160, \"PULO GAMPONG U\"],\n [1109160045, 1109160, \"DAYAH KEURAKO\"],\n [1109160046, 1109160, \"YUB MEE\"],\n [1109160047, 1109160, \"RAYA LHOK KAJU\"],\n [1109160048, 1109160, \"PANTE GAROT\"],\n [1109160049, 1109160, \"PANTE LHOK KAJU\"],\n [1109170001, 1109170, \"BLUEK ARAB\"],\n [1109170002, 1109170, \"SIALET ALET\"],\n [1109170003, 1109170, \"MEE TANOH\"],\n [1109170004, 1109170, \"PUUK\"],\n [1109170005, 1109170, \"BALEE\"],\n [1109170006, 1109170, \"MEUNJEE MESJID\"],\n [1109170007, 1109170, \"SUMBOE BUGA\"],\n [1109170008, 1109170, \"RAMBAYAN KUPULA\"],\n [1109170009, 1109170, \"RAMBAYAN LUENG\"],\n [1109170010, 1109170, \"DAYAH BUBUE\"],\n [1109170011, 1109170, \"TANJONG HAGU\"],\n [1109170012, 1109170, \"DUA PAYA\"],\n [1109170013, 1109170, \"MEE LAMPOIH SAKA\"],\n [1109170014, 1109170, \"LUENG GUCI RUMPONG\"],\n [1109170015, 1109170, \"COT MULU\"],\n [1109170016, 1109170, \"KUMBANG WAIDO\"],\n [1109170017, 1109170, \"WAIDO\"],\n [1109170018, 1109170, \"DAYAH SEUMIDEN\"],\n [1109170019, 1109170, \"BLANG SEUPENG\"],\n [1109170020, 1109170, \"DAYAH MUARA\"],\n [1109170021, 1109170, \"MEULEUWEUK\"],\n [1109170022, 1109170, \"JIM\"],\n [1109170023, 1109170, \"KABAT\"],\n [1109170024, 1109170, \"LEUHOB\"],\n [1109170025, 1109170, \"PEUNAYONG\"],\n [1109170026, 1109170, \"MESJID GUCI RUMPONG\"],\n [1109170027, 1109170, \"MEE KRUKON\"],\n [1109170028, 1109170, \"REUBA WAIDO\"],\n [1109170029, 1109170, \"CEMPALA KUNENG\"],\n [1109170030, 1109170, \"ULEE COT SEUPENG\"],\n [1109170031, 1109170, \"SAWIET\"],\n [1109170032, 1109170, \"ULEE TUTUE\"],\n [1109170033, 1109170, \"KEUTAPANG\"],\n [1109170034, 1109170, \"JURONG\"],\n [1109170035, 1109170, \"RAYA KRUENG SEUMIDEN\"],\n [1109170036, 1109170, \"KRUENG SEUMIDEN\"],\n [1109170037, 1109170, \"SUKON KRUENG SEUMIDEN\"],\n [1109170038, 1109170, \"BLANG KRUENG SEUMIDEN\"],\n [1109170039, 1109170, \"KEUREUMBOK\"],\n [1109170040, 1109170, \"MEE KRUENG SEUMIDEN\"],\n [1109170041, 1109170, \"BLANG RAYA\"],\n [1109170042, 1109170, \"DAYAH TEUNGKU\"],\n [1109170043, 1109170, \"JURONG RAYA\"],\n [1109170044, 1109170, \"BALEE RASTONG\"],\n [1109170045, 1109170, \"LUENG MESJID\"],\n [1109170046, 1109170, \"TEUNGOH BAROH\"],\n [1109170047, 1109170, \"MEE HAGU\"],\n [1109170048, 1109170, \"DAYAH SUKON\"],\n [1109180001, 1109180, \"BENTAYAN\"],\n [1109180002, 1109180, \"MEUNASAH KANDANG\"],\n [1109180003, 1109180, \"PUUK\"],\n [1109180004, 1109180, \"JURONG BALE\"],\n [1109180005, 1109180, \"ARON ASAN KUMBANG\"],\n [1109180006, 1109180, \"MEUNASAH MESJID\"],\n [1109180007, 1109180, \"MEUNASAH MEE\"],\n [1109180008, 1109180, \"MEUNASAH TEUNGOH\"],\n [1109180009, 1109180, \"ASAN\"],\n [1109180010, 1109180, \"PANJOU\"],\n [1109180011, 1109180, \"JEUMEURANG\"],\n [1109180012, 1109180, \"PUSONG\"],\n [1109180013, 1109180, \"PASI LHOK\"],\n [1109180014, 1109180, \"KAYEE PANYANG\"],\n [1109180015, 1109180, \"TANJONG\"],\n [1109180016, 1109180, \"LAMKAWE\"],\n [1109180017, 1109180, \"BLANG CUT\"],\n [1109180018, 1109180, \"GEULUMPANG\"],\n [1109180019, 1109180, \"ARON KUTA BARO\"],\n [1109180020, 1109180, \"ARAIH\"],\n [1109180021, 1109180, \"BARAT\"],\n [1109180022, 1109180, \"TEUMPEUN\"],\n [1109180023, 1109180, \"REUNG REUNG\"],\n [1109180024, 1109180, \"DAYAH BLANG\"],\n [1109180025, 1109180, \"CEBREK\"],\n [1109180026, 1109180, \"DAYAH MON ARA\"],\n [1109180027, 1109180, \"JURONG MESJID\"],\n [1109180028, 1109180, \"MEUNASAH GANTUNG\"],\n [1109180029, 1109180, \"BABAH JURONG\"],\n [1109180030, 1109180, \"MEURAKSA\"],\n [1109180031, 1109180, \"ARUSAN\"],\n [1109180032, 1109180, \"JARENG\"],\n [1109180033, 1109180, \"KEUPULA\"],\n [1109180034, 1109180, \"KEUREUMBOK\"],\n [1109180035, 1109180, \"MATANG KULI\"],\n [1109180036, 1109180, \"MEUNASAH MANYANG\"],\n [1109180037, 1109180, \"MEUNASAH KRUENG\"],\n [1109180038, 1109180, \"MEUNASAH BARO\"],\n [1109180039, 1109180, \"SUKON\"],\n [1109180040, 1109180, \"ARA\"],\n [1109180041, 1109180, \"KRUENG DHOU\"],\n [1109180042, 1109180, \"TANJONG KRUENG\"],\n [1109180043, 1109180, \"LANCANG\"],\n [1109180044, 1109180, \"KEUDE IE LEUBEUE\"],\n [1109180045, 1109180, \"PASI IE LEUBEUE\"],\n [1109190001, 1109190, \"RAYA PAYA\"],\n [1109190002, 1109190, \"MESJID BUNGIE\"],\n [1109190003, 1109190, \"LILIEP\"],\n [1109190004, 1109190, \"UJONG BAROH\"],\n [1109190005, 1109190, \"SEUK CUKOK\"],\n [1109190006, 1109190, \"PULO TU\"],\n [1109190007, 1109190, \"PALOH TOK DUE\"],\n [1109190008, 1109190, \"MEUNASAH JUERONG\"],\n [1109190009, 1109190, \"KAMPUNG BLANG\"],\n [1109190010, 1109190, \"KULAM BARO\"],\n [1109190011, 1109190, \"LINGGONG SAGOE\"],\n [1109190012, 1109190, \"BLANG LEUEN\"],\n [1109190013, 1109190, \"MESJID TUNGUE\"],\n [1109190014, 1109190, \"ULEE BARAT\"],\n [1109190015, 1109190, \"EMPEH\"],\n [1109190016, 1109190, \"PADANG\"],\n [1109190017, 1109190, \"DAYAH BLANG\"],\n [1109190018, 1109190, \"TEUNGOH MANGKI\"],\n [1109190019, 1109190, \"DAYAH BLANG CUT\"],\n [1109190020, 1109190, \"NIEN\"],\n [1109190021, 1109190, \"CURUCOK TIMUR\"],\n [1109190022, 1109190, \"JAJA TUNONG\"],\n [1109190023, 1109190, \"UJONG GAMPONG\"],\n [1109190024, 1109190, \"LHEUE\"],\n [1109190025, 1109190, \"JAJA BAROH\"],\n [1109190026, 1109190, \"PULO RAYA\"],\n [1109190027, 1109190, \"CURUCOK BARAT\"],\n [1109190028, 1109190, \"CURUCOK SAGOE\"],\n [1109190029, 1109190, \"COT ARA\"],\n [1109190030, 1109190, \"MADIKA\"],\n [1109190031, 1109190, \"SAGOE\"],\n [1109190032, 1109190, \"BUNIEN\"],\n [1109190033, 1109190, \"COT PALEUE\"],\n [1109190034, 1109190, \"RAYA PALEUE\"],\n [1109190035, 1109190, \"PANTE\"],\n [1109190036, 1109190, \"PULO BLANG\"],\n [1109190037, 1109190, \"GONG\"],\n [1109190038, 1109190, \"MESJID GIGIENG\"],\n [1109190039, 1109190, \"COT JAJA\"],\n [1109190040, 1109190, \"PEUKAN TUHA\"],\n [1109190041, 1109190, \"PULO GAJAH MATE\"],\n [1109190042, 1109190, \"MEUNASAH BLANG\"],\n [1109190043, 1109190, \"MAMPLAM\"],\n [1109190044, 1109190, \"LAMBIDENG\"],\n [1109190045, 1109190, \"SEUKEE\"],\n [1109190046, 1109190, \"MEUNASAH LHEE\"],\n [1109190047, 1109190, \"MANTAK RAYA\"],\n [1109190048, 1109190, \"DAYAH LAMPOH AWE\"],\n [1109190049, 1109190, \"KUPULA\"],\n [1109190050, 1109190, \"SUKON\"],\n [1109190051, 1109190, \"CEBREK\"],\n [1109190052, 1109190, \"PEUKAN SOET\"],\n [1109200001, 1109200, \"TANJONG KRUENG\"],\n [1109200002, 1109200, \"MNS PEUKAN\"],\n [1109200003, 1109200, \"GAMPONG ASAN\"],\n [1109200004, 1109200, \"BLANG ASAN\"],\n [1109200005, 1109200, \"BLOK SAWAH\"],\n [1109200006, 1109200, \"PANTE TEUNGOH\"],\n [1109200007, 1109200, \"KRAMAT DALAM\"],\n [1109200008, 1109200, \"KRAMAT LUAR\"],\n [1109200009, 1109200, \"LAMPOH KRUENG\"],\n [1109200010, 1109200, \"PASI PEUKAN BARO\"],\n [1109200011, 1109200, \"PASI RAWA\"],\n [1109200012, 1109200, \"KUALA PIDIE\"],\n [1109200013, 1109200, \"BLOK BENGKEL\"],\n [1109200014, 1109200, \"BENTENG\"],\n [1109200015, 1109200, \"BLANG PASEH\"],\n [1109210001, 1109210, \"TUMPOK LAWEUNG\"],\n [1109210002, 1109210, \"ULEE CEUE KEULIBEUT\"],\n [1109210003, 1109210, \"KEUDEE\"],\n [1109210004, 1109210, \"ULEE TUTUE\"],\n [1109210005, 1109210, \"DALUENG\"],\n [1109210006, 1109210, \"JAWA\"],\n [1109210007, 1109210, \"ABO\"],\n [1109210008, 1109210, \"MEUCAT\"],\n [1109210009, 1109210, \"BAYU\"],\n [1109210010, 1109210, \"DAYAH TEUBENG\"],\n [1109210011, 1109210, \"GAMPONG\"],\n [1109210012, 1109210, \"COT GEUNDUEK\"],\n [1109210013, 1109210, \"DAYAH TANOH\"],\n [1109210014, 1109210, \"DAYAH TUTONG\"],\n [1109210015, 1109210, \"RAYA SANGGEUE\"],\n [1109210016, 1109210, \"SIRONG\"],\n [1109210017, 1109210, \"KEUTUMBU\"],\n [1109210018, 1109210, \"JEULEUPE\"],\n [1109210019, 1109210, \"KRUENG DHOE\"],\n [1109210020, 1109210, \"KEUTAPANG\"],\n [1109210021, 1109210, \"KAMPUNG BARAT\"],\n [1109210022, 1109210, \"KAMPONG PUKAT\"],\n [1109210023, 1109210, \"LABUI\"],\n [1109210024, 1109210, \"TANJONG\"],\n [1109210025, 1109210, \"TIJUE\"],\n [1109210026, 1109210, \"PAYA\"],\n [1109210027, 1109210, \"ULEE CEUE TEUBENG\"],\n [1109210028, 1109210, \"DAYAH TEUNGOH\"],\n [1109210029, 1109210, \"MESJID RUNTOH\"],\n [1109210030, 1109210, \"BAROH\"],\n [1109210031, 1109210, \"PUUK\"],\n [1109210032, 1109210, \"LAMPEUDEU TUNONG\"],\n [1109210033, 1109210, \"LAMPEUDEU BAROH\"],\n [1109210034, 1109210, \"LAMPOH LADA\"],\n [1109210035, 1109210, \"KEUNIREE\"],\n [1109210036, 1109210, \"COT TEUNGOH\"],\n [1109210037, 1109210, \"COT RHENG\"],\n [1109210038, 1109210, \"TUMPOK 40\"],\n [1109210039, 1109210, \"PULO PISANG\"],\n [1109210040, 1109210, \"PALOH\"],\n [1109210041, 1109210, \"LAMKUTA\"],\n [1109210042, 1109210, \"LHOK KEUTAPANG\"],\n [1109210043, 1109210, \"TIBANG\"],\n [1109210044, 1109210, \"JEUMPA\"],\n [1109210045, 1109210, \"UJONG LANGGO\"],\n [1109210046, 1109210, \"BATEE\"],\n [1109210047, 1109210, \"BIE\"],\n [1109210048, 1109210, \"BLANGKULA\"],\n [1109210049, 1109210, \"ALUE\"],\n [1109210050, 1109210, \"PAYA LINTEUNG\"],\n [1109210051, 1109210, \"SEUKEE\"],\n [1109210052, 1109210, \"SEURI WEUK\"],\n [1109210053, 1109210, \"PULI\"],\n [1109210054, 1109210, \"MESJID UTUE\"],\n [1109210055, 1109210, \"SEUKEUMBROK\"],\n [1109210056, 1109210, \"LEUBUE\"],\n [1109210057, 1109210, \"COT GEULUMPANG\"],\n [1109210058, 1109210, \"GAMPONG BARO\"],\n [1109210059, 1109210, \"GAJAH AYEE\"],\n [1109210060, 1109210, \"RAWA\"],\n [1109210061, 1109210, \"PEUKAN BARO\"],\n [1109210062, 1109210, \"PULO BUBEE\"],\n [1109210063, 1109210, \"MANCANG\"],\n [1109210064, 1109210, \"RAYA UTUE\"],\n [1109220001, 1109220, \"KAREUNG\"],\n [1109220002, 1109220, \"AWE\"],\n [1109220003, 1109220, \"RUNGKOM\"],\n [1109220004, 1109220, \"PULO PANDE\"],\n [1109220005, 1109220, \"MEE\"],\n [1109220006, 1109220, \"ALUE LADA\"],\n [1109220007, 1109220, \"SEULATAN\"],\n [1109220008, 1109220, \"TUHA\"],\n [1109220009, 1109220, \"TEUPIN RAYA\"],\n [1109220010, 1109220, \"CALONG CUT\"],\n [1109220011, 1109220, \"DAYAH\"],\n [1109220012, 1109220, \"MEUCAT\"],\n [1109220013, 1109220, \"ARON\"],\n [1109220014, 1109220, \"MESJID\"],\n [1109220015, 1109220, \"BINTANG HU\"],\n [1109220016, 1109220, \"DAYAH TUHA\"],\n [1109220017, 1109220, \"DAYAH BAROH\"],\n [1109220018, 1109220, \"PULO TUKOK\"],\n [1109220019, 1109220, \"GLUMPANG LHEE\"],\n [1109220020, 1109220, \"GEUNTENG TIMUR\"],\n [1109220021, 1109220, \"GEUNTENG BARAT\"],\n [1109220022, 1109220, \"PULO BUNGONG\"],\n [1109220023, 1109220, \"TEUPIN JEUE\"],\n [1109220024, 1109220, \"NEUHEUN\"],\n [1109220025, 1109220, \"CRUENG\"],\n [1109220026, 1109220, \"KULAM\"],\n [1109220027, 1109220, \"KULEE\"],\n [1109220028, 1109220, \"PASI BEURANDEH\"],\n [1109230001, 1109230, \"PAPEUN\"],\n [1109230002, 1109230, \"TUHA BIHEUE\"],\n [1109230003, 1109230, \"BATEE\"],\n [1109230004, 1109230, \"INGIN JAYA\"],\n [1109230005, 1109230, \"BLANG RAYA\"],\n [1109230006, 1109230, \"UJONG PIE\"],\n [1109230007, 1109230, \"SAGOE\"],\n [1109230008, 1109230, \"IE MASEN\"],\n [1109230009, 1109230, \"KRUENG\"],\n [1109230010, 1109230, \"GLE CUT\"],\n [1109230011, 1109230, \"DEYAH\"],\n [1109230012, 1109230, \"PAWOD\"],\n [1109230013, 1109230, \"SUKAJAYA\"],\n [1109230014, 1109230, \"KEUPULA\"],\n [1109230015, 1109230, \"MESJID\"],\n [1109230016, 1109230, \"TGK. DI LAWEUNG\"],\n [1109230017, 1109230, \"COT\"],\n [1109230018, 1109230, \"SIMPANG BEUTUONG\"],\n [1110010001, 1110010, \"MEURAH\"],\n [1110010002, 1110010, \"COT MEURAK BLANG\"],\n [1110010003, 1110010, \"BATEE ILIEK\"],\n [1110010005, 1110010, \"COT MEURAK BAROH\"],\n [1110010006, 1110010, \"MESJID BARO\"],\n [1110010007, 1110010, \"DARUSSALAM\"],\n [1110010009, 1110010, \"MATANG WAKEUH\"],\n [1110010010, 1110010, \"MATANG JAREUNG\"],\n [1110010011, 1110010, \"ALUE BARAT\"],\n [1110010012, 1110010, \"ULEE ALUE\"],\n [1110010013, 1110010, \"COT MANE\"],\n [1110010034, 1110010, \"PALOH\"],\n [1110010035, 1110010, \"GAMPONG MEULUM\"],\n [1110010036, 1110010, \"GEULUMPANG BUNGKOK\"],\n [1110010037, 1110010, \"LANCOK\"],\n [1110010038, 1110010, \"ULEE JEUMATAN\"],\n [1110010039, 1110010, \"LHOK SEUMIRA\"],\n [1110010040, 1110010, \"LUENG KEUBEU\"],\n [1110010041, 1110010, \"MIDEUN GEUDONG\"],\n [1110010042, 1110010, \"MEUNASAH LUENG\"],\n [1110010043, 1110010, \"NAMPLOH PAPEUEN\"],\n [1110010044, 1110010, \"MEULIEK\"],\n [1110010048, 1110010, \"NAMPLOH KRUENG\"],\n [1110010049, 1110010, \"MIDEUN JOK\"],\n [1110010050, 1110010, \"GAMPONG PUTOH\"],\n [1110010051, 1110010, \"NAMPLOH BARO\"],\n [1110010052, 1110010, \"NAMPLOH BLANG GARANG\"],\n [1110010053, 1110010, \"KANDANG\"],\n [1110010054, 1110010, \"NAMPLOH MANYANG\"],\n [1110010070, 1110010, \"SANGSO\"],\n [1110010071, 1110010, \"KEUDE ACEH\"],\n [1110010072, 1110010, \"GAMPONG BARO\"],\n [1110010073, 1110010, \"PINEUNG SIRI BEE\"],\n [1110010074, 1110010, \"MATANG TEUNGOH\"],\n [1110010075, 1110010, \"ULEE UE\"],\n [1110010076, 1110010, \"TANJONGAN IDEM\"],\n [1110010077, 1110010, \"TANJONG BARO\"],\n [1110010078, 1110010, \"MEUNASAH LINCAH\"],\n [1110010079, 1110010, \"ANKIENG BARAT\"],\n [1110010080, 1110010, \"MEUNASAH PUUK\"],\n [1110010081, 1110010, \"MEUNASAH LANCOK\"],\n [1110010082, 1110010, \"COT SIREN\"],\n [1110010084, 1110010, \"PANTE RHEENG\"],\n [1110010085, 1110010, \"PULO BAROH\"],\n [1110010086, 1110010, \"MATANG\"],\n [1110010087, 1110010, \"GEULUMPANG PAYONG\"],\n [1110011001, 1110011, \"GLE MEUNDONG\"],\n [1110011002, 1110011, \"IE RHOB BABAH LUENG\"],\n [1110011003, 1110011, \"LHOK TANOH\"],\n [1110011004, 1110011, \"KRUENG MEUSEUGOB\"],\n [1110011005, 1110011, \"PAKU\"],\n [1110011006, 1110011, \"BLANG TAMBUE\"],\n [1110011007, 1110011, \"MEUNASAH MAMPLAM\"],\n [1110011008, 1110011, \"PULO DAPONG\"],\n [1110011009, 1110011, \"COT TRIENG\"],\n [1110011010, 1110011, \"IE RHOB TIMUR\"],\n [1110011011, 1110011, \"IE RHOB BARAT\"],\n [1110011012, 1110011, \"MEUNASAH DAYAH\"],\n [1110011013, 1110011, \"PULO DRIEN\"],\n [1110011014, 1110011, \"IE RHOB GEULUMPANG\"],\n [1110011015, 1110011, \"CEUREUCOK\"],\n [1110011016, 1110011, \"ARONGAN\"],\n [1110011017, 1110011, \"BALEE\"],\n [1110011018, 1110011, \"BLANG MANE BARAT\"],\n [1110011019, 1110011, \"BLANG MANE DUA MEUNASAH\"],\n [1110011020, 1110011, \"JURONG BINJE\"],\n [1110011021, 1110011, \"MEUNASAH MESJID\"],\n [1110011022, 1110011, \"BLANG TEUMULEK\"],\n [1110011023, 1110011, \"BLANG KUTA DUA MEUNASAH\"],\n [1110011024, 1110011, \"BLANG KUTA COH\"],\n [1110011025, 1110011, \"RHEUM TIMUR\"],\n [1110011026, 1110011, \"RHEUM BARAT\"],\n [1110011027, 1110011, \"RHEUM BAROUH\"],\n [1110011028, 1110011, \"LANCANG\"],\n [1110011029, 1110011, \"KEUDE TAMBUE\"],\n [1110011030, 1110011, \"MEUNASAH ASAN\"],\n [1110011031, 1110011, \"PEUNEULET TUNONG\"],\n [1110011032, 1110011, \"CURE TUNONG\"],\n [1110011033, 1110011, \"CURE BAROH\"],\n [1110011034, 1110011, \"PEUNELET BAROH\"],\n [1110011035, 1110011, \"ULEE KAREUNG\"],\n [1110011036, 1110011, \"ALUE LEUHOB\"],\n [1110011037, 1110011, \"BLANG PANYANG\"],\n [1110011038, 1110011, \"CALOK\"],\n [1110011039, 1110011, \"MEUNASAH BARAT\"],\n [1110011040, 1110011, \"TAMBUE BARAT\"],\n [1110011041, 1110011, \"LHOK MANE\"],\n [1110020001, 1110020, \"SEUNEUBOK BARO\"],\n [1110020002, 1110020, \"PANTON BILI\"],\n [1110020003, 1110020, \"BLANG SAMA GADENG\"],\n [1110020004, 1110020, \"COT LEUBENG\"],\n [1110020005, 1110020, \"BANTAYAN\"],\n [1110020006, 1110020, \"KUTA REUSEP\"],\n [1110020007, 1110020, \"G A R O T\"],\n [1110020008, 1110020, \"GAMPONG BLANG\"],\n [1110020009, 1110020, \"MNS TEUNGOH\"],\n [1110020010, 1110020, \"PANDRAH JANENG\"],\n [1110020011, 1110020, \"PANDRAH KANDEH\"],\n [1110020012, 1110020, \"MNS. REUDEUP\"],\n [1110020013, 1110020, \"ALUE IGEUEH\"],\n [1110020014, 1110020, \"LHOK DAGANG\"],\n [1110020015, 1110020, \"LANCOK ULIM\"],\n [1110020016, 1110020, \"NASE ME\"],\n [1110020017, 1110020, \"PANTON\"],\n [1110020018, 1110020, \"UTEUN KRUET\"],\n [1110020019, 1110020, \"NASE BARAT\"],\n [1110030001, 1110030, \"JEUMPA SIKUREUNG\"],\n [1110030002, 1110030, \"BLANG POROH\"],\n [1110030003, 1110030, \"LHOK KULAM\"],\n [1110030010, 1110030, \"SAMPOI AJAD\"],\n [1110030011, 1110030, \"ULEE BLANG\"],\n [1110030012, 1110030, \"ALUE SEUTUI\"],\n [1110030013, 1110030, \"BLANG NEUBOK\"],\n [1110030014, 1110030, \"MEUNASAH ALUE\"],\n [1110030015, 1110030, \"MEUNASAH TUNONG LUENG\"],\n [1110030016, 1110030, \"LHEUE SIMPANG\"],\n [1110030017, 1110030, \"LHEUE BARAT\"],\n [1110030018, 1110030, \"MEUNASAH DAYAH\"],\n [1110030019, 1110030, \"MEUNASAH KEUPULA\"],\n [1110030020, 1110030, \"ULEE GAJAH\"],\n [1110030021, 1110030, \"UTEUN PUPALEH\"],\n [1110030022, 1110030, \"DARUL AMAN\"],\n [1110030023, 1110030, \"LAMPOH OE\"],\n [1110030024, 1110030, \"PULO RANGKILEH\"],\n [1110030025, 1110030, \"TUFAH\"],\n [1110030030, 1110030, \"TANJONG BUNGONG\"],\n [1110030031, 1110030, \"DAYAH BARO\"],\n [1110030032, 1110030, \"ULEE RABO\"],\n [1110030033, 1110030, \"LHUENG TENGOH\"],\n [1110030034, 1110030, \"MEUNASAH TAMBO\"],\n [1110030035, 1110030, \"MEUNASAH KEUTAPANG\"],\n [1110030036, 1110030, \"COT GEULUMPANG TUNONG\"],\n [1110030037, 1110030, \"COT GEULUMPANG BAROH\"],\n [1110030038, 1110030, \"KEUDE JEUNIEB\"],\n [1110030039, 1110030, \"JANGGOT SEUNGKO\"],\n [1110030040, 1110030, \"BLANG MEE TIMU\"],\n [1110030041, 1110030, \"MATANG NIBONG\"],\n [1110030042, 1110030, \"BLANG MEE BARAT\"],\n [1110030043, 1110030, \"MATANG TEUNGOH\"],\n [1110030044, 1110030, \"MATANG BANGKA\"],\n [1110030045, 1110030, \"BLANG LANCANG\"],\n [1110030046, 1110030, \"LANCANG\"],\n [1110030047, 1110030, \"TEUPIN KEUPULA\"],\n [1110030057, 1110030, \"MEUNASAH LUENG\"],\n [1110030058, 1110030, \"ALUE LAM SABA\"],\n [1110030059, 1110030, \"DAYAH BLANG RALEU\"],\n [1110030060, 1110030, \"MEUNASAH BLANG\"],\n [1110030061, 1110030, \"PAYA BILI\"],\n [1110030062, 1110030, \"MEUNASAH KOTA\"],\n [1110031001, 1110031, \"BALEE DAKA\"],\n [1110031002, 1110031, \"MATANG KULE\"],\n [1110031003, 1110031, \"LANCOK BUNGO\"],\n [1110031004, 1110031, \"TEUPIN PANAH\"],\n [1110031005, 1110031, \"SEUNEUBOK PUNTI\"],\n [1110031006, 1110031, \"UTEUN RUNGKOM\"],\n [1110031007, 1110031, \"UTEUN SIKUMBONG\"],\n [1110031008, 1110031, \"JAMBO DALAM\"],\n [1110031009, 1110031, \"PALOH PUPU\"],\n [1110031010, 1110031, \"RAMBONG PAYONG\"],\n [1110031011, 1110031, \"COT GEULUMPANG\"],\n [1110031012, 1110031, \"SEUNEUBOK ACEH\"],\n [1110031013, 1110031, \"SEUNEUBOK NALAN\"],\n [1110031014, 1110031, \"KRUENG BARO\"],\n [1110031015, 1110031, \"KEUDE PLIMBANG\"],\n [1110031016, 1110031, \"PUUEK\"],\n [1110031017, 1110031, \"PADANG KASAB\"],\n [1110031018, 1110031, \"SEUNEUBOK SEUMAWE\"],\n [1110031019, 1110031, \"SEUNEUBOK PLIMBANG\"],\n [1110031020, 1110031, \"SEUNEUBOK TEUNGOH\"],\n [1110031021, 1110031, \"GARAB\"],\n [1110031022, 1110031, \"KUTA TRIENG\"],\n [1110040001, 1110040, \"BLANG RANGKULUH\"],\n [1110040002, 1110040, \"ALUE SIJUEK\"],\n [1110040003, 1110040, \"BUKET PAYA\"],\n [1110040004, 1110040, \"DAYAH MON ARA\"],\n [1110040005, 1110040, \"PULO ARA\"],\n [1110040006, 1110040, \"COT LAOT\"],\n [1110040007, 1110040, \"MEUNASAH BUNGO\"],\n [1110040008, 1110040, \"PAYA BUNOT\"],\n [1110040009, 1110040, \"COT KEUTAPANG\"],\n [1110040010, 1110040, \"LAWANG\"],\n [1110040011, 1110040, \"HAGU\"],\n [1110040012, 1110040, \"MEUNASAH KRUENG\"],\n [1110040013, 1110040, \"MEUNASAH RABO\"],\n [1110040014, 1110040, \"MEUNASAH TAMBO\"],\n [1110040015, 1110040, \"MEUNASAH BAROH\"],\n [1110040016, 1110040, \"BLANG MATANG\"],\n [1110040017, 1110040, \"MEUNASAH TUNONG\"],\n [1110040018, 1110040, \"MEUNASAH ALUE\"],\n [1110040019, 1110040, \"BLANG BATI\"],\n [1110040020, 1110040, \"KEUDE ALUE RHEING\"],\n [1110040021, 1110040, \"PULO LAWANG\"],\n [1110040022, 1110040, \"KARIENG\"],\n [1110040023, 1110040, \"BLANG GLUMPANG\"],\n [1110040024, 1110040, \"MEUNASAH MESJID\"],\n [1110040025, 1110040, \"MEUNASAH CUT\"],\n [1110040026, 1110040, \"MATANG REULEUT\"],\n [1110040027, 1110040, \"MEUNASAH PULO\"],\n [1110040028, 1110040, \"ARA BUNGONG\"],\n [1110040029, 1110040, \"GAROT\"],\n [1110040030, 1110040, \"BLANG BEURURU\"],\n [1110040031, 1110040, \"JABET\"],\n [1110040032, 1110040, \"SAWANG\"],\n [1110040033, 1110040, \"BLANG KUBU\"],\n [1110040034, 1110040, \"MATANG PASI\"],\n [1110040035, 1110040, \"KUKUE\"],\n [1110040036, 1110040, \"MEUNASAH BLANG\"],\n [1110040037, 1110040, \"GAMPONG BARO\"],\n [1110040038, 1110040, \"GAMPONG PAYA\"],\n [1110040039, 1110040, \"SEUNEUBOK PAYA\"],\n [1110040040, 1110040, \"MEUNASAH TEUNGOH\"],\n [1110040041, 1110040, \"CALOK\"],\n [1110040042, 1110040, \"TANJONG SEULAMAT\"],\n [1110040043, 1110040, \"JABA\"],\n [1110040044, 1110040, \"COT KRUET\"],\n [1110040045, 1110040, \"ALUE KEUTAPANG\"],\n [1110040046, 1110040, \"ALUE GANDAI\"],\n [1110040047, 1110040, \"TGK.DI BATHON\"],\n [1110040048, 1110040, \"PAYA BARAT\"],\n [1110040049, 1110040, \"GAMPONG MULIA\"],\n [1110040050, 1110040, \"NEUBOK NALEUNG\"],\n [1110040051, 1110040, \"PAYA TIMU\"],\n [1110040052, 1110040, \"PINTO RIMBA\"],\n [1110050001, 1110050, \"KRUENG SIMPO\"],\n [1110050002, 1110050, \"TEUPIN MANEE\"],\n [1110050003, 1110050, \"BUNYOT\"],\n [1110050004, 1110050, \"PANTE BARO\"],\n [1110050005, 1110050, \"MANE MEUJINGKI\"],\n [1110050006, 1110050, \"ABEUK BUDI\"],\n [1110050007, 1110050, \"BLANG KEUTUMBA\"],\n [1110050008, 1110050, \"SEUNEUBOK PEURADEN\"],\n [1110050009, 1110050, \"PAYA CUT\"],\n [1110050010, 1110050, \"ALUE UNOU\"],\n [1110050011, 1110050, \"BATEE RAYA\"],\n [1110050012, 1110050, \"JULI MEE TEUNGOH\"],\n [1110050013, 1110050, \"SEUNEUBOK GUNCI\"],\n [1110050014, 1110050, \"GEULUMPANG MEU JIMJIM\"],\n [1110050016, 1110050, \"JULI TAMBOI TANJONG\"],\n [1110050017, 1110050, \"JULI SEUTUY\"],\n [1110050018, 1110050, \"JULI COT MESJID\"],\n [1110050019, 1110050, \"SUKA TANI\"],\n [1110050020, 1110050, \"JULI KEUDEE DUA\"],\n [1110050021, 1110050, \"SIMPANG JAYA\"],\n [1110050022, 1110050, \"ALUE RAMBONG\"],\n [1110050023, 1110050, \"BUKET MULIA\"],\n [1110050024, 1110050, \"JULI MEUNASAH TEUNGOH\"],\n [1110050025, 1110050, \"JULI TGK DILAMPOH\"],\n [1110050026, 1110050, \"JULI SEUPENG\"],\n [1110050027, 1110050, \"JULI MEUNASAH TAMBO\"],\n [1110050028, 1110050, \"PASEH\"],\n [1110050029, 1110050, \"JULI PAYA RU\"],\n [1110050030, 1110050, \"JULI COT MEURAK\"],\n [1110050031, 1110050, \"RANTO PANYANG\"],\n [1110050032, 1110050, \"SEUNEUBOK DALAM\"],\n [1110050033, 1110050, \"BALEE PANAH\"],\n [1110050034, 1110050, \"SIMPANG MULIA\"],\n [1110050035, 1110050, \"JULI MEUNASAH JOK\"],\n [1110050036, 1110050, \"JULI UROEK ANOE\"],\n [1110050037, 1110050, \"PANTE PEUSANGAN\"],\n [1110060001, 1110060, \"ABEUK USONG\"],\n [1110060002, 1110060, \"BLANG SEUPENG\"],\n [1110060003, 1110060, \"COT IBOIH\"],\n [1110060004, 1110060, \"SEUNEUBOK LHONG\"],\n [1110060005, 1110060, \"PALOH PANYANG\"],\n [1110060006, 1110060, \"BLANG RHEUM\"],\n [1110060007, 1110060, \"COT ULIM\"],\n [1110060008, 1110060, \"COT LEUSONG\"],\n [1110060009, 1110060, \"BLANG SEUNONG\"],\n [1110060010, 1110060, \"COT KEUTAPANG\"],\n [1110060027, 1110060, \"COT TAROM TUNONG\"],\n [1110060028, 1110060, \"BLANG COT TUNONG\"],\n [1110060029, 1110060, \"SEULEUMBAH\"],\n [1110060030, 1110060, \"ABEUK TINGKEUM\"],\n [1110060031, 1110060, \"BLANG ME\"],\n [1110060032, 1110060, \"PULO LAWANG\"],\n [1110060033, 1110060, \"PALOH SEULIMENG\"],\n [1110060034, 1110060, \"TEUPOK TUNONG\"],\n [1110060035, 1110060, \"TEUPOK BAROH\"],\n [1110060036, 1110060, \"COT BADA\"],\n [1110060037, 1110060, \"COT GADONG\"],\n [1110060038, 1110060, \"KUALA JEUMPA\"],\n [1110060039, 1110060, \"BLANG DALAM\"],\n [1110060040, 1110060, \"BLANG BLADEH\"],\n [1110060041, 1110060, \"GEULUMPANG PAYONG\"],\n [1110060042, 1110060, \"BLANG COT BAROH\"],\n [1110060043, 1110060, \"COT TAROM BAROH\"],\n [1110060044, 1110060, \"GEUDONG TAMPU\"],\n [1110060061, 1110060, \"LIPAH CUT\"],\n [1110060062, 1110060, \"LIPAH RAYEUK\"],\n [1110060063, 1110060, \"MON JAMBEE\"],\n [1110060064, 1110060, \"BATEE TIMOH\"],\n [1110060065, 1110060, \"COT GEURUNDONG\"],\n [1110060066, 1110060, \"BEURAWANG\"],\n [1110060073, 1110060, \"BLANG GANDAI\"],\n [1110060075, 1110060, \"SALAH SIRONG JAYA\"],\n [1110060076, 1110060, \"MON MANE\"],\n [1110060077, 1110060, \"ALUE LIMENG\"],\n [1110060078, 1110060, \"COT MEUGOE\"],\n [1110060079, 1110060, \"COT IBOIH TIMU\"],\n [1110060080, 1110060, \"KUTA MEULIGOE\"],\n [1110060081, 1110060, \"LHAKSMANA\"],\n [1110061001, 1110061, \"COT PEUTEK\"],\n [1110061002, 1110061, \"COT JRAT\"],\n [1110061003, 1110061, \"UTEUN REUTOH\"],\n [1110061004, 1110061, \"BUKET TEUKUEH\"],\n [1110061005, 1110061, \"BLANG REULIENG\"],\n [1110061006, 1110061, \"BLANG TINGKEUM\"],\n [1110061007, 1110061, \"GEULANGGANG GAMPONG\"],\n [1110061008, 1110061, \"PULO ARA GEUDONG TEUNGOH\"],\n [1110061009, 1110061, \"BIREUN MEUNASAH CAPA\"],\n [1110061010, 1110061, \"BIREUN MEUNSAH TGK DIGADONG\"],\n [1110061011, 1110061, \"BIREUN MEUNASAH DAYAH\"],\n [1110061012, 1110061, \"BIREUN MEUNASAH BLANG\"],\n [1110061013, 1110061, \"BIREUN MNS REULEUT\"],\n [1110061014, 1110061, \"KOTA BIREUN\"],\n [1110061015, 1110061, \"PULO KITON\"],\n [1110061016, 1110061, \"LHOK AWE TEUNGOH\"],\n [1110061017, 1110061, \"GEUDONG ALUE\"],\n [1110061018, 1110061, \"GEUDONG GEUDONG\"],\n [1110061019, 1110061, \"GEULANGGANG TEUNGOH\"],\n [1110061020, 1110061, \"GEULANGGANG BARO\"],\n [1110061021, 1110061, \"GEULANGGANG KULAM\"],\n [1110061022, 1110061, \"COT GAPU\"],\n [1110061023, 1110061, \"GAMPONG BARO\"],\n [1110062001, 1110062, \"COT TRIENG\"],\n [1110062002, 1110062, \"LHOK AWE AWE\"],\n [1110062003, 1110062, \"COT UNOE\"],\n [1110062004, 1110062, \"COT BATEE\"],\n [1110062005, 1110062, \"COT KUTA\"],\n [1110062006, 1110062, \"COT GLUMPANG\"],\n [1110062007, 1110062, \"GLUMPANG BAROH\"],\n [1110062008, 1110062, \"LANCOK PANTE ARA\"],\n [1110062009, 1110062, \"BALEE KUYUN\"],\n [1110062010, 1110062, \"KAREUNG\"],\n [1110062011, 1110062, \"LANCOK LANCOK\"],\n [1110062012, 1110062, \"COT USIBAK\"],\n [1110062013, 1110062, \"KUALA RAJA\"],\n [1110062014, 1110062, \"UJONG BLANG MESJID\"],\n [1110062015, 1110062, \"WEU JANGKA\"],\n [1110062016, 1110062, \"COT LAGASAWA\"],\n [1110062017, 1110062, \"UJONG BLANG\"],\n [1110062018, 1110062, \"KUTA BARO\"],\n [1110062019, 1110062, \"KRUENG JULI TIMUR\"],\n [1110062020, 1110062, \"KRUENG JULI BARAT\"],\n [1110070001, 1110070, \"PULO U\"],\n [1110070002, 1110070, \"ABEUK JALOH\"],\n [1110070003, 1110070, \"PULO SEUNA\"],\n [1110070004, 1110070, \"PULO BLANG\"],\n [1110070005, 1110070, \"PULO IBOIH\"],\n [1110070006, 1110070, \"PULO REUDEUP\"],\n [1110070007, 1110070, \"GAMPONG MEULINTEUNG\"],\n [1110070008, 1110070, \"LAMKUTA\"],\n [1110070009, 1110070, \"RUSEB ARA\"],\n [1110070010, 1110070, \"LUENG\"],\n [1110070011, 1110070, \"RUSEB DAYAH\"],\n [1110070012, 1110070, \"KAMBUEK\"],\n [1110070013, 1110070, \"BADA TIMU\"],\n [1110070014, 1110070, \"BADA BARAT\"],\n [1110070015, 1110070, \"BARAT LANYAN\"],\n [1110070016, 1110070, \"GEUNDOT\"],\n [1110070017, 1110070, \"MEUNASAH KRUENG\"],\n [1110070018, 1110070, \"PAYA BIENG\"],\n [1110070019, 1110070, \"JANGKA ALUE\"],\n [1110070020, 1110070, \"JANGKA KEUTAPANG\"],\n [1110070021, 1110070, \"LAMPOH RAYEUK\"],\n [1110070022, 1110070, \"LHOK BUGENG\"],\n [1110070023, 1110070, \"LINGGONG\"],\n [1110070024, 1110070, \"ALUE BUYA\"],\n [1110070025, 1110070, \"TANOH ANOE\"],\n [1110070026, 1110070, \"TANJONGAN\"],\n [1110070027, 1110070, \"JANGKA ALUE BIE\"],\n [1110070028, 1110070, \"JANGKA MESJID\"],\n [1110070029, 1110070, \"JANGKA ALUE U\"],\n [1110070030, 1110070, \"PANTE PEUSANGAN\"],\n [1110070031, 1110070, \"BUGAK KRUENG\"],\n [1110070032, 1110070, \"BUGAK MESJID\"],\n [1110070033, 1110070, \"BUGAK KRUENG MATE\"],\n [1110070034, 1110070, \"BUGENG\"],\n [1110070035, 1110070, \"KUALA CEURAPE\"],\n [1110070036, 1110070, \"ALUE BAYEU UTANG\"],\n [1110070037, 1110070, \"ULEE CEUE\"],\n [1110070038, 1110070, \"ALUE KUTA\"],\n [1110070039, 1110070, \"PUNJOT\"],\n [1110070040, 1110070, \"PULO PINEUNG MNS II\"],\n [1110070041, 1110070, \"BUGAK BLANG\"],\n [1110070042, 1110070, \"PANTE SUKON\"],\n [1110070043, 1110070, \"PANTE PAKU\"],\n [1110070044, 1110070, \"PANTE RANUB\"],\n [1110070045, 1110070, \"ALUE BUYA PASI\"],\n [1110070046, 1110070, \"ALUE BIE PUSONG\"],\n [1110080023, 1110080, \"ALUE UDEUNG\"],\n [1110080024, 1110080, \"ALUE PEUNO\"],\n [1110080038, 1110080, \"KAPA\"],\n [1110080039, 1110080, \"BLANG PANJOE\"],\n [1110080040, 1110080, \"PANTE LHONG\"],\n [1110080041, 1110080, \"PAYA CUT\"],\n [1110080042, 1110080, \"SEUNEUBOK ACEH\"],\n [1110080043, 1110080, \"PAYA LIPAH\"],\n [1110080044, 1110080, \"SEUNEUBOK RAWA\"],\n [1110080045, 1110080, \"BLANG GEULANGGANG\"],\n [1110080046, 1110080, \"UTEUN BUNTA\"],\n [1110080047, 1110080, \"PAYA REUHAT\"],\n [1110080048, 1110080, \"PAYA ABO\"],\n [1110080049, 1110080, \"PALOH\"],\n [1110080050, 1110080, \"PAYA MEUNENG\"],\n [1110080051, 1110080, \"MATANG SAGOE\"],\n [1110080052, 1110080, \"PANTON GEULIMA\"],\n [1110080053, 1110080, \"NEUHEUEN\"],\n [1110080054, 1110080, \"KEUDE MATANG GLP DUA\"],\n [1110080055, 1110080, \"PANTE GAJAH\"],\n [1110080056, 1110080, \"BLANG ASAN\"],\n [1110080057, 1110080, \"GAMPONG RAYA DAGANG\"],\n [1110080058, 1110080, \"GAMPONG RAYA TAMBO\"],\n [1110080059, 1110080, \"KEUDE TANJONG\"],\n [1110080060, 1110080, \"PANTE PISANG\"],\n [1110080061, 1110080, \"BLANG CUT SP IV\"],\n [1110080062, 1110080, \"PANTE CUT\"],\n [1110080063, 1110080, \"MATANG GLP DUA MEUNASAH TIMU\"],\n [1110080064, 1110080, \"MATANG GLP DUA MEUNASAH DAYAH\"],\n [1110080065, 1110080, \"MATANG MESJID\"],\n [1110080066, 1110080, \"COT PANJOE\"],\n [1110080067, 1110080, \"COT KEURANJI\"],\n [1110080068, 1110080, \"GAMPONG BAROH\"],\n [1110080069, 1110080, \"BLANG RAMBONG\"],\n [1110080070, 1110080, \"TANOH MIRAH\"],\n [1110080071, 1110080, \"COT GIREK\"],\n [1110080072, 1110080, \"SAGOE\"],\n [1110080073, 1110080, \"COT BADA BARAT\"],\n [1110080074, 1110080, \"COT BADA TUNONG\"],\n [1110080075, 1110080, \"COT BUKET\"],\n [1110080076, 1110080, \"COT IEJU\"],\n [1110080077, 1110080, \"NICAH\"],\n [1110080078, 1110080, \"COT BADA BAROH\"],\n [1110080079, 1110080, \"COT KEUMUDEE\"],\n [1110080081, 1110080, \"PULO NALEUNG\"],\n [1110080082, 1110080, \"COT NGA\"],\n [1110080083, 1110080, \"KARIENG\"],\n [1110080084, 1110080, \"MATA MAMPLAM\"],\n [1110080085, 1110080, \"ALUE GLUMPANG\"],\n [1110080086, 1110080, \"COT RABO BAROH\"],\n [1110080087, 1110080, \"COT RABO TUNONG\"],\n [1110080088, 1110080, \"KRUENG DHEUE\"],\n [1110080089, 1110080, \"MATANG COT PASEH\"],\n [1110080090, 1110080, \"KRUENG BARO MESJID\"],\n [1110080091, 1110080, \"GAMPONG PUTOH\"],\n [1110080092, 1110080, \"PANTE PIYEU\"],\n [1110080093, 1110080, \"TANJONG MESJID\"],\n [1110080094, 1110080, \"TANJONG PAYA\"],\n [1110080095, 1110080, \"TANJONG NIE\"],\n [1110080096, 1110080, \"BAYU\"],\n [1110080097, 1110080, \"KRUENG BARO BB KRUENG\"],\n [1110080098, 1110080, \"MEUNASAH NIBONG\"],\n [1110080099, 1110080, \"PANTE ARA\"],\n [1110080100, 1110080, \"MEUNASAH MEUCAP\"],\n [1110080101, 1110080, \"ASAN BIDEUN\"],\n [1110080102, 1110080, \"PULO PISANG\"],\n [1110080104, 1110080, \"COT PUUK\"],\n [1110080105, 1110080, \"BLANG DALAM\"],\n [1110080106, 1110080, \"PULO UE BARO\"],\n [1110081001, 1110081, \"BLANG MANE\"],\n [1110081002, 1110081, \"DARUSSALAM\"],\n [1110081003, 1110081, \"TANJONG BEURIDI\"],\n [1110081004, 1110081, \"DARUL AMAN\"],\n [1110081005, 1110081, \"PAYA CROT\"],\n [1110081006, 1110081, \"PULO PANYANG\"],\n [1110081007, 1110081, \"ULEE JALAN\"],\n [1110081008, 1110081, \"GEULANGGANG LABU\"],\n [1110081009, 1110081, \"TEUPIN REUDEUP\"],\n [1110081010, 1110081, \"KRUENG BEUKAH\"],\n [1110081011, 1110081, \"BLANG PALA\"],\n [1110081012, 1110081, \"CEUBREK\"],\n [1110081013, 1110081, \"UTEUN GHATOM\"],\n [1110081014, 1110081, \"ME RAYEUK\"],\n [1110081015, 1110081, \"UTEUN RAYA\"],\n [1110081016, 1110081, \"MATA IE\"],\n [1110081017, 1110081, \"BLANG CUT\"],\n [1110081018, 1110081, \"LUENG BARO\"],\n [1110081019, 1110081, \"LUENG KULI\"],\n [1110081020, 1110081, \"PULO HARAPAN\"],\n [1110081021, 1110081, \"SUWAK\"],\n [1110082001, 1110082, \"PANTE KARYA\"],\n [1110082002, 1110082, \"ALUE GLUMPANG\"],\n [1110082003, 1110082, \"BUKET SUDAN\"],\n [1110082004, 1110082, \"COT SALEUT\"],\n [1110082005, 1110082, \"PALOH MAMPREE\"],\n [1110082006, 1110082, \"ALUE IET\"],\n [1110082007, 1110082, \"AWE GEUTAH\"],\n [1110082008, 1110082, \"BLANG CIRIH\"],\n [1110082009, 1110082, \"ALUE KEUPULA\"],\n [1110082010, 1110082, \"ALUE KRUEB\"],\n [1110082011, 1110082, \"RAMBONG PAYONG\"],\n [1110082012, 1110082, \"LUENG DANEUN\"],\n [1110082013, 1110082, \"COT ANEUK BATEE\"],\n [1110082014, 1110082, \"KUBU RAYA\"],\n [1110082015, 1110082, \"PANTE BARO GLE SIBLA\"],\n [1110082016, 1110082, \"PANTE BARO KUMBANG\"],\n [1110082017, 1110082, \"PANTE BARO BUKIT PANYANG\"],\n [1110082018, 1110082, \"KUBU\"],\n [1110082019, 1110082, \"TEUPIN RAYA\"],\n [1110082020, 1110082, \"AWE GEUTAH PAYA\"],\n [1110082021, 1110082, \"DAYAH BARO\"],\n [1110090001, 1110090, \"SUKARAME\"],\n [1110090002, 1110090, \"PANTON MESJID\"],\n [1110090003, 1110090, \"ALUE DUA\"],\n [1110090004, 1110090, \"BLANG PERLAK\"],\n [1110090005, 1110090, \"TANJONG MULIA\"],\n [1110090006, 1110090, \"MATANG KUMBANG\"],\n [1110090007, 1110090, \"MEUREUBO\"],\n [1110090008, 1110090, \"SEUNEUBOK BARO\"],\n [1110090009, 1110090, \"BLANG DALAM\"],\n [1110090010, 1110090, \"PANDAK\"],\n [1110090011, 1110090, \"BLANG MANE\"],\n [1110090012, 1110090, \"PANTE BREUH\"],\n [1110090013, 1110090, \"ULEE GLE\"],\n [1110090014, 1110090, \"MON ARA\"],\n [1110090015, 1110090, \"LAPEHAN MESJID\"],\n [1110090016, 1110090, \"BUKET SELAMAT\"],\n [1110090017, 1110090, \"BLANG KUTANG\"],\n [1110090018, 1110090, \"COT KRUET\"],\n [1110090019, 1110090, \"TRIENGGADENG\"],\n [1110090020, 1110090, \"LEUBU MESJID\"],\n [1110090021, 1110090, \"KUTA BARAT\"],\n [1110090022, 1110090, \"LEUBU COT\"],\n [1110090023, 1110090, \"PAYA DUA\"],\n [1110090024, 1110090, \"LEUBU ME\"],\n [1110090025, 1110090, \"BATEE DABAI\"],\n [1110090026, 1110090, \"PULO TEUNGOH\"],\n [1110090027, 1110090, \"ARA LIPEH\"],\n [1110100005, 1110100, \"PALOH KAYEE KUNYET\"],\n [1110100006, 1110100, \"TANJONG RAYA\"],\n [1110100007, 1110100, \"PAYA SEUPAT\"],\n [1110100008, 1110100, \"PAYA KAREUNG\"],\n [1110100009, 1110100, \"BLANG KUBU\"],\n [1110100014, 1110100, \"PAYA BARO\"],\n [1110100015, 1110100, \"TANJONG MESJID\"],\n [1110100016, 1110100, \"MON JEUREUJAK\"],\n [1110100017, 1110100, \"DAMA KAWAN\"],\n [1110100018, 1110100, \"COT RAMBAT\"],\n [1110100019, 1110100, \"BLANG GURON\"],\n [1110100020, 1110100, \"COT TEUBEE\"],\n [1110100021, 1110100, \"TANJONG BUNGONG\"],\n [1110100022, 1110100, \"PULO GISA\"],\n [1110100023, 1110100, \"UJONG BAYU\"],\n [1110100024, 1110100, \"COT TUPAH\"],\n [1110100025, 1110100, \"COT TUNONG\"],\n [1110100039, 1110100, \"COT PUUK\"],\n [1110100040, 1110100, \"PALOH ME\"],\n [1110100041, 1110100, \"GEURUGOK\"],\n [1110100042, 1110100, \"COT JABET\"],\n [1110100043, 1110100, \"PANTE SIKEUMBONG\"],\n [1110100044, 1110100, \"CEUBO\"],\n [1110100045, 1110100, \"KEUDE LAPANG\"],\n [1110100046, 1110100, \"BLANG KEUDE\"],\n [1110100047, 1110100, \"COT MANE\"],\n [1110100057, 1110100, \"LHOK MAMBANG\"],\n [1110100058, 1110100, \"LAPANG TIMUR\"],\n [1110100059, 1110100, \"TEUPIN SIRON\"],\n [1110100060, 1110100, \"IE RHOB\"],\n [1110100061, 1110100, \"ALUE MANGKI\"],\n [1110100062, 1110100, \"LINGKA KUTA\"],\n [1110100063, 1110100, \"LAPANG BARAT\"],\n [1110100064, 1110100, \"SAMUTI KRUENG\"],\n [1110100065, 1110100, \"SAMUTI MAKMUR\"],\n [1110100066, 1110100, \"SAMUTI RAYEUK\"],\n [1110100076, 1110100, \"SAMUTI AMAN\"],\n [1110100077, 1110100, \"MON KEULAYU\"],\n [1110100078, 1110100, \"MON JAMBE\"],\n [1110100079, 1110100, \"BLANG RHEU\"],\n [1110101001, 1110101, \"PARANG SIKUREUNG\"],\n [1110101002, 1110101, \"TANJONG SIRON\"],\n [1110101003, 1110101, \"PALOH RAYA\"],\n [1110101004, 1110101, \"PALOH PEURADI\"],\n [1110101005, 1110101, \"CRUNG KUMBANG\"],\n [1110101006, 1110101, \"PALOH DAMA\"],\n [1110101007, 1110101, \"BUKIT DALAM\"],\n [1110101008, 1110101, \"GLE PUTOH\"],\n [1110101009, 1110101, \"BALE ME\"],\n [1110101010, 1110101, \"KULU\"],\n [1110101011, 1110101, \"BLANG ME\"],\n [1110101012, 1110101, \"BLANG PANJOE\"],\n [1110101013, 1110101, \"LHOK NGA\"],\n [1110101014, 1110101, \"MEUSE\"],\n [1110101015, 1110101, \"BABAH JURONG\"],\n [1110101016, 1110101, \"DAYAH PANJOE\"],\n [1110101017, 1110101, \"IEMBUDEE\"],\n [1110101018, 1110101, \"TINGKEUM BARO\"],\n [1110101019, 1110101, \"PULO REUDEUP\"],\n [1110101020, 1110101, \"TINGKEUM MANYANG\"],\n [1110101021, 1110101, \"ULEE PUSONG\"],\n [1110101022, 1110101, \"PAYA RANGKULUH\"],\n [1110101023, 1110101, \"COT BAROH\"],\n [1110101024, 1110101, \"BABAH SUAK\"],\n [1110101025, 1110101, \"GEULANGGANG RAYEUK\"],\n [1110101026, 1110101, \"GEULANGGANG MEUNJE\"],\n [1110101027, 1110101, \"GEULANGGANG PANAH\"],\n [1110101028, 1110101, \"PULO BLANG\"],\n [1110101029, 1110101, \"PULO SIRON\"],\n [1110101030, 1110101, \"JARUM MAHME\"],\n [1110101031, 1110101, \"DAYAH MESJID\"],\n [1110101032, 1110101, \"UJONG BLANG\"],\n [1110101033, 1110101, \"KEURUMBOK\"],\n [1110101034, 1110101, \"JARUMMAH BAROH\"],\n [1110101035, 1110101, \"COT ARA\"],\n [1110101036, 1110101, \"RANCONG\"],\n [1110101037, 1110101, \"PULO NGA\"],\n [1110101038, 1110101, \"COT ME\"],\n [1110101039, 1110101, \"JAMBO KAJEUNG\"],\n [1110101040, 1110101, \"KULU KUTA\"],\n [1110101041, 1110101, \"PULO AWE\"],\n [1111010001, 1111010, \"RISEH TUNONG\"],\n [1111010002, 1111010, \"GUNCI\"],\n [1111010003, 1111010, \"KUBU\"],\n [1111010004, 1111010, \"BLANG CUT\"],\n [1111010005, 1111010, \"RISEH TEUNGOH\"],\n [1111010006, 1111010, \"RISEH BAROH\"],\n [1111010007, 1111010, \"LHOK CUT\"],\n [1111010008, 1111010, \"SAWANG\"],\n [1111010009, 1111010, \"BLANG TEURAKAN\"],\n [1111010010, 1111010, \"JURONG\"],\n [1111010011, 1111010, \"BLANG MANYAK\"],\n [1111010012, 1111010, \"LHOK JOK\"],\n [1111010013, 1111010, \"BABAH KRUENG\"],\n [1111010014, 1111010, \"RAMBONG PAYONG\"],\n [1111010015, 1111010, \"TEUPIN RUSEP\"],\n [1111010016, 1111010, \"LANCOK\"],\n [1111010017, 1111010, \"LHOK BAYU\"],\n [1111010018, 1111010, \"PAYA RABO TIMU\"],\n [1111010019, 1111010, \"PAYA RABO LHOK\"],\n [1111010020, 1111010, \"KRUENG BARO\"],\n [1111010021, 1111010, \"BLANG REULING\"],\n [1111010022, 1111010, \"PUNTEUET\"],\n [1111010023, 1111010, \"MEUNASAH PULO\"],\n [1111010024, 1111010, \"LHOK KUYUEN\"],\n [1111010025, 1111010, \"LHOK GAJAH\"],\n [1111010026, 1111010, \"PANTE JALOH\"],\n [1111010027, 1111010, \"BABAH BULOH\"],\n [1111010028, 1111010, \"COT LAMBIDENG\"],\n [1111010029, 1111010, \"GAMPONG TEUNGOH\"],\n [1111010030, 1111010, \"PAYA GABOH\"],\n [1111010031, 1111010, \"KUTA MEULIGOE\"],\n [1111010032, 1111010, \"ABEUK REULING\"],\n [1111010033, 1111010, \"COT KEUMUNENG\"],\n [1111010034, 1111010, \"ULEE GEUDONG\"],\n [1111010035, 1111010, \"TANJONG KEUMALA\"],\n [1111010036, 1111010, \"LHOK KREK\"],\n [1111010037, 1111010, \"GLEE DAGANG\"],\n [1111010038, 1111010, \"LAGANG\"],\n [1111010039, 1111010, \"LHOK MERBO\"],\n [1111020007, 1111020, \"JEULIKAT\"],\n [1111020008, 1111020, \"MEUNASAH CUT\"],\n [1111020009, 1111020, \"ALUE BILI\"],\n [1111020010, 1111020, \"COT MAMBONG\"],\n [1111020011, 1111020, \"BLANG DALAM TUNONG\"],\n [1111020012, 1111020, \"BLANG DALAM BAROH\"],\n [1111020013, 1111020, \"BLANG DALAM GEUNTENG\"],\n [1111020014, 1111020, \"TINGKEUM\"],\n [1111020015, 1111020, \"MEUNASAH RAYEUK\"],\n [1111020016, 1111020, \"PEUNAYAN\"],\n [1111020017, 1111020, \"PALOH MAMPREE\"],\n [1111020018, 1111020, \"PANTON\"],\n [1111020019, 1111020, \"MEUNASAH ALUE\"],\n [1111020022, 1111020, \"PALOH MAMBU\"],\n [1111020023, 1111020, \"GAMPONG BARAT\"],\n [1111020024, 1111020, \"MEUNASAH BEUNOT\"],\n [1111020025, 1111020, \"MNS MEUCAT\"],\n [1111020026, 1111020, \"GAMPONG TEUNGOH\"],\n [1111020027, 1111020, \"COT ME\"],\n [1111020028, 1111020, \"COT EUNTUNG\"],\n [1111020029, 1111020, \"KEUTAPANG\"],\n [1111020030, 1111020, \"BLANG CROK\"],\n [1111020031, 1111020, \"BINJEE\"],\n [1111020032, 1111020, \"COT LEUPEE\"],\n [1111020033, 1111020, \"MEUNASAH KRUENG\"],\n [1111020034, 1111020, \"ULEE BLANG\"],\n [1111020035, 1111020, \"SEUNEUBOK\"],\n [1111020036, 1111020, \"BLANG KARIENG\"],\n [1111020037, 1111020, \"PALOH KAYEE KUNYET\"],\n [1111021001, 1111021, \"ALUE DUA\"],\n [1111021002, 1111021, \"ALUE PAPEUN\"],\n [1111021003, 1111021, \"BLANG JRAT\"],\n [1111021004, 1111021, \"BLANG POHROH\"],\n [1111021005, 1111021, \"DARUSSALAM\"],\n [1111021006, 1111021, \"SEUMIRAH\"],\n [1111022001, 1111022, \"JAMUAN\"],\n [1111022002, 1111022, \"ALUE KEUREUNYAI\"],\n [1111022003, 1111022, \"BLANG PALA\"],\n [1111022004, 1111022, \"SANGKELAN\"],\n [1111022005, 1111022, \"ULEE NYEUE\"],\n [1111022006, 1111022, \"PAYA ULEUE\"],\n [1111022007, 1111022, \"COT JABET\"],\n [1111022008, 1111022, \"PAYA DUA\"],\n [1111022009, 1111022, \"PAYA BEUNYOT\"],\n [1111030001, 1111030, \"SIDO MULIYO\"],\n [1111030012, 1111030, \"ALUE RAMBEE\"],\n [1111030013, 1111030, \"MEUNYE CUT BAHAGIA\"],\n [1111030014, 1111030, \"COT MERBO\"],\n [1111030015, 1111030, \"PANTON RAYEUK I\"],\n [1111030016, 1111030, \"BLANG TALON\"],\n [1111030017, 1111030, \"BUKET\"],\n [1111030018, 1111030, \"LHOK JOK\"],\n [1111030019, 1111030, \"SEUNEUBOK DRIEN\"],\n [1111030026, 1111030, \"CEMPEUDAK\"],\n [1111030027, 1111030, \"BLANG RIEK\"],\n [1111030028, 1111030, \"MEUNASAH BLANG ARA\"],\n [1111030029, 1111030, \"KEUDE BLANG ARA\"],\n [1111030030, 1111030, \"KRUENG MANYANG\"],\n [1111030031, 1111030, \"BAYU\"],\n [1111030032, 1111030, \"BLANG ADO\"],\n [1111030033, 1111030, \"DAYAH MEUNARA\"],\n [1111030034, 1111030, \"COT RHEUE\"],\n [1111030035, 1111030, \"BABAH LUENG\"],\n [1111030036, 1111030, \"PANTON RAYEUK II\"],\n [1111030037, 1111030, \"SAWEUK\"],\n [1111030038, 1111030, \"LANGKUTA\"],\n [1111030039, 1111030, \"COT SEUMIYONG\"],\n [1111030040, 1111030, \"MEURIYA\"],\n [1111030041, 1111030, \"COT SEUTUY\"],\n [1111030042, 1111030, \"MULIENG MANYANG\"],\n [1111030043, 1111030, \"MULIENG MEUCAT\"],\n [1111030044, 1111030, \"PULO BARAT\"],\n [1111030045, 1111030, \"PULO RAYEUK\"],\n [1111030046, 1111030, \"MEUNASAH KUMBANG\"],\n [1111030047, 1111030, \"CEUMEUCET\"],\n [1111030048, 1111030, \"GUHA ULEUE\"],\n [1111030049, 1111030, \"BLANG GURAH\"],\n [1111030050, 1111030, \"KRUENG SEUNONG\"],\n [1111030051, 1111030, \"KEUDE KRUENG\"],\n [1111030052, 1111030, \"PULO IBOIH\"],\n [1111030053, 1111030, \"KEUREUSEK\"],\n [1111030054, 1111030, \"MEUNASAH KULAM\"],\n [1111030055, 1111030, \"KRUENG SEUPENG\"],\n [1111031001, 1111031, \"PASE SENTAUSA\"],\n [1111031002, 1111031, \"KILO METER VIII\"],\n [1111031003, 1111031, \"KILO METER VI\"],\n [1111031004, 1111031, \"MEUNASAH DAYAH\"],\n [1111031005, 1111031, \"KEBON BARU\"],\n [1111031006, 1111031, \"IE TAREK I\"],\n [1111031007, 1111031, \"IE TAREK II\"],\n [1111031008, 1111031, \"SEUNEBOK PUNTI\"],\n [1111031009, 1111031, \"KEUDE SIMPANG IV\"],\n [1111031010, 1111031, \"BLANG RALEU\"],\n [1111031011, 1111031, \"MEUNASAH BAROH\"],\n [1111031012, 1111031, \"MEUNASAH TEUNGOH\"],\n [1111031013, 1111031, \"MANCANG\"],\n [1111031014, 1111031, \"ALUE BADE\"],\n [1111031015, 1111031, \"PAYA TEUNGOH\"],\n [1111031016, 1111031, \"PAYA LEUPAH\"],\n [1111040010, 1111040, \"MEUDANG ARA\"],\n [1111040012, 1111040, \"SIREN TUJOH\"],\n [1111040013, 1111040, \"CUT NEUHEUN\"],\n [1111040014, 1111040, \"TUMPEUN\"],\n [1111040015, 1111040, \"A L E N\"],\n [1111040016, 1111040, \"DAYAH BLANG SEUREUKUY\"],\n [1111040017, 1111040, \"BLANG PATRA\"],\n [1111040019, 1111040, \"BUKET GLUMPANG\"],\n [1111040020, 1111040, \"SEUNEBOK BARO\"],\n [1111040021, 1111040, \"ALUE MAJRON\"],\n [1111040022, 1111040, \"BLANG MAJRON\"],\n [1111040023, 1111040, \"BLANG SEUREUKUY\"],\n [1111040024, 1111040, \"KAYEE PANYANG\"],\n [1111040025, 1111040, \"ULEE MEURIA\"],\n [1111040026, 1111040, \"PULO BLANG TRIENG\"],\n [1111040027, 1111040, \"RHENG\"],\n [1111040028, 1111040, \"TRIENG MEUDUROU\"],\n [1111040029, 1111040, \"GAROT\"],\n [1111040030, 1111040, \"CIBREK\"],\n [1111040031, 1111040, \"BLANG AWE\"],\n [1111040032, 1111040, \"PULO BLANG MANGAT\"],\n [1111040033, 1111040, \"ULEE GAMPONG\"],\n [1111040034, 1111040, \"BALE\"],\n [1111040035, 1111040, \"BIE\"],\n [1111040036, 1111040, \"NIBONG\"],\n [1111040037, 1111040, \"BARO KULAM GAJAH\"],\n [1111040038, 1111040, \"BEURANDANG\"],\n [1111040039, 1111040, \"MNS GLONG\"],\n [1111040040, 1111040, \"MNS LANGA\"],\n [1111040041, 1111040, \"MNS BEUNOT\"],\n [1111040042, 1111040, \"KEUDE BAYU\"],\n [1111040043, 1111040, \"BLANG BAYU\"],\n [1111040044, 1111040, \"DAYAH BARO\"],\n [1111040045, 1111040, \"DAYAH TUHA\"],\n [1111040046, 1111040, \"BUNGONG\"],\n [1111040047, 1111040, \"PUNTI\"],\n [1111040048, 1111040, \"BAROH BLANG RIMUENG\"],\n [1111040049, 1111040, \"LANCOK\"],\n [1111041001, 1111041, \"SUKA DAMAI\"],\n [1111041002, 1111041, \"PULO MEURIA\"],\n [1111041003, 1111041, \"KRUENG MBANG\"],\n [1111041004, 1111041, \"DAYAH SEUPENG\"],\n [1111041005, 1111041, \"URAM JALAN\"],\n [1111041006, 1111041, \"PEUDARI\"],\n [1111041007, 1111041, \"RAYEUK JAWA\"],\n [1111041008, 1111041, \"DARUSSALAM\"],\n [1111041009, 1111041, \"ALUE AWE\"],\n [1111041010, 1111041, \"LHOK ASAN\"],\n [1111041011, 1111041, \"DARUL AMAN\"],\n [1111050001, 1111050, \"MNS BAREE BLANG\"],\n [1111050002, 1111050, \"PAYA SUTRA\"],\n [1111050003, 1111050, \"TUALANG\"],\n [1111050004, 1111050, \"PULO BLANG\"],\n [1111050005, 1111050, \"LEUBOK TUWE\"],\n [1111050006, 1111050, \"SARAMABA\"],\n [1111050007, 1111050, \"BLANG REUMA\"],\n [1111050008, 1111050, \"RANTO\"],\n [1111050009, 1111050, \"MEUNYE PEUT\"],\n [1111050010, 1111050, \"MEUNYE PAYONG\"],\n [1111050011, 1111050, \"BEURINGEN\"],\n [1111050012, 1111050, \"UJONG KUTA BATEE\"],\n [1111050013, 1111050, \"TEUNGOH KUTA BATEE\"],\n [1111050014, 1111050, \"BAROH KUTA BATEE\"],\n [1111050015, 1111050, \"CEUBREK\"],\n [1111050016, 1111050, \"GAMPONG TEUNGOH\"],\n [1111050017, 1111050, \"KEUDE JUNGKA GAJAH\"],\n [1111050018, 1111050, \"NIBONG\"],\n [1111050019, 1111050, \"DRIEN BEUKAH\"],\n [1111050020, 1111050, \"PAYA KAMBUEK\"],\n [1111050021, 1111050, \"PAYA BILI\"],\n [1111050022, 1111050, \"DRIEN PUNTONG\"],\n [1111050023, 1111050, \"PULO KITOU\"],\n [1111050024, 1111050, \"TEUNGOH REUBA\"],\n [1111050025, 1111050, \"MEUNASAH NGA\"],\n [1111050026, 1111050, \"UJONG REUBA\"],\n [1111050027, 1111050, \"MNS MESJID\"],\n [1111050028, 1111050, \"MNS ME\"],\n [1111050029, 1111050, \"BARAT PAYA ITIK\"],\n [1111050030, 1111050, \"PRI KEUTAPANG\"],\n [1111050031, 1111050, \"KUMBANG\"],\n [1111050032, 1111050, \"MNS KEH\"],\n [1111050033, 1111050, \"BLANG CUT\"],\n [1111050034, 1111050, \"RAYEUK PAYA ITIK\"],\n [1111050035, 1111050, \"UBIT PAYA ITIK\"],\n [1111050036, 1111050, \"MNS RANGKILEH\"],\n [1111050037, 1111050, \"TUMPOK TUNGKU\"],\n [1111050038, 1111050, \"MANYANG\"],\n [1111050039, 1111050, \"ULEE MEURIA\"],\n [1111050040, 1111050, \"GEULUMPANG\"],\n [1111050041, 1111050, \"MNS TANJONG\"],\n [1111050042, 1111050, \"RAYEUK MATANG\"],\n [1111050043, 1111050, \"KEUDE KARIENG\"],\n [1111050044, 1111050, \"REUDEUP\"],\n [1111050045, 1111050, \"PULO BLUEK\"],\n [1111050046, 1111050, \"DAYAH BLUEK\"],\n [1111050047, 1111050, \"MEURIA BLUEK\"],\n [1111050048, 1111050, \"ULEE CEUBREK\"],\n [1111050049, 1111050, \"MESJID BLUEK\"],\n [1111050050, 1111050, \"RHENG BLUK\"],\n [1111060038, 1111060, \"BLANG SEUPENG\"],\n [1111060039, 1111060, \"BLANG KUTA\"],\n [1111060047, 1111060, \"LEUBOK PIRAK\"],\n [1111060048, 1111060, \"BEURACAN PIRAK\"],\n [1111060049, 1111060, \"MATANG PEUSANGAN\"],\n [1111060057, 1111060, \"KUNYET MULE\"],\n [1111060058, 1111060, \"ARON PIRAK\"],\n [1111060059, 1111060, \"MESJID PIRAK\"],\n [1111060060, 1111060, \"PANTE PIRAK\"],\n [1111060066, 1111060, \"BEURINGEN\"],\n [1111060067, 1111060, \"TEUNGOH PIRAK\"],\n [1111060068, 1111060, \"RAYEUK PIRAK\"],\n [1111060069, 1111060, \"TUTONG\"],\n [1111060071, 1111060, \"TEUNGOH SEULEUMAK\"],\n [1111060072, 1111060, \"TANJONG TGK KARI\"],\n [1111060073, 1111060, \"SEURIWEUK\"],\n [1111060074, 1111060, \"DAYAH BARO\"],\n [1111060075, 1111060, \"ALUE THO\"],\n [1111060076, 1111060, \"CEUBREK PIRAK\"],\n [1111060077, 1111060, \"MEUNYE PIRAK\"],\n [1111060078, 1111060, \"SIREN\"],\n [1111060079, 1111060, \"TANJONG HAJI MUDA\"],\n [1111060085, 1111060, \"TRIENG TEUPIN KEUBEU\"],\n [1111060086, 1111060, \"TEUPIN KEUBEU\"],\n [1111060087, 1111060, \"TANJONG BABAH KRUENG\"],\n [1111060088, 1111060, \"LAWANG\"],\n [1111060089, 1111060, \"TANJONG TGK ALI\"],\n [1111060090, 1111060, \"HAGU\"],\n [1111060091, 1111060, \"MEURIA MATANG KULI\"],\n [1111060092, 1111060, \"ALUE ENTOK\"],\n [1111060093, 1111060, \"TUMPOK BARAT\"],\n [1111060094, 1111060, \"PARANG IX\"],\n [1111060095, 1111060, \"BARO\"],\n [1111060096, 1111060, \"MEE\"],\n [1111060097, 1111060, \"BLANG\"],\n [1111060098, 1111060, \"KEUDE MATANG KULI\"],\n [1111060099, 1111060, \"PUNTI MATANG KULI\"],\n [1111060100, 1111060, \"MATANG MEE\"],\n [1111060101, 1111060, \"RAYEUK GLANGGLONG\"],\n [1111060102, 1111060, \"TUMPOK PEUREULAK\"],\n [1111060103, 1111060, \"RAYEUK MATANG KULI\"],\n [1111060104, 1111060, \"UDE\"],\n [1111060105, 1111060, \"UJONG KULAM\"],\n [1111060106, 1111060, \"JEUMPA GLUMPANG VII\"],\n [1111060107, 1111060, \"PUNTI GLUMPANG VII\"],\n [1111060108, 1111060, \"GLUMPANG VII\"],\n [1111060109, 1111060, \"TEUNGOH GLP VII\"],\n [1111060110, 1111060, \"ARON GLP VII\"],\n [1111060111, 1111060, \"MATANG MUNYE\"],\n [1111061001, 1111061, \"BLANG MANE\"],\n [1111061002, 1111061, \"MATANG PANYANG\"],\n [1111061003, 1111061, \"ALUE LHOK\"],\n [1111061004, 1111061, \"SEUNEUBOK ACEH\"],\n [1111061005, 1111061, \"BUKET PIDIE\"],\n [1111061006, 1111061, \"BUKET GURU\"],\n [1111061007, 1111061, \"ALUE BIENG\"],\n [1111061008, 1111061, \"PEUREUPOK\"],\n [1111061009, 1111061, \"BLANG GUNCI\"],\n [1111061010, 1111061, \"PANTE SEULEUMAK\"],\n [1111061011, 1111061, \"NGA\"],\n [1111061012, 1111061, \"MAMPREE\"],\n [1111061013, 1111061, \"TANJONG DRIEN\"],\n [1111061014, 1111061, \"COT TUFAH\"],\n [1111061015, 1111061, \"ASAN SEULEUMAK\"],\n [1111061016, 1111061, \"TGK DIBANDA TEK-TEK\"],\n [1111061017, 1111061, \"SIMPANG\"],\n [1111061018, 1111061, \"KEUBON PIRAK\"],\n [1111061019, 1111061, \"BLANG ARA\"],\n [1111061020, 1111061, \"GEUREUGHEK\"],\n [1111061021, 1111061, \"BLANG PANTE\"],\n [1111061022, 1111061, \"LUENG\"],\n [1111061023, 1111061, \"TGK DIBANDA PIRAK\"],\n [1111061024, 1111061, \"GEULUMPANG PIRAK\"],\n [1111061025, 1111061, \"BLANG SIALET\"],\n [1111061026, 1111061, \"BLANG PAKU\"],\n [1111061027, 1111061, \"BLANG DALAM\"],\n [1111061028, 1111061, \"MEURIA SEULEUMAK\"],\n [1111061029, 1111061, \"LEUHONG\"],\n [1111061030, 1111061, \"TANJONG BEURUNYONG\"],\n [1111061031, 1111061, \"KEUDE PAYA BAKONG\"],\n [1111061032, 1111061, \"CEUMPEUDAK\"],\n [1111061033, 1111061, \"PAYA MEUDRU\"],\n [1111061034, 1111061, \"MEUNYE SEULEUMAK\"],\n [1111061035, 1111061, \"ALUE LEUKOT\"],\n [1111061036, 1111061, \"PUCOK ALUE SEULEUMAK\"],\n [1111061037, 1111061, \"JOK\"],\n [1111061038, 1111061, \"TUNONG KRUENG\"],\n [1111061039, 1111061, \"TUMPOK MESJID\"],\n [1111062001, 1111062, \"TANJONG SEURUEKUY\"],\n [1111062002, 1111062, \"ALUE RIMEE\"],\n [1111062003, 1111062, \"PAYA LUENG JALO\"],\n [1111062004, 1111062, \"SERDANG\"],\n [1111062005, 1111062, \"ULEE BLANG\"],\n [1111062006, 1111062, \"MEUNYE VII\"],\n [1111062007, 1111062, \"PUCOK ALUE PIRAK\"],\n [1111062008, 1111062, \"ARA TONTON MONCRANG\"],\n [1111062009, 1111062, \"BILI BARO\"],\n [1111062010, 1111062, \"KEUTAPANG\"],\n [1111062011, 1111062, \"RENGKAM\"],\n [1111062012, 1111062, \"TEUPIN U\"],\n [1111062013, 1111062, \"ALUE BUNGKOH\"],\n [1111062014, 1111062, \"CEUMEUCET\"],\n [1111062015, 1111062, \"LEUPE\"],\n [1111062016, 1111062, \"TRIENG KRUENG KREH\"],\n [1111062017, 1111062, \"MATANG KEH\"],\n [1111062018, 1111062, \"KRUENG PIRAK\"],\n [1111062019, 1111062, \"RAYEUK PANGE\"],\n [1111062020, 1111062, \"BUNGONG\"],\n [1111062021, 1111062, \"GEULUMPANG\"],\n [1111062022, 1111062, \"ASAN KRUENG KREH\"],\n [1111062023, 1111062, \"BEURACAN RATA\"],\n [1111070001, 1111070, \"COT GIREK\"],\n [1111070002, 1111070, \"ALUE LEUHOB\"],\n [1111070003, 1111070, \"LHOK MERBO\"],\n [1111070004, 1111070, \"KAMPUNG BANTAN\"],\n [1111070005, 1111070, \"ALUE SEUMAMBU\"],\n [1111070006, 1111070, \"BATU XII\"],\n [1111070007, 1111070, \"KAMPUNG TEMPEL\"],\n [1111070008, 1111070, \"SEUPENG\"],\n [1111070009, 1111070, \"BEURANDANG DAYAH\"],\n [1111070010, 1111070, \"BEURANDANG ASAN\"],\n [1111070011, 1111070, \"DRIEN II\"],\n [1111070012, 1111070, \"BEURANDANG KRUENG\"],\n [1111070013, 1111070, \"JEULIKAT\"],\n [1111070014, 1111070, \"ARA\"],\n [1111070015, 1111070, \"LUENG BARO\"],\n [1111070016, 1111070, \"LHOK REUHAT\"],\n [1111070017, 1111070, \"TRIENG\"],\n [1111070018, 1111070, \"U BARO\"],\n [1111070019, 1111070, \"CEUMPEUDAK\"],\n [1111070020, 1111070, \"ALUE DRIEN\"],\n [1111070021, 1111070, \"SEUNEUBOK BARO\"],\n [1111070022, 1111070, \"ULEE GAMPONG\"],\n [1111070023, 1111070, \"PUCOK ALUE\"],\n [1111070024, 1111070, \"MATANG TEUNGOH\"],\n [1111080024, 1111080, \"BUKET JEURAT MANYANG\"],\n [1111080025, 1111080, \"MATANG RAYA\"],\n [1111080026, 1111080, \"MATANG SEUKE PULOT\"],\n [1111080027, 1111080, \"LUENG TUHA\"],\n [1111080028, 1111080, \"PUCOK ALUE\"],\n [1111080029, 1111080, \"MATANG SERDANG\"],\n [1111080030, 1111080, \"MATANG TEUNGOH T\"],\n [1111080031, 1111080, \"BUKET PADANG\"],\n [1111080032, 1111080, \"LHOK BEURINGEN\"],\n [1111080033, 1111080, \"LHOK MERBO\"],\n [1111080034, 1111080, \"BUKET ALUE PUTEH\"],\n [1111080035, 1111080, \"LHOK REUDEUP\"],\n [1111080036, 1111080, \"MATANG MANEH\"],\n [1111080037, 1111080, \"ALUE IE MIRAH\"],\n [1111080038, 1111080, \"TANJUNG PUNTI\"],\n [1111080039, 1111080, \"TANJUNG ARA\"],\n [1111080040, 1111080, \"MATANG SANTOT\"],\n [1111080041, 1111080, \"ULEE GLE\"],\n [1111080042, 1111080, \"BUKET BATEE BADAN\"],\n [1111080043, 1111080, \"BIRAM CUT\"],\n [1111080044, 1111080, \"BIRAM RAYEUK\"],\n [1111080045, 1111080, \"COT BIEK\"],\n [1111080046, 1111080, \"MATANG ARONGAN\"],\n [1111080047, 1111080, \"LHOK BINTANG HU\"],\n [1111080048, 1111080, \"BIARA BARAT\"],\n [1111080049, 1111080, \"BIARA TIMUR\"],\n [1111080050, 1111080, \"MATANG DRIEN\"],\n [1111080051, 1111080, \"CEUMPEUDAK\"],\n [1111080052, 1111080, \"ALUE PAPEUN\"],\n [1111080053, 1111080, \"SAMAKUROK\"],\n [1111080054, 1111080, \"RAWANG ITIK\"],\n [1111080055, 1111080, \"KOTA PANTON LABU\"],\n [1111080056, 1111080, \"MNS PANTON LABU\"],\n [1111080057, 1111080, \"TANJONG CEUNGAI\"],\n [1111080058, 1111080, \"TEUPIN BAYU\"],\n [1111080059, 1111080, \"TEUPIN GAJAH\"],\n [1111080060, 1111080, \"TANJONG MEUNYE\"],\n [1111080061, 1111080, \"MATANG JURONG\"],\n [1111080062, 1111080, \"TANJONG DALAM UTARA\"],\n [1111080063, 1111080, \"TANJONG MENUANG\"],\n [1111080064, 1111080, \"SEUNEUBOK PIDIE\"],\n [1111080065, 1111080, \"MEUNASAH DAYAH\"],\n [1111080066, 1111080, \"MEUNASAH GEUDONG\"],\n [1111080067, 1111080, \"MEUNASAH MERBO\"],\n [1111080068, 1111080, \"SEUNEUBOK DHOU\"],\n [1111080069, 1111080, \"RANTAU PANYANG\"],\n [1111080070, 1111080, \"GEULUMPANG UMPUNG UNOU\"],\n [1111081001, 1111081, \"LEUBOK PUSAKA\"],\n [1111081002, 1111081, \"SEUREUKE\"],\n [1111081003, 1111081, \"BUKET LINTEUNG\"],\n [1111081004, 1111081, \"RUMOH RAYEUK\"],\n [1111081005, 1111081, \"LANGKAHAN\"],\n [1111081006, 1111081, \"GEUDUMBAK\"],\n [1111081007, 1111081, \"TANJONG DALAM SELATAN\"],\n [1111081008, 1111081, \"MEUNASAH BLANG\"],\n [1111081009, 1111081, \"ALUE KRAK KAYEE\"],\n [1111081010, 1111081, \"TANJONG JAWA\"],\n [1111081011, 1111081, \"MATANG TEUNGOH S\"],\n [1111081012, 1111081, \"PADANG MEURIA\"],\n [1111081013, 1111081, \"LEUBOK MANE\"],\n [1111081014, 1111081, \"MATANG RUBEK\"],\n [1111081015, 1111081, \"SIMPANG TIGA\"],\n [1111081016, 1111081, \"PAYA TUKAI\"],\n [1111081017, 1111081, \"KAMPONG BLANG\"],\n [1111081018, 1111081, \"MATANG KEUTAPANG\"],\n [1111081019, 1111081, \"PANTE GAKI BALE\"],\n [1111081020, 1111081, \"KRUENG LINGKA\"],\n [1111081021, 1111081, \"BANTAYAN\"],\n [1111081022, 1111081, \"ALUE DUA\"],\n [1111081023, 1111081, \"COT BADA\"],\n [1111090001, 1111090, \"BLANG TUE\"],\n [1111090002, 1111090, \"MERBO PUNTONG\"],\n [1111090003, 1111090, \"MANE KAWAN\"],\n [1111090004, 1111090, \"TANJONG PINEUNG\"],\n [1111090005, 1111090, \"ALUE KIRAN\"],\n [1111090006, 1111090, \"ALUE BARUEH\"],\n [1111090007, 1111090, \"KEUDE SIMPANG JALAN\"],\n [1111090008, 1111090, \"COT KAFIRATON\"],\n [1111090009, 1111090, \"PAYA DUA UJONG\"],\n [1111090010, 1111090, \"TANJONG DAMA\"],\n [1111090011, 1111090, \"PAYA DUA URAM\"],\n [1111090012, 1111090, \"LHOK GEULITUET\"],\n [1111090013, 1111090, \"MATANG ANOE\"],\n [1111090014, 1111090, \"LHOK RAMBIDENG\"],\n [1111090015, 1111090, \"BLANG PHA\"],\n [1111090016, 1111090, \"MATANG JEULIKAT\"],\n [1111090017, 1111090, \"DARUL AMAN\"],\n [1111090018, 1111090, \"COT TRUENG\"],\n [1111090019, 1111090, \"MEUNASAH SAGOE\"],\n [1111090020, 1111090, \"MATANG PUNTONG\"],\n [1111090021, 1111090, \"MATANG PANYANG\"],\n [1111090022, 1111090, \"COT PATISAH\"],\n [1111090023, 1111090, \"ALUE CAPLI\"],\n [1111090024, 1111090, \"SIMPANG PEUT\"],\n [1111090025, 1111090, \"ULEE TITI\"],\n [1111090026, 1111090, \"LHOK PUUK\"],\n [1111090027, 1111090, \"ULEE RUBEK BARAT\"],\n [1111090028, 1111090, \"MATANG LADA\"],\n [1111090029, 1111090, \"MATANG KARIENG\"],\n [1111090030, 1111090, \"ULEE MATANG\"],\n [1111090031, 1111090, \"ULEE RUBE TIMU\"],\n [1111090032, 1111090, \"BANTAYAN\"],\n [1111090033, 1111090, \"TEUPIN KUYUEN\"],\n [1111100001, 1111100, \"CINTA MAKMUR\"],\n [1111100002, 1111100, \"BABUSSALAM\"],\n [1111100003, 1111100, \"BUKET DARA BARO\"],\n [1111100004, 1111100, \"MATANG BARO\"],\n [1111100005, 1111100, \"UJONG DAMA\"],\n [1111100006, 1111100, \"BUKET MON SUKON\"],\n [1111100007, 1111100, \"MATANG BEURINGEN\"],\n [1111100009, 1111100, \"MATANG PINEUNG\"],\n [1111100010, 1111100, \"CEUMPEDAK\"],\n [1111100011, 1111100, \"MATANG REUDEUP\"],\n [1111100012, 1111100, \"BUKET LUENG BATA\"],\n [1111100013, 1111100, \"MATANG MANYAM\"],\n [1111100014, 1111100, \"COT MANYANG\"],\n [1111100015, 1111100, \"KEUDE MEUNYE IV\"],\n [1111100016, 1111100, \"MATANG ULIM\"],\n [1111100017, 1111100, \"MATANG LINYA\"],\n [1111100023, 1111100, \"ALUE IE TAREK\"],\n [1111100024, 1111100, \"GEULUMPANG BUNGKOK\"],\n [1111100025, 1111100, \"ARONGAN LISE\"],\n [1111100026, 1111100, \"GLUMPANG PAYONG\"],\n [1111100027, 1111100, \"ALUE RAMBONG\"],\n [1111100028, 1111100, \"GEULUMPANG SAMLAKOE\"],\n [1111100029, 1111100, \"MATANG RAWA\"],\n [1111100030, 1111100, \"MATANG LAWANG\"],\n [1111100032, 1111100, \"COT ARA\"],\n [1111100033, 1111100, \"ALUE DAMA\"],\n [1111100034, 1111100, \"ALUE BILI GEULUMPANG\"],\n [1111100035, 1111100, \"PUCOK ALUE\"],\n [1111100036, 1111100, \"MATANG KAREUNG\"],\n [1111100037, 1111100, \"COT ULAYA\"],\n [1111100040, 1111100, \"KEUDE PANTEU BREUH\"],\n [1111100041, 1111100, \"RAMBONG DALAM\"],\n [1111100042, 1111100, \"ALUE BILI RAYEUK\"],\n [1111100043, 1111100, \"MEUNASAH ALUE IE PUTEH\"],\n [1111100044, 1111100, \"KEUDE ALUE IE PUTEH\"],\n [1111100045, 1111100, \"MATANG KUMBANG\"],\n [1111100057, 1111100, \"COT MANE\"],\n [1111100058, 1111100, \"COT KUMBANG\"],\n [1111100059, 1111100, \"LHOK SEUTUY\"],\n [1111100060, 1111100, \"MEUNASAH BUJOK\"],\n [1111100061, 1111100, \"ALUE JAMOK\"],\n [1111100062, 1111100, \"MEUDANG ARA\"],\n [1111100063, 1111100, \"ALUE KEUTAPANG\"],\n [1111100064, 1111100, \"MEUNASAH GEUDONG\"],\n [1111100065, 1111100, \"KRUENG LINGKA TIMU\"],\n [1111100066, 1111100, \"KRUENG LINGKA BARAT\"],\n [1111100067, 1111100, \"ALUE ANOU TIMU\"],\n [1111100068, 1111100, \"ALUE ANOU BARAT\"],\n [1111100069, 1111100, \"ALUE SERDANG\"],\n [1111100070, 1111100, \"MATANG RAYA BARAT\"],\n [1111100074, 1111100, \"PULO SEUKE\"],\n [1111100075, 1111100, \"ALUE GEUDONG\"],\n [1111100076, 1111100, \"MATANG KEULAYU\"],\n [1111100077, 1111100, \"MATANG RAYA TIMU\"],\n [1111100078, 1111100, \"ALUE BUYA\"],\n [1111100079, 1111100, \"MATANG CUT\"],\n [1111100080, 1111100, \"TANJONG GLUMPANG\"],\n [1111101001, 1111101, \"COT KUPOK\"],\n [1111101002, 1111101, \"MATANG RAYA BLANG SIALET\"],\n [1111101003, 1111101, \"PUCOK ALUE BUKET\"],\n [1111101004, 1111101, \"COT PAYA\"],\n [1111101005, 1111101, \"MATANG TEUNGOH\"],\n [1111101006, 1111101, \"MATANG PANYANG\"],\n [1111101007, 1111101, \"MATANG BAYU\"],\n [1111101008, 1111101, \"LANG NIBONG\"],\n [1111101009, 1111101, \"SINGGAH MATA\"],\n [1111101010, 1111101, \"MATANG CEUBREK\"],\n [1111101011, 1111101, \"COT USEN\"],\n [1111101012, 1111101, \"MATANG SIJUEK BARAT\"],\n [1111101013, 1111101, \"MATANG SIJUEK TEUNGOH\"],\n [1111101014, 1111101, \"MATANG SIJUEK TIMU\"],\n [1111101015, 1111101, \"KEUDE SAMPOYNIET\"],\n [1111101016, 1111101, \"BLANG SEUNONG\"],\n [1111101017, 1111101, \"MATANG PAYA\"],\n [1111101018, 1111101, \"LHOK IBOH\"],\n [1111101019, 1111101, \"COT LABA\"],\n [1111101020, 1111101, \"MEUNASAH PANTE\"],\n [1111101021, 1111101, \"COT MURONG\"],\n [1111101022, 1111101, \"MEURANDEH PAYA\"],\n [1111101023, 1111101, \"MEUNASAH HAGU\"],\n [1111101024, 1111101, \"BLANG RHEU\"],\n [1111101025, 1111101, \"LHOK EUNCIEN\"],\n [1111101026, 1111101, \"PAYA BATEUNG\"],\n [1111110001, 1111110, \"GEULUMPANG\"],\n [1111110002, 1111110, \"BULOH LT\"],\n [1111110003, 1111110, \"ALUE ABEE\"],\n [1111110004, 1111110, \"ALUE EUMPOK\"],\n [1111110005, 1111110, \"ALUE ITAM REUDEUP\"],\n [1111110006, 1111110, \"BUKET KRUENG\"],\n [1111110007, 1111110, \"MEUNASAH TEUNGOH LB\"],\n [1111110008, 1111110, \"KUMBANG LT\"],\n [1111110009, 1111110, \"ALUE ITAM BAROH\"],\n [1111110010, 1111110, \"MEURIA\"],\n [1111110011, 1111110, \"ARONGAN LT\"],\n [1111110012, 1111110, \"BUKET ME LT\"],\n [1111110013, 1111110, \"DAYAH LT\"],\n [1111110014, 1111110, \"KRUENG LT\"],\n [1111110015, 1111110, \"MEUNASAH TUHA\"],\n [1111110016, 1111110, \"MEUNASAH RAYEUK LB\"],\n [1111110017, 1111110, \"MEUCAT\"],\n [1111110018, 1111110, \"ASAN LB\"],\n [1111110019, 1111110, \"RAWA\"],\n [1111110020, 1111110, \"BABAH GEUDUBANG\"],\n [1111110021, 1111110, \"MEUNASAH MEUREBO\"],\n [1111110022, 1111110, \"ULEE GUNONG\"],\n [1111110023, 1111110, \"TEUPIN KEUBEU\"],\n [1111110024, 1111110, \"SEUNEUBOK DALAM\"],\n [1111110025, 1111110, \"GRONG GRONG\"],\n [1111110026, 1111110, \"LHOK KAREUNG\"],\n [1111110027, 1111110, \"COT ASAN\"],\n [1111110028, 1111110, \"BUKET HAGU\"],\n [1111110030, 1111110, \"MATA IE\"],\n [1111110031, 1111110, \"MATA U\"],\n [1111110032, 1111110, \"LHOK SENTANG\"],\n [1111110033, 1111110, \"ULEE TANOH\"],\n [1111110034, 1111110, \"NGA LT\"],\n [1111110035, 1111110, \"MEUNASAH JOK\"],\n [1111110036, 1111110, \"MEUNASAH NGA LB\"],\n [1111110037, 1111110, \"MATANG MEUNYE\"],\n [1111110038, 1111110, \"BERINGIN LB\"],\n [1111110039, 1111110, \"MANYANG\"],\n [1111110040, 1111110, \"BLANG\"],\n [1111110041, 1111110, \"CEUBREK\"],\n [1111110042, 1111110, \"KUTA LHOKSUKON\"],\n [1111110043, 1111110, \"DAYAH LB\"],\n [1111110044, 1111110, \"MEUNASAH MATANG TEUNGOH LT\"],\n [1111110045, 1111110, \"MEUNASAH GEULINGGANG\"],\n [1111110046, 1111110, \"ULEE BARAT\"],\n [1111110047, 1111110, \"PULO DULANG\"],\n [1111110048, 1111110, \"MEUNASAH TUTONG\"],\n [1111110049, 1111110, \"MEUNASAH GEUMATA\"],\n [1111110050, 1111110, \"MEUNASAH PANTE\"],\n [1111110051, 1111110, \"TRIENG MATANG UBI\"],\n [1111110052, 1111110, \"MEUNYE MATANG UBI\"],\n [1111110053, 1111110, \"BLANG RUBEK\"],\n [1111110054, 1111110, \"ALUE BUKET\"],\n [1111110055, 1111110, \"MEUNASAH REUDEUP\"],\n [1111110056, 1111110, \"NGA MATANG UBI\"],\n [1111110057, 1111110, \"BUKET SENTANG\"],\n [1111110058, 1111110, \"BLANG AMAN\"],\n [1111110059, 1111110, \"COT U SIBAK\"],\n [1111110060, 1111110, \"BINTANG HU\"],\n [1111110061, 1111110, \"COT ARA\"],\n [1111110062, 1111110, \"COT GEULUMPANG AB\"],\n [1111110063, 1111110, \"ABEUK LEUPEN\"],\n [1111110064, 1111110, \"MATANG PUPANJI AB\"],\n [1111110065, 1111110, \"MATANG TEUNGOH AB\"],\n [1111110066, 1111110, \"MEUNASAH ASAN AB\"],\n [1111110067, 1111110, \"RANTO\"],\n [1111110068, 1111110, \"KEUTAPANG\"],\n [1111110069, 1111110, \"ALUE MUDEM\"],\n [1111110070, 1111110, \"R A M B O T\"],\n [1111110071, 1111110, \"ARA AB\"],\n [1111110072, 1111110, \"MEUNASAH ALUE DRIEN LB\"],\n [1111110073, 1111110, \"MANCANG\"],\n [1111110074, 1111110, \"LEUBOK AB\"],\n [1111110075, 1111110, \"TRIENG PANTANG\"],\n [1111110076, 1111110, \"MEUNASAH ARONGAN AB\"],\n [1111120001, 1111120, \"LEUPON SIREN\"],\n [1111120002, 1111120, \"ULEE BUKET\"],\n [1111120003, 1111120, \"BLANG PIE\"],\n [1111120004, 1111120, \"BLANG TRIENG\"],\n [1111120008, 1111120, \"COT BARAT\"],\n [1111120009, 1111120, \"PLU PAKAM\"],\n [1111120010, 1111120, \"TUMPOK ACEH\"],\n [1111120011, 1111120, \"COT DAH\"],\n [1111120012, 1111120, \"ALUE SIJUEK\"],\n [1111120015, 1111120, \"HAGU\"],\n [1111120016, 1111120, \"BAYI\"],\n [1111120017, 1111120, \"LEU HONG\"],\n [1111120018, 1111120, \"PUNTI SEULEUMAK BARAT\"],\n [1111120019, 1111120, \"SERBA JAMAN TUNONG\"],\n [1111120020, 1111120, \"ALUE GAMPONG\"],\n [1111120023, 1111120, \"MATANG BALOY\"],\n [1111120024, 1111120, \"TEUPIN ME\"],\n [1111120025, 1111120, \"BLANG\"],\n [1111120026, 1111120, \"MATANG MANE\"],\n [1111120030, 1111120, \"TANJONG MESJID\"],\n [1111120031, 1111120, \"KEUTAPANG\"],\n [1111120032, 1111120, \"CEUBREK\"],\n [1111120033, 1111120, \"MANYANG SEULEUMAK BARAT\"],\n [1111120034, 1111120, \"TRIENG\"],\n [1111120035, 1111120, \"SERBA JAMAN BAROH\"],\n [1111120036, 1111120, \"UJONG BAROH SB\"],\n [1111120044, 1111120, \"BLANG JRUEN\"],\n [1111120045, 1111120, \"RAYEUK KUTA\"],\n [1111120046, 1111120, \"PAYA\"],\n [1111120047, 1111120, \"RANGKAYA\"],\n [1111120048, 1111120, \"RAYEUK MEUNYE\"],\n [1111120049, 1111120, \"KEUDE BLANG JRUEN\"],\n [1111120050, 1111120, \"AMPEH\"],\n [1111120054, 1111120, \"TUTONG\"],\n [1111120055, 1111120, \"ALUE\"],\n [1111120056, 1111120, \"TEUNGOH BEUREGHANG\"],\n [1111120057, 1111120, \"JEUMPA BEUREGHANG\"],\n [1111120058, 1111120, \"PANTE\"],\n [1111120059, 1111120, \"TGK DIBALE\"],\n [1111120060, 1111120, \"SERBA JAMAN\"],\n [1111120061, 1111120, \"RAYEUK NALEUNG\"],\n [1111120062, 1111120, \"BLANG BIDOK\"],\n [1111120063, 1111120, \"PUNTI PULO AGAM\"],\n [1111120064, 1111120, \"TEUNGOH PULO AGAM\"],\n [1111120065, 1111120, \"RAWA\"],\n [1111120066, 1111120, \"MATANG BEN\"],\n [1111120067, 1111120, \"UJONG BAROH BEUREGHANG\"],\n [1111120068, 1111120, \"MANYANG TUNONG\"],\n [1111120069, 1111120, \"ALUE PANGKAT\"],\n [1111120070, 1111120, \"PULO BLANG\"],\n [1111120071, 1111120, \"MATANG CEUBREK\"],\n [1111120072, 1111120, \"HUENG\"],\n [1111120073, 1111120, \"DENG\"],\n [1111120074, 1111120, \"PAYA BEURANDANG\"],\n [1111120075, 1111120, \"PULO U\"],\n [1111120076, 1111120, \"ALUE KEUJRUEN\"],\n [1111120077, 1111120, \"BUKET MAKARTI\"],\n [1111121001, 1111121, \"BUMBAN\"],\n [1111121002, 1111121, \"ALUE NGOM\"],\n [1111121003, 1111121, \"ALUE PANAH\"],\n [1111121004, 1111121, \"ALUE IE MIRAH\"],\n [1111121005, 1111121, \"MADDI\"],\n [1111121006, 1111121, \"TANJONG PUTOH\"],\n [1111121007, 1111121, \"SEULUNYOK\"],\n [1111121008, 1111121, \"RANTO\"],\n [1111121009, 1111121, \"MENYE LHEE\"],\n [1111121010, 1111121, \"KEULILEE\"],\n [1111121011, 1111121, \"PAYA TEUREUBANG\"],\n [1111121012, 1111121, \"SUMBOK RAYEK\"],\n [1111121013, 1111121, \"MAMPLAM\"],\n [1111121014, 1111121, \"KEH\"],\n [1111121015, 1111121, \"DAYAH NIBONG\"],\n [1111121016, 1111121, \"TEUPIN JOK\"],\n [1111121017, 1111121, \"KEUPOK NIBONG\"],\n [1111121018, 1111121, \"KEUDE NIBONG\"],\n [1111121019, 1111121, \"NIBONG WAKEUH\"],\n [1111121020, 1111121, \"NIBONG BAROH\"],\n [1111130001, 1111130, \"KITOU\"],\n [1111130002, 1111130, \"PAYA TERBANG\"],\n [1111130003, 1111130, \"TANJONG MESJID\"],\n [1111130004, 1111130, \"TANJONG AWE\"],\n [1111130005, 1111130, \"TANJONG RENGKAM\"],\n [1111130006, 1111130, \"TANJONG HAGU\"],\n [1111130007, 1111130, \"MADAN\"],\n [1111130008, 1111130, \"TANJONG BAROH\"],\n [1111130009, 1111130, \"GAMPONG BARO\"],\n [1111130010, 1111130, \"TANJONG KLENG\"],\n [1111130011, 1111130, \"KRUENG BARO LGH\"],\n [1111130012, 1111130, \"TEUPIN BEULANGAN\"],\n [1111130013, 1111130, \"TEUPIN ARA\"],\n [1111130014, 1111130, \"PUSONG\"],\n [1111130015, 1111130, \"MANCANG\"],\n [1111130016, 1111130, \"BLANG KABU\"],\n [1111130017, 1111130, \"KEUDE GEUDONG\"],\n [1111130018, 1111130, \"BLANG PEURIA\"],\n [1111130019, 1111130, \"MEUNASAH ASAN\"],\n [1111130020, 1111130, \"MURONG\"],\n [1111130021, 1111130, \"PIE\"],\n [1111130022, 1111130, \"KRUENG MATE\"],\n [1111130023, 1111130, \"BEURINGEN\"],\n [1111130024, 1111130, \"KUTA KRUENG\"],\n [1111130025, 1111130, \"KUTA GLUMPANG\"],\n [1111130026, 1111130, \"MEUCAT\"],\n [1111130027, 1111130, \"KRUENG BARO BLANG ME\"],\n [1111130028, 1111130, \"UJONG\"],\n [1111130029, 1111130, \"MESJID\"],\n [1111130030, 1111130, \"TEUNGOH\"],\n [1111130031, 1111130, \"PUUK\"],\n [1111130032, 1111130, \"PULO\"],\n [1111130033, 1111130, \"LAGA BARO\"],\n [1111130034, 1111130, \"MATANG TUNONG\"],\n [1111130035, 1111130, \"KEUDE BLANG ME\"],\n [1111130036, 1111130, \"MATANG PUNTONG\"],\n [1111130037, 1111130, \"LANCANG\"],\n [1111130038, 1111130, \"MATANG ULIM\"],\n [1111130039, 1111130, \"SAWANG\"],\n [1111130040, 1111130, \"BLANG NIBONG\"],\n [1111140001, 1111140, \"TANJONG KRUENG PASE\"],\n [1111140002, 1111140, \"MATANG MUNYE\"],\n [1111140003, 1111140, \"BLANG\"],\n [1111140004, 1111140, \"GLOK ARON\"],\n [1111140005, 1111140, \"MEE ARON\"],\n [1111140006, 1111140, \"MEURIA ARON\"],\n [1111140007, 1111140, \"U BLANG ASAN\"],\n [1111140008, 1111140, \"KANOT\"],\n [1111140009, 1111140, \"DAYAH ARON\"],\n [1111140010, 1111140, \"MONCRANG\"],\n [1111140011, 1111140, \"KEUDE ARON\"],\n [1111140012, 1111140, \"TEUNGOH\"],\n [1111140013, 1111140, \"KUMBANG\"],\n [1111140014, 1111140, \"CIBREK TUNONG\"],\n [1111140015, 1111140, \"MEUCAT\"],\n [1111140016, 1111140, \"DAYAH TEUNGKU\"],\n [1111140017, 1111140, \"CALONG\"],\n [1111140018, 1111140, \"MANYANG BAROH\"],\n [1111140019, 1111140, \"ALUE GUNTO\"],\n [1111140020, 1111140, \"PEURUPOK\"],\n [1111140021, 1111140, \"PULO\"],\n [1111140022, 1111140, \"TANJONG MULIENG\"],\n [1111140023, 1111140, \"CIBREK BAROH\"],\n [1111140024, 1111140, \"MESJID\"],\n [1111140025, 1111140, \"PANTE\"],\n [1111140026, 1111140, \"KEUTAPANG\"],\n [1111140027, 1111140, \"KEUDE TEUPIN PUNTI\"],\n [1111140028, 1111140, \"AWE\"],\n [1111140029, 1111140, \"HAGU\"],\n [1111140030, 1111140, \"ARA\"],\n [1111140031, 1111140, \"MAMPREE\"],\n [1111140032, 1111140, \"AMPEH\"],\n [1111140033, 1111140, \"DAYAH MEURIA\"],\n [1111140034, 1111140, \"KULAM\"],\n [1111150001, 1111150, \"ALUE\"],\n [1111150002, 1111150, \"KEUDE MATANG PANYANG\"],\n [1111150003, 1111150, \"BLANG\"],\n [1111150004, 1111150, \"GAMPONG PANDE\"],\n [1111150005, 1111150, \"PALOH\"],\n [1111150006, 1111150, \"PRIE\"],\n [1111150007, 1111150, \"ME MERBO\"],\n [1111150008, 1111150, \"ULEE TANOH\"],\n [1111150009, 1111150, \"MATANG RANUB LASEH\"],\n [1111150015, 1111150, \"KEUTAPANG\"],\n [1111150016, 1111150, \"KUMBANG\"],\n [1111150017, 1111150, \"ME MATANG PANYANG\"],\n [1111150018, 1111150, \"CANGGUEK\"],\n [1111150019, 1111150, \"KEUDE JRAT MANYANG\"],\n [1111150020, 1111150, \"TEUPIN GAPEUH\"],\n [1111150021, 1111150, \"CIBREK\"],\n [1111150024, 1111150, \"MATANG JANENG\"],\n [1111150029, 1111150, \"KUALA KEUREUTOE BARAT\"],\n [1111151001, 1111151, \"KEUREUTOAU\"],\n [1111151002, 1111151, \"LUENG BARO\"],\n [1111151003, 1111151, \"MERBO LAMA\"],\n [1111151004, 1111151, \"MERBO JURONG\"],\n [1111151005, 1111151, \"TANJUNG DAMA\"],\n [1111151006, 1111151, \"GEULANGGANG BARO\"],\n [1111151007, 1111151, \"MATANG TUNONG\"],\n [1111151008, 1111151, \"MATANG BAROH\"],\n [1111151009, 1111151, \"KEUDE LAPANG\"],\n [1111151010, 1111151, \"KUALA CANGKOI\"],\n [1111151011, 1111151, \"KUALA KEREUTOU\"],\n [1111160001, 1111160, \"TEUPIN BANJA\"],\n [1111160002, 1111160, \"PANIGAH\"],\n [1111160003, 1111160, \"PALOH AWE\"],\n [1111160004, 1111160, \"REULEUT TIMUR\"],\n [1111160005, 1111160, \"REULEUT BARAT\"],\n [1111160006, 1111160, \"PINTO MAKMUR\"],\n [1111160007, 1111160, \"TUMPOK BEURANDANG\"],\n [1111160008, 1111160, \"PALOH RAYA\"],\n [1111160009, 1111160, \"MEUNASAH PINTO\"],\n [1111160010, 1111160, \"KUALA DUA\"],\n [1111160011, 1111160, \"KEUDE MANE\"],\n [1111160012, 1111160, \"MANE TUNONG\"],\n [1111160013, 1111160, \"PANTE GURAH\"],\n [1111160014, 1111160, \"KAMBAM\"],\n [1111160015, 1111160, \"KEUDE BUNGKAIH\"],\n [1111160016, 1111160, \"ULEE MADON\"],\n [1111160017, 1111160, \"MEUNASAH ARON\"],\n [1111160018, 1111160, \"COT TRUENG\"],\n [1111160019, 1111160, \"DAKUTA\"],\n [1111160020, 1111160, \"MEUNASAH DRANG\"],\n [1111160021, 1111160, \"MEUNASAH BARO\"],\n [1111160022, 1111160, \"MEUNASAH LHOK\"],\n [1111160023, 1111160, \"COT SEURANI\"],\n [1111160024, 1111160, \"TANOH ANOUE\"],\n [1111170001, 1111170, \"PALOH IGEUH\"],\n [1111170002, 1111170, \"PALOH GADENG\"],\n [1111170003, 1111170, \"TAMBON TUNONG\"],\n [1111170004, 1111170, \"TAMBON BAROH\"],\n [1111170005, 1111170, \"PALOH LADA\"],\n [1111170006, 1111170, \"PULO RUNGKOM\"],\n [1111170007, 1111170, \"ULEE PULO\"],\n [1111170008, 1111170, \"ULEE REULEUNG\"],\n [1111170009, 1111170, \"LANCANG BARAT\"],\n [1111170010, 1111170, \"GEULUMPANG SULU BARAT\"],\n [1111170011, 1111170, \"GEULUMPANG SULU TIMUR\"],\n [1111170012, 1111170, \"UTEUN GEULINGGANG\"],\n [1111170013, 1111170, \"KEUDE KRUENG GEUKUEH\"],\n [1111170014, 1111170, \"BANGKA JAYA\"],\n [1111170015, 1111170, \"BLUKA TEUBAI\"],\n [1112010015, 1112010, \"TENGAH\"],\n [1112010016, 1112010, \"PADANG\"],\n [1112010017, 1112010, \"KEDAI\"],\n [1112010018, 1112010, \"PAYA\"],\n [1112010019, 1112010, \"SEUNALOP\"],\n [1112010022, 1112010, \"LADANG PANAH\"],\n [1112010023, 1112010, \"PUSU\"],\n [1112010024, 1112010, \"UJUNG PADANG\"],\n [1112010025, 1112010, \"LHUNG BARO\"],\n [1112010026, 1112010, \"PANTON MAKMUR\"],\n [1112010027, 1112010, \"PANTE RAJA\"],\n [1112010028, 1112010, \"LHOK PAWOH\"],\n [1112010029, 1112010, \"PANTE PIRAK\"],\n [1112010030, 1112010, \"SEJAHTERA\"],\n [1112010031, 1112010, \"BLANG MANGGENG\"],\n [1112010032, 1112010, \"TOKOH\"],\n [1112010033, 1112010, \"LHOK PUNTOY\"],\n [1112010034, 1112010, \"PANTE CERMIN\"],\n [1112011001, 1112011, \"UJUNG TANAH\"],\n [1112011002, 1112011, \"KUTA PAYA\"],\n [1112011003, 1112011, \"GEULANGGANG BATEE\"],\n [1112011004, 1112011, \"MEUNASAH TENGAH\"],\n [1112011005, 1112011, \"MEUNASAH SUKON\"],\n [1112011006, 1112011, \"COT BAK-U\"],\n [1112011007, 1112011, \"MEURANDEH\"],\n [1112011008, 1112011, \"PADANG KELELE\"],\n [1112011009, 1112011, \"LADANG TUHA I\"],\n [1112011010, 1112011, \"LADANG TUHA II\"],\n [1112011011, 1112011, \"ALUE RAMBOT\"],\n [1112011016, 1112011, \"SUKA DAMAI\"],\n [1112011017, 1112011, \"TOKOH II\"],\n [1112011018, 1112011, \"KAYE ACEH\"],\n [1112020001, 1112020, \"PADANG BAKJOK\"],\n [1112020002, 1112020, \"SUAK NIBONG\"],\n [1112020003, 1112020, \"DRIEN KIPAH\"],\n [1112020004, 1112020, \"BINEH KRUENG\"],\n [1112020005, 1112020, \"DRIEN JALO\"],\n [1112020006, 1112020, \"PADANG KAWA\"],\n [1112020007, 1112020, \"MESJID\"],\n [1112020008, 1112020, \"ADAN\"],\n [1112020009, 1112020, \"PANTE GEULUMPANG\"],\n [1112020010, 1112020, \"GUNUNG CUT\"],\n [1112020011, 1112020, \"PADANG BAK JEUMPA\"],\n [1112020012, 1112020, \"BLANG PADANG\"],\n [1112020013, 1112020, \"SUAK LABU\"],\n [1112020014, 1112020, \"KUTA BAK DRIN\"],\n [1112020015, 1112020, \"IE LHOP\"],\n [1112021002, 1112021, \"TANGAN TANGAN CUT\"],\n [1112021003, 1112021, \"LHANG\"],\n [1112021004, 1112021, \"UJUNG TANAH\"],\n [1112021005, 1112021, \"RAMBONG\"],\n [1112021006, 1112021, \"PISANG\"],\n [1112021007, 1112021, \"ALUE DAMA\"],\n [1112021008, 1112021, \"MON MAMEH\"],\n [1112021009, 1112021, \"CINTA MAKMUR\"],\n [1112021010, 1112021, \"KUTA MURNI\"],\n [1112030002, 1112030, \"COT JEURAT\"],\n [1112030003, 1112030, \"KUTA BAHAGIA\"],\n [1112030004, 1112030, \"KEDAI SIBLAH\"],\n [1112030005, 1112030, \"PASAR BLANG PIDIE\"],\n [1112030006, 1112030, \"MEUDANG ARA\"],\n [1112030007, 1112030, \"GEULUMPANG PAYONG\"],\n [1112030008, 1112030, \"KUTA TINGGI\"],\n [1112030009, 1112030, \"KEDAI PAYA\"],\n [1112030010, 1112030, \"BAHARU\"],\n [1112030011, 1112030, \"LAMKUTA\"],\n [1112030012, 1112030, \"ALUM ANGGOTA\"],\n [1112030013, 1112030, \"MATA IE\"],\n [1112030014, 1112030, \"PANTON RAYA\"],\n [1112030015, 1112030, \"SEUNALOH\"],\n [1112030016, 1112030, \"LHUNG TAROK\"],\n [1112030018, 1112030, \"LHUNG ASAN\"],\n [1112030019, 1112030, \"GUHANG\"],\n [1112030027, 1112030, \"KUTA TUHA\"],\n [1112030029, 1112030, \"GUDANG\"],\n [1112030030, 1112030, \"BABAH LHUNG\"],\n [1112031001, 1112031, \"PADANG GEULUMPANG\"],\n [1112031002, 1112031, \"ASO NANGGRO\"],\n [1112031003, 1112031, \"LADANG NEUBOK\"],\n [1112031004, 1112031, \"IKU LHUNG\"],\n [1112031005, 1112031, \"COT MANE\"],\n [1112031006, 1112031, \"KUTA JEUMPA\"],\n [1112031007, 1112031, \"ALUE SUNGAI PINANG\"],\n [1112031008, 1112031, \"ALUE RAMBOT\"],\n [1112031009, 1112031, \"BARU\"],\n [1112031010, 1112031, \"KUTA MAKMUR\"],\n [1112031011, 1112031, \"ALUE SELASEH\"],\n [1112031012, 1112031, \"JEUMPA BARAT\"],\n [1112040001, 1112040, \"KEDAI SUSOH\"],\n [1112040002, 1112040, \"PANJANG BARU\"],\n [1112040003, 1112040, \"KEDAI PALAK KERAMBIL\"],\n [1112040004, 1112040, \"LADANG\"],\n [1112040005, 1112040, \"PADANG PANJANG\"],\n [1112040006, 1112040, \"RUBEK MEUPAYONG\"],\n [1112040007, 1112040, \"COT MANCANG\"],\n [1112040008, 1112040, \"LAMPOH DRIEN\"],\n [1112040009, 1112040, \"MEUNASAH\"],\n [1112040010, 1112040, \"BLANG DALAM\"],\n [1112040011, 1112040, \"PALAK HULU\"],\n [1112040012, 1112040, \"PALAK HILIR\"],\n [1112040013, 1112040, \"RUMAH DUA LAPIS\"],\n [1112040014, 1112040, \"DURIAN JANGEK\"],\n [1112040015, 1112040, \"BAHARU\"],\n [1112040016, 1112040, \"PINANG\"],\n [1112040017, 1112040, \"RUMAH PANJANG\"],\n [1112040018, 1112040, \"PADANG BARU\"],\n [1112040019, 1112040, \"PULAU KAYU\"],\n [1112040020, 1112040, \"UJUNG PADANG\"],\n [1112040021, 1112040, \"PAWOH\"],\n [1112040022, 1112040, \"BARAT\"],\n [1112040023, 1112040, \"DURIAN RAMPAK\"],\n [1112040024, 1112040, \"PANTAI PERAK\"],\n [1112040025, 1112040, \"PADANG HILIR\"],\n [1112040026, 1112040, \"GADANG\"],\n [1112040027, 1112040, \"TANGAH\"],\n [1112040028, 1112040, \"KEPALA BANDAR\"],\n [1112040029, 1112040, \"GEULIMA JAYA\"],\n [1112050001, 1112050, \"LAMA TUHA\"],\n [1112050002, 1112050, \"KEUDEE BARO\"],\n [1112050003, 1112050, \"IE MAMEH\"],\n [1112050004, 1112050, \"ALUE PISANG\"],\n [1112050005, 1112050, \"KRUENG BATEE\"],\n [1112050006, 1112050, \"LHOK GAJAH\"],\n [1112050007, 1112050, \"MUKA BLANG\"],\n [1112050008, 1112050, \"PADANG SIKABU\"],\n [1112050009, 1112050, \"LHUNG GELUMPANG\"],\n [1112050010, 1112050, \"ALUE PADEE\"],\n [1112050011, 1112050, \"BLANG PANYANG\"],\n [1112050012, 1112050, \"KAMPUNG TENGAH\"],\n [1112050013, 1112050, \"BLANG MAKMUR\"],\n [1112050014, 1112050, \"KUALA TERUBU\"],\n [1112050015, 1112050, \"PASAR KUTA BAHAGIA\"],\n [1112050016, 1112050, \"PANTO CUT\"],\n [1112050017, 1112050, \"KOTA BAHAGIA\"],\n [1112050018, 1112050, \"GELANGGANG GAJAH\"],\n [1112050019, 1112050, \"KRUENG PANTO\"],\n [1112050020, 1112050, \"DRIEN BEURUMBANG\"],\n [1112050021, 1112050, \"RUMOH PANYANG\"],\n [1112060001, 1112060, \"GUNUNG SAMARINDA\"],\n [1112060002, 1112060, \"IE MERAH\"],\n [1112060003, 1112060, \"PANTEE RAKYAT\"],\n [1112060004, 1112060, \"PANTEE CERMIN\"],\n [1112060005, 1112060, \"ALUE JERJAK\"],\n [1112060006, 1112060, \"BLANG DALAM\"],\n [1112060007, 1112060, \"ALUE PEUNAWA\"],\n [1112060008, 1112060, \"SIMPANG GADENG\"],\n [1112060009, 1112060, \"TELADAN JAYA\"],\n [1112060010, 1112060, \"BLANG RAJA\"],\n [1112060011, 1112060, \"RUKOEN DAMEE\"],\n [1112060012, 1112060, \"LHOK GAYO\"],\n [1112060013, 1112060, \"ALUE DAWAH\"],\n [1112060014, 1112060, \"COT SEUMANTOK\"],\n [1113010001, 1113010, \"BENER\"],\n [1113010003, 1113010, \"RIKIT DEKAT\"],\n [1113010004, 1113010, \"ULON TANOH\"],\n [1113010005, 1113010, \"REMA\"],\n [1113010006, 1113010, \"TAMPENG\"],\n [1113010007, 1113010, \"BERANANG\"],\n [1113010008, 1113010, \"KUTA UJUNG\"],\n [1113010014, 1113010, \"CIKE\"],\n [1113010015, 1113010, \"REMA BARU\"],\n [1113010016, 1113010, \"KERUKUNAN KUTA PANJANG\"],\n [1113010017, 1113010, \"TAMPENG MUSARA\"],\n [1113010018, 1113010, \"KONG PALUH\"],\n [1113011001, 1113011, \"PENOSAN\"],\n [1113011002, 1113011, \"PENOSAN SEPAKAT\"],\n [1113011003, 1113011, \"GEGARANG\"],\n [1113011004, 1113011, \"PEPARIK GAIB\"],\n [1113011005, 1113011, \"TINGKEM\"],\n [1113011006, 1113011, \"SEKUELEN\"],\n [1113011007, 1113011, \"AKUL\"],\n [1113011008, 1113011, \"KETUKAH\"],\n [1113011009, 1113011, \"BLANG JERANGO\"],\n [1113011010, 1113011, \"PEPARIK DEKAT\"],\n [1113020002, 1113020, \"PALOK\"],\n [1113020003, 1113020, \"PENGGALANGAN\"],\n [1113020004, 1113020, \"LEMPUH\"],\n [1113020007, 1113020, \"KUTE SERE\"],\n [1113020008, 1113020, \"CEMPA\"],\n [1113020009, 1113020, \"GELE\"],\n [1113020010, 1113020, \"PENAMPAAN\"],\n [1113020011, 1113020, \"PORANG\"],\n [1113020013, 1113020, \"KOTA BLANGKEJEREN\"],\n [1113020014, 1113020, \"KAMPUNG JAWA\"],\n [1113020015, 1113020, \"KUTA LINTANG\"],\n [1113020016, 1113020, \"LEME\"],\n [1113020017, 1113020, \"BUKIT\"],\n [1113020018, 1113020, \"DURIN\"],\n [1113020019, 1113020, \"BACANG\"],\n [1113020025, 1113020, \"AGUSEN\"],\n [1113020026, 1113020, \"PENAMPAAN UKEN\"],\n [1113020028, 1113020, \"BUSTANUSSALAM\"],\n [1113020029, 1113020, \"SEPANG\"],\n [1113020030, 1113020, \"RAK LUNUNG\"],\n [1113020031, 1113020, \"SENTANG\"],\n [1113021001, 1113021, \"MARPUNGE\"],\n [1113021002, 1113021, \"RAMUNG MUSARA\"],\n [1113021003, 1113021, \"MELOAK SEPAKAT\"],\n [1113021004, 1113021, \"GUMPANG PEKAN\"],\n [1113021005, 1113021, \"PINTU GAYO\"],\n [1113021006, 1113021, \"JERET ONOM\"],\n [1113021007, 1113021, \"KUTE LENGAT SEPAKAT\"],\n [1113021008, 1113021, \"PUNGKE JAYA\"],\n [1113021009, 1113021, \"SINGAH MULE\"],\n [1113021010, 1113021, \"MELOAK AIH ILANG\"],\n [1113021011, 1113021, \"UNING PUNE\"],\n [1113021012, 1113021, \"PUTRI BETUNG\"],\n [1113021013, 1113021, \"GUMPANG LEMPUH\"],\n [1113022001, 1113022, \"SANGIR\"],\n [1113022002, 1113022, \"PANGLIMA LINTING\"],\n [1113022003, 1113022, \"PANGUR\"],\n [1113022004, 1113022, \"BADAK\"],\n [1113022005, 1113022, \"BLANGTEMUNG\"],\n [1113022006, 1113022, \"KENDAWI\"],\n [1113022007, 1113022, \"PEPALAN\"],\n [1113022008, 1113022, \"UNING SEPAKAT\"],\n [1113022009, 1113022, \"UNING GELUNG\"],\n [1113022010, 1113022, \"REREBE\"],\n [1113022011, 1113022, \"RIGEB\"],\n [1113023001, 1113023, \"BENER BARU\"],\n [1113023002, 1113023, \"KUTE BUKIT\"],\n [1113023003, 1113023, \"BLANG BENGKIK\"],\n [1113023004, 1113023, \"GANTUNG GELUNI\"],\n [1113023005, 1113023, \"KONG BUR\"],\n [1113023006, 1113023, \"UME LAH\"],\n [1113023007, 1113023, \"AKANG SIWAH\"],\n [1113023008, 1113023, \"TETINGI\"],\n [1113023009, 1113023, \"CINTA MAJU\"],\n [1113023011, 1113023, \"PORANG AYU\"],\n [1113023012, 1113023, \"ANAK REJE\"],\n [1113023013, 1113023, \"RAK LINTANG\"],\n [1113030001, 1113030, \"GAJAH\"],\n [1113030002, 1113030, \"URING\"],\n [1113030003, 1113030, \"PINTU RIME\"],\n [1113030004, 1113030, \"EKAN\"],\n [1113030005, 1113030, \"PERTIK\"],\n [1113030006, 1113030, \"PINING\"],\n [1113030007, 1113030, \"PEPALAH\"],\n [1113030008, 1113030, \"PASIR PUTIH\"],\n [1113030009, 1113030, \"LESTEN\"],\n [1113040004, 1113040, \"KUNING\"],\n [1113040005, 1113040, \"PADANG PASIR\"],\n [1113040006, 1113040, \"MANGANG\"],\n [1113040007, 1113040, \"RIKIT GAIB\"],\n [1113040008, 1113040, \"AMPA KOLAK\"],\n [1113040009, 1113040, \"CANE UKEN\"],\n [1113040010, 1113040, \"TUNGEL\"],\n [1113040011, 1113040, \"PINANG RUGUP\"],\n [1113040012, 1113040, \"REMPELAM\"],\n [1113040013, 1113040, \"CANE TOA\"],\n [1113040014, 1113040, \"TUNGEL BARU\"],\n [1113040015, 1113040, \"LUKUP BARU\"],\n [1113040016, 1113040, \"PENOMON JAYA\"],\n [1113041001, 1113041, \"TETINGI\"],\n [1113041002, 1113041, \"REMUKUT\"],\n [1113041003, 1113041, \"SENEREN\"],\n [1113041004, 1113041, \"KENYARAN\"],\n [1113041005, 1113041, \"ATU KAPUR\"],\n [1113041006, 1113041, \"UNING KURNIA\"],\n [1113041007, 1113041, \"SURI MUSARA\"],\n [1113041008, 1113041, \"CANE BARU\"],\n [1113041009, 1113041, \"AIH SELAH\"],\n [1113050001, 1113050, \"BUKUT\"],\n [1113050002, 1113050, \"SOYO\"],\n [1113050003, 1113050, \"KUTA SANGE\"],\n [1113050004, 1113050, \"RUMPI\"],\n [1113050005, 1113050, \"REMPELAM JABO\"],\n [1113050006, 1113050, \"PADANG\"],\n [1113050007, 1113050, \"TERANGUN\"],\n [1113050008, 1113050, \"REMPELAM PINANG\"],\n [1113050012, 1113050, \"TERLIS\"],\n [1113050013, 1113050, \"BERHUT\"],\n [1113050015, 1113050, \"KUTE REJE\"],\n [1113050016, 1113050, \"GEWAT\"],\n [1113050017, 1113050, \"PANTAN LUES\"],\n [1113050018, 1113050, \"MAKMUR JAYA\"],\n [1113050019, 1113050, \"PERSADA TONGRA\"],\n [1113050020, 1113050, \"BLANG KUNCIR\"],\n [1113050021, 1113050, \"TELEGE JERNIH\"],\n [1113050022, 1113050, \"REJE PUDUNG\"],\n [1113050023, 1113050, \"MELELANG\"],\n [1113050024, 1113050, \"LESTARI\"],\n [1113050025, 1113050, \"BLANG KALA\"],\n [1113050026, 1113050, \"GARUT\"],\n [1113050027, 1113050, \"GAWAR BELANGI\"],\n [1113050028, 1113050, \"RIME RAYA\"],\n [1113050029, 1113050, \"BLANG KEDE\"],\n [1113051001, 1113051, \"PASIR\"],\n [1113051002, 1113051, \"REREBE\"],\n [1113051003, 1113051, \"SETUL\"],\n [1113051004, 1113051, \"PERLAK\"],\n [1113051005, 1113051, \"PANTAN KELA\"],\n [1113051006, 1113051, \"PAYA KUMER\"],\n [1113051007, 1113051, \"UYEM BERIRING\"],\n [1113051008, 1113051, \"PULO GELIME\"],\n [1113051009, 1113051, \"BUNTUL MUSARA\"],\n [1113051010, 1113051, \"KUALA JERNIH\"],\n [1114010001, 1114010, \"KALOY\"],\n [1114010002, 1114010, \"RONGOH\"],\n [1114010003, 1114010, \"ALUR TANI I\"],\n [1114010004, 1114010, \"ALUR TANI II\"],\n [1114010005, 1114010, \"BANDAR KHALIFAH\"],\n [1114010006, 1114010, \"PERK PULAU TIGA\"],\n [1114010007, 1114010, \"BANDAR SETIA\"],\n [1114010008, 1114010, \"HARUM SARI\"],\n [1114010009, 1114010, \"WONO SARI\"],\n [1114011001, 1114011, \"JAMBO RAMBONG\"],\n [1114011002, 1114011, \"BLANG KANDIS\"],\n [1114011003, 1114011, \"PERK ALUR JAMBU\"],\n [1114011004, 1114011, \"ARAS SEMBILAN\"],\n [1114011005, 1114011, \"ALUR JAMBU\"],\n [1114011006, 1114011, \"BATANG ARA\"],\n [1114011007, 1114011, \"PERUPUK\"],\n [1114011008, 1114011, \"SERBA\"],\n [1114011009, 1114011, \"SUNTING\"],\n [1114011010, 1114011, \"RANTAU BINTANG\"],\n [1114011011, 1114011, \"BABO\"],\n [1114011012, 1114011, \"PANTAI CEMPA\"],\n [1114011013, 1114011, \"PENGIDAM\"],\n [1114011014, 1114011, \"BENGKELANG\"],\n [1114011015, 1114011, \"BATU BEDULANG\"],\n [1114020005, 1114020, \"KEBUN SUNGAI LIPUT\"],\n [1114020007, 1114020, \"ALUR SELEBU\"],\n [1114020008, 1114020, \"SUKA MAKMUR\"],\n [1114020009, 1114020, \"SEUMADAM\"],\n [1114020010, 1114020, \"KARANGJADI\"],\n [1114020011, 1114020, \"KAMPUNG JAWA\"],\n [1114020012, 1114020, \"SIDODADI\"],\n [1114020013, 1114020, \"PURWODADI\"],\n [1114020014, 1114020, \"TANJUNG GENTENG\"],\n [1114020015, 1114020, \"GERENGGAM\"],\n [1114020016, 1114020, \"SIMPANG KANAN\"],\n [1114020017, 1114020, \"TANJUNG MANCANG\"],\n [1114020018, 1114020, \"PANGKALAN\"],\n [1114020019, 1114020, \"SUNGAI LIPUT\"],\n [1114020020, 1114020, \"BUKIT RATA\"],\n [1114021001, 1114021, \"SELAMAT\"],\n [1114021002, 1114021, \"TENGGULUN\"],\n [1114021003, 1114021, \"RIMBA SAWANG\"],\n [1114021004, 1114021, \"TEBING TINGGI\"],\n [1114021006, 1114021, \"SIMPANG KIRI\"],\n [1114030001, 1114030, \"INGIN JAYA\"],\n [1114030002, 1114030, \"PAYA BEDI\"],\n [1114030003, 1114030, \"LANDUH\"],\n [1114030004, 1114030, \"BENUA RAJA\"],\n [1114030005, 1114030, \"KAMPUNG DURIAN\"],\n [1114030006, 1114030, \"SUKAJADI\"],\n [1114030007, 1114030, \"SUKA RAHMAT\"],\n [1114030008, 1114030, \"SUKA MULIA\"],\n [1114030009, 1114030, \"SUKA RAKYAT\"],\n [1114030010, 1114030, \"JAMUR LABU\"],\n [1114030011, 1114030, \"JAMUR JELATANG\"],\n [1114030012, 1114030, \"KAMP PERTAMINA\"],\n [1114030013, 1114030, \"RANTAU PAUH\"],\n [1114030014, 1114030, \"ALUR CUCUR\"],\n [1114030015, 1114030, \"KEBUN RANTAU\"],\n [1114030016, 1114030, \"ALUR MANIS\"],\n [1114040001, 1114040, \"SRIWIJAYA\"],\n [1114040002, 1114040, \"KOTA KUALA SIMPANG\"],\n [1114040003, 1114040, \"PERDAMAIAN\"],\n [1114040004, 1114040, \"BUKIT TEMPURUNG\"],\n [1114040005, 1114040, \"KOTA LINTANG\"],\n [1114050001, 1114050, \"SUKARAMAI II\"],\n [1114050002, 1114050, \"SUKARAMAI I\"],\n [1114050003, 1114050, \"PERK GEDUNG BIARA\"],\n [1114050004, 1114050, \"AIR MASIN\"],\n [1114050005, 1114050, \"SIDODADI\"],\n [1114050006, 1114050, \"TUALANG\"],\n [1114050007, 1114050, \"MATANG SENTANG\"],\n [1114050008, 1114050, \"ALUR ALIM\"],\n [1114050009, 1114050, \"LUBUK DAMAR\"],\n [1114050010, 1114050, \"SEI KURUK III\"],\n [1114050011, 1114050, \"SEI KURUK II\"],\n [1114050012, 1114050, \"GEDUNG BIARA\"],\n [1114050013, 1114050, \"PERK SEURUWAY\"],\n [1114050014, 1114050, \"PADANG LANGGIS\"],\n [1114050015, 1114050, \"PANTAI BALAI\"],\n [1114050016, 1114050, \"BINJAI\"],\n [1114050017, 1114050, \"TANGSI LAMA\"],\n [1114050018, 1114050, \"PEUKAN SEURUWAY\"],\n [1114050019, 1114050, \"MUKA SUNGAI KURUK\"],\n [1114050020, 1114050, \"SUNGAI KURUK I\"],\n [1114050021, 1114050, \"PAYA UDANG\"],\n [1114050022, 1114050, \"GELUNG\"],\n [1114050023, 1114050, \"KAMPUNG BARU\"],\n [1114050024, 1114050, \"KW PUSUNG KAPAL\"],\n [1114060001, 1114060, \"UPAH\"],\n [1114060002, 1114060, \"PERKEBUNAN UPAH\"],\n [1114060003, 1114060, \"MATANG TEUPAH\"],\n [1114060004, 1114060, \"SEUNEUBOK DALAM UPAH\"],\n [1114060006, 1114060, \"SUKAMULIA BD /S.IYU\"],\n [1114060009, 1114060, \"KEBON SUNGAI IYU\"],\n [1114060010, 1114060, \"MARLEMPANG\"],\n [1114060011, 1114060, \"BALAI\"],\n [1114060012, 1114060, \"LAMBUNG BLANG\"],\n [1114060013, 1114060, \"LUBUK BATIL\"],\n [1114060014, 1114060, \"TANJUNG PARET\"],\n [1114060015, 1114060, \"SEUNEUBOK DALAM MESJID\"],\n [1114060016, 1114060, \"RANTAU PAKAM\"],\n [1114060017, 1114060, \"TUMPOK TEUNGAH\"],\n [1114060018, 1114060, \"TANJUNG\"],\n [1114060019, 1114060, \"TANJUNG MULIA\"],\n [1114060020, 1114060, \"TELUK KEMIRI\"],\n [1114060021, 1114060, \"MESJID BDH\"],\n [1114060022, 1114060, \"TELUK KEPAYANG\"],\n [1114060023, 1114060, \"TELUK HALBAN\"],\n [1114060024, 1114060, \"RAJA\"],\n [1114060025, 1114060, \"CINTA RAJA\"],\n [1114060026, 1114060, \"TANJUNG BINJAI\"],\n [1114060027, 1114060, \"KUALA PEUNAGA\"],\n [1114060028, 1114060, \"KUALA GEUNTING\"],\n [1114060029, 1114060, \"BANDAR BARU\"],\n [1114060030, 1114060, \"MESJID S.IYU\"],\n [1114060031, 1114060, \"ALUR CANTIK\"],\n [1114060032, 1114060, \"TANJUNG LIPAT I\"],\n [1114060034, 1114060, \"BANDAR KHALIFAH\"],\n [1114060035, 1114060, \"SEUNEUBOK ACEH\"],\n [1114060036, 1114060, \"TANJUNG LIPAT II\"],\n [1114060037, 1114060, \"TENGKU TINGGI\"],\n [1114061001, 1114061, \"SUKAJADI\"],\n [1114061002, 1114061, \"SUKA DAMAI\"],\n [1114061003, 1114061, \"PAYA RAHAT\"],\n [1114061004, 1114061, \"SUKA MULIA/UPAH HULU\"],\n [1114061005, 1114061, \"MATANG SEUPING\"],\n [1114061006, 1114061, \"GAMPONG BESAR\"],\n [1114061007, 1114061, \"TELAGA MEUKU II\"],\n [1114061008, 1114061, \"TELAGA MEUKU I\"],\n [1114061009, 1114061, \"TANJUNG KERAMAT\"],\n [1114061010, 1114061, \"ALUR NUNANG\"],\n [1114070013, 1114070, \"TANJUNG KARANG\"],\n [1114070015, 1114070, \"MENANG GINI\"],\n [1114070016, 1114070, \"KESEHATAN\"],\n [1114070017, 1114070, \"GAMPONG SUKAJADI\"],\n [1114070018, 1114070, \"DALAM\"],\n [1114070019, 1114070, \"GAMPONG BUNDAR\"],\n [1114070021, 1114070, \"KEBUN TANAH TERBAN\"],\n [1114070022, 1114070, \"TANAH TERBAN\"],\n [1114070023, 1114070, \"GAMPONG AIR TENANG\"],\n [1114070024, 1114070, \"GAMPONG JOHAR\"],\n [1114070025, 1114070, \"GAMPONG TUPAH\"],\n [1114070026, 1114070, \"BANAI\"],\n [1114070027, 1114070, \"RANTAU PANJANG\"],\n [1114070028, 1114070, \"PAHLAWAN\"],\n [1114070029, 1114070, \"MEDANG ARA\"],\n [1114070030, 1114070, \"KEBUN MEDANG ARA\"],\n [1114070031, 1114070, \"KEBUN SELELEH\"],\n [1114070032, 1114070, \"ALUR SELALAS\"],\n [1114070033, 1114070, \"ALUR BAUNG\"],\n [1114070034, 1114070, \"PAYAMETA\"],\n [1114070035, 1114070, \"ALUR BEMBAN\"],\n [1114070036, 1114070, \"TANJUNG SEUMANTOH\"],\n [1114070037, 1114070, \"KEBUN TANJUNG SEUMANTOH\"],\n [1114070038, 1114070, \"PAYA TAMPAH\"],\n [1114070039, 1114070, \"ALUR LHOK\"],\n [1114070040, 1114070, \"BUKET PANJANG\"],\n [1114070041, 1114070, \"SUKAJADI PAYA BUJUK\"],\n [1114070042, 1114070, \"SIMPANG EMPAT\"],\n [1114070043, 1114070, \"PAYA AWE\"],\n [1114070044, 1114070, \"PAYA KULBI\"],\n [1114070045, 1114070, \"BUKET KERANJI\"],\n [1114071001, 1114071, \"BALING KARANG\"],\n [1114071002, 1114071, \"SUKA MAKMUR\"],\n [1114071003, 1114071, \"SULUM\"],\n [1114071004, 1114071, \"JUAR\"],\n [1114071005, 1114071, \"PEMATANG DURIAN\"],\n [1114071006, 1114071, \"SEKUMUR\"],\n [1114071007, 1114071, \"TANJUNG GELUMPANG\"],\n [1114071008, 1114071, \"LUBUK SIDUP\"],\n [1114071009, 1114071, \"SEKERAK KANAN\"],\n [1114071010, 1114071, \"BANDAR MAHLIGAI\"],\n [1114071011, 1114071, \"SEKERAK KIRI\"],\n [1114071012, 1114071, \"PANTAI PERLAK\"],\n [1114071013, 1114071, \"PANTAI TINJAU\"],\n [1114071014, 1114071, \"KEBUN BATANG ARA\"],\n [1114080001, 1114080, \"KRUENG SIKAJANG\"],\n [1114080002, 1114080, \"SEUNEUBOK PUNTI\"],\n [1114080003, 1114080, \"PAYA KETENGGAR\"],\n [1114080004, 1114080, \"BUKET PANJANG II\"],\n [1114080005, 1114080, \"BUKET PAYA\"],\n [1114080006, 1114080, \"BUKIT PANJANG I\"],\n [1114080007, 1114080, \"SEUNEUBOK BARU\"],\n [1114080008, 1114080, \"BENTENG ANYER\"],\n [1114080009, 1114080, \"MATANG ARA JAWA\"],\n [1114080010, 1114080, \"MATANG ARA ACEH\"],\n [1114080011, 1114080, \"LHOK MEDANG ARA\"],\n [1114080012, 1114080, \"IE BINTAH\"],\n [1114080013, 1114080, \"TUALANG BARU\"],\n [1114080014, 1114080, \"PAHLAWAN\"],\n [1114080015, 1114080, \"GASEH SAYANG\"],\n [1114080016, 1114080, \"SAMPAIMAH\"],\n [1114080017, 1114080, \"GELANGGANG MERAK\"],\n [1114080018, 1114080, \"MATANG CINCIN\"],\n [1114080019, 1114080, \"ALUE IE PUTEH\"],\n [1114080020, 1114080, \"LUENG MANYO\"],\n [1114080021, 1114080, \"RAJA TUHA\"],\n [1114080022, 1114080, \"SEUNEUBOK PIDIE\"],\n [1114080023, 1114080, \"GEUDHAM\"],\n [1114080024, 1114080, \"ALUE SENTANG\"],\n [1114080025, 1114080, \"UJONG TANJONG\"],\n [1114080026, 1114080, \"TANJUNG NERACA\"],\n [1114080027, 1114080, \"DAGANG SETIA\"],\n [1114080028, 1114080, \"SIMPANG LHEE\"],\n [1114080029, 1114080, \"SEUNEUBOK CANTEK\"],\n [1114080030, 1114080, \"MESJID\"],\n [1114080031, 1114080, \"MEUNASAH PAYA\"],\n [1114080032, 1114080, \"MEURANDEH\"],\n [1114080033, 1114080, \"BANDUNG JAYA\"],\n [1114080034, 1114080, \"PANDAN SARI\"],\n [1114080035, 1114080, \"PAYA BARU\"],\n [1114080036, 1114080, \"SAPTA MARGA\"],\n [1115010003, 1115010, \"KUALA SEMANYAM\"],\n [1115010005, 1115010, \"BLANG LUAH\"],\n [1115010007, 1115010, \"PULO KRUET\"],\n [1115010009, 1115010, \"ALUE BATEUNG BROOK\"],\n [1115010010, 1115010, \"LADANG BARO\"],\n [1115010011, 1115010, \"ALUE KUYUN\"],\n [1115010013, 1115010, \"ALUE RAYA\"],\n [1115010014, 1115010, \"SUKARAMAI\"],\n [1115010015, 1115010, \"UJONG TANJONG\"],\n [1115010016, 1115010, \"ALUE JAMPAK\"],\n [1115010017, 1115010, \"SERBA JADI\"],\n [1115010018, 1115010, \"SERBA GUNA\"],\n [1115010022, 1115010, \"KAYEE UNOU\"],\n [1115010023, 1115010, \"GEULANGGANG GAJAH\"],\n [1115010024, 1115010, \"SIDOJADI\"],\n [1115010025, 1115010, \"SUKAMULIA\"],\n [1115010026, 1115010, \"SIMPANG DUA\"],\n [1115010027, 1115010, \"PANTON BAYU\"],\n [1115010028, 1115010, \"SIMPANG DELI KILANG\"],\n [1115010029, 1115010, \"SIMPANG DELI KAMPONG\"],\n [1115010030, 1115010, \"PULO IE\"],\n [1115010031, 1115010, \"PULO TENGAH\"],\n [1115010032, 1115010, \"KARANG ANYAR\"],\n [1115010033, 1115010, \"SUKAJADI\"],\n [1115010034, 1115010, \"ALUE BILIE\"],\n [1115010035, 1115010, \"BLANG BARO\"],\n [1115010036, 1115010, \"KUTA TRIENG\"],\n [1115010037, 1115010, \"LAMIE\"],\n [1115010040, 1115010, \"UJONG LAMIE\"],\n [1115010041, 1115010, \"TUWI BUYA\"],\n [1115010042, 1115010, \"SUKARAJA\"],\n [1115010043, 1115010, \"GUNUNG CUT\"],\n [1115010044, 1115010, \"SUAK PALEMBANG\"],\n [1115010045, 1115010, \"ALUE GEUTAH\"],\n [1115010046, 1115010, \"ALUE WAKIE\"],\n [1115010047, 1115010, \"KRUENG ALEM\"],\n [1115010048, 1115010, \"ALUE RAMBOT\"],\n [1115010049, 1115010, \"KRUENG SEUMAYAM\"],\n [1115010050, 1115010, \"MAKARTI JAYA\"],\n [1115010051, 1115010, \"SUMBER MAKMUR\"],\n [1115011001, 1115011, \"KUALA TERIPA\"],\n [1115011002, 1115011, \"DRIEN TUJOH\"],\n [1115011003, 1115011, \"LUENG KEUBEU JAGAT\"],\n [1115011004, 1115011, \"KABU\"],\n [1115011005, 1115011, \"BABAH LUENG\"],\n [1115011006, 1115011, \"PASI KEUBEU DOM\"],\n [1115011007, 1115011, \"NEUBOK YEE PK\"],\n [1115011008, 1115011, \"NEUBOK YEE PP\"],\n [1115011009, 1115011, \"MON DUA\"],\n [1115011010, 1115011, \"PANTON PANGE\"],\n [1115011011, 1115011, \"UJONG KRUENG\"],\n [1115020017, 1115020, \"UJONG FATIHAH\"],\n [1115020018, 1115020, \"BLANG TEUNGOH\"],\n [1115020019, 1115020, \"COT KUMBANG\"],\n [1115020020, 1115020, \"BLANG BINTANG\"],\n [1115020021, 1115020, \"UJONG PADANG\"],\n [1115020022, 1115020, \"JOKJA\"],\n [1115020023, 1115020, \"LAWA BATU\"],\n [1115020026, 1115020, \"PURWOREJO\"],\n [1115020038, 1115020, \"PULO IE\"],\n [1115020039, 1115020, \"UJONG SIKUNENG\"],\n [1115020040, 1115020, \"BLANG BARO\"],\n [1115020041, 1115020, \"BLANG MUKO\"],\n [1115020042, 1115020, \"SIMPANG PEUT\"],\n [1115020043, 1115020, \"KUTA MAKMUR\"],\n [1115020044, 1115020, \"GUNONG REUBO\"],\n [1115020045, 1115020, \"UJONG PASI\"],\n [1115020046, 1115020, \"ALUE IE MAMEH\"],\n [1115021001, 1115021, \"SUAK PUNTONG\"],\n [1115021002, 1115021, \"GAMPONG LHOK\"],\n [1115021003, 1115021, \"KUALA BARO\"],\n [1115021004, 1115021, \"PADANG RUBEK\"],\n [1115021005, 1115021, \"PULO\"],\n [1115021006, 1115021, \"LANGKAK\"],\n [1115021007, 1115021, \"KUALA TUHA\"],\n [1115021008, 1115021, \"KUBANG GAJAH\"],\n [1115021009, 1115021, \"KUALA TRANG\"],\n [1115021010, 1115021, \"COT RAMBONG\"],\n [1115021011, 1115021, \"PADANG PANYANG\"],\n [1115021012, 1115021, \"ARONGAN\"],\n [1115021013, 1115021, \"JATIREJO\"],\n [1115021014, 1115021, \"PURWODADI\"],\n [1115021015, 1115021, \"LUENG T BEN\"],\n [1115021016, 1115021, \"PURWOSARI\"],\n [1115022001, 1115022, \"ALUE BATA\"],\n [1115022002, 1115022, \"GUNONG SAPEK\"],\n [1115022003, 1115022, \"SARAH MANTOK\"],\n [1115022004, 1115022, \"PASI LUAH\"],\n [1115022005, 1115022, \"GUNONG GEULUGO\"],\n [1115022006, 1115022, \"GUNONG KUPOK\"],\n [1115022007, 1115022, \"GUNONG PUNGKIE\"],\n [1115022008, 1115022, \"ALUE SIRON\"],\n [1115022009, 1115022, \"COT MU\"],\n [1115022010, 1115022, \"BABAH ROT\"],\n [1115022011, 1115022, \"BABAH DUA\"],\n [1115022012, 1115022, \"BATU RAJA\"],\n [1115022013, 1115022, \"SIMPANG JAYA\"],\n [1115022014, 1115022, \"SUMBER DAYA\"],\n [1115022015, 1115022, \"RANTAU SELAMAT\"],\n [1115022016, 1115022, \"ALUE SEPENG\"],\n [1115022017, 1115022, \"KRUENG ITAM\"],\n [1115022018, 1115022, \"ALUE GAJAH\"],\n [1115022019, 1115022, \"ALUE LABU\"],\n [1115022020, 1115022, \"GAPA GARU\"],\n [1115022021, 1115022, \"KUALA TADU\"],\n [1115022022, 1115022, \"COT ME\"],\n [1115030001, 1115030, \"KUTA JEUMPA\"],\n [1115030002, 1115030, \"BLANG DALAM\"],\n [1115030003, 1115030, \"LHOK SEUMOT\"],\n [1115030004, 1115030, \"BUMI SARI\"],\n [1115030005, 1115030, \"BLANG BARO RAMBONG\"],\n [1115030006, 1115030, \"MEUNASAH KRUENG\"],\n [1115030007, 1115030, \"KEUDE SEUMOT\"],\n [1115030008, 1115030, \"BLANG SEUMOT\"],\n [1115030009, 1115030, \"BABAH KRUENG\"],\n [1115030010, 1115030, \"MEUNASAH PANTE\"],\n [1115030011, 1115030, \"BLANG BARO PR\"],\n [1115030012, 1115030, \"GUNUNG NAGAN\"],\n [1115030013, 1115030, \"BLANG MESJID\"],\n [1115030014, 1115030, \"KULAM JEURNEH\"],\n [1115030015, 1115030, \"MEUNASAH TEUNGOH\"],\n [1115030016, 1115030, \"MEUNASAH DAYAH\"],\n [1115030017, 1115030, \"UJONG BLANG\"],\n [1115030018, 1115030, \"KRUENG CUT\"],\n [1115030019, 1115030, \"BLANG NEUANG\"],\n [1115030020, 1115030, \"BLANG SEUNONG\"],\n [1115030021, 1115030, \"TUWI BUNTA\"],\n [1115030022, 1115030, \"BLANG LEUMAK\"],\n [1115030023, 1115030, \"PANTON BAYAM\"],\n [1115030028, 1115030, \"PANTE ARA\"],\n [1115031001, 1115031, \"BLANG MEURANDEH\"],\n [1115031002, 1115031, \"BLANG PUUK\"],\n [1115031003, 1115031, \"KUTA TEUNGOH\"],\n [1115031004, 1115031, \"BABAH SUAK\"],\n [1115040014, 1115040, \"BLANG MURONG\"],\n [1115040015, 1115040, \"LHOK PADANG\"],\n [1115040016, 1115040, \"PAYA UNDAN\"],\n [1115040021, 1115040, \"BLANG PUUK KULU\"],\n [1115040022, 1115040, \"KULU\"],\n [1115040023, 1115040, \"KUTA ACEH\"],\n [1115040024, 1115040, \"KRUENG CEUKOU\"],\n [1115040025, 1115040, \"PAYA UDEUNG\"],\n [1115040026, 1115040, \"KUTA PAYA\"],\n [1115040027, 1115040, \"RAMBONG CUT\"],\n [1115040028, 1115040, \"RAMBONG RAYEUK\"],\n [1115040031, 1115040, \"BANTAN\"],\n [1115040032, 1115040, \"BLANG PUUK NIGAN\"],\n [1115040033, 1115040, \"KRUENG CEH\"],\n [1115040034, 1115040, \"NIGAN\"],\n [1115040035, 1115040, \"GAMPONG COT\"],\n [1115040036, 1115040, \"COT LHE LHE\"],\n [1115040037, 1115040, \"KUTA BARO JEURAM\"],\n [1115040038, 1115040, \"JEURAM\"],\n [1115040039, 1115040, \"LATONG\"],\n [1115040040, 1115040, \"ALUE BULOH\"],\n [1115040041, 1115040, \"KRUENG MANGKOM\"],\n [1115040042, 1115040, \"PANTE CERMIN\"],\n [1115040043, 1115040, \"PADANG\"],\n [1115040044, 1115040, \"LHOK PAROM\"],\n [1115040045, 1115040, \"BLANG PATEUK\"],\n [1115040046, 1115040, \"COT KUMBANG\"],\n [1115040047, 1115040, \"KUTA KUMBANG\"],\n [1115040048, 1115040, \"SAPEK\"],\n [1115040049, 1115040, \"KUTA SAYEH\"],\n [1115040050, 1115040, \"PAROM\"],\n [1115040051, 1115040, \"BLANG BARO\"],\n [1115040052, 1115040, \"PEUREULAK\"],\n [1115040059, 1115040, \"ALUE THO\"],\n [1115040060, 1115040, \"ALUE DODOK\"],\n [1115041001, 1115041, \"LUENG BARO\"],\n [1115041002, 1115041, \"ALUE KAMBUEK\"],\n [1115041003, 1115041, \"KUTA PADANG\"],\n [1115041004, 1115041, \"SUAK BILI\"],\n [1115041005, 1115041, \"MACAH\"],\n [1115041006, 1115041, \"SEUMAMBEK\"],\n [1115041007, 1115041, \"COT KUTA\"],\n [1115041008, 1115041, \"KABU BLANG SAPEK\"],\n [1115041009, 1115041, \"COT PERADI\"],\n [1115041010, 1115041, \"BLANG SAPEK\"],\n [1115041011, 1115041, \"LHOK BEUTONG\"],\n [1115041012, 1115041, \"KAMPONG TEUNGOH\"],\n [1115041013, 1115041, \"LHOK RAMEUN\"],\n [1115041014, 1115041, \"BLANG MULIENG\"],\n [1115041015, 1115041, \"KRAK TAMPAI\"],\n [1115041016, 1115041, \"MEUREUBO\"],\n [1115041017, 1115041, \"KUTA BARO BM\"],\n [1115041018, 1115041, \"ALUE PEUSAJA\"],\n [1115041019, 1115041, \"ALUE GAJAH\"],\n [1115050001, 1115050, \"BLANG LANGO\"],\n [1115050002, 1115050, \"TUWI MEULEUSONG\"],\n [1115050003, 1115050, \"BLANG GEUDONG\"],\n [1115050004, 1115050, \"SAWANG MANE\"],\n [1115050005, 1115050, \"LHOK PANGE\"],\n [1115050006, 1115050, \"KEUDE NEULOP\"],\n [1115050007, 1115050, \"MON BATEUNG\"],\n [1115050008, 1115050, \"IE BEUDOH\"],\n [1115050009, 1115050, \"SUAK PERBONG\"],\n [1115050010, 1115050, \"BLANG ARA KMP.\"],\n [1115050011, 1115050, \"KRUENG KULU\"],\n [1115050012, 1115050, \"COT PUNTI\"],\n [1115050013, 1115050, \"KEUDE BLANG ARA\"],\n [1115050014, 1115050, \"PEULEUKUNG\"],\n [1115050015, 1115050, \"SAPENG\"],\n [1115050016, 1115050, \"MEUGAT MEUH\"],\n [1115050017, 1115050, \"BLANG PANYANG\"],\n [1115050018, 1115050, \"UTEUN PULO\"],\n [1115050019, 1115050, \"KEUDE LINTEUNG\"],\n [1115050020, 1115050, \"PAYA\"],\n [1115050021, 1115050, \"COT TEUKU DEK\"],\n [1115050022, 1115050, \"LHOK MESJID\"],\n [1115050023, 1115050, \"BLANG PREH\"],\n [1115050024, 1115050, \"BLANG BAYU\"],\n [1115050025, 1115050, \"MEURANDEH SUAK\"],\n [1115050026, 1115050, \"COT DIRUI\"],\n [1115050027, 1115050, \"COT MANYANG\"],\n [1115050028, 1115050, \"KABU BAROH\"],\n [1115050029, 1115050, \"KABU TUNONG\"],\n [1115050030, 1115050, \"COT GUD\"],\n [1115050031, 1115050, \"PULO TEUNGOH\"],\n [1115050032, 1115050, \"KILA\"],\n [1115050033, 1115050, \"KANDEH\"],\n [1115050034, 1115050, \"BLANG TENGKU\"],\n [1116010001, 1116010, \"LUENG GAYO\"],\n [1116010002, 1116010, \"COT TRAP\"],\n [1116010003, 1116010, \"PASI GEULIMA\"],\n [1116010004, 1116010, \"TEUPIN ARA\"],\n [1116010005, 1116010, \"PAYA BARO\"],\n [1116010006, 1116010, \"PASI TULAK BALA\"],\n [1116010007, 1116010, \"PANTON\"],\n [1116010008, 1116010, \"GAMPONG BARO\"],\n [1116010009, 1116010, \"PASI PAWANG\"],\n [1116010010, 1116010, \"RAMBONG PAYONG\"],\n [1116010011, 1116010, \"PADANG KLENG\"],\n [1116010012, 1116010, \"KEUDE TEUNOM\"],\n [1116010013, 1116010, \"ALUE AMBANG\"],\n [1116010014, 1116010, \"BATEE-ROO\"],\n [1116010015, 1116010, \"TANOH MANYANG\"],\n [1116010016, 1116010, \"TANOH ANOU\"],\n [1116010017, 1116010, \"BLANG BARO\"],\n [1116010019, 1116010, \"PASI TIMON\"],\n [1116010025, 1116010, \"SEUMIRA\"],\n [1116010026, 1116010, \"SEUNEUBOK PADANG\"],\n [1116010046, 1116010, \"KUBU\"],\n [1116010051, 1116010, \"ALUE MEURAKSA\"],\n [1116011001, 1116011, \"PULO TINGGI\"],\n [1116011002, 1116011, \"ALUE KRUENG\"],\n [1116011003, 1116011, \"PASI TEUBEE\"],\n [1116011004, 1116011, \"TIM PLEUNG\"],\n [1116011005, 1116011, \"KRUENG BEUKAH\"],\n [1116011006, 1116011, \"TUWI KAREUNG I\"],\n [1116011007, 1116011, \"LHOK GUCI\"],\n [1116011008, 1116011, \"BINTAH\"],\n [1116011009, 1116011, \"TUWI PERYA\"],\n [1116011010, 1116011, \"ALUE PUNTI\"],\n [1116011011, 1116011, \"CEURACEU\"],\n [1116011012, 1116011, \"ALUE JANG\"],\n [1116011013, 1116011, \"SARAH RAYA\"],\n [1116011014, 1116011, \"BUKET KEMUNENG\"],\n [1116020001, 1116020, \"KEUDE PANGA\"],\n [1116020002, 1116020, \"TUWI KAREUNG PANGA\"],\n [1116020003, 1116020, \"KUTA TUHA\"],\n [1116020004, 1116020, \"LADANG BARO\"],\n [1116020005, 1116020, \"BABAH CEUPAN\"],\n [1116020006, 1116020, \"GAMPONG HARAPAN\"],\n [1116020007, 1116020, \"TUWI KAYEE\"],\n [1116020008, 1116020, \"PANTON KABU\"],\n [1116020009, 1116020, \"ALUE TEUNGOH\"],\n [1116020010, 1116020, \"PANTON KRUENG\"],\n [1116020011, 1116020, \"ALUE PANDE\"],\n [1116020012, 1116020, \"BATEE MEUTUDONG\"],\n [1116020013, 1116020, \"GLEPUTOH\"],\n [1116020014, 1116020, \"ALUE RAYA\"],\n [1116020015, 1116020, \"ALUE ABET\"],\n [1116020016, 1116020, \"GUNONG MANTOK\"],\n [1116020017, 1116020, \"TUWI EMPEUK\"],\n [1116020018, 1116020, \"GUNONG MEULINTEUNG\"],\n [1116020019, 1116020, \"GUNONG BULOH\"],\n [1116020020, 1116020, \"ALUE PIET\"],\n [1116030001, 1116030, \"BAHAGIA\"],\n [1116030002, 1116030, \"SENTOSA\"],\n [1116030003, 1116030, \"DAYAH BARO\"],\n [1116030004, 1116030, \"KAMPUNG BLANG\"],\n [1116030005, 1116030, \"PANTON MAKMUR\"],\n [1116030006, 1116030, \"KEUTAPANG\"],\n [1116030007, 1116030, \"PADANG DATAR\"],\n [1116030008, 1116030, \"MON MATA\"],\n [1116030009, 1116030, \"KEUDE KRUENG SABEE\"],\n [1116030010, 1116030, \"KABONG\"],\n [1116030011, 1116030, \"DATAR LUAS\"],\n [1116030012, 1116030, \"PAYA SEUMANTOK\"],\n [1116030013, 1116030, \"RANTO PANYANG\"],\n [1116030014, 1116030, \"CUREK\"],\n [1116030015, 1116030, \"ALUE THO\"],\n [1116030016, 1116030, \"BUNTHA\"],\n [1116030017, 1116030, \"PANGGONG\"],\n [1116040001, 1116040, \"SAWANG\"],\n [1116040002, 1116040, \"LHOK GEULUMPANG\"],\n [1116040003, 1116040, \"LHOK TIMON\"],\n [1116040004, 1116040, \"GAMPONG BARO\"],\n [1116040005, 1116040, \"LHOK BUYA\"],\n [1116040006, 1116040, \"LHOK BOT\"],\n [1116040007, 1116040, \"PADANG\"],\n [1116040008, 1116040, \"GUNONG MEUNASAH\"],\n [1116040009, 1116040, \"PAYA LAUT\"],\n [1116040010, 1116040, \"SAPEK\"],\n [1116040011, 1116040, \"GAMPONG BAROH\"],\n [1116040012, 1116040, \"GLE SUBAK\"],\n [1116040013, 1116040, \"PANTE KUYUN\"],\n [1116050004, 1116050, \"KUALA BAKONG\"],\n [1116050009, 1116050, \"COT LANGSAT\"],\n [1116050010, 1116050, \"MATAIE\"],\n [1116050011, 1116050, \"JEUMPHEUK\"],\n [1116050012, 1116050, \"BABAH NIPAH\"],\n [1116050013, 1116050, \"KUALA LIGAN\"],\n [1116050014, 1116050, \"SEUMANTOK\"],\n [1116050027, 1116050, \"BLANG LUAH\"],\n [1116050028, 1116050, \"COT PUNTI (EX UPT V PATEK)\"],\n [1116050029, 1116050, \"LIGAN\"],\n [1116050030, 1116050, \"LHOK KRUET\"],\n [1116050031, 1116050, \"PULO RAYA\"],\n [1116050032, 1116050, \"KRUENG NO\"],\n [1116050033, 1116050, \"CRAK MONG\"],\n [1116050034, 1116050, \"MEUNASAH KULAM\"],\n [1116050035, 1116050, \"BLANG MONLUNG\"],\n [1116050036, 1116050, \"ALUE GRO\"],\n [1116050037, 1116050, \"IE JEUREUNGEH\"],\n [1116050038, 1116050, \"RANTO SABON\"],\n [1116051001, 1116051, \"PATEK\"],\n [1116051002, 1116051, \"BLANG DALAM\"],\n [1116051003, 1116051, \"GAMPONG BARO P\"],\n [1116051004, 1116051, \"PAJAR\"],\n [1116051005, 1116051, \"REUNTANG\"],\n [1116051006, 1116051, \"COT PANGE\"],\n [1116051007, 1116051, \"ARONGAN\"],\n [1116051008, 1116051, \"KRUENG THO\"],\n [1116051009, 1116051, \"PANTON KRUENG\"],\n [1116051010, 1116051, \"PAYA SANTEUT\"],\n [1116051011, 1116051, \"LAM TEUNGOH\"],\n [1116051012, 1116051, \"UJONG RIMBA\"],\n [1116051013, 1116051, \"GUNUNG CUT\"],\n [1116051014, 1116051, \"SAYEUNG\"],\n [1116051015, 1116051, \"BABAH DUA\"],\n [1116051016, 1116051, \"GAMPONG BARO L\"],\n [1116051017, 1116051, \"ALUE GAJAH\"],\n [1116051018, 1116051, \"MASEN\"],\n [1116051019, 1116051, \"TEUPIN ASAN\"],\n [1116060011, 1116060, \"MEUTARA\"],\n [1116060015, 1116060, \"LHUET\"],\n [1116060016, 1116060, \"LAMME\"],\n [1116060017, 1116060, \"SEUREUBA\"],\n [1116060018, 1116060, \"LEUPE\"],\n [1116060020, 1116060, \"NUSA\"],\n [1116060021, 1116060, \"RUMPET\"],\n [1116060022, 1116060, \"DARAT\"],\n [1116060023, 1116060, \"GLE JONG\"],\n [1116060024, 1116060, \"GAMPONG BARO\"],\n [1116060025, 1116060, \"MEUNASAH WEH\"],\n [1116060026, 1116060, \"COT DULANG\"],\n [1116060027, 1116060, \"PUTUE\"],\n [1116060028, 1116060, \"LAM DURIAN\"],\n [1116060029, 1116060, \"BABAH KRUENG\"],\n [1116060030, 1116060, \"BAK PAOH\"],\n [1116060031, 1116060, \"PASAR LAMNO\"],\n [1116060032, 1116060, \"PANTE KEUTAPANG\"],\n [1116060033, 1116060, \"PANTON MAKMUR\"],\n [1116060034, 1116060, \"KRUENG TUNONG\"],\n [1116060035, 1116060, \"LAMTUI\"],\n [1116060036, 1116060, \"JAMBO MASI\"],\n [1116060037, 1116060, \"LAMBAROH\"],\n [1116060038, 1116060, \"GLE PUTOH\"],\n [1116060039, 1116060, \"ALUE RAYEUK\"],\n [1116060040, 1116060, \"MAREU\"],\n [1116060041, 1116060, \"SABET\"],\n [1116060042, 1116060, \"PANTE CERMIN\"],\n [1116060043, 1116060, \"SANGO\"],\n [1116060044, 1116060, \"LAMASAN\"],\n [1116060045, 1116060, \"UJONG SUDEUN\"],\n [1116060046, 1116060, \"BABAH IE\"],\n [1116060047, 1116060, \"MEUDHEUN\"],\n [1116060048, 1116060, \"SAPEK\"],\n [1116061001, 1116061, \"CEUNAMPRONG\"],\n [1116061002, 1116061, \"KEUDE UNGA\"],\n [1116061003, 1116061, \"KARENG ATEUH\"],\n [1116061004, 1116061, \"MEUDANG GHON\"],\n [1116061005, 1116061, \"UJONG MULOH\"],\n [1116061006, 1116061, \"KUALA\"],\n [1116061007, 1116061, \"TEUMAREUM\"],\n [1116061008, 1116061, \"JANGEUT\"],\n [1116061009, 1116061, \"ALUE MIE\"],\n [1116061010, 1116061, \"BABAH DUA\"],\n [1116061011, 1116061, \"MEUNASAH TUTONG\"],\n [1116061012, 1116061, \"MEUNASAH TEUNGOH\"],\n [1116061013, 1116061, \"MEUNASAH RAYEUK\"],\n [1116061014, 1116061, \"MUKHAN\"],\n [1117010003, 1117010, \"BANDAR LAMPAHAN\"],\n [1117010004, 1117010, \"KARANG JADI\"],\n [1117010005, 1117010, \"LAMPAHAN\"],\n [1117010006, 1117010, \"SUKA DAMAI\"],\n [1117010007, 1117010, \"BLANG RONGKA\"],\n [1117010008, 1117010, \"TUNYANG\"],\n [1117010012, 1117010, \"SETIE\"],\n [1117010014, 1117010, \"SIMPANG LAYANG\"],\n [1117010015, 1117010, \"GEGUR SEPAKAT\"],\n [1117010016, 1117010, \"CEKAL BARU\"],\n [1117010019, 1117010, \"DAMARAN BARU\"],\n [1117010020, 1117010, \"PAJAR HARAPAN\"],\n [1117010021, 1117010, \"KENINE\"],\n [1117010022, 1117010, \"REMBUNE\"],\n [1117010023, 1117010, \"BUMI AYU\"],\n [1117010024, 1117010, \"KAMPUNG BARU\"],\n [1117010025, 1117010, \"MUDE BENARA\"],\n [1117010026, 1117010, \"PANTAN PEDIANGAN\"],\n [1117010027, 1117010, \"LAMPAHAN BARAT\"],\n [1117010028, 1117010, \"MEKAR AYU\"],\n [1117010029, 1117010, \"LAMPAHAN TIMUR\"],\n [1117010030, 1117010, \"KOLAM PARA KANIS\"],\n [1117010031, 1117010, \"TIMANG RASA\"],\n [1117010032, 1117010, \"BUKIT MULIE\"],\n [1117010033, 1117010, \"SUMBER JAYA\"],\n [1117010034, 1117010, \"GUNUNG TUNYANG\"],\n [1117010035, 1117010, \"DATU BERU TUNYANG\"],\n [1117010036, 1117010, \"PANTAN KEMUNING\"],\n [1117010037, 1117010, \"BUKIT TUNYANG\"],\n [1117010038, 1117010, \"LINUNG BALE\"],\n [1117011001, 1117011, \"TIMANG GAJAH\"],\n [1117011002, 1117011, \"RERONGA\"],\n [1117011003, 1117011, \"PANTAN LUES\"],\n [1117011004, 1117011, \"MERIAH JAYA\"],\n [1117011005, 1117011, \"UMAH BESI\"],\n [1117011006, 1117011, \"PANTE KARYA\"],\n [1117011007, 1117011, \"SIMPANG RAHMAT\"],\n [1117011008, 1117011, \"GAJAH PUTIH\"],\n [1117011009, 1117011, \"GAYO SETIE\"],\n [1117011010, 1117011, \"ALAM JAYA\"],\n [1117020001, 1117020, \"RIME RAYA\"],\n [1117020002, 1117020, \"SINGAH MULO\"],\n [1117020003, 1117020, \"ALUR GADING\"],\n [1117020004, 1117020, \"BLANG RAKAL\"],\n [1117020005, 1117020, \"NEGERI ANTARA\"],\n [1117020006, 1117020, \"BLANG ARA\"],\n [1117020007, 1117020, \"GEMASIH\"],\n [1117020008, 1117020, \"PULO INTAN\"],\n [1117020009, 1117020, \"RATA ARA\"],\n [1117020010, 1117020, \"MUSARA 58\"],\n [1117020011, 1117020, \"MUSARA PAKAT\"],\n [1117020012, 1117020, \"WEH PORAK\"],\n [1117020013, 1117020, \"SIMPANG LANCANG\"],\n [1117020014, 1117020, \"BENER MERIAH\"],\n [1117020015, 1117020, \"PERDAMAIAN\"],\n [1117020016, 1117020, \"ULU NARON\"],\n [1117020017, 1117020, \"TAMAN FIRDAUS\"],\n [1117020018, 1117020, \"BINTANG BERANGUN\"],\n [1117020019, 1117020, \"UNING EMAS\"],\n [1117020020, 1117020, \"PANCAR JELOBOK\"],\n [1117020021, 1117020, \"ALUR CINCIN\"],\n [1117020022, 1117020, \"PANTAN SINAKU\"],\n [1117020023, 1117020, \"PANTAN LAH\"],\n [1117030002, 1117030, \"BLANG TAMPU\"],\n [1117030003, 1117030, \"UNING BERSAH\"],\n [1117030004, 1117030, \"UNING TERITIT\"],\n [1117030005, 1117030, \"KUTE LINTANG\"],\n [1117030006, 1117030, \"TINGKEM BERSATU\"],\n [1117030007, 1117030, \"TINGKEM ASLI\"],\n [1117030008, 1117030, \"REJE GURU\"],\n [1117030009, 1117030, \"BLANG SENTANG\"],\n [1117030010, 1117030, \"PASAR SIMPANG TIGA\"],\n [1117030011, 1117030, \"BALE REDELONG\"],\n [1117030012, 1117030, \"UJUNG GELE\"],\n [1117030013, 1117030, \"DELUNG TUE\"],\n [1117030014, 1117030, \"KENAWAT REDELONG\"],\n [1117030015, 1117030, \"BLANG ARA\"],\n [1117030016, 1117030, \"WAQ PONDOK SAYUR\"],\n [1117030017, 1117030, \"PANJI MULIA II\"],\n [1117030018, 1117030, \"PANJI MULIA I\"],\n [1117030019, 1117030, \"ISAQ BUSUR\"],\n [1117030020, 1117030, \"BUJANG\"],\n [1117030021, 1117030, \"HAKIM TUNGGUL NARU\"],\n [1117030022, 1117030, \"BALE ATU\"],\n [1117030033, 1117030, \"TINGKEM BENYER\"],\n [1117030034, 1117030, \"BANTIN WIH PONGAS\"],\n [1117030035, 1117030, \"SEDIA JADI\"],\n [1117030036, 1117030, \"REMBELE\"],\n [1117030037, 1117030, \"MUTIARA BARU\"],\n [1117030038, 1117030, \"BLANG PANAS\"],\n [1117030039, 1117030, \"BUKIT BERSATU\"],\n [1117030040, 1117030, \"SERULE KAYU\"],\n [1117030041, 1117030, \"KUTE KERING\"],\n [1117030042, 1117030, \"KUTE TANYUNG\"],\n [1117030043, 1117030, \"BABUSSALAM\"],\n [1117030044, 1117030, \"PAYA GAJAH\"],\n [1117030045, 1117030, \"DELUNG ASLI\"],\n [1117030046, 1117030, \"PILAR JAYA\"],\n [1117030047, 1117030, \"MELUEM\"],\n [1117030048, 1117030, \"MUPAKAT JADI\"],\n [1117030049, 1117030, \"GODANG\"],\n [1117030050, 1117030, \"URING\"],\n [1117030051, 1117030, \"KARANG REJO\"],\n [1117040001, 1117040, \"SIMPANG TERITIT\"],\n [1117040003, 1117040, \"SUKARAME ATAS\"],\n [1117040004, 1117040, \"SUKARAME BAWAH\"],\n [1117040005, 1117040, \"SYURA JADI\"],\n [1117040006, 1117040, \"PANTE RAYA\"],\n [1117040007, 1117040, \"SIMPANG BALEK\"],\n [1117040008, 1117040, \"SUKA JADI\"],\n [1117040009, 1117040, \"BENER AYU\"],\n [1117040010, 1117040, \"BLANG PAKU\"],\n [1117040011, 1117040, \"SUKA MAKMUR\"],\n [1117040012, 1117040, \"MERIE I\"],\n [1117040013, 1117040, \"JAMUR ULUH\"],\n [1117040014, 1117040, \"GEGERUNG\"],\n [1117040015, 1117040, \"BUKIT PEPANYI\"],\n [1117040016, 1117040, \"JAMUR UJUNG\"],\n [1117040017, 1117040, \"WONOSOBO\"],\n [1117040018, 1117040, \"LUT KUCAK\"],\n [1117040019, 1117040, \"WIH PESAM\"],\n [1117040020, 1117040, \"CINTA DAMAI\"],\n [1117040021, 1117040, \"BENER MULIE\"],\n [1117040022, 1117040, \"KEBUN BARU\"],\n [1117040023, 1117040, \"BLANG KUCAK\"],\n [1117040024, 1117040, \"SIMPANG ANTARA\"],\n [1117040025, 1117040, \"BLANG BENARA\"],\n [1117040026, 1117040, \"SUKA MAKMUR TIMUR\"],\n [1117040027, 1117040, \"BURNI TELONG\"],\n [1117040028, 1117040, \"MEKAR JADI AYU\"],\n [1117050001, 1117050, \"WONOSARI\"],\n [1117050002, 1117050, \"PAYA BANING\"],\n [1117050003, 1117050, \"BLANG PULO\"],\n [1117050011, 1117050, \"PETUKEL BLANG JORONG\"],\n [1117050012, 1117050, \"TANJUNG PURA\"],\n [1117050013, 1117050, \"HAKIM WIH ILANG\"],\n [1117050014, 1117050, \"LEWA JADI\"],\n [1117050015, 1117050, \"BUKIT WIH ILANG\"],\n [1117050016, 1117050, \"SUKU WIH ILANG\"],\n [1117050017, 1117050, \"PONDOK GAJAH\"],\n [1117050018, 1117050, \"PURWOSARI\"],\n [1117050019, 1117050, \"SIDODADI\"],\n [1117050020, 1117050, \"SELAMAT REJO\"],\n [1117050021, 1117050, \"PONDOK ULUNG\"],\n [1117050022, 1117050, \"JANARATA\"],\n [1117050023, 1117050, \"BATIN BARU\"],\n [1117050033, 1117050, \"MUYANG KUTE MANGKU\"],\n [1117050034, 1117050, \"KERAMAT JAYA\"],\n [1117050035, 1117050, \"SIMPANG UTAMA\"],\n [1117050038, 1117050, \"PAKAT JEROH\"],\n [1117050039, 1117050, \"PUJA MULIA\"],\n [1117050040, 1117050, \"PONDOK BARU\"],\n [1117050041, 1117050, \"BAHGIE BERTONA\"],\n [1117050044, 1117050, \"TANSARAN BIDIN\"],\n [1117050045, 1117050, \"SINAR JAYA PAYA RINGKEL\"],\n [1117050046, 1117050, \"REMANG KETIKE JAYA\"],\n [1117050047, 1117050, \"GUNUNG ANTARA\"],\n [1117050048, 1117050, \"GELE SEMAYANG\"],\n [1117050049, 1117050, \"MAKMUR SENTOSA\"],\n [1117050050, 1117050, \"TAWAR SEDENGE\"],\n [1117050051, 1117050, \"JADI SEPAKAT\"],\n [1117050052, 1117050, \"SELISIH MARA\"],\n [1117050053, 1117050, \"KALA NEMPAN\"],\n [1117050054, 1117050, \"MUTIARA\"],\n [1117050060, 1117050, \"BERANUN TELEDEN\"],\n [1117051001, 1117051, \"BENER LUKUP II\"],\n [1117051002, 1117051, \"BENER KELIPAH UTARA\"],\n [1117051003, 1117051, \"BENER KELIPAH SELATAN\"],\n [1117051004, 1117051, \"BINTANG MUSARA\"],\n [1117051005, 1117051, \"BANDAR JAYA\"],\n [1117051006, 1117051, \"NOSAR TAWAR JAYA\"],\n [1117051007, 1117051, \"JONGOK MELUEM\"],\n [1117051008, 1117051, \"SUKU BENER\"],\n [1117051009, 1117051, \"LOT BENER KELIPAH\"],\n [1117051010, 1117051, \"KALA TENANG\"],\n [1117051011, 1117051, \"GUNUNG MUSARA\"],\n [1117051012, 1117051, \"NOSAR BARU\"],\n [1117060001, 1117060, \"TEMBOLON\"],\n [1117060002, 1117060, \"WIH NIDURIN\"],\n [1117060003, 1117060, \"KUTE LAH LANE\"],\n [1117060004, 1117060, \"PAYUNG\"],\n [1117060007, 1117060, \"KERLANG\"],\n [1117060008, 1117060, \"GERPA\"],\n [1117060009, 1117060, \"GONENG\"],\n [1117060010, 1117060, \"BLANG PANU\"],\n [1117060011, 1117060, \"RUSIP\"],\n [1117060015, 1117060, \"UNING\"],\n [1117060016, 1117060, \"PASIR PUTIH\"],\n [1117060027, 1117060, \"RATA MULIE\"],\n [1117060028, 1117060, \"TEMPEN BARU\"],\n [1117060029, 1117060, \"GERUTI JAYA\"],\n [1117061001, 1117061, \"CEMPARAM JAYA\"],\n [1117061002, 1117061, \"JAMUR ATU\"],\n [1117061003, 1117061, \"GUNUNG SAYANG\"],\n [1117061004, 1117061, \"WIH RESAP\"],\n [1117061005, 1117061, \"SIMPUR\"],\n [1117061006, 1117061, \"AMOR\"],\n [1117061007, 1117061, \"BUNTUL GAYO\"],\n [1117061008, 1117061, \"WER TINGKEM\"],\n [1117061009, 1117061, \"HAKIM PETERI PINTU\"],\n [1117061010, 1117061, \"PERUMPAKAN BENJADI\"],\n [1117061011, 1117061, \"CEMPARAM LAMA\"],\n [1117061012, 1117061, \"CEMPARAM PAKAT JEROH\"],\n [1117061013, 1117061, \"SIMPANG RENGGALI\"],\n [1117061014, 1117061, \"SOSIAL\"],\n [1117061015, 1117061, \"PANTAN KULI\"],\n [1117070001, 1117070, \"PANTAN TENGAH JAYA\"],\n [1117070002, 1117070, \"BENER PEPANYI\"],\n [1117070003, 1117070, \"BINTANG BENER\"],\n [1117070004, 1117070, \"BINTANG PERMATA\"],\n [1117070005, 1117070, \"BUNTUL PETERI\"],\n [1117070006, 1117070, \"GELAMPANG\"],\n [1117070007, 1117070, \"SENI ANTARA\"],\n [1117070008, 1117070, \"WEH TENANG UKEN\"],\n [1117070009, 1117070, \"DARUL AMAN\"],\n [1117070010, 1117070, \"PENOSAN JAYA\"],\n [1117070011, 1117070, \"RAMUNG JAYA\"],\n [1117070012, 1117070, \"TEMAS MUMANANG\"],\n [1117070013, 1117070, \"WEH TENANG TUA\"],\n [1117070014, 1117070, \"AYU ARA\"],\n [1117070015, 1117070, \"BALE MUSARA\"],\n [1117070016, 1117070, \"BALE PURNAMA\"],\n [1117070017, 1117070, \"BURNI PASE\"],\n [1117070018, 1117070, \"KEPIES\"],\n [1117070019, 1117070, \"RIKIT MUSARA\"],\n [1117070020, 1117070, \"CEDING AYU\"],\n [1117070021, 1117070, \"JUNGKE GAJAH\"],\n [1117070022, 1117070, \"JELOBOK\"],\n [1117070023, 1117070, \"PEMANGO\"],\n [1117070024, 1117070, \"SUKU SARA TANGKE\"],\n [1117070025, 1117070, \"TAWAR BENGI\"],\n [1117070026, 1117070, \"UNING SEJUK\"],\n [1117070027, 1117070, \"TIMUR JAYA\"],\n [1118010001, 1118010, \"MNS MULIENG\"],\n [1118010002, 1118010, \"LAMPOIH LADA\"],\n [1118010003, 1118010, \"GLUMPANG TUTONG\"],\n [1118010004, 1118010, \"RUNGKOM\"],\n [1118010005, 1118010, \"BLANG AWE\"],\n [1118010006, 1118010, \"MANYANG LANCOK\"],\n [1118010007, 1118010, \"POHROH\"],\n [1118010008, 1118010, \"KUDRANG\"],\n [1118010009, 1118010, \"MEUNASAH HAGU\"],\n [1118010010, 1118010, \"DAYAH TUHA\"],\n [1118010011, 1118010, \"RUMPUEN\"],\n [1118010012, 1118010, \"MEUNASAH KULAM\"],\n [1118010013, 1118010, \"RAMBONG\"],\n [1118010014, 1118010, \"GRONG GRONG\"],\n [1118010015, 1118010, \"KUTA TRIENG\"],\n [1118010016, 1118010, \"PULO U\"],\n [1118010017, 1118010, \"MANYANG CUT\"],\n [1118010018, 1118010, \"BEURAWANG\"],\n [1118010019, 1118010, \"DAYAH TIMU\"],\n [1118010020, 1118010, \"BUNOT\"],\n [1118010021, 1118010, \"TEUPIN PEURAHO\"],\n [1118010022, 1118010, \"GEULEUDAH\"],\n [1118010023, 1118010, \"MEUNASAH LHOK\"],\n [1118010024, 1118010, \"MESJID TUHA\"],\n [1118010025, 1118010, \"RHIENG MANCANG\"],\n [1118010026, 1118010, \"RHIENG KRUENG\"],\n [1118010027, 1118010, \"RHIENG BLANG\"],\n [1118010028, 1118010, \"MEURAKSA\"],\n [1118010029, 1118010, \"MEUNASAH BALEK\"],\n [1118010030, 1118010, \"KOTA MEUREUDU\"],\n [1118020001, 1118020, \"SEUNONG\"],\n [1118020002, 1118020, \"LHOK SANDENG\"],\n [1118020003, 1118020, \"SARAH MANE\"],\n [1118020004, 1118020, \"LANCOK\"],\n [1118020005, 1118020, \"MEUNASAH KULAM\"],\n [1118020006, 1118020, \"MEUNASAH TEUNGOH\"],\n [1118020007, 1118020, \"GEUNTENG\"],\n [1118020008, 1118020, \"MEUNASAH BIE\"],\n [1118020009, 1118020, \"MEUNASAH RAYA\"],\n [1118020010, 1118020, \"GAMPONG BLANG\"],\n [1118020011, 1118020, \"BLANG CUT\"],\n [1118020012, 1118020, \"MEUNASAH DAYAH USEN\"],\n [1118020013, 1118020, \"MEUNASAH MANCANG\"],\n [1118020014, 1118020, \"DAYAH KRUET\"],\n [1118020015, 1118020, \"BEURINGEN\"],\n [1118020016, 1118020, \"PANTE BEUREUNE\"],\n [1118020017, 1118020, \"MEUNASAH JURONG\"],\n [1118020018, 1118020, \"BUANGAN\"],\n [1118020019, 1118020, \"LUENG BIMBA\"],\n [1118030001, 1118030, \"GAHRU\"],\n [1118030002, 1118030, \"KUMBA\"],\n [1118030003, 1118030, \"BLANG MIROE\"],\n [1118030004, 1118030, \"BEURASAN\"],\n [1118030005, 1118030, \"COT KENG\"],\n [1118030006, 1118030, \"KRUENG KIRAN\"],\n [1118030007, 1118030, \"ASAN KUMBANG\"],\n [1118030008, 1118030, \"PULO GAPU\"],\n [1118030009, 1118030, \"COT GURUFAI\"],\n [1118030010, 1118030, \"ALUE SANE\"],\n [1118030011, 1118030, \"LHOK PUSONG\"],\n [1118030012, 1118030, \"ALUE KEUTAPANG\"],\n [1118030013, 1118030, \"JEULANGA BARAT\"],\n [1118030014, 1118030, \"JEULANGA MATA IE\"],\n [1118030015, 1118030, \"JEULANGA MESJID\"],\n [1118030016, 1118030, \"MEUNASAH PAKU\"],\n [1118030017, 1118030, \"MEURANDEH ALUE\"],\n [1118030018, 1118030, \"REUDEUP MELAYU\"],\n [1118030019, 1118030, \"PAYA PISANG KLAT\"],\n [1118030020, 1118030, \"ALUE MEE\"],\n [1118030021, 1118030, \"DRIEN TUJOH\"],\n [1118030022, 1118030, \"BLANG KUTA\"],\n [1118030023, 1118030, \"SEUNONG\"],\n [1118030024, 1118030, \"POHROH\"],\n [1118030025, 1118030, \"BABAH KRUENG\"],\n [1118030026, 1118030, \"UTEUN BAYU\"],\n [1118030027, 1118030, \"MUKO BULOH\"],\n [1118030028, 1118030, \"DRIEN BUNGONG\"],\n [1118030029, 1118030, \"MEUGIT SAGOE\"],\n [1118030030, 1118030, \"MEUGIT KAYEE PANYANG\"],\n [1118030031, 1118030, \"ADAN\"],\n [1118030032, 1118030, \"MUKO DAYAH\"],\n [1118030033, 1118030, \"KEUDE ULEE GLE\"],\n [1118030034, 1118030, \"PULO\"],\n [1118030035, 1118030, \"GAMPONG BARO\"],\n [1118030036, 1118030, \"GAMPONG ULEE GLE\"],\n [1118030037, 1118030, \"MUKO KUTHANG\"],\n [1118030038, 1118030, \"PEULAKAN TUNONG\"],\n [1118030039, 1118030, \"PEULAKAN TAMBO\"],\n [1118030040, 1118030, \"KUTA KRUENG\"],\n [1118030041, 1118030, \"PAYA TUNONG\"],\n [1118030042, 1118030, \"PAYA BAROH\"],\n [1118030043, 1118030, \"BLANG DALAM\"],\n [1118030044, 1118030, \"MUKOE BAROH\"],\n [1118030045, 1118030, \"PEULAKAN CIBREK\"],\n [1118040001, 1118040, \"MEUKO JURONG\"],\n [1118040002, 1118040, \"BUKET TEUNGOH\"],\n [1118040003, 1118040, \"JURONG ARA\"],\n [1118040004, 1118040, \"JURONG TEUNGOH\"],\n [1118040005, 1118040, \"JURONG BINJE\"],\n [1118040006, 1118040, \"REULUI MANGAT\"],\n [1118040007, 1118040, \"MEUNASAH MEE\"],\n [1118040008, 1118040, \"MEUNASAH KUMBANG\"],\n [1118040009, 1118040, \"KUTA BAROH\"],\n [1118040010, 1118040, \"MEUKO MEUGIT\"],\n [1118040011, 1118040, \"KEURISI MEUNASAH RAYA\"],\n [1118040012, 1118040, \"KIRAN DAYAH\"],\n [1118040013, 1118040, \"KIRAN BAROH\"],\n [1118040014, 1118040, \"KIRAN KRUENG\"],\n [1118040015, 1118040, \"KEURISI MEUNASAH LUENG\"],\n [1118040016, 1118040, \"KEUDE JANGKA BUYA\"],\n [1118040017, 1118040, \"GAMPONG COT\"],\n [1118040018, 1118040, \"KEURISI MEUNASAH BEUREMBANG\"],\n [1118050001, 1118050, \"ALUE KEUMIKI\"],\n [1118050002, 1118050, \"LHOK GAJAH\"],\n [1118050003, 1118050, \"BLANG RHEUE\"],\n [1118050004, 1118050, \"COT SEUTUI\"],\n [1118050005, 1118050, \"MEUNASAH MESJID\"],\n [1118050006, 1118050, \"BLANG CARI\"],\n [1118050007, 1118050, \"BIDOK\"],\n [1118050008, 1118050, \"BALEE ULIM\"],\n [1118050009, 1118050, \"PANTANG COT BALOI\"],\n [1118050010, 1118050, \"NANGRHOE BARAT\"],\n [1118050011, 1118050, \"REULEUT\"],\n [1118050012, 1118050, \"SAMBONGAN BARO\"],\n [1118050013, 1118050, \"DAYAH BAROH\"],\n [1118050014, 1118050, \"MEUNASAH PUPU\"],\n [1118050015, 1118050, \"NANGRHOE TIMU\"],\n [1118050016, 1118050, \"MEUNASAH KUMBANG\"],\n [1118050017, 1118050, \"MESJID ULIM TUNONG\"],\n [1118050018, 1118050, \"SIBLAH COH\"],\n [1118050019, 1118050, \"PULO ULIM\"],\n [1118050020, 1118050, \"GRONG GRONG CAPA\"],\n [1118050021, 1118050, \"TANJONG ULIM\"],\n [1118050022, 1118050, \"MEUNASAH KRUENG\"],\n [1118050023, 1118050, \"KEUDE ULIM\"],\n [1118050024, 1118050, \"DAYAH LUBUE\"],\n [1118050025, 1118050, \"MESJID ULIM BAROH\"],\n [1118050026, 1118050, \"MEUNASAH BUENG\"],\n [1118050027, 1118050, \"GEULANGGANG\"],\n [1118050028, 1118050, \"TIJIEN HUSEN\"],\n [1118050029, 1118050, \"PULO LHOK\"],\n [1118050030, 1118050, \"TIJIEN DABOH\"],\n [1118060001, 1118060, \"PANTON RAYA\"],\n [1118060002, 1118060, \"PEULANDOK TUNONG\"],\n [1118060003, 1118060, \"PEULANDOK TEUNGOH\"],\n [1118060004, 1118060, \"BULOH\"],\n [1118060005, 1118060, \"DAYAH UJONG BAROH\"],\n [1118060006, 1118060, \"MATANG\"],\n [1118060007, 1118060, \"DEE\"],\n [1118060008, 1118060, \"DEAH TEUMANAH\"],\n [1118060009, 1118060, \"TAMPUI\"],\n [1118060010, 1118060, \"REUSEB\"],\n [1118060011, 1118060, \"MESJID PEUDEUEK BAROH\"],\n [1118060012, 1118060, \"TUHA\"],\n [1118060013, 1118060, \"PAYA\"],\n [1118060014, 1118060, \"MESJID TRIENGGADENG\"],\n [1118060015, 1118060, \"TUENG KLUET\"],\n [1118060016, 1118060, \"MEE PANGWA\"],\n [1118060017, 1118060, \"RAWASARI\"],\n [1118060018, 1118060, \"COT MAKASO\"],\n [1118060019, 1118060, \"KUTA\"],\n [1118060020, 1118060, \"MEUCAT\"],\n [1118060021, 1118060, \"DEAH PANGWA\"],\n [1118060022, 1118060, \"COT LHEUE RHEUNG\"],\n [1118060023, 1118060, \"MEUE\"],\n [1118060024, 1118060, \"KEUDE\"],\n [1118060025, 1118060, \"RAYA\"],\n [1118060026, 1118060, \"MEE PEUDUEK\"],\n [1118060027, 1118060, \"SAGOE\"],\n [1118070001, 1118070, \"LHOK PU'UK\"],\n [1118070002, 1118070, \"TUNONG\"],\n [1118070003, 1118070, \"TEUNGOH\"],\n [1118070004, 1118070, \"PEURADE\"],\n [1118070005, 1118070, \"REUDEUP\"],\n [1118070006, 1118070, \"MESJID\"],\n [1118070007, 1118070, \"MUKA BLANG\"],\n [1118070008, 1118070, \"HAGU\"],\n [1118070009, 1118070, \"TU PANTEE RAJA\"],\n [1118070010, 1118070, \"KEUDE\"],\n [1118080001, 1118080, \"MNS AKI NEUNGOH\"],\n [1118080002, 1118080, \"MNS ABAH LUENG\"],\n [1118080003, 1118080, \"MEUNASAH JIJIEM\"],\n [1118080004, 1118080, \"MNS SARAH PANYANG\"],\n [1118080005, 1118080, \"MNS BLANG SUKON\"],\n [1118080006, 1118080, \"MNS KAYEE JATOE\"],\n [1118080007, 1118080, \"MNS BLANG BARO\"],\n [1118080008, 1118080, \"MNS BLANG IBOIH\"],\n [1118080009, 1118080, \"MNS DAYAH LANGIEN\"],\n [1118080010, 1118080, \"MNS BLANG KRUENG\"],\n [1118080011, 1118080, \"MEUNASAH ALUE\"],\n [1118080012, 1118080, \"MNS TANOH MIRAH\"],\n [1118080013, 1118080, \"MNS UJONG LEUBAT\"],\n [1118080014, 1118080, \"MNS TUALADA\"],\n [1118080015, 1118080, \"MNS CUT LANGIEN\"],\n [1118080016, 1118080, \"MEUNASAH SAGOE\"],\n [1118080017, 1118080, \"MNS BAROH COT\"],\n [1118080018, 1118080, \"MEUNASAH BALEE\"],\n [1118080019, 1118080, \"MNS TEUNGOH\"],\n [1118080020, 1118080, \"MNS BAROH MUSA\"],\n [1118080021, 1118080, \"MNS PARU KEUDE\"],\n [1118080022, 1118080, \"MNS LANCANG\"],\n [1118080023, 1118080, \"MNS UDEUNG\"],\n [1118080024, 1118080, \"MEUNASAH ARA\"],\n [1118080025, 1118080, \"MNS BLANG GLONG\"],\n [1118080026, 1118080, \"MEUNASAH KEUDE\"],\n [1118080027, 1118080, \"MNS PUEB LUENG NIBONG\"],\n [1118080028, 1118080, \"MNS DABOIH\"],\n [1118080029, 1118080, \"MNS PULO RHENG\"],\n [1118080030, 1118080, \"MNS GAMPONG\"],\n [1118080031, 1118080, \"MNS DAYAH NYONG\"],\n [1118080032, 1118080, \"MNS BEURANDEH\"],\n [1118080033, 1118080, \"MNS KAYEE RAYA\"],\n [1118080034, 1118080, \"MEUNASAH SIREN\"],\n [1118080035, 1118080, \"MEUNASAH TUTONG\"],\n [1118080036, 1118080, \"MNS MANYANG\"],\n [1118080037, 1118080, \"MNS BAROH LANCOK\"],\n [1118080038, 1118080, \"MEUNASAH MESJID\"],\n [1118080039, 1118080, \"MNS PULO PUEB\"],\n [1118080040, 1118080, \"MEUNASAH SAWANG\"],\n [1118080041, 1118080, \"MEUNASAH BARO\"],\n [1118080042, 1118080, \"MNS CUT NYONG\"],\n [1118080043, 1118080, \"MNS PARU COT\"],\n [1171010019, 1171010, \"SURIEN\"],\n [1171010020, 1171010, \"ASOI NANGGRO\"],\n [1171010021, 1171010, \"GAMPONG BLANG\"],\n [1171010022, 1171010, \"LAMJABAT\"],\n [1171010023, 1171010, \"GAMPONG BARO\"],\n [1171010025, 1171010, \"PUNGE JURONG\"],\n [1171010027, 1171010, \"LAMPASEH ACEH\"],\n [1171010028, 1171010, \"PUNGE UJONG\"],\n [1171010029, 1171010, \"COT LAMKUWEUEH\"],\n [1171010030, 1171010, \"GAMPONG PIE\"],\n [1171010031, 1171010, \"ULEE LHEUE\"],\n [1171010032, 1171010, \"DEAH GLUMPANG\"],\n [1171010033, 1171010, \"LAMBUNG\"],\n [1171010034, 1171010, \"BLANG OI\"],\n [1171010035, 1171010, \"ALUE DEAH TEUNGOH\"],\n [1171010036, 1171010, \"DEAH BARO\"],\n [1171011001, 1171011, \"ULEE PATA\"],\n [1171011002, 1171011, \"LAMJAMEE\"],\n [1171011003, 1171011, \"LAMPOH DAYA\"],\n [1171011004, 1171011, \"EMPEROM\"],\n [1171011005, 1171011, \"GEUCEU MEUNARA\"],\n [1171011006, 1171011, \"LAMTEMEN BARAT\"],\n [1171011007, 1171011, \"BITAI\"],\n [1171011008, 1171011, \"LAMTEMEN TIMUR\"],\n [1171011009, 1171011, \"PUNGE BLANG CUT\"],\n [1171012001, 1171012, \"LAM ARA\"],\n [1171012002, 1171012, \"LAMPUOT\"],\n [1171012003, 1171012, \"MIBO\"],\n [1171012004, 1171012, \"LHONG CUT\"],\n [1171012005, 1171012, \"LHONG RAYA\"],\n [1171012006, 1171012, \"PEUNYEURAT\"],\n [1171012007, 1171012, \"LAM LAGANG\"],\n [1171012008, 1171012, \"GEUCEU KOMPLEK\"],\n [1171012009, 1171012, \"GEUCEU INIEM\"],\n [1171012010, 1171012, \"GEUCEU KAYEE JATO\"],\n [1171020001, 1171020, \"ATEUK JAWO\"],\n [1171020007, 1171020, \"ATEUK DEAH TANOH\"],\n [1171020008, 1171020, \"ATEUK PAHLAWAN\"],\n [1171020009, 1171020, \"ATEUK MUNJENG\"],\n [1171020010, 1171020, \"NEUSU ACEH\"],\n [1171020011, 1171020, \"SEUTUI\"],\n [1171020012, 1171020, \"SUKARAMAI\"],\n [1171020013, 1171020, \"NEUSU JAYA\"],\n [1171020014, 1171020, \"PEUNITI\"],\n [1171020019, 1171020, \"KAMPUNG BARU\"],\n [1171021001, 1171021, \"LANDOM\"],\n [1171021002, 1171021, \"COT MESJID\"],\n [1171021003, 1171021, \"BATOH\"],\n [1171021004, 1171021, \"LUENG BATA\"],\n [1171021005, 1171021, \"BLANG CUT\"],\n [1171021006, 1171021, \"LAMPALOH\"],\n [1171021007, 1171021, \"SUKADAMAI\"],\n [1171021008, 1171021, \"PANTERIEK\"],\n [1171021009, 1171021, \"LAMSEUPEUNG\"],\n [1171030001, 1171030, \"PEUNAYONG\"],\n [1171030002, 1171030, \"LAKSANA\"],\n [1171030003, 1171030, \"KEURAMAT\"],\n [1171030004, 1171030, \"KUTA ALAM\"],\n [1171030005, 1171030, \"BEURAWE\"],\n [1171030006, 1171030, \"KOTA BARU\"],\n [1171030007, 1171030, \"BANDAR BARU\"],\n [1171030008, 1171030, \"MULIA\"],\n [1171030013, 1171030, \"LAMPULO\"],\n [1171030014, 1171030, \"LAMDINGIN\"],\n [1171030015, 1171030, \"LAMBARO SKEP\"],\n [1171031001, 1171031, \"LAMPASEH KOTA\"],\n [1171031002, 1171031, \"MERDUATI\"],\n [1171031003, 1171031, \"KEUDAH\"],\n [1171031004, 1171031, \"PEULANGGAHAN\"],\n [1171031005, 1171031, \"GAMPONG JAWA\"],\n [1171031006, 1171031, \"GAMPONG PANDE\"],\n [1171040010, 1171040, \"IEMASEN KAYE ADANG\"],\n [1171040011, 1171040, \"PINEUNG\"],\n [1171040012, 1171040, \"LAMGUGOB\"],\n [1171040013, 1171040, \"KOPELMA DARUSSALAM\"],\n [1171040014, 1171040, \"RUKOH\"],\n [1171040015, 1171040, \"JEULINGKE\"],\n [1171040016, 1171040, \"TIBANG\"],\n [1171040017, 1171040, \"DEAH RAYA\"],\n [1171040018, 1171040, \"ALUE NAGA\"],\n [1171040019, 1171040, \"PEURADA\"],\n [1171041001, 1171041, \"PANGO RAYA\"],\n [1171041002, 1171041, \"PANGO DEAH\"],\n [1171041003, 1171041, \"ILIE\"],\n [1171041004, 1171041, \"LAMTEH\"],\n [1171041005, 1171041, \"LAMGLUMPANG\"],\n [1171041006, 1171041, \"CEURIH\"],\n [1171041007, 1171041, \"IEMASEN ULEE KARENG\"],\n [1171041008, 1171041, \"DOI\"],\n [1171041009, 1171041, \"LAMBHUK\"],\n [1172010001, 1172010, \"PAYA\"],\n [1172010002, 1172010, \"KEUNEUKAI\"],\n [1172010003, 1172010, \"BEURAWANG\"],\n [1172010004, 1172010, \"JABOI\"],\n [1172010005, 1172010, \"BALOHAN\"],\n [1172010006, 1172010, \"COT ABEUK\"],\n [1172010007, 1172010, \"COT BA'U\"],\n [1172010008, 1172010, \"ANOE ITAM\"],\n [1172010009, 1172010, \"UJONG KAREUNG\"],\n [1172010010, 1172010, \"IE MEULEE\"],\n [1172020001, 1172020, \"IBOIH\"],\n [1172020002, 1172020, \"BATEE SHOEK\"],\n [1172020003, 1172020, \"PAYA SEUNARA\"],\n [1172020004, 1172020, \"KRUENG RAYA\"],\n [1172020005, 1172020, \"ANEUK LAOT\"],\n [1172020006, 1172020, \"KUTA TIMU\"],\n [1172020007, 1172020, \"KUTA BARAT\"],\n [1172020008, 1172020, \"KUTA ATEUH\"],\n [1173010007, 1173010, \"BUKET MEUDANG ARA\"],\n [1173010009, 1173010, \"MATANG SEUTUI\"],\n [1173010010, 1173010, \"BUKET PULO\"],\n [1173010011, 1173010, \"MATANG PANYANG\"],\n [1173010012, 1173010, \"SIMPANG WIE\"],\n [1173010013, 1173010, \"BUKET RATA\"],\n [1173010014, 1173010, \"BUKET MEUTUAH\"],\n [1173010015, 1173010, \"ALUE MERBAU\"],\n [1173010016, 1173010, \"MATANG CEUNGAI\"],\n [1173010017, 1173010, \"SEUNEUBOK ANTARA\"],\n [1173010018, 1173010, \"ALUE PINEUNG\"],\n [1173010019, 1173010, \"SUKAREJO\"],\n [1173010020, 1173010, \"CINTA RAJA\"],\n [1173010021, 1173010, \"SUNGAI LUENG\"],\n [1173010022, 1173010, \"ALUE PINEUNG TIMUE\"],\n [1173010023, 1173010, \"KAPA\"],\n [1173011001, 1173011, \"PONDOK KEUMUNING\"],\n [1173011002, 1173011, \"SEULALAH\"],\n [1173011003, 1173011, \"PONDOK PABRIK\"],\n [1173011004, 1173011, \"SIDODADI\"],\n [1173011005, 1173011, \"SIDOREJO\"],\n [1173011006, 1173011, \"GAMPONG BARO\"],\n [1173011007, 1173011, \"MEURANDEH\"],\n [1173011008, 1173011, \"ASAM PEUTEK\"],\n [1173011009, 1173011, \"BAROH LANGSA LAMA\"],\n [1173011010, 1173011, \"SEULALAH BARU\"],\n [1173011011, 1173011, \"SUKA JADI KEBUN IRENG\"],\n [1173011012, 1173011, \"MEURANDEH TENGAH\"],\n [1173011013, 1173011, \"MEURANDEH DAYAH\"],\n [1173011014, 1173011, \"MEURANDEH ACEH\"],\n [1173011015, 1173011, \"BATE PUTEH\"],\n [1173020008, 1173020, \"LHOK BANIE\"],\n [1173020009, 1173020, \"PAYA BUJOK TEUNGOH\"],\n [1173020010, 1173020, \"PAYA BUJOK. BEURAMOE\"],\n [1173020011, 1173020, \"SIMPANG LHEE\"],\n [1173020012, 1173020, \"SEURIGET\"],\n [1173020019, 1173020, \"MATANG SEULIMENG\"],\n [1173020020, 1173020, \"SUNGAI PAUH\"],\n [1173020021, 1173020, \"KUALA LANGSA\"],\n [1173020022, 1173020, \"TELAGA TUJUH\"],\n [1173020023, 1173020, \"SERAMBI INDAH\"],\n [1173020024, 1173020, \"SUNGAI PAUH PUSAKA\"],\n [1173020025, 1173020, \"SUNGAI PAUH TANJONG\"],\n [1173020026, 1173020, \"SUNGAI PAUH FIRDAUS\"],\n [1173021001, 1173021, \"TIMBANG LANGSA\"],\n [1173021002, 1173021, \"ALUE DUA\"],\n [1173021003, 1173021, \"BIREM PUNTONG\"],\n [1173021004, 1173021, \"PAYA BUJOK SEULEUMAK\"],\n [1173021005, 1173021, \"PONDOK KELAPA\"],\n [1173021006, 1173021, \"KARANG ANYAR\"],\n [1173021007, 1173021, \"PAYA BUJOK TUNONG\"],\n [1173021008, 1173021, \"GEUDUBANG JAWA\"],\n [1173021009, 1173021, \"GEUDUBANG ACEH\"],\n [1173021010, 1173021, \"ALUE DUA BAKARAN BATEE\"],\n [1173021011, 1173021, \"LENGKONG\"],\n [1173021012, 1173021, \"SUKAJADI MAKMUR\"],\n [1173030001, 1173030, \"GAMPONG TEUNGOH\"],\n [1173030002, 1173030, \"PEUKAN LANGSA\"],\n [1173030004, 1173030, \"GAMPONG JAWA\"],\n [1173030005, 1173030, \"PAYA BUJOK BLANG PASE\"],\n [1173030006, 1173030, \"GAMPONG BLANG\"],\n [1173030007, 1173030, \"ALUE BERAWE\"],\n [1173030009, 1173030, \"GAMPONG DAULAT\"],\n [1173030010, 1173030, \"GAMPONG MUTIA\"],\n [1173030011, 1173030, \"BLANG SINIBONG\"],\n [1173030013, 1173030, \"TUALANG TEUNGOH\"],\n [1174010001, 1174010, \"ALUE LIM\"],\n [1174010002, 1174010, \"BLANG BULOH\"],\n [1174010003, 1174010, \"MANE KAREUNG\"],\n [1174010004, 1174010, \"ASAN KAREUNG\"],\n [1174010005, 1174010, \"RAYEUK KAREUNG\"],\n [1174010006, 1174010, \"KUMBANG PUNTEUT\"],\n [1174010007, 1174010, \"BLANG PUNTEUT\"],\n [1174010008, 1174010, \"ULEE BLANG MANE\"],\n [1174010009, 1174010, \"KEUDE PUNTEUT\"],\n [1174010010, 1174010, \"MESJID PUNTEUT\"],\n [1174010011, 1174010, \"TUNONG\"],\n [1174010012, 1174010, \"BALOY\"],\n [1174010013, 1174010, \"TEUNGOH\"],\n [1174010014, 1174010, \"BLANG TEUE\"],\n [1174010015, 1174010, \"JAMBO TIMU\"],\n [1174010016, 1174010, \"MESJID MEURAKSA\"],\n [1174010017, 1174010, \"BLANG CUT\"],\n [1174010018, 1174010, \"KUALA MEURAKSA\"],\n [1174010019, 1174010, \"JEULEUKAT\"],\n [1174010020, 1174010, \"BLANG WEU PANJOU\"],\n [1174010021, 1174010, \"BLANG WEU BAROH\"],\n [1174010022, 1174010, \"SEUNEUBOK\"],\n [1174020002, 1174020, \"PALOH BATEE\"],\n [1174020003, 1174020, \"LHOK MON PUTEH\"],\n [1174020004, 1174020, \"COT GIREK\"],\n [1174020005, 1174020, \"MANYANG\"],\n [1174020006, 1174020, \"BLANG CRUM\"],\n [1174020007, 1174020, \"ALUE AWE\"],\n [1174020008, 1174020, \"CUT MAMPLAM\"],\n [1174020009, 1174020, \"MNS MEE\"],\n [1174020010, 1174020, \"MNS BLANG\"],\n [1174020011, 1174020, \"UTEUNKOT\"],\n [1174020012, 1174020, \"BLANG POHROH\"],\n [1174020013, 1174020, \"PAYA PUNTEUT\"],\n [1174020014, 1174020, \"KEUDE CUNDA\"],\n [1174020015, 1174020, \"MNS MESJID\"],\n [1174020016, 1174020, \"PANGGOI\"],\n [1174020017, 1174020, \"PAYA BILI\"],\n [1174020018, 1174020, \"MNS ALUE\"],\n [1174021001, 1174021, \"COT TRIENG\"],\n [1174021002, 1174021, \"PALOH PUNTI\"],\n [1174021003, 1174021, \"MNS DAYAH\"],\n [1174021004, 1174021, \"BLANG PANYANG\"],\n [1174021005, 1174021, \"MEURIA\"],\n [1174021006, 1174021, \"BLANG PULO\"],\n [1174021007, 1174021, \"BATUPHAT TIMUR\"],\n [1174021008, 1174021, \"PADANG SAKTI\"],\n [1174021009, 1174021, \"UJONG PACU\"],\n [1174021010, 1174021, \"BLANG NALEUNG MAMEH\"],\n [1174021011, 1174021, \"BATUPHAT BARAT\"],\n [1174030001, 1174030, \"MON GEUDONG\"],\n [1174030002, 1174030, \"KEUDE ACEH\"],\n [1174030003, 1174030, \"PUSONG LAMA\"],\n [1174030004, 1174030, \"PUSONG BARU\"],\n [1174030005, 1174030, \"LHOKSEUMAWE\"],\n [1174030006, 1174030, \"SIMPANG EMPAT\"],\n [1174030007, 1174030, \"LANCANG GARAM\"],\n [1174030008, 1174030, \"KAMPUNG JAWA BARU\"],\n [1174030009, 1174030, \"TUMPOK TEUNGOH\"],\n [1174030010, 1174030, \"KUTA BLANG\"],\n [1174030011, 1174030, \"UTEUN BAYI\"],\n [1174030012, 1174030, \"BANDA MASEN\"],\n [1174030013, 1174030, \"UJONG BLANG\"],\n [1174030014, 1174030, \"ULEE JALAN\"],\n [1174030015, 1174030, \"HAGU BARAT LAUT\"],\n [1174030016, 1174030, \"HAGU TEUNGOH\"],\n [1174030017, 1174030, \"HAGU SELATAN\"],\n [1174030018, 1174030, \"KAMPUNG JAWA LAMA\"],\n [1175010001, 1175010, \"BULUH DORI\"],\n [1175010002, 1175010, \"PEGAYO\"],\n [1175010003, 1175010, \"SUBULUSSALAM\"],\n [1175010004, 1175010, \"PASAR PANJANG\"],\n [1175010005, 1175010, \"TANGGA BESI\"],\n [1175010006, 1175010, \"KUTA CEPU\"],\n [1175010007, 1175010, \"SUKA MAKMUR\"],\n [1175010008, 1175010, \"SIKELONDANG\"],\n [1175010009, 1175010, \"MUKTI MAKMUR\"],\n [1175010010, 1175010, \"SUBULUSSALAM BARAT\"],\n [1175010011, 1175010, \"SUBULUSSALAM SELATAN\"],\n [1175010012, 1175010, \"SUBULUSSALAM UTARA\"],\n [1175010013, 1175010, \"LAE ORAM\"],\n [1175010014, 1175010, \"MAKMUR JAYA\"],\n [1175010015, 1175010, \"BELEGEN MULIA\"],\n [1175010016, 1175010, \"DANAU TRAS\"],\n [1175010017, 1175010, \"SUBULUSSALAM TIMUR\"],\n [1175020001, 1175020, \"LAE MOTONG\"],\n [1175020002, 1175020, \"KAMPUNG BARU\"],\n [1175020003, 1175020, \"PENANGGALAN\"],\n [1175020004, 1175020, \"LAE BERSIH\"],\n [1175020005, 1175020, \"CEPU\"],\n [1175020006, 1175020, \"KUTA TENGAH\"],\n [1175020007, 1175020, \"SIKELANG\"],\n [1175020008, 1175020, \"JONTOR\"],\n [1175020009, 1175020, \"LAE IKAN\"],\n [1175020010, 1175020, \"PENUNTUNGAN\"],\n [1175020011, 1175020, \"DASAN RAJA\"],\n [1175020012, 1175020, \"PENANGGALAN BARAT\"],\n [1175020013, 1175020, \"PENANGGALAN TIMUR\"],\n [1175030001, 1175030, \"SIPERKAS\"],\n [1175030002, 1175030, \"KUTA BERINGIN\"],\n [1175030003, 1175030, \"KAMPONG BADAR\"],\n [1175030004, 1175030, \"HARAPAN BARU\"],\n [1175030005, 1175030, \"TELADAN BARU\"],\n [1175030006, 1175030, \"OBOH\"],\n [1175030007, 1175030, \"BINANGA\"],\n [1175030008, 1175030, \"BELUKUR MAKMUR\"],\n [1175030009, 1175030, \"PASAR RUNDENG\"],\n [1175030010, 1175030, \"LAE PAMUALAN\"],\n [1175030011, 1175030, \"MUARA BATU-BATU\"],\n [1175030012, 1175030, \"SIBUNGKE\"],\n [1175030013, 1175030, \"PANGLIMA SAHMAN\"],\n [1175030014, 1175030, \"SIBUASAN\"],\n [1175030015, 1175030, \"DAH\"],\n [1175030016, 1175030, \"SEPADAN\"],\n [1175030017, 1175030, \"GERUGUH\"],\n [1175030018, 1175030, \"LAE MATE\"],\n [1175030019, 1175030, \"MANDILAM\"],\n [1175030020, 1175030, \"TUALANG\"],\n [1175030021, 1175030, \"TANAH TUMBUH\"],\n [1175030022, 1175030, \"KUALA KEUPENG\"],\n [1175030023, 1175030, \"SUAK JAMPAK\"],\n [1175040001, 1175040, \"PULO BELEN\"],\n [1175040002, 1175040, \"PULO KEDEP\"],\n [1175040003, 1175040, \"SUKA MAJU\"],\n [1175040004, 1175040, \"GUNUNG BAKTI\"],\n [1175040005, 1175040, \"JAMBI\"],\n [1175040006, 1175040, \"SINGGERSING\"],\n [1175040007, 1175040, \"CIPAR PARI\"],\n [1175040008, 1175040, \"NAMO BUAYA\"],\n [1175040009, 1175040, \"CIPAR PARI TIMUR\"],\n [1175040010, 1175040, \"LAE SIMOLAP\"],\n [1175040011, 1175040, \"DARUL MAKMUR\"],\n [1175040012, 1175040, \"PASIR BELO\"],\n [1175040013, 1175040, \"BAWAN\"],\n [1175040014, 1175040, \"SIGRUN\"],\n [1175040015, 1175040, \"LAE LANGGE\"],\n [1175040016, 1175040, \"JABI-JABI\"],\n [1175040017, 1175040, \"BUNGA TANJUNG\"],\n [1175040018, 1175040, \"JABI-JABI BARAT\"],\n [1175040019, 1175040, \"BATU NAPAL\"],\n [1175050001, 1175050, \"SEPANG\"],\n [1175050002, 1175050, \"LONGKIB\"],\n [1175050003, 1175050, \"PANJI\"],\n [1175050004, 1175050, \"DARUL AMAN\"],\n [1175050005, 1175050, \"BUKIT ALIM\"],\n [1175050006, 1175050, \"RANTAU PANJANG\"],\n [1175050007, 1175050, \"SIKERABANG\"],\n [1175050008, 1175050, \"BANGUN SARI\"],\n [1175050009, 1175050, \"LAE SAGA\"],\n [1175050010, 1175050, \"DARUSSALAM\"],\n [1201060015, 1201060, \"TETE GOENAAI\"],\n [1201060016, 1201060, \"LAOWO HILIMBARUZO\"],\n [1201060017, 1201060, \"HILILAWAE\"],\n [1201060018, 1201060, \"TUHEWAEBU\"],\n [1201060023, 1201060, \"SISOBAHILI IRAONOHURA\"],\n [1201060024, 1201060, \"HILIMOASIO\"],\n [1201060025, 1201060, \"OLADANO\"],\n [1201060026, 1201060, \"AHEDANO\"],\n [1201060027, 1201060, \"HILINAA TAFUO\"],\n [1201060028, 1201060, \"HILIONOZEGA\"],\n [1201060029, 1201060, \"MONDRALI\"],\n [1201060036, 1201060, \"AWONI LAUSO\"],\n [1201060037, 1201060, \"BOBOZIOLI LOLOANAA\"],\n [1201060038, 1201060, \"TETEHOSI\"],\n [1201060039, 1201060, \"SAIWAHILI HILIADULO\"],\n [1201060040, 1201060, \"MALIWAA\"],\n [1201060041, 1201060, \"BIOUTI\"],\n [1201060042, 1201060, \"BOZIHONA\"],\n [1201060043, 1201060, \"HILIMOASIO DUA\"],\n [1201060044, 1201060, \"HILIADULO\"],\n [1201060045, 1201060, \"ORAHILI ZUZUNDRAO\"],\n [1201060046, 1201060, \"TIGA SERANGKAI MALIWAA\"],\n [1201060047, 1201060, \"HILIGOGOWAYA MALIWAA\"],\n [1201060048, 1201060, \"LAIRA\"],\n [1201060049, 1201060, \"OTALUA\"],\n [1201060050, 1201060, \"BARUZO\"],\n [1201060051, 1201060, \"SANDRUTA\"],\n [1201060052, 1201060, \"BIOUTI TIMUR\"],\n [1201061001, 1201061, \"SIOFA BANUA\"],\n [1201061002, 1201061, \"SIFAOROASI ULUHOU\"],\n [1201061003, 1201061, \"GAZAMANU\"],\n [1201061004, 1201061, \"HILIGANOITA\"],\n [1201061005, 1201061, \"SISARAHILI BAWOLATO\"],\n [1201061006, 1201061, \"DAHANA\"],\n [1201061007, 1201061, \"HILIHORU\"],\n [1201061008, 1201061, \"HILIALAWA\"],\n [1201061009, 1201061, \"HILIWAROKHA\"],\n [1201061010, 1201061, \"HILIFAOSI\"],\n [1201061011, 1201061, \"SITOLUBANUA\"],\n [1201061012, 1201061, \"ORAHILI\"],\n [1201061013, 1201061, \"SIOFAEWALI\"],\n [1201061014, 1201061, \"SOHOYA\"],\n [1201061015, 1201061, \"TAGAULE\"],\n [1201061016, 1201061, \"BOTOHAENGA\"],\n [1201061017, 1201061, \"SINDRONDRO\"],\n [1201061018, 1201061, \"HILIHAO CUGALA\"],\n [1201061019, 1201061, \"SIOFAEWALI SELATAN\"],\n [1201061020, 1201061, \"LAGASIMAHE\"],\n [1201061021, 1201061, \"ORAHUA\"],\n [1201061022, 1201061, \"HOU\"],\n [1201061023, 1201061, \"BANUA SIBOHOU SILIMA EWALI\"],\n [1201061024, 1201061, \"BALALE TOBAA\"],\n [1201061025, 1201061, \"ORAHUA FAONDRATO\"],\n [1201062001, 1201062, \"ORAHILI\"],\n [1201062002, 1201062, \"HILIMBOWO\"],\n [1201062003, 1201062, \"FATODANO\"],\n [1201062004, 1201062, \"FAHANDRONA\"],\n [1201062005, 1201062, \"HILIBADALU\"],\n [1201062006, 1201062, \"HOLI\"],\n [1201062007, 1201062, \"SISOBAHILI ULUGAWO\"],\n [1201062008, 1201062, \"HILIWETOGELA\"],\n [1201062009, 1201062, \"LAWA-LAWA LUO\"],\n [1201062010, 1201062, \"SIFAOROASI ULUGAWO\"],\n [1201062011, 1201062, \"ONODALINGA\"],\n [1201062012, 1201062, \"MOHILI\"],\n [1201062013, 1201062, \"HILIGAFOA\"],\n [1201062014, 1201062, \"SISARAHILI SOROMAASI\"],\n [1201070006, 1201070, \"HILIOTALUA\"],\n [1201070008, 1201070, \"AKHELAUME\"],\n [1201070012, 1201070, \"TULOMBAHO SALOO\"],\n [1201070013, 1201070, \"OLINDRAWA SISARAHILI\"],\n [1201070014, 1201070, \"LASELA\"],\n [1201070016, 1201070, \"HILISEBUA\"],\n [1201070017, 1201070, \"SOMI\"],\n [1201070018, 1201070, \"SIRETE\"],\n [1201070019, 1201070, \"HILIWETO GIDO\"],\n [1201070020, 1201070, \"LOLOANAA GIDO\"],\n [1201070022, 1201070, \"SISOBAHILI\"],\n [1201070023, 1201070, \"LAHEMO\"],\n [1201070024, 1201070, \"LADEA\"],\n [1201070027, 1201070, \"UMBU\"],\n [1201070028, 1201070, \"SAEWE\"],\n [1201070029, 1201070, \"LOLOZASAI\"],\n [1201070030, 1201070, \"LASARA IDANOI\"],\n [1201070031, 1201070, \"LADEA ORAHUA\"],\n [1201070032, 1201070, \"NIFOLOO LAURU\"],\n [1201070033, 1201070, \"SOMI BOTOGOO\"],\n [1201070034, 1201070, \"HILIZOI\"],\n [1201071001, 1201071, \"TUHEMBUASI\"],\n [1201071002, 1201071, \"HILIBADALU\"],\n [1201071003, 1201071, \"LAURI\"],\n [1201071004, 1201071, \"HILIMBANA\"],\n [1201071005, 1201071, \"SAETAGARAMBA\"],\n [1201071006, 1201071, \"SOGAEADU\"],\n [1201071007, 1201071, \"BARUZO\"],\n [1201071008, 1201071, \"TULUMBAHO\"],\n [1201071009, 1201071, \"SIHAREO SOGAEADU\"],\n [1201071010, 1201071, \"WEA-WEA\"],\n [1201071011, 1201071, \"SISARAHILI SOGEADU\"],\n [1201081001, 1201081, \"BALODANO\"],\n [1201081002, 1201081, \"LEWUOGURU II\"],\n [1201081003, 1201081, \"SISARAHILI MA U\"],\n [1201081004, 1201081, \"SIHAREO III\"],\n [1201081005, 1201081, \"DEKHA\"],\n [1201081006, 1201081, \"LASARA SIWALUBANUA\"],\n [1201081007, 1201081, \"TUHEMBERUA\"],\n [1201081008, 1201081, \"ATUALUO\"],\n [1201081009, 1201081, \"LEWA - LEWA\"],\n [1201081010, 1201081, \"SIHAREO III BAWOSALOO BERUA\"],\n [1201081011, 1201081, \"SIHAREO III HILIBADALU\"],\n [1201082001, 1201082, \"SISOBAWINO I\"],\n [1201082002, 1201082, \"LEWUOMBANUA\"],\n [1201082003, 1201082, \"IODANO\"],\n [1201082004, 1201082, \"H U N O\"],\n [1201082005, 1201082, \"LEWUOGURU I\"],\n [1201082006, 1201082, \"SISARATANDRAWA\"],\n [1201082007, 1201082, \"SOMOLO-MOLO\"],\n [1201082008, 1201082, \"SIFAOROASI\"],\n [1201082009, 1201082, \"HILIGODU SOMOLO-MOLO\"],\n [1201082010, 1201082, \"HILIMBORODANO\"],\n [1201082011, 1201082, \"SOEWALI\"],\n [1201130020, 1201130, \"ONOZITOLI DULU\"],\n [1201130021, 1201130, \"SINARIKHI\"],\n [1201130022, 1201130, \"OMBOLATA SALOO\"],\n [1201130023, 1201130, \"SISOBALAURU\"],\n [1201130024, 1201130, \"TUHEGAFOA II\"],\n [1201130025, 1201130, \"ONONAMOLO I BOTOMUZOI\"],\n [1201130026, 1201130, \"FADORO LAURU\"],\n [1201130027, 1201130, \"D I M A\"],\n [1201130028, 1201130, \"MAZINGO TANOSEO\"],\n [1201130029, 1201130, \"SISOBAHILI I TANOSEO\"],\n [1201130030, 1201130, \"HILIGODU TANOSEO\"],\n [1201130031, 1201130, \"HILIDUHO\"],\n [1201130032, 1201130, \"LASARA TANOSEO\"],\n [1201130033, 1201130, \"ONOWAEMBO HILIGARA\"],\n [1201130034, 1201130, \"SILIMABANUA\"],\n [1201130035, 1201130, \"OMBOLATA SARAHILI\"],\n [1201131001, 1201131, \"FADORO HUNOGOA\"],\n [1201131002, 1201131, \"LOLOFAOSO LALAI\"],\n [1201131003, 1201131, \"FULOLO LALAI\"],\n [1201131004, 1201131, \"LALAI I / II\"],\n [1201131005, 1201131, \"LAWA LAWA\"],\n [1201131006, 1201131, \"LOLOWUA\"],\n [1201131007, 1201131, \"DAHADANO BOTOMBAWO\"],\n [1201131008, 1201131, \"FADORO LALAI\"],\n [1201131009, 1201131, \"LOLOWUA HILIWARASI\"],\n [1201131010, 1201131, \"HILIZIA LAURU\"],\n [1201131011, 1201131, \"LOLO FAOSO\"],\n [1201131012, 1201131, \"ONOMBONGI\"],\n [1201131013, 1201131, \"ORAHILI IDANOI\"],\n [1201131014, 1201131, \"AWELA\"],\n [1201131015, 1201131, \"EHOSAKHOZI\"],\n [1201132001, 1201132, \"ONONAMOLO TALAFU\"],\n [1201132002, 1201132, \"HILIGODU BOTOMUZOI\"],\n [1201132003, 1201132, \"LASARA BOTOMUZOI\"],\n [1201132004, 1201132, \"SIMANAERE BOTOMUZOI\"],\n [1201132005, 1201132, \"HILIWAELE II\"],\n [1201132006, 1201132, \"HILIHAMBAWA BOTOMUZOI\"],\n [1201132007, 1201132, \"HILIWAELE I\"],\n [1201132008, 1201132, \"HILIMBOWO BOTOMUZOI\"],\n [1201132009, 1201132, \"TUHEGAFOA I\"],\n [1201132010, 1201132, \"BALOHILI BOTOMUZOI\"],\n [1201132011, 1201132, \"LOLOANAA\"],\n [1201132012, 1201132, \"FULOLO BOTOMUZOI\"],\n [1201132013, 1201132, \"TETEHOSI BOTOMUZOI\"],\n [1201132014, 1201132, \"MOHILI BERUA BOTOMUZOI\"],\n [1201132015, 1201132, \"SISOBAHILI DOLA\"],\n [1201132016, 1201132, \"TALAFU\"],\n [1201132017, 1201132, \"BANUA SIBOHOU BOTOMUZOI\"],\n [1201132018, 1201132, \"OLANORI\"],\n [1202010001, 1202010, \"PULAU TAMANG\"],\n [1202010002, 1202010, \"PASAR BATAHAN\"],\n [1202010003, 1202010, \"BATAHAN I\"],\n [1202010004, 1202010, \"BANJAR AUR\"],\n [1202010005, 1202010, \"KAMPUNG KAPAS\"],\n [1202010006, 1202010, \"BATUSONDAT\"],\n [1202010007, 1202010, \"BINTUNGAN BEJANGKAR\"],\n [1202010010, 1202010, \"KUBANGAN TOMPEK\"],\n [1202010013, 1202010, \"PASAR BARU BATAHAN\"],\n [1202010014, 1202010, \"KUALA BATAHAN\"],\n [1202010015, 1202010, \"SARI KENANGA\"],\n [1202010016, 1202010, \"MUARA PERTEMUAN\"],\n [1202010019, 1202010, \"BATAHAN II\"],\n [1202010020, 1202010, \"BATAHAN III\"],\n [1202010021, 1202010, \"BATAHAN IV\"],\n [1202010022, 1202010, \"KAMPUNG KAPAS I\"],\n [1202010024, 1202010, \"SINUNUKAN VI\"],\n [1202010027, 1202010, \"KUBANGAN PANDAN SARI\"],\n [1202011001, 1202011, \"SINUNUKAN IV\"],\n [1202011002, 1202011, \"SINUNUKAN II\"],\n [1202011003, 1202011, \"SINUNUKAN I CENTRAL\"],\n [1202011004, 1202011, \"SINUNUKAN III\"],\n [1202011005, 1202011, \"BANJAR AUR UTARA\"],\n [1202011006, 1202011, \"BINTUNGAN BEJANGKAR BARU\"],\n [1202011007, 1202011, \"KAMPUNG KAPAS II\"],\n [1202011008, 1202011, \"PASIR PUTIH\"],\n [1202011009, 1202011, \"SUKA DAMAI\"],\n [1202011010, 1202011, \"WIDO DAREN\"],\n [1202011011, 1202011, \"WONO SARI\"],\n [1202011012, 1202011, \"SINUNUKAN I\"],\n [1202011013, 1202011, \"SIDOMAKMUR\"],\n [1202011014, 1202011, \"AIRAPA\"],\n [1202020010, 1202020, \"AEK NABARA\"],\n [1202020027, 1202020, \"AMPUNG SIALA\"],\n [1202020028, 1202020, \"MUARA PARLAMPUNGAN\"],\n [1202020029, 1202020, \"BANJAR MALAYU\"],\n [1202020030, 1202020, \"MUARA SOMA\"],\n [1202020031, 1202020, \"AMPUNG PADANG\"],\n [1202020032, 1202020, \"SIPOGU\"],\n [1202020033, 1202020, \"TOMBANG KALUANG\"],\n [1202020034, 1202020, \"BANGKELANG\"],\n [1202020035, 1202020, \"AEK NANGALI\"],\n [1202020036, 1202020, \"RAO-RAO\"],\n [1202020037, 1202020, \"AEK GUO\"],\n [1202020038, 1202020, \"TARLOLA\"],\n [1202020039, 1202020, \"AMPUNG JULU\"],\n [1202020040, 1202020, \"SOPO TINJAK\"],\n [1202020041, 1202020, \"BATU MADINDING\"],\n [1202020042, 1202020, \"RANTOBI\"],\n [1202020043, 1202020, \"HADANGKAHAN\"],\n [1202020044, 1202020, \"AEK MANGGIS\"],\n [1202020045, 1202020, \"GUO BATU\"],\n [1202020046, 1202020, \"SIMANGUNTONG\"],\n [1202020047, 1202020, \"AEK HOLBUNG\"],\n [1202020048, 1202020, \"HATUPANGAN\"],\n [1202020049, 1202020, \"BULU SOMA\"],\n [1202020050, 1202020, \"JAMBUR BARU\"],\n [1202020051, 1202020, \"LUBUK BONDAR PANJANG\"],\n [1202020052, 1202020, \"TOR NAINCAT\"],\n [1202020053, 1202020, \"AEK BARU JAE\"],\n [1202020054, 1202020, \"AEK BARU JULU\"],\n [1202020055, 1202020, \"HUTA LOBU\"],\n [1202020056, 1202020, \"LUBUK SAMBOA\"],\n [1202021001, 1202021, \"TAPUS\"],\n [1202021002, 1202021, \"SIMPANG DURIAN\"],\n [1202021014, 1202021, \"SIMPANG BAJOLE\"],\n [1202021015, 1202021, \"BANDAR LIMABUNG\"],\n [1202021016, 1202021, \"AEK MANYURUK\"],\n [1202021017, 1202021, \"SIMPANG DUKU\"],\n [1202021018, 1202021, \"SIMPANG KOJE\"],\n [1202021019, 1202021, \"PANGKALAN\"],\n [1202021020, 1202021, \"LANCAT\"],\n [1202021021, 1202021, \"SIKUMBU\"],\n [1202021022, 1202021, \"AEK GARINGGING\"],\n [1202021023, 1202021, \"PERK. SIMPANG GAMBIR\"],\n [1202021024, 1202021, \"SIMPANG GAMBIR\"],\n [1202021025, 1202021, \"LOBUNG\"],\n [1202021027, 1202021, \"KAMPUNG BARU\"],\n [1202021029, 1202021, \"BONCA BAYUON\"],\n [1202021030, 1202021, \"DALAN LIDANG\"],\n [1202021031, 1202021, \"PARBATASAN\"],\n [1202021032, 1202021, \"TANGSI ATAS\"],\n [1202022001, 1202022, \"SAMPURAN\"],\n [1202022002, 1202022, \"TANDIKEK\"],\n [1202022003, 1202022, \"GONTING\"],\n [1202022004, 1202022, \"BANGUN SAROHA\"],\n [1202022005, 1202022, \"SIMANINGGIR\"],\n [1202022006, 1202022, \"BANJAR MAGA\"],\n [1202022007, 1202022, \"RANTO NALINJANG\"],\n [1202022008, 1202022, \"SIMPANG TALAP\"],\n [1202022009, 1202022, \"MANISAK\"],\n [1202022010, 1202022, \"HUTA RAJA\"],\n [1202022011, 1202022, \"MUARA BANGKO\"],\n [1202022012, 1202022, \"HUTA BARINGIN\"],\n [1202022013, 1202022, \"RANTO PANJANG\"],\n [1202022014, 1202022, \"DUA SEPAKAT\"],\n [1202022015, 1202022, \"HUTA NAULI\"],\n [1202022016, 1202022, \"PADANGSILOJONGAN\"],\n [1202022017, 1202022, \"LUBUK KANCAH\"],\n [1202022018, 1202022, \"GUNUNG GODANG\"],\n [1202030004, 1202030, \"TOBANG\"],\n [1202030005, 1202030, \"BOTUNG\"],\n [1202030010, 1202030, \"MUARA BOTUNG\"],\n [1202030014, 1202030, \"HUTARIMBARU SM\"],\n [1202030015, 1202030, \"HUTA PUNGKUT JULU\"],\n [1202030016, 1202030, \"HUTA PUNGKUT TONGA\"],\n [1202030017, 1202030, \"USOR TOLANG\"],\n [1202030018, 1202030, \"HUTA PUNGKUT JAE\"],\n [1202030019, 1202030, \"TAMIANG\"],\n [1202030020, 1202030, \"PATIALO\"],\n [1202030021, 1202030, \"HUTA DANGKA\"],\n [1202030022, 1202030, \"MUARA PUNGKUT\"],\n [1202030023, 1202030, \"MANAMBIN\"],\n [1202030025, 1202030, \"PAGAR GUNUNG\"],\n [1202030026, 1202030, \"BATAHAN\"],\n [1202030027, 1202030, \"SIBIO-BIO\"],\n [1202030028, 1202030, \"UJUNG MARISI\"],\n [1202030029, 1202030, \"GUNUNG TUA MS\"],\n [1202030030, 1202030, \"PADANG BULAN\"],\n [1202030031, 1202030, \"MUARA SIAMBAK\"],\n [1202030032, 1202030, \"SIMANDOLAM\"],\n [1202030033, 1202030, \"MUARAPOTAN\"],\n [1202030035, 1202030, \"TOMBANG BUSTAK\"],\n [1202030036, 1202030, \"HUTA BARINGIN TB\"],\n [1202030037, 1202030, \"GADING BAIN\"],\n [1202030038, 1202030, \"SIMPANG TOLANG JULU\"],\n [1202030039, 1202030, \"HUTA PULI\"],\n [1202030040, 1202030, \"SOPO SORIK\"],\n [1202030045, 1202030, \"SIMPANG TOLANG JAE\"],\n [1202030046, 1202030, \"SAYUR MAINCAT\"],\n [1202030047, 1202030, \"PASAR KOTANOPAN\"],\n [1202030048, 1202030, \"SINGENGU JULU\"],\n [1202030049, 1202030, \"SINGENGU JAE\"],\n [1202030050, 1202030, \"HUTA PADANG SM\"],\n [1202030051, 1202030, \"GUNUNG TUA SM\"],\n [1202030052, 1202030, \"SABA DOLOK\"],\n [1202031001, 1202031, \"SIMPANG BANYAK JULU\"],\n [1202031002, 1202031, \"SIMPANG BANYAK JAE\"],\n [1202031003, 1202031, \"HABINCARAN\"],\n [1202031004, 1202031, \"HUTA PADANG UP\"],\n [1202031005, 1202031, \"HUTA GODANG\"],\n [1202031006, 1202031, \"ALAHAN KAE\"],\n [1202031007, 1202031, \"PATAHAJANG\"],\n [1202031008, 1202031, \"TOLANG\"],\n [1202031009, 1202031, \"HUTARIMBARU UP\"],\n [1202031010, 1202031, \"SIMPANG DUHU LOMBANG\"],\n [1202031011, 1202031, \"SIMPANG DUHU DOLOK\"],\n [1202031012, 1202031, \"SIMPANG PINING\"],\n [1202031013, 1202031, \"MUARA SALADI\"],\n [1202032001, 1202032, \"PASTAP JULU\"],\n [1202032002, 1202032, \"PASTAP\"],\n [1202032011, 1202032, \"LARU DOLOK\"],\n [1202032012, 1202032, \"HUTA TONGA AB\"],\n [1202032013, 1202032, \"MUARA MAIS\"],\n [1202032014, 1202032, \"PADANG SANGGAR\"],\n [1202032015, 1202032, \"ANGIN BARAT\"],\n [1202032016, 1202032, \"MUARA MAIS JAMBUR\"],\n [1202032017, 1202032, \"LARU BARINGIN\"],\n [1202032018, 1202032, \"LARU BOLAK\"],\n [1202032019, 1202032, \"PASAR LARU\"],\n [1202032020, 1202032, \"LARU LOMBANG\"],\n [1202032021, 1202032, \"TAMBANGAN JAE\"],\n [1202032022, 1202032, \"LUMBAN PASIR\"],\n [1202032023, 1202032, \"TAMBANGAN TONGA\"],\n [1202032024, 1202032, \"TAMBANGAN PASOMAN\"],\n [1202032025, 1202032, \"RAO-RAO DOLOK\"],\n [1202032026, 1202032, \"RAO-RAO LOMBANG\"],\n [1202032027, 1202032, \"PANJARINGAN\"],\n [1202032028, 1202032, \"SIMANGAMBAT TB\"],\n [1202033001, 1202033, \"PURBA BARU\"],\n [1202033002, 1202033, \"SIANTONA\"],\n [1202033003, 1202033, \"PURBA LAMO\"],\n [1202033004, 1202033, \"BANGUN PURBA\"],\n [1202033005, 1202033, \"AEK MARIAN MG\"],\n [1202033006, 1202033, \"PASAR MAGA\"],\n [1202033007, 1202033, \"MAGA DOLOK\"],\n [1202033008, 1202033, \"MAGA LOMBANG\"],\n [1202033009, 1202033, \"PANGKAT\"],\n [1202034001, 1202034, \"HUTA TINGGI\"],\n [1202034002, 1202034, \"HUTANAMALE\"],\n [1202034003, 1202034, \"HUTA BARINGIN\"],\n [1202034004, 1202034, \"SIBANGGOR JULU\"],\n [1202034005, 1202034, \"SIBANGGOR JAE\"],\n [1202034006, 1202034, \"PURBA JULU\"],\n [1202034007, 1202034, \"SIBANGGOR TONGA\"],\n [1202034008, 1202034, \"HUTA LOMBANG\"],\n [1202034009, 1202034, \"HUTA BARU\"],\n [1202034010, 1202034, \"HANDEL\"],\n [1202034011, 1202034, \"HUTA BARINGIN JULU\"],\n [1202040008, 1202040, \"RANJO BATU\"],\n [1202040009, 1202040, \"KAMPUNG PINANG\"],\n [1202040011, 1202040, \"SIMPANG MANDEPO\"],\n [1202040012, 1202040, \"BANDAR PANJANG\"],\n [1202040013, 1202040, \"PASAR MUARA SIPONGI\"],\n [1202040014, 1202040, \"SIBINAIL\"],\n [1202040015, 1202040, \"KOTO BARINGIN\"],\n [1202040016, 1202040, \"TANJUNG ALAI\"],\n [1202040017, 1202040, \"LIMAU MANIS\"],\n [1202040018, 1202040, \"BANDAR PANJANG TUO\"],\n [1202040019, 1202040, \"TAMIANG MUDO\"],\n [1202040020, 1202040, \"TANJUNG MEDAN\"],\n [1202040021, 1202040, \"AEK BOTUNG\"],\n [1202040022, 1202040, \"KOTO BORU\"],\n [1202040023, 1202040, \"MUARA KUMPULAN\"],\n [1202040024, 1202040, \"TANJUNG LARANGAN\"],\n [1202041001, 1202041, \"HUTA JULU\"],\n [1202041002, 1202041, \"HUTA PADANG\"],\n [1202041003, 1202041, \"HUTA TORAS\"],\n [1202041004, 1202041, \"PAKANTAN LOMBANG\"],\n [1202041005, 1202041, \"HUTA LANCAT\"],\n [1202041006, 1202041, \"PAKANTAN DOLOK\"],\n [1202041007, 1202041, \"SILOGUN\"],\n [1202041008, 1202041, \"HUTA GAMBIR\"],\n [1202050007, 1202050, \"AEK BANIR\"],\n [1202050018, 1202050, \"SIPAGA - PAGA\"],\n [1202050019, 1202050, \"PARBANGUNAN\"],\n [1202050028, 1202050, \"PIDOLI LOMBANG\"],\n [1202050029, 1202050, \"PIDOLI DOLOK\"],\n [1202050030, 1202050, \"DARUSSALAM\"],\n [1202050031, 1202050, \"SIOBON JULU\"],\n [1202050032, 1202050, \"KOTA SIANTAR\"],\n [1202050033, 1202050, \"PANYABUNGAN II\"],\n [1202050034, 1202050, \"PANYABUNGAN III\"],\n [1202050035, 1202050, \"PANYABUNGAN I\"],\n [1202050036, 1202050, \"PASAR HILIR\"],\n [1202050037, 1202050, \"PANYABUNGAN JULU\"],\n [1202050038, 1202050, \"PANYABUNGAN TONGA\"],\n [1202050039, 1202050, \"PANYABUNGAN JAE\"],\n [1202050040, 1202050, \"ADIAN JIOR\"],\n [1202050044, 1202050, \"GUNUNG MANAON\"],\n [1202050045, 1202050, \"KAYU JATI\"],\n [1202050046, 1202050, \"SIGALAPANG JULU\"],\n [1202050047, 1202050, \"KAMPUNG PADANG\"],\n [1202050048, 1202050, \"IPAR BONDAR\"],\n [1202050049, 1202050, \"GUNUNG TUA JAE\"],\n [1202050050, 1202050, \"MANYABAR\"],\n [1202050051, 1202050, \"SARAK MATUA\"],\n [1202050052, 1202050, \"GUNUNG BARANI\"],\n [1202050062, 1202050, \"SALAMBUE\"],\n [1202050063, 1202050, \"AEK MATA\"],\n [1202050064, 1202050, \"HUTA LOMBANG LUBIS\"],\n [1202050065, 1202050, \"PAGARAN TONGA\"],\n [1202050066, 1202050, \"SOPO BATU\"],\n [1202050067, 1202050, \"GUNUNG TUA JULU\"],\n [1202050068, 1202050, \"GUNUNG TUA TONGA\"],\n [1202050069, 1202050, \"LUMBAN PASIR\"],\n [1202050070, 1202050, \"DALAN LIDANG\"],\n [1202050071, 1202050, \"SIOBON JAE\"],\n [1202050072, 1202050, \"SIPOLU POLU\"],\n [1202050073, 1202050, \"SABA JAMBU\"],\n [1202050074, 1202050, \"PANGGORENGAN\"],\n [1202050075, 1202050, \"MANYABAR JAE\"],\n [1202051001, 1202051, \"HAYU RAJA\"],\n [1202051002, 1202051, \"KAYU LAUT\"],\n [1202051003, 1202051, \"TANO BATO\"],\n [1202051004, 1202051, \"ROBURAN LOMBANG\"],\n [1202051005, 1202051, \"ROBURAN DOLOK\"],\n [1202051006, 1202051, \"LUMBAN DOLOK\"],\n [1202051007, 1202051, \"HUTA RAJA\"],\n [1202051008, 1202051, \"HUTAIMBARU\"],\n [1202051009, 1202051, \"AEK NGALI\"],\n [1202051010, 1202051, \"HUTA JULU\"],\n [1202051011, 1202051, \"PAGARAN GALA-GALA\"],\n [1202052001, 1202052, \"LONGAT\"],\n [1202052002, 1202052, \"SIRAMBAS\"],\n [1202052003, 1202052, \"SABAJIOR\"],\n [1202052004, 1202052, \"HUTABARINGIN\"],\n [1202052005, 1202052, \"BATANG GADIS\"],\n [1202052006, 1202052, \"BARBARAN\"],\n [1202052007, 1202052, \"HUTA TONGA BARBARAN\"],\n [1202052008, 1202052, \"RUNDING\"],\n [1202052009, 1202052, \"BARBARAN JAE\"],\n [1202052010, 1202052, \"BATANG GADIS JAE\"],\n [1202053005, 1202053, \"BARINGIN JAYA\"],\n [1202053006, 1202053, \"SIMANONDONG\"],\n [1202053007, 1202053, \"RUMBIO\"],\n [1202053008, 1202053, \"MOMPANG JULU\"],\n [1202053009, 1202053, \"MOMPANG JAE\"],\n [1202053010, 1202053, \"HUTA DAMAI\"],\n [1202053011, 1202053, \"SUKA RAMAI\"],\n [1202053012, 1202053, \"JAMBUR PADANG MATINGGI\"],\n [1202053017, 1202053, \"SOPO SORIK\"],\n [1202053018, 1202053, \"TANJUNG MOMPANG\"],\n [1202053019, 1202053, \"TOR BANUA RAJA\"],\n [1202053020, 1202053, \"KAMPUNG BARU\"],\n [1202054001, 1202054, \"TEBING TINGGI\"],\n [1202054002, 1202054, \"HUTA RIMBARU\"],\n [1202054003, 1202054, \"GUNUNG BARINGIN\"],\n [1202054004, 1202054, \"TANJUNG\"],\n [1202054005, 1202054, \"AEK NABARA\"],\n [1202054006, 1202054, \"PAGUR\"],\n [1202054007, 1202054, \"RANTO NATAS\"],\n [1202054008, 1202054, \"PARDOMUAN\"],\n [1202054009, 1202054, \"SIRANGKAP\"],\n [1202054010, 1202054, \"HUTA TINGGI\"],\n [1202054011, 1202054, \"HUTA BANGUN\"],\n [1202054012, 1202054, \"PARMOMPANG\"],\n [1202054013, 1202054, \"TANJUNG JULU\"],\n [1202054014, 1202054, \"BANJAR LANCAT\"],\n [1202054015, 1202054, \"PADANG LARU\"],\n [1202055001, 1202055, \"HUTA BARGOT DOLOK\"],\n [1202055002, 1202055, \"HUTA BARGOT NAULI\"],\n [1202055003, 1202055, \"PASAR HUTA BARGOT\"],\n [1202055004, 1202055, \"BANGUN SEJATI\"],\n [1202055005, 1202055, \"HUTA BARGOT LOMBANG\"],\n [1202055006, 1202055, \"HUTA BARGOT SETIA\"],\n [1202055007, 1202055, \"MONDAN\"],\n [1202055008, 1202055, \"SAYUR MAINCAT\"],\n [1202055009, 1202055, \"SIMALAGI\"],\n [1202055010, 1202055, \"HUTARIMBARU\"],\n [1202055011, 1202055, \"KUMPULAN SETIA\"],\n [1202055012, 1202055, \"HUTANAINGKAN\"],\n [1202055013, 1202055, \"BINANGA\"],\n [1202055014, 1202055, \"SABA PADANG\"],\n [1202060001, 1202060, \"PARDAMEAN BARU\"],\n [1202060002, 1202060, \"PATILUBAN MUDIK\"],\n [1202060003, 1202060, \"KAMPUNG SAWAH\"],\n [1202060004, 1202060, \"PASAR V NATAL\"],\n [1202060005, 1202060, \"PASAR II NATAL\"],\n [1202060006, 1202060, \"PASAR I NATAL\"],\n [1202060007, 1202060, \"SETIA KARYA\"],\n [1202060008, 1202060, \"PATILUBAN HILIR\"],\n [1202060009, 1202060, \"TEGAL SARI\"],\n [1202060010, 1202060, \"PERKEBUNAN PATILUBAN\"],\n [1202060011, 1202060, \"SIKARA KARA I\"],\n [1202060012, 1202060, \"SIKARA KARA II\"],\n [1202060013, 1202060, \"PANGGAUTAN\"],\n [1202060014, 1202060, \"TALUK\"],\n [1202060015, 1202060, \"SIKARA KARA\"],\n [1202060016, 1202060, \"BUBURAN\"],\n [1202060017, 1202060, \"SIKARA KARA III\"],\n [1202060018, 1202060, \"BINTUAS\"],\n [1202060019, 1202060, \"SUNDUTAN TIGO\"],\n [1202060020, 1202060, \"SIKARA KARA IV\"],\n [1202060021, 1202060, \"BALIMBING\"],\n [1202060022, 1202060, \"PASAR III NATAL\"],\n [1202060023, 1202060, \"BONDAKASE\"],\n [1202060024, 1202060, \"TUNAS KARYA\"],\n [1202060025, 1202060, \"RUKUN JAYA\"],\n [1202060026, 1202060, \"SINUNUKAN V\"],\n [1202060027, 1202060, \"SUKA MAJU\"],\n [1202060028, 1202060, \"SASARAN\"],\n [1202060029, 1202060, \"PASAR VI NATAL\"],\n [1202060030, 1202060, \"KUN-KUN\"],\n [1202070001, 1202070, \"RANTAU PANJANG\"],\n [1202070002, 1202070, \"MANUNCANG\"],\n [1202070003, 1202070, \"LUBUK KAPUNDUNG\"],\n [1202070004, 1202070, \"HUTAIMBARU\"],\n [1202070005, 1202070, \"PANUNGGULAN\"],\n [1202070006, 1202070, \"TABUYUNG\"],\n [1202070007, 1202070, \"PASAR II SINGKUANG\"],\n [1202070008, 1202070, \"PASAR I SINGKUANG\"],\n [1202070009, 1202070, \"SIKAPAS\"],\n [1202070010, 1202070, \"BATU MUNDOM\"],\n [1202070011, 1202070, \"TAGILANG JULU\"],\n [1202070012, 1202070, \"SALI BARU\"],\n [1202070013, 1202070, \"SUKA MAJU\"],\n [1202070014, 1202070, \"LUBUK KAPUNDUNG II\"],\n [1202070015, 1202070, \"UPT TABUYUNG\"],\n [1202070016, 1202070, \"UPT SINGKUANG II\"],\n [1202070017, 1202070, \"UPT SINGKUANG I\"],\n [1202080010, 1202080, \"PINTU PADANG JULU\"],\n [1202080011, 1202080, \"HUTA BARINGIN\"],\n [1202080012, 1202080, \"PINTU PADANG JAE\"],\n [1202080013, 1202080, \"SINONOAN\"],\n [1202080014, 1202080, \"AEK MUAL\"],\n [1202080015, 1202080, \"LUMBAN DOLOK\"],\n [1202080016, 1202080, \"TANGGA BOSI I\"],\n [1202080017, 1202080, \"HUTA GODANG MUDA\"],\n [1202080020, 1202080, \"MUARA BATANG ANGKOLA\"],\n [1202080021, 1202080, \"HURABA I\"],\n [1202080022, 1202080, \"SIMANINGGIR\"],\n [1202080023, 1202080, \"SIABU\"],\n [1202080024, 1202080, \"BONAN DOLOK\"],\n [1202080025, 1202080, \"LUMBAN PINASA\"],\n [1202080026, 1202080, \"SIMANGAMBAT\"],\n [1202080027, 1202080, \"HUTA PULI\"],\n [1202080028, 1202080, \"HUTA RAJA\"],\n [1202080029, 1202080, \"SIBARUANG\"],\n [1202080030, 1202080, \"SIHEPENG\"],\n [1202080031, 1202080, \"TANJUNG SIALANG\"],\n [1202080032, 1202080, \"TANGGA BOSI II\"],\n [1202080033, 1202080, \"TANGGA BOSI III\"],\n [1202080034, 1202080, \"HURABA II\"],\n [1202080036, 1202080, \"SIHEPENG SADA\"],\n [1202080037, 1202080, \"SIHEPENG DUA\"],\n [1202080038, 1202080, \"SIHEPENG TOLU\"],\n [1202080039, 1202080, \"SIHEPENG OPAT\"],\n [1202080040, 1202080, \"SIHEPENG LIMA\"],\n [1202081006, 1202081, \"JANJI MATOGU\"],\n [1202081007, 1202081, \"MALINTANG JULU\"],\n [1202081008, 1202081, \"MALINTANG JAE\"],\n [1202081009, 1202081, \"SIDOJADI\"],\n [1202081010, 1202081, \"BANGE\"],\n [1202081011, 1202081, \"HUTA BANGUN\"],\n [1202081012, 1202081, \"PASAR BARU MALINTANG\"],\n [1202081013, 1202081, \"MALINTANG\"],\n [1202081014, 1202081, \"LAMBOU DARUL IHSAN\"],\n [1202081015, 1202081, \"BANGE NAULI\"],\n [1202081016, 1202081, \"HUTA BANGUN JAE\"],\n [1202082001, 1202082, \"BANUA RAKYAT\"],\n [1202082002, 1202082, \"HUMBANG I\"],\n [1202082003, 1202082, \"SAYUR MATUA\"],\n [1202082004, 1202082, \"TARUTUNG PANJANG\"],\n [1202082005, 1202082, \"TAMBISKI\"],\n [1202082006, 1202082, \"SIMANOSOR\"],\n [1202082007, 1202082, \"TAMBISKI NAULI\"],\n [1203010056, 1203010, \"SORIK\"],\n [1203010057, 1203010, \"PADANG KAHOMBU\"],\n [1203010058, 1203010, \"HUTA PADANG\"],\n [1203010059, 1203010, \"SORI MADINGIN PP\"],\n [1203010061, 1203010, \"HURASE\"],\n [1203010069, 1203010, \"SIGULANG LOSUNG\"],\n [1203010075, 1203010, \"PASAR LAMA\"],\n [1203010076, 1203010, \"SIGALANGAN\"],\n [1203010079, 1203010, \"JANJI MANAON\"],\n [1203010081, 1203010, \"BARGOT TOPONG\"],\n [1203010083, 1203010, \"SIDADI II\"],\n [1203010084, 1203010, \"SIDADI I\"],\n [1203010087, 1203010, \"JANJI MAULI MT\"],\n [1203010088, 1203010, \"MUARA TAIS III\"],\n [1203010090, 1203010, \"PARGUMBANGAN\"],\n [1203010094, 1203010, \"PANGARIBUAN\"],\n [1203010099, 1203010, \"AEK NAULI\"],\n [1203010106, 1203010, \"MUARA TAIS I\"],\n [1203010107, 1203010, \"BINTUJU\"],\n [1203010108, 1203010, \"HUTA HOLBUNG\"],\n [1203010109, 1203010, \"MUARA TAIS II\"],\n [1203010110, 1203010, \"BASILAM BARU\"],\n [1203010111, 1203010, \"SIPANGKO\"],\n [1203010114, 1203010, \"BENTENG HURABA\"],\n [1203010115, 1203010, \"KELURAHAN PINTU PADANG I\"],\n [1203010116, 1203010, \"KELURAHAN PINTU PADANG II\"],\n [1203010117, 1203010, \"BANGUN PURBA\"],\n [1203010118, 1203010, \"SITAMPA\"],\n [1203010119, 1203010, \"PASIR MATOGU\"],\n [1203010120, 1203010, \"SIBULELE MUARA\"],\n [1203010121, 1203010, \"AEK GUNUNG\"],\n [1203010122, 1203010, \"SORIMANAON\"],\n [1203010123, 1203010, \"TATENGGER\"],\n [1203010124, 1203010, \"MUARA PURBA NAULI\"],\n [1203010125, 1203010, \"HUTA TONGA\"],\n [1203010126, 1203010, \"TAHALAK UJUNG GADING\"],\n [1203011031, 1203011, \"HUTA PARDOMUAN\"],\n [1203011032, 1203011, \"AEK BADAK JULU\"],\n [1203011033, 1203011, \"AEK BADAK JAE\"],\n [1203011038, 1203011, \"AEK LIBUNG\"],\n [1203011043, 1203011, \"BULU GADING\"],\n [1203011044, 1203011, \"BANGE\"],\n [1203011047, 1203011, \"TOLANG JAE\"],\n [1203011048, 1203011, \"MONDANG\"],\n [1203011049, 1203011, \"JANJI MAULI BARINGIN\"],\n [1203011050, 1203011, \"TOLANG JULU\"],\n [1203011051, 1203011, \"SIPANGE GODANG\"],\n [1203011052, 1203011, \"SIPANGE JULU\"],\n [1203011053, 1203011, \"SIALANG\"],\n [1203011058, 1203011, \"SOMANGGAL PARMONANGAN\"],\n [1203011059, 1203011, \"LUMBAN HUAYAN\"],\n [1203011060, 1203011, \"SAYUR MATINGGI\"],\n [1203011061, 1203011, \"SILAIYA\"],\n [1203011062, 1203011, \"SILAIYA TANJUNG LEUK\"],\n [1203011063, 1203011, \"SIPANGE SIUNJAM\"],\n [1203012001, 1203012, \"SIMANINGGIR\"],\n [1203012002, 1203012, \"KOTA TUA\"],\n [1203012003, 1203012, \"HAREAN\"],\n [1203012004, 1203012, \"LUMBAN RATUS\"],\n [1203012005, 1203012, \"SISOMA\"],\n [1203012006, 1203012, \"INGUL JAE\"],\n [1203012007, 1203012, \"LUMBAN JABI-JABI\"],\n [1203012008, 1203012, \"PURBATUA\"],\n [1203012009, 1203012, \"HUTARAJA\"],\n [1203012010, 1203012, \"PANABARI HUTA TONGA\"],\n [1203012011, 1203012, \"SITUMBA\"],\n [1203012012, 1203012, \"BATU HORPAK\"],\n [1203012013, 1203012, \"AEK KAHOMBU\"],\n [1203012014, 1203012, \"TANJUNG MEDAN\"],\n [1203012015, 1203012, \"AEK PARUPUK\"],\n [1203012016, 1203012, \"PANINDOAN\"],\n [1203012017, 1203012, \"AEK UNCIM\"],\n [1203070051, 1203070, \"PARGARUTAN JAE\"],\n [1203070054, 1203070, \"SIJUNGKANG\"],\n [1203070058, 1203070, \"HURABA\"],\n [1203070060, 1203070, \"HUTA GINJANG\"],\n [1203070067, 1203070, \"PARGARUTAN JULU\"],\n [1203070070, 1203070, \"PARGARUTAN TONGA\"],\n [1203070076, 1203070, \"PANOMPUAN JAE\"],\n [1203070080, 1203070, \"LANTOSAN ROGAS\"],\n [1203070094, 1203070, \"PASAR PARGARUTAN\"],\n [1203070095, 1203070, \"PARGARUTAN DOLOK\"],\n [1203070096, 1203070, \"PAL XI\"],\n [1203070097, 1203070, \"MARISI\"],\n [1203070098, 1203070, \"PANOMPUAN\"],\n [1203070099, 1203070, \"BATANG TURA SIRUMAMBE\"],\n [1203070100, 1203070, \"SANGGAPATI\"],\n [1203080001, 1203080, \"KELURAHAN PARDOMUAN\"],\n [1203080002, 1203080, \"SIHUIK KUIK\"],\n [1203080003, 1203080, \"AEK NATAS\"],\n [1203080004, 1203080, \"GUNUNG BARINGIN\"],\n [1203080005, 1203080, \"DOLOK GODANG\"],\n [1203080006, 1203080, \"KELURAHAN SIMARPINGGAN\"],\n [1203080007, 1203080, \"KELURAHAN TAPIAN NAULI\"],\n [1203080008, 1203080, \"TANDIHAT\"],\n [1203080009, 1203080, \"SIHOPUR\"],\n [1203080010, 1203080, \"PERK. SIMARPINGGAN\"],\n [1203080011, 1203080, \"SIAMPORIK DOLOK\"],\n [1203080012, 1203080, \"SIBONG BONG\"],\n [1203080013, 1203080, \"SIAMPORIK LOMBANG\"],\n [1203080014, 1203080, \"KELURAHAN NAPA\"],\n [1203080015, 1203080, \"PINTU PADANG\"],\n [1203080016, 1203080, \"SINYIOR\"],\n [1203080017, 1203080, \"SITUMBAGA\"],\n [1203090004, 1203090, \"SIUHOM\"],\n [1203090005, 1203090, \"SISUNDUNG\"],\n [1203090006, 1203090, \"PARSALAKAN\"],\n [1203090012, 1203090, \"SIALOGO\"],\n [1203090018, 1203090, \"LEMBAH LUBUK RAYA\"],\n [1203090019, 1203090, \"SITARA TOIT\"],\n [1203090020, 1203090, \"LOBU LAYAN SIGORDANG\"],\n [1203090021, 1203090, \"AEK NABARA\"],\n [1203090022, 1203090, \"SIBANGKUA\"],\n [1203090023, 1203090, \"SIGUMURU\"],\n [1203090024, 1203090, \"SITINJAK\"],\n [1203090025, 1203090, \"SIMATORKIS SISOMA\"],\n [1203090026, 1203090, \"PANOBASAN\"],\n [1203090027, 1203090, \"PANOBASAN LOMBANG\"],\n [1203091001, 1203091, \"MALOMBU\"],\n [1203091002, 1203091, \"RIANIATE\"],\n [1203091003, 1203091, \"SANGKUNUR\"],\n [1203091004, 1203091, \"TINDOAN LAUT\"],\n [1203091005, 1203091, \"SIMATANIARI\"],\n [1203091006, 1203091, \"BATU GODANG\"],\n [1203091007, 1203091, \"AEK PARDOMUAN\"],\n [1203091008, 1203091, \"BANDAR TARUTUNG\"],\n [1203091009, 1203091, \"PERKEBUNAN\"],\n [1203091010, 1203091, \"SIMATOHIR\"],\n [1203100001, 1203100, \"HAPESONG LAMA\"],\n [1203100002, 1203100, \"PERK HAPESONG\"],\n [1203100003, 1203100, \"PADANG LANCAT\"],\n [1203100009, 1203100, \"SIANGGUNAN\"],\n [1203100010, 1203100, \"HUTABARU\"],\n [1203100017, 1203100, \"SIPENGGENG\"],\n [1203100018, 1203100, \"HAPESONG BARU\"],\n [1203100019, 1203100, \"PERKEBUNAN SIGALA-GALA\"],\n [1203100025, 1203100, \"PERK BATANG TORU\"],\n [1203100026, 1203100, \"TELO\"],\n [1203100027, 1203100, \"WEK III BATANG TORU\"],\n [1203100028, 1203100, \"WEK II\"],\n [1203100029, 1203100, \"WEK I\"],\n [1203100035, 1203100, \"WEK IV BATANG TORU\"],\n [1203100036, 1203100, \"NAPA\"],\n [1203100037, 1203100, \"AEK PINING\"],\n [1203100038, 1203100, \"SUMURAN\"],\n [1203100058, 1203100, \"BATU HULA\"],\n [1203100061, 1203100, \"HUTA GODANG\"],\n [1203100062, 1203100, \"GAROGA\"],\n [1203100063, 1203100, \"BATU HORING\"],\n [1203100064, 1203100, \"AEK NGADOL NAULI\"],\n [1203100065, 1203100, \"SISIPA\"],\n [1203101031, 1203101, \"HURABA\"],\n [1203101041, 1203101, \"GUNUNG BINANGA\"],\n [1203101043, 1203101, \"MARANCAR GODANG\"],\n [1203101050, 1203101, \"SIMANINGGIR\"],\n [1203101051, 1203101, \"MARANCAR JULU\"],\n [1203101057, 1203101, \"HAU NATAS\"],\n [1203101066, 1203101, \"AEK NABARA\"],\n [1203101067, 1203101, \"GAPUK TUA\"],\n [1203101068, 1203101, \"PASAR SEMPURNA\"],\n [1203101069, 1203101, \"AEK SABAON\"],\n [1203101070, 1203101, \"SUGI\"],\n [1203101071, 1203101, \"TANJUNG DOLOK\"],\n [1203102001, 1203102, \"MUARA UPU\"],\n [1203102002, 1203102, \"BANDAR HAPINIS\"],\n [1203102003, 1203102, \"HUTA RAJA\"],\n [1203102004, 1203102, \"MUARA MANOMPAS\"],\n [1203102006, 1203102, \"PARDAMEAN\"],\n [1203102007, 1203102, \"TERAPUNG RAYA\"],\n [1203102008, 1203102, \"MUARA HUTA RAJA\"],\n [1203102009, 1203102, \"MUARA AMPOLU\"],\n [1203102010, 1203102, \"SIMARLELAN\"],\n [1203110005, 1203110, \"TOLANG\"],\n [1203110008, 1203110, \"JANJI MAULI\"],\n [1203110028, 1203110, \"BARINGIN\"],\n [1203110032, 1203110, \"PARAU SORAT\"],\n [1203110034, 1203110, \"SIALA GUNDI\"],\n [1203110036, 1203110, \"BARNANG KOLING\"],\n [1203110039, 1203110, \"PARGARUTAN\"],\n [1203110040, 1203110, \"PANAUNGAN\"],\n [1203110046, 1203110, \"PANGARIBUAN\"],\n [1203110055, 1203110, \"PADANG BUJUR\"],\n [1203110056, 1203110, \"SIMANINGGIR\"],\n [1203110057, 1203110, \"PARAN PADANG\"],\n [1203110059, 1203110, \"PASAR SIPIROK\"],\n [1203110062, 1203110, \"PANGURABAAN\"],\n [1203110066, 1203110, \"BAGAS LOMBANG\"],\n [1203110070, 1203110, \"PARAN JULU\"],\n [1203110071, 1203110, \"BULU MARIO\"],\n [1203110072, 1203110, \"BATU SATAIL\"],\n [1203110086, 1203110, \"RAMBA SIHASUR\"],\n [1203110093, 1203110, \"SIBADOAR\"],\n [1203110095, 1203110, \"HASANG MARSADA\"],\n [1203110097, 1203110, \"BUNGA BONDAR\"],\n [1203110099, 1203110, \"SAMPEAN\"],\n [1203110101, 1203110, \"SIALAMAN\"],\n [1203110102, 1203110, \"KILANG PAPAN\"],\n [1203110103, 1203110, \"SABA BATANG MIHA\"],\n [1203110104, 1203110, \"SITUMBA\"],\n [1203110105, 1203110, \"SITUMBA JULU\"],\n [1203110106, 1203110, \"BATANG TURA JULU\"],\n [1203110107, 1203110, \"BATANG TURA\"],\n [1203110108, 1203110, \"PARAN DOLOK MARDOMU\"],\n [1203110109, 1203110, \"SAROGODUNG\"],\n [1203110110, 1203110, \"DOLOK SORDANG\"],\n [1203110111, 1203110, \"DOLOK SORDANG JULU\"],\n [1203110112, 1203110, \"HUTA SUHUT\"],\n [1203110113, 1203110, \"SIPIROK GODANG\"],\n [1203110114, 1203110, \"AEK BATANG PAYA\"],\n [1203110115, 1203110, \"MARSADA\"],\n [1203110116, 1203110, \"LUAT LOMBANG\"],\n [1203110117, 1203110, \"PAHAE AEK SAGALA\"],\n [1203120031, 1203120, \"SIPOGU\"],\n [1203120032, 1203120, \"DALIHAN NATOLU\"],\n [1203120033, 1203120, \"PARDOMUAN\"],\n [1203120034, 1203120, \"ARSE NAULI\"],\n [1203120035, 1203120, \"PINAGAR\"],\n [1203120036, 1203120, \"NANGGAR JATI\"],\n [1203120037, 1203120, \"AEK HAMINJON\"],\n [1203120038, 1203120, \"NANGGAR JATI HUTA PADANG\"],\n [1203120039, 1203120, \"NATAMBANG RONCITAN\"],\n [1203120040, 1203120, \"LANCAT\"],\n [1203160115, 1203160, \"PINTU PADANG MANDALASENA\"],\n [1203160116, 1203160, \"SILANGKITANG TAMBISKI\"],\n [1203160117, 1203160, \"PARAU SORAT SITABO TABO\"],\n [1203160118, 1203160, \"SUNGE SIGIRING GIRING\"],\n [1203160119, 1203160, \"ULU MAMIS SITUNGGALING\"],\n [1203160120, 1203160, \"SIPAGIMBAR\"],\n [1203160121, 1203160, \"SIDAPDAP SIMANOSOR\"],\n [1203160122, 1203160, \"AEK SIMOTUNG\"],\n [1203160123, 1203160, \"SAUT BANUA SIMANOSOR\"],\n [1203160124, 1203160, \"BATANG PARSULUMAN\"],\n [1203160125, 1203160, \"DAMPARAN HAUNATAS\"],\n [1203160126, 1203160, \"SIMANGAMBAT\"],\n [1203160127, 1203160, \"SOMBA DEBATA PURBA\"],\n [1203160128, 1203160, \"PADANG MANDAILING GARUGUR\"],\n [1203161037, 1203161, \"TAPUS GODANG\"],\n [1203161045, 1203161, \"LOBUTAYAS\"],\n [1203161070, 1203161, \"SIGOLANG\"],\n [1203161071, 1203161, \"BIRU\"],\n [1203161080, 1203161, \"SIHULAMBU\"],\n [1203161091, 1203161, \"AEK URAT\"],\n [1203161092, 1203161, \"HUTA BARU\"],\n [1203161093, 1203161, \"AEK LATONG\"],\n [1203161094, 1203161, \"TAPUS SIPAGABU\"],\n [1203161095, 1203161, \"TOLANG\"],\n [1203161096, 1203161, \"SILANGKITANG\"],\n [1203161097, 1203161, \"GORAHUT\"],\n [1204010002, 1204010, \"PINANG SORI\"],\n [1204010003, 1204010, \"GUNUNG MARIJO\"],\n [1204010004, 1204010, \"SIHAPORAS\"],\n [1204010005, 1204010, \"SITONONG BANGUN\"],\n [1204010006, 1204010, \"TOGA BASIR\"],\n [1204010007, 1204010, \"PINANG BARU\"],\n [1204010008, 1204010, \"PARJALIHOTAN BARU\"],\n [1204010009, 1204010, \"DANAU PANDAN\"],\n [1204010010, 1204010, \"SORI NAULI\"],\n [1204010011, 1204010, \"ALBION PRANCIS\"],\n [1204011001, 1204011, \"SITARDAS\"],\n [1204011002, 1204011, \"JAGO-JAGO\"],\n [1204011003, 1204011, \"HUTABALANG\"],\n [1204011004, 1204011, \"LOPIAN\"],\n [1204011005, 1204011, \"AEK HORSIK\"],\n [1204011006, 1204011, \"KEBUN PISANG\"],\n [1204011007, 1204011, \"GUNUNG KELAMBU\"],\n [1204011008, 1204011, \"LUBUK AMPOLU\"],\n [1204011009, 1204011, \"PAGARAN HONAS\"],\n [1204020004, 1204020, \"MOMBANG BORU\"],\n [1204020005, 1204020, \"ANGGOLI\"],\n [1204020006, 1204020, \"SIBABANGUN\"],\n [1204020009, 1204020, \"SIMANOSOR\"],\n [1204020010, 1204020, \"MUARA SIBUNTUON\"],\n [1204020011, 1204020, \"SIBIO BIO\"],\n [1204020012, 1204020, \"HUTAGURGUR\"],\n [1204021001, 1204021, \"LUMUT\"],\n [1204021002, 1204021, \"LUMUT NAULI\"],\n [1204021003, 1204021, \"LUMUT MAJU\"],\n [1204021004, 1204021, \"AEK GAMBIR\"],\n [1204021005, 1204021, \"MASUNDUNG\"],\n [1204021006, 1204021, \"SIALOGO\"],\n [1204022001, 1204022, \"TEBING TINGGI\"],\n [1204022002, 1204022, \"PULO PAKAT II\"],\n [1204022003, 1204022, \"SIHAPAS\"],\n [1204022004, 1204022, \"PULO PAKAT\"],\n [1204022005, 1204022, \"JANJI MARIA\"],\n [1204022006, 1204022, \"SIHADATUON\"],\n [1204030001, 1204030, \"HAJORAN\"],\n [1204030010, 1204030, \"AEK TOLANG\"],\n [1204030011, 1204030, \"PANDAN\"],\n [1204030012, 1204030, \"SIBULUAN INDAH\"],\n [1204030013, 1204030, \"LUBUK TUKKO\"],\n [1204030015, 1204030, \"SIBULUAN NAULI\"],\n [1204030016, 1204030, \"AEK SITIO-TIO\"],\n [1204030017, 1204030, \"SIBULUAN RAYA\"],\n [1204030018, 1204030, \"KALANGAN\"],\n [1204030019, 1204030, \"PANDAN WANGI\"],\n [1204030020, 1204030, \"SIBULUAN TERPADU\"],\n [1204030021, 1204030, \"SITIO-TIO HILIR\"],\n [1204030022, 1204030, \"SIBULUAN BARU\"],\n [1204030023, 1204030, \"LUBUK TUKKO BARU\"],\n [1204030024, 1204030, \"SIHAPORAS NAULI\"],\n [1204030025, 1204030, \"PASAR BARU\"],\n [1204030026, 1204030, \"HAJORAN INDAH\"],\n [1204030027, 1204030, \"MUARA NIBUNG\"],\n [1204030028, 1204030, \"AEK GARUT\"],\n [1204030029, 1204030, \"BUDI LUHUR\"],\n [1204030030, 1204030, \"KALANGAN INDAH\"],\n [1204030031, 1204030, \"MANGGA DUA\"],\n [1204031001, 1204031, \"SIPANGE\"],\n [1204031002, 1204031, \"HUTANABOLON\"],\n [1204031003, 1204031, \"SIGIRING GIRING\"],\n [1204031004, 1204031, \"SAIT KALANGAN II\"],\n [1204031005, 1204031, \"AEK BONTAR\"],\n [1204031006, 1204031, \"TAPIAN NAULI/SAURMANGGITA\"],\n [1204031007, 1204031, \"BONALUMBAN\"],\n [1204031008, 1204031, \"TUKKA\"],\n [1204031009, 1204031, \"AEK TOLANG INDUK\"],\n [1204032001, 1204032, \"SIBULUAN NALAMBOK\"],\n [1204032002, 1204032, \"SIPAN\"],\n [1204032003, 1204032, \"SARUDIK\"],\n [1204032004, 1204032, \"PONDOK BATU\"],\n [1204032005, 1204032, \"PASIR BIDANG\"],\n [1204040001, 1204040, \"TAPIAN NAULI I\"],\n [1204040005, 1204040, \"MELA DOLOK\"],\n [1204040006, 1204040, \"ALOBAN\"],\n [1204040007, 1204040, \"TAPIAN NAULI III\"],\n [1204040008, 1204040, \"TAPIAN NAULI II\"],\n [1204040009, 1204040, \"TAPIAN NAULI IV\"],\n [1204040011, 1204040, \"MELA I\"],\n [1204040012, 1204040, \"MELA II\"],\n [1204040013, 1204040, \"BAIR\"],\n [1204041001, 1204041, \"BONAN DOLOK\"],\n [1204041002, 1204041, \"RAMPA\"],\n [1204041003, 1204041, \"MARDAME\"],\n [1204041004, 1204041, \"NAULI\"],\n [1204041005, 1204041, \"NAGA TIMBUL\"],\n [1204041006, 1204041, \"SIMANINGGIR\"],\n [1204050001, 1204050, \"UNTE MUNGKUR IV\"],\n [1204050003, 1204050, \"UNTE MUNGKUR III\"],\n [1204050004, 1204050, \"UNTE MUNGKUR II\"],\n [1204050006, 1204050, \"UNTE MUNGKUR I\"],\n [1204050007, 1204050, \"SATAHI NAULI\"],\n [1204050008, 1204050, \"HURLANG MUARA NAULI\"],\n [1204050009, 1204050, \"KOLANG NAULI\"],\n [1204050010, 1204050, \"PASAR ONAN HURLANG\"],\n [1204050011, 1204050, \"SIPAKPAHI AEK LOBU\"],\n [1204050012, 1204050, \"HUDOPA NAULI\"],\n [1204050013, 1204050, \"RAWA MAKMUR\"],\n [1204050014, 1204050, \"MAKARTI NAULI\"],\n [1204050015, 1204050, \"PARGARINGAN\"],\n [1204050016, 1204050, \"SIMARPINGGAN\"],\n [1204060002, 1204060, \"BOTOT\"],\n [1204060003, 1204060, \"SORKAM\"],\n [1204060004, 1204060, \"PARGARUTAN\"],\n [1204060005, 1204060, \"TARUTUNG BOLAK\"],\n [1204060006, 1204060, \"GONTING MAHE\"],\n [1204060009, 1204060, \"PARDAMEAN\"],\n [1204060010, 1204060, \"PELITA\"],\n [1204060011, 1204060, \"FAJAR\"],\n [1204060012, 1204060, \"PEARAJA\"],\n [1204060013, 1204060, \"NAI POS POS BARAT\"],\n [1204060021, 1204060, \"RIANIATE\"],\n [1204060023, 1204060, \"DOLOK PANTIS\"],\n [1204060024, 1204060, \"TELUK ROBAN\"],\n [1204060025, 1204060, \"SORKAM KIRI\"],\n [1204060026, 1204060, \"SORKAM TENGAH\"],\n [1204060027, 1204060, \"HITE URAT\"],\n [1204060028, 1204060, \"PAGARAN JULU\"],\n [1204060029, 1204060, \"PANANGGAHAN\"],\n [1204060030, 1204060, \"SIHAPAS\"],\n [1204060031, 1204060, \"NAULI\"],\n [1204060032, 1204060, \"MUARA NAULI\"],\n [1204061001, 1204061, \"MADUMA\"],\n [1204061002, 1204061, \"PAHIEME\"],\n [1204061003, 1204061, \"PASAR SORKAM\"],\n [1204061004, 1204061, \"SORKAM KANAN\"],\n [1204061005, 1204061, \"SIPEA PEA\"],\n [1204061006, 1204061, \"AEK RASO\"],\n [1204061007, 1204061, \"PASARIBU TOBING JAE\"],\n [1204061008, 1204061, \"PAHIEME II\"],\n [1204061009, 1204061, \"BINASI\"],\n [1204061010, 1204061, \"SIDIKALANG\"],\n [1204061011, 1204061, \"SORKAM KANAN\"],\n [1204061012, 1204061, \"MADANI\"],\n [1204062001, 1204062, \"SUGA-SUGA\"],\n [1204062002, 1204062, \"SUKA MAJU\"],\n [1204062003, 1204062, \"AEK NADUA\"],\n [1204062004, 1204062, \"PASARIBU TOBING\"],\n [1204062005, 1204062, \"MAKMUR\"],\n [1204062006, 1204062, \"SIMARGARAP\"],\n [1204062007, 1204062, \"SIDALING\"],\n [1204062008, 1204062, \"SIPAKPAHI\"],\n [1204062009, 1204062, \"PO SIMARGARAP\"],\n [1204070010, 1204070, \"BUKIT PATUPANGAN\"],\n [1204070011, 1204070, \"KEDAI GEDANG\"],\n [1204070012, 1204070, \"SIGAMBO GAMBO\"],\n [1204070013, 1204070, \"PADANG MASIANG\"],\n [1204070014, 1204070, \"KAMPUNG SOLOK\"],\n [1204070015, 1204070, \"PASAR BATU GERIGIS\"],\n [1204070016, 1204070, \"PASAR TERANDAM\"],\n [1204070017, 1204070, \"KINALI\"],\n [1204070018, 1204070, \"UJUNG BATU\"],\n [1204070019, 1204070, \"KAMPUNG MUDIK\"],\n [1204070020, 1204070, \"GABUNGAN HASANG\"],\n [1204070024, 1204070, \"AEK DAKKA\"],\n [1204070036, 1204070, \"BUNGO TANJUNG\"],\n [1204071001, 1204071, \"BARAMBANG\"],\n [1204071002, 1204071, \"SOSOR GADONG\"],\n [1204071003, 1204071, \"SIANTAR CA\"],\n [1204071004, 1204071, \"MUARA BOLAK\"],\n [1204071005, 1204071, \"SIANTAR DOLOK\"],\n [1204071006, 1204071, \"BARINGIN\"],\n [1204071007, 1204071, \"HUTA TOMBAK\"],\n [1204071008, 1204071, \"SIBINTANG\"],\n [1204071009, 1204071, \"UNTE BOANG\"],\n [1204072001, 1204072, \"LADANG TENGAH\"],\n [1204072002, 1204072, \"URATAN\"],\n [1204072003, 1204072, \"LOBU TUA\"],\n [1204072004, 1204072, \"BONDAR SIHUDON II\"],\n [1204072005, 1204072, \"BONDAR SIHUDON I\"],\n [1204072006, 1204072, \"RINA BOLAK\"],\n [1204072007, 1204072, \"SOSOR GONTING\"],\n [1204072008, 1204072, \"SIRAMI RAMIAN\"],\n [1204072009, 1204072, \"PANGARIBUAN\"],\n [1204072010, 1204072, \"SIJUNGKANG\"],\n [1204072011, 1204072, \"SOGAR\"],\n [1204072012, 1204072, \"SIGOLANG\"],\n [1204072013, 1204072, \"SITIRIS TIRIS\"],\n [1204072014, 1204072, \"SAWAH LAMO\"],\n [1204073001, 1204073, \"PANANGGAHAN\"],\n [1204073002, 1204073, \"PURBA TUA\"],\n [1204073003, 1204073, \"HUTAGINJANG\"],\n [1204073004, 1204073, \"SIHORBO\"],\n [1204073005, 1204073, \"PARIK SINOMBA\"],\n [1204073008, 1204073, \"SIHARBANGAN\"],\n [1204080008, 1204080, \"MANDUAMAS LAMA\"],\n [1204080009, 1204080, \"PASAR ONAN MANDUAMAS\"],\n [1204080011, 1204080, \"BINJOHARA\"],\n [1204080012, 1204080, \"PAGARAN NAULI\"],\n [1204080013, 1204080, \"SARMA NAULI\"],\n [1204080014, 1204080, \"SARAGIH\"],\n [1204080015, 1204080, \"TUMBA\"],\n [1204080016, 1204080, \"TUMBA JAE\"],\n [1204080017, 1204080, \"LAE MONONG\"],\n [1204080018, 1204080, \"MANDUAMAS BARU\"],\n [1204080019, 1204080, \"SARAGIH TIMUR\"],\n [1204080020, 1204080, \"SARAGIH BARAT\"],\n [1204080021, 1204080, \"BINJOHARA URUK\"],\n [1204080022, 1204080, \"BINJOHARA BARU\"],\n [1204080023, 1204080, \"TAMBAHAN NANJUR\"],\n [1204080024, 1204080, \"PARSIHOTANGAN\"],\n [1204080025, 1204080, \"TUMBA NAULI\"],\n [1204080026, 1204080, \"PERLUASAN\"],\n [1204080027, 1204080, \"MUARA TAPUS\"],\n [1204080028, 1204080, \"PAGARAN BARU\"],\n [1204081001, 1204081, \"SAMPANG MARUHUR\"],\n [1204081002, 1204081, \"SIORDANG\"],\n [1204081003, 1204081, \"PARDOMUAN\"],\n [1204081004, 1204081, \"SIMPANG III LAE BINGKE\"],\n [1204081005, 1204081, \"BAJAMAS\"],\n [1204081006, 1204081, \"MASNAULI\"],\n [1204081007, 1204081, \"SIGODUNG\"],\n [1204081008, 1204081, \"MUARA ORE\"],\n [1205030001, 1205030, \"MANALU PURBA\"],\n [1205030002, 1205030, \"MANALU DOLOK\"],\n [1205030003, 1205030, \"MANALU\"],\n [1205030004, 1205030, \"HUTA JULU\"],\n [1205030005, 1205030, \"AEK RAJA\"],\n [1205030006, 1205030, \"HUTA TINGGI\"],\n [1205030007, 1205030, \"LOBU SUNUT\"],\n [1205030008, 1205030, \"SISORDAK\"],\n [1205030009, 1205030, \"HUTATUA\"],\n [1205030010, 1205030, \"PERTENGAHAN\"],\n [1205030011, 1205030, \"HUTAJULU PARBALIK\"],\n [1205030012, 1205030, \"HORISAN RANGGITGIT\"],\n [1205030013, 1205030, \"PURBA DOLOK\"],\n [1205030014, 1205030, \"BATUARIMO\"],\n [1205040001, 1205040, \"PAGARAN LAMBUNG I\"],\n [1205040002, 1205040, \"SIBALANGA\"],\n [1205040003, 1205040, \"PAGARAN LAMBUNG II\"],\n [1205040004, 1205040, \"PAGARAN LAMBUNG III\"],\n [1205040005, 1205040, \"PAGARAN PISANG\"],\n [1205040006, 1205040, \"ADIANKOTING\"],\n [1205040007, 1205040, \"DOLOK NAULI\"],\n [1205040008, 1205040, \"BANUAJI IV\"],\n [1205040009, 1205040, \"BANUAJI I\"],\n [1205040010, 1205040, \"BANUAJI II\"],\n [1205040011, 1205040, \"PANSUR BATU\"],\n [1205040012, 1205040, \"PARDOMUAN NAULI\"],\n [1205040013, 1205040, \"SIANTAR NAI POSPOS\"],\n [1205040014, 1205040, \"PAGARAN LAMBUNG IV\"],\n [1205040015, 1205040, \"PANSUR BATU II\"],\n [1205040016, 1205040, \"PANSUR BATU I\"],\n [1205050001, 1205050, \"RURA JULU TORUAN\"],\n [1205050002, 1205050, \"RURA JULU DOLOK\"],\n [1205050003, 1205050, \"SIMANUNGKALIT\"],\n [1205050004, 1205050, \"HUTAURUK\"],\n [1205050005, 1205050, \"SITUMEANG HABINSARAN\"],\n [1205050006, 1205050, \"SITUMEANG HASUNDUTAN\"],\n [1205050007, 1205050, \"LOBUSINGKAM\"],\n [1205050008, 1205050, \"PAGAR BATU\"],\n [1205050009, 1205050, \"SIPAHUTAR\"],\n [1205050010, 1205050, \"HUTA RAJA\"],\n [1205050011, 1205050, \"TAPIAN NAULI\"],\n [1205050012, 1205050, \"HUTA RAJA HASUNDUTAN\"],\n [1205050013, 1205050, \"HUTA RAJA SIMANUNGKALIT\"],\n [1205050014, 1205050, \"HUTAURUK HASUNDUTAN\"],\n [1205060001, 1205060, \"SIANDOR ANDOR\"],\n [1205060002, 1205060, \"HUTAPEA BANUAREA\"],\n [1205060008, 1205060, \"PARBUBU PEA\"],\n [1205060009, 1205060, \"PARBUBU II\"],\n [1205060010, 1205060, \"PARBUBU DOLOK\"],\n [1205060011, 1205060, \"HUTA TORUAN VIII\"],\n [1205060012, 1205060, \"PARBUBU I\"],\n [1205060013, 1205060, \"HUTATORUAN I\"],\n [1205060019, 1205060, \"SOSUNGGULON\"],\n [1205060020, 1205060, \"PARBAJU TORUAN\"],\n [1205060021, 1205060, \"HAPOLTAHAN\"],\n [1205060022, 1205060, \"HUTA TORUAN IV\"],\n [1205060023, 1205060, \"AEK SIAN SIMUN\"],\n [1205060024, 1205060, \"HUTA TORUAN V\"],\n [1205060025, 1205060, \"HUTA TORUAN VI\"],\n [1205060026, 1205060, \"HUTA TORUAN XI\"],\n [1205060027, 1205060, \"HUTA TORUAN IX\"],\n [1205060028, 1205060, \"HUTA TORUAN X\"],\n [1205060029, 1205060, \"HUTA TORUAN VII\"],\n [1205060030, 1205060, \"PARTALI TORUAN\"],\n [1205060033, 1205060, \"PARBAJU TONGA\"],\n [1205060034, 1205060, \"SIMAMORA\"],\n [1205060035, 1205060, \"HUTAGALUNG SIWALUOMPU\"],\n [1205060036, 1205060, \"SIRAJA OLOAN\"],\n [1205060037, 1205060, \"HUTAURUK\"],\n [1205060038, 1205060, \"PARBAJU JULU\"],\n [1205060039, 1205060, \"PARTALI JULU\"],\n [1205060040, 1205060, \"SITAMPURUNG\"],\n [1205060041, 1205060, \"JAMBUR NAULI\"],\n [1205060042, 1205060, \"SIHUJUR\"],\n [1205060043, 1205060, \"HUTATORUAN III\"],\n [1205061001, 1205061, \"PANSUR NAPITU\"],\n [1205061002, 1205061, \"LOBUHOLE\"],\n [1205061003, 1205061, \"SITOMPUL\"],\n [1205061004, 1205061, \"SANGKARAN\"],\n [1205061005, 1205061, \"ENDA PORTIBI\"],\n [1205061006, 1205061, \"SI RAJA HUTAGALUNG\"],\n [1205061007, 1205061, \"LUMBAN SIAGIAN JAE\"],\n [1205061008, 1205061, \"LUMBAN SIAGIAN JULU\"],\n [1205061009, 1205061, \"SIMORANGKIR HABINSARAN\"],\n [1205061010, 1205061, \"SIMORANGKIR JULU\"],\n [1205061011, 1205061, \"SIMANAMPANG\"],\n [1205061012, 1205061, \"SIDAGAL\"],\n [1205070001, 1205070, \"PANGURDOTAN\"],\n [1205070002, 1205070, \"LUMBAN GAOL\"],\n [1205070003, 1205070, \"LUMBAN TONGA\"],\n [1205070004, 1205070, \"SITOLU AMA\"],\n [1205070005, 1205070, \"SIMANAMPANG\"],\n [1205070006, 1205070, \"LOBU PINING\"],\n [1205070007, 1205070, \"HUTA BARAT\"],\n [1205070008, 1205070, \"LUMBAN DOLOK\"],\n [1205070009, 1205070, \"SIMARDANGIANG\"],\n [1205070010, 1205070, \"SIBAGANDING\"],\n [1205070011, 1205070, \"LUMBAN GARAGA\"],\n [1205070012, 1205070, \"JANJI MATOGU\"],\n [1205070013, 1205070, \"LUMBAN JAEAN\"],\n [1205070014, 1205070, \"ONAN HASANG\"],\n [1205070015, 1205070, \"PANTIS\"],\n [1205070016, 1205070, \"LONTUNG DOLOK\"],\n [1205070017, 1205070, \"SIMATANIARI\"],\n [1205070018, 1205070, \"SIMASOM TORUAN\"],\n [1205070019, 1205070, \"SIMASOM\"],\n [1205080013, 1205080, \"SUKAMAJU\"],\n [1205080019, 1205080, \"SITOLU OMPU\"],\n [1205080020, 1205080, \"SIOPAT BAHAL\"],\n [1205080021, 1205080, \"PASAR SARULLA\"],\n [1205080022, 1205080, \"NAHORNOP MARSADA\"],\n [1205080023, 1205080, \"SETIA\"],\n [1205080025, 1205080, \"PARSAORAN SAMOSIR\"],\n [1205080026, 1205080, \"PARDOMUAN NAINGGOLAN\"],\n [1205080027, 1205080, \"PARSAORAN NAINGGOLAN\"],\n [1205080028, 1205080, \"PARDAMEAN NAINGGOLAN\"],\n [1205080029, 1205080, \"SIGURUNG GURUNG\"],\n [1205080030, 1205080, \"SILANGKITANG\"],\n [1205080031, 1205080, \"TORDOLOK NAULI\"],\n [1205081001, 1205081, \"BONANI DOLOK\"],\n [1205081002, 1205081, \"SELAMAT\"],\n [1205081003, 1205081, \"PURBATUA\"],\n [1205081004, 1205081, \"PARDOMUAN JANJI ANGKOLA\"],\n [1205081005, 1205081, \"PARSAORAN JANJI ANGKOLA\"],\n [1205081006, 1205081, \"JANJI NAULI\"],\n [1205081007, 1205081, \"SITOLU BAHAL\"],\n [1205081008, 1205081, \"ROBEAN\"],\n [1205081009, 1205081, \"HUTA NAGODANG\"],\n [1205081010, 1205081, \"SIDUA BAHAL\"],\n [1205081011, 1205081, \"SIBULAN BULAN\"],\n [1205082001, 1205082, \"SILOSUNG\"],\n [1205082002, 1205082, \"SIMANGUMBAN JAE\"],\n [1205082003, 1205082, \"DOLOK SANGGUL\"],\n [1205082004, 1205082, \"AEK NABARA\"],\n [1205082005, 1205082, \"SIMANGUMBAN JULU\"],\n [1205082006, 1205082, \"LOBU SIHIM\"],\n [1205082007, 1205082, \"DOLOK SAUT\"],\n [1205082008, 1205082, \"PARDOMUAN\"],\n [1205090001, 1205090, \"PARLOMBUAN\"],\n [1205090002, 1205090, \"LUMBAN SINAGA\"],\n [1205090003, 1205090, \"PANSUR NATOLU\"],\n [1205090004, 1205090, \"SILANTOM JULU\"],\n [1205090005, 1205090, \"SILANTOM TONGA\"],\n [1205090006, 1205090, \"RAHUT BOSI\"],\n [1205090007, 1205090, \"BATUNA DUA\"],\n [1205090008, 1205090, \"SAMPAGUL\"],\n [1205090009, 1205090, \"HARIANJA\"],\n [1205090010, 1205090, \"BATU MANUMPAK\"],\n [1205090011, 1205090, \"PARSI BARUNGAN\"],\n [1205090012, 1205090, \"PAKPAHAN\"],\n [1205090013, 1205090, \"NAJUMAMBE\"],\n [1205090014, 1205090, \"PURBATUA\"],\n [1205090015, 1205090, \"LUMBAN SORMIN\"],\n [1205090016, 1205090, \"SIBINGKE\"],\n [1205090017, 1205090, \"GODUNG BOROTAN\"],\n [1205090018, 1205090, \"PARRATUSAN\"],\n [1205090019, 1205090, \"SIGOTOM JULU\"],\n [1205090020, 1205090, \"PARSORMINAN I\"],\n [1205090021, 1205090, \"SILANTOM JAE\"],\n [1205090022, 1205090, \"PADANG PARSADAAN\"],\n [1205090023, 1205090, \"RAHUT BOSI ONAN\"],\n [1205090024, 1205090, \"HUTARAJA\"],\n [1205090025, 1205090, \"SIGOTOM TIMUR\"],\n [1205090026, 1205090, \"SIGOTOM DOLOK NAULI\"],\n [1205100001, 1205100, \"SIBAGANDING\"],\n [1205100002, 1205100, \"PADANG SIANDOMANG\"],\n [1205100003, 1205100, \"PARINSORAN PANGORIAN\"],\n [1205100004, 1205100, \"AEK TANGGA\"],\n [1205100005, 1205100, \"SIMPANG BOLON\"],\n [1205100006, 1205100, \"GAROGA SIBARGOT\"],\n [1205100007, 1205100, \"GONTING GAROGA\"],\n [1205100008, 1205100, \"SIBALANGA\"],\n [1205100009, 1205100, \"PARSOSORAN\"],\n [1205100010, 1205100, \"LONTUNG JAE I\"],\n [1205100011, 1205100, \"LONTUNG JAE II\"],\n [1205100012, 1205100, \"GONTING SALAK\"],\n [1205100013, 1205100, \"PARMANUHAN\"],\n [1205110001, 1205110, \"ONAN RUNGGU I\"],\n [1205110002, 1205110, \"SIPAHUTAR III\"],\n [1205110003, 1205110, \"SIABAL ABAL I\"],\n [1205110004, 1205110, \"SIABAL ABAL II\"],\n [1205110005, 1205110, \"AEK NAULI II\"],\n [1205110006, 1205110, \"AEK NAULI III\"],\n [1205110007, 1205110, \"AEK NAULI I\"],\n [1205110008, 1205110, \"SABUNGAN NIHUTA V\"],\n [1205110009, 1205110, \"SIABAL ABAL III\"],\n [1205110010, 1205110, \"SIPAHUTAR II\"],\n [1205110011, 1205110, \"SIPAHUTAR I\"],\n [1205110012, 1205110, \"ONAN RUNGGU III\"],\n [1205110013, 1205110, \"ONAN RUNGGU II\"],\n [1205110014, 1205110, \"ONAN RUNGGU IV\"],\n [1205110015, 1205110, \"SABUNGAN NIHUTA I\"],\n [1205110016, 1205110, \"SABUNGAN NIHUTA II\"],\n [1205110017, 1205110, \"SABUNGAN NIHUTA III\"],\n [1205110018, 1205110, \"SABUNGAN NIHUTA IV\"],\n [1205110019, 1205110, \"TAPIAN NAULI II\"],\n [1205110020, 1205110, \"TAPIAN NAULI III\"],\n [1205110021, 1205110, \"TAPIAN NAULI I\"],\n [1205110022, 1205110, \"SIABAL ABAL IV\"],\n [1205110023, 1205110, \"AEK NAULI IV\"],\n [1205110024, 1205110, \"SIABAL-ABAL VI\"],\n [1205110025, 1205110, \"SIABAL-ABAL V\"],\n [1205120001, 1205120, \"LUMBAN TONGA TONGA\"],\n [1205120002, 1205120, \"PANIARAN\"],\n [1205120003, 1205120, \"BAHAL BATU III\"],\n [1205120004, 1205120, \"BAHAL BATU II\"],\n [1205120005, 1205120, \"BAHAL BATU I\"],\n [1205120006, 1205120, \"SITABO-TABO\"],\n [1205120007, 1205120, \"SIBORONG-BORONG I\"],\n [1205120008, 1205120, \"SIARO\"],\n [1205120009, 1205120, \"SITAMPURUNG\"],\n [1205120010, 1205120, \"PASAR SIBORONG-BORONG\"],\n [1205120011, 1205120, \"POHAN TONGA\"],\n [1205120012, 1205120, \"LOBU SIREGAR II\"],\n [1205120013, 1205120, \"HUTABULU\"],\n [1205120014, 1205120, \"LOBU SIREGAR I\"],\n [1205120015, 1205120, \"POHAN JAE\"],\n [1205120016, 1205120, \"POHAN JULU\"],\n [1205120017, 1205120, \"PARIK SABUNGAN\"],\n [1205120018, 1205120, \"SIBORONG-BORONG II\"],\n [1205120019, 1205120, \"SIGUMBANG\"],\n [1205120020, 1205120, \"SITABOTABO TORUAN\"],\n [1205120021, 1205120, \"SILAIT-LAIT\"],\n [1205130001, 1205130, \"SIBARAGAS\"],\n [1205130002, 1205130, \"LUMBAN MOTUNG\"],\n [1205130003, 1205130, \"BANUA LUHU\"],\n [1205130004, 1205130, \"LUMBAN JULU\"],\n [1205130005, 1205130, \"LUBIS\"],\n [1205130006, 1205130, \"LUMBAN INA INA\"],\n [1205130007, 1205130, \"PAGARAN\"],\n [1205130008, 1205130, \"PARHORBOAN\"],\n [1205130009, 1205130, \"SIPULTAK\"],\n [1205130010, 1205130, \"DOLOK SARIBU\"],\n [1205130011, 1205130, \"LUMBAN SILINTONG\"],\n [1205130012, 1205130, \"SIMAMORA HASIBUAN\"],\n [1205130013, 1205130, \"SIPULTAK DOLOK\"],\n [1205130014, 1205130, \"HASIBUAN\"],\n [1205180007, 1205180, \"HUTA LONTUNG\"],\n [1205180008, 1205180, \"BARIBA NIAEK\"],\n [1205180009, 1205180, \"SILALI TORUAN\"],\n [1205180010, 1205180, \"HUTANA GODANG\"],\n [1205180011, 1205180, \"UNTE MUNGKUR\"],\n [1205180012, 1205180, \"BATU BINUMBUN\"],\n [1205180013, 1205180, \"SIMATUPANG\"],\n [1205180014, 1205180, \"ARITONANG\"],\n [1205180015, 1205180, \"DOLOK MARTUMBUR\"],\n [1205180016, 1205180, \"SITANGGOR\"],\n [1205180017, 1205180, \"HUTA GINJANG\"],\n [1205180018, 1205180, \"SILANDO\"],\n [1205180019, 1205180, \"PAPANDE\"],\n [1205180020, 1205180, \"SIBANDANG\"],\n [1205180021, 1205180, \"SAMPURAN\"],\n [1206030004, 1206030, \"AEK BOLON JULU\"],\n [1206030005, 1206030, \"AEK BOLON JAE\"],\n [1206030006, 1206030, \"SIBORUON\"],\n [1206030007, 1206030, \"HUTAGAOL PEATALUM\"],\n [1206030008, 1206030, \"BONAN DOLOK II\"],\n [1206030009, 1206030, \"HUTA NAMORA\"],\n [1206030010, 1206030, \"HUTA DAME\"],\n [1206030011, 1206030, \"BONAN DOLOK I\"],\n [1206030012, 1206030, \"BONAN DOLOK III\"],\n [1206030013, 1206030, \"SIBUNTUON\"],\n [1206030014, 1206030, \"LUMBAN GORAT\"],\n [1206030015, 1206030, \"SIANIPAR SIHAIL HAIL\"],\n [1206030016, 1206030, \"SILALAHI PAGAR BATU\"],\n [1206030017, 1206030, \"HINALANG BAGASAN\"],\n [1206030018, 1206030, \"SANGKAR NIHUTA\"],\n [1206030019, 1206030, \"PARDEDE ONAN\"],\n [1206030020, 1206030, \"NAPITUPULU BAGASAN\"],\n [1206030021, 1206030, \"BALIGE III\"],\n [1206030022, 1206030, \"BALIGE II\"],\n [1206030023, 1206030, \"PAINDOAN\"],\n [1206030024, 1206030, \"PARSURATAN\"],\n [1206030025, 1206030, \"HUTA BULU MEJAN\"],\n [1206030026, 1206030, \"SARIBURAJA JANJI MARIA\"],\n [1206030027, 1206030, \"BARU ARA\"],\n [1206030028, 1206030, \"MATIO\"],\n [1206030029, 1206030, \"LUMBAN PEA\"],\n [1206030030, 1206030, \"LUMBAN GAOL\"],\n [1206030031, 1206030, \"SIBOLA HOTANGSAS\"],\n [1206030032, 1206030, \"LUMBAN BUL BUL\"],\n [1206030033, 1206030, \"BALIGE I\"],\n [1206030034, 1206030, \"LUMBAN DOLOK\"],\n [1206030035, 1206030, \"LONGAT\"],\n [1206030037, 1206030, \"LUMBAN SILINTONG\"],\n [1206030038, 1206030, \"LUMBAN PEA TIMUR\"],\n [1206030039, 1206030, \"TAMBUNAN SUNGE\"],\n [1206031001, 1206031, \"TANGGA BATU BARAT\"],\n [1206031002, 1206031, \"TANGGA BATU TIMUR\"],\n [1206031003, 1206031, \"GURGUR AEK RAJA\"],\n [1206031004, 1206031, \"LINTONG NIHUTA\"],\n [1206031005, 1206031, \"TARA BUNGA\"],\n [1206031006, 1206031, \"M E A T\"],\n [1206040001, 1206040, \"HAUNATAS I\"],\n [1206040002, 1206040, \"SINTONG MARNIPI\"],\n [1206040003, 1206040, \"SIDULANG\"],\n [1206040004, 1206040, \"HAUNATAS II\"],\n [1206040005, 1206040, \"SIBARANI NASAMPULU\"],\n [1206040006, 1206040, \"SITANGKOLA\"],\n [1206040007, 1206040, \"SIBUEA\"],\n [1206040008, 1206040, \"SIMATIBUNG\"],\n [1206040009, 1206040, \"PARDOMUAN NAULI\"],\n [1206040010, 1206040, \"UJUNG TANDUK\"],\n [1206040011, 1206040, \"PINTU BOSI\"],\n [1206040012, 1206040, \"GASA RIBU\"],\n [1206040013, 1206040, \"PASAR LAGU BOTI\"],\n [1206040014, 1206040, \"ARUAN\"],\n [1206040015, 1206040, \"LUMBAN BAGASAN\"],\n [1206040016, 1206040, \"TINGGIR NIPASIR\"],\n [1206040017, 1206040, \"OMPU RAJA HUTAPEA\"],\n [1206040018, 1206040, \"SITOLUAMA\"],\n [1206040019, 1206040, \"PARDINGGARAN\"],\n [1206040020, 1206040, \"LUMBAN BINANGA\"],\n [1206040021, 1206040, \"SIRAJA GORAT\"],\n [1206040022, 1206040, \"OMPU RAJA HUTAPEA TIMUR\"],\n [1206040023, 1206040, \"OMPU RAJA HATULIAN\"],\n [1206050004, 1206050, \"LUMBAN RAU BARAT\"],\n [1206050005, 1206050, \"LUMBAN RAU SELATAN\"],\n [1206050009, 1206050, \"PARSOBURAN TENGAH\"],\n [1206050010, 1206050, \"PARSOBURAN BARAT\"],\n [1206050011, 1206050, \"LUMBAN BALIK\"],\n [1206050012, 1206050, \"LUMBAN PINASA\"],\n [1206050013, 1206050, \"PANAMPARAN\"],\n [1206050014, 1206050, \"LUMBAN RUHAP\"],\n [1206050015, 1206050, \"LUMBAN PEA\"],\n [1206050016, 1206050, \"HITETANO\"],\n [1206050018, 1206050, \"LOBU HOLE\"],\n [1206050019, 1206050, \"BATU NABOLON\"],\n [1206050020, 1206050, \"LUMBAN GAOL\"],\n [1206050021, 1206050, \"TORNAGODANG\"],\n [1206050022, 1206050, \"TAONMARISI\"],\n [1206050023, 1206050, \"PAGAR BATU\"],\n [1206050024, 1206050, \"SIBUNTUON\"],\n [1206050025, 1206050, \"AEK ULOK\"],\n [1206050026, 1206050, \"PANGUJUNGAN\"],\n [1206050027, 1206050, \"LUMBAN PINASA SAROHA\"],\n [1206050028, 1206050, \"LUMBAN LINTONG\"],\n [1206050029, 1206050, \"PARARUNGAN\"],\n [1206051001, 1206051, \"PANGURURAN\"],\n [1206051002, 1206051, \"PARDOMUAN NAULI\"],\n [1206051003, 1206051, \"LINTONG\"],\n [1206051004, 1206051, \"NATUMINGKA\"],\n [1206051005, 1206051, \"RIANIATE\"],\n [1206051006, 1206051, \"AEK UNSIN\"],\n [1206051007, 1206051, \"PURBA TUA\"],\n [1206051008, 1206051, \"JANJI MARIA\"],\n [1206051009, 1206051, \"PANGURURAN II\"],\n [1206051010, 1206051, \"PANGURURAN III\"],\n [1206051011, 1206051, \"RIGANJANG\"],\n [1206051012, 1206051, \"PASAR BORBOR\"],\n [1206051013, 1206051, \"LUMBAN SEWA\"],\n [1206051014, 1206051, \"HUTA GURGUR\"],\n [1206051015, 1206051, \"SIMARE\"],\n [1206052001, 1206052, \"LUMBAN RAU TENGAH\"],\n [1206052002, 1206052, \"LUMBAN RAU TIMUR\"],\n [1206052003, 1206052, \"LUMBAN RAU UTARA\"],\n [1206052004, 1206052, \"NAPAJORING\"],\n [1206052005, 1206052, \"SIPAGABU\"],\n [1206052006, 1206052, \"LIAT TONDUNG\"],\n [1206052007, 1206052, \"BATU MANUMPAK\"],\n [1206052008, 1206052, \"LUMBAN RAU TENGGARA\"],\n [1206052009, 1206052, \"CINTA DAMAI\"],\n [1206052010, 1206052, \"SIANTARASA\"],\n [1206060001, 1206060, \"PINTU BATU\"],\n [1206060002, 1206060, \"PARDOMUAN\"],\n [1206060003, 1206060, \"OMBUR\"],\n [1206060004, 1206060, \"PARSAMBILAN\"],\n [1206060005, 1206060, \"SIGODANG TUA\"],\n [1206060006, 1206060, \"SINTA DAME\"],\n [1206060007, 1206060, \"NATOLUTALI\"],\n [1206060008, 1206060, \"DALIHAN NATOLU\"],\n [1206060009, 1206060, \"HUTA GURGUR II\"],\n [1206060010, 1206060, \"HUTA GURGUR I\"],\n [1206060011, 1206060, \"SITORANG I\"],\n [1206060012, 1206060, \"HUTA NAMORA\"],\n [1206060021, 1206060, \"SILAEN\"],\n [1206060022, 1206060, \"LUMBAN DOLOK\"],\n [1206060023, 1206060, \"NAPITUPULU\"],\n [1206060024, 1206060, \"HUTAGAOL SIHUJUR\"],\n [1206060025, 1206060, \"SIBIDE BARAT\"],\n [1206060026, 1206060, \"SIBIDE\"],\n [1206060027, 1206060, \"MERANTI BARAT\"],\n [1206060028, 1206060, \"SIMANOBAK\"],\n [1206060029, 1206060, \"MARBULANG\"],\n [1206060030, 1206060, \"SIRINGKIRON\"],\n [1206060031, 1206060, \"PANINDII\"],\n [1206061001, 1206061, \"SIGUMPAR DANGSINA\"],\n [1206061002, 1206061, \"DOLOK JIOR\"],\n [1206061003, 1206061, \"SIGUMPAR\"],\n [1206061004, 1206061, \"SIGUMPAR JULU\"],\n [1206061005, 1206061, \"MAJU\"],\n [1206061006, 1206061, \"MARSANGAP\"],\n [1206061007, 1206061, \"NAULI\"],\n [1206061008, 1206061, \"SITUA-TUA\"],\n [1206061009, 1206061, \"SIGUMPAR BARAT\"],\n [1206061010, 1206061, \"BANUA HUTA\"],\n [1206070010, 1206070, \"PARPAREAN I\"],\n [1206070011, 1206070, \"PARPAREAN II\"],\n [1206070012, 1206070, \"PARPAREAN III\"],\n [1206070013, 1206070, \"PARPAREAN IV\"],\n [1206070014, 1206070, \"GALA GALA PANGKAILAN\"],\n [1206070026, 1206070, \"PASAR PORSEA\"],\n [1206070027, 1206070, \"PATANE III\"],\n [1206070028, 1206070, \"PATANE IV\"],\n [1206070029, 1206070, \"PATANE II\"],\n [1206070030, 1206070, \"PATANE I\"],\n [1206070032, 1206070, \"AMBORGANG\"],\n [1206070033, 1206070, \"NALELA\"],\n [1206070034, 1206070, \"SILAMOSIK I\"],\n [1206070037, 1206070, \"LUMBAN GURNING\"],\n [1206070038, 1206070, \"PATANE V\"],\n [1206070039, 1206070, \"RAUT BOSI\"],\n [1206070040, 1206070, \"SIMPANG SIGURAGURA\"],\n [1206071001, 1206071, \"AMBAR HALIM\"],\n [1206071002, 1206071, \"PINTU POHAN DOLOK\"],\n [1206071003, 1206071, \"PINTU POHAN PASAR\"],\n [1206071004, 1206071, \"HALADO\"],\n [1206071008, 1206071, \"MERANTI TIMUR\"],\n [1206071009, 1206071, \"MERANTI TENGAH\"],\n [1206071010, 1206071, \"MERANTI UTARA\"],\n [1206072001, 1206072, \"NARUMONDA V\"],\n [1206072002, 1206072, \"NARUMONDA VI\"],\n [1206072003, 1206072, \"NARUMONDA VII\"],\n [1206072004, 1206072, \"NARUMONDA VIII\"],\n [1206072005, 1206072, \"SIANTAR SITIOTIO\"],\n [1206072006, 1206072, \"NARUMONDA I\"],\n [1206072007, 1206072, \"NARUMONDA II\"],\n [1206072008, 1206072, \"NARUMONDA III\"],\n [1206072009, 1206072, \"NARUMONDA IV\"],\n [1206072010, 1206072, \"SIANTAR TONGA TONGA II\"],\n [1206072011, 1206072, \"SIANTAR DANGSINA\"],\n [1206072012, 1206072, \"SIANTAR TONGA TONGA I\"],\n [1206072013, 1206072, \"SIANTAR SIGORDANG\"],\n [1206072014, 1206072, \"SIANTAR TONGA TONGA III\"],\n [1206073001, 1206073, \"SIANTAR UTARA\"],\n [1206073002, 1206073, \"DOLOK NAULI\"],\n [1206073003, 1206073, \"JONGGI MANULUS\"],\n [1206073004, 1206073, \"BANJAR GANJANG\"],\n [1206073005, 1206073, \"PANGOMBUSAN\"],\n [1206073006, 1206073, \"LUMBAN SITORUS\"],\n [1206073007, 1206073, \"BIUS GU BARAT\"],\n [1206073008, 1206073, \"LUMBAN HUALA\"],\n [1206073009, 1206073, \"TANGGA BATU II\"],\n [1206073010, 1206073, \"TANGGA BATU I\"],\n [1206073011, 1206073, \"LUMBAN MANURUNG\"],\n [1206080018, 1206080, \"SIBARUANG\"],\n [1206080025, 1206080, \"JANGGA TORUAN\"],\n [1206080026, 1206080, \"JANGGA DOLOK\"],\n [1206080027, 1206080, \"HATINGGIAN\"],\n [1206080028, 1206080, \"LINTONG JULU\"],\n [1206080029, 1206080, \"PASAR LUMBAN JULU\"],\n [1206080030, 1206080, \"SIONGGANG UTARA\"],\n [1206080031, 1206080, \"SIONGGANG TENGAH\"],\n [1206080032, 1206080, \"SIONGGANG SELATAN\"],\n [1206080033, 1206080, \"HUTANAMORA\"],\n [1206080034, 1206080, \"JONGGI NIHUTA\"],\n [1206080035, 1206080, \"AEK NATOLU JAYA\"],\n [1206081001, 1206081, \"SIREGAR AEK NALAS\"],\n [1206081002, 1206081, \"SIGAOL BARAT\"],\n [1206081003, 1206081, \"SIGAOL TIMUR\"],\n [1206081004, 1206081, \"MAROM\"],\n [1206081005, 1206081, \"SIBUNTUON\"],\n [1206081006, 1206081, \"DOLOK SARIBU JANJI MATOGU\"],\n [1206081007, 1206081, \"PARTOR JANJI MATOGU\"],\n [1206081008, 1206081, \"PARBAGASAN JANJI MATOGU\"],\n [1206081009, 1206081, \"PARTORUAN JANJI MATOGU\"],\n [1206081010, 1206081, \"PARHABINSARAN JANJI MATOGU\"],\n [1206081011, 1206081, \"LUMBAN BINANGA\"],\n [1206081012, 1206081, \"LUMBAN HOLBUNG LUMBAN NABOLON\"],\n [1206081013, 1206081, \"LUMBAN NABOLON\"],\n [1206081015, 1206081, \"DOLOK NAGODANG\"],\n [1206081016, 1206081, \"PARIK\"],\n [1206081017, 1206081, \"DOLOK SARIBU LUMBAN NABOLON\"],\n [1206081018, 1206081, \"SAMPUARA\"],\n [1206082001, 1206082, \"SIRUNGKUNGON\"],\n [1206082002, 1206082, \"PARSAORAN SIBISA\"],\n [1206082003, 1206082, \"PARDAMEAN SIBISA\"],\n [1206082004, 1206082, \"SIGAPITON\"],\n [1206082005, 1206082, \"HORSIK\"],\n [1206082006, 1206082, \"MOTUNG\"],\n [1206082007, 1206082, \"PARSAORAN AJIBATA\"],\n [1206082008, 1206082, \"PARDOMUAN AJIBATA\"],\n [1206082009, 1206082, \"PARDAMEAN AJIBATA\"],\n [1206082010, 1206082, \"PARDOMUAN MOTUNG\"],\n [1206083001, 1206083, \"SIBADIHON\"],\n [1206083002, 1206083, \"NAGA TIMBUL\"],\n [1206083003, 1206083, \"HARUNGGUAN\"],\n [1206083004, 1206083, \"LUMBAN LOBU\"],\n [1206083005, 1206083, \"SINAR SABUNGAN\"],\n [1206083006, 1206083, \"SIHIONG\"],\n [1206083008, 1206083, \"SILAMOSIK II\"],\n [1206083011, 1206083, \"NAGA TIMBUL TIMUR\"],\n [1206083012, 1206083, \"LUMBAN SANGKALAN\"],\n [1206083013, 1206083, \"PARTORUAN LUMBAN LOBU\"],\n [1206083014, 1206083, \"PARDOLOK LUMBAN LOBU\"],\n [1206083015, 1206083, \"SILOMBU\"],\n [1207050001, 1207050, \"TANJUNG SIRAM\"],\n [1207050002, 1207050, \"S SATU AEK NABARA\"],\n [1207050003, 1207050, \"KAMPUNG DALAM\"],\n [1207050004, 1207050, \"LINGGA TIGA\"],\n [1207050005, 1207050, \"BANDAR TINGGI\"],\n [1207050006, 1207050, \"S TIGA AEK NABARA\"],\n [1207050007, 1207050, \"S EMPAT AEK NABARA\"],\n [1207050008, 1207050, \"S LIMA AEK NABARA\"],\n [1207050009, 1207050, \"S ENAM AEK NABARA\"],\n [1207050010, 1207050, \"N DELAPAN AEK NABARA\"],\n [1207050011, 1207050, \"N LIMA AEK NABARA\"],\n [1207050012, 1207050, \"S DUA AEK NABARA\"],\n [1207050013, 1207050, \"N TIGA AEK NABARA\"],\n [1207050014, 1207050, \"N DUA AEK NABARA\"],\n [1207050015, 1207050, \"N EMPAT AEK NABARA\"],\n [1207050016, 1207050, \"PERBAUNGAN\"],\n [1207050017, 1207050, \"N TUJUH AEK NABARA\"],\n [1207050018, 1207050, \"MERANTI\"],\n [1207050019, 1207050, \"GUNUNG SELAMAT\"],\n [1207050020, 1207050, \"N ENAM AEK NABARA\"],\n [1207050021, 1207050, \"PEMATANG SELENG\"],\n [1207050022, 1207050, \"PONDOK BATU\"],\n [1207050023, 1207050, \"EMPLASMEN AEK NABARA\"],\n [1207050024, 1207050, \"N SATU AEK NABARA\"],\n [1207070001, 1207070, \"SIDORUKUN\"],\n [1207070002, 1207070, \"PERKEBUNAN PANGKATAN\"],\n [1207070003, 1207070, \"TEBING TINGGI PANGKATAN\"],\n [1207070004, 1207070, \"KAMPUNG PADANG\"],\n [1207070005, 1207070, \"TANJUNG HARAPAN\"],\n [1207070006, 1207070, \"PANGKATAN\"],\n [1207070007, 1207070, \"SENNAH\"],\n [1207080001, 1207080, \"SIBARGOT\"],\n [1207080002, 1207080, \"BANDAR KUMBUL\"],\n [1207080003, 1207080, \"TANJUNG MEDAN\"],\n [1207080004, 1207080, \"JANJI\"],\n [1207080005, 1207080, \"AFDELING I RANTAUPRAPAT\"],\n [1207080006, 1207080, \"AEK BURU SELATAN\"],\n [1207080007, 1207080, \"AFDELING II RANTAUPRAPAT\"],\n [1207080008, 1207080, \"KAMPUNG BARU\"],\n [1207080009, 1207080, \"TEBING LINGGAHARA\"],\n [1207080010, 1207080, \"TEBING LINGGAHARA BARU\"],\n [1207130001, 1207130, \"PERKEBUNAN SENNAH\"],\n [1207130002, 1207130, \"KAMPUNG BILAH\"],\n [1207130003, 1207130, \"PERKEBUNAN BILAH\"],\n [1207130004, 1207130, \"NEGERI LAMA\"],\n [1207130005, 1207130, \"NEGERI LAMA SEBERANG\"],\n [1207130006, 1207130, \"PERKEBUNAN NEGERI LAMA\"],\n [1207130007, 1207130, \"SIDOMULYO\"],\n [1207130008, 1207130, \"NEGERI BARU\"],\n [1207130009, 1207130, \"SEI TAMPANG\"],\n [1207130010, 1207130, \"SEI TAROLAT\"],\n [1207130011, 1207130, \"SEI KASIH\"],\n [1207130012, 1207130, \"TANJUNG HALOBAN\"],\n [1207130013, 1207130, \"SELAT BESAR\"],\n [1207140001, 1207140, \"SEI SENTOSA\"],\n [1207140002, 1207140, \"AJAMU\"],\n [1207140003, 1207140, \"MERANTI PAHAM\"],\n [1207140004, 1207140, \"TELUK SENTOSA\"],\n [1207140005, 1207140, \"CINTA MAKMUR\"],\n [1207140006, 1207140, \"TANJUNG SARANG ELANG\"],\n [1207140007, 1207140, \"SEI JAWI JAWI\"],\n [1207150001, 1207150, \"SEI SIARTI\"],\n [1207150002, 1207150, \"SELAT BETING\"],\n [1207150003, 1207150, \"SEI PELANCANG\"],\n [1207150004, 1207150, \"BAGAN BILAH\"],\n [1207150005, 1207150, \"SEI RAKYAT\"],\n [1207150006, 1207150, \"SEI NAHODARIS\"],\n [1207150007, 1207150, \"TELAGA SUKA\"],\n [1207150008, 1207150, \"LABUHAN BILIK\"],\n [1207150009, 1207150, \"SEI MERDEKA\"],\n [1207150010, 1207150, \"PASAR TIGA\"],\n [1207160001, 1207160, \"SEI PENGGANTUNGAN\"],\n [1207160002, 1207160, \"SEI LUMUT\"],\n [1207160003, 1207160, \"SEI TAWAR\"],\n [1207160004, 1207160, \"SEI SANGGUL\"],\n [1207160005, 1207160, \"SEI BEROMBANG\"],\n [1207160006, 1207160, \"SEI SAKAT\"],\n [1207160007, 1207160, \"SEI BARU\"],\n [1207160008, 1207160, \"WONOSARI\"],\n [1207210001, 1207210, \"LOBUSONA\"],\n [1207210002, 1207210, \"SIDOREJO\"],\n [1207210003, 1207210, \"SIGAMBAL\"],\n [1207210004, 1207210, \"DANOBALE\"],\n [1207210005, 1207210, \"PERDAMEAN\"],\n [1207210006, 1207210, \"UJUNG BANDAR\"],\n [1207210007, 1207210, \"BAKARAN BATU\"],\n [1207210008, 1207210, \"URUNG KOMPAS\"],\n [1207210009, 1207210, \"SIOLDENGAN\"],\n [1207220001, 1207220, \"SIRANDORUNG\"],\n [1207220002, 1207220, \"PADANG BULAN\"],\n [1207220003, 1207220, \"KARTINI\"],\n [1207220004, 1207220, \"RANTAUPRAPAT\"],\n [1207220005, 1207220, \"CENDANA\"],\n [1207220006, 1207220, \"BINA RAGA\"],\n [1207220007, 1207220, \"SIRINGO-RINGO\"],\n [1207220008, 1207220, \"AEK PAING\"],\n [1207220009, 1207220, \"PADANG MATINGGI\"],\n [1207220010, 1207220, \"PULO PADANG\"],\n [1208010001, 1208010, \"HUTA PADANG\"],\n [1208010002, 1208010, \"HUTA BAGASAN\"],\n [1208010003, 1208010, \"BANDAR PASIR MANDOGE\"],\n [1208010004, 1208010, \"SUKA MAKMUR\"],\n [1208010005, 1208010, \"SEI KOPAS\"],\n [1208010006, 1208010, \"SILAU JAWA\"],\n [1208010007, 1208010, \"SEI NADORAS\"],\n [1208010008, 1208010, \"TOMUAN HOLBUNG\"],\n [1208010009, 1208010, \"GOTTING SIDODADI\"],\n [1208020013, 1208020, \"BANDAR PULAU PEKAN\"],\n [1208020014, 1208020, \"PADANG PULAU\"],\n [1208020015, 1208020, \"PERKEBUNAN PADANG PULAU\"],\n [1208020016, 1208020, \"BUNTU MARAJA\"],\n [1208020017, 1208020, \"GONTING MALAHA\"],\n [1208020018, 1208020, \"PERKEBUNAN AEK TARUM\"],\n [1208020019, 1208020, \"GAJAH SAKTI\"],\n [1208020020, 1208020, \"GUNUNG BERKAT\"],\n [1208020021, 1208020, \"HUTA RAO\"],\n [1208020022, 1208020, \"AEK NAGALI\"],\n [1208021001, 1208021, \"TANGGA\"],\n [1208021002, 1208021, \"LOBU RAPPA\"],\n [1208021003, 1208021, \"MARJANJI ACEH\"],\n [1208021004, 1208021, \"AEK BAMBAN\"],\n [1208021005, 1208021, \"PERKEBUNAN BANDAR PULAU\"],\n [1208021006, 1208021, \"AEK SONGSONGAN\"],\n [1208021007, 1208021, \"PERKEBUNAN BANDAR SELAMAT\"],\n [1208021008, 1208021, \"MEKAR MARJANJI\"],\n [1208021009, 1208021, \"SITUNJAK\"],\n [1208022001, 1208022, \"PERKEBUNAN AEK NAGAGA\"],\n [1208022002, 1208022, \"RAHUNING\"],\n [1208022003, 1208022, \"PERKEBUNAN GUNUNG MELAYU\"],\n [1208022004, 1208022, \"GUNUNG MELAYU\"],\n [1208022005, 1208022, \"BATU ANAM\"],\n [1208022006, 1208022, \"RAHUNING I\"],\n [1208022007, 1208022, \"RAHUNING II\"],\n [1208030013, 1208030, \"BANGUN\"],\n [1208030014, 1208030, \"PERSATUAN\"],\n [1208030015, 1208030, \"PERKEBUNAN TUNGGUL 45\"],\n [1208030016, 1208030, \"ORIKA\"],\n [1208030017, 1208030, \"BARU\"],\n [1208030018, 1208030, \"MANIS\"],\n [1208030019, 1208030, \"PULAU RAKYAT PEKAN\"],\n [1208030020, 1208030, \"PULAU RAKYAT TUA\"],\n [1208030021, 1208030, \"SEI PIRING\"],\n [1208030022, 1208030, \"OFA/PADANG MAHONDANG\"],\n [1208030023, 1208030, \"PADANG MAHONDANG\"],\n [1208030024, 1208030, \"MEKAR SARI\"],\n [1208031007, 1208031, \"SENGON SARI\"],\n [1208031008, 1208031, \"LOBU JIUR\"],\n [1208031009, 1208031, \"AEK LOBA PEKAN\"],\n [1208031010, 1208031, \"AEK LOBA AFDELING I\"],\n [1208031011, 1208031, \"ALANG BONBON\"],\n [1208031012, 1208031, \"RAWA SARI\"],\n [1208031013, 1208031, \"AEK LOBA\"],\n [1208032001, 1208032, \"AEK BANGE\"],\n [1208032002, 1208032, \"LEDONG BARAT\"],\n [1208032003, 1208032, \"LEDONG TIMUR\"],\n [1208032004, 1208032, \"AEK KORSIK\"],\n [1208032005, 1208032, \"AEK LEDONG\"],\n [1208032006, 1208032, \"AEK NABUNTU\"],\n [1208032007, 1208032, \"PADANG SIPIROK\"],\n [1208040001, 1208040, \"PERBANGUNAN\"],\n [1208040002, 1208040, \"PERTAHANAN\"],\n [1208040003, 1208040, \"BANGUN BARU\"],\n [1208040005, 1208040, \"SEI PAHAM\"],\n [1208040006, 1208040, \"SEI KEPAYANG KANAN\"],\n [1208040007, 1208040, \"SEI KEPAYANG TENGAH\"],\n [1208041001, 1208041, \"SEI KEPAYANG KIRI\"],\n [1208041002, 1208041, \"SEI LENDIR\"],\n [1208041003, 1208041, \"SEI TUALANG PANDAU\"],\n [1208041004, 1208041, \"SEI SERINDAN\"],\n [1208041005, 1208041, \"SEI JAWI JAWI\"],\n [1208041006, 1208041, \"SEI NANGKA\"],\n [1208042001, 1208042, \"SEI LUNANG\"],\n [1208042002, 1208042, \"SEI PASIR\"],\n [1208042003, 1208042, \"SEI TEMPURUNG\"],\n [1208042004, 1208042, \"SARANG HELANG\"],\n [1208042005, 1208042, \"SEI SEMBILANG\"],\n [1208050001, 1208050, \"KAPIAS BATU VIII\"],\n [1208050002, 1208050, \"PEMATANG SUNGAI BARU\"],\n [1208050003, 1208050, \"SEI APUNG JAYA\"],\n [1208050004, 1208050, \"SUNGAI APUNG\"],\n [1208050005, 1208050, \"ASAHAN MATI\"],\n [1208050006, 1208050, \"BAGAN ASAHAN BARU\"],\n [1208050007, 1208050, \"BAGAN ASAHAN PEKAN\"],\n [1208050008, 1208050, \"BAGAN ASAHAN\"],\n [1208060006, 1208060, \"SILOMLOM\"],\n [1208060007, 1208060, \"PERKEBUNAN SUKARAJA\"],\n [1208060008, 1208060, \"SIMPANG EMPAT\"],\n [1208060009, 1208060, \"SEI DUA HULU\"],\n [1208060010, 1208060, \"PERKEBUNAN HESSA\"],\n [1208060011, 1208060, \"SUNGAI LAMA\"],\n [1208060012, 1208060, \"SIPAKU AREA\"],\n [1208060013, 1208060, \"ANJUNG GANJANG\"],\n [1208061001, 1208061, \"PULAU MARIA\"],\n [1208061002, 1208061, \"PULAU TANJUNG\"],\n [1208061003, 1208061, \"TELUK DALAM\"],\n [1208061004, 1208061, \"PERKEBUNAN TELUK DALAM\"],\n [1208061005, 1208061, \"AEK TELUK KIRI\"],\n [1208061006, 1208061, \"MEKAR TANJUNG\"],\n [1208070001, 1208070, \"PERKEBUNAN PULAHAN\"],\n [1208070002, 1208070, \"PERKEBUNAN AIR BATU III/IX\"],\n [1208070003, 1208070, \"SUNGAI ALIM ULU\"],\n [1208070004, 1208070, \"AIR TELUK HESSA\"],\n [1208070005, 1208070, \"PERKEBUNAN AIR BATU I/II\"],\n [1208070006, 1208070, \"PINANGGIRIPAN\"],\n [1208070007, 1208070, \"DANAU SIJABUT\"],\n [1208070008, 1208070, \"HESSA PERLOMPONGAN\"],\n [1208070009, 1208070, \"AIR GENTING\"],\n [1208070010, 1208070, \"HESSA AIR GENTING\"],\n [1208070011, 1208070, \"SIJABUT TERATAI\"],\n [1208070012, 1208070, \"PULAU PALE\"],\n [1208071001, 1208071, \"TANJUNG ALAM\"],\n [1208071002, 1208071, \"PERKEBUNAN SEI DADAP III/IV\"],\n [1208071003, 1208071, \"BAHUNG SIBATU-BATU\"],\n [1208071004, 1208071, \"SEI ALIM HASAK\"],\n [1208071005, 1208071, \"PERKEBUNAN SEI DADAP I/II\"],\n [1208071006, 1208071, \"SEI KAMAH II\"],\n [1208071007, 1208071, \"SEI KAMAH I\"],\n [1208071008, 1208071, \"TANJUNG ASRI\"],\n [1208071009, 1208071, \"SEI KAMAH BARU\"],\n [1208071010, 1208071, \"PASIRAN\"],\n [1208080001, 1208080, \"LESTARI\"],\n [1208080005, 1208080, \"BUNTU PANE\"],\n [1208080006, 1208080, \"AMBALUTU\"],\n [1208080008, 1208080, \"PRAPAT JANJI\"],\n [1208080012, 1208080, \"SEI SILAU TIMUR\"],\n [1208080013, 1208080, \"SIONGGANG\"],\n [1208080014, 1208080, \"MEKAR SARI\"],\n [1208080015, 1208080, \"PERKEBUNAN SEI SILAU\"],\n [1208080016, 1208080, \"KARYA AMBALUTU\"],\n [1208081001, 1208081, \"TELADAN\"],\n [1208081002, 1208081, \"SIDOMULYO\"],\n [1208081003, 1208081, \"BUTREA/PIASA ULU\"],\n [1208081004, 1208081, \"TERUSAN TENGAH\"],\n [1208081005, 1208081, \"SUMBER HARAPAN\"],\n [1208081006, 1208081, \"TINGGI RAJA\"],\n [1208081007, 1208081, \"PADANG SARI\"],\n [1208082001, 1208082, \"SEI SILAU TUA\"],\n [1208082002, 1208082, \"SEI SILAU BARAT\"],\n [1208082003, 1208082, \"SILAU MARAJA\"],\n [1208082004, 1208082, \"URUNG PANE\"],\n [1208082005, 1208082, \"BANGUN SARI\"],\n [1208090013, 1208090, \"SERDANG\"],\n [1208090014, 1208090, \"MERANTI\"],\n [1208090015, 1208090, \"SEI BELURU\"],\n [1208090016, 1208090, \"PERKEBUNAN SEI BALAI\"],\n [1208090020, 1208090, \"GAJAH\"],\n [1208090021, 1208090, \"AIR PUTIH\"],\n [1208090022, 1208090, \"SUKAJADI\"],\n [1208091001, 1208091, \"TAMAN SARI\"],\n [1208091002, 1208091, \"PERHUTAAN SILAU\"],\n [1208091003, 1208091, \"SUKADAMAI\"],\n [1208091004, 1208091, \"TANAH RAKYAT\"],\n [1208091005, 1208091, \"GEDANGAN\"],\n [1208091006, 1208091, \"SIDOMULYO\"],\n [1208091007, 1208091, \"PULO BANDRING\"],\n [1208091008, 1208091, \"SUKA MAKMUR\"],\n [1208091009, 1208091, \"SUKADAMAI BARAT\"],\n [1208091010, 1208091, \"BUNUT SEBERANG\"],\n [1208092001, 1208092, \"PONDOK BUNGUR\"],\n [1208092002, 1208092, \"RAWANG BARU\"],\n [1208092003, 1208092, \"RAWANG PASAR V\"],\n [1208092004, 1208092, \"RAWANG PASAR IV\"],\n [1208092005, 1208092, \"RAWANG LAMA\"],\n [1208092006, 1208092, \"PANCA ARGA\"],\n [1208092007, 1208092, \"RAWANG PASAR VI\"],\n [1208100001, 1208100, \"BINJAI SERBANGAN\"],\n [1208100002, 1208100, \"AIR JOMAN\"],\n [1208100003, 1208100, \"AIR JOMAN BARU\"],\n [1208100004, 1208100, \"PUNGGULAN\"],\n [1208100005, 1208100, \"PASAR LEMBU\"],\n [1208100007, 1208100, \"BANJAR\"],\n [1208100008, 1208100, \"SUBUR\"],\n [1208101001, 1208101, \"LUBUK PALAS\"],\n [1208101002, 1208101, \"SILO BARU\"],\n [1208101003, 1208101, \"SILO BONTO\"],\n [1208101004, 1208101, \"SILO LAMA\"],\n [1208101005, 1208101, \"BANGUN SARI\"],\n [1208160001, 1208160, \"SEI RENGGAS\"],\n [1208160002, 1208160, \"SENDANG SARI\"],\n [1208160003, 1208160, \"KISARAN BARAT\"],\n [1208160004, 1208160, \"TEGAL SARI\"],\n [1208160005, 1208160, \"TEBING KISARAN\"],\n [1208160006, 1208160, \"KISARAN KOTA\"],\n [1208160007, 1208160, \"KISARAN BARU\"],\n [1208160008, 1208160, \"MEKAR BARU\"],\n [1208160009, 1208160, \"SIDODADI\"],\n [1208160010, 1208160, \"DADI MULYO\"],\n [1208160011, 1208160, \"SIDOMUKTI\"],\n [1208160012, 1208160, \"BUNUT\"],\n [1208160013, 1208160, \"BUNUT BARAT\"],\n [1208170001, 1208170, \"SENTANG\"],\n [1208170002, 1208170, \"KEDAI LEDANG\"],\n [1208170003, 1208170, \"KISARAN NAGA\"],\n [1208170004, 1208170, \"TELADAN\"],\n [1208170005, 1208170, \"KISARAN TIMUR\"],\n [1208170006, 1208170, \"SELAWAN\"],\n [1208170007, 1208170, \"MUTIARA\"],\n [1208170008, 1208170, \"SI UMBUT BARU\"],\n [1208170009, 1208170, \"SIUMBUT - UMBUT\"],\n [1208170010, 1208170, \"KARANG ANYER\"],\n [1208170011, 1208170, \"GAMBIR BARU\"],\n [1208170012, 1208170, \"LESTARI\"],\n [1209010002, 1209010, \"SIBANGUN MERIAH\"],\n [1209010004, 1209010, \"SARIBU DOLOK\"],\n [1209010005, 1209010, \"PURBA SINOMBAH\"],\n [1209010006, 1209010, \"PURBA TUA\"],\n [1209010011, 1209010, \"PURBA TUA BARU\"],\n [1209010014, 1209010, \"SINAR BARU\"],\n [1209010015, 1209010, \"PURBA TUA ETEK\"],\n [1209011001, 1209011, \"UJUNG SARIBU\"],\n [1209011002, 1209011, \"SILIMAKUTA BARAT\"],\n [1209011003, 1209011, \"SIBORAS\"],\n [1209011004, 1209011, \"UJUNG MARIAH\"],\n [1209011005, 1209011, \"MARDINDING\"],\n [1209011006, 1209011, \"NAGA SARIBU\"],\n [1209011007, 1209011, \"SARIBUJANDI\"],\n [1209011008, 1209011, \"NAGA MARIAH\"],\n [1209011009, 1209011, \"BANDAR SARIBU\"],\n [1209011010, 1209011, \"NAGA BOSAR\"],\n [1209020002, 1209020, \"KINALANG\"],\n [1209020006, 1209020, \"TIGA RUNGGU\"],\n [1209020007, 1209020, \"PURBA TENGAH\"],\n [1209020008, 1209020, \"PEMATANG PURBA\"],\n [1209020009, 1209020, \"PURBA SIPINGGAN\"],\n [1209020010, 1209020, \"URUNG PURBA\"],\n [1209020011, 1209020, \"TANOH TINGGIR\"],\n [1209020012, 1209020, \"PURBA DOLOK\"],\n [1209020013, 1209020, \"SARIBU JANDI\"],\n [1209020014, 1209020, \"HUTARAJA\"],\n [1209020015, 1209020, \"NAGORI TONGAH\"],\n [1209020016, 1209020, \"URUNG PANE\"],\n [1209020017, 1209020, \"BUNGA SAMPANG\"],\n [1209020018, 1209020, \"BANDAR SAUHUR\"],\n [1209021001, 1209021, \"NAGORI SIHALPE\"],\n [1209021002, 1209021, \"PURBA HORISON\"],\n [1209021003, 1209021, \"PURBA PASIR\"],\n [1209021004, 1209021, \"HARANGGAOL\"],\n [1209021005, 1209021, \"NAGORI PURBA\"],\n [1209030001, 1209030, \"TIGARAS\"],\n [1209030002, 1209030, \"PARIK SABUNGAN\"],\n [1209030003, 1209030, \"SIBUNTUON\"],\n [1209030004, 1209030, \"DOLOK SARIBU\"],\n [1209030005, 1209030, \"SINAMAN LABAH\"],\n [1209030006, 1209030, \"BANGUN PANE\"],\n [1209030007, 1209030, \"BUTTU BAYU PANEI RAJA\"],\n [1209030008, 1209030, \"TOGU DOMU NAULI\"],\n [1209030009, 1209030, \"PARJALANGAN\"],\n [1209030010, 1209030, \"SILABAH JAYA\"],\n [1209030011, 1209030, \"SIRUBE-RUBE GUNUNG PURBA\"],\n [1209030012, 1209030, \"NAGORI BAYU\"],\n [1209030013, 1209030, \"SIHEMUN BARU\"],\n [1209030014, 1209030, \"TANJUNG SARIBU\"],\n [1209030015, 1209030, \"PARTUAH\"],\n [1209030016, 1209030, \"PAMATANG SINAMAN\"],\n [1209040007, 1209040, \"SIDAMANIK\"],\n [1209040008, 1209040, \"AMBARISAN\"],\n [1209040009, 1209040, \"SARIMATONDANG\"],\n [1209040010, 1209040, \"BAH BUTONG SATU\"],\n [1209040011, 1209040, \"BAH BUTONG DUA\"],\n [1209040012, 1209040, \"BAHAL GAJAH\"],\n [1209040013, 1209040, \"TIGA BOLON\"],\n [1209040014, 1209040, \"MANIK HATARAN\"],\n [1209040015, 1209040, \"MEKAR SIDAMANIK\"],\n [1209040016, 1209040, \"MANIK MARAJA\"],\n [1209040017, 1209040, \"BAH BIAK\"],\n [1209040018, 1209040, \"KEBUN SAYUR BAH BUTONG\"],\n [1209040019, 1209040, \"BIRONG ULU MANRIAH\"],\n [1209040020, 1209040, \"MANIK RAMBUNG\"],\n [1209040021, 1209040, \"BUKIT REJO\"],\n [1209041001, 1209041, \"SIPOLHA HORISAN\"],\n [1209041002, 1209041, \"PEMATANG TAMBUN RAYA\"],\n [1209041003, 1209041, \"SIHAPORAS\"],\n [1209041004, 1209041, \"JORLANG HULUAN\"],\n [1209041005, 1209041, \"BANDAR MANIK\"],\n [1209041006, 1209041, \"SAIT BUTTU SARIBU\"],\n [1209041007, 1209041, \"PEMATANG SIDAMANIK\"],\n [1209041008, 1209041, \"SARIMATTIN\"],\n [1209041009, 1209041, \"SIMANTIN\"],\n [1209041010, 1209041, \"GORAK\"],\n [1209050001, 1209050, \"SIPANGAN BOLON\"],\n [1209050002, 1209050, \"GIRSANG\"],\n [1209050003, 1209050, \"PARAPAT\"],\n [1209050004, 1209050, \"TIGA RAJA\"],\n [1209050005, 1209050, \"SIBAGANDING\"],\n [1209050006, 1209050, \"SIPANGAN BOLON MEKAR\"],\n [1209060006, 1209060, \"MEKAR MULIA\"],\n [1209060007, 1209060, \"PARDAMEAN ASIH\"],\n [1209060008, 1209060, \"MARUBUN JAYA\"],\n [1209060009, 1209060, \"TOTAP MAJAWA\"],\n [1209060010, 1209060, \"BALIMBINGAN\"],\n [1209060011, 1209060, \"BAH KISAT\"],\n [1209060012, 1209060, \"MALIGAS TONGAH\"],\n [1209060015, 1209060, \"PANAMBEAN MARJANJI\"],\n [1209060016, 1209060, \"TANJUNG PASIR\"],\n [1209060017, 1209060, \"MUARA MULIA\"],\n [1209060018, 1209060, \"BOSAR GALUGUR\"],\n [1209060019, 1209060, \"PEMATANG TANAH JAWA\"],\n [1209060020, 1209060, \"BAJA DOLOK\"],\n [1209060021, 1209060, \"BAH JAMBI II\"],\n [1209060022, 1209060, \"PAGAR JAMBI\"],\n [1209060023, 1209060, \"BAYU BAGASAN\"],\n [1209060024, 1209060, \"BALIJU\"],\n [1209060025, 1209060, \"BAH JAMBI III\"],\n [1209060026, 1209060, \"MARUBUN BAYU\"],\n [1209060027, 1209060, \"PARBALOGAN\"],\n [1209061001, 1209061, \"BOSAR NAULI\"],\n [1209061002, 1209061, \"TANGGA BATU\"],\n [1209061003, 1209061, \"BUNTU TURUNAN\"],\n [1209061004, 1209061, \"BUNTU BAYU\"],\n [1209061005, 1209061, \"SARIBU ASIH\"],\n [1209061006, 1209061, \"JAWA TONGAH\"],\n [1209061007, 1209061, \"TONDUHAN\"],\n [1209061008, 1209061, \"PARHUNDALIAN JAWADIPAR\"],\n [1209061009, 1209061, \"JAWA TONGAH II\"],\n [1209070001, 1209070, \"DOLOK PARMONANGAN\"],\n [1209070002, 1209070, \"NEGERI DOLOK\"],\n [1209070003, 1209070, \"GUNUNG MARIAH\"],\n [1209070004, 1209070, \"MARIHAT DOLOK\"],\n [1209070005, 1209070, \"MARIHAT RAJA\"],\n [1209070006, 1209070, \"TIGA DOLOK\"],\n [1209070007, 1209070, \"BANDAR DOLOK\"],\n [1209070008, 1209070, \"DOLOK TOMUAN\"],\n [1209070009, 1209070, \"UJUNG BONDAR\"],\n [1209070010, 1209070, \"SIATASAN\"],\n [1209070011, 1209070, \"PONDOK BULUH\"],\n [1209070012, 1209070, \"MARIHAT PONDOK\"],\n [1209070013, 1209070, \"MARIHAT MARSADA\"],\n [1209070014, 1209070, \"LUMBAN GORAT\"],\n [1209070015, 1209070, \"PALIANAOPAT\"],\n [1209080001, 1209080, \"JORLANG HATARAN\"],\n [1209080002, 1209080, \"SIBUNGA BUNGA\"],\n [1209080003, 1209080, \"DOLOK MARLAWAN\"],\n [1209080004, 1209080, \"KASINDIR\"],\n [1209080005, 1209080, \"TIGA BALATA\"],\n [1209080006, 1209080, \"PINANG RATUS\"],\n [1209080007, 1209080, \"BAH BIRONG ULU\"],\n [1209080008, 1209080, \"BAH SAMPURAN\"],\n [1209080009, 1209080, \"PANOMBEAN HUTA URUNG\"],\n [1209080010, 1209080, \"DIPAR HATARAN\"],\n [1209080011, 1209080, \"PARMONANGAN\"],\n [1209080012, 1209080, \"DOLOK PARRIASAN\"],\n [1209080013, 1209080, \"PAGAR PINANG\"],\n [1209090001, 1209090, \"SIMANTIN PANE DAME\"],\n [1209090002, 1209090, \"BANGUN RAKYAT\"],\n [1209090003, 1209090, \"SIMPANG RAYA\"],\n [1209090004, 1209090, \"SIBORNA\"],\n [1209090006, 1209090, \"JANGGIR LETO\"],\n [1209090007, 1209090, \"PANE TONGAH\"],\n [1209090008, 1209090, \"SIPOLDAS\"],\n [1209090009, 1209090, \"SIGODANG\"],\n [1209090014, 1209090, \"MEKAR SARI RAYA\"],\n [1209090015, 1209090, \"BAH BALON TONGAH\"],\n [1209090016, 1209090, \"SIGODANG BARAT\"],\n [1209090017, 1209090, \"SIMPANG RAYA DASMA\"],\n [1209090018, 1209090, \"BANGUN DAS MARIAH\"],\n [1209090019, 1209090, \"BANGUN SITOLUH BAH\"],\n [1209090020, 1209090, \"NAULI BARU\"],\n [1209090021, 1209090, \"BAHLIRAN SIBORNA\"],\n [1209090022, 1209090, \"RAWANG PARDOMUAN NAULI\"],\n [1209091001, 1209091, \"SIMPANG PANE\"],\n [1209091002, 1209091, \"MARJANDI\"],\n [1209091003, 1209091, \"PANOMBEAN\"],\n [1209091004, 1209091, \"NAGORI BOSAR\"],\n [1209091005, 1209091, \"TALUN KONDOT\"],\n [1209091006, 1209091, \"PEMATANG PANOMBEAN\"],\n [1209091007, 1209091, \"SIMBOLON TENGKOH\"],\n [1209091008, 1209091, \"PEMATANG PANE\"],\n [1209091009, 1209091, \"MARJANDI PISANG\"],\n [1209091010, 1209091, \"BANUH RAYA\"],\n [1209091011, 1209091, \"RUKUN MULYO\"],\n [1209100001, 1209100, \"DOLOG HULUAN\"],\n [1209100002, 1209100, \"RAYA USANG\"],\n [1209100003, 1209100, \"RAYA BAYU\"],\n [1209100004, 1209100, \"DALIG RAYA\"],\n [1209100005, 1209100, \"PEMATANG RAYA\"],\n [1209100006, 1209100, \"MEREK RAYA\"],\n [1209100007, 1209100, \"BAHAPAL RAYA\"],\n [1209100008, 1209100, \"SONDI RAYA\"],\n [1209100009, 1209100, \"BAH BOLON\"],\n [1209100010, 1209100, \"RAYA HULUAN\"],\n [1209100011, 1209100, \"SIPORKAS\"],\n [1209100012, 1209100, \"SILOU HULUAN\"],\n [1209100013, 1209100, \"SILOU BUTTU\"],\n [1209100014, 1209100, \"BONGURON KARIAHAN\"],\n [1209100015, 1209100, \"SIHUBU RAYA\"],\n [1209100016, 1209100, \"RAYA BOSI\"],\n [1209100017, 1209100, \"SIMBOU BARU\"],\n [1209100018, 1209100, \"BINTANG MARIAH\"],\n [1209100019, 1209100, \"LOKKUNG RAYA\"],\n [1209100020, 1209100, \"BARINGIN RAYA\"],\n [1209100021, 1209100, \"LIMAG RAYA\"],\n [1209100022, 1209100, \"DAME RAYA\"],\n [1209110001, 1209110, \"CINGKES\"],\n [1209110002, 1209110, \"PARIBUAN\"],\n [1209110003, 1209110, \"SARAN PADANG\"],\n [1209110004, 1209110, \"MARIAH DOLOK\"],\n [1209110005, 1209110, \"DOLOK MARIAH\"],\n [1209110006, 1209110, \"MARUBUN LOKKUNG\"],\n [1209110007, 1209110, \"BAWANG\"],\n [1209110008, 1209110, \"HUTA SAING\"],\n [1209110009, 1209110, \"TOGUR\"],\n [1209110010, 1209110, \"PERASMIAN\"],\n [1209110011, 1209110, \"TANJUNG PURBA\"],\n [1209110012, 1209110, \"UJUNG BAWANG\"],\n [1209110013, 1209110, \"SILAU MARAWAN\"],\n [1209110014, 1209110, \"BOSI SINOMBAH\"],\n [1209120001, 1209120, \"DOLOK SARIBU BANGUN\"],\n [1209120002, 1209120, \"SIMANABUN\"],\n [1209120003, 1209120, \"MARIAH BUTTU\"],\n [1209120004, 1209120, \"PARDOMUAN TONGAH\"],\n [1209120005, 1209120, \"DOLOK MARAWA\"],\n [1209120006, 1209120, \"NEGERI DOLOK\"],\n [1209120007, 1209120, \"BANDAR NAGORI\"],\n [1209120008, 1209120, \"BANDAR MARUHUR\"],\n [1209120009, 1209120, \"SILAU PARIBUAN\"],\n [1209120010, 1209120, \"SILAU DUNIA\"],\n [1209120011, 1209120, \"BUTTU BAYU\"],\n [1209120012, 1209120, \"NAGORI TANI\"],\n [1209120013, 1209120, \"BAH SARIMAH\"],\n [1209120014, 1209120, \"SINASIH\"],\n [1209120015, 1209120, \"DAMAKITANG\"],\n [1209120016, 1209120, \"PARDOMUAN BANDAR\"],\n [1209130001, 1209130, \"BAH TONANG\"],\n [1209130002, 1209130, \"SAMBOSAR RAYA\"],\n [1209130003, 1209130, \"BANGUN RAYA\"],\n [1209130004, 1209130, \"SINDAR RAYA\"],\n [1209130005, 1209130, \"AMBOROKAN PANE RAYA\"],\n [1209130006, 1209130, \"PANDUMAN\"],\n [1209130007, 1209130, \"BAH BULIAN\"],\n [1209130008, 1209130, \"DURIAN BAGGAL\"],\n [1209130009, 1209130, \"SORBA DOLOG\"],\n [1209130010, 1209130, \"PULI BUAH\"],\n [1209130011, 1209130, \"GUNUNG DATAS\"],\n [1209130012, 1209130, \"BANJARAN\"],\n [1209130013, 1209130, \"MARUBUN SIBORAS\"],\n [1209130014, 1209130, \"BANU RAYA\"],\n [1209140001, 1209140, \"DOLOK MARAJA\"],\n [1209140002, 1209140, \"SINAKSAK\"],\n [1209140003, 1209140, \"BATU SILANGIT\"],\n [1209140004, 1209140, \"DOLOK ULU\"],\n [1209140005, 1209140, \"NAGUR USANG\"],\n [1209140006, 1209140, \"NAGA DOLOK\"],\n [1209140007, 1209140, \"DOLOK KAHEAN\"],\n [1209140008, 1209140, \"PURBASARI\"],\n [1209140009, 1209140, \"PEMATANG DOLOK KAHEAN\"],\n [1209140010, 1209140, \"NEGERI BAYU MUSLIMIN\"],\n [1209140011, 1209140, \"DOLOK SIMBOLON\"],\n [1209150001, 1209150, \"SILENDUK\"],\n [1209150002, 1209150, \"BAH TOBU\"],\n [1209150003, 1209150, \"BANDAR SELAMAT\"],\n [1209150004, 1209150, \"DOLOK MERANGIR SATU\"],\n [1209150005, 1209150, \"DOLOK MERANGIR DUA\"],\n [1209150006, 1209150, \"SERBELAWAN\"],\n [1209150007, 1209150, \"DOLOK ILIR SATU\"],\n [1209150008, 1209150, \"DOLOK MAINU\"],\n [1209150009, 1209150, \"BAHUNG KAHEAN\"],\n [1209150010, 1209150, \"DOLOK ILIR DUA\"],\n [1209150011, 1209150, \"KAHEAN\"],\n [1209150012, 1209150, \"DOLOG TENERA\"],\n [1209150013, 1209150, \"DOLOK KATARAN\"],\n [1209150014, 1209150, \"PADANG MAINU\"],\n [1209150015, 1209150, \"BAHUNG HULUAN\"],\n [1209150016, 1209150, \"AMAN SARI\"],\n [1209160001, 1209160, \"SILAMPUYANG\"],\n [1209160002, 1209160, \"SILAU MANIK\"],\n [1209160003, 1209160, \"SILAU MALAHA\"],\n [1209160004, 1209160, \"MARIHAT BARIS\"],\n [1209160005, 1209160, \"SIANTAR ESTATE\"],\n [1209160006, 1209160, \"RAMBUNG MERAH\"],\n [1209160007, 1209160, \"KARANG BANGUN\"],\n [1209160008, 1209160, \"PEMATANG SIMALUNGUN\"],\n [1209160009, 1209160, \"DOLOK MARLAWAN\"],\n [1209160010, 1209160, \"PANTOAN MAJU\"],\n [1209160011, 1209160, \"SEJAHTERA\"],\n [1209160012, 1209160, \"SITALASARI\"],\n [1209160013, 1209160, \"LARAS DUA\"],\n [1209160014, 1209160, \"NUSA HARAPAN\"],\n [1209160015, 1209160, \"LESTARI INDAH\"],\n [1209160016, 1209160, \"DOLOK HATARAN\"],\n [1209160036, 1209160, \"PEMATANG SILAMPUYANG\"],\n [1209161001, 1209161, \"SENIO\"],\n [1209161002, 1209161, \"BANGUN\"],\n [1209161003, 1209161, \"PEMATANG ASILUM\"],\n [1209161004, 1209161, \"PEMATANG SAH KUDA\"],\n [1209161005, 1209161, \"MARIHAT BUKIT\"],\n [1209161006, 1209161, \"SAH KUDA BAYU\"],\n [1209161007, 1209161, \"BUKIT MARAJA\"],\n [1209161008, 1209161, \"PEMATANG GAJING\"],\n [1209161009, 1209161, \"DOLOK MALELA\"],\n [1209161010, 1209161, \"BANDAR SIANTAR\"],\n [1209161011, 1209161, \"SERAPUH\"],\n [1209161012, 1209161, \"SILAU MALELA\"],\n [1209161013, 1209161, \"SILULU\"],\n [1209161014, 1209161, \"MARGOMULYO\"],\n [1209161015, 1209161, \"NAGORI MALELA\"],\n [1209161016, 1209161, \"LINGGA\"],\n [1209162001, 1209162, \"KARANG SARI\"],\n [1209162002, 1209162, \"KARANG REJO\"],\n [1209162003, 1209162, \"KARANG ANYER\"],\n [1209162004, 1209162, \"SILAU BAYU\"],\n [1209162005, 1209162, \"HUTA DIPAR\"],\n [1209162006, 1209162, \"TUMORANG\"],\n [1209162007, 1209162, \"RABUHIT\"],\n [1209162008, 1209162, \"BANDAR MALELA\"],\n [1209162009, 1209162, \"GAJING\"],\n [1209170005, 1209170, \"MARIAH HOMBANG\"],\n [1209170006, 1209170, \"MARIHAT MAYANG\"],\n [1209170007, 1209170, \"JAWA BARU\"],\n [1209170008, 1209170, \"PULO BAYU\"],\n [1209170009, 1209170, \"HUTA BAYU\"],\n [1209170010, 1209170, \"SILAK KIDIR\"],\n [1209170011, 1209170, \"BOSAR BAYU\"],\n [1209170012, 1209170, \"MANCUK\"],\n [1209170015, 1209170, \"MALIGAS BAYU\"],\n [1209170016, 1209170, \"RAJA MALIGAS\"],\n [1209170017, 1209170, \"DOLOK SINUMBAH\"],\n [1209170018, 1209170, \"RAJA MALIGAS I\"],\n [1209170019, 1209170, \"BAHAL BATU\"],\n [1209170020, 1209170, \"POKAN BARU\"],\n [1209170021, 1209170, \"MANRAYAP BARU\"],\n [1209170022, 1209170, \"TALANG BAYU\"],\n [1209171001, 1209171, \"MARIAH JAMBI\"],\n [1209171002, 1209171, \"MOHO\"],\n [1209171003, 1209171, \"BAHALAT BAYU\"],\n [1209171004, 1209171, \"MEKAR BAHALAT\"],\n [1209171005, 1209171, \"TANJUNG MARAJA\"],\n [1209171006, 1209171, \"JAWA MARAJA\"],\n [1209171007, 1209171, \"BAH JOGA\"],\n [1209171008, 1209171, \"BAH JAMBI I\"],\n [1209180004, 1209180, \"PURBA GANDA\"],\n [1209180005, 1209180, \"KERASAAN II\"],\n [1209180006, 1209180, \"KERASAAN I\"],\n [1209180007, 1209180, \"PARDOMUAN NAULI\"],\n [1209180008, 1209180, \"MARIAH BANDAR\"],\n [1209180009, 1209180, \"TALUN MADEAR\"],\n [1209180010, 1209180, \"KANDANGAN\"],\n [1209180011, 1209180, \"PURWOSARI\"],\n [1209180012, 1209180, \"PEMATANG BANDAR\"],\n [1209180013, 1209180, \"BANDAR MANIS\"],\n [1209180014, 1209180, \"WONOREJO\"],\n [1209180015, 1209180, \"TALUN REJO\"],\n [1209180016, 1209180, \"PURWODADI\"],\n [1209181001, 1209181, \"L A R A S\"],\n [1209181002, 1209181, \"BAH GUNUNG\"],\n [1209181003, 1209181, \"BANDAR TONGAH\"],\n [1209181004, 1209181, \"DOLOK PARMONANGAN\"],\n [1209181005, 1209181, \"NAGA JAYA I\"],\n [1209181006, 1209181, \"NAGA JAYA II\"],\n [1209181007, 1209181, \"TANJUNG HATARAN\"],\n [1209181008, 1209181, \"BANDAR BETSY I\"],\n [1209181009, 1209181, \"BANDAR BETSY II\"],\n [1209181010, 1209181, \"NAGA SOPA\"],\n [1209190001, 1209190, \"PEMATANG KERASAAN\"],\n [1209190002, 1209190, \"PEMATANG KERASAAN REJO\"],\n [1209190003, 1209190, \"MARIHAT BANDAR\"],\n [1209190004, 1209190, \"TIMBAAN\"],\n [1209190005, 1209190, \"NAGORI BANDAR\"],\n [1209190006, 1209190, \"BANDAR RAKYAT\"],\n [1209190007, 1209190, \"BANDAR PULO\"],\n [1209190008, 1209190, \"BANDAR JAWA\"],\n [1209190009, 1209190, \"PERDAGANGAN I\"],\n [1209190010, 1209190, \"BAH LIAS\"],\n [1209190011, 1209190, \"PERDAGANGAN II\"],\n [1209190012, 1209190, \"PERLANAAN\"],\n [1209190013, 1209190, \"SIDO TANI\"],\n [1209190014, 1209190, \"SUGARANG BAYU\"],\n [1209190015, 1209190, \"PERDAGANGAN III\"],\n [1209190016, 1209190, \"LANDBOUW\"],\n [1209191001, 1209191, \"PANOMBEAN BARU\"],\n [1209191002, 1209191, \"LIAS BARU\"],\n [1209191003, 1209191, \"BANDAR SILOU\"],\n [1209191004, 1209191, \"BANDAR MASILAM\"],\n [1209191005, 1209191, \"GUNUNG SERAWAN\"],\n [1209191006, 1209191, \"BANDAR MASILAM II\"],\n [1209191007, 1209191, \"PARTIMBALAN\"],\n [1209191008, 1209191, \"BANDAR TINGGI\"],\n [1209191009, 1209191, \"BANDAR REJO\"],\n [1209191010, 1209191, \"BANDAR GUNUNG\"],\n [1209200001, 1209200, \"PARBUTARAN\"],\n [1209200002, 1209200, \"MAYANG\"],\n [1209200003, 1209200, \"DUSUN PENGKOLAN\"],\n [1209200004, 1209200, \"BOSAR MALIGAS\"],\n [1209200005, 1209200, \"BOLUK\"],\n [1209200006, 1209200, \"SEI MANGKEI\"],\n [1209200007, 1209200, \"GUNUNG BAYU\"],\n [1209200008, 1209200, \"TALUN SARAGIH\"],\n [1209200009, 1209200, \"MARIHAT TANJUNG\"],\n [1209200010, 1209200, \"MARIHAT BUTAR\"],\n [1209200011, 1209200, \"SEI TOROP\"],\n [1209200012, 1209200, \"ADIL MAKMUR\"],\n [1209200013, 1209200, \"TELADAN\"],\n [1209200014, 1209200, \"TEMPEL JAYA\"],\n [1209200015, 1209200, \"SIDOMULYO\"],\n [1209200016, 1209200, \"NANGGAR BAYU\"],\n [1209200017, 1209200, \"MEKAR REJO\"],\n [1209210001, 1209210, \"SORDANG BOLON\"],\n [1209210002, 1209210, \"SAYUR MATINGGI\"],\n [1209210003, 1209210, \"TARATAK NAGODANG\"],\n [1209210004, 1209210, \"HUTA PARIK\"],\n [1209210005, 1209210, \"UJUNG PADANG\"],\n [1209210006, 1209210, \"TINJOWAN\"],\n [1209210007, 1209210, \"DUSUN ULU\"],\n [1209210008, 1209210, \"TELUK LAPIAN\"],\n [1209210009, 1209210, \"TANJUNG RAPUAN\"],\n [1209210010, 1209210, \"PAGAR BOSI\"],\n [1209210011, 1209210, \"BANGUN SORDANG\"],\n [1209210012, 1209210, \"AEK GER GER\"],\n [1209210013, 1209210, \"PULO PITU MARIHAT\"],\n [1209210014, 1209210, \"SIRINGAN RINGAN\"],\n [1209210015, 1209210, \"RIAH NAPOSO\"],\n [1209210016, 1209210, \"SEI MERBAU\"],\n [1209210017, 1209210, \"KAMPUNG LALANG\"],\n [1209210018, 1209210, \"SORDANG BARU\"],\n [1209210019, 1209210, \"BANJAR HULU\"],\n [1209210020, 1209210, \"RAWA MASIN\"],\n [1210030002, 1210030, \"SIDIANGKAT\"],\n [1210030003, 1210030, \"BATANG BERUH\"],\n [1210030004, 1210030, \"BINTANG HULU\"],\n [1210030005, 1210030, \"KALANG SIMBARA\"],\n [1210030006, 1210030, \"BINTANG\"],\n [1210030007, 1210030, \"KALANG\"],\n [1210030008, 1210030, \"KOTA SIDIKALANG\"],\n [1210030009, 1210030, \"BELANG MALUM\"],\n [1210030010, 1210030, \"KUTA GAMBIR\"],\n [1210030011, 1210030, \"HUTA RAKJAT\"],\n [1210030012, 1210030, \"BINTANG MERSADA\"],\n [1210031001, 1210031, \"BERAMPU\"],\n [1210031002, 1210031, \"KARING\"],\n [1210031003, 1210031, \"BANJAR TOBA\"],\n [1210031004, 1210031, \"PASI\"],\n [1210031005, 1210031, \"SAMBALIANG\"],\n [1210032001, 1210032, \"SITINJO\"],\n [1210032003, 1210032, \"PANJI DABUTAR\"],\n [1210032012, 1210032, \"SITINJO I\"],\n [1210032013, 1210032, \"SITINJO II\"],\n [1210040001, 1210040, \"PARBULUAN II\"],\n [1210040002, 1210040, \"PARBULUAN I\"],\n [1210040003, 1210040, \"PARBULUAN V\"],\n [1210040004, 1210040, \"PARBULUAN III\"],\n [1210040005, 1210040, \"PARBULUAN IV\"],\n [1210040006, 1210040, \"PARBULUAN VI\"],\n [1210040007, 1210040, \"LAE HOLE\"],\n [1210040008, 1210040, \"B A N G U N\"],\n [1210040009, 1210040, \"LAE HOLE I\"],\n [1210040010, 1210040, \"LAE HOLE II\"],\n [1210040011, 1210040, \"BANGUN I\"],\n [1210050001, 1210050, \"PEGAGAN JULU V\"],\n [1210050002, 1210050, \"PEGAGAN JULU IV\"],\n [1210050003, 1210050, \"PEGAGAN JULU II\"],\n [1210050004, 1210050, \"PEGAGAN JULU I\"],\n [1210050005, 1210050, \"PEGAGAN JULU III\"],\n [1210050006, 1210050, \"PEGAGAN JULU VI\"],\n [1210050007, 1210050, \"PEGAGAN JULU VII\"],\n [1210050008, 1210050, \"PEGAGAN JULU VIII\"],\n [1210050009, 1210050, \"PEGAGAN JULU IX\"],\n [1210050010, 1210050, \"PEGAGAN JULU X\"],\n [1210050011, 1210050, \"TANJUNG BERINGIN\"],\n [1210050012, 1210050, \"DOLOK TOLONG\"],\n [1210050013, 1210050, \"KUTA GUGUNG\"],\n [1210050014, 1210050, \"PARGAMBIRAN\"],\n [1210050015, 1210050, \"PERJUANGAN\"],\n [1210050016, 1210050, \"SILEUH-LEUH PARSAORAN\"],\n [1210050017, 1210050, \"PANGGURUAN\"],\n [1210050018, 1210050, \"TANJUNG BERINGIN I\"],\n [1210050019, 1210050, \"BARISAN NAULI\"],\n [1210051001, 1210051, \"SILALAHI II\"],\n [1210051002, 1210051, \"SILALAHI I\"],\n [1210051003, 1210051, \"PAROPO\"],\n [1210051004, 1210051, \"SILALAHI III\"],\n [1210051005, 1210051, \"PAROPO I\"],\n [1210060001, 1210060, \"LAE RAMBONG\"],\n [1210060002, 1210060, \"LAE AMBAT\"],\n [1210060003, 1210060, \"LAE PANGINUMAN\"],\n [1210060004, 1210060, \"SUMBARI\"],\n [1210060005, 1210060, \"BAKAL GAJAH\"],\n [1210060006, 1210060, \"URUK BELIN\"],\n [1210060007, 1210060, \"SIBORAS\"],\n [1210060008, 1210060, \"BONIAN\"],\n [1210060009, 1210060, \"BONGKARAS\"],\n [1210060010, 1210060, \"TUNGTUNG BATU\"],\n [1210060011, 1210060, \"LONGKOTAN\"],\n [1210060012, 1210060, \"PARONGIL\"],\n [1210060013, 1210060, \"SIRATAH\"],\n [1210060014, 1210060, \"POLLING ANAK-ANAK\"],\n [1210060015, 1210060, \"PALIPI\"],\n [1210060016, 1210060, \"LAE PANGAROAN\"],\n [1210061001, 1210061, \"SUMBUL\"],\n [1210061002, 1210061, \"KENTARA\"],\n [1210061003, 1210061, \"LAE PARIRA\"],\n [1210061004, 1210061, \"BULU DURI\"],\n [1210061005, 1210061, \"SEMPUNG POLLING\"],\n [1210061006, 1210061, \"PANDIANGAN\"],\n [1210061007, 1210061, \"LUMBAN SIHITE\"],\n [1210061008, 1210061, \"LUMBAN TORUAN\"],\n [1210061009, 1210061, \"KABAN JULU\"],\n [1210070001, 1210070, \"SINAMPANG\"],\n [1210070002, 1210070, \"SIHORBO\"],\n [1210070003, 1210070, \"SOBAN\"],\n [1210070004, 1210070, \"ADIAN NANGKA\"],\n [1210070005, 1210070, \"BUNTU RAJA\"],\n [1210070006, 1210070, \"GOMIT\"],\n [1210070007, 1210070, \"JUMANTUANG\"],\n [1210070008, 1210070, \"JUMASIULOK\"],\n [1210070009, 1210070, \"JUMATEGUH\"],\n [1210070010, 1210070, \"SOSORLONTUNG\"],\n [1210070011, 1210070, \"HUTA IMBARU\"],\n [1210070012, 1210070, \"MAJU\"],\n [1210070013, 1210070, \"ADIAN GUPA\"],\n [1210080001, 1210080, \"TAMBAHAN\"],\n [1210080002, 1210080, \"KUTA TENGAH\"],\n [1210080003, 1210080, \"LAE NUAHA\"],\n [1210080004, 1210080, \"SUNGAI RAYA\"],\n [1210080005, 1210080, \"GUNUNG MERIAH\"],\n [1210080006, 1210080, \"SIGAMBIR GAMBIR\"],\n [1210080007, 1210080, \"SILUMBOYAH\"],\n [1210080008, 1210080, \"PANGARIBUAN\"],\n [1210080009, 1210080, \"TUALANG\"],\n [1210080010, 1210080, \"BAKAL JULU\"],\n [1210080011, 1210080, \"SIPOLTONG\"],\n [1210080012, 1210080, \"P A N D A N\"],\n [1210090001, 1210090, \"LAE ITAM\"],\n [1210090002, 1210090, \"PARDOMUAN\"],\n [1210090003, 1210090, \"JAMBUR INDONESIA\"],\n [1210090004, 1210090, \"SIMUNGUN\"],\n [1210090005, 1210090, \"J A N J I\"],\n [1210090006, 1210090, \"LAE MARKELANG\"],\n [1210090007, 1210090, \"LAE LUHUNG\"],\n [1210090008, 1210090, \"SOPO BUTAR\"],\n [1210090009, 1210090, \"LAE SERING\"],\n [1210090010, 1210090, \"LAE HAPORAS\"],\n [1210100001, 1210100, \"SUMBUL TENGAH\"],\n [1210100002, 1210100, \"UJUNG TERAN\"],\n [1210100003, 1210100, \"JUMA GERAT\"],\n [1210100004, 1210100, \"SARINTONU\"],\n [1210100005, 1210100, \"PALDING\"],\n [1210100006, 1210100, \"BERTUNGEN JULU\"],\n [1210100007, 1210100, \"SUKANDEBI\"],\n [1210100008, 1210100, \"LAU MOLGAP\"],\n [1210100009, 1210100, \"LAU PAKPAK\"],\n [1210100011, 1210100, \"LAU MIL\"],\n [1210100012, 1210100, \"LAU BAGOT\"],\n [1210100013, 1210100, \"TIGA LINGGA\"],\n [1210100014, 1210100, \"LAUSIREME\"],\n [1210100019, 1210100, \"PALDING JAYA\"],\n [1210101001, 1210101, \"BUKIT LAU KERSIK\"],\n [1210101002, 1210101, \"GUNUNG SITEMBER\"],\n [1210101003, 1210101, \"BATU GUNGUN\"],\n [1210101004, 1210101, \"GUNDALING\"],\n [1210101005, 1210101, \"RANTE BESI\"],\n [1210101006, 1210101, \"KENDIT LIANG\"],\n [1210101007, 1210101, \"LAU LEBAH\"],\n [1210101008, 1210101, \"TUPAK RAJA\"],\n [1210110001, 1210110, \"TANJUNG SALUKSUK\"],\n [1210110002, 1210110, \"SIMANDUMA\"],\n [1210110003, 1210110, \"BANDAR HUTA USANG\"],\n [1210110004, 1210110, \"LINGGA RAJA I\"],\n [1210110005, 1210110, \"ONAN LAMA\"],\n [1210110006, 1210110, \"BUKIT TINGGI\"],\n [1210110007, 1210110, \"LAKSA\"],\n [1210110008, 1210110, \"SIMARTUGAN\"],\n [1210110009, 1210110, \"PERIK MBUE\"],\n [1210110010, 1210110, \"LINGGA RAJA II\"],\n [1210110011, 1210110, \"BUKIT BARU\"],\n [1210110012, 1210110, \"MBINANGA\"],\n [1210110013, 1210110, \"KUTA USANG\"],\n [1210120001, 1210120, \"RENUN\"],\n [1210120002, 1210120, \"PASIR TENGAH\"],\n [1210120003, 1210120, \"PAMAH\"],\n [1210120004, 1210120, \"KUTA BULUH\"],\n [1210120005, 1210120, \"TANAH PINEM\"],\n [1210120006, 1210120, \"KEMPAWA\"],\n [1210120007, 1210120, \"KUTA GAMBER\"],\n [1210120008, 1210120, \"LAU PERIMBON\"],\n [1210120009, 1210120, \"HARAPAN\"],\n [1210120010, 1210120, \"GUNUNG TUA\"],\n [1210120011, 1210120, \"SUKA DAME\"],\n [1210120012, 1210120, \"LAU TAWAR\"],\n [1210120013, 1210120, \"MANGAN MOLIH\"],\n [1210120014, 1210120, \"LAU NJUHAR\"],\n [1210120015, 1210120, \"LIANG JERING\"],\n [1210120016, 1210120, \"ALUR SUBUR\"],\n [1210120017, 1210120, \"BALANDUA\"],\n [1210120018, 1210120, \"PASIR MBELANG\"],\n [1210120019, 1210120, \"SINAR PAGI\"],\n [1211010001, 1211010, \"LAU SOLU\"],\n [1211010002, 1211010, \"KUTA PENGKIH\"],\n [1211010003, 1211010, \"RIMO BUNGA\"],\n [1211010004, 1211010, \"LAU MULGAP\"],\n [1211010005, 1211010, \"TANJUNG PAMAH\"],\n [1211010006, 1211010, \"MARDINGDING\"],\n [1211010007, 1211010, \"LAU KASUMPAT\"],\n [1211010008, 1211010, \"BANDAR PURBA\"],\n [1211010009, 1211010, \"LAU PENGULU\"],\n [1211010010, 1211010, \"LAU PAKAM\"],\n [1211010011, 1211010, \"LAU GARUT\"],\n [1211010012, 1211010, \"BUKIT MAKMUR\"],\n [1211020001, 1211020, \"LAU PERANGGUNAN\"],\n [1211020002, 1211020, \"DURIN RUGUN\"],\n [1211020003, 1211020, \"KINANGKONG\"],\n [1211020004, 1211020, \"LAU PERADEP\"],\n [1211020005, 1211020, \"LAUBALENG\"],\n [1211020006, 1211020, \"TANJUNG GUNUNG\"],\n [1211020007, 1211020, \"KUTAMBELIN\"],\n [1211020008, 1211020, \"MARTELU\"],\n [1211020009, 1211020, \"LINGGA MUDA\"],\n [1211020010, 1211020, \"MBAL-MBAL PETARUM\"],\n [1211020011, 1211020, \"PERBULAN\"],\n [1211020012, 1211020, \"BULUH PANCUR\"],\n [1211020013, 1211020, \"RAMBAH TAMPU\"],\n [1211020014, 1211020, \"BATU RONGKAM\"],\n [1211020015, 1211020, \"PINTU ANGIN\"],\n [1211030001, 1211030, \"LAU KAPUR\"],\n [1211030002, 1211030, \"KEM KEM\"],\n [1211030003, 1211030, \"GUNUNG\"],\n [1211030004, 1211030, \"SIMPANG PERGENDANGEN\"],\n [1211030005, 1211030, \"PERGENDANGEN\"],\n [1211030006, 1211030, \"TIGABINANGA\"],\n [1211030007, 1211030, \"KUTA GALOH\"],\n [1211030008, 1211030, \"KUTA RAYA\"],\n [1211030009, 1211030, \"BUNGA BARU\"],\n [1211030010, 1211030, \"PERTUMBUKEN\"],\n [1211030011, 1211030, \"KUALA\"],\n [1211030012, 1211030, \"KUTA BUARA\"],\n [1211030013, 1211030, \"SIMOLAP\"],\n [1211030014, 1211030, \"KUTA BANGUN\"],\n [1211030015, 1211030, \"SUKAJULU\"],\n [1211030016, 1211030, \"KUTAMBARU PUNTI\"],\n [1211030017, 1211030, \"KUTA GERAT\"],\n [1211030018, 1211030, \"LIMANG\"],\n [1211030019, 1211030, \"PERBESI\"],\n [1211030020, 1211030, \"BATUMAMAK\"],\n [1211040001, 1211040, \"NAMOSURO\"],\n [1211040002, 1211040, \"JANDI\"],\n [1211040003, 1211040, \"NAGA\"],\n [1211040004, 1211040, \"KETAWAREN\"],\n [1211040005, 1211040, \"LAU KIDUPEN\"],\n [1211040006, 1211040, \"LAU LINGGA\"],\n [1211040007, 1211040, \"PERNANTIN\"],\n [1211040008, 1211040, \"BEKILANG\"],\n [1211040009, 1211040, \"BULUH PANCUR\"],\n [1211040010, 1211040, \"JUHAR TARIGAN\"],\n [1211040011, 1211040, \"JUHAR PERANGIN-ANGIN\"],\n [1211040012, 1211040, \"KIDUPEN\"],\n [1211040013, 1211040, \"PASAR BARU\"],\n [1211040014, 1211040, \"MBETUNG\"],\n [1211040015, 1211040, \"GUNUNG JUHAR\"],\n [1211040016, 1211040, \"JUHAR GINTING\"],\n [1211040017, 1211040, \"SIGENDERANG\"],\n [1211040018, 1211040, \"BATUMAMAK\"],\n [1211040019, 1211040, \"NAGERI\"],\n [1211040020, 1211040, \"SUGIHEN\"],\n [1211040021, 1211040, \"SUKABABO\"],\n [1211040022, 1211040, \"KUTAGUGUNG\"],\n [1211040023, 1211040, \"KERIAHEN\"],\n [1211040024, 1211040, \"KUTAMBELIN\"],\n [1211040025, 1211040, \"JUHAR GINTING SADANIOGA\"],\n [1211050001, 1211050, \"SARIMUNTE\"],\n [1211050002, 1211050, \"KUTAMBARU\"],\n [1211050003, 1211050, \"GUNUNG SARIBU\"],\n [1211050004, 1211050, \"KABANTUA\"],\n [1211050005, 1211050, \"GURUBENUA\"],\n [1211050006, 1211050, \"BARUNG KERSAP\"],\n [1211050007, 1211050, \"BIAK NAMPE\"],\n [1211050008, 1211050, \"TANJUNG BERINGIN\"],\n [1211050009, 1211050, \"PERTUMBUNGEN\"],\n [1211050010, 1211050, \"PARIMBALANG\"],\n [1211050011, 1211050, \"MUNTE\"],\n [1211050012, 1211050, \"GUNUNG MANUMPAK\"],\n [1211050013, 1211050, \"SELAKKAR\"],\n [1211050014, 1211050, \"SARINEMBAH\"],\n [1211050015, 1211050, \"SINGGAMANIK\"],\n [1211050016, 1211050, \"NAGERI\"],\n [1211050017, 1211050, \"KUTASUAH\"],\n [1211050018, 1211050, \"KINEPPEN\"],\n [1211050019, 1211050, \"BULUH NAMAN\"],\n [1211050020, 1211050, \"BANDAR MERIAH\"],\n [1211050021, 1211050, \"SUKARAME\"],\n [1211050022, 1211050, \"KUTAGERAT\"],\n [1211060001, 1211060, \"POLA TEBU\"],\n [1211060002, 1211060, \"GUNUNG MERIAH\"],\n [1211060003, 1211060, \"NEGERI JAHE\"],\n [1211060004, 1211060, \"BUAH RAYA\"],\n [1211060005, 1211060, \"BINTANG MERIAH\"],\n [1211060006, 1211060, \"SIABANG ABANG\"],\n [1211060007, 1211060, \"JINABUN\"],\n [1211060008, 1211060, \"KUTA BULUH\"],\n [1211060009, 1211060, \"LAU BULUH\"],\n [1211060010, 1211060, \"KUTA MALE\"],\n [1211060011, 1211060, \"UJUNG DELENG\"],\n [1211060012, 1211060, \"TANJUNG MERAHE\"],\n [1211060013, 1211060, \"LIANG MERDEKA\"],\n [1211060014, 1211060, \"RIH TENGAH\"],\n [1211060015, 1211060, \"MBURIDI\"],\n [1211060016, 1211060, \"KUTA BULUH GUGUNG\"],\n [1211070002, 1211070, \"BATUKARANG\"],\n [1211070003, 1211070, \"RIMOKAYU\"],\n [1211070004, 1211070, \"CIMBANG\"],\n [1211070005, 1211070, \"UJUNG PAYUNG\"],\n [1211070006, 1211070, \"PAYUNG\"],\n [1211070007, 1211070, \"SUKA MERIAH\"],\n [1211070008, 1211070, \"GURU KINAYAN\"],\n [1211070009, 1211070, \"SELANDI\"],\n [1211071001, 1211071, \"TANJUNG PULO\"],\n [1211071002, 1211071, \"TANJUNG MBELANG\"],\n [1211071003, 1211071, \"NARI GUNUNG DUA\"],\n [1211071004, 1211071, \"JANDI MERIAH\"],\n [1211071005, 1211071, \"SUKA TENDEL\"],\n [1211071006, 1211071, \"TANJUNG MERAWA\"],\n [1211071007, 1211071, \"TIGANDERKET\"],\n [1211071008, 1211071, \"PERBAJI\"],\n [1211071009, 1211071, \"TEMBURUN\"],\n [1211071010, 1211071, \"MARDINGDING\"],\n [1211071011, 1211071, \"KUTA MBARU\"],\n [1211071012, 1211071, \"SUSUK\"],\n [1211071013, 1211071, \"GUNUNG MERLAWAN\"],\n [1211071014, 1211071, \"NARI GUNUNG SATU\"],\n [1211071015, 1211071, \"KUTA GALUH\"],\n [1211071016, 1211071, \"PENAMPEN\"],\n [1211071017, 1211071, \"KUTA KEPAR\"],\n [1211080001, 1211080, \"BEGANDING\"],\n [1211080002, 1211080, \"SERUMBIA\"],\n [1211080003, 1211080, \"NANG BELAWAN\"],\n [1211080004, 1211080, \"LINGGA\"],\n [1211080005, 1211080, \"LINGGA JULU\"],\n [1211080006, 1211080, \"NDOKUM SIROGA\"],\n [1211080007, 1211080, \"SURBAKTI\"],\n [1211080008, 1211080, \"TIGA PANCUR\"],\n [1211080009, 1211080, \"BERASTEPU\"],\n [1211080010, 1211080, \"PINTU BESI\"],\n [1211080011, 1211080, \"JERAYA\"],\n [1211080012, 1211080, \"PERTEGUHEN\"],\n [1211080013, 1211080, \"KUTA TENGAH\"],\n [1211080014, 1211080, \"TORONG\"],\n [1211080015, 1211080, \"GAJAH\"],\n [1211080016, 1211080, \"BULAN BARU\"],\n [1211080021, 1211080, \"GAMBER\"],\n [1211081001, 1211081, \"KUTA GUGUNG\"],\n [1211081002, 1211081, \"SIGARANG GARANG\"],\n [1211081003, 1211081, \"BEKERAH\"],\n [1211081004, 1211081, \"SIMACEM\"],\n [1211081005, 1211081, \"SUKANALU\"],\n [1211081006, 1211081, \"KUTA TONGGAL\"],\n [1211081007, 1211081, \"SUKA NDEBI\"],\n [1211081008, 1211081, \"NAMAN\"],\n [1211081009, 1211081, \"SUKATEPU\"],\n [1211081010, 1211081, \"NDESKATI\"],\n [1211081011, 1211081, \"KUTA MBELIN\"],\n [1211081012, 1211081, \"GUNG PINTO\"],\n [1211081013, 1211081, \"KEBAYAKEN\"],\n [1211081014, 1211081, \"KUTA RAYAT\"],\n [1211082001, 1211082, \"DERAM\"],\n [1211082002, 1211082, \"UJUNG TERAN\"],\n [1211082003, 1211082, \"CINTA RAYAT\"],\n [1211082004, 1211082, \"SADA PERARIH\"],\n [1211082005, 1211082, \"SEMANGAT\"],\n [1211082006, 1211082, \"MERDEKA\"],\n [1211082007, 1211082, \"GONGSOL\"],\n [1211082008, 1211082, \"JARANGUDA\"],\n [1211082009, 1211082, \"SEMANGAT GUNUNG\"],\n [1211090001, 1211090, \"LAUSIMOMO\"],\n [1211090002, 1211090, \"KANDIBATA\"],\n [1211090003, 1211090, \"KACARIBU\"],\n [1211090004, 1211090, \"LAU CIMBA\"],\n [1211090005, 1211090, \"PADANG MAS\"],\n [1211090006, 1211090, \"GUNG LETO\"],\n [1211090007, 1211090, \"GUNG NEGERI\"],\n [1211090008, 1211090, \"SAMURA\"],\n [1211090009, 1211090, \"KETAREN\"],\n [1211090010, 1211090, \"KAMPUNG DALAM\"],\n [1211090011, 1211090, \"RUMAH KABANJAHE\"],\n [1211090012, 1211090, \"KABAN\"],\n [1211090013, 1211090, \"SUMBER MUFAKAT\"],\n [1211100001, 1211100, \"GURUSINGA\"],\n [1211100002, 1211100, \"R A Y A\"],\n [1211100003, 1211100, \"RUMAH BERASTAGI\"],\n [1211100004, 1211100, \"TAMBAK LAU MULGAP II\"],\n [1211100005, 1211100, \"GUNDALING II\"],\n [1211100006, 1211100, \"GUNDALING I\"],\n [1211100007, 1211100, \"TAMBAK LAU MULGAP I\"],\n [1211100008, 1211100, \"SEMPAJAYA\"],\n [1211100009, 1211100, \"D A U L U\"],\n [1211100010, 1211100, \"LAU GUMBA\"],\n [1211110001, 1211110, \"SUKAMAJU\"],\n [1211110002, 1211110, \"KUTA MBELIN\"],\n [1211110003, 1211110, \"SINGA\"],\n [1211110004, 1211110, \"KUBU SIMBELANG\"],\n [1211110005, 1211110, \"KACINAMBUN\"],\n [1211110006, 1211110, \"LAU RIMAN\"],\n [1211110007, 1211110, \"MANUK MULIA\"],\n [1211110008, 1211110, \"KUTA KEPAR\"],\n [1211110009, 1211110, \"BUNURAYA\"],\n [1211110010, 1211110, \"MULAWARI\"],\n [1211110011, 1211110, \"SUKA\"],\n [1211110012, 1211110, \"SUKADAME\"],\n [1211110013, 1211110, \"TIGAPANAH\"],\n [1211110014, 1211110, \"KUTA BALE\"],\n [1211110015, 1211110, \"SEBERAYA\"],\n [1211110016, 1211110, \"LEPAR SAMURA\"],\n [1211110017, 1211110, \"AJIMBELANG\"],\n [1211110018, 1211110, \"KUTAJULU\"],\n [1211110021, 1211110, \"BERTAH\"],\n [1211110023, 1211110, \"AJIBUHARA\"],\n [1211110024, 1211110, \"AJIJAHE\"],\n [1211110025, 1211110, \"AJIJULU\"],\n [1211110026, 1211110, \"SALIT\"],\n [1211110027, 1211110, \"SUKA MBAYAK\"],\n [1211110028, 1211110, \"SUKA SIPILIHEN\"],\n [1211110029, 1211110, \"LAMBAR\"],\n [1211111001, 1211111, \"KUBUCOLIA\"],\n [1211111002, 1211111, \"SAMPUN\"],\n [1211111003, 1211111, \"BUKIT\"],\n [1211111004, 1211111, \"SUGIHEN\"],\n [1211111005, 1211111, \"MELAS\"],\n [1211111006, 1211111, \"UJUNG SAMPUN\"],\n [1211111007, 1211111, \"DOLAT RAYAT\"],\n [1211120001, 1211120, \"KODON-KODON\"],\n [1211120002, 1211120, \"SIBOLANGIT\"],\n [1211120003, 1211120, \"TONGGING\"],\n [1211120004, 1211120, \"PENGAMBATEN\"],\n [1211120005, 1211120, \"NAGALINGGA\"],\n [1211120006, 1211120, \"PANCUR BATU\"],\n [1211120007, 1211120, \"PERTIBI TEMBE\"],\n [1211120008, 1211120, \"PERTIBI LAMA\"],\n [1211120009, 1211120, \"MEREK\"],\n [1211120010, 1211120, \"SITUNGGALING\"],\n [1211120011, 1211120, \"NEGERI TONGGING\"],\n [1211120012, 1211120, \"GARINGGING\"],\n [1211120013, 1211120, \"BANDAR TONGGING\"],\n [1211120014, 1211120, \"MULIA RAKYAT\"],\n [1211120015, 1211120, \"D O K A N\"],\n [1211120016, 1211120, \"REGAJI\"],\n [1211120017, 1211120, \"SUKAMANDI\"],\n [1211120018, 1211120, \"NAGARA\"],\n [1211120019, 1211120, \"AJINEMBAH\"],\n [1211130001, 1211130, \"RUMAMIS\"],\n [1211130002, 1211130, \"SEMANGAT\"],\n [1211130003, 1211130, \"SINAMAN\"],\n [1211130004, 1211130, \"TALIMBARU\"],\n [1211130005, 1211130, \"PERTUMBUKEN\"],\n [1211130006, 1211130, \"BULAN JULU\"],\n [1211130007, 1211130, \"BULAN JAHE\"],\n [1211130008, 1211130, \"SUKANALU\"],\n [1211130009, 1211130, \"SUKAJULU\"],\n [1211130010, 1211130, \"BARUSJAHE\"],\n [1211130011, 1211130, \"SERDANG\"],\n [1211130012, 1211130, \"PENAMPEN\"],\n [1211130013, 1211130, \"SARIMANIS\"],\n [1211130014, 1211130, \"TENGKIDIK\"],\n [1211130015, 1211130, \"PARIBUN\"],\n [1211130016, 1211130, \"PERSADANTA\"],\n [1211130017, 1211130, \"SIKAP\"],\n [1211130018, 1211130, \"TANJUNG BARUS\"],\n [1211130019, 1211130, \"BARUSJULU\"],\n [1212010001, 1212010, \"KUTA BAYU\"],\n [1212010002, 1212010, \"GUNUNG SINEMBAH\"],\n [1212010003, 1212010, \"GUNUNG PARIBUAN\"],\n [1212010004, 1212010, \"SIMEMPAR\"],\n [1212010005, 1212010, \"GUNUNG SERIBU\"],\n [1212010006, 1212010, \"KUTA TENGAH\"],\n [1212010007, 1212010, \"PEKAN GUNUNG MERIAH\"],\n [1212010008, 1212010, \"GUNUNG MERIAH\"],\n [1212010009, 1212010, \"BINTANG MERIAH\"],\n [1212010010, 1212010, \"UJUNG MERIAH\"],\n [1212010011, 1212010, \"MARJANJI PEMATANG\"],\n [1212010012, 1212010, \"MARJANJI TONGAH\"],\n [1212020001, 1212020, \"LIANG PEMATANG\"],\n [1212020002, 1212020, \"LIANG MUDA\"],\n [1212020003, 1212020, \"TANJUNG RAJA\"],\n [1212020004, 1212020, \"GUNUNG MANUMPAK B\"],\n [1212020005, 1212020, \"SIPINGGAN\"],\n [1212020006, 1212020, \"TANJUNG MUDA\"],\n [1212020007, 1212020, \"BAH BAH BUNTU\"],\n [1212020008, 1212020, \"KUTA MBELIN\"],\n [1212020009, 1212020, \"TANJUNG BAMPU\"],\n [1212020010, 1212020, \"TANJUNG TIMUR\"],\n [1212020011, 1212020, \"DURIN TINGGUNG\"],\n [1212020012, 1212020, \"RUMAH RIH\"],\n [1212020013, 1212020, \"SIBUNGA BUNGA HILIR\"],\n [1212020014, 1212020, \"GUNUNG MANUMPAK A\"],\n [1212020015, 1212020, \"DURIAN EMPAT MBELANG\"],\n [1212020016, 1212020, \"TIGA JUHAR\"],\n [1212020017, 1212020, \"RANGGITGIT\"],\n [1212020018, 1212020, \"RUMAH LENGO\"],\n [1212020019, 1212020, \"RUMAH SUMBUL\"],\n [1212020020, 1212020, \"TANAH GARA HULU\"],\n [1212030001, 1212030, \"BANDAR BARU\"],\n [1212030002, 1212030, \"SIKEBEN\"],\n [1212030003, 1212030, \"MARTELU\"],\n [1212030004, 1212030, \"BUKUM\"],\n [1212030005, 1212030, \"NEGRI GUGUNG\"],\n [1212030006, 1212030, \"CINTA RAKYAT\"],\n [1212030007, 1212030, \"KETANGKUHEN\"],\n [1212030008, 1212030, \"SUKA MAJU\"],\n [1212030009, 1212030, \"BULUH AWAR\"],\n [1212030010, 1212030, \"BATU LAYANG\"],\n [1212030011, 1212030, \"RUMAH PIL-PIL\"],\n [1212030012, 1212030, \"SUKA MAKMUR\"],\n [1212030013, 1212030, \"DURIN SERUGUN\"],\n [1212030014, 1212030, \"UJUNG DELENG\"],\n [1212030015, 1212030, \"TANJUNG BERINGIN\"],\n [1212030016, 1212030, \"TAMBUNEN\"],\n [1212030017, 1212030, \"PUANG AJA\"],\n [1212030018, 1212030, \"BETIMUS BARU\"],\n [1212030019, 1212030, \"RUMAH SUMBUL\"],\n [1212030020, 1212030, \"RUMAH KINANGKUNG SUKA PIRING\"],\n [1212030021, 1212030, \"SALA BULAN\"],\n [1212030022, 1212030, \"BENGKURUNG\"],\n [1212030023, 1212030, \"KUALA\"],\n [1212030024, 1212030, \"BATU MBELIN\"],\n [1212030025, 1212030, \"SIBOLANGIT\"],\n [1212030026, 1212030, \"SEMBAHE\"],\n [1212030027, 1212030, \"BUAH NABAR\"],\n [1212030028, 1212030, \"BINGKAWAN\"],\n [1212030029, 1212030, \"SAYUM SABAH\"],\n [1212030030, 1212030, \"RAMBUNG BARU\"],\n [1212040001, 1212040, \"SUKA MAKMUR\"],\n [1212040002, 1212040, \"PERPANDEN\"],\n [1212040003, 1212040, \"NAMO MIRIK\"],\n [1212040004, 1212040, \"SUKA DAME\"],\n [1212040005, 1212040, \"KWALA LAU BICIK\"],\n [1212040006, 1212040, \"PASAR X\"],\n [1212040007, 1212040, \"SAMPE CITA\"],\n [1212040008, 1212040, \"KUTALIMBARU\"],\n [1212040009, 1212040, \"SUKA RENDE\"],\n [1212040010, 1212040, \"LAU BAKERI\"],\n [1212040011, 1212040, \"SILEBO LEBO\"],\n [1212040012, 1212040, \"SAWIT REJO\"],\n [1212040013, 1212040, \"SEI MENCIRIM\"],\n [1212040014, 1212040, \"NAMO RUBE JULU\"],\n [1212050001, 1212050, \"BINTANG MERIAH\"],\n [1212050002, 1212050, \"SUGAU\"],\n [1212050003, 1212050, \"TIANG LAYAR\"],\n [1212050004, 1212050, \"SALAM TANI\"],\n [1212050005, 1212050, \"NAMO RIAM\"],\n [1212050006, 1212050, \"DURIN SIMBELANG A\"],\n [1212050007, 1212050, \"DURIN TUNGGAL\"],\n [1212050008, 1212050, \"PERTAMPILEN\"],\n [1212050009, 1212050, \"HULU\"],\n [1212050010, 1212050, \"NAMO SIMPUR\"],\n [1212050011, 1212050, \"NAMO BINTANG\"],\n [1212050012, 1212050, \"SIMALINGKAR A\"],\n [1212050013, 1212050, \"PERUMNAS SIMALINGKAR\"],\n [1212050014, 1212050, \"B A R U\"],\n [1212050015, 1212050, \"L A M A\"],\n [1212050016, 1212050, \"KAMPUNG TENGAH\"],\n [1212050017, 1212050, \"NAMORIH\"],\n [1212050018, 1212050, \"DURIAN JANGAK\"],\n [1212050019, 1212050, \"TUNTUNGAN II\"],\n [1212050020, 1212050, \"TUNTUNGAN I\"],\n [1212050021, 1212050, \"GUNUNG TINGGI\"],\n [1212050022, 1212050, \"SEI GELUGUR\"],\n [1212050023, 1212050, \"SUKA RAYA\"],\n [1212050024, 1212050, \"TANJUNG ANOM\"],\n [1212050025, 1212050, \"SEMBAHE BARU\"],\n [1212060001, 1212060, \"RIMO MUNGKUR\"],\n [1212060002, 1212060, \"NAMO BATANG\"],\n [1212060003, 1212060, \"BEKUKUL\"],\n [1212060004, 1212060, \"NAMO PINANG\"],\n [1212060005, 1212060, \"TANJUNG SELAMAT\"],\n [1212060006, 1212060, \"NAMO PAKAM\"],\n [1212060007, 1212060, \"SUKA MULIA HULU\"],\n [1212060008, 1212060, \"URUK GEDANG\"],\n [1212060009, 1212060, \"SUKA MULIA HILIR\"],\n [1212060010, 1212060, \"SILUE LUE\"],\n [1212060011, 1212060, \"LUBANG IDO\"],\n [1212060012, 1212060, \"RUMAH MBACANG\"],\n [1212060013, 1212060, \"RUMAH KEBEN\"],\n [1212060014, 1212060, \"TANGKAHAN\"],\n [1212060015, 1212060, \"CINTA RAKYAT\"],\n [1212060016, 1212060, \"GUNUNG BERITA\"],\n [1212060017, 1212060, \"NAMO RAMBE\"],\n [1212060018, 1212060, \"NAMO LANDUR\"],\n [1212060019, 1212060, \"NAMO MBARU\"],\n [1212060020, 1212060, \"SALANG TUNGIR\"],\n [1212060021, 1212060, \"GUNUNG KELAWAS\"],\n [1212060022, 1212060, \"BATU REJO\"],\n [1212060023, 1212060, \"BATU MBELIN\"],\n [1212060024, 1212060, \"KUTA TENGAH\"],\n [1212060025, 1212060, \"JATI KESUMA\"],\n [1212060026, 1212060, \"JABA\"],\n [1212060027, 1212060, \"TIMBANG LAWAN\"],\n [1212060028, 1212060, \"BATU GEMUK\"],\n [1212060029, 1212060, \"LAU MULGAP\"],\n [1212060030, 1212060, \"KUALA SIMEME\"],\n [1212060031, 1212060, \"KUTA TUALAH\"],\n [1212060032, 1212060, \"NAMO MBELIN\"],\n [1212060033, 1212060, \"SUDI REJO\"],\n [1212060034, 1212060, \"BATU PENJEMURAN\"],\n [1212060035, 1212060, \"UJUNG LABUHEN\"],\n [1212060036, 1212060, \"DELI TUA\"],\n [1212070001, 1212070, \"MARDINDING JULU\"],\n [1212070002, 1212070, \"PENEN\"],\n [1212070003, 1212070, \"PER RIA RIA\"],\n [1212070004, 1212070, \"SARI LABA JAHE\"],\n [1212070005, 1212070, \"BIRU BIRU\"],\n [1212070006, 1212070, \"KUALA DEKAH\"],\n [1212070007, 1212070, \"RUMAH GERAT\"],\n [1212070008, 1212070, \"TANJUNG SENA\"],\n [1212070009, 1212070, \"KUTA MULYO\"],\n [1212070010, 1212070, \"MBARUAI\"],\n [1212070011, 1212070, \"NAMO TUALANG\"],\n [1212070012, 1212070, \"KAMPUNG SELAMAT\"],\n [1212070013, 1212070, \"SIDODADI\"],\n [1212070014, 1212070, \"NAMO SURO BARU\"],\n [1212070015, 1212070, \"AJI BAHO\"],\n [1212070016, 1212070, \"CANDI REJO\"],\n [1212070017, 1212070, \"SIDOMULYO\"],\n [1212080001, 1212080, \"RAMBAI\"],\n [1212080002, 1212080, \"KUTA JURUNG\"],\n [1212080003, 1212080, \"PENUNGKIREN\"],\n [1212080004, 1212080, \"LAU RAKIT\"],\n [1212080005, 1212080, \"TALA PETA\"],\n [1212080006, 1212080, \"SIGUCI\"],\n [1212080007, 1212080, \"GUNUNG RINTIS\"],\n [1212080008, 1212080, \"LAU REMPAH\"],\n [1212080009, 1212080, \"JUMA TOMBAK\"],\n [1212080010, 1212080, \"NEGARA/BERINGIN\"],\n [1212080011, 1212080, \"TALUN KENAS\"],\n [1212080012, 1212080, \"SUMBUL\"],\n [1212080013, 1212080, \"LIMAU MUNGKUR\"],\n [1212080014, 1212080, \"TADUKAN RAGA\"],\n [1212080015, 1212080, \"LAU BARUS BARU\"],\n [1212090010, 1212090, \"MABAR\"],\n [1212090011, 1212090, \"SIBAGANDING\"],\n [1212090012, 1212090, \"BAH BALUA\"],\n [1212090013, 1212090, \"RUMAH DELENG\"],\n [1212090014, 1212090, \"BANDAR GUGUNG\"],\n [1212090015, 1212090, \"BANDAR MERIAH\"],\n [1212090016, 1212090, \"PERGURUAN\"],\n [1212090017, 1212090, \"BANGUN PURBA TENGAH\"],\n [1212090018, 1212090, \"DAMAK MALIHO\"],\n [1212090019, 1212090, \"SUKA LUWE\"],\n [1212090020, 1212090, \"URUNG GANJANG\"],\n [1212090021, 1212090, \"BANDAR KWALA\"],\n [1212090022, 1212090, \"MAROMBUN BARAT\"],\n [1212090023, 1212090, \"MAROMBUN UJUNG JAWI\"],\n [1212090024, 1212090, \"BAH PERAK\"],\n [1212090025, 1212090, \"BANGUN PURBA\"],\n [1212090026, 1212090, \"GREAHAN\"],\n [1212090027, 1212090, \"CIMAHE\"],\n [1212090028, 1212090, \"BATU GINGGING\"],\n [1212090029, 1212090, \"TANJUNG PURBA\"],\n [1212090030, 1212090, \"SIALANG\"],\n [1212090031, 1212090, \"BAGERPANG\"],\n [1212090032, 1212090, \"BATU RATA\"],\n [1212090033, 1212090, \"UJUNG RAMBE\"],\n [1212190001, 1212190, \"KAMPUNG PAKU\"],\n [1212190007, 1212190, \"BANDAR KWALA\"],\n [1212190008, 1212190, \"BARU TITI BESI\"],\n [1212190012, 1212190, \"PULAU TAGOR BARU\"],\n [1212190013, 1212190, \"GALANG BARAT\"],\n [1212190014, 1212190, \"KOTANGAN\"],\n [1212190015, 1212190, \"SUNGEI PUTIH\"],\n [1212190016, 1212190, \"PAYA KUDA\"],\n [1212190017, 1212190, \"KAMPUNG KELAPA SATU\"],\n [1212190018, 1212190, \"PISANG PALA\"],\n [1212190019, 1212190, \"PETUMBUKAN\"],\n [1212190020, 1212190, \"TANJUNG GUSTI\"],\n [1212190021, 1212190, \"SUNGAI KARANG\"],\n [1212190022, 1212190, \"KAMPUNG GALANG SUKA\"],\n [1212190023, 1212190, \"GALANG KOTA\"],\n [1212190024, 1212190, \"TIMBANG DELI\"],\n [1212190025, 1212190, \"JAHARUM A\"],\n [1212190026, 1212190, \"TANAH MERAH\"],\n [1212190027, 1212190, \"PERTANGGUHAN\"],\n [1212190028, 1212190, \"TANJUNG SIPORKIS\"],\n [1212190029, 1212190, \"BATU LOKONG\"],\n [1212190030, 1212190, \"NAGA REJO\"],\n [1212190031, 1212190, \"PAYA ITIK\"],\n [1212190032, 1212190, \"PAYA SAMPIR\"],\n [1212190033, 1212190, \"KAMPUNG JOHAR BARU\"],\n [1212190034, 1212190, \"KOTASAN\"],\n [1212190035, 1212190, \"JAHARUM B\"],\n [1212190036, 1212190, \"TANAH ABANG\"],\n [1212190037, 1212190, \"KRAMAT GAJAH\"],\n [1212200001, 1212200, \"MEDAN SINEMBAH\"],\n [1212200002, 1212200, \"BANDAR LABUHAN\"],\n [1212200003, 1212200, \"BANGUN REJO\"],\n [1212200004, 1212200, \"AEK PANCUR\"],\n [1212200005, 1212200, \"NAGA TIMBUL\"],\n [1212200006, 1212200, \"LENGAU SERPANG\"],\n [1212200007, 1212200, \"SEI MERAH\"],\n [1212200008, 1212200, \"DAGANG KERAWAN\"],\n [1212200009, 1212200, \"TANJUNG MORAWA PEKAN\"],\n [1212200010, 1212200, \"TANJUNG MORAWA A\"],\n [1212200011, 1212200, \"LIMAU MANIS\"],\n [1212200012, 1212200, \"UJUNG SERDANG\"],\n [1212200013, 1212200, \"BANGUN SARI\"],\n [1212200014, 1212200, \"BANGUN SARI BARU\"],\n [1212200015, 1212200, \"BUNTU BEDIMBAR\"],\n [1212200016, 1212200, \"TELAGA SARI\"],\n [1212200017, 1212200, \"DAGANG KELAMBIR\"],\n [1212200018, 1212200, \"TANJUNG MORAWA B\"],\n [1212200019, 1212200, \"TANJUNG BARU\"],\n [1212200020, 1212200, \"PUNDEN REJO\"],\n [1212200021, 1212200, \"TANJUNG MULIA\"],\n [1212200022, 1212200, \"PERDAMAIAN\"],\n [1212200023, 1212200, \"WONO SARI\"],\n [1212200024, 1212200, \"DALU 10 A\"],\n [1212200025, 1212200, \"DALU 10 B\"],\n [1212200026, 1212200, \"PENARA KEBUN\"],\n [1212210001, 1212210, \"PATUMBAK SATU\"],\n [1212210002, 1212210, \"LANTASAN BARU\"],\n [1212210003, 1212210, \"LANTASAN LAMA\"],\n [1212210004, 1212210, \"PATUMBAK DUA\"],\n [1212210005, 1212210, \"SIGARA GARA\"],\n [1212210006, 1212210, \"MARINDAL SATU\"],\n [1212210007, 1212210, \"PATUMBAK KAMPUNG\"],\n [1212210008, 1212210, \"MARINDAL DUA\"],\n [1212220001, 1212220, \"DELI TUA BARAT\"],\n [1212220002, 1212220, \"DELI TUA TIMUR\"],\n [1212220003, 1212220, \"DELI TUA\"],\n [1212220004, 1212220, \"MEKAR SARI\"],\n [1212220005, 1212220, \"KEDAI DURIAN\"],\n [1212220006, 1212220, \"SUKA MAKMUR\"],\n [1212230001, 1212230, \"TELAGA SARI\"],\n [1212230002, 1212230, \"SEI MENCIRIM\"],\n [1212230003, 1212230, \"SUKA MAJU\"],\n [1212230004, 1212230, \"SEI BERAS SEKATA\"],\n [1212230005, 1212230, \"TANJUNG SELAMAT\"],\n [1212230006, 1212230, \"SUNGGAL KANAN\"],\n [1212230007, 1212230, \"MEDAN KRIO\"],\n [1212230008, 1212230, \"PAYA GELI\"],\n [1212230009, 1212230, \"PUJI MULYO\"],\n [1212230010, 1212230, \"SEI SEMAYANG\"],\n [1212230011, 1212230, \"SUMBER MELATI DISKI\"],\n [1212230012, 1212230, \"SERBA JADI\"],\n [1212230013, 1212230, \"MULYOREJO\"],\n [1212230014, 1212230, \"KAMPUNG LALANG\"],\n [1212230015, 1212230, \"PURWODADI\"],\n [1212230016, 1212230, \"TANJUNG GUSTA\"],\n [1212230017, 1212230, \"HELVETIA\"],\n [1212240001, 1212240, \"TANDAM HULU DUA\"],\n [1212240002, 1212240, \"KAMPUNG TANDAM HULU SATU\"],\n [1212240003, 1212240, \"PAYA BAKUNG\"],\n [1212240004, 1212240, \"KLAMBIR LIMA KAMPUNG\"],\n [1212240005, 1212240, \"KLAMBIR LIMA KEBON\"],\n [1212240006, 1212240, \"KLUMPANG KEBON\"],\n [1212240007, 1212240, \"KLUMPANG KAMPUNG\"],\n [1212240008, 1212240, \"SIALANG MUDA\"],\n [1212240009, 1212240, \"BULU CINA\"],\n [1212240010, 1212240, \"TANDAM HILIR SATU\"],\n [1212240011, 1212240, \"TANDAM HILIR DUA\"],\n [1212240012, 1212240, \"KOTA DATAR\"],\n [1212240013, 1212240, \"KOTA RANTANG\"],\n [1212240014, 1212240, \"KAMPUNG LAMA\"],\n [1212240015, 1212240, \"KLAMBIR\"],\n [1212240016, 1212240, \"KAMPUNG SELEMAK\"],\n [1212240017, 1212240, \"HAMPARAN PERAK\"],\n [1212240018, 1212240, \"SUNGAI BAHARU\"],\n [1212240019, 1212240, \"PALUH MANAN\"],\n [1212240020, 1212240, \"PALUH KURAU\"],\n [1212250001, 1212250, \"HELVETIA\"],\n [1212250002, 1212250, \"MANUNGGAL\"],\n [1212250003, 1212250, \"PEMATANG JOHAR\"],\n [1212250004, 1212250, \"TELAGA TUJUH\"],\n [1212250005, 1212250, \"KARANG GADING\"],\n [1212260001, 1212260, \"AMPLAS\"],\n [1212260002, 1212260, \"KENANGAN\"],\n [1212260003, 1212260, \"TEMBUNG\"],\n [1212260004, 1212260, \"SUMBER REJO TIMUR\"],\n [1212260005, 1212260, \"SEI ROTAN\"],\n [1212260006, 1212260, \"BANDAR KLIPPA\"],\n [1212260007, 1212260, \"BANDAR KHALIPAH\"],\n [1212260008, 1212260, \"MEDAN ESTATE\"],\n [1212260009, 1212260, \"LAUT DENDANG\"],\n [1212260010, 1212260, \"SAMPALI\"],\n [1212260011, 1212260, \"BANDAR SETIA\"],\n [1212260012, 1212260, \"KOLAM\"],\n [1212260013, 1212260, \"SAENTIS\"],\n [1212260014, 1212260, \"CINTA RAKYAT\"],\n [1212260015, 1212260, \"CINTA DAMAI\"],\n [1212260016, 1212260, \"PEMATANG LALANG\"],\n [1212260017, 1212260, \"PERCUT\"],\n [1212260018, 1212260, \"TANJUNG REJO\"],\n [1212260019, 1212260, \"TANJUNG SELAMAT\"],\n [1212260020, 1212260, \"KENANGAN BARU\"],\n [1212270001, 1212270, \"SENA\"],\n [1212270002, 1212270, \"TUMPATAN NIBUNG\"],\n [1212270003, 1212270, \"BARU\"],\n [1212270004, 1212270, \"TANJUNG SARI\"],\n [1212270005, 1212270, \"BAKARAN BATU\"],\n [1212270006, 1212270, \"BINTANG MERIAH\"],\n [1212270007, 1212270, \"BATANG KUIS PEKAN\"],\n [1212270008, 1212270, \"PAYA GAMBAR\"],\n [1212270009, 1212270, \"SIDODADI\"],\n [1212270010, 1212270, \"SUGIHARJO\"],\n [1212270011, 1212270, \"MESJID\"],\n [1212280001, 1212280, \"SEI TUAN\"],\n [1212280002, 1212280, \"TENGAH\"],\n [1212280003, 1212280, \"KELAMBIR\"],\n [1212280004, 1212280, \"DURIAN\"],\n [1212280005, 1212280, \"KUBAH SENTANG\"],\n [1212280006, 1212280, \"PERKBUNAN RAMUNIA\"],\n [1212280007, 1212280, \"RAMUNIA DUA\"],\n [1212280008, 1212280, \"RAMUNIA SATU\"],\n [1212280009, 1212280, \"DENAI SARANG BURUNG\"],\n [1212280010, 1212280, \"DENAI LAMA\"],\n [1212280011, 1212280, \"BINJAI BAKUNG\"],\n [1212280012, 1212280, \"DENAI KUALA\"],\n [1212280013, 1212280, \"PALUH SIBAJI\"],\n [1212280014, 1212280, \"PANTAI LABU BARU\"],\n [1212280015, 1212280, \"PANTAI LABU PEKAN\"],\n [1212280016, 1212280, \"RUGEMUK\"],\n [1212280017, 1212280, \"PEMATANG BIARA\"],\n [1212280018, 1212280, \"RANTAU PANJANG\"],\n [1212280019, 1212280, \"BAGAN SERDANG\"],\n [1212290001, 1212290, \"TUMPATAN\"],\n [1212290002, 1212290, \"EMPLASMEN KUALA NAMU\"],\n [1212290003, 1212290, \"SIDODADI RAMUNIA\"],\n [1212290004, 1212290, \"PASAR LIMA KEBUN KELAPA\"],\n [1212290005, 1212290, \"ARAS KABU\"],\n [1212290006, 1212290, \"SERDANG\"],\n [1212290007, 1212290, \"SIDOURIP\"],\n [1212290008, 1212290, \"PASAR ENAM KUALA NAMU\"],\n [1212290009, 1212290, \"KARANG ANYAR\"],\n [1212290010, 1212290, \"BERINGIN\"],\n [1212290011, 1212290, \"SIDOARJO DUA RAMUNIA\"],\n [1212300001, 1212300, \"PALUH KEMIRI\"],\n [1212300002, 1212300, \"PETAPAHAN\"],\n [1212300003, 1212300, \"TANJUNG GARBUS SATU\"],\n [1212300004, 1212300, \"PAGAR MERBAU TIGA\"],\n [1212300005, 1212300, \"CEMARA\"],\n [1212300006, 1212300, \"PASAR MELINTANG\"],\n [1212300007, 1212300, \"PAGAR JATI\"],\n [1212300008, 1212300, \"SYAHMAD\"],\n [1212300009, 1212300, \"LUBUK PAKAM TIGA\"],\n [1212300010, 1212300, \"LUBUK PAKAM I/II\"],\n [1212300011, 1212300, \"LUBUK PAKAM PEKAN\"],\n [1212300012, 1212300, \"BAKARAN BATU\"],\n [1212300013, 1212300, \"SEKIP\"],\n [1212310001, 1212310, \"BANDAR DOLOK\"],\n [1212310002, 1212310, \"TANJUNG GARBUS II\"],\n [1212310003, 1212310, \"PERBARAKAN\"],\n [1212310004, 1212310, \"TANJUNG GARBUS KAMPUNG\"],\n [1212310005, 1212310, \"TANJUNG MULIA\"],\n [1212310006, 1212310, \"PURWODADI\"],\n [1212310007, 1212310, \"SUKAMULIA\"],\n [1212310008, 1212310, \"SIDODADI BATU DELAPAN\"],\n [1212310009, 1212310, \"JATI REJO\"],\n [1212310010, 1212310, \"SIDOARJO SATU JATIBARU\"],\n [1212310011, 1212310, \"SIDOARJO SATU PASAR MIRING\"],\n [1212310012, 1212310, \"PAGAR MERBAU I\"],\n [1212310013, 1212310, \"PAGAR MERBAU II\"],\n [1212310014, 1212310, \"SUMBEREJO\"],\n [1212310015, 1212310, \"SUKAMANDI HULU\"],\n [1212310016, 1212310, \"SUKAMANDI HILIR\"],\n [1213010001, 1213010, \"BATU JONG JONG\"],\n [1213010002, 1213010, \"LAU DAMAK\"],\n [1213010003, 1213010, \"TIMBANG LAWAN\"],\n [1213010004, 1213010, \"SAMPE RAYA\"],\n [1213010005, 1213010, \"BUKIT LAWANG\"],\n [1213010006, 1213010, \"PERKEBUNAN BUNGARA\"],\n [1213010007, 1213010, \"PEKAN BAHOROK\"],\n [1213010008, 1213010, \"EMPUS\"],\n [1213010009, 1213010, \"PERKEBUNAN TURANGI\"],\n [1213010010, 1213010, \"SIMPANG PULAU RAMBUNG\"],\n [1213010011, 1213010, \"SEMATAR\"],\n [1213010012, 1213010, \"PERKEBUNAN PULAU RAMBUNG\"],\n [1213010013, 1213010, \"SUKA RAKYAT\"],\n [1213010014, 1213010, \"TANJUNG LENGGANG\"],\n [1213010017, 1213010, \"PERKEBUNAN SEI MUSAM\"],\n [1213010018, 1213010, \"SEI MUSAM KENDIT\"],\n [1213010020, 1213010, \"TIMBANG JAYA\"],\n [1213010021, 1213010, \"MUSAM PEMBANGUNAN\"],\n [1213010023, 1213010, \"UJUNG BANDAR\"],\n [1213011001, 1213011, \"SUMBER JAYA\"],\n [1213011002, 1213011, \"PULAU SEMIKAT\"],\n [1213011003, 1213011, \"SEBERTUNG\"],\n [1213011004, 1213011, \"PERKEBUNAN AMAL TANI\"],\n [1213011005, 1213011, \"SIDOREJO\"],\n [1213011006, 1213011, \"GUNUNG TINGGI\"],\n [1213011007, 1213011, \"SERAPIT\"],\n [1213011008, 1213011, \"SUKAPULUNG\"],\n [1213011009, 1213011, \"TANJUNG KERIAHAN\"],\n [1213011010, 1213011, \"AMAN DAMAI\"],\n [1213020005, 1213020, \"UJUNG BANDAR\"],\n [1213020006, 1213020, \"PARANGGUAM\"],\n [1213020007, 1213020, \"PERKEBUNAN TAMBUNAN\"],\n [1213020008, 1213020, \"LAU TEPU\"],\n [1213020009, 1213020, \"PAMA TAMBUNAN\"],\n [1213020010, 1213020, \"PERKEBUNAN GLUGUR LANGKAT\"],\n [1213020015, 1213020, \"BANDAR TELU\"],\n [1213020016, 1213020, \"PERKEBUNAN TURANGI\"],\n [1213020017, 1213020, \"UJUNG TERAN\"],\n [1213020018, 1213020, \"MINTA KASIH\"],\n [1213020019, 1213020, \"TANJUNG LANGKAT\"],\n [1213020020, 1213020, \"NAMAN JAHE\"],\n [1213020021, 1213020, \"PERKEBUNAN TANJUNG KELILING\"],\n [1213020025, 1213020, \"PONCO WARNO\"],\n [1213020026, 1213020, \"ADIN TENGAH\"],\n [1213020027, 1213020, \"LAU LUGUR\"],\n [1213020028, 1213020, \"PANCUR IDO\"],\n [1213021001, 1213021, \"KAPERAS\"],\n [1213021002, 1213021, \"SULKAM\"],\n [1213021003, 1213021, \"RAMPAH\"],\n [1213021004, 1213021, \"NAMO TERAS\"],\n [1213021005, 1213021, \"KUTAMBARU\"],\n [1213021006, 1213021, \"PERKEBUNAN MARIKE\"],\n [1213021007, 1213021, \"KUTA GAJAH\"],\n [1213021008, 1213021, \"PERKEBUNAN NAMO TONGAN\"],\n [1213030001, 1213030, \"TELAGAH\"],\n [1213030002, 1213030, \"TANJUNG GUNUNG\"],\n [1213030003, 1213030, \"PEKAN SAWAH\"],\n [1213030004, 1213030, \"BELINTENG\"],\n [1213030005, 1213030, \"RUMAH GALUH\"],\n [1213030006, 1213030, \"SIMPANG KUTA BULUH\"],\n [1213030007, 1213030, \"GUNUNG AMBAT\"],\n [1213030008, 1213030, \"NAMU UKUR SELATAN\"],\n [1213030009, 1213030, \"NAMU UKUR UTARA\"],\n [1213030010, 1213030, \"DURIAN LINGGA\"],\n [1213030011, 1213030, \"PASAR VIII NAMO TRASI\"],\n [1213030012, 1213030, \"EMPLASMEN PASAR IV NAMO TRASI\"],\n [1213030013, 1213030, \"PASAR VI KWALA MENCIRIM\"],\n [1213030014, 1213030, \"PURWOBINANGUN\"],\n [1213030015, 1213030, \"EMPLASMEN KWALA MENCIRIM\"],\n [1213030016, 1213030, \"MEKAR JAYA\"],\n [1213040001, 1213040, \"GARUNGGANG\"],\n [1213040002, 1213040, \"PARIT BINDU\"],\n [1213040003, 1213040, \"BERUAM\"],\n [1213040004, 1213040, \"BESADI\"],\n [1213040005, 1213040, \"PERKEBUNAN BLANGKAHAN\"],\n [1213040006, 1213040, \"SEI PENJARA\"],\n [1213040007, 1213040, \"RAJA TENGAH\"],\n [1213040008, 1213040, \"NAMO MBELIN\"],\n [1213040009, 1213040, \"BEKIUNG\"],\n [1213040010, 1213040, \"BALAI KASIH\"],\n [1213040011, 1213040, \"DALAN NAMAN\"],\n [1213040012, 1213040, \"PEKAN KUALA\"],\n [1213040013, 1213040, \"PERKEBUNAN BEKIUN\"],\n [1213040017, 1213040, \"SUKA DAMAI\"],\n [1213040018, 1213040, \"SIDO MAKMUR\"],\n [1213040019, 1213040, \"BELA RAKYAT\"],\n [1213050001, 1213050, \"NAMBIKI\"],\n [1213050002, 1213050, \"TANJUNG MERAHE\"],\n [1213050003, 1213050, \"PADANG BRAHRANG\"],\n [1213050004, 1213050, \"LAU MULGAP\"],\n [1213050005, 1213050, \"KUTA PARIT\"],\n [1213050006, 1213050, \"PEKAN SELESAI\"],\n [1213050007, 1213050, \"BEKULAP\"],\n [1213050008, 1213050, \"PERHIASAN\"],\n [1213050009, 1213050, \"SELAYANG\"],\n [1213050010, 1213050, \"SEI LIMBAT\"],\n [1213050011, 1213050, \"MANCANG\"],\n [1213050012, 1213050, \"KUALA AIR HITAM\"],\n [1213050013, 1213050, \"PADANG CERMIN\"],\n [1213050014, 1213050, \"SELAYANG BARU\"],\n [1213060001, 1213060, \"TANJUNG JATI\"],\n [1213060002, 1213060, \"SIDOMULYO\"],\n [1213060003, 1213060, \"SENDANG REJO\"],\n [1213060004, 1213060, \"SAMBIREJO\"],\n [1213060005, 1213060, \"KWALA BEGUMIT\"],\n [1213060006, 1213060, \"PERDAMEAN\"],\n [1213060007, 1213060, \"SUKAMAKMUR\"],\n [1213070001, 1213070, \"BANYUMAS\"],\n [1213070002, 1213070, \"KWALA BINGAI\"],\n [1213070003, 1213070, \"SIDOMULYO\"],\n [1213070004, 1213070, \"PANTAI GEMI\"],\n [1213070005, 1213070, \"PERDAMAIAN\"],\n [1213070006, 1213070, \"STABAT BARU\"],\n [1213070007, 1213070, \"ARA CONDONG\"],\n [1213070008, 1213070, \"KWALA BEGUMIT\"],\n [1213070009, 1213070, \"MANGGA\"],\n [1213070010, 1213070, \"KARANGREJO\"],\n [1213070011, 1213070, \"DENDANG\"],\n [1213070012, 1213070, \"PAYA MABAR\"],\n [1213080001, 1213080, \"BESILAM BUKIT LEMBASA\"],\n [1213080002, 1213080, \"GERGAS\"],\n [1213080003, 1213080, \"BINGAI\"],\n [1213080004, 1213080, \"BUKIT MELINTANG\"],\n [1213080005, 1213080, \"KEBUN BALOK\"],\n [1213080006, 1213080, \"SUMBER MULYO\"],\n [1213080007, 1213080, \"GOHOR LAMA\"],\n [1213080008, 1213080, \"STABAT LAMA\"],\n [1213080009, 1213080, \"STABAT LAMA BARAT\"],\n [1213080010, 1213080, \"PERTUMBUKAN\"],\n [1213080011, 1213080, \"PAYA TUSAN\"],\n [1213080012, 1213080, \"MEKAR JAYA\"],\n [1213080013, 1213080, \"JENTERA STABAT\"],\n [1213080014, 1213080, \"STUNGKIT\"],\n [1213090001, 1213090, \"SEI MUSAM\"],\n [1213090002, 1213090, \"NAMU SIALANG\"],\n [1213090003, 1213090, \"SEI SERDANG\"],\n [1213090004, 1213090, \"SEI BAMBAN\"],\n [1213090005, 1213090, \"BATANG SERANGAN\"],\n [1213090006, 1213090, \"KUALA MUSAM\"],\n [1213090007, 1213090, \"KARYA JADI\"],\n [1213090008, 1213090, \"PALUH PAKEH BABUSALAM\"],\n [1213100001, 1213100, \"SEI LITUR TASIK\"],\n [1213100002, 1213100, \"SAWIT SEBERANG\"],\n [1213100003, 1213100, \"ALUR GADUNG\"],\n [1213100004, 1213100, \"SIMPANG 3 SAWIT SEBERANG\"],\n [1213100005, 1213100, \"SAWIT HULU\"],\n [1213100006, 1213100, \"MEKAR SAWIT\"],\n [1213100007, 1213100, \"ALUR MELATI\"],\n [1213110001, 1213110, \"SUKARAMAI\"],\n [1213110002, 1213110, \"TEBING TANJUNG SELAMAT\"],\n [1213110003, 1213110, \"TANJUNG PUTUS\"],\n [1213110004, 1213110, \"TANJUNG SELAMAT\"],\n [1213110005, 1213110, \"BESILAM\"],\n [1213110006, 1213110, \"PADANG TUALANG\"],\n [1213110007, 1213110, \"SERAPUH ABC\"],\n [1213110008, 1213110, \"KWALA BESILAM\"],\n [1213110009, 1213110, \"BULUH TELANG\"],\n [1213110010, 1213110, \"JATI SARI\"],\n [1213110011, 1213110, \"BANJAR RAYA\"],\n [1213110012, 1213110, \"BUKIT SARI\"],\n [1213120001, 1213120, \"PERKEBUNAN TANJUNG BERINGIN\"],\n [1213120002, 1213120, \"SUKAJADI\"],\n [1213120003, 1213120, \"BARU PASAR 8\"],\n [1213120004, 1213120, \"PAYA RENGAS\"],\n [1213120005, 1213120, \"HINAI KANAN\"],\n [1213120006, 1213120, \"SUKADAMAI\"],\n [1213120007, 1213120, \"KEBUN LADA\"],\n [1213120008, 1213120, \"TANJUNG MULIA\"],\n [1213120009, 1213120, \"MUKA PAYA\"],\n [1213120010, 1213120, \"CEMPA\"],\n [1213120011, 1213120, \"BATU MALENGGANG\"],\n [1213120012, 1213120, \"TAMARAN\"],\n [1213120013, 1213120, \"SUKA DAMAI TIMUR\"],\n [1213130001, 1213130, \"KEPALA SUNGAI\"],\n [1213130002, 1213130, \"PERKOTAAN\"],\n [1213130003, 1213130, \"TELUK\"],\n [1213130004, 1213130, \"CINTA RAJA\"],\n [1213130005, 1213130, \"TELAGA JERNIH\"],\n [1213130006, 1213130, \"KARANG GADING\"],\n [1213130007, 1213130, \"KWALA BESAR\"],\n [1213130008, 1213130, \"SELOTONG\"],\n [1213130009, 1213130, \"SECANGGANG\"],\n [1213130010, 1213130, \"TANJUNG IBUS\"],\n [1213130011, 1213130, \"HINAI KIRI\"],\n [1213130012, 1213130, \"KEBUN KELAPA\"],\n [1213130013, 1213130, \"SUNGAI ULAR\"],\n [1213130014, 1213130, \"JARING HALUS\"],\n [1213130015, 1213130, \"KARANG ANYAR\"],\n [1213130016, 1213130, \"PANTAI GADING\"],\n [1213130017, 1213130, \"SUKA MULIA\"],\n [1213140001, 1213140, \"SERAPUH ASLI\"],\n [1213140002, 1213140, \"PEMATANG TENGAH\"],\n [1213140003, 1213140, \"PAYA PERUPUK\"],\n [1213140004, 1213140, \"PEKAN TANJUNG PURA\"],\n [1213140005, 1213140, \"LALANG\"],\n [1213140006, 1213140, \"PANTAI CERMIN\"],\n [1213140007, 1213140, \"PEKUBUAN\"],\n [1213140008, 1213140, \"TELUK BAKUNG\"],\n [1213140009, 1213140, \"PEMATANG SERAI\"],\n [1213140010, 1213140, \"BAJA KUNING\"],\n [1213140011, 1213140, \"PULAU BANYAK\"],\n [1213140012, 1213140, \"PEMATANG CENGAL\"],\n [1213140013, 1213140, \"KWALA SERAPUH\"],\n [1213140014, 1213140, \"KWALA LANGKAT\"],\n [1213140015, 1213140, \"BUBUN\"],\n [1213140016, 1213140, \"TAPAK KUDA\"],\n [1213140017, 1213140, \"SUKAMAJU\"],\n [1213140018, 1213140, \"KARYA MAJU\"],\n [1213140019, 1213140, \"PEMATANG CENGAL BARAT\"],\n [1213150001, 1213150, \"PAYA BENGKUANG\"],\n [1213150002, 1213150, \"AIR HITAM\"],\n [1213150003, 1213150, \"PADANG LANGKAT\"],\n [1213150004, 1213150, \"PALUH MANIS\"],\n [1213150005, 1213150, \"PEKAN GEBANG\"],\n [1213150006, 1213150, \"DOGANG\"],\n [1213150007, 1213150, \"SANGGA LIMA PERKEBUNAN SERAPUH\"],\n [1213150008, 1213150, \"PASAR RAWA\"],\n [1213150009, 1213150, \"KWALA GEBANG\"],\n [1213150010, 1213150, \"BUKIT MENGKIRAI\"],\n [1213150011, 1213150, \"PASIRAN\"],\n [1213160001, 1213160, \"PELAWI UTARA\"],\n [1213160002, 1213160, \"SECURAI UTARA\"],\n [1213160003, 1213160, \"SECURAI SELATAN\"],\n [1213160004, 1213160, \"PELAWI SELATAN\"],\n [1213160005, 1213160, \"BRANDAN TIMUR BARU\"],\n [1213160006, 1213160, \"BRANDAN BARAT\"],\n [1213160007, 1213160, \"BRANDAN TIMUR\"],\n [1213160008, 1213160, \"TELUK MEKU\"],\n [1213170001, 1213170, \"HARAPAN JAYA\"],\n [1213170002, 1213170, \"TELAGA SAID\"],\n [1213170003, 1213170, \"LAMA BARU\"],\n [1213170004, 1213170, \"LAMA\"],\n [1213170005, 1213170, \"ALUR DUA\"],\n [1213170006, 1213170, \"PURAKA II\"],\n [1213170007, 1213170, \"ALUR DUA BARU\"],\n [1213170008, 1213170, \"PURAKA I PERTAMINA\"],\n [1213170009, 1213170, \"SEI BILAH BARAT\"],\n [1213170010, 1213170, \"SEI BILAH TIMUR\"],\n [1213170011, 1213170, \"MEKAR MAKMUR\"],\n [1213170012, 1213170, \"HARAPAN BARU\"],\n [1213170013, 1213170, \"HARAPAN MAJU\"],\n [1213170014, 1213170, \"HARAPAN MAKMUR\"],\n [1213180001, 1213180, \"TANGKAHAN DURIAN\"],\n [1213180002, 1213180, \"SEI TUALANG\"],\n [1213180003, 1213180, \"LUBUK KASIH\"],\n [1213180004, 1213180, \"PANGKALAN BATU\"],\n [1213180005, 1213180, \"PERLIS\"],\n [1213180006, 1213180, \"LUBUK KERTANG\"],\n [1213180007, 1213180, \"KELANTAN\"],\n [1213190001, 1213190, \"PIR ADB BESITANG\"],\n [1213190002, 1213190, \"SEKOCI\"],\n [1213190003, 1213190, \"BUKIT MAS\"],\n [1213190004, 1213190, \"HALABAN\"],\n [1213190005, 1213190, \"BUKIT SELAMAT\"],\n [1213190006, 1213190, \"PEKAN BESITANG\"],\n [1213190007, 1213190, \"KAMPUNG LAMA\"],\n [1213190008, 1213190, \"BUKIT KUBU\"],\n [1213190009, 1213190, \"SUKA JAYA\"],\n [1213200001, 1213200, \"PANGKALAN SIATA\"],\n [1213200002, 1213200, \"SUNGAI MERAN\"],\n [1213200003, 1213200, \"ALUR CEMPEDAK\"],\n [1213200004, 1213200, \"PAYA TAMPAK\"],\n [1213200005, 1213200, \"SUNGAI SIUR\"],\n [1213200006, 1213200, \"TANJUNG PASIR\"],\n [1213200007, 1213200, \"PINTU AIR\"],\n [1213200008, 1213200, \"BERAS BASAH\"],\n [1213200009, 1213200, \"BUKIT JENGKOL\"],\n [1213200010, 1213200, \"PULAU SEMBILAN\"],\n [1213200011, 1213200, \"PULAU KAMPAI\"],\n [1213201001, 1213201, \"SALAHAJI\"],\n [1213201002, 1213201, \"SERANG JAYA\"],\n [1213201003, 1213201, \"PEMATANG TENGAH\"],\n [1213201004, 1213201, \"PERKEBUNAN PERAPEN\"],\n [1213201005, 1213201, \"LIMAU MUNGKUR\"],\n [1213201006, 1213201, \"PERKEBUNAN DAMAR CONDONG\"],\n [1213201007, 1213201, \"DAMAR CONDONG\"],\n [1213201008, 1213201, \"SERANG JAYA HILIR\"],\n [1214010001, 1214010, \"DURU\"],\n [1214010002, 1214010, \"TUWASO\"],\n [1214010003, 1214010, \"HILIOROMAO\"],\n [1214010004, 1214010, \"EHO\"],\n [1214010005, 1214010, \"SIALEMA\"],\n [1214010006, 1214010, \"BAWONIFAOSO\"],\n [1214010007, 1214010, \"HILIANOMBASELA\"],\n [1214010008, 1214010, \"LUMBUI MELAYU\"],\n [1214010009, 1214010, \"HILIORUDUA TEBOLO\"],\n [1214010010, 1214010, \"TEBOLO MELAYU\"],\n [1214010016, 1214010, \"BARUYU SIBOHOU\"],\n [1214010017, 1214010, \"LUMBUI NIAS\"],\n [1214010018, 1214010, \"TANOMOKINO\"],\n [1214010019, 1214010, \"SEPAKAT\"],\n [1214010020, 1214010, \"HILIKANA\"],\n [1214010021, 1214010, \"BAWOOTANIO OMEGA\"],\n [1214010022, 1214010, \"HILINIFAESE\"],\n [1214011001, 1214011, \"MAKOLE\"],\n [1214011002, 1214011, \"JEKE\"],\n [1214011003, 1214011, \"SIFAURUASI\"],\n [1214011004, 1214011, \"SAERU MELAYU\"],\n [1214011005, 1214011, \"BAWOANALITA SAERU\"],\n [1214011006, 1214011, \"BAWO ORUDUA\"],\n [1214011007, 1214011, \"HALE BALUTA\"],\n [1214011008, 1214011, \"BAWO OFULOA\"],\n [1214011009, 1214011, \"BALUTA\"],\n [1214011010, 1214011, \"EHO BALUTA\"],\n [1214011011, 1214011, \"HILIGEHO SOGAWU\"],\n [1214011012, 1214011, \"HILIOMASIO\"],\n [1214020028, 1214020, \"SIFITU EWALI\"],\n [1214020029, 1214020, \"RAPA RAPA\"],\n [1214020030, 1214020, \"SINAURU\"],\n [1214020031, 1214020, \"SIOFA EWALI\"],\n [1214020032, 1214020, \"SIMALUAYA\"],\n [1214020033, 1214020, \"SILIMAEWALI\"],\n [1214020034, 1214020, \"SIDUAEWALI\"],\n [1214020035, 1214020, \"PASAR PULAU TELLO\"],\n [1214020036, 1214020, \"BARUYU LASARA\"],\n [1214020037, 1214020, \"HILIOTALUA\"],\n [1214020038, 1214020, \"HILIAMODULA\"],\n [1214020039, 1214020, \"BAWODOBARA\"],\n [1214020040, 1214020, \"BAWOAMAHELATO\"],\n [1214020041, 1214020, \"LOBOI\"],\n [1214020042, 1214020, \"BAWOOMASIO\"],\n [1214020043, 1214020, \"BALOGIA\"],\n [1214020045, 1214020, \"LASONDE\"],\n [1214020051, 1214020, \"KOTO\"],\n [1214020062, 1214020, \"SEBUASI\"],\n [1214020063, 1214020, \"SISARAHILI\"],\n [1214020064, 1214020, \"ONAYA\"],\n [1214020065, 1214020, \"ORAHILI\"],\n [1214021001, 1214021, \"MAHANG LABARA\"],\n [1214021002, 1214021, \"ADAM\"],\n [1214021003, 1214021, \"BAIS\"],\n [1214021004, 1214021, \"LAMBAK\"],\n [1214021005, 1214021, \"LABUAN RIMA\"],\n [1214021006, 1214021, \"LABUAN HIU\"],\n [1214021007, 1214021, \"LABUAN BAJAU\"],\n [1214021008, 1214021, \"LABARA\"],\n [1214021009, 1214021, \"BAIS BARU\"],\n [1214021010, 1214021, \"LABUAN RIMA BARU\"],\n [1214022001, 1214022, \"GONDIA\"],\n [1214022002, 1214022, \"MAUFA\"],\n [1214022003, 1214022, \"GOBO BARU\"],\n [1214022004, 1214022, \"GOBO\"],\n [1214022005, 1214022, \"SILINA\"],\n [1214022006, 1214022, \"SILINA BARU\"],\n [1214023001, 1214023, \"FUGE\"],\n [1214023003, 1214023, \"BAWOSITORA\"],\n [1214023004, 1214023, \"SIGESE\"],\n [1214023005, 1214023, \"BINTUANG\"],\n [1214023006, 1214023, \"HAYO\"],\n [1214023007, 1214023, \"SIBARANUN\"],\n [1214023008, 1214023, \"LUAHA IDANO PONO\"],\n [1214023009, 1214023, \"BAWOLAWINDA\"],\n [1214023010, 1214023, \"HILI JAMOROGOTANO\"],\n [1214024001, 1214024, \"WAWA\"],\n [1214024002, 1214024, \"TELUK LIMO\"],\n [1214024003, 1214024, \"BALE BALE\"],\n [1214024005, 1214024, \"MARIT BARU\"],\n [1214024006, 1214024, \"SILIMA BANUA MARIT\"],\n [1214024009, 1214024, \"MAJINO LORANG\"],\n [1214024010, 1214024, \"SIOFA BANUA LORANG\"],\n [1214024011, 1214024, \"LIMO BIANG\"],\n [1214024012, 1214024, \"ZIABIANG\"],\n [1214024013, 1214024, \"MEMONG\"],\n [1214024014, 1214024, \"AFORE\"],\n [1214024015, 1214024, \"BALE-BALE SIBOHOU\"],\n [1214030006, 1214030, \"HILIGEHO\"],\n [1214030007, 1214030, \"HILITOBARA\"],\n [1214030008, 1214030, \"PASAR TELUK DALAM\"],\n [1214030009, 1214030, \"BAWONIFAOSO\"],\n [1214030010, 1214030, \"BAWOZAUA\"],\n [1214030011, 1214030, \"HILIGANOWO\"],\n [1214030022, 1214030, \"BAWODOBARA\"],\n [1214030023, 1214030, \"BAWOLOWALANI\"],\n [1214030024, 1214030, \"HILISONDREKHA\"],\n [1214030025, 1214030, \"HILISAOOTONIHA\"],\n [1214030040, 1214030, \"HILIANAA\"],\n [1214030041, 1214030, \"HILIGANOWO SALOO\"],\n [1214030042, 1214030, \"HILIGANOWOSA'UA\"],\n [1214030043, 1214030, \"HILILAZA\"],\n [1214030044, 1214030, \"NANOWA\"],\n [1214031004, 1214031, \"BAWONAHONO\"],\n [1214031005, 1214031, \"HILIZIHONO\"],\n [1214031006, 1214031, \"BAWOMATALUO\"],\n [1214031007, 1214031, \"ORAHILI FAU\"],\n [1214031008, 1214031, \"LAHUSA FAU\"],\n [1214031009, 1214031, \"ONOHONDRO\"],\n [1214031010, 1214031, \"SIWALAWA\"],\n [1214031011, 1214031, \"HILINAWALO FAU\"],\n [1214031013, 1214031, \"HILIOFONALUO\"],\n [1214031016, 1214031, \"BAWOFANAYAMA\"],\n [1214031017, 1214031, \"ORAHILI GETO\"],\n [1214031018, 1214031, \"ORAHILI EHO\"],\n [1214031019, 1214031, \"HILISALAWA\"],\n [1214031020, 1214031, \"HILIKARAMAHA\"],\n [1214031021, 1214031, \"SILIWULAWA\"],\n [1214031022, 1214031, \"HILIFAROKHALAWA\"],\n [1214031023, 1214031, \"ETE BATU\"],\n [1214032001, 1214032, \"HILIAMAETALUO\"],\n [1214032002, 1214032, \"HILISATARO\"],\n [1214032003, 1214032, \"HILINAMONIHA\"],\n [1214032004, 1214032, \"BAWOGANOWO\"],\n [1214032005, 1214032, \"HILIALAWA\"],\n [1214032006, 1214032, \"HILINDRASONIHA\"],\n [1214032007, 1214032, \"HILISATARO RAYA\"]\n ];\n\n\n foreach ($subDistricts as $subDistrict) {\n $district = \\App\\District::where('code', $subDistrict[1])->first();\n \\Illuminate\\Support\\Facades\\DB::table('sub_districts')->insert(['code' => $subDistrict[0], 'sub_code' => $subDistrict[1], 'name' => $subDistrict[2], 'district_id' => $district ? $district->id : null]);\n }\n }", "public function getCdistrictid()\n {\n return $this->cdistrictid;\n }", "public function index(){\n $_allData= array();\n $query=\"SELECT * FROM `neci`.`district_info` WHERE `deleted_at` IS NULL\";\n $result= mysqli_query($this->conn,$query);\n //You can also use mysqli_fetch_object e.g: $row= mysqli_fetch_object($result)\n while($row= mysqli_fetch_assoc($result)){\n $_allData[]=$row;\n }\n return $_allData;\n }", "public function getDistrictData() {\n\t\tunset($_SESSION['district_data']);\n\t\tif(!isset($_SESSION['district_data'])) {\n\t\t\t$stmt = \"SELECT district_ID, district FROM dealer_district ORDER BY district ASC\";\n\n\t\t\ttry {\n\t\t\t\t$stmt = $this->pdo->prepare($stmt);\n\t\t\t\t$stmt->execute();\n\t\t\t\t$array = $stmt->fetchAll();\n\t\t\t\t$_SESSION['district_data'] = $array;\n\t\t\t} catch (PDOException $e) {\n\t\t\t\t$_SESSION['error'][] = \"*Error! We are sorry, but a processing error has occurred. Please contact the administrator.\";\n\t\t\t\tSysFeedback::emailError(__LINE__, __FILE__, $e);\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn $_SESSION['district_data'];\n\t}", "public function f_get_agentDistributionDtls()\n {\n\n // $sql = $this->db->query(\" SELECT * FROM td_dm_distribution a, md_district b, md_dist_point c \n // WHERE a.dist_cd = b.district_code AND a.point_no = c.point_no \");\n\n \n /* $sql = $this->db->query(\" SELECT a.sl_no, a.dist_cd, a.order_no, b.district_name, a.sdo_memo, a.bdo_memo\n FROM td_dm_distribution a, md_district b\n WHERE a.dist_cd = b.district_code GROUP BY a.sl_no \");*/\n $sql = $this->db->query(\" SELECT a.sl_no, a.dist_cd, a.order_no, b.district_name, a.sdo_memo, a.bdo_memo\n FROM td_dm_distribution a, md_district b\n WHERE a.dist_cd = b.district_code order BY a.sl_no \");\n // print_r($sql);\n // die();\n return $sql->result();\n\n }", "public function district() {\n \n return $this->belongsTo(District::class);\n \n }", "public function view_district($pa){\r\n\t\t//sql query\r\n\t\t$sql = \"SELECT * FROM districts WHERE DistrictID=$pa\";\r\n\t\t//return executed query\r\n\t\treturn $this->db_query($sql);\r\n\t}", "function fetch_district() //get all records from database \n\t{\n\t $result;\n\t $csrf_token=$this->security->get_csrf_hash();\n\t $this->load->model('Sup_admin');\n\t $query=$this->Sup_admin->fetch_district();\n\t\t $res=$query->result();\n\t if($res){\n\t\t $data;\n\t\t $i = 0;\n\t \t foreach($res as $r){\n\t\t\t $code = $r->location_code;\n\t\t\t $type = $r->district_name;\n\t\t\t $data[$i] = array('code'=>$code,'type'=>$type);\n\t\t\t $i = $i+1;\n\t\t }\n\t\t $result = array('status'=>1,'message'=>'data found','data'=>$data,'csrf_token'=>$csrf_token);\n\t }else{\n\t\t $result = array('status'=>0,'message'=>'no data found','csrf_token'=>$csrf_token);\n\n\t }\n\t echo json_encode($result);\n\t }", "function insert_district($state, $district) {\n if (!RefineData::isDistrictExists($district)) {\n $stid = RefineData::getStateId(substr($state, 0, 5));\n RefineData::insertDistrict($stid, $district);\n }\n}", "public function getDistrict_reports()\n\t\t{\n\t\t\t\t$state = $this->input->post('state');\n\t\t\t\t$data=$this->Mod_report->getDistrict_reports($state);\n\t\t\t\techo json_encode($data);\n\t\t}", "public function run()\n {\n // District distribution\n $rawDistricts = LocationRawData::select('kecamatan', 'kabupaten', 'provinsi')->groupBy('kecamatan', 'provinsi', 'kabupaten')->get();\n\n $key = [];\n $districts = $rawDistricts->map(function ($item) use ($key) {\n $cit = City::whereName($item['kabupaten'])->select('id')->first(); \n\n if (count($cit)) {\n $key['city_id'] = $cit->id;\n $key['name'] = $item['kecamatan'];\n }\n \n return $key;\n });\n\n $district = District::insert($districts->toArray());\n }", "function getDistrictNameById($district_id)\n{\n\t$db = new db_util();\n\n\t$sql = \"SELECT vm_district_name\n\tFROM vm_district\n\tWHERE vm_district_id='$district_id'\";\n\n\t$result = $db->query($sql);\n\n\tif ($result !== false) {\n\t// if there any error in sql then it will false\n\t// \n\t\tif ($result->num_rows > 0) {\n\n\t\t\t$row = $result->fetch_assoc();\n\n\t\t\treturn $row['vm_district_name'];\n\n\t\t}\n\n\t}\n\n\treturn \"Invalid Location\";\n\n\n}", "public function getMissingDistrict() {\n $findspots = $this->getAdapter();\n $select = $findspots->select()\n ->from($this->_name,array('id','county','parish'))\n ->where('county IS NOT NULL')\n ->where('parish IS NOT NULL')\n ->where('district IS NULL')\n ->limit(5000);\n return $findspots->fetchAll($select);\n }", "public function get_district_list($id){\n\t\t$this->set('districtList', $this->Client->load_district_post($id));\n\t}", "function day_summary($cond=array())\r\n\t{\r\n\t\tif (is_logged_in_user() == true) {\r\n\t\t\t$c_filter = '';\r\n\t\t\tif (is_domain_user() == true) {\r\n\t\t\t\t$c_filter .= ' AND TL.domain_origin = '.get_domain_auth_id();\r\n\t\t\t}\r\n\t\t\tif (is_app_user()) {\r\n\t\t\t\t$c_filter .= ' AND TL.created_datetime = '.intval($this->CI->entity_user_id);\r\n\t\t\t}\r\n\t\t\tif (valid_array($cond)) {\r\n\t\t\t\t$c_filter .= $this->CI->custom_db->get_custom_condition($cond);\r\n\t\t\t}\r\n\t\t\treturn $this->CI->db->query('select count(*) as total, TL.origin as event_origin, TLE.* from timeline_master_event TLE LEFT JOIN timeline TL ON TLE.origin=TL.event_origin '.$c_filter.' group by TLE.origin order by TLE.event_title')->result_array();\r\n\t\t}\r\n\t}", "public function districts()\n {\n $noHidden = (bool)$this->request->getQuery('no-hidden');\n $metrics = $this->getMetrics(Context::DISTRICT_CONTEXT, $noHidden);\n\n $this->set([\n '_serialize' => ['metrics'],\n 'metrics' => array_values($metrics),\n ]);\n }", "public function nsdDhakaNsd($date=null)\n {\n\n $zone = \\Request::segment(3);\n $organization = \\Request::segment(4);\n $lastUpldatedDateTime = $date;\n\n $zoneInfo = Zone::where('alise','=',$zone)->first();\n $navalLocation = NsdName::where('alise','=',$organization)->orderBy('id')->first();\n\n \n $data['zone'] = $zone;\n $data['organization'] = $organization;\n $data['date'] = $date;\n\n $data['suppliers'] = DB::table($zoneInfo->alise.'_suppliers')\n // ->where('status_id','=',1)\n ->whereRaw(\"find_in_set('\".$navalLocation->id.\"',registered_nsd_id)\")\n ->where(function($query) use ($lastUpldatedDateTime){\n $query->whereDate('created_at','>',$lastUpldatedDateTime);\n $query->orWhereDate('updated_at', '>', $lastUpldatedDateTime);\n })->get();\n\n $data['suppliers_personal_infos'] = DB::table($zoneInfo->alise.'_suppliers_personal_info')\n // ->where('status_id','=',1)\n ->where(function($query) use ($lastUpldatedDateTime){\n $query->whereDate('created_at','>',$lastUpldatedDateTime);\n $query->orWhereDate('updated_at', '>', $lastUpldatedDateTime);\n })->get(); \n\n return $data;\n }", "public function count_d(){\n //$dd=$this->district_cd;\n // echo $dd;\n $query = \"SELECT COUNT(*) AS totalItem FROM `neci`.`consume_details` WHERE `deleted_at` IS NULL AND `input_date`>='\".$this->fdate.\"' AND `input_date`<='\".$this->tdate.\"'\";\n $result = mysqli_query($this->conn, $query);\n $row = mysqli_fetch_assoc($result);\n return $row['totalItem'];\n }", "public function nsdDgdpNsd($date=null)\n {\n\n $zone = \\Request::segment(3);\n $organization = \\Request::segment(4);\n $lastUpldatedDateTime = $date;\n\n $zoneInfo = Zone::where('alise','=',$zone)->first();\n $navalLocation = NsdName::where('alise','=',$organization)->orderBy('id')->first();\n\n \n $data['zone'] = $zone;\n $data['organization'] = $organization;\n $data['date'] = $date;\n\n $data['suppliers'] = DB::table($zoneInfo->alise.'_suppliers')\n // ->where('status_id','=',1)\n ->whereRaw(\"find_in_set('\".$navalLocation->id.\"',registered_nsd_id)\")\n ->where(function($query) use ($lastUpldatedDateTime){\n $query->whereDate('created_at','>',$lastUpldatedDateTime);\n $query->orWhereDate('updated_at', '>', $lastUpldatedDateTime);\n })->get();\n\n $data['suppliers_personal_infos'] = DB::table($zoneInfo->alise.'_suppliers_personal_info')\n // ->where('status_id','=',1)\n ->where(function($query) use ($lastUpldatedDateTime){\n $query->whereDate('created_at','>',$lastUpldatedDateTime);\n $query->orWhereDate('updated_at', '>', $lastUpldatedDateTime);\n })->get(); \n\n return $data;\n }", "public function get_day_permastruct()\n {\n }", "public function getUbigeoDistrito($district){\n\n //$con=Db::conectarBd(\"mysql5022.site4now.net\",\"db_a4d0c2_actecpe\",\"a4d0c2_actecpe\",\"ActecPeru123\");\n\t\t$con=Db::conectarBd(getenv('localhost'),getenv('dbname'),getenv('db_user_name'),getenv('db_password'));\n $sth = $con->prepare(\"CALL sp_ubigeoDistrito(?)\");\n $sth->execute(array($district));\n $rs = $sth->fetchAll();\n if(empty($rs)){\n\n $statusError = [\n \"rs\" => \"no data was found for the district -> \".$district,\n \"status\" => 404,\n ];\n \n return $statusError;\n }else{\n return $rs;\n }\n \n}", "public function district()\n {\n return $this->belongsTo(District::class);\n }", "function get_diensten() {\n $result = $this->db->query(\"SELECT distinct dienst from islp.view_openstaande_dossiers order by dienst\");\n if (!$result) {\n $this->error(\"Check query in get_diensten in klasse functioneelBeheer_model\");\n }\n while ($row = $result->fetch_assoc()) {\n if (empty($row['dienst'])) {\n $row['dienst'] = '_geen dienst';\n }\n $rows[] = $row;\n }\n return $rows;\n }", "public function load_district_post($id){\n\t\t$loc_list = $this->ContactBranch->find('list', array('fields' => array('id','branch'), 'order' => array('branch ASC'),\n\t\t'conditions' => array('status' => '1',\t'state_id' => $id)));\n\t\treturn $loc_list;\n\t}", "public function location($fr_district_id=''){\n\tif ($this->session->userdata('logged_in')){\n\t\t$data['title'] = 'Location';\n\t\tif($fr_district_id==''){\n\t\t $data['locationList'] = $this->common_model->get_all('fr_location',array('fr_district_id'=>0));\n\t\t}else{\n\t\t $data['district'] = $this->common_model->get_row(array('fr_id'=>$fr_district_id),'fr_location');\n\t\t $data['locationList'] = $this->common_model->get_all('fr_location',array('fr_district_id'=>$fr_district_id));\n\t\t}\n\t\t$data['fr_district_id'] = $fr_district_id;\n\t\t$this->set_layout('location/location_list',$data);\n\t}else{\n\t\t$this->load->view('site/login');\n\t}\n}", "function save_district_state() {\n $datas = RefineData::getMasterData();\n foreach ($datas as $data) {\n insert_district($data->state, $data->district);\n }\n}", "public function getDod();", "public function getDistrict($id)\n {\n $result = DB::table('districts')->where('province_id', $id)->orderBy('name')->get();\n return $result;\n }", "public function count_admin(){\n //$dd=$this->district_cd;\n // echo $dd;\n// $query = \"SELECT COUNT(*) AS totalItem FROM `neci`.`consume_details` WHERE `input_date`='\".date('Y-m-d').\"'\"; ///AND `district_cd`='\".$this->district_cd.\"'\n\n $query = \"SELECT count(*) as totalItemAdmin FROM \n(\nSELECT d.district_cd,d.district_name,c.input_date,c.unit\n from\n (SELECT district_cd,input_date,unit from consume_details where input_date='\".$this->input_date.\"'\n ) c right outer join district_info d on c.district_cd=d.district_cd\n ) x\";\n \n $result = mysqli_query($this->conn, $query);\n $row = mysqli_fetch_assoc($result);\n return $row['totalItemAdmin'];\n }", "public function getServiceDistrictId()\n {\n return $this->service_district_id;\n }", "public function getDistricts()\n\t{\t\n\t\t# get all the districts from the database\n\t\t$districts = App::make('Apiv1\\Repositories\\Districts\\DistrictsRepository')->getDistricts();\n\n\t\t# transform them and send them back. This process sets an 'isPromoted' flag against each\n\t\treturn App::make('Apiv1\\Transformers\\DistrictPreferenceTransformer')->transformCollection($districts->toArray(), $this->user);\n\t}", "public function count_index(){\n //$dd=$this->district_cd;\n // echo $dd;\n $query = \"SELECT COUNT(*) AS totalItem FROM `neci`.`consume_details` WHERE `input_date`='\".date('Y-m-d').\"'\"; ///AND `district_cd`='\".$this->district_cd.\"'\n $result = mysqli_query($this->conn, $query);\n $row = mysqli_fetch_assoc($result);\n return $row['totalItem'];\n }", "public function getDW() {}", "public function picupDistrict() {\n\t\t$data= DB::table('district')\n\t\t\t\t\t\t\t\t ->select('city_id as id','city_name as district_name')\n\t\t\t\t\t\t\t\t ->where('city_id','!=','12')\n\t\t\t\t\t\t\t\t ->orderBy('city_name','asc')\n\t\t\t\t\t\t\t\t ->get();\n\t\treturn response()->json($data);\n\t}", "function getAllDIDEndpoints() {\n\n $sql = \"SELECT\n trunk.id_trunk AS trunk_id,\n trunk.name AS trunk_name,\n dids.did_number AS did_number,\n dids.id_did AS id_did,\n users.user_id,\n CONCAT(users.first_name, ' ', users.last_name) AS user_name\n FROM\n ctn_dids_temp3 dids\n INNER JOIN ctn_trunks trunk ON dids.id_trunk = trunk.id_trunk\n INNER JOIN ctn_users_ctn_dids users_to_dids ON dids.id_did = users_to_dids.id_did\n INNER JOIN ctn_users users ON users.user_id = users_to_dids.user_id\";\n\n return $this->doQueryArray($sql);\n\n }", "public function getSelectedDayLoanDetails($selectedDate) {\n\n\n date_default_timezone_set(\"Asia/Calcutta\");\n $time = date('H:i:s');\n $today = date('Y-m-d H:i:s');\n\n $numOfInstallments = DefaultData::getNumOfInstlByPeriodAndType($this->loan_period, $this->installment_type);\n $first_installment_date = '';\n $paid_aditional_interrest = 0;\n $INSTALLMENT = new Installment(NULL);\n $total_paid_installment = 0;\n\n foreach ($INSTALLMENT->getInstallmentByLoan($this->id) as $installment) {\n $paid_aditional_interrest += $installment[\"additional_interest\"];\n $total_paid_installment = $total_paid_installment + $installment[\"paid_amount\"];\n }\n\n $loan_amount = $numOfInstallments * $this->installment_amount;\n $actual_due = $loan_amount - $total_paid_installment;\n\n //daily installment\n if ($this->installment_type == 30) {\n\n $FID = new DateTime($this->effective_date);\n $FID->modify('+1 day');\n $first_installment_date = $FID->format('Y-m-d ' . $time);\n\n\n $start = new DateTime($first_installment_date);\n $first_date = $start->format('Y-m-d ' . $time);\n\n $x = 0;\n $total_installment_amount = 0;\n $ins_total = 0;\n $total_paid = 0;\n $od_amount_all_array = array();\n\n $od_array = array();\n $last_od = array();\n $od_total = array();\n $last_od_balance = array();\n $od_balance_amount = array();\n\n while ($x < $numOfInstallments) {\n if ($numOfInstallments == 4) {\n $modify_range = '+7 day';\n } elseif ($numOfInstallments == 30) {\n $modify_range = '+1 day';\n } elseif ($numOfInstallments == 8) {\n $modify_range = '+7 day';\n } elseif ($numOfInstallments == 60) {\n $modify_range = '+1 day';\n } elseif ($numOfInstallments == 2) {\n $modify_range = '+1 months';\n } elseif ($numOfInstallments == 1) {\n $modify_range = '+1 months';\n } elseif ($numOfInstallments == 90) {\n $modify_range = '+1 day';\n } elseif ($numOfInstallments == 12) {\n $modify_range = '+7 day';\n } elseif ($numOfInstallments == 3) {\n $modify_range = '+1 months';\n } elseif ($numOfInstallments == 100) {\n $modify_range = '+1 day';\n } elseif ($numOfInstallments == 13) {\n $modify_range = '+7 day';\n }\n\n $date = $start->format('Y-m-d ' . $time);\n\n $paid_amount = 0;\n $od_amount = 0;\n $od_amount_all = 0;\n $balance = 0;\n $loan_proccesign_fee_paid = 0;\n $total_od_paid = 0;\n $paid_all_amount_before_ins_date = 0;\n $paid_all_od_before_ins_date = 0;\n $last_od_amount = 0;\n $od_interest = 0;\n\n $customer = $this->customer;\n $CUSTOMER = new Customer($customer);\n $route = $CUSTOMER->route;\n $center = $CUSTOMER->center;\n $installment_amount = $this->installment_amount;\n\n $FID = new DateTime($date);\n $FID->modify($modify_range);\n $day_remove = '-1 day';\n $FID->modify($day_remove);\n $second_installment_date = $FID->format('Y-m-d ' . $time);\n $amount = $this->installment_amount;\n\n $INSTALLMENT = new Installment(NULL);\n $ALl_AMOUNT = $INSTALLMENT->getAmountByLoanId($this->id);\n\n foreach ($INSTALLMENT->CheckInstallmetByPaidDate($date, $this->id) as $paid) {\n $paid_amount += $paid['paid_amount'];\n }\n\n foreach ($INSTALLMENT->getPaidAmountByBeforeDate($date, $this->id) as $before_payment_amount) {\n $paid_all_amount_before_ins_date += $before_payment_amount['paid_amount'];\n $paid_all_od_before_ins_date += $before_payment_amount['additional_interest'];\n }\n\n if (PostponeDate::CheckIsPostPoneByDateAndCustomer($date, $customer) || PostponeDate::CheckIsPostPoneByDateAndRoute($date, $route) || PostponeDate::CheckIsPostPoneByDateAndCenter($date, $center) || PostponeDate::CheckIsPostPoneByDateAndAll($date) || PostponeDate::CheckIsPostPoneByDateCenterAll($date) || PostponeDate::CheckIsPostPoneByDateRouteAll($date)) {\n $start->modify($modify_range);\n } else {\n\n\n $ins_total += $amount;\n $total_paid += $paid_amount;\n $last_od_amount = (float) end($od_amount_all_array);\n\n $balance = $actual_due;\n\n $OD = new OD(NULL);\n $OD->loan = $this->id;\n $AllOd = $OD->allOdByLoan();\n\n\n //get daily loan od amount \n if (!$AllOd || PostponeDate::CheckIsPostPoneByDateAndCustomer($date, $customer) || PostponeDate::CheckIsPostPoneByDateAndRoute($date, $route) || PostponeDate::CheckIsPostPoneByDateAndCenter($date, $center) || PostponeDate::CheckIsPostPoneByDateAndAll($date) || PostponeDate::CheckIsPostPoneByDateCenterAll($date) || PostponeDate::CheckIsPostPoneByDateRouteAll($date) || $ALl_AMOUNT[0] >= $ins_total) {\n \n } else {\n if ($AllOd) {\n foreach ($AllOd as $key => $allod) {\n\n if (strtotime($allod['od_date_start']) <= strtotime($date) && strtotime($date) <= strtotime($allod['od_date_end']) && (-1 * ($allod['od_interest_limit'])) > $balance) {\n\n if (strtotime($date) >= strtotime($selectedDate)) {\n break;\n }\n\n $ODDATES = new DateTime($date);\n $ODDATES->modify(' +23 hours +59 minutes +58 seconds');\n\n $od_date_morning = $ODDATES->format('Y-m-d H:i:s');\n\n $paid_all_amount_before_ins_date1 = 0;\n $before_payment_amounts1 = $INSTALLMENT->getPaidAmountByBeforeDate($od_date_morning, $this->id);\n\n foreach ($before_payment_amounts1 as $before_payment_amount1) {\n $paid_all_amount_before_ins_date1 += $before_payment_amount1['paid_amount'];\n }\n\n $od_interest = $this->getOdIntereset1(-$ins_total + $paid_all_amount_before_ins_date1, $allod['od_interest_limit']);\n\n $od_array[] = $od_interest;\n $od_amount_all = json_encode(round(array_sum($od_array), 2));\n\n if ($od_amount_all > 0 || $paid_all_od_before_ins_date == $last_od_amount) {\n\n array_push($od_amount_all_array, $od_amount_all);\n }\n }\n }\n }\n }\n\n $total_installment_amount += $installment_amount;\n\n if (strtotime($selectedDate) <= strtotime($date)) {\n break;\n }\n\n $start->modify($modify_range);\n $x++;\n\n //end of the installment\n if ($numOfInstallments == $x) {\n\n $ODDATES = new DateTime($date);\n $ODDATES->modify('+23 hours +59 minutes +58 seconds');\n $od_date_morning = $ODDATES->format('Y-m-d H:i:s');\n\n //check log ends with od or installment\n $last_od_date = date('D/M/Y', strtotime($od_date_morning));\n $last_installment_date = date('D/M/Y', strtotime($date));\n\n if ($last_od_date == $last_installment_date) {\n $last_loop_od = $od_interest;\n } else {\n $last_loop_od = 0;\n }\n\n //get installment end date\n $INSTALLMENT_END = new DateTime($date);\n $INSTALLMENT_END->modify('+1 day');\n $installment_end = $INSTALLMENT_END->format('Y-m-d H:i:s');\n\n //get 5 years ahead date from installment end date\n $INSTALLMENT_UNLIMITED_END = new DateTime($date);\n $INSTALLMENT_UNLIMITED_END->modify('+1725 day');\n $installment_unlimited_end = $INSTALLMENT_UNLIMITED_END->format('Y-m-d H:i:s');\n\n\n $start = strtotime($date);\n $end = strtotime(date(\"Y/m/d\"));\n $days_between = floor(abs($end - $start) / 86400) - 1;\n $od = $OD->allOdByLoanAndDate($date, $balance);\n $y = 0;\n\n $od_date_start1 = new DateTime($date);\n $od_date_start1->modify('+47 hours +59 minutes +58 seconds');\n\n $defult_val = $days_between;\n $od_amount_all_array_1 = array();\n\n while ($y <= $defult_val) {\n\n if ($od['od_date_start'] <= $od_date_start1) {\n $od_dates = '+1 day';\n }\n\n $od_date = $od_date_start1->format('Y-m-d H:i:s');\n\n //getting echo $od_date; before of date from current od date\n $OLDODDATE = new DateTime($od_date);\n $od_date_remove1 = '-23 hours -59 minutes -58 seconds';\n\n $OLDODDATE->modify($od_date_remove1);\n $old_od_date = $OLDODDATE->format('Y-m-d H:i:s');\n\n if (strtotime($selectedDate) < strtotime($old_od_date) || strtotime($selectedDate) < strtotime($od_date) || strtotime($od['od_date_end'] . $time) < strtotime($old_od_date)) {\n break;\n }\n\n $od_array[] = $od_interest;\n $od_amount_all = json_encode(round(array_sum($od_array), 2));\n\n if ($od_amount_all > 0 || $paid_all_od_before_ins_date == $last_od_amount) {\n\n array_push($od_amount_all_array_1, $od_amount_all);\n }\n\n $od_date_start1->modify($od_dates);\n\n $y++;\n }\n\n $last_od_amount = (float) end($od_amount_all_array_1);\n }\n }\n }\n //weekly installment\n } else if ($this->installment_type == 4) {\n\n $FID = new DateTime($this->effective_date);\n $FID->modify('+7 day');\n $first_installment_date = $FID->format('Y-m-d ' . $time);\n\n\n $start = new DateTime($first_installment_date);\n $first_date = $start->format('Y-m-d ' . $time);\n\n $x = 0;\n $total_installment_amount = 0;\n $ins_total = 0;\n $total_paid = 0;\n $od_amount_all_array = array();\n $od_array = array();\n $last_od = array();\n $od_total = array();\n $last_od_balance = array();\n $od_balance_amount = array();\n\n while ($x < $numOfInstallments) {\n if ($numOfInstallments == 4) {\n $modify_range = '+7 day';\n } elseif ($numOfInstallments == 30) {\n $modify_range = '+1 day';\n } elseif ($numOfInstallments == 8) {\n $modify_range = '+7 day';\n } elseif ($numOfInstallments == 60) {\n $modify_range = '+1 day';\n } elseif ($numOfInstallments == 2) {\n $modify_range = '+1 months';\n } elseif ($numOfInstallments == 1) {\n $modify_range = '+1 months';\n } elseif ($numOfInstallments == 90) {\n $modify_range = '+1 day';\n } elseif ($numOfInstallments == 12) {\n $modify_range = '+7 day';\n } elseif ($numOfInstallments == 3) {\n $modify_range = '+1 months';\n } elseif ($numOfInstallments == 100) {\n $modify_range = '+1 day';\n } elseif ($numOfInstallments == 13) {\n $modify_range = '+7 day';\n }\n\n $date = $start->format('Y-m-d ' . $time);\n\n $paid_amount = 0;\n $od_amount = 0;\n $od_amount_all = 0;\n $balance = 0;\n $loan_proccesign_fee_paid = 0;\n $total_od_paid = 0;\n $paid_all_amount_before_ins_date = 0;\n $paid_all_od_before_ins_date = 0;\n\n\n $customer = $this->customer;\n $CUSTOMER = new Customer($customer);\n $route = $CUSTOMER->route;\n $center = $CUSTOMER->center;\n $installment_amount = $this->installment_amount;\n\n $FID = new DateTime($date);\n $FID->modify($modify_range);\n $day_remove = '-1 day';\n $FID->modify($day_remove);\n $second_installment_date = $FID->format('Y-m-d ' . $time);\n $amount = $this->installment_amount;\n $od_night = date(\"Y/m/d\");\n\n $INSTALLMENT = new Installment(NULL);\n $ALl_AMOUNT = $INSTALLMENT->getAmountByLoanId($this->id);\n\n foreach ($INSTALLMENT->CheckInstallmetByPaidDate($date, $this->id) as $paid) {\n $paid_amount += $paid['paid_amount'];\n }\n\n if (PostponeDate::CheckIsPostPoneByDateAndCustomer($date, $customer) || PostponeDate::CheckIsPostPoneByDateAndRoute($date, $route) || PostponeDate::CheckIsPostPoneByDateAndCenter($date, $center) || PostponeDate::CheckIsPostPoneByDateAndAll($date) || PostponeDate::CheckIsPostPoneByDateCenterAll($date) || PostponeDate::CheckIsPostPoneByDateRouteAll($date)) {\n $start->modify($modify_range);\n } else {\n\n $last_od_amount = (float) end($od_amount_all_array);\n $ins_total += $amount;\n $total_paid += $paid_amount;\n\n $balance = $total_paid_installment - $ins_total;\n\n\n $OD = new OD(NULL);\n $OD->loan = $this->id;\n $od = $OD->allOdByLoanAndDate($date, $balance);\n\n if (strtotime(date(\"Y/m/d\")) < strtotime($date) || PostponeDate::CheckIsPostPoneByDateAndCustomer($date, $customer) || PostponeDate::CheckIsPostPoneByDateAndRoute($date, $route) || PostponeDate::CheckIsPostPoneByDateAndCenter($date, $center) || PostponeDate::CheckIsPostPoneByDateAndAll($date) || PostponeDate::CheckIsPostPoneByDateCenterAll($date) || PostponeDate::CheckIsPostPoneByDateRouteAll($date) || $ALl_AMOUNT[0] >= $ins_total) {\n \n } else {\n if ($od !== false) {\n\n $od_interest = $this->getOdIntereset(-$ins_total + $paid_all_amount_before_ins_date, $od['od_interest_limit']);\n\n $y = 0;\n $od_date_start = new DateTime($date);\n $defult_val = 6;\n\n while ($y <= $defult_val) {\n\n if ($defult_val <= 6 && $this->od_date <= $od_date_start) {\n $od_dates = '+1 day';\n }\n\n $od_date = $od_date_start->format('Y-m-d H:i:s');\n\n //// od dates range\n $ODDATES = new DateTime($od_date);\n $ODDATES->modify($od_dates);\n\n $od_date_remove = '-1 day -23 hours -59 minutes -58 seconds';\n\n $ODDATES->modify($od_date_remove);\n $od_night = $ODDATES->format('Y-m-d H:i:s');\n\n $od_array[] = $od_interest;\n $od_amount_all = json_encode(round(array_sum($od_array)));\n\n\n if (strtotime($od_date) >= strtotime($selectedDate)) {\n break;\n }\n array_push($od_amount_all_array, $od_interest);\n\n\n $od_date_start->modify($od_dates);\n $y++;\n }\n $last_od_amount = (float) end($od_amount_all_array);\n }\n }\n }\n\n if ($selectedDate . \" \" . $time == $date) {\n $total_installment_amount += $installment_amount;\n if (strtotime(date(\"Y/m/d\")) < strtotime($date) || strtotime($selectedDate) < strtotime($date)) {\n break;\n }\n } else {\n if (strtotime(date(\"Y/m/d\")) < strtotime($date) || strtotime($selectedDate) < strtotime($date)) {\n break;\n }\n $total_installment_amount += $installment_amount;\n }\n\n\n $start->modify($modify_range);\n $x++;\n\n if ($numOfInstallments == $x) {\n //get installment end date\n $INSTALLMENT_END = new DateTime($date);\n $INSTALLMENT_END->modify('+7 day');\n $installment_end = $INSTALLMENT_END->format('Y-m-d H:i:s');\n\n //get 5 years ahead date from installment end date\n $INSTALLMENT_UNLIMITED_END = new DateTime($date);\n $INSTALLMENT_UNLIMITED_END->modify('+1725 day');\n $installment_unlimited_end = $INSTALLMENT_UNLIMITED_END->format('Y-m-d H:i:s');\n\n\n $start = strtotime($date);\n $end = strtotime(date(\"Y/m/d\"));\n\n $days_between = floor(abs($end - $start) / 86400) - 1;\n\n $z = 0;\n\n $od_date_start1 = new DateTime($od_night);\n $od_date_start1->modify('+1 day +23 hours +59 minutes +58 seconds');\n $defult_val = $days_between;\n\n //if having od after installment end\n if ($od !== false) {\n\n $last_od_date = date('D/M/Y', strtotime($od_night));\n $last_installment_date = date('D/M/Y', strtotime($date));\n\n if ($last_od_date == $last_installment_date) {\n $last_loop_od = $od_interest;\n } else {\n $last_loop_od = 0;\n }\n\n// $od_amount_all_array_1 = array();\n\n while ($z <= $defult_val) {\n\n if ($od['od_date_start'] <= $od_date_start1) {\n $od_dates = '+1 day';\n }\n\n\n $od_date1 = $od_date_start1->format('Y-m-d H:i:s');\n\n //getting brfore of date from current od date\n $OLDODDATE = new DateTime($od_date1);\n $od_date_remove1 = '-23 hours -59 minutes -58 seconds';\n\n $OLDODDATE->modify($od_date_remove1);\n $old_od_date = $OLDODDATE->format('Y-m-d H:i:s');\n\n if (strtotime($selectedDate) <= strtotime($od_date1)) {\n break;\n }\n\n\n $od_array[] = $od_interest;\n $od_amount_all = json_encode(round(array_sum($od_array)));\n\n// if ($od_amount_all > 0 || $paid_all_od_before_ins_date == $last_od_amount) {\n//\n// array_push($od_amount_all_array_1, $od_amount_all);\n// }\n array_push($od_amount_all_array, $od_interest);\n\n// $last_od_amount = (float) end($od_amount_all_array_1);\n $od_date_start1->modify($od_dates);\n $z++;\n }\n }\n }\n }\n } else if ($this->installment_type == 1) {\n\n $FID = new DateTime($this->effective_date);\n $FID->modify('+1 months');\n $first_installment_date = $FID->format('Y-m-d ' . $time);\n\n\n $start = new DateTime($first_installment_date);\n $first_date = $start->format('Y-m-d ' . $time);\n\n $x = 0;\n $no_of_installments = 0;\n $total_installment_amount = 0;\n $ins_total = 0;\n $total_paid = 0;\n $od_amount_all_array = array();\n $od_array = array();\n $last_od = array();\n $od_total = array();\n $last_od_balance = array();\n $od_balance_amount = array();\n\n while ($x < $numOfInstallments) {\n if ($numOfInstallments == 4) {\n $modify_range = '+7 day';\n } elseif ($numOfInstallments == 30) {\n $modify_range = '+1 day';\n } elseif ($numOfInstallments == 8) {\n $modify_range = '+7 day';\n } elseif ($numOfInstallments == 60) {\n $modify_range = '+1 day';\n } elseif ($numOfInstallments == 2) {\n $modify_range = '+1 months';\n } elseif ($numOfInstallments == 1) {\n $modify_range = '+1 months';\n } elseif ($numOfInstallments == 90) {\n $modify_range = '+1 day';\n } elseif ($numOfInstallments == 12) {\n $modify_range = '+7 day';\n } elseif ($numOfInstallments == 3) {\n $modify_range = '+1 months';\n } elseif ($numOfInstallments == 100) {\n $modify_range = '+1 day';\n } elseif ($numOfInstallments == 13) {\n $modify_range = '+7 day';\n }\n\n $date = $start->format('Y-m-d ' . $time);\n\n $paid_amount = 0;\n $od_amount = 0;\n $od_amount_all = 0;\n $balance = 0;\n $loan_proccesign_fee_paid = 0;\n $total_od_paid = 0;\n $paid_all_amount_before_ins_date = 0;\n $paid_all_od_before_ins_date = 0;\n\n $customer = $this->customer;\n $CUSTOMER = new Customer($customer);\n $route = $CUSTOMER->route;\n $center = $CUSTOMER->center;\n $installment_amount = $this->installment_amount;\n\n $FID = new DateTime($date);\n $FID->modify($modify_range);\n $day_remove = '-1 day';\n $FID->modify($day_remove);\n $second_installment_date = $FID->format('Y-m-d ' . $time);\n $amount = $this->installment_amount;\n\n $INSTALLMENT = new Installment(NULL);\n $ALl_AMOUNT = $INSTALLMENT->getAmountByLoanId($this->id);\n\n foreach ($INSTALLMENT->CheckInstallmetByPaidDate($date, $this->id) as $paid) {\n $paid_amount += $paid['paid_amount'];\n }\n\n $before_payment_amounts = $INSTALLMENT->getPaidAmountByBeforeDate($date, $this->id);\n\n foreach ($before_payment_amounts as $before_payment_amount) {\n $paid_all_amount_before_ins_date += $before_payment_amount['paid_amount'];\n $paid_all_od_before_ins_date += $before_payment_amount['additional_interest'];\n }\n\n if (PostponeDate::CheckIsPostPoneByDateAndCustomer($date, $customer) || PostponeDate::CheckIsPostPoneByDateAndRoute($date, $route) || PostponeDate::CheckIsPostPoneByDateAndCenter($date, $center) || PostponeDate::CheckIsPostPoneByDateAndAll($date) || PostponeDate::CheckIsPostPoneByDateCenterAll($date) || PostponeDate::CheckIsPostPoneByDateRouteAll($date)) {\n $start->modify($modify_range);\n } else {\n\n $last_od_amount = (float) end($od_amount_all_array);\n $ins_total += $amount;\n $total_paid += $paid_amount;\n\n $balance = $paid_all_od_before_ins_date + $paid_all_amount_before_ins_date - $ins_total - $last_od_amount;\n\n $OD = new OD(NULL);\n $OD->loan = $this->id;\n $od = $OD->allOdByLoanAndDate($date, $balance);\n\n if (PostponeDate::CheckIsPostPoneByDateAndCustomer($date, $customer) || PostponeDate::CheckIsPostPoneByDateAndRoute($date, $route) || PostponeDate::CheckIsPostPoneByDateAndCenter($date, $center) || PostponeDate::CheckIsPostPoneByDateAndAll($date) || PostponeDate::CheckIsPostPoneByDateCenterAll($date) || PostponeDate::CheckIsPostPoneByDateRouteAll($date) || $ALl_AMOUNT[0] >= $ins_total) {\n \n } else {\n if ($od !== false) {\n $y = 0;\n //get how many dates in month\n $dateValue = strtotime($date);\n $year = date(\"Y\", $dateValue);\n $month = date(\"m\", $dateValue);\n\n $daysOfMonth = cal_days_in_month(CAL_GREGORIAN, $month, $year);\n\n $od_date_start = new DateTime($date);\n $defult_val = $daysOfMonth - 1;\n $od_interest = $this->getOdIntereset(-$ins_total + $paid_all_amount_before_ins_date, $od['od_interest_limit']);\n\n while ($y <= $defult_val) {\n\n if ($defult_val <= $daysOfMonth - 1 && $this->od_date <= $od_date_start) {\n $od_dates = '+1 day';\n }\n\n $od_date = $od_date_start->format('Y-m-d');\n\n\n if (strtotime($date) >= strtotime($selectedDate) || strtotime($od_date) >= strtotime($selectedDate)) {\n break;\n }\n $ODDATES = new DateTime($od_date);\n $ODDATES->modify($od_dates);\n\n $od_date_remove = '-1 day -23 hours -59 minutes -58 seconds';\n\n $ODDATES->modify($od_date_remove);\n\n $od_night = $ODDATES->format('Y-m-d H:i:s');\n\n $od_array[] = $od_interest;\n $od_amount_all = json_encode(round(array_sum($od_array), 2));\n\n array_push($od_amount_all_array, $od_amount_all);\n\n $od_date_start->modify($od_dates);\n $y++;\n }\n }\n }\n }\n\n if ($selectedDate . \" \" . $time == $date) {\n $total_installment_amount += $installment_amount;\n if (strtotime(date(\"Y/m/d\")) < strtotime($date) || strtotime($selectedDate) < strtotime($date)) {\n break;\n }\n } else {\n if (strtotime(date(\"Y/m/d\")) < strtotime($date) || strtotime($selectedDate) < strtotime($date)) {\n break;\n }\n $total_installment_amount += $installment_amount;\n }\n\n $start->modify($modify_range);\n $x++;\n\n if ($numOfInstallments == $x) {\n\n //get installment end date\n $INSTALLMENT_END = new DateTime($date);\n $INSTALLMENT_END->modify('+' . $daysOfMonth . ' day');\n $installment_end = $INSTALLMENT_END->format('Y-m-d H:i:s');\n\n //get 5 years ahead date from installment end date\n $INSTALLMENT_UNLIMITED_END = new DateTime($date);\n $INSTALLMENT_UNLIMITED_END->modify('+1725 day');\n $installment_unlimited_end = $INSTALLMENT_UNLIMITED_END->format('Y-m-d H:i:s');\n\n\n $start = strtotime($date);\n $end = strtotime(date(\"Y/m/d\"));\n\n $days_between = floor(abs($end - $start) / 86400) - 1;\n\n $z = 0;\n\n $od_date_start1 = new DateTime($od_night);\n $od_date_start1->modify('+1 day +23 hours +59 minutes +58 seconds');\n\n $defult_val = $days_between;\n\n //if having od after installment end\n if ($od !== false) {\n\n $last_od_date = date('D/M/Y', strtotime($od_night));\n $last_installment_date = date('D/M/Y', strtotime($date));\n\n $od_amount_all_array_1 = array();\n while ($z <= $defult_val) {\n\n if ($od['od_date_start'] <= $od_date_start1) {\n $od_dates = '+1 day';\n }\n\n $od_date1 = $od_date_start1->format('Y-m-d');\n\n //getting brfore of date from current od date\n $OLDODDATE = new DateTime($od_date1);\n\n $od_date_remove1 = '-23 hours -59 minutes -58 seconds';\n\n $OLDODDATE->modify($od_date_remove1);\n\n $old_od_date = $OLDODDATE->format('Y-m-d H:i:s');\n if (strtotime($selectedDate) <= strtotime($old_od_date) || strtotime($od['od_date_end'] . $time) < strtotime($old_od_date)) {\n break;\n }\n $last_od_amount = (float) end($od_amount_all_array_1);\n\n $od_array[] = $od_interest;\n $od_amount_all = json_encode(round(array_sum($od_array), 2));\n\n if ($od_amount_all > 0 || $paid_all_od_before_ins_date == $last_od_amount) {\n\n array_push($od_amount_all_array_1, $od_amount_all);\n }\n\n $od_date_start1->modify($od_dates);\n $z++;\n }\n }\n }\n }\n }\n\n $last_od_amount_balance = $last_od_amount - $paid_aditional_interrest;\n\n if ($last_od_amount_balance > 0) {\n $last_od_amount_balance = $last_od_amount_balance;\n } else {\n $last_od_amount_balance = 0;\n }\n\n $all_arress = ($total_paid_installment) - ($total_installment_amount );\n $system_due = $loan_amount - $total_installment_amount;\n $system_due_num_of_ins = $system_due / $this->installment_amount;\n $actual_due_num_of_ins = $actual_due / $this->installment_amount;\n\n\n if ($this->installment_type == 4 || $this->installment_type == 1) {\n $actual_due = $all_arress + ($last_od_amount - $paid_aditional_interrest);\n }\n return [\n 'date' => $date,\n 'od_amount' => $last_od_amount_balance,\n 'all_arress' => $all_arress,\n 'all_amount' => $balance,\n 'system-due-num-of-ins' => $system_due_num_of_ins,\n 'system-due' => $system_due,\n 'actual-due-num-of-ins' => $actual_due_num_of_ins,\n 'actual-due' => $actual_due,\n 'receipt-num-of-ins' => $total_paid_installment / $this->installment_amount,\n 'receipt' => $total_paid_installment + $paid_aditional_interrest,\n 'arrears-excess-num-of-ins' => ($total_installment_amount - $total_paid_installment) / $this->installment_amount,\n 'arrears-excess' => $total_installment_amount - $total_paid_installment,\n 'installment_amount' => $amount,\n ];\n }", "public function run()\n\t{\n\t\t\\DB::table('districts')->truncate();\n \n\t\t\\DB::table('districts')->insert(array (\n\t\t\t0 => \n\t\t\tarray (\n\t\t\t\t'id' => '1',\n\t\t\t\t'slug' => 'avenue',\n\t\t\t\t'seats' => '3',\n\t\t\t\t'body_id' => '1',\n\t\t\t\t'created_at' => '2015-01-20 12:24:46',\n\t\t\t\t'updated_at' => '2015-01-20 12:24:46',\n\t\t\t\t'ons_district_code' => 'E05001664',\n\t\t\t\t'ons_district_code_old' => '00FAMX',\n\t\t\t\t'name' => 'Avenue',\n\t\t\t\t'ons_la_code' => 'E06000010',\n\t\t\t\t'body_name' => 'Kingston upon Hull, City of',\n\t\t\t\t'ons_constituency_code' => 'E14000772',\n\t\t\t\t'ons_constituency_code_old' => 'C45',\n\t\t\t\t'ons_constituency_name' => 'Kingston upon Hull North',\n\t\t\t\t'male_all_ages' => '6907',\n\t\t\t\t'm0' => '84',\n\t\t\t\t'm1' => '83',\n\t\t\t\t'm2' => '75',\n\t\t\t\t'm3' => '78',\n\t\t\t\t'm4' => '69',\n\t\t\t\t'm5' => '63',\n\t\t\t\t'm6' => '61',\n\t\t\t\t'm7' => '61',\n\t\t\t\t'm8' => '62',\n\t\t\t\t'm9' => '78',\n\t\t\t\t'm10' => '49',\n\t\t\t\t'm11' => '53',\n\t\t\t\t'm12' => '56',\n\t\t\t\t'm13' => '44',\n\t\t\t\t'm14' => '57',\n\t\t\t\t'm15' => '65',\n\t\t\t\t'm16' => '64',\n\t\t\t\t'm17' => '53',\n\t\t\t\t'm18' => '68',\n\t\t\t\t'm19' => '64',\n\t\t\t\t'm20' => '177',\n\t\t\t\t'm21' => '192',\n\t\t\t\t'm22' => '195',\n\t\t\t\t'm23' => '163',\n\t\t\t\t'm24' => '170',\n\t\t\t\t'm25' => '140',\n\t\t\t\t'm26' => '154',\n\t\t\t\t'm27' => '181',\n\t\t\t\t'm28' => '170',\n\t\t\t\t'm29' => '147',\n\t\t\t\t'm30' => '144',\n\t\t\t\t'm31' => '124',\n\t\t\t\t'm32' => '144',\n\t\t\t\t'm33' => '126',\n\t\t\t\t'm34' => '136',\n\t\t\t\t'm35' => '122',\n\t\t\t\t'm36' => '98',\n\t\t\t\t'm37' => '120',\n\t\t\t\t'm38' => '126',\n\t\t\t\t'm39' => '99',\n\t\t\t\t'm40' => '118',\n\t\t\t\t'm41' => '111',\n\t\t\t\t'm42' => '106',\n\t\t\t\t'm43' => '110',\n\t\t\t\t'm44' => '84',\n\t\t\t\t'm45' => '112',\n\t\t\t\t'm46' => '75',\n\t\t\t\t'm47' => '86',\n\t\t\t\t'm48' => '81',\n\t\t\t\t'm49' => '99',\n\t\t\t\t'm50' => '100',\n\t\t\t\t'm51' => '89',\n\t\t\t\t'm52' => '71',\n\t\t\t\t'm53' => '83',\n\t\t\t\t'm54' => '80',\n\t\t\t\t'm55' => '69',\n\t\t\t\t'm56' => '57',\n\t\t\t\t'm57' => '68',\n\t\t\t\t'm58' => '69',\n\t\t\t\t'm59' => '62',\n\t\t\t\t'm60' => '58',\n\t\t\t\t'm61' => '68',\n\t\t\t\t'm62' => '60',\n\t\t\t\t'm63' => '65',\n\t\t\t\t'm64' => '49',\n\t\t\t\t'm65' => '67',\n\t\t\t\t'm66' => '57',\n\t\t\t\t'm67' => '42',\n\t\t\t\t'm68' => '50',\n\t\t\t\t'm69' => '28',\n\t\t\t\t'm70' => '41',\n\t\t\t\t'm71' => '30',\n\t\t\t\t'm72' => '22',\n\t\t\t\t'm73' => '22',\n\t\t\t\t'm74' => '34',\n\t\t\t\t'm75' => '32',\n\t\t\t\t'm76' => '20',\n\t\t\t\t'm77' => '23',\n\t\t\t\t'm78' => '29',\n\t\t\t\t'm79' => '25',\n\t\t\t\t'm80' => '14',\n\t\t\t\t'm81' => '15',\n\t\t\t\t'm82' => '18',\n\t\t\t\t'm83' => '13',\n\t\t\t\t'm84' => '15',\n\t\t\t\t'm85' => '10',\n\t\t\t\t'm86' => '10',\n\t\t\t\t'm87' => '7',\n\t\t\t\t'm88' => '6',\n\t\t\t\t'm89' => '6',\n\t\t\t\t'm90' => '26',\n\t\t\t\t'female_all_ages' => '6242',\n\t\t\t\t'f0' => '98',\n\t\t\t\t'f1' => '94',\n\t\t\t\t'f2' => '75',\n\t\t\t\t'f3' => '68',\n\t\t\t\t'f4' => '91',\n\t\t\t\t'f5' => '71',\n\t\t\t\t'f6' => '67',\n\t\t\t\t'f7' => '68',\n\t\t\t\t'f8' => '51',\n\t\t\t\t'f9' => '51',\n\t\t\t\t'f10' => '45',\n\t\t\t\t'f11' => '45',\n\t\t\t\t'f12' => '50',\n\t\t\t\t'f13' => '53',\n\t\t\t\t'f14' => '54',\n\t\t\t\t'f15' => '56',\n\t\t\t\t'f16' => '63',\n\t\t\t\t'f17' => '63',\n\t\t\t\t'f18' => '61',\n\t\t\t\t'f19' => '89',\n\t\t\t\t'f20' => '107',\n\t\t\t\t'f21' => '126',\n\t\t\t\t'f22' => '127',\n\t\t\t\t'f23' => '153',\n\t\t\t\t'f24' => '130',\n\t\t\t\t'f25' => '155',\n\t\t\t\t'f26' => '138',\n\t\t\t\t'f27' => '135',\n\t\t\t\t'f28' => '133',\n\t\t\t\t'f29' => '118',\n\t\t\t\t'f30' => '116',\n\t\t\t\t'f31' => '119',\n\t\t\t\t'f32' => '111',\n\t\t\t\t'f33' => '113',\n\t\t\t\t'f34' => '118',\n\t\t\t\t'f35' => '92',\n\t\t\t\t'f36' => '77',\n\t\t\t\t'f37' => '77',\n\t\t\t\t'f38' => '85',\n\t\t\t\t'f39' => '79',\n\t\t\t\t'f40' => '77',\n\t\t\t\t'f41' => '74',\n\t\t\t\t'f42' => '99',\n\t\t\t\t'f43' => '88',\n\t\t\t\t'f44' => '78',\n\t\t\t\t'f45' => '80',\n\t\t\t\t'f46' => '84',\n\t\t\t\t'f47' => '88',\n\t\t\t\t'f48' => '68',\n\t\t\t\t'f49' => '90',\n\t\t\t\t'f50' => '87',\n\t\t\t\t'f51' => '73',\n\t\t\t\t'f52' => '87',\n\t\t\t\t'f53' => '84',\n\t\t\t\t'f54' => '68',\n\t\t\t\t'f55' => '73',\n\t\t\t\t'f56' => '73',\n\t\t\t\t'f57' => '60',\n\t\t\t\t'f58' => '60',\n\t\t\t\t'f59' => '62',\n\t\t\t\t'f60' => '62',\n\t\t\t\t'f61' => '64',\n\t\t\t\t'f62' => '52',\n\t\t\t\t'f63' => '60',\n\t\t\t\t'f64' => '59',\n\t\t\t\t'f65' => '58',\n\t\t\t\t'f66' => '59',\n\t\t\t\t'f67' => '45',\n\t\t\t\t'f68' => '47',\n\t\t\t\t'f69' => '44',\n\t\t\t\t'f70' => '39',\n\t\t\t\t'f71' => '33',\n\t\t\t\t'f72' => '29',\n\t\t\t\t'f73' => '31',\n\t\t\t\t'f74' => '41',\n\t\t\t\t'f75' => '23',\n\t\t\t\t'f76' => '14',\n\t\t\t\t'f77' => '29',\n\t\t\t\t'f78' => '24',\n\t\t\t\t'f79' => '22',\n\t\t\t\t'f80' => '30',\n\t\t\t\t'f81' => '19',\n\t\t\t\t'f82' => '16',\n\t\t\t\t'f83' => '19',\n\t\t\t\t'f84' => '21',\n\t\t\t\t'f85' => '27',\n\t\t\t\t'f86' => '15',\n\t\t\t\t'f87' => '12',\n\t\t\t\t'f88' => '14',\n\t\t\t\t'f89' => '16',\n\t\t\t\t'f90' => '43',\n\t\t\t),\n\t\t\t1 => \n\t\t\tarray (\n\t\t\t\t'id' => '2',\n\t\t\t\t'slug' => 'beverley',\n\t\t\t\t'seats' => '3',\n\t\t\t\t'body_id' => '1',\n\t\t\t\t'created_at' => '2015-01-20 12:24:46',\n\t\t\t\t'updated_at' => '2015-01-20 12:24:46',\n\t\t\t\t'ons_district_code' => 'E05001665',\n\t\t\t\t'ons_district_code_old' => '00FAMY',\n\t\t\t\t'name' => 'Beverley',\n\t\t\t\t'ons_la_code' => 'E06000010',\n\t\t\t\t'body_name' => 'Kingston upon Hull, City of',\n\t\t\t\t'ons_constituency_code' => 'E14000772',\n\t\t\t\t'ons_constituency_code_old' => 'C45',\n\t\t\t\t'ons_constituency_name' => 'Kingston upon Hull North',\n\t\t\t\t'male_all_ages' => '4175',\n\t\t\t\t'm0' => '45',\n\t\t\t\t'm1' => '40',\n\t\t\t\t'm2' => '45',\n\t\t\t\t'm3' => '27',\n\t\t\t\t'm4' => '34',\n\t\t\t\t'm5' => '39',\n\t\t\t\t'm6' => '40',\n\t\t\t\t'm7' => '35',\n\t\t\t\t'm8' => '38',\n\t\t\t\t'm9' => '30',\n\t\t\t\t'm10' => '36',\n\t\t\t\t'm11' => '34',\n\t\t\t\t'm12' => '29',\n\t\t\t\t'm13' => '33',\n\t\t\t\t'm14' => '28',\n\t\t\t\t'm15' => '45',\n\t\t\t\t'm16' => '42',\n\t\t\t\t'm17' => '36',\n\t\t\t\t'm18' => '44',\n\t\t\t\t'm19' => '49',\n\t\t\t\t'm20' => '89',\n\t\t\t\t'm21' => '138',\n\t\t\t\t'm22' => '116',\n\t\t\t\t'm23' => '101',\n\t\t\t\t'm24' => '56',\n\t\t\t\t'm25' => '72',\n\t\t\t\t'm26' => '47',\n\t\t\t\t'm27' => '47',\n\t\t\t\t'm28' => '44',\n\t\t\t\t'm29' => '51',\n\t\t\t\t'm30' => '41',\n\t\t\t\t'm31' => '55',\n\t\t\t\t'm32' => '51',\n\t\t\t\t'm33' => '44',\n\t\t\t\t'm34' => '47',\n\t\t\t\t'm35' => '51',\n\t\t\t\t'm36' => '52',\n\t\t\t\t'm37' => '39',\n\t\t\t\t'm38' => '45',\n\t\t\t\t'm39' => '43',\n\t\t\t\t'm40' => '57',\n\t\t\t\t'm41' => '55',\n\t\t\t\t'm42' => '52',\n\t\t\t\t'm43' => '58',\n\t\t\t\t'm44' => '48',\n\t\t\t\t'm45' => '51',\n\t\t\t\t'm46' => '63',\n\t\t\t\t'm47' => '47',\n\t\t\t\t'm48' => '60',\n\t\t\t\t'm49' => '53',\n\t\t\t\t'm50' => '58',\n\t\t\t\t'm51' => '57',\n\t\t\t\t'm52' => '50',\n\t\t\t\t'm53' => '59',\n\t\t\t\t'm54' => '57',\n\t\t\t\t'm55' => '55',\n\t\t\t\t'm56' => '53',\n\t\t\t\t'm57' => '66',\n\t\t\t\t'm58' => '56',\n\t\t\t\t'm59' => '43',\n\t\t\t\t'm60' => '61',\n\t\t\t\t'm61' => '49',\n\t\t\t\t'm62' => '57',\n\t\t\t\t'm63' => '56',\n\t\t\t\t'm64' => '49',\n\t\t\t\t'm65' => '61',\n\t\t\t\t'm66' => '75',\n\t\t\t\t'm67' => '41',\n\t\t\t\t'm68' => '36',\n\t\t\t\t'm69' => '47',\n\t\t\t\t'm70' => '45',\n\t\t\t\t'm71' => '32',\n\t\t\t\t'm72' => '37',\n\t\t\t\t'm73' => '40',\n\t\t\t\t'm74' => '41',\n\t\t\t\t'm75' => '42',\n\t\t\t\t'm76' => '47',\n\t\t\t\t'm77' => '39',\n\t\t\t\t'm78' => '41',\n\t\t\t\t'm79' => '29',\n\t\t\t\t'm80' => '22',\n\t\t\t\t'm81' => '25',\n\t\t\t\t'm82' => '20',\n\t\t\t\t'm83' => '18',\n\t\t\t\t'm84' => '16',\n\t\t\t\t'm85' => '17',\n\t\t\t\t'm86' => '10',\n\t\t\t\t'm87' => '6',\n\t\t\t\t'm88' => '7',\n\t\t\t\t'm89' => '7',\n\t\t\t\t'm90' => '26',\n\t\t\t\t'female_all_ages' => '4200',\n\t\t\t\t'f0' => '45',\n\t\t\t\t'f1' => '33',\n\t\t\t\t'f2' => '35',\n\t\t\t\t'f3' => '38',\n\t\t\t\t'f4' => '32',\n\t\t\t\t'f5' => '41',\n\t\t\t\t'f6' => '32',\n\t\t\t\t'f7' => '34',\n\t\t\t\t'f8' => '20',\n\t\t\t\t'f9' => '35',\n\t\t\t\t'f10' => '30',\n\t\t\t\t'f11' => '31',\n\t\t\t\t'f12' => '28',\n\t\t\t\t'f13' => '30',\n\t\t\t\t'f14' => '35',\n\t\t\t\t'f15' => '30',\n\t\t\t\t'f16' => '45',\n\t\t\t\t'f17' => '39',\n\t\t\t\t'f18' => '36',\n\t\t\t\t'f19' => '44',\n\t\t\t\t'f20' => '124',\n\t\t\t\t'f21' => '104',\n\t\t\t\t'f22' => '80',\n\t\t\t\t'f23' => '74',\n\t\t\t\t'f24' => '75',\n\t\t\t\t'f25' => '48',\n\t\t\t\t'f26' => '51',\n\t\t\t\t'f27' => '60',\n\t\t\t\t'f28' => '52',\n\t\t\t\t'f29' => '37',\n\t\t\t\t'f30' => '37',\n\t\t\t\t'f31' => '60',\n\t\t\t\t'f32' => '57',\n\t\t\t\t'f33' => '48',\n\t\t\t\t'f34' => '50',\n\t\t\t\t'f35' => '42',\n\t\t\t\t'f36' => '33',\n\t\t\t\t'f37' => '45',\n\t\t\t\t'f38' => '40',\n\t\t\t\t'f39' => '38',\n\t\t\t\t'f40' => '47',\n\t\t\t\t'f41' => '50',\n\t\t\t\t'f42' => '57',\n\t\t\t\t'f43' => '45',\n\t\t\t\t'f44' => '57',\n\t\t\t\t'f45' => '39',\n\t\t\t\t'f46' => '48',\n\t\t\t\t'f47' => '56',\n\t\t\t\t'f48' => '57',\n\t\t\t\t'f49' => '53',\n\t\t\t\t'f50' => '66',\n\t\t\t\t'f51' => '68',\n\t\t\t\t'f52' => '64',\n\t\t\t\t'f53' => '57',\n\t\t\t\t'f54' => '63',\n\t\t\t\t'f55' => '58',\n\t\t\t\t'f56' => '69',\n\t\t\t\t'f57' => '60',\n\t\t\t\t'f58' => '48',\n\t\t\t\t'f59' => '56',\n\t\t\t\t'f60' => '55',\n\t\t\t\t'f61' => '66',\n\t\t\t\t'f62' => '45',\n\t\t\t\t'f63' => '60',\n\t\t\t\t'f64' => '57',\n\t\t\t\t'f65' => '62',\n\t\t\t\t'f66' => '68',\n\t\t\t\t'f67' => '55',\n\t\t\t\t'f68' => '51',\n\t\t\t\t'f69' => '43',\n\t\t\t\t'f70' => '55',\n\t\t\t\t'f71' => '47',\n\t\t\t\t'f72' => '52',\n\t\t\t\t'f73' => '48',\n\t\t\t\t'f74' => '46',\n\t\t\t\t'f75' => '44',\n\t\t\t\t'f76' => '48',\n\t\t\t\t'f77' => '32',\n\t\t\t\t'f78' => '36',\n\t\t\t\t'f79' => '29',\n\t\t\t\t'f80' => '34',\n\t\t\t\t'f81' => '29',\n\t\t\t\t'f82' => '32',\n\t\t\t\t'f83' => '27',\n\t\t\t\t'f84' => '15',\n\t\t\t\t'f85' => '19',\n\t\t\t\t'f86' => '18',\n\t\t\t\t'f87' => '17',\n\t\t\t\t'f88' => '10',\n\t\t\t\t'f89' => '6',\n\t\t\t\t'f90' => '28',\n\t\t\t),\n\t\t\t2 => \n\t\t\tarray (\n\t\t\t\t'id' => '3',\n\t\t\t\t'slug' => 'boothferry',\n\t\t\t\t'seats' => '3',\n\t\t\t\t'body_id' => '1',\n\t\t\t\t'created_at' => '2015-01-20 12:24:46',\n\t\t\t\t'updated_at' => '2015-01-20 12:24:46',\n\t\t\t\t'ons_district_code' => 'E05001666',\n\t\t\t\t'ons_district_code_old' => '00FAMZ',\n\t\t\t\t'name' => 'Boothferry',\n\t\t\t\t'ons_la_code' => 'E06000010',\n\t\t\t\t'body_name' => 'Kingston upon Hull, City of',\n\t\t\t\t'ons_constituency_code' => 'E14000773',\n\t\t\t\t'ons_constituency_code_old' => 'C46',\n\t\t\t\t'ons_constituency_name' => 'Kingston upon Hull West and Hessle',\n\t\t\t\t'male_all_ages' => '5905',\n\t\t\t\t'm0' => '87',\n\t\t\t\t'm1' => '85',\n\t\t\t\t'm2' => '91',\n\t\t\t\t'm3' => '75',\n\t\t\t\t'm4' => '93',\n\t\t\t\t'm5' => '66',\n\t\t\t\t'm6' => '70',\n\t\t\t\t'm7' => '64',\n\t\t\t\t'm8' => '77',\n\t\t\t\t'm9' => '61',\n\t\t\t\t'm10' => '40',\n\t\t\t\t'm11' => '63',\n\t\t\t\t'm12' => '49',\n\t\t\t\t'm13' => '69',\n\t\t\t\t'm14' => '79',\n\t\t\t\t'm15' => '82',\n\t\t\t\t'm16' => '70',\n\t\t\t\t'm17' => '66',\n\t\t\t\t'm18' => '75',\n\t\t\t\t'm19' => '56',\n\t\t\t\t'm20' => '54',\n\t\t\t\t'm21' => '80',\n\t\t\t\t'm22' => '88',\n\t\t\t\t'm23' => '67',\n\t\t\t\t'm24' => '80',\n\t\t\t\t'm25' => '84',\n\t\t\t\t'm26' => '73',\n\t\t\t\t'm27' => '84',\n\t\t\t\t'm28' => '81',\n\t\t\t\t'm29' => '77',\n\t\t\t\t'm30' => '53',\n\t\t\t\t'm31' => '76',\n\t\t\t\t'm32' => '69',\n\t\t\t\t'm33' => '62',\n\t\t\t\t'm34' => '73',\n\t\t\t\t'm35' => '63',\n\t\t\t\t'm36' => '81',\n\t\t\t\t'm37' => '67',\n\t\t\t\t'm38' => '74',\n\t\t\t\t'm39' => '60',\n\t\t\t\t'm40' => '77',\n\t\t\t\t'm41' => '95',\n\t\t\t\t'm42' => '93',\n\t\t\t\t'm43' => '73',\n\t\t\t\t'm44' => '76',\n\t\t\t\t'm45' => '95',\n\t\t\t\t'm46' => '104',\n\t\t\t\t'm47' => '90',\n\t\t\t\t'm48' => '94',\n\t\t\t\t'm49' => '91',\n\t\t\t\t'm50' => '81',\n\t\t\t\t'm51' => '89',\n\t\t\t\t'm52' => '105',\n\t\t\t\t'm53' => '101',\n\t\t\t\t'm54' => '96',\n\t\t\t\t'm55' => '76',\n\t\t\t\t'm56' => '72',\n\t\t\t\t'm57' => '77',\n\t\t\t\t'm58' => '80',\n\t\t\t\t'm59' => '64',\n\t\t\t\t'm60' => '62',\n\t\t\t\t'm61' => '68',\n\t\t\t\t'm62' => '59',\n\t\t\t\t'm63' => '73',\n\t\t\t\t'm64' => '62',\n\t\t\t\t'm65' => '73',\n\t\t\t\t'm66' => '86',\n\t\t\t\t'm67' => '57',\n\t\t\t\t'm68' => '63',\n\t\t\t\t'm69' => '49',\n\t\t\t\t'm70' => '60',\n\t\t\t\t'm71' => '52',\n\t\t\t\t'm72' => '42',\n\t\t\t\t'm73' => '43',\n\t\t\t\t'm74' => '54',\n\t\t\t\t'm75' => '35',\n\t\t\t\t'm76' => '44',\n\t\t\t\t'm77' => '40',\n\t\t\t\t'm78' => '36',\n\t\t\t\t'm79' => '28',\n\t\t\t\t'm80' => '35',\n\t\t\t\t'm81' => '33',\n\t\t\t\t'm82' => '29',\n\t\t\t\t'm83' => '18',\n\t\t\t\t'm84' => '19',\n\t\t\t\t'm85' => '18',\n\t\t\t\t'm86' => '14',\n\t\t\t\t'm87' => '10',\n\t\t\t\t'm88' => '12',\n\t\t\t\t'm89' => '4',\n\t\t\t\t'm90' => '34',\n\t\t\t\t'female_all_ages' => '6188',\n\t\t\t\t'f0' => '59',\n\t\t\t\t'f1' => '79',\n\t\t\t\t'f2' => '70',\n\t\t\t\t'f3' => '70',\n\t\t\t\t'f4' => '66',\n\t\t\t\t'f5' => '82',\n\t\t\t\t'f6' => '81',\n\t\t\t\t'f7' => '59',\n\t\t\t\t'f8' => '65',\n\t\t\t\t'f9' => '69',\n\t\t\t\t'f10' => '58',\n\t\t\t\t'f11' => '54',\n\t\t\t\t'f12' => '71',\n\t\t\t\t'f13' => '65',\n\t\t\t\t'f14' => '60',\n\t\t\t\t'f15' => '55',\n\t\t\t\t'f16' => '72',\n\t\t\t\t'f17' => '60',\n\t\t\t\t'f18' => '61',\n\t\t\t\t'f19' => '75',\n\t\t\t\t'f20' => '73',\n\t\t\t\t'f21' => '75',\n\t\t\t\t'f22' => '81',\n\t\t\t\t'f23' => '63',\n\t\t\t\t'f24' => '87',\n\t\t\t\t'f25' => '105',\n\t\t\t\t'f26' => '76',\n\t\t\t\t'f27' => '80',\n\t\t\t\t'f28' => '64',\n\t\t\t\t'f29' => '75',\n\t\t\t\t'f30' => '85',\n\t\t\t\t'f31' => '82',\n\t\t\t\t'f32' => '85',\n\t\t\t\t'f33' => '84',\n\t\t\t\t'f34' => '75',\n\t\t\t\t'f35' => '55',\n\t\t\t\t'f36' => '54',\n\t\t\t\t'f37' => '78',\n\t\t\t\t'f38' => '73',\n\t\t\t\t'f39' => '70',\n\t\t\t\t'f40' => '82',\n\t\t\t\t'f41' => '94',\n\t\t\t\t'f42' => '82',\n\t\t\t\t'f43' => '81',\n\t\t\t\t'f44' => '81',\n\t\t\t\t'f45' => '97',\n\t\t\t\t'f46' => '93',\n\t\t\t\t'f47' => '100',\n\t\t\t\t'f48' => '106',\n\t\t\t\t'f49' => '96',\n\t\t\t\t'f50' => '97',\n\t\t\t\t'f51' => '99',\n\t\t\t\t'f52' => '105',\n\t\t\t\t'f53' => '89',\n\t\t\t\t'f54' => '84',\n\t\t\t\t'f55' => '98',\n\t\t\t\t'f56' => '93',\n\t\t\t\t'f57' => '78',\n\t\t\t\t'f58' => '68',\n\t\t\t\t'f59' => '88',\n\t\t\t\t'f60' => '58',\n\t\t\t\t'f61' => '63',\n\t\t\t\t'f62' => '61',\n\t\t\t\t'f63' => '71',\n\t\t\t\t'f64' => '75',\n\t\t\t\t'f65' => '74',\n\t\t\t\t'f66' => '95',\n\t\t\t\t'f67' => '74',\n\t\t\t\t'f68' => '55',\n\t\t\t\t'f69' => '53',\n\t\t\t\t'f70' => '51',\n\t\t\t\t'f71' => '45',\n\t\t\t\t'f72' => '51',\n\t\t\t\t'f73' => '55',\n\t\t\t\t'f74' => '49',\n\t\t\t\t'f75' => '44',\n\t\t\t\t'f76' => '59',\n\t\t\t\t'f77' => '53',\n\t\t\t\t'f78' => '42',\n\t\t\t\t'f79' => '44',\n\t\t\t\t'f80' => '46',\n\t\t\t\t'f81' => '43',\n\t\t\t\t'f82' => '28',\n\t\t\t\t'f83' => '32',\n\t\t\t\t'f84' => '34',\n\t\t\t\t'f85' => '27',\n\t\t\t\t'f86' => '23',\n\t\t\t\t'f87' => '15',\n\t\t\t\t'f88' => '22',\n\t\t\t\t'f89' => '19',\n\t\t\t\t'f90' => '65',\n\t\t\t),\n\t\t\t3 => \n\t\t\tarray (\n\t\t\t\t'id' => '4',\n\t\t\t\t'slug' => 'bransholme-east',\n\t\t\t\t'seats' => '3',\n\t\t\t\t'body_id' => '1',\n\t\t\t\t'created_at' => '2015-01-20 12:24:46',\n\t\t\t\t'updated_at' => '2015-01-20 12:24:46',\n\t\t\t\t'ons_district_code' => 'E05001667',\n\t\t\t\t'ons_district_code_old' => '00FANA',\n\t\t\t\t'name' => 'Bransholme East',\n\t\t\t\t'ons_la_code' => 'E06000010',\n\t\t\t\t'body_name' => 'Kingston upon Hull, City of',\n\t\t\t\t'ons_constituency_code' => 'E14000772',\n\t\t\t\t'ons_constituency_code_old' => 'C45',\n\t\t\t\t'ons_constituency_name' => 'Kingston upon Hull North',\n\t\t\t\t'male_all_ages' => '4962',\n\t\t\t\t'm0' => '95',\n\t\t\t\t'm1' => '113',\n\t\t\t\t'm2' => '103',\n\t\t\t\t'm3' => '103',\n\t\t\t\t'm4' => '102',\n\t\t\t\t'm5' => '109',\n\t\t\t\t'm6' => '89',\n\t\t\t\t'm7' => '109',\n\t\t\t\t'm8' => '83',\n\t\t\t\t'm9' => '81',\n\t\t\t\t'm10' => '72',\n\t\t\t\t'm11' => '87',\n\t\t\t\t'm12' => '79',\n\t\t\t\t'm13' => '72',\n\t\t\t\t'm14' => '78',\n\t\t\t\t'm15' => '87',\n\t\t\t\t'm16' => '93',\n\t\t\t\t'm17' => '86',\n\t\t\t\t'm18' => '85',\n\t\t\t\t'm19' => '89',\n\t\t\t\t'm20' => '89',\n\t\t\t\t'm21' => '65',\n\t\t\t\t'm22' => '78',\n\t\t\t\t'm23' => '73',\n\t\t\t\t'm24' => '78',\n\t\t\t\t'm25' => '80',\n\t\t\t\t'm26' => '74',\n\t\t\t\t'm27' => '68',\n\t\t\t\t'm28' => '81',\n\t\t\t\t'm29' => '51',\n\t\t\t\t'm30' => '58',\n\t\t\t\t'm31' => '66',\n\t\t\t\t'm32' => '71',\n\t\t\t\t'm33' => '61',\n\t\t\t\t'm34' => '64',\n\t\t\t\t'm35' => '64',\n\t\t\t\t'm36' => '53',\n\t\t\t\t'm37' => '66',\n\t\t\t\t'm38' => '73',\n\t\t\t\t'm39' => '71',\n\t\t\t\t'm40' => '73',\n\t\t\t\t'm41' => '68',\n\t\t\t\t'm42' => '65',\n\t\t\t\t'm43' => '63',\n\t\t\t\t'm44' => '68',\n\t\t\t\t'm45' => '50',\n\t\t\t\t'm46' => '69',\n\t\t\t\t'm47' => '57',\n\t\t\t\t'm48' => '66',\n\t\t\t\t'm49' => '67',\n\t\t\t\t'm50' => '48',\n\t\t\t\t'm51' => '58',\n\t\t\t\t'm52' => '58',\n\t\t\t\t'm53' => '40',\n\t\t\t\t'm54' => '31',\n\t\t\t\t'm55' => '53',\n\t\t\t\t'm56' => '46',\n\t\t\t\t'm57' => '32',\n\t\t\t\t'm58' => '45',\n\t\t\t\t'm59' => '51',\n\t\t\t\t'm60' => '37',\n\t\t\t\t'm61' => '37',\n\t\t\t\t'm62' => '41',\n\t\t\t\t'm63' => '47',\n\t\t\t\t'm64' => '48',\n\t\t\t\t'm65' => '47',\n\t\t\t\t'm66' => '47',\n\t\t\t\t'm67' => '32',\n\t\t\t\t'm68' => '30',\n\t\t\t\t'm69' => '20',\n\t\t\t\t'm70' => '26',\n\t\t\t\t'm71' => '35',\n\t\t\t\t'm72' => '31',\n\t\t\t\t'm73' => '19',\n\t\t\t\t'm74' => '28',\n\t\t\t\t'm75' => '16',\n\t\t\t\t'm76' => '12',\n\t\t\t\t'm77' => '14',\n\t\t\t\t'm78' => '13',\n\t\t\t\t'm79' => '11',\n\t\t\t\t'm80' => '11',\n\t\t\t\t'm81' => '10',\n\t\t\t\t'm82' => '9',\n\t\t\t\t'm83' => '6',\n\t\t\t\t'm84' => '4',\n\t\t\t\t'm85' => '5',\n\t\t\t\t'm86' => '2',\n\t\t\t\t'm87' => '2',\n\t\t\t\t'm88' => '3',\n\t\t\t\t'm89' => '3',\n\t\t\t\t'm90' => '9',\n\t\t\t\t'female_all_ages' => '5572',\n\t\t\t\t'f0' => '85',\n\t\t\t\t'f1' => '80',\n\t\t\t\t'f2' => '102',\n\t\t\t\t'f3' => '98',\n\t\t\t\t'f4' => '91',\n\t\t\t\t'f5' => '102',\n\t\t\t\t'f6' => '96',\n\t\t\t\t'f7' => '92',\n\t\t\t\t'f8' => '81',\n\t\t\t\t'f9' => '85',\n\t\t\t\t'f10' => '74',\n\t\t\t\t'f11' => '88',\n\t\t\t\t'f12' => '70',\n\t\t\t\t'f13' => '81',\n\t\t\t\t'f14' => '83',\n\t\t\t\t'f15' => '83',\n\t\t\t\t'f16' => '102',\n\t\t\t\t'f17' => '82',\n\t\t\t\t'f18' => '81',\n\t\t\t\t'f19' => '101',\n\t\t\t\t'f20' => '86',\n\t\t\t\t'f21' => '88',\n\t\t\t\t'f22' => '98',\n\t\t\t\t'f23' => '92',\n\t\t\t\t'f24' => '91',\n\t\t\t\t'f25' => '93',\n\t\t\t\t'f26' => '107',\n\t\t\t\t'f27' => '99',\n\t\t\t\t'f28' => '94',\n\t\t\t\t'f29' => '97',\n\t\t\t\t'f30' => '81',\n\t\t\t\t'f31' => '74',\n\t\t\t\t'f32' => '70',\n\t\t\t\t'f33' => '86',\n\t\t\t\t'f34' => '83',\n\t\t\t\t'f35' => '69',\n\t\t\t\t'f36' => '66',\n\t\t\t\t'f37' => '89',\n\t\t\t\t'f38' => '68',\n\t\t\t\t'f39' => '65',\n\t\t\t\t'f40' => '83',\n\t\t\t\t'f41' => '79',\n\t\t\t\t'f42' => '87',\n\t\t\t\t'f43' => '66',\n\t\t\t\t'f44' => '82',\n\t\t\t\t'f45' => '77',\n\t\t\t\t'f46' => '82',\n\t\t\t\t'f47' => '50',\n\t\t\t\t'f48' => '76',\n\t\t\t\t'f49' => '72',\n\t\t\t\t'f50' => '66',\n\t\t\t\t'f51' => '77',\n\t\t\t\t'f52' => '55',\n\t\t\t\t'f53' => '48',\n\t\t\t\t'f54' => '46',\n\t\t\t\t'f55' => '59',\n\t\t\t\t'f56' => '51',\n\t\t\t\t'f57' => '41',\n\t\t\t\t'f58' => '45',\n\t\t\t\t'f59' => '56',\n\t\t\t\t'f60' => '49',\n\t\t\t\t'f61' => '60',\n\t\t\t\t'f62' => '49',\n\t\t\t\t'f63' => '43',\n\t\t\t\t'f64' => '64',\n\t\t\t\t'f65' => '42',\n\t\t\t\t'f66' => '52',\n\t\t\t\t'f67' => '41',\n\t\t\t\t'f68' => '29',\n\t\t\t\t'f69' => '33',\n\t\t\t\t'f70' => '35',\n\t\t\t\t'f71' => '27',\n\t\t\t\t'f72' => '26',\n\t\t\t\t'f73' => '23',\n\t\t\t\t'f74' => '21',\n\t\t\t\t'f75' => '22',\n\t\t\t\t'f76' => '27',\n\t\t\t\t'f77' => '24',\n\t\t\t\t'f78' => '19',\n\t\t\t\t'f79' => '17',\n\t\t\t\t'f80' => '12',\n\t\t\t\t'f81' => '9',\n\t\t\t\t'f82' => '9',\n\t\t\t\t'f83' => '10',\n\t\t\t\t'f84' => '10',\n\t\t\t\t'f85' => '13',\n\t\t\t\t'f86' => '9',\n\t\t\t\t'f87' => '8',\n\t\t\t\t'f88' => '9',\n\t\t\t\t'f89' => '9',\n\t\t\t\t'f90' => '20',\n\t\t\t),\n\t\t\t4 => \n\t\t\tarray (\n\t\t\t\t'id' => '5',\n\t\t\t\t'slug' => 'bransholme-west',\n\t\t\t\t'seats' => '3',\n\t\t\t\t'body_id' => '1',\n\t\t\t\t'created_at' => '2015-01-20 12:24:46',\n\t\t\t\t'updated_at' => '2015-01-20 12:24:46',\n\t\t\t\t'ons_district_code' => 'E05001668',\n\t\t\t\t'ons_district_code_old' => '00FANB',\n\t\t\t\t'name' => 'Bransholme West',\n\t\t\t\t'ons_la_code' => 'E06000010',\n\t\t\t\t'body_name' => 'Kingston upon Hull, City of',\n\t\t\t\t'ons_constituency_code' => 'E14000772',\n\t\t\t\t'ons_constituency_code_old' => 'C45',\n\t\t\t\t'ons_constituency_name' => 'Kingston upon Hull North',\n\t\t\t\t'male_all_ages' => '4074',\n\t\t\t\t'm0' => '61',\n\t\t\t\t'm1' => '60',\n\t\t\t\t'm2' => '67',\n\t\t\t\t'm3' => '59',\n\t\t\t\t'm4' => '65',\n\t\t\t\t'm5' => '67',\n\t\t\t\t'm6' => '88',\n\t\t\t\t'm7' => '60',\n\t\t\t\t'm8' => '60',\n\t\t\t\t'm9' => '59',\n\t\t\t\t'm10' => '56',\n\t\t\t\t'm11' => '46',\n\t\t\t\t'm12' => '55',\n\t\t\t\t'm13' => '51',\n\t\t\t\t'm14' => '61',\n\t\t\t\t'm15' => '72',\n\t\t\t\t'm16' => '57',\n\t\t\t\t'm17' => '68',\n\t\t\t\t'm18' => '66',\n\t\t\t\t'm19' => '80',\n\t\t\t\t'm20' => '62',\n\t\t\t\t'm21' => '63',\n\t\t\t\t'm22' => '94',\n\t\t\t\t'm23' => '63',\n\t\t\t\t'm24' => '71',\n\t\t\t\t'm25' => '55',\n\t\t\t\t'm26' => '58',\n\t\t\t\t'm27' => '54',\n\t\t\t\t'm28' => '38',\n\t\t\t\t'm29' => '37',\n\t\t\t\t'm30' => '49',\n\t\t\t\t'm31' => '66',\n\t\t\t\t'm32' => '45',\n\t\t\t\t'm33' => '43',\n\t\t\t\t'm34' => '33',\n\t\t\t\t'm35' => '45',\n\t\t\t\t'm36' => '40',\n\t\t\t\t'm37' => '43',\n\t\t\t\t'm38' => '39',\n\t\t\t\t'm39' => '39',\n\t\t\t\t'm40' => '55',\n\t\t\t\t'm41' => '49',\n\t\t\t\t'm42' => '60',\n\t\t\t\t'm43' => '49',\n\t\t\t\t'm44' => '59',\n\t\t\t\t'm45' => '46',\n\t\t\t\t'm46' => '49',\n\t\t\t\t'm47' => '60',\n\t\t\t\t'm48' => '64',\n\t\t\t\t'm49' => '60',\n\t\t\t\t'm50' => '59',\n\t\t\t\t'm51' => '43',\n\t\t\t\t'm52' => '51',\n\t\t\t\t'm53' => '37',\n\t\t\t\t'm54' => '47',\n\t\t\t\t'm55' => '42',\n\t\t\t\t'm56' => '38',\n\t\t\t\t'm57' => '39',\n\t\t\t\t'm58' => '30',\n\t\t\t\t'm59' => '41',\n\t\t\t\t'm60' => '41',\n\t\t\t\t'm61' => '46',\n\t\t\t\t'm62' => '40',\n\t\t\t\t'm63' => '41',\n\t\t\t\t'm64' => '36',\n\t\t\t\t'm65' => '48',\n\t\t\t\t'm66' => '47',\n\t\t\t\t'm67' => '36',\n\t\t\t\t'm68' => '38',\n\t\t\t\t'm69' => '30',\n\t\t\t\t'm70' => '38',\n\t\t\t\t'm71' => '27',\n\t\t\t\t'm72' => '30',\n\t\t\t\t'm73' => '28',\n\t\t\t\t'm74' => '37',\n\t\t\t\t'm75' => '30',\n\t\t\t\t'm76' => '40',\n\t\t\t\t'm77' => '27',\n\t\t\t\t'm78' => '21',\n\t\t\t\t'm79' => '14',\n\t\t\t\t'm80' => '17',\n\t\t\t\t'm81' => '14',\n\t\t\t\t'm82' => '13',\n\t\t\t\t'm83' => '8',\n\t\t\t\t'm84' => '9',\n\t\t\t\t'm85' => '11',\n\t\t\t\t'm86' => '6',\n\t\t\t\t'm87' => '8',\n\t\t\t\t'm88' => '7',\n\t\t\t\t'm89' => '5',\n\t\t\t\t'm90' => '8',\n\t\t\t\t'female_all_ages' => '4166',\n\t\t\t\t'f0' => '65',\n\t\t\t\t'f1' => '65',\n\t\t\t\t'f2' => '62',\n\t\t\t\t'f3' => '58',\n\t\t\t\t'f4' => '58',\n\t\t\t\t'f5' => '43',\n\t\t\t\t'f6' => '66',\n\t\t\t\t'f7' => '52',\n\t\t\t\t'f8' => '41',\n\t\t\t\t'f9' => '57',\n\t\t\t\t'f10' => '53',\n\t\t\t\t'f11' => '32',\n\t\t\t\t'f12' => '55',\n\t\t\t\t'f13' => '38',\n\t\t\t\t'f14' => '48',\n\t\t\t\t'f15' => '37',\n\t\t\t\t'f16' => '53',\n\t\t\t\t'f17' => '67',\n\t\t\t\t'f18' => '59',\n\t\t\t\t'f19' => '70',\n\t\t\t\t'f20' => '63',\n\t\t\t\t'f21' => '61',\n\t\t\t\t'f22' => '66',\n\t\t\t\t'f23' => '64',\n\t\t\t\t'f24' => '56',\n\t\t\t\t'f25' => '79',\n\t\t\t\t'f26' => '63',\n\t\t\t\t'f27' => '59',\n\t\t\t\t'f28' => '59',\n\t\t\t\t'f29' => '72',\n\t\t\t\t'f30' => '57',\n\t\t\t\t'f31' => '36',\n\t\t\t\t'f32' => '59',\n\t\t\t\t'f33' => '44',\n\t\t\t\t'f34' => '46',\n\t\t\t\t'f35' => '45',\n\t\t\t\t'f36' => '29',\n\t\t\t\t'f37' => '46',\n\t\t\t\t'f38' => '56',\n\t\t\t\t'f39' => '57',\n\t\t\t\t'f40' => '45',\n\t\t\t\t'f41' => '55',\n\t\t\t\t'f42' => '54',\n\t\t\t\t'f43' => '43',\n\t\t\t\t'f44' => '55',\n\t\t\t\t'f45' => '59',\n\t\t\t\t'f46' => '56',\n\t\t\t\t'f47' => '52',\n\t\t\t\t'f48' => '63',\n\t\t\t\t'f49' => '65',\n\t\t\t\t'f50' => '53',\n\t\t\t\t'f51' => '60',\n\t\t\t\t'f52' => '46',\n\t\t\t\t'f53' => '48',\n\t\t\t\t'f54' => '46',\n\t\t\t\t'f55' => '44',\n\t\t\t\t'f56' => '50',\n\t\t\t\t'f57' => '32',\n\t\t\t\t'f58' => '41',\n\t\t\t\t'f59' => '46',\n\t\t\t\t'f60' => '49',\n\t\t\t\t'f61' => '36',\n\t\t\t\t'f62' => '52',\n\t\t\t\t'f63' => '42',\n\t\t\t\t'f64' => '45',\n\t\t\t\t'f65' => '53',\n\t\t\t\t'f66' => '57',\n\t\t\t\t'f67' => '54',\n\t\t\t\t'f68' => '34',\n\t\t\t\t'f69' => '36',\n\t\t\t\t'f70' => '43',\n\t\t\t\t'f71' => '46',\n\t\t\t\t'f72' => '38',\n\t\t\t\t'f73' => '38',\n\t\t\t\t'f74' => '39',\n\t\t\t\t'f75' => '31',\n\t\t\t\t'f76' => '30',\n\t\t\t\t'f77' => '32',\n\t\t\t\t'f78' => '35',\n\t\t\t\t'f79' => '22',\n\t\t\t\t'f80' => '12',\n\t\t\t\t'f81' => '20',\n\t\t\t\t'f82' => '19',\n\t\t\t\t'f83' => '16',\n\t\t\t\t'f84' => '5',\n\t\t\t\t'f85' => '11',\n\t\t\t\t'f86' => '11',\n\t\t\t\t'f87' => '15',\n\t\t\t\t'f88' => '10',\n\t\t\t\t'f89' => '8',\n\t\t\t\t'f90' => '18',\n\t\t\t),\n\t\t\t5 => \n\t\t\tarray (\n\t\t\t\t'id' => '6',\n\t\t\t\t'slug' => 'bricknell',\n\t\t\t\t'seats' => '3',\n\t\t\t\t'body_id' => '1',\n\t\t\t\t'created_at' => '2015-01-20 12:24:46',\n\t\t\t\t'updated_at' => '2015-01-20 12:24:46',\n\t\t\t\t'ons_district_code' => 'E05001669',\n\t\t\t\t'ons_district_code_old' => '00FANC',\n\t\t\t\t'name' => 'Bricknell',\n\t\t\t\t'ons_la_code' => 'E06000010',\n\t\t\t\t'body_name' => 'Kingston upon Hull, City of',\n\t\t\t\t'ons_constituency_code' => 'E14000772',\n\t\t\t\t'ons_constituency_code_old' => 'C45',\n\t\t\t\t'ons_constituency_name' => 'Kingston upon Hull North',\n\t\t\t\t'male_all_ages' => '4014',\n\t\t\t\t'm0' => '32',\n\t\t\t\t'm1' => '49',\n\t\t\t\t'm2' => '39',\n\t\t\t\t'm3' => '33',\n\t\t\t\t'm4' => '33',\n\t\t\t\t'm5' => '44',\n\t\t\t\t'm6' => '53',\n\t\t\t\t'm7' => '46',\n\t\t\t\t'm8' => '48',\n\t\t\t\t'm9' => '47',\n\t\t\t\t'm10' => '41',\n\t\t\t\t'm11' => '44',\n\t\t\t\t'm12' => '53',\n\t\t\t\t'm13' => '59',\n\t\t\t\t'm14' => '45',\n\t\t\t\t'm15' => '47',\n\t\t\t\t'm16' => '56',\n\t\t\t\t'm17' => '58',\n\t\t\t\t'm18' => '69',\n\t\t\t\t'm19' => '61',\n\t\t\t\t'm20' => '46',\n\t\t\t\t'm21' => '40',\n\t\t\t\t'm22' => '49',\n\t\t\t\t'm23' => '53',\n\t\t\t\t'm24' => '51',\n\t\t\t\t'm25' => '48',\n\t\t\t\t'm26' => '53',\n\t\t\t\t'm27' => '51',\n\t\t\t\t'm28' => '40',\n\t\t\t\t'm29' => '32',\n\t\t\t\t'm30' => '37',\n\t\t\t\t'm31' => '62',\n\t\t\t\t'm32' => '42',\n\t\t\t\t'm33' => '42',\n\t\t\t\t'm34' => '39',\n\t\t\t\t'm35' => '53',\n\t\t\t\t'm36' => '42',\n\t\t\t\t'm37' => '38',\n\t\t\t\t'm38' => '50',\n\t\t\t\t'm39' => '49',\n\t\t\t\t'm40' => '60',\n\t\t\t\t'm41' => '53',\n\t\t\t\t'm42' => '66',\n\t\t\t\t'm43' => '62',\n\t\t\t\t'm44' => '55',\n\t\t\t\t'm45' => '64',\n\t\t\t\t'm46' => '73',\n\t\t\t\t'm47' => '64',\n\t\t\t\t'm48' => '61',\n\t\t\t\t'm49' => '62',\n\t\t\t\t'm50' => '66',\n\t\t\t\t'm51' => '57',\n\t\t\t\t'm52' => '71',\n\t\t\t\t'm53' => '77',\n\t\t\t\t'm54' => '63',\n\t\t\t\t'm55' => '53',\n\t\t\t\t'm56' => '51',\n\t\t\t\t'm57' => '51',\n\t\t\t\t'm58' => '38',\n\t\t\t\t'm59' => '49',\n\t\t\t\t'm60' => '45',\n\t\t\t\t'm61' => '52',\n\t\t\t\t'm62' => '61',\n\t\t\t\t'm63' => '49',\n\t\t\t\t'm64' => '51',\n\t\t\t\t'm65' => '76',\n\t\t\t\t'm66' => '57',\n\t\t\t\t'm67' => '33',\n\t\t\t\t'm68' => '42',\n\t\t\t\t'm69' => '35',\n\t\t\t\t'm70' => '47',\n\t\t\t\t'm71' => '29',\n\t\t\t\t'm72' => '19',\n\t\t\t\t'm73' => '22',\n\t\t\t\t'm74' => '30',\n\t\t\t\t'm75' => '28',\n\t\t\t\t'm76' => '28',\n\t\t\t\t'm77' => '22',\n\t\t\t\t'm78' => '25',\n\t\t\t\t'm79' => '23',\n\t\t\t\t'm80' => '19',\n\t\t\t\t'm81' => '21',\n\t\t\t\t'm82' => '16',\n\t\t\t\t'm83' => '20',\n\t\t\t\t'm84' => '14',\n\t\t\t\t'm85' => '10',\n\t\t\t\t'm86' => '13',\n\t\t\t\t'm87' => '9',\n\t\t\t\t'm88' => '8',\n\t\t\t\t'm89' => '16',\n\t\t\t\t'm90' => '24',\n\t\t\t\t'female_all_ages' => '4168',\n\t\t\t\t'f0' => '36',\n\t\t\t\t'f1' => '36',\n\t\t\t\t'f2' => '37',\n\t\t\t\t'f3' => '44',\n\t\t\t\t'f4' => '38',\n\t\t\t\t'f5' => '58',\n\t\t\t\t'f6' => '49',\n\t\t\t\t'f7' => '42',\n\t\t\t\t'f8' => '41',\n\t\t\t\t'f9' => '45',\n\t\t\t\t'f10' => '40',\n\t\t\t\t'f11' => '54',\n\t\t\t\t'f12' => '47',\n\t\t\t\t'f13' => '31',\n\t\t\t\t'f14' => '39',\n\t\t\t\t'f15' => '38',\n\t\t\t\t'f16' => '46',\n\t\t\t\t'f17' => '49',\n\t\t\t\t'f18' => '52',\n\t\t\t\t'f19' => '51',\n\t\t\t\t'f20' => '44',\n\t\t\t\t'f21' => '69',\n\t\t\t\t'f22' => '65',\n\t\t\t\t'f23' => '46',\n\t\t\t\t'f24' => '47',\n\t\t\t\t'f25' => '49',\n\t\t\t\t'f26' => '35',\n\t\t\t\t'f27' => '37',\n\t\t\t\t'f28' => '27',\n\t\t\t\t'f29' => '50',\n\t\t\t\t'f30' => '46',\n\t\t\t\t'f31' => '45',\n\t\t\t\t'f32' => '64',\n\t\t\t\t'f33' => '51',\n\t\t\t\t'f34' => '43',\n\t\t\t\t'f35' => '49',\n\t\t\t\t'f36' => '31',\n\t\t\t\t'f37' => '48',\n\t\t\t\t'f38' => '50',\n\t\t\t\t'f39' => '55',\n\t\t\t\t'f40' => '47',\n\t\t\t\t'f41' => '63',\n\t\t\t\t'f42' => '67',\n\t\t\t\t'f43' => '61',\n\t\t\t\t'f44' => '77',\n\t\t\t\t'f45' => '71',\n\t\t\t\t'f46' => '56',\n\t\t\t\t'f47' => '70',\n\t\t\t\t'f48' => '64',\n\t\t\t\t'f49' => '58',\n\t\t\t\t'f50' => '71',\n\t\t\t\t'f51' => '62',\n\t\t\t\t'f52' => '59',\n\t\t\t\t'f53' => '64',\n\t\t\t\t'f54' => '51',\n\t\t\t\t'f55' => '56',\n\t\t\t\t'f56' => '67',\n\t\t\t\t'f57' => '46',\n\t\t\t\t'f58' => '49',\n\t\t\t\t'f59' => '48',\n\t\t\t\t'f60' => '46',\n\t\t\t\t'f61' => '48',\n\t\t\t\t'f62' => '51',\n\t\t\t\t'f63' => '66',\n\t\t\t\t'f64' => '50',\n\t\t\t\t'f65' => '57',\n\t\t\t\t'f66' => '55',\n\t\t\t\t'f67' => '40',\n\t\t\t\t'f68' => '37',\n\t\t\t\t'f69' => '41',\n\t\t\t\t'f70' => '40',\n\t\t\t\t'f71' => '36',\n\t\t\t\t'f72' => '32',\n\t\t\t\t'f73' => '40',\n\t\t\t\t'f74' => '31',\n\t\t\t\t'f75' => '32',\n\t\t\t\t'f76' => '27',\n\t\t\t\t'f77' => '28',\n\t\t\t\t'f78' => '38',\n\t\t\t\t'f79' => '31',\n\t\t\t\t'f80' => '22',\n\t\t\t\t'f81' => '23',\n\t\t\t\t'f82' => '27',\n\t\t\t\t'f83' => '31',\n\t\t\t\t'f84' => '29',\n\t\t\t\t'f85' => '24',\n\t\t\t\t'f86' => '21',\n\t\t\t\t'f87' => '27',\n\t\t\t\t'f88' => '21',\n\t\t\t\t'f89' => '16',\n\t\t\t\t'f90' => '70',\n\t\t\t),\n\t\t\t6 => \n\t\t\tarray (\n\t\t\t\t'id' => '7',\n\t\t\t\t'slug' => 'derringham',\n\t\t\t\t'seats' => '3',\n\t\t\t\t'body_id' => '1',\n\t\t\t\t'created_at' => '2015-01-20 12:24:46',\n\t\t\t\t'updated_at' => '2015-01-20 12:24:46',\n\t\t\t\t'ons_district_code' => 'E05001670',\n\t\t\t\t'ons_district_code_old' => '00FAND',\n\t\t\t\t'name' => 'Derringham',\n\t\t\t\t'ons_la_code' => 'E06000010',\n\t\t\t\t'body_name' => 'Kingston upon Hull, City of',\n\t\t\t\t'ons_constituency_code' => 'E14000773',\n\t\t\t\t'ons_constituency_code_old' => 'C46',\n\t\t\t\t'ons_constituency_name' => 'Kingston upon Hull West and Hessle',\n\t\t\t\t'male_all_ages' => '5532',\n\t\t\t\t'm0' => '90',\n\t\t\t\t'm1' => '114',\n\t\t\t\t'm2' => '73',\n\t\t\t\t'm3' => '79',\n\t\t\t\t'm4' => '77',\n\t\t\t\t'm5' => '60',\n\t\t\t\t'm6' => '65',\n\t\t\t\t'm7' => '50',\n\t\t\t\t'm8' => '61',\n\t\t\t\t'm9' => '61',\n\t\t\t\t'm10' => '48',\n\t\t\t\t'm11' => '39',\n\t\t\t\t'm12' => '50',\n\t\t\t\t'm13' => '45',\n\t\t\t\t'm14' => '58',\n\t\t\t\t'm15' => '70',\n\t\t\t\t'm16' => '48',\n\t\t\t\t'm17' => '55',\n\t\t\t\t'm18' => '69',\n\t\t\t\t'm19' => '83',\n\t\t\t\t'm20' => '61',\n\t\t\t\t'm21' => '70',\n\t\t\t\t'm22' => '69',\n\t\t\t\t'm23' => '63',\n\t\t\t\t'm24' => '78',\n\t\t\t\t'm25' => '88',\n\t\t\t\t'm26' => '84',\n\t\t\t\t'm27' => '84',\n\t\t\t\t'm28' => '98',\n\t\t\t\t'm29' => '70',\n\t\t\t\t'm30' => '88',\n\t\t\t\t'm31' => '98',\n\t\t\t\t'm32' => '87',\n\t\t\t\t'm33' => '84',\n\t\t\t\t'm34' => '75',\n\t\t\t\t'm35' => '65',\n\t\t\t\t'm36' => '66',\n\t\t\t\t'm37' => '54',\n\t\t\t\t'm38' => '65',\n\t\t\t\t'm39' => '66',\n\t\t\t\t'm40' => '77',\n\t\t\t\t'm41' => '81',\n\t\t\t\t'm42' => '76',\n\t\t\t\t'm43' => '82',\n\t\t\t\t'm44' => '57',\n\t\t\t\t'm45' => '80',\n\t\t\t\t'm46' => '79',\n\t\t\t\t'm47' => '73',\n\t\t\t\t'm48' => '86',\n\t\t\t\t'm49' => '78',\n\t\t\t\t'm50' => '92',\n\t\t\t\t'm51' => '96',\n\t\t\t\t'm52' => '79',\n\t\t\t\t'm53' => '69',\n\t\t\t\t'm54' => '77',\n\t\t\t\t'm55' => '56',\n\t\t\t\t'm56' => '59',\n\t\t\t\t'm57' => '60',\n\t\t\t\t'm58' => '79',\n\t\t\t\t'm59' => '54',\n\t\t\t\t'm60' => '77',\n\t\t\t\t'm61' => '37',\n\t\t\t\t'm62' => '61',\n\t\t\t\t'm63' => '53',\n\t\t\t\t'm64' => '67',\n\t\t\t\t'm65' => '65',\n\t\t\t\t'm66' => '75',\n\t\t\t\t'm67' => '65',\n\t\t\t\t'm68' => '52',\n\t\t\t\t'm69' => '47',\n\t\t\t\t'm70' => '45',\n\t\t\t\t'm71' => '45',\n\t\t\t\t'm72' => '38',\n\t\t\t\t'm73' => '45',\n\t\t\t\t'm74' => '46',\n\t\t\t\t'm75' => '34',\n\t\t\t\t'm76' => '54',\n\t\t\t\t'm77' => '53',\n\t\t\t\t'm78' => '33',\n\t\t\t\t'm79' => '28',\n\t\t\t\t'm80' => '46',\n\t\t\t\t'm81' => '25',\n\t\t\t\t'm82' => '22',\n\t\t\t\t'm83' => '18',\n\t\t\t\t'm84' => '22',\n\t\t\t\t'm85' => '11',\n\t\t\t\t'm86' => '12',\n\t\t\t\t'm87' => '10',\n\t\t\t\t'm88' => '7',\n\t\t\t\t'm89' => '14',\n\t\t\t\t'm90' => '27',\n\t\t\t\t'female_all_ages' => '5850',\n\t\t\t\t'f0' => '82',\n\t\t\t\t'f1' => '92',\n\t\t\t\t'f2' => '76',\n\t\t\t\t'f3' => '73',\n\t\t\t\t'f4' => '61',\n\t\t\t\t'f5' => '72',\n\t\t\t\t'f6' => '50',\n\t\t\t\t'f7' => '68',\n\t\t\t\t'f8' => '57',\n\t\t\t\t'f9' => '48',\n\t\t\t\t'f10' => '50',\n\t\t\t\t'f11' => '53',\n\t\t\t\t'f12' => '40',\n\t\t\t\t'f13' => '50',\n\t\t\t\t'f14' => '40',\n\t\t\t\t'f15' => '61',\n\t\t\t\t'f16' => '54',\n\t\t\t\t'f17' => '60',\n\t\t\t\t'f18' => '55',\n\t\t\t\t'f19' => '56',\n\t\t\t\t'f20' => '59',\n\t\t\t\t'f21' => '61',\n\t\t\t\t'f22' => '86',\n\t\t\t\t'f23' => '80',\n\t\t\t\t'f24' => '90',\n\t\t\t\t'f25' => '99',\n\t\t\t\t'f26' => '98',\n\t\t\t\t'f27' => '100',\n\t\t\t\t'f28' => '100',\n\t\t\t\t'f29' => '92',\n\t\t\t\t'f30' => '90',\n\t\t\t\t'f31' => '87',\n\t\t\t\t'f32' => '82',\n\t\t\t\t'f33' => '84',\n\t\t\t\t'f34' => '75',\n\t\t\t\t'f35' => '71',\n\t\t\t\t'f36' => '58',\n\t\t\t\t'f37' => '72',\n\t\t\t\t'f38' => '82',\n\t\t\t\t'f39' => '75',\n\t\t\t\t'f40' => '84',\n\t\t\t\t'f41' => '69',\n\t\t\t\t'f42' => '74',\n\t\t\t\t'f43' => '64',\n\t\t\t\t'f44' => '83',\n\t\t\t\t'f45' => '80',\n\t\t\t\t'f46' => '87',\n\t\t\t\t'f47' => '80',\n\t\t\t\t'f48' => '79',\n\t\t\t\t'f49' => '93',\n\t\t\t\t'f50' => '86',\n\t\t\t\t'f51' => '94',\n\t\t\t\t'f52' => '65',\n\t\t\t\t'f53' => '66',\n\t\t\t\t'f54' => '67',\n\t\t\t\t'f55' => '70',\n\t\t\t\t'f56' => '70',\n\t\t\t\t'f57' => '60',\n\t\t\t\t'f58' => '62',\n\t\t\t\t'f59' => '54',\n\t\t\t\t'f60' => '66',\n\t\t\t\t'f61' => '68',\n\t\t\t\t'f62' => '79',\n\t\t\t\t'f63' => '62',\n\t\t\t\t'f64' => '58',\n\t\t\t\t'f65' => '78',\n\t\t\t\t'f66' => '74',\n\t\t\t\t'f67' => '61',\n\t\t\t\t'f68' => '57',\n\t\t\t\t'f69' => '50',\n\t\t\t\t'f70' => '59',\n\t\t\t\t'f71' => '50',\n\t\t\t\t'f72' => '53',\n\t\t\t\t'f73' => '56',\n\t\t\t\t'f74' => '61',\n\t\t\t\t'f75' => '55',\n\t\t\t\t'f76' => '58',\n\t\t\t\t'f77' => '51',\n\t\t\t\t'f78' => '47',\n\t\t\t\t'f79' => '41',\n\t\t\t\t'f80' => '39',\n\t\t\t\t'f81' => '39',\n\t\t\t\t'f82' => '39',\n\t\t\t\t'f83' => '35',\n\t\t\t\t'f84' => '30',\n\t\t\t\t'f85' => '36',\n\t\t\t\t'f86' => '24',\n\t\t\t\t'f87' => '15',\n\t\t\t\t'f88' => '15',\n\t\t\t\t'f89' => '16',\n\t\t\t\t'f90' => '52',\n\t\t\t),\n\t\t\t7 => \n\t\t\tarray (\n\t\t\t\t'id' => '8',\n\t\t\t\t'slug' => 'drypool',\n\t\t\t\t'seats' => '3',\n\t\t\t\t'body_id' => '1',\n\t\t\t\t'created_at' => '2015-01-20 12:24:46',\n\t\t\t\t'updated_at' => '2015-01-20 12:24:46',\n\t\t\t\t'ons_district_code' => 'E05001671',\n\t\t\t\t'ons_district_code_old' => '00FANE',\n\t\t\t\t'name' => 'Drypool',\n\t\t\t\t'ons_la_code' => 'E06000010',\n\t\t\t\t'body_name' => 'Kingston upon Hull, City of',\n\t\t\t\t'ons_constituency_code' => 'E14000771',\n\t\t\t\t'ons_constituency_code_old' => 'C44',\n\t\t\t\t'ons_constituency_name' => 'Kingston upon Hull East',\n\t\t\t\t'male_all_ages' => '6648',\n\t\t\t\t'm0' => '107',\n\t\t\t\t'm1' => '97',\n\t\t\t\t'm2' => '83',\n\t\t\t\t'm3' => '97',\n\t\t\t\t'm4' => '79',\n\t\t\t\t'm5' => '81',\n\t\t\t\t'm6' => '83',\n\t\t\t\t'm7' => '74',\n\t\t\t\t'm8' => '57',\n\t\t\t\t'm9' => '73',\n\t\t\t\t'm10' => '56',\n\t\t\t\t'm11' => '51',\n\t\t\t\t'm12' => '51',\n\t\t\t\t'm13' => '55',\n\t\t\t\t'm14' => '58',\n\t\t\t\t'm15' => '49',\n\t\t\t\t'm16' => '66',\n\t\t\t\t'm17' => '63',\n\t\t\t\t'm18' => '48',\n\t\t\t\t'm19' => '67',\n\t\t\t\t'm20' => '97',\n\t\t\t\t'm21' => '101',\n\t\t\t\t'm22' => '109',\n\t\t\t\t'm23' => '92',\n\t\t\t\t'm24' => '127',\n\t\t\t\t'm25' => '128',\n\t\t\t\t'm26' => '121',\n\t\t\t\t'm27' => '116',\n\t\t\t\t'm28' => '108',\n\t\t\t\t'm29' => '116',\n\t\t\t\t'm30' => '115',\n\t\t\t\t'm31' => '119',\n\t\t\t\t'm32' => '120',\n\t\t\t\t'm33' => '121',\n\t\t\t\t'm34' => '118',\n\t\t\t\t'm35' => '92',\n\t\t\t\t'm36' => '96',\n\t\t\t\t'm37' => '103',\n\t\t\t\t'm38' => '92',\n\t\t\t\t'm39' => '82',\n\t\t\t\t'm40' => '113',\n\t\t\t\t'm41' => '135',\n\t\t\t\t'm42' => '108',\n\t\t\t\t'm43' => '104',\n\t\t\t\t'm44' => '100',\n\t\t\t\t'm45' => '93',\n\t\t\t\t'm46' => '120',\n\t\t\t\t'm47' => '118',\n\t\t\t\t'm48' => '95',\n\t\t\t\t'm49' => '101',\n\t\t\t\t'm50' => '102',\n\t\t\t\t'm51' => '114',\n\t\t\t\t'm52' => '83',\n\t\t\t\t'm53' => '95',\n\t\t\t\t'm54' => '74',\n\t\t\t\t'm55' => '78',\n\t\t\t\t'm56' => '75',\n\t\t\t\t'm57' => '65',\n\t\t\t\t'm58' => '56',\n\t\t\t\t'm59' => '73',\n\t\t\t\t'm60' => '77',\n\t\t\t\t'm61' => '67',\n\t\t\t\t'm62' => '70',\n\t\t\t\t'm63' => '72',\n\t\t\t\t'm64' => '67',\n\t\t\t\t'm65' => '78',\n\t\t\t\t'm66' => '74',\n\t\t\t\t'm67' => '54',\n\t\t\t\t'm68' => '61',\n\t\t\t\t'm69' => '51',\n\t\t\t\t'm70' => '50',\n\t\t\t\t'm71' => '36',\n\t\t\t\t'm72' => '39',\n\t\t\t\t'm73' => '35',\n\t\t\t\t'm74' => '34',\n\t\t\t\t'm75' => '35',\n\t\t\t\t'm76' => '40',\n\t\t\t\t'm77' => '25',\n\t\t\t\t'm78' => '29',\n\t\t\t\t'm79' => '20',\n\t\t\t\t'm80' => '20',\n\t\t\t\t'm81' => '22',\n\t\t\t\t'm82' => '15',\n\t\t\t\t'm83' => '16',\n\t\t\t\t'm84' => '13',\n\t\t\t\t'm85' => '15',\n\t\t\t\t'm86' => '19',\n\t\t\t\t'm87' => '7',\n\t\t\t\t'm88' => '9',\n\t\t\t\t'm89' => '6',\n\t\t\t\t'm90' => '22',\n\t\t\t\t'female_all_ages' => '6183',\n\t\t\t\t'f0' => '86',\n\t\t\t\t'f1' => '87',\n\t\t\t\t'f2' => '78',\n\t\t\t\t'f3' => '70',\n\t\t\t\t'f4' => '92',\n\t\t\t\t'f5' => '67',\n\t\t\t\t'f6' => '48',\n\t\t\t\t'f7' => '73',\n\t\t\t\t'f8' => '59',\n\t\t\t\t'f9' => '52',\n\t\t\t\t'f10' => '48',\n\t\t\t\t'f11' => '53',\n\t\t\t\t'f12' => '51',\n\t\t\t\t'f13' => '33',\n\t\t\t\t'f14' => '51',\n\t\t\t\t'f15' => '56',\n\t\t\t\t'f16' => '70',\n\t\t\t\t'f17' => '75',\n\t\t\t\t'f18' => '59',\n\t\t\t\t'f19' => '72',\n\t\t\t\t'f20' => '92',\n\t\t\t\t'f21' => '104',\n\t\t\t\t'f22' => '142',\n\t\t\t\t'f23' => '98',\n\t\t\t\t'f24' => '134',\n\t\t\t\t'f25' => '100',\n\t\t\t\t'f26' => '107',\n\t\t\t\t'f27' => '109',\n\t\t\t\t'f28' => '113',\n\t\t\t\t'f29' => '102',\n\t\t\t\t'f30' => '105',\n\t\t\t\t'f31' => '110',\n\t\t\t\t'f32' => '100',\n\t\t\t\t'f33' => '95',\n\t\t\t\t'f34' => '82',\n\t\t\t\t'f35' => '85',\n\t\t\t\t'f36' => '70',\n\t\t\t\t'f37' => '93',\n\t\t\t\t'f38' => '87',\n\t\t\t\t'f39' => '78',\n\t\t\t\t'f40' => '94',\n\t\t\t\t'f41' => '91',\n\t\t\t\t'f42' => '89',\n\t\t\t\t'f43' => '81',\n\t\t\t\t'f44' => '85',\n\t\t\t\t'f45' => '93',\n\t\t\t\t'f46' => '76',\n\t\t\t\t'f47' => '87',\n\t\t\t\t'f48' => '101',\n\t\t\t\t'f49' => '94',\n\t\t\t\t'f50' => '79',\n\t\t\t\t'f51' => '78',\n\t\t\t\t'f52' => '82',\n\t\t\t\t'f53' => '94',\n\t\t\t\t'f54' => '87',\n\t\t\t\t'f55' => '86',\n\t\t\t\t'f56' => '66',\n\t\t\t\t'f57' => '66',\n\t\t\t\t'f58' => '55',\n\t\t\t\t'f59' => '59',\n\t\t\t\t'f60' => '73',\n\t\t\t\t'f61' => '69',\n\t\t\t\t'f62' => '60',\n\t\t\t\t'f63' => '60',\n\t\t\t\t'f64' => '72',\n\t\t\t\t'f65' => '58',\n\t\t\t\t'f66' => '64',\n\t\t\t\t'f67' => '58',\n\t\t\t\t'f68' => '47',\n\t\t\t\t'f69' => '44',\n\t\t\t\t'f70' => '63',\n\t\t\t\t'f71' => '30',\n\t\t\t\t'f72' => '29',\n\t\t\t\t'f73' => '40',\n\t\t\t\t'f74' => '38',\n\t\t\t\t'f75' => '33',\n\t\t\t\t'f76' => '40',\n\t\t\t\t'f77' => '38',\n\t\t\t\t'f78' => '37',\n\t\t\t\t'f79' => '25',\n\t\t\t\t'f80' => '22',\n\t\t\t\t'f81' => '29',\n\t\t\t\t'f82' => '26',\n\t\t\t\t'f83' => '31',\n\t\t\t\t'f84' => '29',\n\t\t\t\t'f85' => '21',\n\t\t\t\t'f86' => '19',\n\t\t\t\t'f87' => '14',\n\t\t\t\t'f88' => '11',\n\t\t\t\t'f89' => '20',\n\t\t\t\t'f90' => '54',\n\t\t\t),\n\t\t\t8 => \n\t\t\tarray (\n\t\t\t\t'id' => '9',\n\t\t\t\t'slug' => 'holderness',\n\t\t\t\t'seats' => '3',\n\t\t\t\t'body_id' => '1',\n\t\t\t\t'created_at' => '2015-01-20 12:24:46',\n\t\t\t\t'updated_at' => '2015-01-20 12:24:46',\n\t\t\t\t'ons_district_code' => 'E05001672',\n\t\t\t\t'ons_district_code_old' => '00FANF',\n\t\t\t\t'name' => 'Holderness',\n\t\t\t\t'ons_la_code' => 'E06000010',\n\t\t\t\t'body_name' => 'Kingston upon Hull, City of',\n\t\t\t\t'ons_constituency_code' => 'E14000771',\n\t\t\t\t'ons_constituency_code_old' => 'C44',\n\t\t\t\t'ons_constituency_name' => 'Kingston upon Hull East',\n\t\t\t\t'male_all_ages' => '6587',\n\t\t\t\t'm0' => '71',\n\t\t\t\t'm1' => '78',\n\t\t\t\t'm2' => '73',\n\t\t\t\t'm3' => '80',\n\t\t\t\t'm4' => '88',\n\t\t\t\t'm5' => '96',\n\t\t\t\t'm6' => '81',\n\t\t\t\t'm7' => '69',\n\t\t\t\t'm8' => '67',\n\t\t\t\t'm9' => '80',\n\t\t\t\t'm10' => '77',\n\t\t\t\t'm11' => '79',\n\t\t\t\t'm12' => '76',\n\t\t\t\t'm13' => '79',\n\t\t\t\t'm14' => '79',\n\t\t\t\t'm15' => '93',\n\t\t\t\t'm16' => '96',\n\t\t\t\t'm17' => '77',\n\t\t\t\t'm18' => '108',\n\t\t\t\t'm19' => '87',\n\t\t\t\t'm20' => '82',\n\t\t\t\t'm21' => '99',\n\t\t\t\t'm22' => '106',\n\t\t\t\t'm23' => '99',\n\t\t\t\t'm24' => '86',\n\t\t\t\t'm25' => '106',\n\t\t\t\t'm26' => '85',\n\t\t\t\t'm27' => '94',\n\t\t\t\t'm28' => '86',\n\t\t\t\t'm29' => '75',\n\t\t\t\t'm30' => '69',\n\t\t\t\t'm31' => '80',\n\t\t\t\t'm32' => '71',\n\t\t\t\t'm33' => '70',\n\t\t\t\t'm34' => '82',\n\t\t\t\t'm35' => '72',\n\t\t\t\t'm36' => '72',\n\t\t\t\t'm37' => '83',\n\t\t\t\t'm38' => '83',\n\t\t\t\t'm39' => '87',\n\t\t\t\t'm40' => '99',\n\t\t\t\t'm41' => '102',\n\t\t\t\t'm42' => '94',\n\t\t\t\t'm43' => '81',\n\t\t\t\t'm44' => '102',\n\t\t\t\t'm45' => '114',\n\t\t\t\t'm46' => '119',\n\t\t\t\t'm47' => '109',\n\t\t\t\t'm48' => '102',\n\t\t\t\t'm49' => '102',\n\t\t\t\t'm50' => '114',\n\t\t\t\t'm51' => '101',\n\t\t\t\t'm52' => '99',\n\t\t\t\t'm53' => '105',\n\t\t\t\t'm54' => '107',\n\t\t\t\t'm55' => '105',\n\t\t\t\t'm56' => '86',\n\t\t\t\t'm57' => '79',\n\t\t\t\t'm58' => '61',\n\t\t\t\t'm59' => '78',\n\t\t\t\t'm60' => '84',\n\t\t\t\t'm61' => '66',\n\t\t\t\t'm62' => '76',\n\t\t\t\t'm63' => '58',\n\t\t\t\t'm64' => '81',\n\t\t\t\t'm65' => '98',\n\t\t\t\t'm66' => '100',\n\t\t\t\t'm67' => '71',\n\t\t\t\t'm68' => '55',\n\t\t\t\t'm69' => '53',\n\t\t\t\t'm70' => '52',\n\t\t\t\t'm71' => '43',\n\t\t\t\t'm72' => '33',\n\t\t\t\t'm73' => '54',\n\t\t\t\t'm74' => '45',\n\t\t\t\t'm75' => '37',\n\t\t\t\t'm76' => '29',\n\t\t\t\t'm77' => '37',\n\t\t\t\t'm78' => '28',\n\t\t\t\t'm79' => '32',\n\t\t\t\t'm80' => '27',\n\t\t\t\t'm81' => '19',\n\t\t\t\t'm82' => '21',\n\t\t\t\t'm83' => '13',\n\t\t\t\t'm84' => '19',\n\t\t\t\t'm85' => '14',\n\t\t\t\t'm86' => '11',\n\t\t\t\t'm87' => '12',\n\t\t\t\t'm88' => '10',\n\t\t\t\t'm89' => '9',\n\t\t\t\t'm90' => '20',\n\t\t\t\t'female_all_ages' => '6584',\n\t\t\t\t'f0' => '75',\n\t\t\t\t'f1' => '81',\n\t\t\t\t'f2' => '84',\n\t\t\t\t'f3' => '74',\n\t\t\t\t'f4' => '58',\n\t\t\t\t'f5' => '90',\n\t\t\t\t'f6' => '70',\n\t\t\t\t'f7' => '75',\n\t\t\t\t'f8' => '81',\n\t\t\t\t'f9' => '67',\n\t\t\t\t'f10' => '72',\n\t\t\t\t'f11' => '57',\n\t\t\t\t'f12' => '63',\n\t\t\t\t'f13' => '57',\n\t\t\t\t'f14' => '78',\n\t\t\t\t'f15' => '89',\n\t\t\t\t'f16' => '89',\n\t\t\t\t'f17' => '83',\n\t\t\t\t'f18' => '89',\n\t\t\t\t'f19' => '82',\n\t\t\t\t'f20' => '79',\n\t\t\t\t'f21' => '81',\n\t\t\t\t'f22' => '77',\n\t\t\t\t'f23' => '76',\n\t\t\t\t'f24' => '77',\n\t\t\t\t'f25' => '99',\n\t\t\t\t'f26' => '86',\n\t\t\t\t'f27' => '78',\n\t\t\t\t'f28' => '93',\n\t\t\t\t'f29' => '73',\n\t\t\t\t'f30' => '91',\n\t\t\t\t'f31' => '89',\n\t\t\t\t'f32' => '86',\n\t\t\t\t'f33' => '89',\n\t\t\t\t'f34' => '84',\n\t\t\t\t'f35' => '73',\n\t\t\t\t'f36' => '71',\n\t\t\t\t'f37' => '94',\n\t\t\t\t'f38' => '85',\n\t\t\t\t'f39' => '81',\n\t\t\t\t'f40' => '84',\n\t\t\t\t'f41' => '96',\n\t\t\t\t'f42' => '92',\n\t\t\t\t'f43' => '103',\n\t\t\t\t'f44' => '101',\n\t\t\t\t'f45' => '104',\n\t\t\t\t'f46' => '121',\n\t\t\t\t'f47' => '104',\n\t\t\t\t'f48' => '103',\n\t\t\t\t'f49' => '117',\n\t\t\t\t'f50' => '97',\n\t\t\t\t'f51' => '136',\n\t\t\t\t'f52' => '98',\n\t\t\t\t'f53' => '115',\n\t\t\t\t'f54' => '89',\n\t\t\t\t'f55' => '102',\n\t\t\t\t'f56' => '78',\n\t\t\t\t'f57' => '77',\n\t\t\t\t'f58' => '75',\n\t\t\t\t'f59' => '75',\n\t\t\t\t'f60' => '86',\n\t\t\t\t'f61' => '58',\n\t\t\t\t'f62' => '69',\n\t\t\t\t'f63' => '68',\n\t\t\t\t'f64' => '87',\n\t\t\t\t'f65' => '106',\n\t\t\t\t'f66' => '87',\n\t\t\t\t'f67' => '68',\n\t\t\t\t'f68' => '68',\n\t\t\t\t'f69' => '46',\n\t\t\t\t'f70' => '56',\n\t\t\t\t'f71' => '42',\n\t\t\t\t'f72' => '48',\n\t\t\t\t'f73' => '42',\n\t\t\t\t'f74' => '42',\n\t\t\t\t'f75' => '41',\n\t\t\t\t'f76' => '45',\n\t\t\t\t'f77' => '44',\n\t\t\t\t'f78' => '34',\n\t\t\t\t'f79' => '37',\n\t\t\t\t'f80' => '34',\n\t\t\t\t'f81' => '35',\n\t\t\t\t'f82' => '36',\n\t\t\t\t'f83' => '27',\n\t\t\t\t'f84' => '20',\n\t\t\t\t'f85' => '14',\n\t\t\t\t'f86' => '15',\n\t\t\t\t'f87' => '21',\n\t\t\t\t'f88' => '10',\n\t\t\t\t'f89' => '14',\n\t\t\t\t'f90' => '41',\n\t\t\t),\n\t\t\t9 => \n\t\t\tarray (\n\t\t\t\t'id' => '10',\n\t\t\t\t'slug' => 'ings',\n\t\t\t\t'seats' => '3',\n\t\t\t\t'body_id' => '1',\n\t\t\t\t'created_at' => '2015-01-20 12:24:46',\n\t\t\t\t'updated_at' => '2015-01-20 12:24:46',\n\t\t\t\t'ons_district_code' => 'E05001673',\n\t\t\t\t'ons_district_code_old' => '00FANG',\n\t\t\t\t'name' => 'Ings',\n\t\t\t\t'ons_la_code' => 'E06000010',\n\t\t\t\t'body_name' => 'Kingston upon Hull, City of',\n\t\t\t\t'ons_constituency_code' => 'E14000771',\n\t\t\t\t'ons_constituency_code_old' => 'C44',\n\t\t\t\t'ons_constituency_name' => 'Kingston upon Hull East',\n\t\t\t\t'male_all_ages' => '5711',\n\t\t\t\t'm0' => '67',\n\t\t\t\t'm1' => '62',\n\t\t\t\t'm2' => '60',\n\t\t\t\t'm3' => '61',\n\t\t\t\t'm4' => '63',\n\t\t\t\t'm5' => '70',\n\t\t\t\t'm6' => '59',\n\t\t\t\t'm7' => '62',\n\t\t\t\t'm8' => '50',\n\t\t\t\t'm9' => '66',\n\t\t\t\t'm10' => '53',\n\t\t\t\t'm11' => '66',\n\t\t\t\t'm12' => '54',\n\t\t\t\t'm13' => '65',\n\t\t\t\t'm14' => '80',\n\t\t\t\t'm15' => '62',\n\t\t\t\t'm16' => '71',\n\t\t\t\t'm17' => '81',\n\t\t\t\t'm18' => '78',\n\t\t\t\t'm19' => '74',\n\t\t\t\t'm20' => '77',\n\t\t\t\t'm21' => '67',\n\t\t\t\t'm22' => '67',\n\t\t\t\t'm23' => '61',\n\t\t\t\t'm24' => '72',\n\t\t\t\t'm25' => '66',\n\t\t\t\t'm26' => '80',\n\t\t\t\t'm27' => '86',\n\t\t\t\t'm28' => '83',\n\t\t\t\t'm29' => '67',\n\t\t\t\t'm30' => '64',\n\t\t\t\t'm31' => '69',\n\t\t\t\t'm32' => '48',\n\t\t\t\t'm33' => '58',\n\t\t\t\t'm34' => '52',\n\t\t\t\t'm35' => '55',\n\t\t\t\t'm36' => '39',\n\t\t\t\t'm37' => '68',\n\t\t\t\t'm38' => '51',\n\t\t\t\t'm39' => '57',\n\t\t\t\t'm40' => '64',\n\t\t\t\t'm41' => '59',\n\t\t\t\t'm42' => '74',\n\t\t\t\t'm43' => '88',\n\t\t\t\t'm44' => '77',\n\t\t\t\t'm45' => '82',\n\t\t\t\t'm46' => '79',\n\t\t\t\t'm47' => '86',\n\t\t\t\t'm48' => '92',\n\t\t\t\t'm49' => '79',\n\t\t\t\t'm50' => '82',\n\t\t\t\t'm51' => '99',\n\t\t\t\t'm52' => '99',\n\t\t\t\t'm53' => '83',\n\t\t\t\t'm54' => '67',\n\t\t\t\t'm55' => '86',\n\t\t\t\t'm56' => '86',\n\t\t\t\t'm57' => '84',\n\t\t\t\t'm58' => '85',\n\t\t\t\t'm59' => '69',\n\t\t\t\t'm60' => '60',\n\t\t\t\t'm61' => '61',\n\t\t\t\t'm62' => '73',\n\t\t\t\t'm63' => '76',\n\t\t\t\t'm64' => '80',\n\t\t\t\t'm65' => '67',\n\t\t\t\t'm66' => '80',\n\t\t\t\t'm67' => '55',\n\t\t\t\t'm68' => '54',\n\t\t\t\t'm69' => '48',\n\t\t\t\t'm70' => '65',\n\t\t\t\t'm71' => '53',\n\t\t\t\t'm72' => '54',\n\t\t\t\t'm73' => '42',\n\t\t\t\t'm74' => '60',\n\t\t\t\t'm75' => '55',\n\t\t\t\t'm76' => '47',\n\t\t\t\t'm77' => '30',\n\t\t\t\t'm78' => '47',\n\t\t\t\t'm79' => '39',\n\t\t\t\t'm80' => '46',\n\t\t\t\t'm81' => '43',\n\t\t\t\t'm82' => '52',\n\t\t\t\t'm83' => '40',\n\t\t\t\t'm84' => '38',\n\t\t\t\t'm85' => '31',\n\t\t\t\t'm86' => '26',\n\t\t\t\t'm87' => '13',\n\t\t\t\t'm88' => '19',\n\t\t\t\t'm89' => '12',\n\t\t\t\t'm90' => '34',\n\t\t\t\t'female_all_ages' => '6147',\n\t\t\t\t'f0' => '70',\n\t\t\t\t'f1' => '62',\n\t\t\t\t'f2' => '52',\n\t\t\t\t'f3' => '54',\n\t\t\t\t'f4' => '73',\n\t\t\t\t'f5' => '45',\n\t\t\t\t'f6' => '54',\n\t\t\t\t'f7' => '62',\n\t\t\t\t'f8' => '57',\n\t\t\t\t'f9' => '54',\n\t\t\t\t'f10' => '54',\n\t\t\t\t'f11' => '53',\n\t\t\t\t'f12' => '68',\n\t\t\t\t'f13' => '56',\n\t\t\t\t'f14' => '62',\n\t\t\t\t'f15' => '65',\n\t\t\t\t'f16' => '75',\n\t\t\t\t'f17' => '66',\n\t\t\t\t'f18' => '68',\n\t\t\t\t'f19' => '72',\n\t\t\t\t'f20' => '74',\n\t\t\t\t'f21' => '58',\n\t\t\t\t'f22' => '72',\n\t\t\t\t'f23' => '75',\n\t\t\t\t'f24' => '65',\n\t\t\t\t'f25' => '72',\n\t\t\t\t'f26' => '69',\n\t\t\t\t'f27' => '57',\n\t\t\t\t'f28' => '59',\n\t\t\t\t'f29' => '51',\n\t\t\t\t'f30' => '65',\n\t\t\t\t'f31' => '61',\n\t\t\t\t'f32' => '66',\n\t\t\t\t'f33' => '69',\n\t\t\t\t'f34' => '57',\n\t\t\t\t'f35' => '52',\n\t\t\t\t'f36' => '53',\n\t\t\t\t'f37' => '60',\n\t\t\t\t'f38' => '68',\n\t\t\t\t'f39' => '73',\n\t\t\t\t'f40' => '90',\n\t\t\t\t'f41' => '91',\n\t\t\t\t'f42' => '79',\n\t\t\t\t'f43' => '84',\n\t\t\t\t'f44' => '70',\n\t\t\t\t'f45' => '89',\n\t\t\t\t'f46' => '92',\n\t\t\t\t'f47' => '76',\n\t\t\t\t'f48' => '74',\n\t\t\t\t'f49' => '95',\n\t\t\t\t'f50' => '92',\n\t\t\t\t'f51' => '104',\n\t\t\t\t'f52' => '87',\n\t\t\t\t'f53' => '79',\n\t\t\t\t'f54' => '80',\n\t\t\t\t'f55' => '93',\n\t\t\t\t'f56' => '90',\n\t\t\t\t'f57' => '76',\n\t\t\t\t'f58' => '83',\n\t\t\t\t'f59' => '73',\n\t\t\t\t'f60' => '76',\n\t\t\t\t'f61' => '83',\n\t\t\t\t'f62' => '64',\n\t\t\t\t'f63' => '67',\n\t\t\t\t'f64' => '74',\n\t\t\t\t'f65' => '80',\n\t\t\t\t'f66' => '84',\n\t\t\t\t'f67' => '57',\n\t\t\t\t'f68' => '59',\n\t\t\t\t'f69' => '66',\n\t\t\t\t'f70' => '65',\n\t\t\t\t'f71' => '48',\n\t\t\t\t'f72' => '57',\n\t\t\t\t'f73' => '60',\n\t\t\t\t'f74' => '72',\n\t\t\t\t'f75' => '65',\n\t\t\t\t'f76' => '69',\n\t\t\t\t'f77' => '64',\n\t\t\t\t'f78' => '51',\n\t\t\t\t'f79' => '75',\n\t\t\t\t'f80' => '66',\n\t\t\t\t'f81' => '79',\n\t\t\t\t'f82' => '63',\n\t\t\t\t'f83' => '60',\n\t\t\t\t'f84' => '48',\n\t\t\t\t'f85' => '44',\n\t\t\t\t'f86' => '39',\n\t\t\t\t'f87' => '41',\n\t\t\t\t'f88' => '35',\n\t\t\t\t'f89' => '36',\n\t\t\t\t'f90' => '105',\n\t\t\t),\n\t\t\t10 => \n\t\t\tarray (\n\t\t\t\t'id' => '11',\n\t\t\t\t'slug' => 'kings-park',\n\t\t\t\t'seats' => '3',\n\t\t\t\t'body_id' => '1',\n\t\t\t\t'created_at' => '2015-01-20 12:24:46',\n\t\t\t\t'updated_at' => '2015-01-20 12:24:46',\n\t\t\t\t'ons_district_code' => 'E05001674',\n\t\t\t\t'ons_district_code_old' => '00FANH',\n\t\t\t\t'name' => 'Kings Park',\n\t\t\t\t'ons_la_code' => 'E06000010',\n\t\t\t\t'body_name' => 'Kingston upon Hull, City of',\n\t\t\t\t'ons_constituency_code' => 'E14000772',\n\t\t\t\t'ons_constituency_code_old' => 'C45',\n\t\t\t\t'ons_constituency_name' => 'Kingston upon Hull North',\n\t\t\t\t'male_all_ages' => '5387',\n\t\t\t\t'm0' => '93',\n\t\t\t\t'm1' => '101',\n\t\t\t\t'm2' => '98',\n\t\t\t\t'm3' => '76',\n\t\t\t\t'm4' => '89',\n\t\t\t\t'm5' => '71',\n\t\t\t\t'm6' => '63',\n\t\t\t\t'm7' => '68',\n\t\t\t\t'm8' => '55',\n\t\t\t\t'm9' => '48',\n\t\t\t\t'm10' => '53',\n\t\t\t\t'm11' => '69',\n\t\t\t\t'm12' => '54',\n\t\t\t\t'm13' => '54',\n\t\t\t\t'm14' => '47',\n\t\t\t\t'm15' => '56',\n\t\t\t\t'm16' => '55',\n\t\t\t\t'm17' => '59',\n\t\t\t\t'm18' => '55',\n\t\t\t\t'm19' => '64',\n\t\t\t\t'm20' => '63',\n\t\t\t\t'm21' => '75',\n\t\t\t\t'm22' => '85',\n\t\t\t\t'm23' => '84',\n\t\t\t\t'm24' => '69',\n\t\t\t\t'm25' => '96',\n\t\t\t\t'm26' => '130',\n\t\t\t\t'm27' => '125',\n\t\t\t\t'm28' => '105',\n\t\t\t\t'm29' => '108',\n\t\t\t\t'm30' => '92',\n\t\t\t\t'm31' => '111',\n\t\t\t\t'm32' => '98',\n\t\t\t\t'm33' => '102',\n\t\t\t\t'm34' => '95',\n\t\t\t\t'm35' => '80',\n\t\t\t\t'm36' => '81',\n\t\t\t\t'm37' => '82',\n\t\t\t\t'm38' => '90',\n\t\t\t\t'm39' => '94',\n\t\t\t\t'm40' => '118',\n\t\t\t\t'm41' => '95',\n\t\t\t\t'm42' => '83',\n\t\t\t\t'm43' => '92',\n\t\t\t\t'm44' => '94',\n\t\t\t\t'm45' => '75',\n\t\t\t\t'm46' => '75',\n\t\t\t\t'm47' => '70',\n\t\t\t\t'm48' => '71',\n\t\t\t\t'm49' => '88',\n\t\t\t\t'm50' => '83',\n\t\t\t\t'm51' => '97',\n\t\t\t\t'm52' => '87',\n\t\t\t\t'm53' => '72',\n\t\t\t\t'm54' => '63',\n\t\t\t\t'm55' => '62',\n\t\t\t\t'm56' => '58',\n\t\t\t\t'm57' => '68',\n\t\t\t\t'm58' => '56',\n\t\t\t\t'm59' => '50',\n\t\t\t\t'm60' => '51',\n\t\t\t\t'm61' => '53',\n\t\t\t\t'm62' => '46',\n\t\t\t\t'm63' => '36',\n\t\t\t\t'm64' => '44',\n\t\t\t\t'm65' => '31',\n\t\t\t\t'm66' => '54',\n\t\t\t\t'm67' => '39',\n\t\t\t\t'm68' => '36',\n\t\t\t\t'm69' => '31',\n\t\t\t\t'm70' => '19',\n\t\t\t\t'm71' => '15',\n\t\t\t\t'm72' => '17',\n\t\t\t\t'm73' => '21',\n\t\t\t\t'm74' => '10',\n\t\t\t\t'm75' => '15',\n\t\t\t\t'm76' => '17',\n\t\t\t\t'm77' => '12',\n\t\t\t\t'm78' => '22',\n\t\t\t\t'm79' => '13',\n\t\t\t\t'm80' => '10',\n\t\t\t\t'm81' => '13',\n\t\t\t\t'm82' => '9',\n\t\t\t\t'm83' => '7',\n\t\t\t\t'm84' => '6',\n\t\t\t\t'm85' => '2',\n\t\t\t\t'm86' => '1',\n\t\t\t\t'm87' => '2',\n\t\t\t\t'm88' => '2',\n\t\t\t\t'm89' => '1',\n\t\t\t\t'm90' => '2',\n\t\t\t\t'female_all_ages' => '5410',\n\t\t\t\t'f0' => '99',\n\t\t\t\t'f1' => '93',\n\t\t\t\t'f2' => '73',\n\t\t\t\t'f3' => '79',\n\t\t\t\t'f4' => '85',\n\t\t\t\t'f5' => '61',\n\t\t\t\t'f6' => '68',\n\t\t\t\t'f7' => '76',\n\t\t\t\t'f8' => '78',\n\t\t\t\t'f9' => '63',\n\t\t\t\t'f10' => '46',\n\t\t\t\t'f11' => '47',\n\t\t\t\t'f12' => '35',\n\t\t\t\t'f13' => '49',\n\t\t\t\t'f14' => '56',\n\t\t\t\t'f15' => '57',\n\t\t\t\t'f16' => '57',\n\t\t\t\t'f17' => '64',\n\t\t\t\t'f18' => '53',\n\t\t\t\t'f19' => '52',\n\t\t\t\t'f20' => '63',\n\t\t\t\t'f21' => '65',\n\t\t\t\t'f22' => '88',\n\t\t\t\t'f23' => '91',\n\t\t\t\t'f24' => '97',\n\t\t\t\t'f25' => '118',\n\t\t\t\t'f26' => '123',\n\t\t\t\t'f27' => '127',\n\t\t\t\t'f28' => '124',\n\t\t\t\t'f29' => '112',\n\t\t\t\t'f30' => '80',\n\t\t\t\t'f31' => '99',\n\t\t\t\t'f32' => '105',\n\t\t\t\t'f33' => '106',\n\t\t\t\t'f34' => '93',\n\t\t\t\t'f35' => '109',\n\t\t\t\t'f36' => '90',\n\t\t\t\t'f37' => '95',\n\t\t\t\t'f38' => '72',\n\t\t\t\t'f39' => '79',\n\t\t\t\t'f40' => '69',\n\t\t\t\t'f41' => '83',\n\t\t\t\t'f42' => '89',\n\t\t\t\t'f43' => '79',\n\t\t\t\t'f44' => '81',\n\t\t\t\t'f45' => '86',\n\t\t\t\t'f46' => '86',\n\t\t\t\t'f47' => '82',\n\t\t\t\t'f48' => '84',\n\t\t\t\t'f49' => '84',\n\t\t\t\t'f50' => '74',\n\t\t\t\t'f51' => '69',\n\t\t\t\t'f52' => '58',\n\t\t\t\t'f53' => '74',\n\t\t\t\t'f54' => '66',\n\t\t\t\t'f55' => '74',\n\t\t\t\t'f56' => '61',\n\t\t\t\t'f57' => '57',\n\t\t\t\t'f58' => '44',\n\t\t\t\t'f59' => '57',\n\t\t\t\t'f60' => '45',\n\t\t\t\t'f61' => '47',\n\t\t\t\t'f62' => '54',\n\t\t\t\t'f63' => '39',\n\t\t\t\t'f64' => '41',\n\t\t\t\t'f65' => '63',\n\t\t\t\t'f66' => '63',\n\t\t\t\t'f67' => '40',\n\t\t\t\t'f68' => '28',\n\t\t\t\t'f69' => '22',\n\t\t\t\t'f70' => '21',\n\t\t\t\t'f71' => '20',\n\t\t\t\t'f72' => '14',\n\t\t\t\t'f73' => '16',\n\t\t\t\t'f74' => '23',\n\t\t\t\t'f75' => '19',\n\t\t\t\t'f76' => '20',\n\t\t\t\t'f77' => '17',\n\t\t\t\t'f78' => '23',\n\t\t\t\t'f79' => '9',\n\t\t\t\t'f80' => '17',\n\t\t\t\t'f81' => '13',\n\t\t\t\t'f82' => '11',\n\t\t\t\t'f83' => '14',\n\t\t\t\t'f84' => '7',\n\t\t\t\t'f85' => '3',\n\t\t\t\t'f86' => '5',\n\t\t\t\t'f87' => '6',\n\t\t\t\t'f88' => '6',\n\t\t\t\t'f89' => '3',\n\t\t\t\t'f90' => '17',\n\t\t\t),\n\t\t\t11 => \n\t\t\tarray (\n\t\t\t\t'id' => '12',\n\t\t\t\t'slug' => 'longhill',\n\t\t\t\t'seats' => '3',\n\t\t\t\t'body_id' => '1',\n\t\t\t\t'created_at' => '2015-01-20 12:24:46',\n\t\t\t\t'updated_at' => '2015-01-20 12:24:46',\n\t\t\t\t'ons_district_code' => 'E05001675',\n\t\t\t\t'ons_district_code_old' => '00FANJ',\n\t\t\t\t'name' => 'Longhill',\n\t\t\t\t'ons_la_code' => 'E06000010',\n\t\t\t\t'body_name' => 'Kingston upon Hull, City of',\n\t\t\t\t'ons_constituency_code' => 'E14000771',\n\t\t\t\t'ons_constituency_code_old' => 'C44',\n\t\t\t\t'ons_constituency_name' => 'Kingston upon Hull East',\n\t\t\t\t'male_all_ages' => '5594',\n\t\t\t\t'm0' => '93',\n\t\t\t\t'm1' => '102',\n\t\t\t\t'm2' => '83',\n\t\t\t\t'm3' => '90',\n\t\t\t\t'm4' => '83',\n\t\t\t\t'm5' => '90',\n\t\t\t\t'm6' => '102',\n\t\t\t\t'm7' => '69',\n\t\t\t\t'm8' => '74',\n\t\t\t\t'm9' => '78',\n\t\t\t\t'm10' => '58',\n\t\t\t\t'm11' => '75',\n\t\t\t\t'm12' => '72',\n\t\t\t\t'm13' => '70',\n\t\t\t\t'm14' => '69',\n\t\t\t\t'm15' => '66',\n\t\t\t\t'm16' => '87',\n\t\t\t\t'm17' => '79',\n\t\t\t\t'm18' => '77',\n\t\t\t\t'm19' => '77',\n\t\t\t\t'm20' => '77',\n\t\t\t\t'm21' => '70',\n\t\t\t\t'm22' => '95',\n\t\t\t\t'm23' => '74',\n\t\t\t\t'm24' => '65',\n\t\t\t\t'm25' => '99',\n\t\t\t\t'm26' => '68',\n\t\t\t\t'm27' => '78',\n\t\t\t\t'm28' => '69',\n\t\t\t\t'm29' => '69',\n\t\t\t\t'm30' => '72',\n\t\t\t\t'm31' => '76',\n\t\t\t\t'm32' => '59',\n\t\t\t\t'm33' => '57',\n\t\t\t\t'm34' => '54',\n\t\t\t\t'm35' => '61',\n\t\t\t\t'm36' => '55',\n\t\t\t\t'm37' => '57',\n\t\t\t\t'm38' => '47',\n\t\t\t\t'm39' => '53',\n\t\t\t\t'm40' => '65',\n\t\t\t\t'm41' => '73',\n\t\t\t\t'm42' => '77',\n\t\t\t\t'm43' => '75',\n\t\t\t\t'm44' => '73',\n\t\t\t\t'm45' => '73',\n\t\t\t\t'm46' => '69',\n\t\t\t\t'm47' => '89',\n\t\t\t\t'm48' => '66',\n\t\t\t\t'm49' => '65',\n\t\t\t\t'm50' => '82',\n\t\t\t\t'm51' => '70',\n\t\t\t\t'm52' => '69',\n\t\t\t\t'm53' => '61',\n\t\t\t\t'm54' => '73',\n\t\t\t\t'm55' => '53',\n\t\t\t\t'm56' => '68',\n\t\t\t\t'm57' => '62',\n\t\t\t\t'm58' => '64',\n\t\t\t\t'm59' => '71',\n\t\t\t\t'm60' => '82',\n\t\t\t\t'm61' => '64',\n\t\t\t\t'm62' => '58',\n\t\t\t\t'm63' => '66',\n\t\t\t\t'm64' => '79',\n\t\t\t\t'm65' => '82',\n\t\t\t\t'm66' => '74',\n\t\t\t\t'm67' => '52',\n\t\t\t\t'm68' => '50',\n\t\t\t\t'm69' => '42',\n\t\t\t\t'm70' => '42',\n\t\t\t\t'm71' => '41',\n\t\t\t\t'm72' => '29',\n\t\t\t\t'm73' => '34',\n\t\t\t\t'm74' => '39',\n\t\t\t\t'm75' => '33',\n\t\t\t\t'm76' => '39',\n\t\t\t\t'm77' => '30',\n\t\t\t\t'm78' => '17',\n\t\t\t\t'm79' => '27',\n\t\t\t\t'm80' => '22',\n\t\t\t\t'm81' => '29',\n\t\t\t\t'm82' => '35',\n\t\t\t\t'm83' => '27',\n\t\t\t\t'm84' => '34',\n\t\t\t\t'm85' => '23',\n\t\t\t\t'm86' => '20',\n\t\t\t\t'm87' => '16',\n\t\t\t\t'm88' => '12',\n\t\t\t\t'm89' => '8',\n\t\t\t\t'm90' => '41',\n\t\t\t\t'female_all_ages' => '6147',\n\t\t\t\t'f0' => '79',\n\t\t\t\t'f1' => '97',\n\t\t\t\t'f2' => '83',\n\t\t\t\t'f3' => '95',\n\t\t\t\t'f4' => '73',\n\t\t\t\t'f5' => '89',\n\t\t\t\t'f6' => '76',\n\t\t\t\t'f7' => '72',\n\t\t\t\t'f8' => '60',\n\t\t\t\t'f9' => '83',\n\t\t\t\t'f10' => '70',\n\t\t\t\t'f11' => '64',\n\t\t\t\t'f12' => '61',\n\t\t\t\t'f13' => '68',\n\t\t\t\t'f14' => '74',\n\t\t\t\t'f15' => '62',\n\t\t\t\t'f16' => '88',\n\t\t\t\t'f17' => '82',\n\t\t\t\t'f18' => '67',\n\t\t\t\t'f19' => '70',\n\t\t\t\t'f20' => '72',\n\t\t\t\t'f21' => '83',\n\t\t\t\t'f22' => '84',\n\t\t\t\t'f23' => '84',\n\t\t\t\t'f24' => '68',\n\t\t\t\t'f25' => '92',\n\t\t\t\t'f26' => '91',\n\t\t\t\t'f27' => '94',\n\t\t\t\t'f28' => '79',\n\t\t\t\t'f29' => '98',\n\t\t\t\t'f30' => '82',\n\t\t\t\t'f31' => '82',\n\t\t\t\t'f32' => '81',\n\t\t\t\t'f33' => '85',\n\t\t\t\t'f34' => '58',\n\t\t\t\t'f35' => '56',\n\t\t\t\t'f36' => '52',\n\t\t\t\t'f37' => '49',\n\t\t\t\t'f38' => '67',\n\t\t\t\t'f39' => '83',\n\t\t\t\t'f40' => '68',\n\t\t\t\t'f41' => '92',\n\t\t\t\t'f42' => '92',\n\t\t\t\t'f43' => '68',\n\t\t\t\t'f44' => '74',\n\t\t\t\t'f45' => '70',\n\t\t\t\t'f46' => '67',\n\t\t\t\t'f47' => '76',\n\t\t\t\t'f48' => '67',\n\t\t\t\t'f49' => '80',\n\t\t\t\t'f50' => '93',\n\t\t\t\t'f51' => '64',\n\t\t\t\t'f52' => '70',\n\t\t\t\t'f53' => '83',\n\t\t\t\t'f54' => '70',\n\t\t\t\t'f55' => '63',\n\t\t\t\t'f56' => '80',\n\t\t\t\t'f57' => '81',\n\t\t\t\t'f58' => '64',\n\t\t\t\t'f59' => '79',\n\t\t\t\t'f60' => '80',\n\t\t\t\t'f61' => '73',\n\t\t\t\t'f62' => '79',\n\t\t\t\t'f63' => '70',\n\t\t\t\t'f64' => '71',\n\t\t\t\t'f65' => '60',\n\t\t\t\t'f66' => '88',\n\t\t\t\t'f67' => '45',\n\t\t\t\t'f68' => '44',\n\t\t\t\t'f69' => '48',\n\t\t\t\t'f70' => '52',\n\t\t\t\t'f71' => '45',\n\t\t\t\t'f72' => '31',\n\t\t\t\t'f73' => '43',\n\t\t\t\t'f74' => '46',\n\t\t\t\t'f75' => '42',\n\t\t\t\t'f76' => '55',\n\t\t\t\t'f77' => '39',\n\t\t\t\t'f78' => '42',\n\t\t\t\t'f79' => '39',\n\t\t\t\t'f80' => '38',\n\t\t\t\t'f81' => '39',\n\t\t\t\t'f82' => '53',\n\t\t\t\t'f83' => '47',\n\t\t\t\t'f84' => '41',\n\t\t\t\t'f85' => '52',\n\t\t\t\t'f86' => '44',\n\t\t\t\t'f87' => '40',\n\t\t\t\t'f88' => '30',\n\t\t\t\t'f89' => '26',\n\t\t\t\t'f90' => '91',\n\t\t\t),\n\t\t\t12 => \n\t\t\tarray (\n\t\t\t\t'id' => '13',\n\t\t\t\t'slug' => 'marfleet',\n\t\t\t\t'seats' => '3',\n\t\t\t\t'body_id' => '1',\n\t\t\t\t'created_at' => '2015-01-20 12:24:46',\n\t\t\t\t'updated_at' => '2015-01-20 12:24:46',\n\t\t\t\t'ons_district_code' => 'E05001676',\n\t\t\t\t'ons_district_code_old' => '00FANK',\n\t\t\t\t'name' => 'Marfleet',\n\t\t\t\t'ons_la_code' => 'E06000010',\n\t\t\t\t'body_name' => 'Kingston upon Hull, City of',\n\t\t\t\t'ons_constituency_code' => 'E14000771',\n\t\t\t\t'ons_constituency_code_old' => 'C44',\n\t\t\t\t'ons_constituency_name' => 'Kingston upon Hull East',\n\t\t\t\t'male_all_ages' => '7020',\n\t\t\t\t'm0' => '125',\n\t\t\t\t'm1' => '136',\n\t\t\t\t'm2' => '134',\n\t\t\t\t'm3' => '112',\n\t\t\t\t'm4' => '108',\n\t\t\t\t'm5' => '115',\n\t\t\t\t'm6' => '120',\n\t\t\t\t'm7' => '108',\n\t\t\t\t'm8' => '91',\n\t\t\t\t'm9' => '104',\n\t\t\t\t'm10' => '85',\n\t\t\t\t'm11' => '87',\n\t\t\t\t'm12' => '74',\n\t\t\t\t'm13' => '78',\n\t\t\t\t'm14' => '90',\n\t\t\t\t'm15' => '79',\n\t\t\t\t'm16' => '98',\n\t\t\t\t'm17' => '80',\n\t\t\t\t'm18' => '93',\n\t\t\t\t'm19' => '109',\n\t\t\t\t'm20' => '102',\n\t\t\t\t'm21' => '122',\n\t\t\t\t'm22' => '135',\n\t\t\t\t'm23' => '124',\n\t\t\t\t'm24' => '145',\n\t\t\t\t'm25' => '137',\n\t\t\t\t'm26' => '116',\n\t\t\t\t'm27' => '108',\n\t\t\t\t'm28' => '105',\n\t\t\t\t'm29' => '102',\n\t\t\t\t'm30' => '114',\n\t\t\t\t'm31' => '90',\n\t\t\t\t'm32' => '107',\n\t\t\t\t'm33' => '92',\n\t\t\t\t'm34' => '89',\n\t\t\t\t'm35' => '88',\n\t\t\t\t'm36' => '72',\n\t\t\t\t'm37' => '93',\n\t\t\t\t'm38' => '73',\n\t\t\t\t'm39' => '94',\n\t\t\t\t'm40' => '86',\n\t\t\t\t'm41' => '91',\n\t\t\t\t'm42' => '103',\n\t\t\t\t'm43' => '82',\n\t\t\t\t'm44' => '92',\n\t\t\t\t'm45' => '74',\n\t\t\t\t'm46' => '100',\n\t\t\t\t'm47' => '89',\n\t\t\t\t'm48' => '102',\n\t\t\t\t'm49' => '100',\n\t\t\t\t'm50' => '98',\n\t\t\t\t'm51' => '91',\n\t\t\t\t'm52' => '80',\n\t\t\t\t'm53' => '96',\n\t\t\t\t'm54' => '92',\n\t\t\t\t'm55' => '79',\n\t\t\t\t'm56' => '71',\n\t\t\t\t'm57' => '72',\n\t\t\t\t'm58' => '83',\n\t\t\t\t'm59' => '65',\n\t\t\t\t'm60' => '66',\n\t\t\t\t'm61' => '69',\n\t\t\t\t'm62' => '64',\n\t\t\t\t'm63' => '57',\n\t\t\t\t'm64' => '67',\n\t\t\t\t'm65' => '71',\n\t\t\t\t'm66' => '69',\n\t\t\t\t'm67' => '51',\n\t\t\t\t'm68' => '47',\n\t\t\t\t'm69' => '36',\n\t\t\t\t'm70' => '33',\n\t\t\t\t'm71' => '32',\n\t\t\t\t'm72' => '39',\n\t\t\t\t'm73' => '26',\n\t\t\t\t'm74' => '37',\n\t\t\t\t'm75' => '37',\n\t\t\t\t'm76' => '35',\n\t\t\t\t'm77' => '25',\n\t\t\t\t'm78' => '23',\n\t\t\t\t'm79' => '36',\n\t\t\t\t'm80' => '30',\n\t\t\t\t'm81' => '29',\n\t\t\t\t'm82' => '29',\n\t\t\t\t'm83' => '20',\n\t\t\t\t'm84' => '12',\n\t\t\t\t'm85' => '19',\n\t\t\t\t'm86' => '18',\n\t\t\t\t'm87' => '20',\n\t\t\t\t'm88' => '9',\n\t\t\t\t'm89' => '9',\n\t\t\t\t'm90' => '25',\n\t\t\t\t'female_all_ages' => '6800',\n\t\t\t\t'f0' => '123',\n\t\t\t\t'f1' => '132',\n\t\t\t\t'f2' => '120',\n\t\t\t\t'f3' => '106',\n\t\t\t\t'f4' => '119',\n\t\t\t\t'f5' => '107',\n\t\t\t\t'f6' => '97',\n\t\t\t\t'f7' => '97',\n\t\t\t\t'f8' => '86',\n\t\t\t\t'f9' => '104',\n\t\t\t\t'f10' => '78',\n\t\t\t\t'f11' => '74',\n\t\t\t\t'f12' => '70',\n\t\t\t\t'f13' => '81',\n\t\t\t\t'f14' => '84',\n\t\t\t\t'f15' => '91',\n\t\t\t\t'f16' => '87',\n\t\t\t\t'f17' => '78',\n\t\t\t\t'f18' => '87',\n\t\t\t\t'f19' => '93',\n\t\t\t\t'f20' => '97',\n\t\t\t\t'f21' => '93',\n\t\t\t\t'f22' => '114',\n\t\t\t\t'f23' => '112',\n\t\t\t\t'f24' => '96',\n\t\t\t\t'f25' => '133',\n\t\t\t\t'f26' => '121',\n\t\t\t\t'f27' => '127',\n\t\t\t\t'f28' => '132',\n\t\t\t\t'f29' => '101',\n\t\t\t\t'f30' => '92',\n\t\t\t\t'f31' => '91',\n\t\t\t\t'f32' => '98',\n\t\t\t\t'f33' => '93',\n\t\t\t\t'f34' => '69',\n\t\t\t\t'f35' => '59',\n\t\t\t\t'f36' => '71',\n\t\t\t\t'f37' => '72',\n\t\t\t\t'f38' => '90',\n\t\t\t\t'f39' => '82',\n\t\t\t\t'f40' => '82',\n\t\t\t\t'f41' => '85',\n\t\t\t\t'f42' => '80',\n\t\t\t\t'f43' => '88',\n\t\t\t\t'f44' => '88',\n\t\t\t\t'f45' => '73',\n\t\t\t\t'f46' => '82',\n\t\t\t\t'f47' => '88',\n\t\t\t\t'f48' => '74',\n\t\t\t\t'f49' => '93',\n\t\t\t\t'f50' => '99',\n\t\t\t\t'f51' => '106',\n\t\t\t\t'f52' => '82',\n\t\t\t\t'f53' => '78',\n\t\t\t\t'f54' => '74',\n\t\t\t\t'f55' => '66',\n\t\t\t\t'f56' => '83',\n\t\t\t\t'f57' => '68',\n\t\t\t\t'f58' => '67',\n\t\t\t\t'f59' => '62',\n\t\t\t\t'f60' => '62',\n\t\t\t\t'f61' => '59',\n\t\t\t\t'f62' => '50',\n\t\t\t\t'f63' => '62',\n\t\t\t\t'f64' => '50',\n\t\t\t\t'f65' => '64',\n\t\t\t\t'f66' => '72',\n\t\t\t\t'f67' => '47',\n\t\t\t\t'f68' => '40',\n\t\t\t\t'f69' => '36',\n\t\t\t\t'f70' => '45',\n\t\t\t\t'f71' => '36',\n\t\t\t\t'f72' => '43',\n\t\t\t\t'f73' => '39',\n\t\t\t\t'f74' => '25',\n\t\t\t\t'f75' => '48',\n\t\t\t\t'f76' => '46',\n\t\t\t\t'f77' => '38',\n\t\t\t\t'f78' => '37',\n\t\t\t\t'f79' => '42',\n\t\t\t\t'f80' => '63',\n\t\t\t\t'f81' => '51',\n\t\t\t\t'f82' => '33',\n\t\t\t\t'f83' => '44',\n\t\t\t\t'f84' => '40',\n\t\t\t\t'f85' => '26',\n\t\t\t\t'f86' => '24',\n\t\t\t\t'f87' => '17',\n\t\t\t\t'f88' => '22',\n\t\t\t\t'f89' => '15',\n\t\t\t\t'f90' => '49',\n\t\t\t),\n\t\t\t13 => \n\t\t\tarray (\n\t\t\t\t'id' => '14',\n\t\t\t\t'slug' => 'myton',\n\t\t\t\t'seats' => '3',\n\t\t\t\t'body_id' => '1',\n\t\t\t\t'created_at' => '2015-01-20 12:24:46',\n\t\t\t\t'updated_at' => '2015-01-20 12:24:46',\n\t\t\t\t'ons_district_code' => 'E05001677',\n\t\t\t\t'ons_district_code_old' => '00FANL',\n\t\t\t\t'name' => 'Myton',\n\t\t\t\t'ons_la_code' => 'E06000010',\n\t\t\t\t'body_name' => 'Kingston upon Hull, City of',\n\t\t\t\t'ons_constituency_code' => 'E14000773',\n\t\t\t\t'ons_constituency_code_old' => 'C46',\n\t\t\t\t'ons_constituency_name' => 'Kingston upon Hull West and Hessle',\n\t\t\t\t'male_all_ages' => '9082',\n\t\t\t\t'm0' => '121',\n\t\t\t\t'm1' => '132',\n\t\t\t\t'm2' => '102',\n\t\t\t\t'm3' => '112',\n\t\t\t\t'm4' => '97',\n\t\t\t\t'm5' => '88',\n\t\t\t\t'm6' => '81',\n\t\t\t\t'm7' => '61',\n\t\t\t\t'm8' => '57',\n\t\t\t\t'm9' => '42',\n\t\t\t\t'm10' => '59',\n\t\t\t\t'm11' => '49',\n\t\t\t\t'm12' => '50',\n\t\t\t\t'm13' => '67',\n\t\t\t\t'm14' => '64',\n\t\t\t\t'm15' => '69',\n\t\t\t\t'm16' => '74',\n\t\t\t\t'm17' => '71',\n\t\t\t\t'm18' => '81',\n\t\t\t\t'm19' => '116',\n\t\t\t\t'm20' => '147',\n\t\t\t\t'm21' => '169',\n\t\t\t\t'm22' => '222',\n\t\t\t\t'm23' => '165',\n\t\t\t\t'm24' => '229',\n\t\t\t\t'm25' => '175',\n\t\t\t\t'm26' => '187',\n\t\t\t\t'm27' => '209',\n\t\t\t\t'm28' => '239',\n\t\t\t\t'm29' => '234',\n\t\t\t\t'm30' => '197',\n\t\t\t\t'm31' => '171',\n\t\t\t\t'm32' => '203',\n\t\t\t\t'm33' => '188',\n\t\t\t\t'm34' => '175',\n\t\t\t\t'm35' => '172',\n\t\t\t\t'm36' => '199',\n\t\t\t\t'm37' => '204',\n\t\t\t\t'm38' => '182',\n\t\t\t\t'm39' => '157',\n\t\t\t\t'm40' => '146',\n\t\t\t\t'm41' => '158',\n\t\t\t\t'm42' => '158',\n\t\t\t\t'm43' => '119',\n\t\t\t\t'm44' => '115',\n\t\t\t\t'm45' => '119',\n\t\t\t\t'm46' => '142',\n\t\t\t\t'm47' => '132',\n\t\t\t\t'm48' => '121',\n\t\t\t\t'm49' => '124',\n\t\t\t\t'm50' => '114',\n\t\t\t\t'm51' => '103',\n\t\t\t\t'm52' => '136',\n\t\t\t\t'm53' => '109',\n\t\t\t\t'm54' => '100',\n\t\t\t\t'm55' => '83',\n\t\t\t\t'm56' => '98',\n\t\t\t\t'm57' => '74',\n\t\t\t\t'm58' => '86',\n\t\t\t\t'm59' => '80',\n\t\t\t\t'm60' => '89',\n\t\t\t\t'm61' => '75',\n\t\t\t\t'm62' => '83',\n\t\t\t\t'm63' => '74',\n\t\t\t\t'm64' => '77',\n\t\t\t\t'm65' => '98',\n\t\t\t\t'm66' => '84',\n\t\t\t\t'm67' => '53',\n\t\t\t\t'm68' => '57',\n\t\t\t\t'm69' => '56',\n\t\t\t\t'm70' => '48',\n\t\t\t\t'm71' => '43',\n\t\t\t\t'm72' => '35',\n\t\t\t\t'm73' => '56',\n\t\t\t\t'm74' => '45',\n\t\t\t\t'm75' => '54',\n\t\t\t\t'm76' => '41',\n\t\t\t\t'm77' => '33',\n\t\t\t\t'm78' => '38',\n\t\t\t\t'm79' => '26',\n\t\t\t\t'm80' => '26',\n\t\t\t\t'm81' => '24',\n\t\t\t\t'm82' => '27',\n\t\t\t\t'm83' => '14',\n\t\t\t\t'm84' => '13',\n\t\t\t\t'm85' => '13',\n\t\t\t\t'm86' => '18',\n\t\t\t\t'm87' => '7',\n\t\t\t\t'm88' => '11',\n\t\t\t\t'm89' => '8',\n\t\t\t\t'm90' => '22',\n\t\t\t\t'female_all_ages' => '6902',\n\t\t\t\t'f0' => '124',\n\t\t\t\t'f1' => '90',\n\t\t\t\t'f2' => '105',\n\t\t\t\t'f3' => '110',\n\t\t\t\t'f4' => '89',\n\t\t\t\t'f5' => '69',\n\t\t\t\t'f6' => '76',\n\t\t\t\t'f7' => '77',\n\t\t\t\t'f8' => '57',\n\t\t\t\t'f9' => '56',\n\t\t\t\t'f10' => '58',\n\t\t\t\t'f11' => '55',\n\t\t\t\t'f12' => '53',\n\t\t\t\t'f13' => '50',\n\t\t\t\t'f14' => '52',\n\t\t\t\t'f15' => '51',\n\t\t\t\t'f16' => '61',\n\t\t\t\t'f17' => '63',\n\t\t\t\t'f18' => '90',\n\t\t\t\t'f19' => '87',\n\t\t\t\t'f20' => '107',\n\t\t\t\t'f21' => '134',\n\t\t\t\t'f22' => '182',\n\t\t\t\t'f23' => '140',\n\t\t\t\t'f24' => '169',\n\t\t\t\t'f25' => '156',\n\t\t\t\t'f26' => '168',\n\t\t\t\t'f27' => '168',\n\t\t\t\t'f28' => '123',\n\t\t\t\t'f29' => '150',\n\t\t\t\t'f30' => '158',\n\t\t\t\t'f31' => '121',\n\t\t\t\t'f32' => '130',\n\t\t\t\t'f33' => '112',\n\t\t\t\t'f34' => '98',\n\t\t\t\t'f35' => '99',\n\t\t\t\t'f36' => '100',\n\t\t\t\t'f37' => '90',\n\t\t\t\t'f38' => '73',\n\t\t\t\t'f39' => '95',\n\t\t\t\t'f40' => '98',\n\t\t\t\t'f41' => '99',\n\t\t\t\t'f42' => '111',\n\t\t\t\t'f43' => '86',\n\t\t\t\t'f44' => '75',\n\t\t\t\t'f45' => '87',\n\t\t\t\t'f46' => '82',\n\t\t\t\t'f47' => '78',\n\t\t\t\t'f48' => '76',\n\t\t\t\t'f49' => '78',\n\t\t\t\t'f50' => '85',\n\t\t\t\t'f51' => '86',\n\t\t\t\t'f52' => '77',\n\t\t\t\t'f53' => '80',\n\t\t\t\t'f54' => '63',\n\t\t\t\t'f55' => '76',\n\t\t\t\t'f56' => '84',\n\t\t\t\t'f57' => '77',\n\t\t\t\t'f58' => '58',\n\t\t\t\t'f59' => '52',\n\t\t\t\t'f60' => '54',\n\t\t\t\t'f61' => '54',\n\t\t\t\t'f62' => '57',\n\t\t\t\t'f63' => '58',\n\t\t\t\t'f64' => '57',\n\t\t\t\t'f65' => '52',\n\t\t\t\t'f66' => '56',\n\t\t\t\t'f67' => '45',\n\t\t\t\t'f68' => '57',\n\t\t\t\t'f69' => '37',\n\t\t\t\t'f70' => '42',\n\t\t\t\t'f71' => '48',\n\t\t\t\t'f72' => '41',\n\t\t\t\t'f73' => '42',\n\t\t\t\t'f74' => '42',\n\t\t\t\t'f75' => '48',\n\t\t\t\t'f76' => '35',\n\t\t\t\t'f77' => '35',\n\t\t\t\t'f78' => '39',\n\t\t\t\t'f79' => '23',\n\t\t\t\t'f80' => '45',\n\t\t\t\t'f81' => '38',\n\t\t\t\t'f82' => '25',\n\t\t\t\t'f83' => '38',\n\t\t\t\t'f84' => '27',\n\t\t\t\t'f85' => '29',\n\t\t\t\t'f86' => '19',\n\t\t\t\t'f87' => '23',\n\t\t\t\t'f88' => '10',\n\t\t\t\t'f89' => '15',\n\t\t\t\t'f90' => '57',\n\t\t\t),\n\t\t\t14 => \n\t\t\tarray (\n\t\t\t\t'id' => '15',\n\t\t\t\t'slug' => 'newington',\n\t\t\t\t'seats' => '3',\n\t\t\t\t'body_id' => '1',\n\t\t\t\t'created_at' => '2015-01-20 12:24:46',\n\t\t\t\t'updated_at' => '2015-01-20 12:24:46',\n\t\t\t\t'ons_district_code' => 'E05001678',\n\t\t\t\t'ons_district_code_old' => '00FANM',\n\t\t\t\t'name' => 'Newington',\n\t\t\t\t'ons_la_code' => 'E06000010',\n\t\t\t\t'body_name' => 'Kingston upon Hull, City of',\n\t\t\t\t'ons_constituency_code' => 'E14000773',\n\t\t\t\t'ons_constituency_code_old' => 'C46',\n\t\t\t\t'ons_constituency_name' => 'Kingston upon Hull West and Hessle',\n\t\t\t\t'male_all_ages' => '5813',\n\t\t\t\t'm0' => '101',\n\t\t\t\t'm1' => '111',\n\t\t\t\t'm2' => '98',\n\t\t\t\t'm3' => '99',\n\t\t\t\t'm4' => '101',\n\t\t\t\t'm5' => '94',\n\t\t\t\t'm6' => '100',\n\t\t\t\t'm7' => '84',\n\t\t\t\t'm8' => '58',\n\t\t\t\t'm9' => '76',\n\t\t\t\t'm10' => '56',\n\t\t\t\t'm11' => '53',\n\t\t\t\t'm12' => '60',\n\t\t\t\t'm13' => '50',\n\t\t\t\t'm14' => '58',\n\t\t\t\t'm15' => '62',\n\t\t\t\t'm16' => '75',\n\t\t\t\t'm17' => '74',\n\t\t\t\t'm18' => '77',\n\t\t\t\t'm19' => '80',\n\t\t\t\t'm20' => '79',\n\t\t\t\t'm21' => '98',\n\t\t\t\t'm22' => '109',\n\t\t\t\t'm23' => '117',\n\t\t\t\t'm24' => '116',\n\t\t\t\t'm25' => '111',\n\t\t\t\t'm26' => '99',\n\t\t\t\t'm27' => '96',\n\t\t\t\t'm28' => '94',\n\t\t\t\t'm29' => '91',\n\t\t\t\t'm30' => '82',\n\t\t\t\t'm31' => '97',\n\t\t\t\t'm32' => '79',\n\t\t\t\t'm33' => '87',\n\t\t\t\t'm34' => '72',\n\t\t\t\t'm35' => '63',\n\t\t\t\t'm36' => '65',\n\t\t\t\t'm37' => '75',\n\t\t\t\t'm38' => '89',\n\t\t\t\t'm39' => '67',\n\t\t\t\t'm40' => '79',\n\t\t\t\t'm41' => '73',\n\t\t\t\t'm42' => '71',\n\t\t\t\t'm43' => '68',\n\t\t\t\t'm44' => '83',\n\t\t\t\t'm45' => '85',\n\t\t\t\t'm46' => '103',\n\t\t\t\t'm47' => '75',\n\t\t\t\t'm48' => '87',\n\t\t\t\t'm49' => '82',\n\t\t\t\t'm50' => '83',\n\t\t\t\t'm51' => '88',\n\t\t\t\t'm52' => '79',\n\t\t\t\t'm53' => '70',\n\t\t\t\t'm54' => '81',\n\t\t\t\t'm55' => '77',\n\t\t\t\t'm56' => '74',\n\t\t\t\t'm57' => '67',\n\t\t\t\t'm58' => '68',\n\t\t\t\t'm59' => '60',\n\t\t\t\t'm60' => '57',\n\t\t\t\t'm61' => '51',\n\t\t\t\t'm62' => '71',\n\t\t\t\t'm63' => '40',\n\t\t\t\t'm64' => '55',\n\t\t\t\t'm65' => '60',\n\t\t\t\t'm66' => '54',\n\t\t\t\t'm67' => '48',\n\t\t\t\t'm68' => '28',\n\t\t\t\t'm69' => '33',\n\t\t\t\t'm70' => '33',\n\t\t\t\t'm71' => '24',\n\t\t\t\t'm72' => '31',\n\t\t\t\t'm73' => '25',\n\t\t\t\t'm74' => '33',\n\t\t\t\t'm75' => '28',\n\t\t\t\t'm76' => '25',\n\t\t\t\t'm77' => '36',\n\t\t\t\t'm78' => '21',\n\t\t\t\t'm79' => '12',\n\t\t\t\t'm80' => '24',\n\t\t\t\t'm81' => '22',\n\t\t\t\t'm82' => '8',\n\t\t\t\t'm83' => '13',\n\t\t\t\t'm84' => '11',\n\t\t\t\t'm85' => '11',\n\t\t\t\t'm86' => '10',\n\t\t\t\t'm87' => '9',\n\t\t\t\t'm88' => '6',\n\t\t\t\t'm89' => '6',\n\t\t\t\t'm90' => '22',\n\t\t\t\t'female_all_ages' => '5566',\n\t\t\t\t'f0' => '92',\n\t\t\t\t'f1' => '80',\n\t\t\t\t'f2' => '85',\n\t\t\t\t'f3' => '88',\n\t\t\t\t'f4' => '81',\n\t\t\t\t'f5' => '80',\n\t\t\t\t'f6' => '79',\n\t\t\t\t'f7' => '76',\n\t\t\t\t'f8' => '60',\n\t\t\t\t'f9' => '73',\n\t\t\t\t'f10' => '70',\n\t\t\t\t'f11' => '54',\n\t\t\t\t'f12' => '62',\n\t\t\t\t'f13' => '59',\n\t\t\t\t'f14' => '57',\n\t\t\t\t'f15' => '82',\n\t\t\t\t'f16' => '61',\n\t\t\t\t'f17' => '68',\n\t\t\t\t'f18' => '74',\n\t\t\t\t'f19' => '82',\n\t\t\t\t'f20' => '85',\n\t\t\t\t'f21' => '81',\n\t\t\t\t'f22' => '104',\n\t\t\t\t'f23' => '100',\n\t\t\t\t'f24' => '89',\n\t\t\t\t'f25' => '112',\n\t\t\t\t'f26' => '99',\n\t\t\t\t'f27' => '97',\n\t\t\t\t'f28' => '95',\n\t\t\t\t'f29' => '99',\n\t\t\t\t'f30' => '90',\n\t\t\t\t'f31' => '92',\n\t\t\t\t'f32' => '68',\n\t\t\t\t'f33' => '91',\n\t\t\t\t'f34' => '79',\n\t\t\t\t'f35' => '71',\n\t\t\t\t'f36' => '66',\n\t\t\t\t'f37' => '67',\n\t\t\t\t'f38' => '68',\n\t\t\t\t'f39' => '60',\n\t\t\t\t'f40' => '71',\n\t\t\t\t'f41' => '62',\n\t\t\t\t'f42' => '82',\n\t\t\t\t'f43' => '59',\n\t\t\t\t'f44' => '75',\n\t\t\t\t'f45' => '77',\n\t\t\t\t'f46' => '86',\n\t\t\t\t'f47' => '81',\n\t\t\t\t'f48' => '82',\n\t\t\t\t'f49' => '89',\n\t\t\t\t'f50' => '82',\n\t\t\t\t'f51' => '84',\n\t\t\t\t'f52' => '78',\n\t\t\t\t'f53' => '79',\n\t\t\t\t'f54' => '80',\n\t\t\t\t'f55' => '72',\n\t\t\t\t'f56' => '54',\n\t\t\t\t'f57' => '79',\n\t\t\t\t'f58' => '47',\n\t\t\t\t'f59' => '46',\n\t\t\t\t'f60' => '43',\n\t\t\t\t'f61' => '47',\n\t\t\t\t'f62' => '50',\n\t\t\t\t'f63' => '39',\n\t\t\t\t'f64' => '35',\n\t\t\t\t'f65' => '55',\n\t\t\t\t'f66' => '41',\n\t\t\t\t'f67' => '40',\n\t\t\t\t'f68' => '30',\n\t\t\t\t'f69' => '39',\n\t\t\t\t'f70' => '37',\n\t\t\t\t'f71' => '28',\n\t\t\t\t'f72' => '32',\n\t\t\t\t'f73' => '39',\n\t\t\t\t'f74' => '22',\n\t\t\t\t'f75' => '21',\n\t\t\t\t'f76' => '21',\n\t\t\t\t'f77' => '32',\n\t\t\t\t'f78' => '34',\n\t\t\t\t'f79' => '30',\n\t\t\t\t'f80' => '25',\n\t\t\t\t'f81' => '17',\n\t\t\t\t'f82' => '21',\n\t\t\t\t'f83' => '17',\n\t\t\t\t'f84' => '13',\n\t\t\t\t'f85' => '13',\n\t\t\t\t'f86' => '13',\n\t\t\t\t'f87' => '14',\n\t\t\t\t'f88' => '12',\n\t\t\t\t'f89' => '16',\n\t\t\t\t'f90' => '49',\n\t\t\t),\n\t\t\t15 => \n\t\t\tarray (\n\t\t\t\t'id' => '16',\n\t\t\t\t'slug' => 'newland',\n\t\t\t\t'seats' => '3',\n\t\t\t\t'body_id' => '1',\n\t\t\t\t'created_at' => '2015-01-20 12:24:46',\n\t\t\t\t'updated_at' => '2015-01-20 12:24:46',\n\t\t\t\t'ons_district_code' => 'E05001679',\n\t\t\t\t'ons_district_code_old' => '00FANN',\n\t\t\t\t'name' => 'Newland',\n\t\t\t\t'ons_la_code' => 'E06000010',\n\t\t\t\t'body_name' => 'Kingston upon Hull, City of',\n\t\t\t\t'ons_constituency_code' => 'E14000772',\n\t\t\t\t'ons_constituency_code_old' => 'C45',\n\t\t\t\t'ons_constituency_name' => 'Kingston upon Hull North',\n\t\t\t\t'male_all_ages' => '6232',\n\t\t\t\t'm0' => '67',\n\t\t\t\t'm1' => '63',\n\t\t\t\t'm2' => '63',\n\t\t\t\t'm3' => '58',\n\t\t\t\t'm4' => '57',\n\t\t\t\t'm5' => '59',\n\t\t\t\t'm6' => '30',\n\t\t\t\t'm7' => '41',\n\t\t\t\t'm8' => '47',\n\t\t\t\t'm9' => '43',\n\t\t\t\t'm10' => '34',\n\t\t\t\t'm11' => '30',\n\t\t\t\t'm12' => '28',\n\t\t\t\t'm13' => '34',\n\t\t\t\t'm14' => '32',\n\t\t\t\t'm15' => '41',\n\t\t\t\t'm16' => '61',\n\t\t\t\t'm17' => '62',\n\t\t\t\t'm18' => '48',\n\t\t\t\t'm19' => '110',\n\t\t\t\t'm20' => '409',\n\t\t\t\t'm21' => '441',\n\t\t\t\t'm22' => '475',\n\t\t\t\t'm23' => '425',\n\t\t\t\t'm24' => '304',\n\t\t\t\t'm25' => '146',\n\t\t\t\t'm26' => '143',\n\t\t\t\t'm27' => '126',\n\t\t\t\t'm28' => '117',\n\t\t\t\t'm29' => '127',\n\t\t\t\t'm30' => '120',\n\t\t\t\t'm31' => '123',\n\t\t\t\t'm32' => '105',\n\t\t\t\t'm33' => '115',\n\t\t\t\t'm34' => '95',\n\t\t\t\t'm35' => '86',\n\t\t\t\t'm36' => '86',\n\t\t\t\t'm37' => '87',\n\t\t\t\t'm38' => '65',\n\t\t\t\t'm39' => '59',\n\t\t\t\t'm40' => '77',\n\t\t\t\t'm41' => '62',\n\t\t\t\t'm42' => '62',\n\t\t\t\t'm43' => '66',\n\t\t\t\t'm44' => '78',\n\t\t\t\t'm45' => '49',\n\t\t\t\t'm46' => '57',\n\t\t\t\t'm47' => '63',\n\t\t\t\t'm48' => '66',\n\t\t\t\t'm49' => '62',\n\t\t\t\t'm50' => '47',\n\t\t\t\t'm51' => '50',\n\t\t\t\t'm52' => '39',\n\t\t\t\t'm53' => '48',\n\t\t\t\t'm54' => '46',\n\t\t\t\t'm55' => '40',\n\t\t\t\t'm56' => '45',\n\t\t\t\t'm57' => '37',\n\t\t\t\t'm58' => '45',\n\t\t\t\t'm59' => '28',\n\t\t\t\t'm60' => '29',\n\t\t\t\t'm61' => '33',\n\t\t\t\t'm62' => '37',\n\t\t\t\t'm63' => '31',\n\t\t\t\t'm64' => '24',\n\t\t\t\t'm65' => '34',\n\t\t\t\t'm66' => '29',\n\t\t\t\t'm67' => '23',\n\t\t\t\t'm68' => '22',\n\t\t\t\t'm69' => '18',\n\t\t\t\t'm70' => '18',\n\t\t\t\t'm71' => '13',\n\t\t\t\t'm72' => '9',\n\t\t\t\t'm73' => '12',\n\t\t\t\t'm74' => '20',\n\t\t\t\t'm75' => '19',\n\t\t\t\t'm76' => '12',\n\t\t\t\t'm77' => '16',\n\t\t\t\t'm78' => '17',\n\t\t\t\t'm79' => '13',\n\t\t\t\t'm80' => '8',\n\t\t\t\t'm81' => '9',\n\t\t\t\t'm82' => '8',\n\t\t\t\t'm83' => '5',\n\t\t\t\t'm84' => '7',\n\t\t\t\t'm85' => '3',\n\t\t\t\t'm86' => '8',\n\t\t\t\t'm87' => '5',\n\t\t\t\t'm88' => '4',\n\t\t\t\t'm89' => '3',\n\t\t\t\t'm90' => '14',\n\t\t\t\t'female_all_ages' => '5546',\n\t\t\t\t'f0' => '71',\n\t\t\t\t'f1' => '72',\n\t\t\t\t'f2' => '63',\n\t\t\t\t'f3' => '66',\n\t\t\t\t'f4' => '56',\n\t\t\t\t'f5' => '47',\n\t\t\t\t'f6' => '49',\n\t\t\t\t'f7' => '49',\n\t\t\t\t'f8' => '32',\n\t\t\t\t'f9' => '41',\n\t\t\t\t'f10' => '47',\n\t\t\t\t'f11' => '47',\n\t\t\t\t'f12' => '17',\n\t\t\t\t'f13' => '30',\n\t\t\t\t'f14' => '31',\n\t\t\t\t'f15' => '53',\n\t\t\t\t'f16' => '45',\n\t\t\t\t'f17' => '58',\n\t\t\t\t'f18' => '48',\n\t\t\t\t'f19' => '132',\n\t\t\t\t'f20' => '427',\n\t\t\t\t'f21' => '382',\n\t\t\t\t'f22' => '392',\n\t\t\t\t'f23' => '296',\n\t\t\t\t'f24' => '219',\n\t\t\t\t'f25' => '118',\n\t\t\t\t'f26' => '104',\n\t\t\t\t'f27' => '115',\n\t\t\t\t'f28' => '106',\n\t\t\t\t'f29' => '87',\n\t\t\t\t'f30' => '93',\n\t\t\t\t'f31' => '82',\n\t\t\t\t'f32' => '91',\n\t\t\t\t'f33' => '84',\n\t\t\t\t'f34' => '66',\n\t\t\t\t'f35' => '60',\n\t\t\t\t'f36' => '63',\n\t\t\t\t'f37' => '62',\n\t\t\t\t'f38' => '45',\n\t\t\t\t'f39' => '54',\n\t\t\t\t'f40' => '64',\n\t\t\t\t'f41' => '55',\n\t\t\t\t'f42' => '57',\n\t\t\t\t'f43' => '45',\n\t\t\t\t'f44' => '48',\n\t\t\t\t'f45' => '53',\n\t\t\t\t'f46' => '57',\n\t\t\t\t'f47' => '46',\n\t\t\t\t'f48' => '49',\n\t\t\t\t'f49' => '51',\n\t\t\t\t'f50' => '46',\n\t\t\t\t'f51' => '37',\n\t\t\t\t'f52' => '44',\n\t\t\t\t'f53' => '46',\n\t\t\t\t'f54' => '35',\n\t\t\t\t'f55' => '44',\n\t\t\t\t'f56' => '35',\n\t\t\t\t'f57' => '36',\n\t\t\t\t'f58' => '36',\n\t\t\t\t'f59' => '40',\n\t\t\t\t'f60' => '40',\n\t\t\t\t'f61' => '35',\n\t\t\t\t'f62' => '27',\n\t\t\t\t'f63' => '24',\n\t\t\t\t'f64' => '24',\n\t\t\t\t'f65' => '31',\n\t\t\t\t'f66' => '34',\n\t\t\t\t'f67' => '22',\n\t\t\t\t'f68' => '23',\n\t\t\t\t'f69' => '20',\n\t\t\t\t'f70' => '28',\n\t\t\t\t'f71' => '20',\n\t\t\t\t'f72' => '20',\n\t\t\t\t'f73' => '12',\n\t\t\t\t'f74' => '18',\n\t\t\t\t'f75' => '21',\n\t\t\t\t'f76' => '15',\n\t\t\t\t'f77' => '14',\n\t\t\t\t'f78' => '15',\n\t\t\t\t'f79' => '13',\n\t\t\t\t'f80' => '13',\n\t\t\t\t'f81' => '13',\n\t\t\t\t'f82' => '17',\n\t\t\t\t'f83' => '15',\n\t\t\t\t'f84' => '18',\n\t\t\t\t'f85' => '21',\n\t\t\t\t'f86' => '11',\n\t\t\t\t'f87' => '12',\n\t\t\t\t'f88' => '3',\n\t\t\t\t'f89' => '7',\n\t\t\t\t'f90' => '36',\n\t\t\t),\n\t\t\t16 => \n\t\t\tarray (\n\t\t\t\t'id' => '17',\n\t\t\t\t'slug' => 'orchard-park-and-greenwood',\n\t\t\t\t'seats' => '3',\n\t\t\t\t'body_id' => '1',\n\t\t\t\t'created_at' => '2015-01-20 12:24:46',\n\t\t\t\t'updated_at' => '2015-01-20 12:24:46',\n\t\t\t\t'ons_district_code' => 'E05001680',\n\t\t\t\t'ons_district_code_old' => '00FANP',\n\t\t\t\t'name' => 'Orchard Park and Greenwood',\n\t\t\t\t'ons_la_code' => 'E06000010',\n\t\t\t\t'body_name' => 'Kingston upon Hull, City of',\n\t\t\t\t'ons_constituency_code' => 'E14000772',\n\t\t\t\t'ons_constituency_code_old' => 'C45',\n\t\t\t\t'ons_constituency_name' => 'Kingston upon Hull North',\n\t\t\t\t'male_all_ages' => '6744',\n\t\t\t\t'm0' => '137',\n\t\t\t\t'm1' => '146',\n\t\t\t\t'm2' => '139',\n\t\t\t\t'm3' => '131',\n\t\t\t\t'm4' => '153',\n\t\t\t\t'm5' => '139',\n\t\t\t\t'm6' => '131',\n\t\t\t\t'm7' => '130',\n\t\t\t\t'm8' => '123',\n\t\t\t\t'm9' => '108',\n\t\t\t\t'm10' => '115',\n\t\t\t\t'm11' => '113',\n\t\t\t\t'm12' => '120',\n\t\t\t\t'm13' => '91',\n\t\t\t\t'm14' => '103',\n\t\t\t\t'm15' => '115',\n\t\t\t\t'm16' => '112',\n\t\t\t\t'm17' => '104',\n\t\t\t\t'm18' => '124',\n\t\t\t\t'm19' => '119',\n\t\t\t\t'm20' => '89',\n\t\t\t\t'm21' => '84',\n\t\t\t\t'm22' => '114',\n\t\t\t\t'm23' => '107',\n\t\t\t\t'm24' => '107',\n\t\t\t\t'm25' => '95',\n\t\t\t\t'm26' => '107',\n\t\t\t\t'm27' => '89',\n\t\t\t\t'm28' => '87',\n\t\t\t\t'm29' => '95',\n\t\t\t\t'm30' => '72',\n\t\t\t\t'm31' => '74',\n\t\t\t\t'm32' => '65',\n\t\t\t\t'm33' => '70',\n\t\t\t\t'm34' => '75',\n\t\t\t\t'm35' => '66',\n\t\t\t\t'm36' => '86',\n\t\t\t\t'm37' => '66',\n\t\t\t\t'm38' => '72',\n\t\t\t\t'm39' => '87',\n\t\t\t\t'm40' => '77',\n\t\t\t\t'm41' => '75',\n\t\t\t\t'm42' => '88',\n\t\t\t\t'm43' => '76',\n\t\t\t\t'm44' => '73',\n\t\t\t\t'm45' => '83',\n\t\t\t\t'm46' => '78',\n\t\t\t\t'm47' => '86',\n\t\t\t\t'm48' => '79',\n\t\t\t\t'm49' => '99',\n\t\t\t\t'm50' => '86',\n\t\t\t\t'm51' => '103',\n\t\t\t\t'm52' => '69',\n\t\t\t\t'm53' => '83',\n\t\t\t\t'm54' => '60',\n\t\t\t\t'm55' => '82',\n\t\t\t\t'm56' => '64',\n\t\t\t\t'm57' => '61',\n\t\t\t\t'm58' => '62',\n\t\t\t\t'm59' => '73',\n\t\t\t\t'm60' => '54',\n\t\t\t\t'm61' => '69',\n\t\t\t\t'm62' => '59',\n\t\t\t\t'm63' => '48',\n\t\t\t\t'm64' => '50',\n\t\t\t\t'm65' => '56',\n\t\t\t\t'm66' => '64',\n\t\t\t\t'm67' => '46',\n\t\t\t\t'm68' => '42',\n\t\t\t\t'm69' => '31',\n\t\t\t\t'm70' => '35',\n\t\t\t\t'm71' => '33',\n\t\t\t\t'm72' => '33',\n\t\t\t\t'm73' => '34',\n\t\t\t\t'm74' => '39',\n\t\t\t\t'm75' => '26',\n\t\t\t\t'm76' => '39',\n\t\t\t\t'm77' => '32',\n\t\t\t\t'm78' => '28',\n\t\t\t\t'm79' => '39',\n\t\t\t\t'm80' => '28',\n\t\t\t\t'm81' => '20',\n\t\t\t\t'm82' => '23',\n\t\t\t\t'm83' => '18',\n\t\t\t\t'm84' => '14',\n\t\t\t\t'm85' => '13',\n\t\t\t\t'm86' => '9',\n\t\t\t\t'm87' => '13',\n\t\t\t\t'm88' => '11',\n\t\t\t\t'm89' => '6',\n\t\t\t\t'm90' => '15',\n\t\t\t\t'female_all_ages' => '7160',\n\t\t\t\t'f0' => '118',\n\t\t\t\t'f1' => '127',\n\t\t\t\t'f2' => '125',\n\t\t\t\t'f3' => '133',\n\t\t\t\t'f4' => '127',\n\t\t\t\t'f5' => '133',\n\t\t\t\t'f6' => '102',\n\t\t\t\t'f7' => '132',\n\t\t\t\t'f8' => '108',\n\t\t\t\t'f9' => '96',\n\t\t\t\t'f10' => '92',\n\t\t\t\t'f11' => '104',\n\t\t\t\t'f12' => '99',\n\t\t\t\t'f13' => '89',\n\t\t\t\t'f14' => '96',\n\t\t\t\t'f15' => '88',\n\t\t\t\t'f16' => '103',\n\t\t\t\t'f17' => '116',\n\t\t\t\t'f18' => '97',\n\t\t\t\t'f19' => '97',\n\t\t\t\t'f20' => '108',\n\t\t\t\t'f21' => '120',\n\t\t\t\t'f22' => '119',\n\t\t\t\t'f23' => '130',\n\t\t\t\t'f24' => '99',\n\t\t\t\t'f25' => '142',\n\t\t\t\t'f26' => '119',\n\t\t\t\t'f27' => '122',\n\t\t\t\t'f28' => '116',\n\t\t\t\t'f29' => '95',\n\t\t\t\t'f30' => '100',\n\t\t\t\t'f31' => '107',\n\t\t\t\t'f32' => '105',\n\t\t\t\t'f33' => '98',\n\t\t\t\t'f34' => '76',\n\t\t\t\t'f35' => '82',\n\t\t\t\t'f36' => '82',\n\t\t\t\t'f37' => '94',\n\t\t\t\t'f38' => '71',\n\t\t\t\t'f39' => '89',\n\t\t\t\t'f40' => '116',\n\t\t\t\t'f41' => '87',\n\t\t\t\t'f42' => '97',\n\t\t\t\t'f43' => '85',\n\t\t\t\t'f44' => '93',\n\t\t\t\t'f45' => '102',\n\t\t\t\t'f46' => '94',\n\t\t\t\t'f47' => '81',\n\t\t\t\t'f48' => '95',\n\t\t\t\t'f49' => '97',\n\t\t\t\t'f50' => '100',\n\t\t\t\t'f51' => '78',\n\t\t\t\t'f52' => '94',\n\t\t\t\t'f53' => '79',\n\t\t\t\t'f54' => '91',\n\t\t\t\t'f55' => '67',\n\t\t\t\t'f56' => '66',\n\t\t\t\t'f57' => '72',\n\t\t\t\t'f58' => '63',\n\t\t\t\t'f59' => '60',\n\t\t\t\t'f60' => '66',\n\t\t\t\t'f61' => '47',\n\t\t\t\t'f62' => '43',\n\t\t\t\t'f63' => '47',\n\t\t\t\t'f64' => '47',\n\t\t\t\t'f65' => '55',\n\t\t\t\t'f66' => '73',\n\t\t\t\t'f67' => '50',\n\t\t\t\t'f68' => '43',\n\t\t\t\t'f69' => '52',\n\t\t\t\t'f70' => '46',\n\t\t\t\t'f71' => '28',\n\t\t\t\t'f72' => '37',\n\t\t\t\t'f73' => '42',\n\t\t\t\t'f74' => '34',\n\t\t\t\t'f75' => '41',\n\t\t\t\t'f76' => '63',\n\t\t\t\t'f77' => '39',\n\t\t\t\t'f78' => '42',\n\t\t\t\t'f79' => '41',\n\t\t\t\t'f80' => '34',\n\t\t\t\t'f81' => '30',\n\t\t\t\t'f82' => '25',\n\t\t\t\t'f83' => '24',\n\t\t\t\t'f84' => '27',\n\t\t\t\t'f85' => '16',\n\t\t\t\t'f86' => '17',\n\t\t\t\t'f87' => '25',\n\t\t\t\t'f88' => '11',\n\t\t\t\t'f89' => '9',\n\t\t\t\t'f90' => '33',\n\t\t\t),\n\t\t\t17 => \n\t\t\tarray (\n\t\t\t\t'id' => '18',\n\t\t\t\t'slug' => 'pickering',\n\t\t\t\t'seats' => '3',\n\t\t\t\t'body_id' => '1',\n\t\t\t\t'created_at' => '2015-01-20 12:24:46',\n\t\t\t\t'updated_at' => '2015-01-20 12:24:46',\n\t\t\t\t'ons_district_code' => 'E05001681',\n\t\t\t\t'ons_district_code_old' => '00FANQ',\n\t\t\t\t'name' => 'Pickering',\n\t\t\t\t'ons_la_code' => 'E06000010',\n\t\t\t\t'body_name' => 'Kingston upon Hull, City of',\n\t\t\t\t'ons_constituency_code' => 'E14000773',\n\t\t\t\t'ons_constituency_code_old' => 'C46',\n\t\t\t\t'ons_constituency_name' => 'Kingston upon Hull West and Hessle',\n\t\t\t\t'male_all_ages' => '5488',\n\t\t\t\t'm0' => '85',\n\t\t\t\t'm1' => '70',\n\t\t\t\t'm2' => '69',\n\t\t\t\t'm3' => '68',\n\t\t\t\t'm4' => '64',\n\t\t\t\t'm5' => '84',\n\t\t\t\t'm6' => '45',\n\t\t\t\t'm7' => '56',\n\t\t\t\t'm8' => '63',\n\t\t\t\t'm9' => '50',\n\t\t\t\t'm10' => '61',\n\t\t\t\t'm11' => '72',\n\t\t\t\t'm12' => '47',\n\t\t\t\t'm13' => '60',\n\t\t\t\t'm14' => '62',\n\t\t\t\t'm15' => '78',\n\t\t\t\t'm16' => '71',\n\t\t\t\t'm17' => '70',\n\t\t\t\t'm18' => '66',\n\t\t\t\t'm19' => '75',\n\t\t\t\t'm20' => '63',\n\t\t\t\t'm21' => '85',\n\t\t\t\t'm22' => '79',\n\t\t\t\t'm23' => '70',\n\t\t\t\t'm24' => '73',\n\t\t\t\t'm25' => '74',\n\t\t\t\t'm26' => '67',\n\t\t\t\t'm27' => '72',\n\t\t\t\t'm28' => '73',\n\t\t\t\t'm29' => '55',\n\t\t\t\t'm30' => '74',\n\t\t\t\t'm31' => '78',\n\t\t\t\t'm32' => '73',\n\t\t\t\t'm33' => '56',\n\t\t\t\t'm34' => '60',\n\t\t\t\t'm35' => '48',\n\t\t\t\t'm36' => '56',\n\t\t\t\t'm37' => '67',\n\t\t\t\t'm38' => '59',\n\t\t\t\t'm39' => '68',\n\t\t\t\t'm40' => '61',\n\t\t\t\t'm41' => '84',\n\t\t\t\t'm42' => '79',\n\t\t\t\t'm43' => '56',\n\t\t\t\t'm44' => '81',\n\t\t\t\t'm45' => '68',\n\t\t\t\t'm46' => '87',\n\t\t\t\t'm47' => '92',\n\t\t\t\t'm48' => '73',\n\t\t\t\t'm49' => '84',\n\t\t\t\t'm50' => '82',\n\t\t\t\t'm51' => '80',\n\t\t\t\t'm52' => '96',\n\t\t\t\t'm53' => '67',\n\t\t\t\t'm54' => '74',\n\t\t\t\t'm55' => '69',\n\t\t\t\t'm56' => '71',\n\t\t\t\t'm57' => '72',\n\t\t\t\t'm58' => '63',\n\t\t\t\t'm59' => '70',\n\t\t\t\t'm60' => '70',\n\t\t\t\t'm61' => '65',\n\t\t\t\t'm62' => '64',\n\t\t\t\t'm63' => '57',\n\t\t\t\t'm64' => '56',\n\t\t\t\t'm65' => '70',\n\t\t\t\t'm66' => '79',\n\t\t\t\t'm67' => '45',\n\t\t\t\t'm68' => '50',\n\t\t\t\t'm69' => '50',\n\t\t\t\t'm70' => '56',\n\t\t\t\t'm71' => '39',\n\t\t\t\t'm72' => '37',\n\t\t\t\t'm73' => '41',\n\t\t\t\t'm74' => '44',\n\t\t\t\t'm75' => '40',\n\t\t\t\t'm76' => '40',\n\t\t\t\t'm77' => '39',\n\t\t\t\t'm78' => '43',\n\t\t\t\t'm79' => '40',\n\t\t\t\t'm80' => '44',\n\t\t\t\t'm81' => '39',\n\t\t\t\t'm82' => '37',\n\t\t\t\t'm83' => '28',\n\t\t\t\t'm84' => '28',\n\t\t\t\t'm85' => '23',\n\t\t\t\t'm86' => '21',\n\t\t\t\t'm87' => '16',\n\t\t\t\t'm88' => '12',\n\t\t\t\t'm89' => '7',\n\t\t\t\t'm90' => '33',\n\t\t\t\t'female_all_ages' => '5865',\n\t\t\t\t'f0' => '75',\n\t\t\t\t'f1' => '83',\n\t\t\t\t'f2' => '71',\n\t\t\t\t'f3' => '57',\n\t\t\t\t'f4' => '71',\n\t\t\t\t'f5' => '69',\n\t\t\t\t'f6' => '82',\n\t\t\t\t'f7' => '69',\n\t\t\t\t'f8' => '62',\n\t\t\t\t'f9' => '66',\n\t\t\t\t'f10' => '41',\n\t\t\t\t'f11' => '43',\n\t\t\t\t'f12' => '71',\n\t\t\t\t'f13' => '49',\n\t\t\t\t'f14' => '67',\n\t\t\t\t'f15' => '64',\n\t\t\t\t'f16' => '56',\n\t\t\t\t'f17' => '70',\n\t\t\t\t'f18' => '62',\n\t\t\t\t'f19' => '70',\n\t\t\t\t'f20' => '70',\n\t\t\t\t'f21' => '75',\n\t\t\t\t'f22' => '85',\n\t\t\t\t'f23' => '76',\n\t\t\t\t'f24' => '75',\n\t\t\t\t'f25' => '91',\n\t\t\t\t'f26' => '85',\n\t\t\t\t'f27' => '79',\n\t\t\t\t'f28' => '83',\n\t\t\t\t'f29' => '75',\n\t\t\t\t'f30' => '77',\n\t\t\t\t'f31' => '64',\n\t\t\t\t'f32' => '68',\n\t\t\t\t'f33' => '85',\n\t\t\t\t'f34' => '53',\n\t\t\t\t'f35' => '57',\n\t\t\t\t'f36' => '48',\n\t\t\t\t'f37' => '52',\n\t\t\t\t'f38' => '70',\n\t\t\t\t'f39' => '65',\n\t\t\t\t'f40' => '83',\n\t\t\t\t'f41' => '65',\n\t\t\t\t'f42' => '78',\n\t\t\t\t'f43' => '74',\n\t\t\t\t'f44' => '70',\n\t\t\t\t'f45' => '69',\n\t\t\t\t'f46' => '72',\n\t\t\t\t'f47' => '88',\n\t\t\t\t'f48' => '84',\n\t\t\t\t'f49' => '74',\n\t\t\t\t'f50' => '82',\n\t\t\t\t'f51' => '91',\n\t\t\t\t'f52' => '82',\n\t\t\t\t'f53' => '79',\n\t\t\t\t'f54' => '80',\n\t\t\t\t'f55' => '82',\n\t\t\t\t'f56' => '69',\n\t\t\t\t'f57' => '73',\n\t\t\t\t'f58' => '69',\n\t\t\t\t'f59' => '59',\n\t\t\t\t'f60' => '68',\n\t\t\t\t'f61' => '62',\n\t\t\t\t'f62' => '78',\n\t\t\t\t'f63' => '58',\n\t\t\t\t'f64' => '62',\n\t\t\t\t'f65' => '86',\n\t\t\t\t'f66' => '79',\n\t\t\t\t'f67' => '63',\n\t\t\t\t'f68' => '46',\n\t\t\t\t'f69' => '55',\n\t\t\t\t'f70' => '59',\n\t\t\t\t'f71' => '41',\n\t\t\t\t'f72' => '48',\n\t\t\t\t'f73' => '52',\n\t\t\t\t'f74' => '59',\n\t\t\t\t'f75' => '48',\n\t\t\t\t'f76' => '55',\n\t\t\t\t'f77' => '58',\n\t\t\t\t'f78' => '46',\n\t\t\t\t'f79' => '55',\n\t\t\t\t'f80' => '38',\n\t\t\t\t'f81' => '55',\n\t\t\t\t'f82' => '46',\n\t\t\t\t'f83' => '52',\n\t\t\t\t'f84' => '39',\n\t\t\t\t'f85' => '30',\n\t\t\t\t'f86' => '39',\n\t\t\t\t'f87' => '25',\n\t\t\t\t'f88' => '21',\n\t\t\t\t'f89' => '14',\n\t\t\t\t'f90' => '74',\n\t\t\t),\n\t\t\t18 => \n\t\t\tarray (\n\t\t\t\t'id' => '19',\n\t\t\t\t'slug' => 'st-andrews',\n\t\t\t\t'seats' => '3',\n\t\t\t\t'body_id' => '1',\n\t\t\t\t'created_at' => '2015-01-20 12:24:46',\n\t\t\t\t'updated_at' => '2015-01-20 12:24:46',\n\t\t\t\t'ons_district_code' => 'E05001682',\n\t\t\t\t'ons_district_code_old' => '00FANR',\n\t\t\t\t'name' => 'St Andrews',\n\t\t\t\t'ons_la_code' => 'E06000010',\n\t\t\t\t'body_name' => 'Kingston upon Hull, City of',\n\t\t\t\t'ons_constituency_code' => 'E14000773',\n\t\t\t\t'ons_constituency_code_old' => 'C46',\n\t\t\t\t'ons_constituency_name' => 'Kingston upon Hull West and Hessle',\n\t\t\t\t'male_all_ages' => '4161',\n\t\t\t\t'm0' => '80',\n\t\t\t\t'm1' => '64',\n\t\t\t\t'm2' => '58',\n\t\t\t\t'm3' => '56',\n\t\t\t\t'm4' => '68',\n\t\t\t\t'm5' => '54',\n\t\t\t\t'm6' => '51',\n\t\t\t\t'm7' => '50',\n\t\t\t\t'm8' => '44',\n\t\t\t\t'm9' => '51',\n\t\t\t\t'm10' => '37',\n\t\t\t\t'm11' => '35',\n\t\t\t\t'm12' => '44',\n\t\t\t\t'm13' => '39',\n\t\t\t\t'm14' => '45',\n\t\t\t\t'm15' => '28',\n\t\t\t\t'm16' => '55',\n\t\t\t\t'm17' => '56',\n\t\t\t\t'm18' => '48',\n\t\t\t\t'm19' => '66',\n\t\t\t\t'm20' => '54',\n\t\t\t\t'm21' => '50',\n\t\t\t\t'm22' => '88',\n\t\t\t\t'm23' => '72',\n\t\t\t\t'm24' => '69',\n\t\t\t\t'm25' => '73',\n\t\t\t\t'm26' => '66',\n\t\t\t\t'm27' => '92',\n\t\t\t\t'm28' => '88',\n\t\t\t\t'm29' => '77',\n\t\t\t\t'm30' => '65',\n\t\t\t\t'm31' => '82',\n\t\t\t\t'm32' => '62',\n\t\t\t\t'm33' => '75',\n\t\t\t\t'm34' => '80',\n\t\t\t\t'm35' => '68',\n\t\t\t\t'm36' => '70',\n\t\t\t\t'm37' => '61',\n\t\t\t\t'm38' => '78',\n\t\t\t\t'm39' => '69',\n\t\t\t\t'm40' => '50',\n\t\t\t\t'm41' => '57',\n\t\t\t\t'm42' => '62',\n\t\t\t\t'm43' => '57',\n\t\t\t\t'm44' => '59',\n\t\t\t\t'm45' => '57',\n\t\t\t\t'm46' => '52',\n\t\t\t\t'm47' => '59',\n\t\t\t\t'm48' => '55',\n\t\t\t\t'm49' => '65',\n\t\t\t\t'm50' => '51',\n\t\t\t\t'm51' => '36',\n\t\t\t\t'm52' => '49',\n\t\t\t\t'm53' => '49',\n\t\t\t\t'm54' => '40',\n\t\t\t\t'm55' => '40',\n\t\t\t\t'm56' => '60',\n\t\t\t\t'm57' => '43',\n\t\t\t\t'm58' => '34',\n\t\t\t\t'm59' => '54',\n\t\t\t\t'm60' => '46',\n\t\t\t\t'm61' => '56',\n\t\t\t\t'm62' => '34',\n\t\t\t\t'm63' => '33',\n\t\t\t\t'm64' => '32',\n\t\t\t\t'm65' => '32',\n\t\t\t\t'm66' => '23',\n\t\t\t\t'm67' => '39',\n\t\t\t\t'm68' => '24',\n\t\t\t\t'm69' => '31',\n\t\t\t\t'm70' => '33',\n\t\t\t\t'm71' => '27',\n\t\t\t\t'm72' => '20',\n\t\t\t\t'm73' => '23',\n\t\t\t\t'm74' => '23',\n\t\t\t\t'm75' => '21',\n\t\t\t\t'm76' => '22',\n\t\t\t\t'm77' => '15',\n\t\t\t\t'm78' => '22',\n\t\t\t\t'm79' => '12',\n\t\t\t\t'm80' => '10',\n\t\t\t\t'm81' => '10',\n\t\t\t\t'm82' => '9',\n\t\t\t\t'm83' => '13',\n\t\t\t\t'm84' => '9',\n\t\t\t\t'm85' => '9',\n\t\t\t\t'm86' => '9',\n\t\t\t\t'm87' => '5',\n\t\t\t\t'm88' => '3',\n\t\t\t\t'm89' => '2',\n\t\t\t\t'm90' => '17',\n\t\t\t\t'female_all_ages' => '3993',\n\t\t\t\t'f0' => '56',\n\t\t\t\t'f1' => '67',\n\t\t\t\t'f2' => '68',\n\t\t\t\t'f3' => '60',\n\t\t\t\t'f4' => '52',\n\t\t\t\t'f5' => '50',\n\t\t\t\t'f6' => '52',\n\t\t\t\t'f7' => '44',\n\t\t\t\t'f8' => '51',\n\t\t\t\t'f9' => '40',\n\t\t\t\t'f10' => '42',\n\t\t\t\t'f11' => '39',\n\t\t\t\t'f12' => '36',\n\t\t\t\t'f13' => '37',\n\t\t\t\t'f14' => '42',\n\t\t\t\t'f15' => '42',\n\t\t\t\t'f16' => '37',\n\t\t\t\t'f17' => '50',\n\t\t\t\t'f18' => '39',\n\t\t\t\t'f19' => '76',\n\t\t\t\t'f20' => '58',\n\t\t\t\t'f21' => '75',\n\t\t\t\t'f22' => '70',\n\t\t\t\t'f23' => '80',\n\t\t\t\t'f24' => '48',\n\t\t\t\t'f25' => '77',\n\t\t\t\t'f26' => '62',\n\t\t\t\t'f27' => '79',\n\t\t\t\t'f28' => '74',\n\t\t\t\t'f29' => '65',\n\t\t\t\t'f30' => '58',\n\t\t\t\t'f31' => '75',\n\t\t\t\t'f32' => '53',\n\t\t\t\t'f33' => '52',\n\t\t\t\t'f34' => '60',\n\t\t\t\t'f35' => '57',\n\t\t\t\t'f36' => '54',\n\t\t\t\t'f37' => '54',\n\t\t\t\t'f38' => '49',\n\t\t\t\t'f39' => '57',\n\t\t\t\t'f40' => '53',\n\t\t\t\t'f41' => '51',\n\t\t\t\t'f42' => '48',\n\t\t\t\t'f43' => '47',\n\t\t\t\t'f44' => '68',\n\t\t\t\t'f45' => '46',\n\t\t\t\t'f46' => '53',\n\t\t\t\t'f47' => '43',\n\t\t\t\t'f48' => '47',\n\t\t\t\t'f49' => '56',\n\t\t\t\t'f50' => '55',\n\t\t\t\t'f51' => '57',\n\t\t\t\t'f52' => '47',\n\t\t\t\t'f53' => '58',\n\t\t\t\t'f54' => '66',\n\t\t\t\t'f55' => '55',\n\t\t\t\t'f56' => '50',\n\t\t\t\t'f57' => '45',\n\t\t\t\t'f58' => '35',\n\t\t\t\t'f59' => '39',\n\t\t\t\t'f60' => '45',\n\t\t\t\t'f61' => '35',\n\t\t\t\t'f62' => '33',\n\t\t\t\t'f63' => '25',\n\t\t\t\t'f64' => '31',\n\t\t\t\t'f65' => '47',\n\t\t\t\t'f66' => '38',\n\t\t\t\t'f67' => '27',\n\t\t\t\t'f68' => '25',\n\t\t\t\t'f69' => '23',\n\t\t\t\t'f70' => '28',\n\t\t\t\t'f71' => '30',\n\t\t\t\t'f72' => '26',\n\t\t\t\t'f73' => '21',\n\t\t\t\t'f74' => '28',\n\t\t\t\t'f75' => '20',\n\t\t\t\t'f76' => '18',\n\t\t\t\t'f77' => '32',\n\t\t\t\t'f78' => '8',\n\t\t\t\t'f79' => '27',\n\t\t\t\t'f80' => '11',\n\t\t\t\t'f81' => '20',\n\t\t\t\t'f82' => '15',\n\t\t\t\t'f83' => '15',\n\t\t\t\t'f84' => '10',\n\t\t\t\t'f85' => '11',\n\t\t\t\t'f86' => '18',\n\t\t\t\t'f87' => '7',\n\t\t\t\t'f88' => '10',\n\t\t\t\t'f89' => '13',\n\t\t\t\t'f90' => '40',\n\t\t\t),\n\t\t\t19 => \n\t\t\tarray (\n\t\t\t\t'id' => '20',\n\t\t\t\t'slug' => 'southcoates-east',\n\t\t\t\t'seats' => '3',\n\t\t\t\t'body_id' => '1',\n\t\t\t\t'created_at' => '2015-01-20 12:24:46',\n\t\t\t\t'updated_at' => '2015-01-20 12:24:46',\n\t\t\t\t'ons_district_code' => 'E05001683',\n\t\t\t\t'ons_district_code_old' => '00FANS',\n\t\t\t\t'name' => 'Southcoates East',\n\t\t\t\t'ons_la_code' => 'E06000010',\n\t\t\t\t'body_name' => 'Kingston upon Hull, City of',\n\t\t\t\t'ons_constituency_code' => 'E14000771',\n\t\t\t\t'ons_constituency_code_old' => 'C44',\n\t\t\t\t'ons_constituency_name' => 'Kingston upon Hull East',\n\t\t\t\t'male_all_ages' => '3957',\n\t\t\t\t'm0' => '73',\n\t\t\t\t'm1' => '70',\n\t\t\t\t'm2' => '63',\n\t\t\t\t'm3' => '60',\n\t\t\t\t'm4' => '68',\n\t\t\t\t'm5' => '68',\n\t\t\t\t'm6' => '57',\n\t\t\t\t'm7' => '60',\n\t\t\t\t'm8' => '65',\n\t\t\t\t'm9' => '84',\n\t\t\t\t'm10' => '45',\n\t\t\t\t'm11' => '47',\n\t\t\t\t'm12' => '61',\n\t\t\t\t'm13' => '38',\n\t\t\t\t'm14' => '46',\n\t\t\t\t'm15' => '47',\n\t\t\t\t'm16' => '68',\n\t\t\t\t'm17' => '57',\n\t\t\t\t'm18' => '60',\n\t\t\t\t'm19' => '57',\n\t\t\t\t'm20' => '50',\n\t\t\t\t'm21' => '50',\n\t\t\t\t'm22' => '59',\n\t\t\t\t'm23' => '59',\n\t\t\t\t'm24' => '59',\n\t\t\t\t'm25' => '59',\n\t\t\t\t'm26' => '65',\n\t\t\t\t'm27' => '71',\n\t\t\t\t'm28' => '53',\n\t\t\t\t'm29' => '55',\n\t\t\t\t'm30' => '53',\n\t\t\t\t'm31' => '54',\n\t\t\t\t'm32' => '58',\n\t\t\t\t'm33' => '57',\n\t\t\t\t'm34' => '51',\n\t\t\t\t'm35' => '52',\n\t\t\t\t'm36' => '45',\n\t\t\t\t'm37' => '49',\n\t\t\t\t'm38' => '38',\n\t\t\t\t'm39' => '46',\n\t\t\t\t'm40' => '41',\n\t\t\t\t'm41' => '40',\n\t\t\t\t'm42' => '44',\n\t\t\t\t'm43' => '44',\n\t\t\t\t'm44' => '51',\n\t\t\t\t'm45' => '65',\n\t\t\t\t'm46' => '53',\n\t\t\t\t'm47' => '59',\n\t\t\t\t'm48' => '45',\n\t\t\t\t'm49' => '50',\n\t\t\t\t'm50' => '43',\n\t\t\t\t'm51' => '52',\n\t\t\t\t'm52' => '47',\n\t\t\t\t'm53' => '55',\n\t\t\t\t'm54' => '51',\n\t\t\t\t'm55' => '54',\n\t\t\t\t'm56' => '43',\n\t\t\t\t'm57' => '47',\n\t\t\t\t'm58' => '47',\n\t\t\t\t'm59' => '41',\n\t\t\t\t'm60' => '38',\n\t\t\t\t'm61' => '41',\n\t\t\t\t'm62' => '32',\n\t\t\t\t'm63' => '44',\n\t\t\t\t'm64' => '45',\n\t\t\t\t'm65' => '41',\n\t\t\t\t'm66' => '33',\n\t\t\t\t'm67' => '27',\n\t\t\t\t'm68' => '34',\n\t\t\t\t'm69' => '30',\n\t\t\t\t'm70' => '25',\n\t\t\t\t'm71' => '22',\n\t\t\t\t'm72' => '20',\n\t\t\t\t'm73' => '28',\n\t\t\t\t'm74' => '17',\n\t\t\t\t'm75' => '24',\n\t\t\t\t'm76' => '22',\n\t\t\t\t'm77' => '21',\n\t\t\t\t'm78' => '19',\n\t\t\t\t'm79' => '26',\n\t\t\t\t'm80' => '13',\n\t\t\t\t'm81' => '18',\n\t\t\t\t'm82' => '14',\n\t\t\t\t'm83' => '13',\n\t\t\t\t'm84' => '10',\n\t\t\t\t'm85' => '8',\n\t\t\t\t'm86' => '8',\n\t\t\t\t'm87' => '13',\n\t\t\t\t'm88' => '7',\n\t\t\t\t'm89' => '6',\n\t\t\t\t'm90' => '9',\n\t\t\t\t'female_all_ages' => '4337',\n\t\t\t\t'f0' => '56',\n\t\t\t\t'f1' => '68',\n\t\t\t\t'f2' => '72',\n\t\t\t\t'f3' => '74',\n\t\t\t\t'f4' => '60',\n\t\t\t\t'f5' => '72',\n\t\t\t\t'f6' => '62',\n\t\t\t\t'f7' => '68',\n\t\t\t\t'f8' => '67',\n\t\t\t\t'f9' => '65',\n\t\t\t\t'f10' => '47',\n\t\t\t\t'f11' => '57',\n\t\t\t\t'f12' => '43',\n\t\t\t\t'f13' => '49',\n\t\t\t\t'f14' => '52',\n\t\t\t\t'f15' => '65',\n\t\t\t\t'f16' => '51',\n\t\t\t\t'f17' => '65',\n\t\t\t\t'f18' => '58',\n\t\t\t\t'f19' => '55',\n\t\t\t\t'f20' => '67',\n\t\t\t\t'f21' => '69',\n\t\t\t\t'f22' => '50',\n\t\t\t\t'f23' => '61',\n\t\t\t\t'f24' => '61',\n\t\t\t\t'f25' => '72',\n\t\t\t\t'f26' => '69',\n\t\t\t\t'f27' => '74',\n\t\t\t\t'f28' => '60',\n\t\t\t\t'f29' => '58',\n\t\t\t\t'f30' => '75',\n\t\t\t\t'f31' => '62',\n\t\t\t\t'f32' => '71',\n\t\t\t\t'f33' => '48',\n\t\t\t\t'f34' => '38',\n\t\t\t\t'f35' => '46',\n\t\t\t\t'f36' => '43',\n\t\t\t\t'f37' => '48',\n\t\t\t\t'f38' => '44',\n\t\t\t\t'f39' => '50',\n\t\t\t\t'f40' => '47',\n\t\t\t\t'f41' => '52',\n\t\t\t\t'f42' => '53',\n\t\t\t\t'f43' => '57',\n\t\t\t\t'f44' => '51',\n\t\t\t\t'f45' => '50',\n\t\t\t\t'f46' => '43',\n\t\t\t\t'f47' => '70',\n\t\t\t\t'f48' => '56',\n\t\t\t\t'f49' => '64',\n\t\t\t\t'f50' => '64',\n\t\t\t\t'f51' => '63',\n\t\t\t\t'f52' => '62',\n\t\t\t\t'f53' => '62',\n\t\t\t\t'f54' => '52',\n\t\t\t\t'f55' => '56',\n\t\t\t\t'f56' => '54',\n\t\t\t\t'f57' => '43',\n\t\t\t\t'f58' => '39',\n\t\t\t\t'f59' => '46',\n\t\t\t\t'f60' => '39',\n\t\t\t\t'f61' => '40',\n\t\t\t\t'f62' => '42',\n\t\t\t\t'f63' => '43',\n\t\t\t\t'f64' => '35',\n\t\t\t\t'f65' => '37',\n\t\t\t\t'f66' => '47',\n\t\t\t\t'f67' => '45',\n\t\t\t\t'f68' => '36',\n\t\t\t\t'f69' => '31',\n\t\t\t\t'f70' => '33',\n\t\t\t\t'f71' => '25',\n\t\t\t\t'f72' => '25',\n\t\t\t\t'f73' => '31',\n\t\t\t\t'f74' => '23',\n\t\t\t\t'f75' => '21',\n\t\t\t\t'f76' => '30',\n\t\t\t\t'f77' => '34',\n\t\t\t\t'f78' => '18',\n\t\t\t\t'f79' => '23',\n\t\t\t\t'f80' => '25',\n\t\t\t\t'f81' => '21',\n\t\t\t\t'f82' => '19',\n\t\t\t\t'f83' => '19',\n\t\t\t\t'f84' => '20',\n\t\t\t\t'f85' => '25',\n\t\t\t\t'f86' => '20',\n\t\t\t\t'f87' => '15',\n\t\t\t\t'f88' => '10',\n\t\t\t\t'f89' => '9',\n\t\t\t\t'f90' => '40',\n\t\t\t),\n\t\t\t20 => \n\t\t\tarray (\n\t\t\t\t'id' => '21',\n\t\t\t\t'slug' => 'southcoates-west',\n\t\t\t\t'seats' => '3',\n\t\t\t\t'body_id' => '1',\n\t\t\t\t'created_at' => '2015-01-20 12:24:46',\n\t\t\t\t'updated_at' => '2015-01-20 12:24:46',\n\t\t\t\t'ons_district_code' => 'E05001684',\n\t\t\t\t'ons_district_code_old' => '00FANT',\n\t\t\t\t'name' => 'Southcoates West',\n\t\t\t\t'ons_la_code' => 'E06000010',\n\t\t\t\t'body_name' => 'Kingston upon Hull, City of',\n\t\t\t\t'ons_constituency_code' => 'E14000771',\n\t\t\t\t'ons_constituency_code_old' => 'C44',\n\t\t\t\t'ons_constituency_name' => 'Kingston upon Hull East',\n\t\t\t\t'male_all_ages' => '3985',\n\t\t\t\t'm0' => '65',\n\t\t\t\t'm1' => '66',\n\t\t\t\t'm2' => '59',\n\t\t\t\t'm3' => '61',\n\t\t\t\t'm4' => '49',\n\t\t\t\t'm5' => '49',\n\t\t\t\t'm6' => '47',\n\t\t\t\t'm7' => '42',\n\t\t\t\t'm8' => '34',\n\t\t\t\t'm9' => '40',\n\t\t\t\t'm10' => '45',\n\t\t\t\t'm11' => '36',\n\t\t\t\t'm12' => '41',\n\t\t\t\t'm13' => '47',\n\t\t\t\t'm14' => '40',\n\t\t\t\t'm15' => '41',\n\t\t\t\t'm16' => '28',\n\t\t\t\t'm17' => '36',\n\t\t\t\t'm18' => '37',\n\t\t\t\t'm19' => '36',\n\t\t\t\t'm20' => '53',\n\t\t\t\t'm21' => '58',\n\t\t\t\t'm22' => '74',\n\t\t\t\t'm23' => '62',\n\t\t\t\t'm24' => '61',\n\t\t\t\t'm25' => '72',\n\t\t\t\t'm26' => '83',\n\t\t\t\t'm27' => '73',\n\t\t\t\t'm28' => '80',\n\t\t\t\t'm29' => '66',\n\t\t\t\t'm30' => '68',\n\t\t\t\t'm31' => '53',\n\t\t\t\t'm32' => '59',\n\t\t\t\t'm33' => '78',\n\t\t\t\t'm34' => '72',\n\t\t\t\t'm35' => '44',\n\t\t\t\t'm36' => '50',\n\t\t\t\t'm37' => '45',\n\t\t\t\t'm38' => '58',\n\t\t\t\t'm39' => '54',\n\t\t\t\t'm40' => '58',\n\t\t\t\t'm41' => '67',\n\t\t\t\t'm42' => '55',\n\t\t\t\t'm43' => '49',\n\t\t\t\t'm44' => '50',\n\t\t\t\t'm45' => '43',\n\t\t\t\t'm46' => '69',\n\t\t\t\t'm47' => '60',\n\t\t\t\t'm48' => '56',\n\t\t\t\t'm49' => '60',\n\t\t\t\t'm50' => '75',\n\t\t\t\t'm51' => '66',\n\t\t\t\t'm52' => '50',\n\t\t\t\t'm53' => '49',\n\t\t\t\t'm54' => '52',\n\t\t\t\t'm55' => '57',\n\t\t\t\t'm56' => '57',\n\t\t\t\t'm57' => '40',\n\t\t\t\t'm58' => '50',\n\t\t\t\t'm59' => '51',\n\t\t\t\t'm60' => '34',\n\t\t\t\t'm61' => '26',\n\t\t\t\t'm62' => '39',\n\t\t\t\t'm63' => '41',\n\t\t\t\t'm64' => '48',\n\t\t\t\t'm65' => '38',\n\t\t\t\t'm66' => '56',\n\t\t\t\t'm67' => '24',\n\t\t\t\t'm68' => '30',\n\t\t\t\t'm69' => '25',\n\t\t\t\t'm70' => '33',\n\t\t\t\t'm71' => '29',\n\t\t\t\t'm72' => '24',\n\t\t\t\t'm73' => '25',\n\t\t\t\t'm74' => '23',\n\t\t\t\t'm75' => '24',\n\t\t\t\t'm76' => '23',\n\t\t\t\t'm77' => '26',\n\t\t\t\t'm78' => '19',\n\t\t\t\t'm79' => '21',\n\t\t\t\t'm80' => '10',\n\t\t\t\t'm81' => '12',\n\t\t\t\t'm82' => '13',\n\t\t\t\t'm83' => '14',\n\t\t\t\t'm84' => '16',\n\t\t\t\t'm85' => '4',\n\t\t\t\t'm86' => '5',\n\t\t\t\t'm87' => '4',\n\t\t\t\t'm88' => '5',\n\t\t\t\t'm89' => '4',\n\t\t\t\t'm90' => '14',\n\t\t\t\t'female_all_ages' => '3882',\n\t\t\t\t'f0' => '61',\n\t\t\t\t'f1' => '75',\n\t\t\t\t'f2' => '54',\n\t\t\t\t'f3' => '51',\n\t\t\t\t'f4' => '51',\n\t\t\t\t'f5' => '52',\n\t\t\t\t'f6' => '42',\n\t\t\t\t'f7' => '30',\n\t\t\t\t'f8' => '34',\n\t\t\t\t'f9' => '29',\n\t\t\t\t'f10' => '32',\n\t\t\t\t'f11' => '38',\n\t\t\t\t'f12' => '34',\n\t\t\t\t'f13' => '32',\n\t\t\t\t'f14' => '28',\n\t\t\t\t'f15' => '43',\n\t\t\t\t'f16' => '34',\n\t\t\t\t'f17' => '43',\n\t\t\t\t'f18' => '48',\n\t\t\t\t'f19' => '51',\n\t\t\t\t'f20' => '57',\n\t\t\t\t'f21' => '65',\n\t\t\t\t'f22' => '76',\n\t\t\t\t'f23' => '72',\n\t\t\t\t'f24' => '65',\n\t\t\t\t'f25' => '65',\n\t\t\t\t'f26' => '65',\n\t\t\t\t'f27' => '72',\n\t\t\t\t'f28' => '60',\n\t\t\t\t'f29' => '66',\n\t\t\t\t'f30' => '60',\n\t\t\t\t'f31' => '66',\n\t\t\t\t'f32' => '52',\n\t\t\t\t'f33' => '44',\n\t\t\t\t'f34' => '46',\n\t\t\t\t'f35' => '48',\n\t\t\t\t'f36' => '47',\n\t\t\t\t'f37' => '42',\n\t\t\t\t'f38' => '48',\n\t\t\t\t'f39' => '62',\n\t\t\t\t'f40' => '49',\n\t\t\t\t'f41' => '41',\n\t\t\t\t'f42' => '41',\n\t\t\t\t'f43' => '49',\n\t\t\t\t'f44' => '61',\n\t\t\t\t'f45' => '55',\n\t\t\t\t'f46' => '51',\n\t\t\t\t'f47' => '45',\n\t\t\t\t'f48' => '56',\n\t\t\t\t'f49' => '66',\n\t\t\t\t'f50' => '58',\n\t\t\t\t'f51' => '56',\n\t\t\t\t'f52' => '64',\n\t\t\t\t'f53' => '63',\n\t\t\t\t'f54' => '44',\n\t\t\t\t'f55' => '41',\n\t\t\t\t'f56' => '39',\n\t\t\t\t'f57' => '48',\n\t\t\t\t'f58' => '39',\n\t\t\t\t'f59' => '41',\n\t\t\t\t'f60' => '37',\n\t\t\t\t'f61' => '29',\n\t\t\t\t'f62' => '42',\n\t\t\t\t'f63' => '35',\n\t\t\t\t'f64' => '37',\n\t\t\t\t'f65' => '38',\n\t\t\t\t'f66' => '53',\n\t\t\t\t'f67' => '32',\n\t\t\t\t'f68' => '30',\n\t\t\t\t'f69' => '39',\n\t\t\t\t'f70' => '33',\n\t\t\t\t'f71' => '30',\n\t\t\t\t'f72' => '30',\n\t\t\t\t'f73' => '15',\n\t\t\t\t'f74' => '25',\n\t\t\t\t'f75' => '23',\n\t\t\t\t'f76' => '26',\n\t\t\t\t'f77' => '27',\n\t\t\t\t'f78' => '24',\n\t\t\t\t'f79' => '15',\n\t\t\t\t'f80' => '24',\n\t\t\t\t'f81' => '26',\n\t\t\t\t'f82' => '22',\n\t\t\t\t'f83' => '14',\n\t\t\t\t'f84' => '14',\n\t\t\t\t'f85' => '13',\n\t\t\t\t'f86' => '17',\n\t\t\t\t'f87' => '7',\n\t\t\t\t'f88' => '16',\n\t\t\t\t'f89' => '12',\n\t\t\t\t'f90' => '50',\n\t\t\t),\n\t\t\t21 => \n\t\t\tarray (\n\t\t\t\t'id' => '22',\n\t\t\t\t'slug' => 'sutton',\n\t\t\t\t'seats' => '3',\n\t\t\t\t'body_id' => '1',\n\t\t\t\t'created_at' => '2015-01-20 12:24:46',\n\t\t\t\t'updated_at' => '2015-01-20 12:24:46',\n\t\t\t\t'ons_district_code' => 'E05001685',\n\t\t\t\t'ons_district_code_old' => '00FANU',\n\t\t\t\t'name' => 'Sutton',\n\t\t\t\t'ons_la_code' => 'E06000010',\n\t\t\t\t'body_name' => 'Kingston upon Hull, City of',\n\t\t\t\t'ons_constituency_code' => 'E14000771',\n\t\t\t\t'ons_constituency_code_old' => 'C44',\n\t\t\t\t'ons_constituency_name' => 'Kingston upon Hull East',\n\t\t\t\t'male_all_ages' => '6130',\n\t\t\t\t'm0' => '82',\n\t\t\t\t'm1' => '80',\n\t\t\t\t'm2' => '83',\n\t\t\t\t'm3' => '74',\n\t\t\t\t'm4' => '80',\n\t\t\t\t'm5' => '80',\n\t\t\t\t'm6' => '78',\n\t\t\t\t'm7' => '84',\n\t\t\t\t'm8' => '68',\n\t\t\t\t'm9' => '69',\n\t\t\t\t'm10' => '70',\n\t\t\t\t'm11' => '75',\n\t\t\t\t'm12' => '71',\n\t\t\t\t'm13' => '50',\n\t\t\t\t'm14' => '82',\n\t\t\t\t'm15' => '81',\n\t\t\t\t'm16' => '69',\n\t\t\t\t'm17' => '74',\n\t\t\t\t'm18' => '77',\n\t\t\t\t'm19' => '91',\n\t\t\t\t'm20' => '85',\n\t\t\t\t'm21' => '91',\n\t\t\t\t'm22' => '94',\n\t\t\t\t'm23' => '76',\n\t\t\t\t'm24' => '91',\n\t\t\t\t'm25' => '83',\n\t\t\t\t'm26' => '76',\n\t\t\t\t'm27' => '69',\n\t\t\t\t'm28' => '82',\n\t\t\t\t'm29' => '82',\n\t\t\t\t'm30' => '75',\n\t\t\t\t'm31' => '78',\n\t\t\t\t'm32' => '70',\n\t\t\t\t'm33' => '71',\n\t\t\t\t'm34' => '76',\n\t\t\t\t'm35' => '63',\n\t\t\t\t'm36' => '64',\n\t\t\t\t'm37' => '86',\n\t\t\t\t'm38' => '76',\n\t\t\t\t'm39' => '70',\n\t\t\t\t'm40' => '83',\n\t\t\t\t'm41' => '84',\n\t\t\t\t'm42' => '97',\n\t\t\t\t'm43' => '81',\n\t\t\t\t'm44' => '86',\n\t\t\t\t'm45' => '81',\n\t\t\t\t'm46' => '83',\n\t\t\t\t'm47' => '78',\n\t\t\t\t'm48' => '85',\n\t\t\t\t'm49' => '69',\n\t\t\t\t'm50' => '88',\n\t\t\t\t'm51' => '77',\n\t\t\t\t'm52' => '83',\n\t\t\t\t'm53' => '73',\n\t\t\t\t'm54' => '82',\n\t\t\t\t'm55' => '69',\n\t\t\t\t'm56' => '87',\n\t\t\t\t'm57' => '83',\n\t\t\t\t'm58' => '91',\n\t\t\t\t'm59' => '91',\n\t\t\t\t'm60' => '79',\n\t\t\t\t'm61' => '91',\n\t\t\t\t'm62' => '85',\n\t\t\t\t'm63' => '92',\n\t\t\t\t'm64' => '82',\n\t\t\t\t'm65' => '100',\n\t\t\t\t'm66' => '89',\n\t\t\t\t'm67' => '75',\n\t\t\t\t'm68' => '60',\n\t\t\t\t'm69' => '61',\n\t\t\t\t'm70' => '43',\n\t\t\t\t'm71' => '46',\n\t\t\t\t'm72' => '40',\n\t\t\t\t'm73' => '48',\n\t\t\t\t'm74' => '45',\n\t\t\t\t'm75' => '54',\n\t\t\t\t'm76' => '39',\n\t\t\t\t'm77' => '40',\n\t\t\t\t'm78' => '41',\n\t\t\t\t'm79' => '40',\n\t\t\t\t'm80' => '24',\n\t\t\t\t'm81' => '19',\n\t\t\t\t'm82' => '15',\n\t\t\t\t'm83' => '16',\n\t\t\t\t'm84' => '20',\n\t\t\t\t'm85' => '12',\n\t\t\t\t'm86' => '6',\n\t\t\t\t'm87' => '11',\n\t\t\t\t'm88' => '7',\n\t\t\t\t'm89' => '5',\n\t\t\t\t'm90' => '18',\n\t\t\t\t'female_all_ages' => '6344',\n\t\t\t\t'f0' => '78',\n\t\t\t\t'f1' => '87',\n\t\t\t\t'f2' => '69',\n\t\t\t\t'f3' => '82',\n\t\t\t\t'f4' => '61',\n\t\t\t\t'f5' => '78',\n\t\t\t\t'f6' => '61',\n\t\t\t\t'f7' => '77',\n\t\t\t\t'f8' => '61',\n\t\t\t\t'f9' => '61',\n\t\t\t\t'f10' => '50',\n\t\t\t\t'f11' => '51',\n\t\t\t\t'f12' => '58',\n\t\t\t\t'f13' => '86',\n\t\t\t\t'f14' => '73',\n\t\t\t\t'f15' => '62',\n\t\t\t\t'f16' => '64',\n\t\t\t\t'f17' => '87',\n\t\t\t\t'f18' => '66',\n\t\t\t\t'f19' => '69',\n\t\t\t\t'f20' => '80',\n\t\t\t\t'f21' => '72',\n\t\t\t\t'f22' => '97',\n\t\t\t\t'f23' => '72',\n\t\t\t\t'f24' => '72',\n\t\t\t\t'f25' => '104',\n\t\t\t\t'f26' => '95',\n\t\t\t\t'f27' => '86',\n\t\t\t\t'f28' => '84',\n\t\t\t\t'f29' => '84',\n\t\t\t\t'f30' => '75',\n\t\t\t\t'f31' => '70',\n\t\t\t\t'f32' => '83',\n\t\t\t\t'f33' => '76',\n\t\t\t\t'f34' => '70',\n\t\t\t\t'f35' => '63',\n\t\t\t\t'f36' => '73',\n\t\t\t\t'f37' => '70',\n\t\t\t\t'f38' => '81',\n\t\t\t\t'f39' => '78',\n\t\t\t\t'f40' => '99',\n\t\t\t\t'f41' => '83',\n\t\t\t\t'f42' => '99',\n\t\t\t\t'f43' => '71',\n\t\t\t\t'f44' => '82',\n\t\t\t\t'f45' => '76',\n\t\t\t\t'f46' => '88',\n\t\t\t\t'f47' => '81',\n\t\t\t\t'f48' => '103',\n\t\t\t\t'f49' => '107',\n\t\t\t\t'f50' => '80',\n\t\t\t\t'f51' => '93',\n\t\t\t\t'f52' => '105',\n\t\t\t\t'f53' => '94',\n\t\t\t\t'f54' => '67',\n\t\t\t\t'f55' => '98',\n\t\t\t\t'f56' => '88',\n\t\t\t\t'f57' => '79',\n\t\t\t\t'f58' => '97',\n\t\t\t\t'f59' => '98',\n\t\t\t\t'f60' => '79',\n\t\t\t\t'f61' => '95',\n\t\t\t\t'f62' => '83',\n\t\t\t\t'f63' => '116',\n\t\t\t\t'f64' => '95',\n\t\t\t\t'f65' => '91',\n\t\t\t\t'f66' => '99',\n\t\t\t\t'f67' => '52',\n\t\t\t\t'f68' => '68',\n\t\t\t\t'f69' => '59',\n\t\t\t\t'f70' => '48',\n\t\t\t\t'f71' => '56',\n\t\t\t\t'f72' => '52',\n\t\t\t\t'f73' => '48',\n\t\t\t\t'f74' => '58',\n\t\t\t\t'f75' => '57',\n\t\t\t\t'f76' => '40',\n\t\t\t\t'f77' => '45',\n\t\t\t\t'f78' => '45',\n\t\t\t\t'f79' => '23',\n\t\t\t\t'f80' => '39',\n\t\t\t\t'f81' => '28',\n\t\t\t\t'f82' => '31',\n\t\t\t\t'f83' => '39',\n\t\t\t\t'f84' => '28',\n\t\t\t\t'f85' => '14',\n\t\t\t\t'f86' => '16',\n\t\t\t\t'f87' => '15',\n\t\t\t\t'f88' => '14',\n\t\t\t\t'f89' => '11',\n\t\t\t\t'f90' => '46',\n\t\t\t),\n\t\t\t22 => \n\t\t\tarray (\n\t\t\t\t'id' => '23',\n\t\t\t\t'slug' => 'university',\n\t\t\t\t'seats' => '3',\n\t\t\t\t'body_id' => '1',\n\t\t\t\t'created_at' => '2015-01-20 12:24:46',\n\t\t\t\t'updated_at' => '2015-01-20 12:24:46',\n\t\t\t\t'ons_district_code' => 'E05001686',\n\t\t\t\t'ons_district_code_old' => '00FANW',\n\t\t\t\t'name' => 'University',\n\t\t\t\t'ons_la_code' => 'E06000010',\n\t\t\t\t'body_name' => 'Kingston upon Hull, City of',\n\t\t\t\t'ons_constituency_code' => 'E14000772',\n\t\t\t\t'ons_constituency_code_old' => 'C45',\n\t\t\t\t'ons_constituency_name' => 'Kingston upon Hull North',\n\t\t\t\t'male_all_ages' => '5051',\n\t\t\t\t'm0' => '64',\n\t\t\t\t'm1' => '59',\n\t\t\t\t'm2' => '79',\n\t\t\t\t'm3' => '74',\n\t\t\t\t'm4' => '80',\n\t\t\t\t'm5' => '60',\n\t\t\t\t'm6' => '65',\n\t\t\t\t'm7' => '54',\n\t\t\t\t'm8' => '62',\n\t\t\t\t'm9' => '53',\n\t\t\t\t'm10' => '53',\n\t\t\t\t'm11' => '47',\n\t\t\t\t'm12' => '63',\n\t\t\t\t'm13' => '50',\n\t\t\t\t'm14' => '61',\n\t\t\t\t'm15' => '62',\n\t\t\t\t'm16' => '61',\n\t\t\t\t'm17' => '54',\n\t\t\t\t'm18' => '76',\n\t\t\t\t'm19' => '166',\n\t\t\t\t'm20' => '190',\n\t\t\t\t'm21' => '211',\n\t\t\t\t'm22' => '199',\n\t\t\t\t'm23' => '193',\n\t\t\t\t'm24' => '168',\n\t\t\t\t'm25' => '100',\n\t\t\t\t'm26' => '100',\n\t\t\t\t'm27' => '77',\n\t\t\t\t'm28' => '81',\n\t\t\t\t'm29' => '73',\n\t\t\t\t'm30' => '59',\n\t\t\t\t'm31' => '67',\n\t\t\t\t'm32' => '63',\n\t\t\t\t'm33' => '52',\n\t\t\t\t'm34' => '56',\n\t\t\t\t'm35' => '41',\n\t\t\t\t'm36' => '46',\n\t\t\t\t'm37' => '48',\n\t\t\t\t'm38' => '57',\n\t\t\t\t'm39' => '52',\n\t\t\t\t'm40' => '51',\n\t\t\t\t'm41' => '57',\n\t\t\t\t'm42' => '42',\n\t\t\t\t'm43' => '48',\n\t\t\t\t'm44' => '47',\n\t\t\t\t'm45' => '49',\n\t\t\t\t'm46' => '63',\n\t\t\t\t'm47' => '55',\n\t\t\t\t'm48' => '65',\n\t\t\t\t'm49' => '47',\n\t\t\t\t'm50' => '57',\n\t\t\t\t'm51' => '62',\n\t\t\t\t'm52' => '45',\n\t\t\t\t'm53' => '58',\n\t\t\t\t'm54' => '43',\n\t\t\t\t'm55' => '46',\n\t\t\t\t'm56' => '39',\n\t\t\t\t'm57' => '48',\n\t\t\t\t'm58' => '39',\n\t\t\t\t'm59' => '56',\n\t\t\t\t'm60' => '49',\n\t\t\t\t'm61' => '38',\n\t\t\t\t'm62' => '30',\n\t\t\t\t'm63' => '37',\n\t\t\t\t'm64' => '35',\n\t\t\t\t'm65' => '47',\n\t\t\t\t'm66' => '49',\n\t\t\t\t'm67' => '40',\n\t\t\t\t'm68' => '27',\n\t\t\t\t'm69' => '27',\n\t\t\t\t'm70' => '23',\n\t\t\t\t'm71' => '32',\n\t\t\t\t'm72' => '20',\n\t\t\t\t'm73' => '32',\n\t\t\t\t'm74' => '28',\n\t\t\t\t'm75' => '25',\n\t\t\t\t'm76' => '29',\n\t\t\t\t'm77' => '25',\n\t\t\t\t'm78' => '18',\n\t\t\t\t'm79' => '26',\n\t\t\t\t'm80' => '16',\n\t\t\t\t'm81' => '17',\n\t\t\t\t'm82' => '12',\n\t\t\t\t'm83' => '14',\n\t\t\t\t'm84' => '10',\n\t\t\t\t'm85' => '9',\n\t\t\t\t'm86' => '9',\n\t\t\t\t'm87' => '10',\n\t\t\t\t'm88' => '5',\n\t\t\t\t'm89' => '3',\n\t\t\t\t'm90' => '16',\n\t\t\t\t'female_all_ages' => '5178',\n\t\t\t\t'f0' => '61',\n\t\t\t\t'f1' => '72',\n\t\t\t\t'f2' => '53',\n\t\t\t\t'f3' => '52',\n\t\t\t\t'f4' => '63',\n\t\t\t\t'f5' => '57',\n\t\t\t\t'f6' => '60',\n\t\t\t\t'f7' => '45',\n\t\t\t\t'f8' => '45',\n\t\t\t\t'f9' => '56',\n\t\t\t\t'f10' => '52',\n\t\t\t\t'f11' => '51',\n\t\t\t\t'f12' => '44',\n\t\t\t\t'f13' => '42',\n\t\t\t\t'f14' => '45',\n\t\t\t\t'f15' => '49',\n\t\t\t\t'f16' => '62',\n\t\t\t\t'f17' => '59',\n\t\t\t\t'f18' => '82',\n\t\t\t\t'f19' => '199',\n\t\t\t\t'f20' => '193',\n\t\t\t\t'f21' => '192',\n\t\t\t\t'f22' => '206',\n\t\t\t\t'f23' => '195',\n\t\t\t\t'f24' => '136',\n\t\t\t\t'f25' => '110',\n\t\t\t\t'f26' => '87',\n\t\t\t\t'f27' => '90',\n\t\t\t\t'f28' => '98',\n\t\t\t\t'f29' => '73',\n\t\t\t\t'f30' => '81',\n\t\t\t\t'f31' => '71',\n\t\t\t\t'f32' => '57',\n\t\t\t\t'f33' => '49',\n\t\t\t\t'f34' => '45',\n\t\t\t\t'f35' => '60',\n\t\t\t\t'f36' => '50',\n\t\t\t\t'f37' => '51',\n\t\t\t\t'f38' => '57',\n\t\t\t\t'f39' => '49',\n\t\t\t\t'f40' => '54',\n\t\t\t\t'f41' => '54',\n\t\t\t\t'f42' => '49',\n\t\t\t\t'f43' => '55',\n\t\t\t\t'f44' => '64',\n\t\t\t\t'f45' => '53',\n\t\t\t\t'f46' => '63',\n\t\t\t\t'f47' => '59',\n\t\t\t\t'f48' => '47',\n\t\t\t\t'f49' => '52',\n\t\t\t\t'f50' => '50',\n\t\t\t\t'f51' => '60',\n\t\t\t\t'f52' => '68',\n\t\t\t\t'f53' => '50',\n\t\t\t\t'f54' => '33',\n\t\t\t\t'f55' => '55',\n\t\t\t\t'f56' => '39',\n\t\t\t\t'f57' => '48',\n\t\t\t\t'f58' => '42',\n\t\t\t\t'f59' => '45',\n\t\t\t\t'f60' => '35',\n\t\t\t\t'f61' => '38',\n\t\t\t\t'f62' => '43',\n\t\t\t\t'f63' => '36',\n\t\t\t\t'f64' => '39',\n\t\t\t\t'f65' => '44',\n\t\t\t\t'f66' => '55',\n\t\t\t\t'f67' => '34',\n\t\t\t\t'f68' => '34',\n\t\t\t\t'f69' => '38',\n\t\t\t\t'f70' => '24',\n\t\t\t\t'f71' => '29',\n\t\t\t\t'f72' => '32',\n\t\t\t\t'f73' => '36',\n\t\t\t\t'f74' => '39',\n\t\t\t\t'f75' => '37',\n\t\t\t\t'f76' => '25',\n\t\t\t\t'f77' => '31',\n\t\t\t\t'f78' => '31',\n\t\t\t\t'f79' => '42',\n\t\t\t\t'f80' => '27',\n\t\t\t\t'f81' => '26',\n\t\t\t\t'f82' => '32',\n\t\t\t\t'f83' => '19',\n\t\t\t\t'f84' => '24',\n\t\t\t\t'f85' => '19',\n\t\t\t\t'f86' => '14',\n\t\t\t\t'f87' => '10',\n\t\t\t\t'f88' => '10',\n\t\t\t\t'f89' => '11',\n\t\t\t\t'f90' => '25',\n\t\t\t),\n\t\t\t23 => \n\t\t\tarray (\n\t\t\t\t'id' => '24',\n\t\t\t\t'slug' => 'beverley-rural',\n\t\t\t\t'seats' => '3',\n\t\t\t\t'body_id' => '2',\n\t\t\t\t'created_at' => '2015-01-20 12:24:46',\n\t\t\t\t'updated_at' => '2015-01-20 12:24:46',\n\t\t\t\t'ons_district_code' => 'E05001687',\n\t\t\t\t'ons_district_code_old' => '00FBND',\n\t\t\t\t'name' => 'Beverley Rural',\n\t\t\t\t'ons_la_code' => 'E06000011',\n\t\t\t\t'body_name' => 'East Riding of Yorkshire',\n\t\t\t\t'ons_constituency_code' => 'E14000556',\n\t\t\t\t'ons_constituency_code_old' => 'A27',\n\t\t\t\t'ons_constituency_name' => 'Beverley and Holderness',\n\t\t\t\t'male_all_ages' => '7147',\n\t\t\t\t'm0' => '49',\n\t\t\t\t'm1' => '67',\n\t\t\t\t'm2' => '55',\n\t\t\t\t'm3' => '70',\n\t\t\t\t'm4' => '63',\n\t\t\t\t'm5' => '69',\n\t\t\t\t'm6' => '87',\n\t\t\t\t'm7' => '80',\n\t\t\t\t'm8' => '69',\n\t\t\t\t'm9' => '79',\n\t\t\t\t'm10' => '91',\n\t\t\t\t'm11' => '71',\n\t\t\t\t'm12' => '83',\n\t\t\t\t'm13' => '94',\n\t\t\t\t'm14' => '103',\n\t\t\t\t'm15' => '83',\n\t\t\t\t'm16' => '91',\n\t\t\t\t'm17' => '110',\n\t\t\t\t'm18' => '123',\n\t\t\t\t'm19' => '135',\n\t\t\t\t'm20' => '89',\n\t\t\t\t'm21' => '70',\n\t\t\t\t'm22' => '77',\n\t\t\t\t'm23' => '68',\n\t\t\t\t'm24' => '50',\n\t\t\t\t'm25' => '74',\n\t\t\t\t'm26' => '47',\n\t\t\t\t'm27' => '47',\n\t\t\t\t'm28' => '43',\n\t\t\t\t'm29' => '49',\n\t\t\t\t'm30' => '51',\n\t\t\t\t'm31' => '60',\n\t\t\t\t'm32' => '62',\n\t\t\t\t'm33' => '63',\n\t\t\t\t'm34' => '60',\n\t\t\t\t'm35' => '57',\n\t\t\t\t'm36' => '62',\n\t\t\t\t'm37' => '59',\n\t\t\t\t'm38' => '72',\n\t\t\t\t'm39' => '71',\n\t\t\t\t'm40' => '95',\n\t\t\t\t'm41' => '79',\n\t\t\t\t'm42' => '103',\n\t\t\t\t'm43' => '106',\n\t\t\t\t'm44' => '116',\n\t\t\t\t'm45' => '127',\n\t\t\t\t'm46' => '121',\n\t\t\t\t'm47' => '101',\n\t\t\t\t'm48' => '110',\n\t\t\t\t'm49' => '138',\n\t\t\t\t'm50' => '99',\n\t\t\t\t'm51' => '119',\n\t\t\t\t'm52' => '124',\n\t\t\t\t'm53' => '128',\n\t\t\t\t'm54' => '111',\n\t\t\t\t'm55' => '99',\n\t\t\t\t'm56' => '104',\n\t\t\t\t'm57' => '110',\n\t\t\t\t'm58' => '101',\n\t\t\t\t'm59' => '102',\n\t\t\t\t'm60' => '104',\n\t\t\t\t'm61' => '84',\n\t\t\t\t'm62' => '105',\n\t\t\t\t'm63' => '111',\n\t\t\t\t'm64' => '121',\n\t\t\t\t'm65' => '121',\n\t\t\t\t'm66' => '129',\n\t\t\t\t'm67' => '103',\n\t\t\t\t'm68' => '92',\n\t\t\t\t'm69' => '108',\n\t\t\t\t'm70' => '84',\n\t\t\t\t'm71' => '76',\n\t\t\t\t'm72' => '74',\n\t\t\t\t'm73' => '93',\n\t\t\t\t'm74' => '71',\n\t\t\t\t'm75' => '64',\n\t\t\t\t'm76' => '69',\n\t\t\t\t'm77' => '62',\n\t\t\t\t'm78' => '54',\n\t\t\t\t'm79' => '55',\n\t\t\t\t'm80' => '37',\n\t\t\t\t'm81' => '34',\n\t\t\t\t'm82' => '35',\n\t\t\t\t'm83' => '26',\n\t\t\t\t'm84' => '25',\n\t\t\t\t'm85' => '22',\n\t\t\t\t'm86' => '21',\n\t\t\t\t'm87' => '14',\n\t\t\t\t'm88' => '18',\n\t\t\t\t'm89' => '9',\n\t\t\t\t'm90' => '30',\n\t\t\t\t'female_all_ages' => '7335',\n\t\t\t\t'f0' => '49',\n\t\t\t\t'f1' => '64',\n\t\t\t\t'f2' => '62',\n\t\t\t\t'f3' => '65',\n\t\t\t\t'f4' => '65',\n\t\t\t\t'f5' => '62',\n\t\t\t\t'f6' => '88',\n\t\t\t\t'f7' => '86',\n\t\t\t\t'f8' => '90',\n\t\t\t\t'f9' => '85',\n\t\t\t\t'f10' => '87',\n\t\t\t\t'f11' => '78',\n\t\t\t\t'f12' => '75',\n\t\t\t\t'f13' => '75',\n\t\t\t\t'f14' => '76',\n\t\t\t\t'f15' => '86',\n\t\t\t\t'f16' => '91',\n\t\t\t\t'f17' => '114',\n\t\t\t\t'f18' => '123',\n\t\t\t\t'f19' => '102',\n\t\t\t\t'f20' => '68',\n\t\t\t\t'f21' => '58',\n\t\t\t\t'f22' => '52',\n\t\t\t\t'f23' => '49',\n\t\t\t\t'f24' => '46',\n\t\t\t\t'f25' => '48',\n\t\t\t\t'f26' => '46',\n\t\t\t\t'f27' => '39',\n\t\t\t\t'f28' => '44',\n\t\t\t\t'f29' => '55',\n\t\t\t\t'f30' => '59',\n\t\t\t\t'f31' => '59',\n\t\t\t\t'f32' => '68',\n\t\t\t\t'f33' => '73',\n\t\t\t\t'f34' => '87',\n\t\t\t\t'f35' => '69',\n\t\t\t\t'f36' => '63',\n\t\t\t\t'f37' => '71',\n\t\t\t\t'f38' => '79',\n\t\t\t\t'f39' => '98',\n\t\t\t\t'f40' => '98',\n\t\t\t\t'f41' => '102',\n\t\t\t\t'f42' => '113',\n\t\t\t\t'f43' => '113',\n\t\t\t\t'f44' => '122',\n\t\t\t\t'f45' => '136',\n\t\t\t\t'f46' => '106',\n\t\t\t\t'f47' => '141',\n\t\t\t\t'f48' => '128',\n\t\t\t\t'f49' => '143',\n\t\t\t\t'f50' => '136',\n\t\t\t\t'f51' => '130',\n\t\t\t\t'f52' => '107',\n\t\t\t\t'f53' => '104',\n\t\t\t\t'f54' => '103',\n\t\t\t\t'f55' => '108',\n\t\t\t\t'f56' => '96',\n\t\t\t\t'f57' => '114',\n\t\t\t\t'f58' => '106',\n\t\t\t\t'f59' => '99',\n\t\t\t\t'f60' => '101',\n\t\t\t\t'f61' => '117',\n\t\t\t\t'f62' => '104',\n\t\t\t\t'f63' => '128',\n\t\t\t\t'f64' => '124',\n\t\t\t\t'f65' => '143',\n\t\t\t\t'f66' => '136',\n\t\t\t\t'f67' => '105',\n\t\t\t\t'f68' => '93',\n\t\t\t\t'f69' => '100',\n\t\t\t\t'f70' => '83',\n\t\t\t\t'f71' => '89',\n\t\t\t\t'f72' => '72',\n\t\t\t\t'f73' => '51',\n\t\t\t\t'f74' => '55',\n\t\t\t\t'f75' => '76',\n\t\t\t\t'f76' => '64',\n\t\t\t\t'f77' => '59',\n\t\t\t\t'f78' => '48',\n\t\t\t\t'f79' => '67',\n\t\t\t\t'f80' => '38',\n\t\t\t\t'f81' => '28',\n\t\t\t\t'f82' => '44',\n\t\t\t\t'f83' => '39',\n\t\t\t\t'f84' => '26',\n\t\t\t\t'f85' => '21',\n\t\t\t\t'f86' => '23',\n\t\t\t\t'f87' => '24',\n\t\t\t\t'f88' => '20',\n\t\t\t\t'f89' => '17',\n\t\t\t\t'f90' => '81',\n\t\t\t),\n\t\t\t24 => \n\t\t\tarray (\n\t\t\t\t'id' => '25',\n\t\t\t\t'slug' => 'bridlington-central-and-old-town',\n\t\t\t\t'seats' => '3',\n\t\t\t\t'body_id' => '2',\n\t\t\t\t'created_at' => '2015-01-20 12:24:46',\n\t\t\t\t'updated_at' => '2015-01-20 12:24:46',\n\t\t\t\t'ons_district_code' => 'E05001688',\n\t\t\t\t'ons_district_code_old' => '00FBNE',\n\t\t\t\t'name' => 'Bridlington Central and Old Town',\n\t\t\t\t'ons_la_code' => 'E06000011',\n\t\t\t\t'body_name' => 'East Riding of Yorkshire',\n\t\t\t\t'ons_constituency_code' => 'E14000683',\n\t\t\t\t'ons_constituency_code_old' => 'B55',\n\t\t\t\t'ons_constituency_name' => 'East Yorkshire',\n\t\t\t\t'male_all_ages' => '5269',\n\t\t\t\t'm0' => '65',\n\t\t\t\t'm1' => '72',\n\t\t\t\t'm2' => '63',\n\t\t\t\t'm3' => '81',\n\t\t\t\t'm4' => '71',\n\t\t\t\t'm5' => '62',\n\t\t\t\t'm6' => '55',\n\t\t\t\t'm7' => '62',\n\t\t\t\t'm8' => '66',\n\t\t\t\t'm9' => '61',\n\t\t\t\t'm10' => '64',\n\t\t\t\t'm11' => '53',\n\t\t\t\t'm12' => '59',\n\t\t\t\t'm13' => '60',\n\t\t\t\t'm14' => '63',\n\t\t\t\t'm15' => '63',\n\t\t\t\t'm16' => '72',\n\t\t\t\t'm17' => '68',\n\t\t\t\t'm18' => '71',\n\t\t\t\t'm19' => '79',\n\t\t\t\t'm20' => '64',\n\t\t\t\t'm21' => '69',\n\t\t\t\t'm22' => '53',\n\t\t\t\t'm23' => '64',\n\t\t\t\t'm24' => '44',\n\t\t\t\t'm25' => '56',\n\t\t\t\t'm26' => '53',\n\t\t\t\t'm27' => '73',\n\t\t\t\t'm28' => '59',\n\t\t\t\t'm29' => '56',\n\t\t\t\t'm30' => '51',\n\t\t\t\t'm31' => '38',\n\t\t\t\t'm32' => '43',\n\t\t\t\t'm33' => '54',\n\t\t\t\t'm34' => '55',\n\t\t\t\t'm35' => '47',\n\t\t\t\t'm36' => '38',\n\t\t\t\t'm37' => '49',\n\t\t\t\t'm38' => '56',\n\t\t\t\t'm39' => '61',\n\t\t\t\t'm40' => '44',\n\t\t\t\t'm41' => '70',\n\t\t\t\t'm42' => '70',\n\t\t\t\t'm43' => '59',\n\t\t\t\t'm44' => '68',\n\t\t\t\t'm45' => '68',\n\t\t\t\t'm46' => '61',\n\t\t\t\t'm47' => '72',\n\t\t\t\t'm48' => '61',\n\t\t\t\t'm49' => '73',\n\t\t\t\t'm50' => '63',\n\t\t\t\t'm51' => '69',\n\t\t\t\t'm52' => '63',\n\t\t\t\t'm53' => '58',\n\t\t\t\t'm54' => '65',\n\t\t\t\t'm55' => '60',\n\t\t\t\t'm56' => '68',\n\t\t\t\t'm57' => '62',\n\t\t\t\t'm58' => '59',\n\t\t\t\t'm59' => '61',\n\t\t\t\t'm60' => '69',\n\t\t\t\t'm61' => '72',\n\t\t\t\t'm62' => '76',\n\t\t\t\t'm63' => '74',\n\t\t\t\t'm64' => '89',\n\t\t\t\t'm65' => '99',\n\t\t\t\t'm66' => '99',\n\t\t\t\t'm67' => '76',\n\t\t\t\t'm68' => '86',\n\t\t\t\t'm69' => '77',\n\t\t\t\t'm70' => '80',\n\t\t\t\t'm71' => '73',\n\t\t\t\t'm72' => '52',\n\t\t\t\t'm73' => '57',\n\t\t\t\t'm74' => '57',\n\t\t\t\t'm75' => '53',\n\t\t\t\t'm76' => '45',\n\t\t\t\t'm77' => '38',\n\t\t\t\t'm78' => '44',\n\t\t\t\t'm79' => '42',\n\t\t\t\t'm80' => '32',\n\t\t\t\t'm81' => '30',\n\t\t\t\t'm82' => '25',\n\t\t\t\t'm83' => '29',\n\t\t\t\t'm84' => '32',\n\t\t\t\t'm85' => '20',\n\t\t\t\t'm86' => '14',\n\t\t\t\t'm87' => '9',\n\t\t\t\t'm88' => '11',\n\t\t\t\t'm89' => '9',\n\t\t\t\t'm90' => '33',\n\t\t\t\t'female_all_ages' => '5766',\n\t\t\t\t'f0' => '65',\n\t\t\t\t'f1' => '73',\n\t\t\t\t'f2' => '63',\n\t\t\t\t'f3' => '59',\n\t\t\t\t'f4' => '74',\n\t\t\t\t'f5' => '59',\n\t\t\t\t'f6' => '72',\n\t\t\t\t'f7' => '73',\n\t\t\t\t'f8' => '65',\n\t\t\t\t'f9' => '63',\n\t\t\t\t'f10' => '54',\n\t\t\t\t'f11' => '49',\n\t\t\t\t'f12' => '62',\n\t\t\t\t'f13' => '57',\n\t\t\t\t'f14' => '59',\n\t\t\t\t'f15' => '59',\n\t\t\t\t'f16' => '67',\n\t\t\t\t'f17' => '69',\n\t\t\t\t'f18' => '66',\n\t\t\t\t'f19' => '55',\n\t\t\t\t'f20' => '59',\n\t\t\t\t'f21' => '51',\n\t\t\t\t'f22' => '65',\n\t\t\t\t'f23' => '69',\n\t\t\t\t'f24' => '66',\n\t\t\t\t'f25' => '66',\n\t\t\t\t'f26' => '41',\n\t\t\t\t'f27' => '67',\n\t\t\t\t'f28' => '69',\n\t\t\t\t'f29' => '57',\n\t\t\t\t'f30' => '58',\n\t\t\t\t'f31' => '61',\n\t\t\t\t'f32' => '51',\n\t\t\t\t'f33' => '55',\n\t\t\t\t'f34' => '51',\n\t\t\t\t'f35' => '46',\n\t\t\t\t'f36' => '37',\n\t\t\t\t'f37' => '47',\n\t\t\t\t'f38' => '68',\n\t\t\t\t'f39' => '67',\n\t\t\t\t'f40' => '58',\n\t\t\t\t'f41' => '69',\n\t\t\t\t'f42' => '67',\n\t\t\t\t'f43' => '69',\n\t\t\t\t'f44' => '64',\n\t\t\t\t'f45' => '78',\n\t\t\t\t'f46' => '69',\n\t\t\t\t'f47' => '72',\n\t\t\t\t'f48' => '58',\n\t\t\t\t'f49' => '64',\n\t\t\t\t'f50' => '85',\n\t\t\t\t'f51' => '85',\n\t\t\t\t'f52' => '78',\n\t\t\t\t'f53' => '71',\n\t\t\t\t'f54' => '75',\n\t\t\t\t'f55' => '64',\n\t\t\t\t'f56' => '59',\n\t\t\t\t'f57' => '100',\n\t\t\t\t'f58' => '75',\n\t\t\t\t'f59' => '61',\n\t\t\t\t'f60' => '76',\n\t\t\t\t'f61' => '77',\n\t\t\t\t'f62' => '88',\n\t\t\t\t'f63' => '71',\n\t\t\t\t'f64' => '96',\n\t\t\t\t'f65' => '109',\n\t\t\t\t'f66' => '113',\n\t\t\t\t'f67' => '82',\n\t\t\t\t'f68' => '75',\n\t\t\t\t'f69' => '82',\n\t\t\t\t'f70' => '76',\n\t\t\t\t'f71' => '79',\n\t\t\t\t'f72' => '62',\n\t\t\t\t'f73' => '76',\n\t\t\t\t'f74' => '64',\n\t\t\t\t'f75' => '67',\n\t\t\t\t'f76' => '73',\n\t\t\t\t'f77' => '50',\n\t\t\t\t'f78' => '51',\n\t\t\t\t'f79' => '46',\n\t\t\t\t'f80' => '48',\n\t\t\t\t'f81' => '47',\n\t\t\t\t'f82' => '39',\n\t\t\t\t'f83' => '38',\n\t\t\t\t'f84' => '32',\n\t\t\t\t'f85' => '34',\n\t\t\t\t'f86' => '30',\n\t\t\t\t'f87' => '31',\n\t\t\t\t'f88' => '27',\n\t\t\t\t'f89' => '17',\n\t\t\t\t'f90' => '75',\n\t\t\t),\n\t\t\t25 => \n\t\t\tarray (\n\t\t\t\t'id' => '26',\n\t\t\t\t'slug' => 'bridlington-north',\n\t\t\t\t'seats' => '3',\n\t\t\t\t'body_id' => '2',\n\t\t\t\t'created_at' => '2015-01-20 12:24:46',\n\t\t\t\t'updated_at' => '2015-01-20 12:24:46',\n\t\t\t\t'ons_district_code' => 'E05001689',\n\t\t\t\t'ons_district_code_old' => '00FBNF',\n\t\t\t\t'name' => 'Bridlington North',\n\t\t\t\t'ons_la_code' => 'E06000011',\n\t\t\t\t'body_name' => 'East Riding of Yorkshire',\n\t\t\t\t'ons_constituency_code' => 'E14000683',\n\t\t\t\t'ons_constituency_code_old' => 'B55',\n\t\t\t\t'ons_constituency_name' => 'East Yorkshire',\n\t\t\t\t'male_all_ages' => '6241',\n\t\t\t\t'm0' => '30',\n\t\t\t\t'm1' => '43',\n\t\t\t\t'm2' => '41',\n\t\t\t\t'm3' => '39',\n\t\t\t\t'm4' => '38',\n\t\t\t\t'm5' => '62',\n\t\t\t\t'm6' => '46',\n\t\t\t\t'm7' => '40',\n\t\t\t\t'm8' => '43',\n\t\t\t\t'm9' => '43',\n\t\t\t\t'm10' => '48',\n\t\t\t\t'm11' => '37',\n\t\t\t\t'm12' => '55',\n\t\t\t\t'm13' => '47',\n\t\t\t\t'm14' => '46',\n\t\t\t\t'm15' => '46',\n\t\t\t\t'm16' => '55',\n\t\t\t\t'm17' => '56',\n\t\t\t\t'm18' => '59',\n\t\t\t\t'm19' => '48',\n\t\t\t\t'm20' => '59',\n\t\t\t\t'm21' => '39',\n\t\t\t\t'm22' => '49',\n\t\t\t\t'm23' => '30',\n\t\t\t\t'm24' => '33',\n\t\t\t\t'm25' => '42',\n\t\t\t\t'm26' => '45',\n\t\t\t\t'm27' => '38',\n\t\t\t\t'm28' => '37',\n\t\t\t\t'm29' => '40',\n\t\t\t\t'm30' => '39',\n\t\t\t\t'm31' => '30',\n\t\t\t\t'm32' => '40',\n\t\t\t\t'm33' => '44',\n\t\t\t\t'm34' => '35',\n\t\t\t\t'm35' => '33',\n\t\t\t\t'm36' => '35',\n\t\t\t\t'm37' => '41',\n\t\t\t\t'm38' => '42',\n\t\t\t\t'm39' => '42',\n\t\t\t\t'm40' => '49',\n\t\t\t\t'm41' => '59',\n\t\t\t\t'm42' => '70',\n\t\t\t\t'm43' => '55',\n\t\t\t\t'm44' => '63',\n\t\t\t\t'm45' => '64',\n\t\t\t\t'm46' => '80',\n\t\t\t\t'm47' => '95',\n\t\t\t\t'm48' => '83',\n\t\t\t\t'm49' => '82',\n\t\t\t\t'm50' => '77',\n\t\t\t\t'm51' => '77',\n\t\t\t\t'm52' => '86',\n\t\t\t\t'm53' => '85',\n\t\t\t\t'm54' => '73',\n\t\t\t\t'm55' => '89',\n\t\t\t\t'm56' => '77',\n\t\t\t\t'm57' => '89',\n\t\t\t\t'm58' => '84',\n\t\t\t\t'm59' => '100',\n\t\t\t\t'm60' => '89',\n\t\t\t\t'm61' => '104',\n\t\t\t\t'm62' => '116',\n\t\t\t\t'm63' => '118',\n\t\t\t\t'm64' => '124',\n\t\t\t\t'm65' => '141',\n\t\t\t\t'm66' => '205',\n\t\t\t\t'm67' => '168',\n\t\t\t\t'm68' => '149',\n\t\t\t\t'm69' => '134',\n\t\t\t\t'm70' => '142',\n\t\t\t\t'm71' => '121',\n\t\t\t\t'm72' => '104',\n\t\t\t\t'm73' => '124',\n\t\t\t\t'm74' => '122',\n\t\t\t\t'm75' => '118',\n\t\t\t\t'm76' => '98',\n\t\t\t\t'm77' => '103',\n\t\t\t\t'm78' => '97',\n\t\t\t\t'm79' => '80',\n\t\t\t\t'm80' => '67',\n\t\t\t\t'm81' => '72',\n\t\t\t\t'm82' => '59',\n\t\t\t\t'm83' => '61',\n\t\t\t\t'm84' => '42',\n\t\t\t\t'm85' => '41',\n\t\t\t\t'm86' => '33',\n\t\t\t\t'm87' => '44',\n\t\t\t\t'm88' => '26',\n\t\t\t\t'm89' => '19',\n\t\t\t\t'm90' => '68',\n\t\t\t\t'female_all_ages' => '6814',\n\t\t\t\t'f0' => '32',\n\t\t\t\t'f1' => '27',\n\t\t\t\t'f2' => '45',\n\t\t\t\t'f3' => '46',\n\t\t\t\t'f4' => '42',\n\t\t\t\t'f5' => '41',\n\t\t\t\t'f6' => '35',\n\t\t\t\t'f7' => '34',\n\t\t\t\t'f8' => '46',\n\t\t\t\t'f9' => '42',\n\t\t\t\t'f10' => '38',\n\t\t\t\t'f11' => '49',\n\t\t\t\t'f12' => '53',\n\t\t\t\t'f13' => '32',\n\t\t\t\t'f14' => '47',\n\t\t\t\t'f15' => '45',\n\t\t\t\t'f16' => '56',\n\t\t\t\t'f17' => '48',\n\t\t\t\t'f18' => '52',\n\t\t\t\t'f19' => '53',\n\t\t\t\t'f20' => '27',\n\t\t\t\t'f21' => '45',\n\t\t\t\t'f22' => '44',\n\t\t\t\t'f23' => '54',\n\t\t\t\t'f24' => '36',\n\t\t\t\t'f25' => '36',\n\t\t\t\t'f26' => '43',\n\t\t\t\t'f27' => '38',\n\t\t\t\t'f28' => '43',\n\t\t\t\t'f29' => '29',\n\t\t\t\t'f30' => '45',\n\t\t\t\t'f31' => '29',\n\t\t\t\t'f32' => '47',\n\t\t\t\t'f33' => '48',\n\t\t\t\t'f34' => '43',\n\t\t\t\t'f35' => '40',\n\t\t\t\t'f36' => '45',\n\t\t\t\t'f37' => '40',\n\t\t\t\t'f38' => '44',\n\t\t\t\t'f39' => '48',\n\t\t\t\t'f40' => '69',\n\t\t\t\t'f41' => '55',\n\t\t\t\t'f42' => '60',\n\t\t\t\t'f43' => '80',\n\t\t\t\t'f44' => '77',\n\t\t\t\t'f45' => '73',\n\t\t\t\t'f46' => '76',\n\t\t\t\t'f47' => '69',\n\t\t\t\t'f48' => '72',\n\t\t\t\t'f49' => '73',\n\t\t\t\t'f50' => '88',\n\t\t\t\t'f51' => '82',\n\t\t\t\t'f52' => '81',\n\t\t\t\t'f53' => '79',\n\t\t\t\t'f54' => '105',\n\t\t\t\t'f55' => '95',\n\t\t\t\t'f56' => '110',\n\t\t\t\t'f57' => '93',\n\t\t\t\t'f58' => '97',\n\t\t\t\t'f59' => '93',\n\t\t\t\t'f60' => '125',\n\t\t\t\t'f61' => '110',\n\t\t\t\t'f62' => '99',\n\t\t\t\t'f63' => '150',\n\t\t\t\t'f64' => '158',\n\t\t\t\t'f65' => '186',\n\t\t\t\t'f66' => '196',\n\t\t\t\t'f67' => '173',\n\t\t\t\t'f68' => '174',\n\t\t\t\t'f69' => '136',\n\t\t\t\t'f70' => '155',\n\t\t\t\t'f71' => '145',\n\t\t\t\t'f72' => '120',\n\t\t\t\t'f73' => '133',\n\t\t\t\t'f74' => '132',\n\t\t\t\t'f75' => '120',\n\t\t\t\t'f76' => '120',\n\t\t\t\t'f77' => '124',\n\t\t\t\t'f78' => '111',\n\t\t\t\t'f79' => '96',\n\t\t\t\t'f80' => '88',\n\t\t\t\t'f81' => '68',\n\t\t\t\t'f82' => '66',\n\t\t\t\t'f83' => '63',\n\t\t\t\t'f84' => '50',\n\t\t\t\t'f85' => '67',\n\t\t\t\t'f86' => '37',\n\t\t\t\t'f87' => '54',\n\t\t\t\t'f88' => '47',\n\t\t\t\t'f89' => '46',\n\t\t\t\t'f90' => '151',\n\t\t\t),\n\t\t\t26 => \n\t\t\tarray (\n\t\t\t\t'id' => '27',\n\t\t\t\t'slug' => 'bridlington-south',\n\t\t\t\t'seats' => '3',\n\t\t\t\t'body_id' => '2',\n\t\t\t\t'created_at' => '2015-01-20 12:24:46',\n\t\t\t\t'updated_at' => '2015-01-20 12:24:46',\n\t\t\t\t'ons_district_code' => 'E05001690',\n\t\t\t\t'ons_district_code_old' => '00FBNG',\n\t\t\t\t'name' => 'Bridlington South',\n\t\t\t\t'ons_la_code' => 'E06000011',\n\t\t\t\t'body_name' => 'East Riding of Yorkshire',\n\t\t\t\t'ons_constituency_code' => 'E14000683',\n\t\t\t\t'ons_constituency_code_old' => 'B55',\n\t\t\t\t'ons_constituency_name' => 'East Yorkshire',\n\t\t\t\t'male_all_ages' => '7346',\n\t\t\t\t'm0' => '83',\n\t\t\t\t'm1' => '76',\n\t\t\t\t'm2' => '88',\n\t\t\t\t'm3' => '82',\n\t\t\t\t'm4' => '75',\n\t\t\t\t'm5' => '89',\n\t\t\t\t'm6' => '81',\n\t\t\t\t'm7' => '93',\n\t\t\t\t'm8' => '87',\n\t\t\t\t'm9' => '84',\n\t\t\t\t'm10' => '85',\n\t\t\t\t'm11' => '98',\n\t\t\t\t'm12' => '75',\n\t\t\t\t'm13' => '78',\n\t\t\t\t'm14' => '77',\n\t\t\t\t'm15' => '79',\n\t\t\t\t'm16' => '91',\n\t\t\t\t'm17' => '87',\n\t\t\t\t'm18' => '94',\n\t\t\t\t'm19' => '94',\n\t\t\t\t'm20' => '111',\n\t\t\t\t'm21' => '105',\n\t\t\t\t'm22' => '85',\n\t\t\t\t'm23' => '73',\n\t\t\t\t'm24' => '81',\n\t\t\t\t'm25' => '79',\n\t\t\t\t'm26' => '77',\n\t\t\t\t'm27' => '71',\n\t\t\t\t'm28' => '71',\n\t\t\t\t'm29' => '75',\n\t\t\t\t'm30' => '52',\n\t\t\t\t'm31' => '79',\n\t\t\t\t'm32' => '55',\n\t\t\t\t'm33' => '61',\n\t\t\t\t'm34' => '67',\n\t\t\t\t'm35' => '74',\n\t\t\t\t'm36' => '77',\n\t\t\t\t'm37' => '83',\n\t\t\t\t'm38' => '76',\n\t\t\t\t'm39' => '77',\n\t\t\t\t'm40' => '75',\n\t\t\t\t'm41' => '90',\n\t\t\t\t'm42' => '101',\n\t\t\t\t'm43' => '102',\n\t\t\t\t'm44' => '99',\n\t\t\t\t'm45' => '119',\n\t\t\t\t'm46' => '115',\n\t\t\t\t'm47' => '83',\n\t\t\t\t'm48' => '114',\n\t\t\t\t'm49' => '120',\n\t\t\t\t'm50' => '136',\n\t\t\t\t'm51' => '124',\n\t\t\t\t'm52' => '97',\n\t\t\t\t'm53' => '101',\n\t\t\t\t'm54' => '101',\n\t\t\t\t'm55' => '128',\n\t\t\t\t'm56' => '103',\n\t\t\t\t'm57' => '99',\n\t\t\t\t'm58' => '101',\n\t\t\t\t'm59' => '103',\n\t\t\t\t'm60' => '106',\n\t\t\t\t'm61' => '99',\n\t\t\t\t'm62' => '103',\n\t\t\t\t'm63' => '98',\n\t\t\t\t'm64' => '107',\n\t\t\t\t'm65' => '109',\n\t\t\t\t'm66' => '114',\n\t\t\t\t'm67' => '104',\n\t\t\t\t'm68' => '97',\n\t\t\t\t'm69' => '89',\n\t\t\t\t'm70' => '100',\n\t\t\t\t'm71' => '85',\n\t\t\t\t'm72' => '69',\n\t\t\t\t'm73' => '75',\n\t\t\t\t'm74' => '74',\n\t\t\t\t'm75' => '60',\n\t\t\t\t'm76' => '65',\n\t\t\t\t'm77' => '48',\n\t\t\t\t'm78' => '35',\n\t\t\t\t'm79' => '54',\n\t\t\t\t'm80' => '42',\n\t\t\t\t'm81' => '36',\n\t\t\t\t'm82' => '39',\n\t\t\t\t'm83' => '31',\n\t\t\t\t'm84' => '24',\n\t\t\t\t'm85' => '30',\n\t\t\t\t'm86' => '23',\n\t\t\t\t'm87' => '23',\n\t\t\t\t'm88' => '13',\n\t\t\t\t'm89' => '14',\n\t\t\t\t'm90' => '44',\n\t\t\t\t'female_all_ages' => '7380',\n\t\t\t\t'f0' => '78',\n\t\t\t\t'f1' => '78',\n\t\t\t\t'f2' => '81',\n\t\t\t\t'f3' => '82',\n\t\t\t\t'f4' => '61',\n\t\t\t\t'f5' => '94',\n\t\t\t\t'f6' => '65',\n\t\t\t\t'f7' => '78',\n\t\t\t\t'f8' => '73',\n\t\t\t\t'f9' => '68',\n\t\t\t\t'f10' => '73',\n\t\t\t\t'f11' => '67',\n\t\t\t\t'f12' => '77',\n\t\t\t\t'f13' => '75',\n\t\t\t\t'f14' => '82',\n\t\t\t\t'f15' => '74',\n\t\t\t\t'f16' => '77',\n\t\t\t\t'f17' => '95',\n\t\t\t\t'f18' => '104',\n\t\t\t\t'f19' => '82',\n\t\t\t\t'f20' => '75',\n\t\t\t\t'f21' => '69',\n\t\t\t\t'f22' => '68',\n\t\t\t\t'f23' => '66',\n\t\t\t\t'f24' => '77',\n\t\t\t\t'f25' => '84',\n\t\t\t\t'f26' => '69',\n\t\t\t\t'f27' => '59',\n\t\t\t\t'f28' => '93',\n\t\t\t\t'f29' => '71',\n\t\t\t\t'f30' => '69',\n\t\t\t\t'f31' => '82',\n\t\t\t\t'f32' => '68',\n\t\t\t\t'f33' => '58',\n\t\t\t\t'f34' => '76',\n\t\t\t\t'f35' => '46',\n\t\t\t\t'f36' => '53',\n\t\t\t\t'f37' => '67',\n\t\t\t\t'f38' => '68',\n\t\t\t\t'f39' => '68',\n\t\t\t\t'f40' => '82',\n\t\t\t\t'f41' => '113',\n\t\t\t\t'f42' => '105',\n\t\t\t\t'f43' => '96',\n\t\t\t\t'f44' => '120',\n\t\t\t\t'f45' => '83',\n\t\t\t\t'f46' => '96',\n\t\t\t\t'f47' => '97',\n\t\t\t\t'f48' => '103',\n\t\t\t\t'f49' => '107',\n\t\t\t\t'f50' => '116',\n\t\t\t\t'f51' => '114',\n\t\t\t\t'f52' => '95',\n\t\t\t\t'f53' => '95',\n\t\t\t\t'f54' => '101',\n\t\t\t\t'f55' => '103',\n\t\t\t\t'f56' => '94',\n\t\t\t\t'f57' => '100',\n\t\t\t\t'f58' => '91',\n\t\t\t\t'f59' => '100',\n\t\t\t\t'f60' => '121',\n\t\t\t\t'f61' => '89',\n\t\t\t\t'f62' => '98',\n\t\t\t\t'f63' => '112',\n\t\t\t\t'f64' => '102',\n\t\t\t\t'f65' => '111',\n\t\t\t\t'f66' => '138',\n\t\t\t\t'f67' => '104',\n\t\t\t\t'f68' => '98',\n\t\t\t\t'f69' => '103',\n\t\t\t\t'f70' => '86',\n\t\t\t\t'f71' => '86',\n\t\t\t\t'f72' => '81',\n\t\t\t\t'f73' => '87',\n\t\t\t\t'f74' => '77',\n\t\t\t\t'f75' => '71',\n\t\t\t\t'f76' => '75',\n\t\t\t\t'f77' => '64',\n\t\t\t\t'f78' => '77',\n\t\t\t\t'f79' => '59',\n\t\t\t\t'f80' => '58',\n\t\t\t\t'f81' => '55',\n\t\t\t\t'f82' => '52',\n\t\t\t\t'f83' => '33',\n\t\t\t\t'f84' => '40',\n\t\t\t\t'f85' => '46',\n\t\t\t\t'f86' => '44',\n\t\t\t\t'f87' => '39',\n\t\t\t\t'f88' => '29',\n\t\t\t\t'f89' => '22',\n\t\t\t\t'f90' => '162',\n\t\t\t),\n\t\t\t27 => \n\t\t\tarray (\n\t\t\t\t'id' => '28',\n\t\t\t\t'slug' => 'cottingham-north',\n\t\t\t\t'seats' => '3',\n\t\t\t\t'body_id' => '2',\n\t\t\t\t'created_at' => '2015-01-20 12:24:46',\n\t\t\t\t'updated_at' => '2015-01-20 12:24:46',\n\t\t\t\t'ons_district_code' => 'E05001691',\n\t\t\t\t'ons_district_code_old' => '00FBNH',\n\t\t\t\t'name' => 'Cottingham North',\n\t\t\t\t'ons_la_code' => 'E06000011',\n\t\t\t\t'body_name' => 'East Riding of Yorkshire',\n\t\t\t\t'ons_constituency_code' => 'E14000724',\n\t\t\t\t'ons_constituency_code_old' => 'B96',\n\t\t\t\t'ons_constituency_name' => 'Haltemprice and Howden',\n\t\t\t\t'male_all_ages' => '4208',\n\t\t\t\t'm0' => '35',\n\t\t\t\t'm1' => '26',\n\t\t\t\t'm2' => '29',\n\t\t\t\t'm3' => '30',\n\t\t\t\t'm4' => '23',\n\t\t\t\t'm5' => '41',\n\t\t\t\t'm6' => '40',\n\t\t\t\t'm7' => '33',\n\t\t\t\t'm8' => '30',\n\t\t\t\t'm9' => '42',\n\t\t\t\t'm10' => '24',\n\t\t\t\t'm11' => '30',\n\t\t\t\t'm12' => '30',\n\t\t\t\t'm13' => '38',\n\t\t\t\t'm14' => '36',\n\t\t\t\t'm15' => '77',\n\t\t\t\t'm16' => '93',\n\t\t\t\t'm17' => '54',\n\t\t\t\t'm18' => '114',\n\t\t\t\t'm19' => '293',\n\t\t\t\t'm20' => '104',\n\t\t\t\t'm21' => '81',\n\t\t\t\t'm22' => '59',\n\t\t\t\t'm23' => '32',\n\t\t\t\t'm24' => '28',\n\t\t\t\t'm25' => '30',\n\t\t\t\t'm26' => '35',\n\t\t\t\t'm27' => '39',\n\t\t\t\t'm28' => '31',\n\t\t\t\t'm29' => '25',\n\t\t\t\t'm30' => '35',\n\t\t\t\t'm31' => '38',\n\t\t\t\t'm32' => '29',\n\t\t\t\t'm33' => '35',\n\t\t\t\t'm34' => '26',\n\t\t\t\t'm35' => '30',\n\t\t\t\t'm36' => '31',\n\t\t\t\t'm37' => '36',\n\t\t\t\t'm38' => '39',\n\t\t\t\t'm39' => '48',\n\t\t\t\t'm40' => '45',\n\t\t\t\t'm41' => '44',\n\t\t\t\t'm42' => '50',\n\t\t\t\t'm43' => '51',\n\t\t\t\t'm44' => '46',\n\t\t\t\t'm45' => '54',\n\t\t\t\t'm46' => '36',\n\t\t\t\t'm47' => '63',\n\t\t\t\t'm48' => '60',\n\t\t\t\t'm49' => '71',\n\t\t\t\t'm50' => '65',\n\t\t\t\t'm51' => '66',\n\t\t\t\t'm52' => '59',\n\t\t\t\t'm53' => '58',\n\t\t\t\t'm54' => '51',\n\t\t\t\t'm55' => '49',\n\t\t\t\t'm56' => '47',\n\t\t\t\t'm57' => '68',\n\t\t\t\t'm58' => '40',\n\t\t\t\t'm59' => '58',\n\t\t\t\t'm60' => '61',\n\t\t\t\t'm61' => '50',\n\t\t\t\t'm62' => '68',\n\t\t\t\t'm63' => '55',\n\t\t\t\t'm64' => '62',\n\t\t\t\t'm65' => '59',\n\t\t\t\t'm66' => '73',\n\t\t\t\t'm67' => '52',\n\t\t\t\t'm68' => '47',\n\t\t\t\t'm69' => '47',\n\t\t\t\t'm70' => '55',\n\t\t\t\t'm71' => '38',\n\t\t\t\t'm72' => '37',\n\t\t\t\t'm73' => '43',\n\t\t\t\t'm74' => '46',\n\t\t\t\t'm75' => '49',\n\t\t\t\t'm76' => '44',\n\t\t\t\t'm77' => '37',\n\t\t\t\t'm78' => '30',\n\t\t\t\t'm79' => '25',\n\t\t\t\t'm80' => '46',\n\t\t\t\t'm81' => '35',\n\t\t\t\t'm82' => '29',\n\t\t\t\t'm83' => '15',\n\t\t\t\t'm84' => '18',\n\t\t\t\t'm85' => '19',\n\t\t\t\t'm86' => '12',\n\t\t\t\t'm87' => '8',\n\t\t\t\t'm88' => '10',\n\t\t\t\t'm89' => '8',\n\t\t\t\t'm90' => '20',\n\t\t\t\t'female_all_ages' => '4404',\n\t\t\t\t'f0' => '23',\n\t\t\t\t'f1' => '25',\n\t\t\t\t'f2' => '40',\n\t\t\t\t'f3' => '32',\n\t\t\t\t'f4' => '32',\n\t\t\t\t'f5' => '31',\n\t\t\t\t'f6' => '33',\n\t\t\t\t'f7' => '30',\n\t\t\t\t'f8' => '25',\n\t\t\t\t'f9' => '35',\n\t\t\t\t'f10' => '30',\n\t\t\t\t'f11' => '36',\n\t\t\t\t'f12' => '32',\n\t\t\t\t'f13' => '43',\n\t\t\t\t'f14' => '36',\n\t\t\t\t'f15' => '80',\n\t\t\t\t'f16' => '81',\n\t\t\t\t'f17' => '80',\n\t\t\t\t'f18' => '120',\n\t\t\t\t'f19' => '177',\n\t\t\t\t'f20' => '77',\n\t\t\t\t'f21' => '65',\n\t\t\t\t'f22' => '42',\n\t\t\t\t'f23' => '34',\n\t\t\t\t'f24' => '37',\n\t\t\t\t'f25' => '43',\n\t\t\t\t'f26' => '31',\n\t\t\t\t'f27' => '27',\n\t\t\t\t'f28' => '41',\n\t\t\t\t'f29' => '29',\n\t\t\t\t'f30' => '27',\n\t\t\t\t'f31' => '31',\n\t\t\t\t'f32' => '32',\n\t\t\t\t'f33' => '49',\n\t\t\t\t'f34' => '43',\n\t\t\t\t'f35' => '38',\n\t\t\t\t'f36' => '36',\n\t\t\t\t'f37' => '36',\n\t\t\t\t'f38' => '43',\n\t\t\t\t'f39' => '53',\n\t\t\t\t'f40' => '47',\n\t\t\t\t'f41' => '37',\n\t\t\t\t'f42' => '33',\n\t\t\t\t'f43' => '54',\n\t\t\t\t'f44' => '64',\n\t\t\t\t'f45' => '49',\n\t\t\t\t'f46' => '51',\n\t\t\t\t'f47' => '56',\n\t\t\t\t'f48' => '64',\n\t\t\t\t'f49' => '62',\n\t\t\t\t'f50' => '63',\n\t\t\t\t'f51' => '67',\n\t\t\t\t'f52' => '66',\n\t\t\t\t'f53' => '59',\n\t\t\t\t'f54' => '55',\n\t\t\t\t'f55' => '54',\n\t\t\t\t'f56' => '48',\n\t\t\t\t'f57' => '55',\n\t\t\t\t'f58' => '56',\n\t\t\t\t'f59' => '64',\n\t\t\t\t'f60' => '57',\n\t\t\t\t'f61' => '52',\n\t\t\t\t'f62' => '52',\n\t\t\t\t'f63' => '71',\n\t\t\t\t'f64' => '66',\n\t\t\t\t'f65' => '80',\n\t\t\t\t'f66' => '77',\n\t\t\t\t'f67' => '66',\n\t\t\t\t'f68' => '59',\n\t\t\t\t'f69' => '61',\n\t\t\t\t'f70' => '58',\n\t\t\t\t'f71' => '46',\n\t\t\t\t'f72' => '43',\n\t\t\t\t'f73' => '55',\n\t\t\t\t'f74' => '49',\n\t\t\t\t'f75' => '53',\n\t\t\t\t'f76' => '59',\n\t\t\t\t'f77' => '39',\n\t\t\t\t'f78' => '32',\n\t\t\t\t'f79' => '49',\n\t\t\t\t'f80' => '49',\n\t\t\t\t'f81' => '38',\n\t\t\t\t'f82' => '25',\n\t\t\t\t'f83' => '42',\n\t\t\t\t'f84' => '30',\n\t\t\t\t'f85' => '25',\n\t\t\t\t'f86' => '22',\n\t\t\t\t'f87' => '21',\n\t\t\t\t'f88' => '12',\n\t\t\t\t'f89' => '10',\n\t\t\t\t'f90' => '67',\n\t\t\t),\n\t\t\t28 => \n\t\t\tarray (\n\t\t\t\t'id' => '29',\n\t\t\t\t'slug' => 'cottingham-south',\n\t\t\t\t'seats' => '3',\n\t\t\t\t'body_id' => '2',\n\t\t\t\t'created_at' => '2015-01-20 12:24:46',\n\t\t\t\t'updated_at' => '2015-01-20 12:24:46',\n\t\t\t\t'ons_district_code' => 'E05001692',\n\t\t\t\t'ons_district_code_old' => '00FBNJ',\n\t\t\t\t'name' => 'Cottingham South',\n\t\t\t\t'ons_la_code' => 'E06000011',\n\t\t\t\t'body_name' => 'East Riding of Yorkshire',\n\t\t\t\t'ons_constituency_code' => 'E14000724',\n\t\t\t\t'ons_constituency_code_old' => 'B96',\n\t\t\t\t'ons_constituency_name' => 'Haltemprice and Howden',\n\t\t\t\t'male_all_ages' => '4260',\n\t\t\t\t'm0' => '39',\n\t\t\t\t'm1' => '58',\n\t\t\t\t'm2' => '44',\n\t\t\t\t'm3' => '38',\n\t\t\t\t'm4' => '42',\n\t\t\t\t'm5' => '39',\n\t\t\t\t'm6' => '36',\n\t\t\t\t'm7' => '46',\n\t\t\t\t'm8' => '29',\n\t\t\t\t'm9' => '46',\n\t\t\t\t'm10' => '44',\n\t\t\t\t'm11' => '51',\n\t\t\t\t'm12' => '37',\n\t\t\t\t'm13' => '52',\n\t\t\t\t'm14' => '45',\n\t\t\t\t'm15' => '48',\n\t\t\t\t'm16' => '38',\n\t\t\t\t'm17' => '72',\n\t\t\t\t'm18' => '32',\n\t\t\t\t'm19' => '59',\n\t\t\t\t'm20' => '70',\n\t\t\t\t'm21' => '39',\n\t\t\t\t'm22' => '43',\n\t\t\t\t'm23' => '34',\n\t\t\t\t'm24' => '45',\n\t\t\t\t'm25' => '45',\n\t\t\t\t'm26' => '35',\n\t\t\t\t'm27' => '39',\n\t\t\t\t'm28' => '36',\n\t\t\t\t'm29' => '38',\n\t\t\t\t'm30' => '45',\n\t\t\t\t'm31' => '38',\n\t\t\t\t'm32' => '36',\n\t\t\t\t'm33' => '39',\n\t\t\t\t'm34' => '54',\n\t\t\t\t'm35' => '43',\n\t\t\t\t'm36' => '41',\n\t\t\t\t'm37' => '49',\n\t\t\t\t'm38' => '43',\n\t\t\t\t'm39' => '52',\n\t\t\t\t'm40' => '40',\n\t\t\t\t'm41' => '58',\n\t\t\t\t'm42' => '53',\n\t\t\t\t'm43' => '47',\n\t\t\t\t'm44' => '59',\n\t\t\t\t'm45' => '57',\n\t\t\t\t'm46' => '70',\n\t\t\t\t'm47' => '65',\n\t\t\t\t'm48' => '41',\n\t\t\t\t'm49' => '63',\n\t\t\t\t'm50' => '70',\n\t\t\t\t'm51' => '72',\n\t\t\t\t'm52' => '61',\n\t\t\t\t'm53' => '63',\n\t\t\t\t'm54' => '58',\n\t\t\t\t'm55' => '71',\n\t\t\t\t'm56' => '65',\n\t\t\t\t'm57' => '64',\n\t\t\t\t'm58' => '46',\n\t\t\t\t'm59' => '53',\n\t\t\t\t'm60' => '49',\n\t\t\t\t'm61' => '41',\n\t\t\t\t'm62' => '64',\n\t\t\t\t'm63' => '63',\n\t\t\t\t'm64' => '65',\n\t\t\t\t'm65' => '63',\n\t\t\t\t'm66' => '79',\n\t\t\t\t'm67' => '66',\n\t\t\t\t'm68' => '66',\n\t\t\t\t'm69' => '43',\n\t\t\t\t'm70' => '39',\n\t\t\t\t'm71' => '35',\n\t\t\t\t'm72' => '38',\n\t\t\t\t'm73' => '60',\n\t\t\t\t'm74' => '54',\n\t\t\t\t'm75' => '40',\n\t\t\t\t'm76' => '55',\n\t\t\t\t'm77' => '48',\n\t\t\t\t'm78' => '52',\n\t\t\t\t'm79' => '40',\n\t\t\t\t'm80' => '37',\n\t\t\t\t'm81' => '28',\n\t\t\t\t'm82' => '30',\n\t\t\t\t'm83' => '29',\n\t\t\t\t'm84' => '32',\n\t\t\t\t'm85' => '17',\n\t\t\t\t'm86' => '22',\n\t\t\t\t'm87' => '9',\n\t\t\t\t'm88' => '10',\n\t\t\t\t'm89' => '10',\n\t\t\t\t'm90' => '41',\n\t\t\t\t'female_all_ages' => '4628',\n\t\t\t\t'f0' => '29',\n\t\t\t\t'f1' => '36',\n\t\t\t\t'f2' => '52',\n\t\t\t\t'f3' => '37',\n\t\t\t\t'f4' => '39',\n\t\t\t\t'f5' => '56',\n\t\t\t\t'f6' => '50',\n\t\t\t\t'f7' => '34',\n\t\t\t\t'f8' => '35',\n\t\t\t\t'f9' => '33',\n\t\t\t\t'f10' => '37',\n\t\t\t\t'f11' => '37',\n\t\t\t\t'f12' => '42',\n\t\t\t\t'f13' => '35',\n\t\t\t\t'f14' => '57',\n\t\t\t\t'f15' => '46',\n\t\t\t\t'f16' => '33',\n\t\t\t\t'f17' => '42',\n\t\t\t\t'f18' => '40',\n\t\t\t\t'f19' => '46',\n\t\t\t\t'f20' => '39',\n\t\t\t\t'f21' => '36',\n\t\t\t\t'f22' => '35',\n\t\t\t\t'f23' => '39',\n\t\t\t\t'f24' => '40',\n\t\t\t\t'f25' => '42',\n\t\t\t\t'f26' => '41',\n\t\t\t\t'f27' => '36',\n\t\t\t\t'f28' => '28',\n\t\t\t\t'f29' => '35',\n\t\t\t\t'f30' => '39',\n\t\t\t\t'f31' => '48',\n\t\t\t\t'f32' => '49',\n\t\t\t\t'f33' => '44',\n\t\t\t\t'f34' => '49',\n\t\t\t\t'f35' => '37',\n\t\t\t\t'f36' => '44',\n\t\t\t\t'f37' => '47',\n\t\t\t\t'f38' => '46',\n\t\t\t\t'f39' => '48',\n\t\t\t\t'f40' => '54',\n\t\t\t\t'f41' => '62',\n\t\t\t\t'f42' => '61',\n\t\t\t\t'f43' => '61',\n\t\t\t\t'f44' => '72',\n\t\t\t\t'f45' => '62',\n\t\t\t\t'f46' => '63',\n\t\t\t\t'f47' => '69',\n\t\t\t\t'f48' => '56',\n\t\t\t\t'f49' => '55',\n\t\t\t\t'f50' => '59',\n\t\t\t\t'f51' => '65',\n\t\t\t\t'f52' => '71',\n\t\t\t\t'f53' => '67',\n\t\t\t\t'f54' => '49',\n\t\t\t\t'f55' => '71',\n\t\t\t\t'f56' => '73',\n\t\t\t\t'f57' => '66',\n\t\t\t\t'f58' => '59',\n\t\t\t\t'f59' => '44',\n\t\t\t\t'f60' => '70',\n\t\t\t\t'f61' => '59',\n\t\t\t\t'f62' => '67',\n\t\t\t\t'f63' => '72',\n\t\t\t\t'f64' => '81',\n\t\t\t\t'f65' => '74',\n\t\t\t\t'f66' => '80',\n\t\t\t\t'f67' => '56',\n\t\t\t\t'f68' => '68',\n\t\t\t\t'f69' => '57',\n\t\t\t\t'f70' => '51',\n\t\t\t\t'f71' => '40',\n\t\t\t\t'f72' => '58',\n\t\t\t\t'f73' => '59',\n\t\t\t\t'f74' => '67',\n\t\t\t\t'f75' => '61',\n\t\t\t\t'f76' => '61',\n\t\t\t\t'f77' => '46',\n\t\t\t\t'f78' => '54',\n\t\t\t\t'f79' => '60',\n\t\t\t\t'f80' => '55',\n\t\t\t\t'f81' => '54',\n\t\t\t\t'f82' => '37',\n\t\t\t\t'f83' => '38',\n\t\t\t\t'f84' => '35',\n\t\t\t\t'f85' => '37',\n\t\t\t\t'f86' => '35',\n\t\t\t\t'f87' => '40',\n\t\t\t\t'f88' => '39',\n\t\t\t\t'f89' => '20',\n\t\t\t\t'f90' => '120',\n\t\t\t),\n\t\t\t29 => \n\t\t\tarray (\n\t\t\t\t'id' => '30',\n\t\t\t\t'slug' => 'dale',\n\t\t\t\t'seats' => '3',\n\t\t\t\t'body_id' => '2',\n\t\t\t\t'created_at' => '2015-01-20 12:24:46',\n\t\t\t\t'updated_at' => '2015-01-20 12:24:46',\n\t\t\t\t'ons_district_code' => 'E05001693',\n\t\t\t\t'ons_district_code_old' => '00FBNK',\n\t\t\t\t'name' => 'Dale',\n\t\t\t\t'ons_la_code' => 'E06000011',\n\t\t\t\t'body_name' => 'East Riding of Yorkshire',\n\t\t\t\t'ons_constituency_code' => 'E14000724',\n\t\t\t\t'ons_constituency_code_old' => 'B96',\n\t\t\t\t'ons_constituency_name' => 'Haltemprice and Howden',\n\t\t\t\t'male_all_ages' => '8791',\n\t\t\t\t'm0' => '71',\n\t\t\t\t'm1' => '91',\n\t\t\t\t'm2' => '90',\n\t\t\t\t'm3' => '90',\n\t\t\t\t'm4' => '87',\n\t\t\t\t'm5' => '115',\n\t\t\t\t'm6' => '107',\n\t\t\t\t'm7' => '80',\n\t\t\t\t'm8' => '94',\n\t\t\t\t'm9' => '101',\n\t\t\t\t'm10' => '98',\n\t\t\t\t'm11' => '94',\n\t\t\t\t'm12' => '117',\n\t\t\t\t'm13' => '109',\n\t\t\t\t'm14' => '81',\n\t\t\t\t'm15' => '103',\n\t\t\t\t'm16' => '104',\n\t\t\t\t'm17' => '111',\n\t\t\t\t'm18' => '93',\n\t\t\t\t'm19' => '94',\n\t\t\t\t'm20' => '139',\n\t\t\t\t'm21' => '107',\n\t\t\t\t'm22' => '80',\n\t\t\t\t'm23' => '98',\n\t\t\t\t'm24' => '94',\n\t\t\t\t'm25' => '99',\n\t\t\t\t'm26' => '116',\n\t\t\t\t'm27' => '116',\n\t\t\t\t'm28' => '93',\n\t\t\t\t'm29' => '98',\n\t\t\t\t'm30' => '88',\n\t\t\t\t'm31' => '118',\n\t\t\t\t'm32' => '86',\n\t\t\t\t'm33' => '110',\n\t\t\t\t'm34' => '102',\n\t\t\t\t'm35' => '77',\n\t\t\t\t'm36' => '103',\n\t\t\t\t'm37' => '105',\n\t\t\t\t'm38' => '106',\n\t\t\t\t'm39' => '136',\n\t\t\t\t'm40' => '129',\n\t\t\t\t'm41' => '155',\n\t\t\t\t'm42' => '172',\n\t\t\t\t'm43' => '150',\n\t\t\t\t'm44' => '152',\n\t\t\t\t'm45' => '145',\n\t\t\t\t'm46' => '130',\n\t\t\t\t'm47' => '155',\n\t\t\t\t'm48' => '140',\n\t\t\t\t'm49' => '141',\n\t\t\t\t'm50' => '157',\n\t\t\t\t'm51' => '146',\n\t\t\t\t'm52' => '126',\n\t\t\t\t'm53' => '148',\n\t\t\t\t'm54' => '129',\n\t\t\t\t'm55' => '142',\n\t\t\t\t'm56' => '132',\n\t\t\t\t'm57' => '101',\n\t\t\t\t'm58' => '107',\n\t\t\t\t'm59' => '102',\n\t\t\t\t'm60' => '97',\n\t\t\t\t'm61' => '89',\n\t\t\t\t'm62' => '101',\n\t\t\t\t'm63' => '81',\n\t\t\t\t'm64' => '115',\n\t\t\t\t'm65' => '119',\n\t\t\t\t'm66' => '144',\n\t\t\t\t'm67' => '102',\n\t\t\t\t'm68' => '93',\n\t\t\t\t'm69' => '94',\n\t\t\t\t'm70' => '78',\n\t\t\t\t'm71' => '81',\n\t\t\t\t'm72' => '75',\n\t\t\t\t'm73' => '64',\n\t\t\t\t'm74' => '64',\n\t\t\t\t'm75' => '70',\n\t\t\t\t'm76' => '53',\n\t\t\t\t'm77' => '51',\n\t\t\t\t'm78' => '69',\n\t\t\t\t'm79' => '46',\n\t\t\t\t'm80' => '51',\n\t\t\t\t'm81' => '56',\n\t\t\t\t'm82' => '45',\n\t\t\t\t'm83' => '32',\n\t\t\t\t'm84' => '31',\n\t\t\t\t'm85' => '25',\n\t\t\t\t'm86' => '23',\n\t\t\t\t'm87' => '16',\n\t\t\t\t'm88' => '11',\n\t\t\t\t'm89' => '21',\n\t\t\t\t'm90' => '34',\n\t\t\t\t'female_all_ages' => '8809',\n\t\t\t\t'f0' => '61',\n\t\t\t\t'f1' => '90',\n\t\t\t\t'f2' => '91',\n\t\t\t\t'f3' => '86',\n\t\t\t\t'f4' => '105',\n\t\t\t\t'f5' => '92',\n\t\t\t\t'f6' => '102',\n\t\t\t\t'f7' => '110',\n\t\t\t\t'f8' => '92',\n\t\t\t\t'f9' => '104',\n\t\t\t\t'f10' => '96',\n\t\t\t\t'f11' => '95',\n\t\t\t\t'f12' => '111',\n\t\t\t\t'f13' => '94',\n\t\t\t\t'f14' => '117',\n\t\t\t\t'f15' => '108',\n\t\t\t\t'f16' => '117',\n\t\t\t\t'f17' => '98',\n\t\t\t\t'f18' => '90',\n\t\t\t\t'f19' => '79',\n\t\t\t\t'f20' => '54',\n\t\t\t\t'f21' => '54',\n\t\t\t\t'f22' => '71',\n\t\t\t\t'f23' => '69',\n\t\t\t\t'f24' => '58',\n\t\t\t\t'f25' => '73',\n\t\t\t\t'f26' => '66',\n\t\t\t\t'f27' => '86',\n\t\t\t\t'f28' => '77',\n\t\t\t\t'f29' => '78',\n\t\t\t\t'f30' => '83',\n\t\t\t\t'f31' => '101',\n\t\t\t\t'f32' => '93',\n\t\t\t\t'f33' => '87',\n\t\t\t\t'f34' => '103',\n\t\t\t\t'f35' => '91',\n\t\t\t\t'f36' => '89',\n\t\t\t\t'f37' => '137',\n\t\t\t\t'f38' => '113',\n\t\t\t\t'f39' => '132',\n\t\t\t\t'f40' => '135',\n\t\t\t\t'f41' => '162',\n\t\t\t\t'f42' => '139',\n\t\t\t\t'f43' => '152',\n\t\t\t\t'f44' => '194',\n\t\t\t\t'f45' => '128',\n\t\t\t\t'f46' => '132',\n\t\t\t\t'f47' => '141',\n\t\t\t\t'f48' => '152',\n\t\t\t\t'f49' => '158',\n\t\t\t\t'f50' => '153',\n\t\t\t\t'f51' => '154',\n\t\t\t\t'f52' => '138',\n\t\t\t\t'f53' => '134',\n\t\t\t\t'f54' => '110',\n\t\t\t\t'f55' => '113',\n\t\t\t\t'f56' => '129',\n\t\t\t\t'f57' => '128',\n\t\t\t\t'f58' => '99',\n\t\t\t\t'f59' => '101',\n\t\t\t\t'f60' => '91',\n\t\t\t\t'f61' => '101',\n\t\t\t\t'f62' => '120',\n\t\t\t\t'f63' => '124',\n\t\t\t\t'f64' => '101',\n\t\t\t\t'f65' => '141',\n\t\t\t\t'f66' => '141',\n\t\t\t\t'f67' => '108',\n\t\t\t\t'f68' => '103',\n\t\t\t\t'f69' => '100',\n\t\t\t\t'f70' => '92',\n\t\t\t\t'f71' => '67',\n\t\t\t\t'f72' => '67',\n\t\t\t\t'f73' => '80',\n\t\t\t\t'f74' => '81',\n\t\t\t\t'f75' => '77',\n\t\t\t\t'f76' => '80',\n\t\t\t\t'f77' => '77',\n\t\t\t\t'f78' => '73',\n\t\t\t\t'f79' => '60',\n\t\t\t\t'f80' => '53',\n\t\t\t\t'f81' => '62',\n\t\t\t\t'f82' => '56',\n\t\t\t\t'f83' => '41',\n\t\t\t\t'f84' => '49',\n\t\t\t\t'f85' => '35',\n\t\t\t\t'f86' => '23',\n\t\t\t\t'f87' => '30',\n\t\t\t\t'f88' => '28',\n\t\t\t\t'f89' => '25',\n\t\t\t\t'f90' => '118',\n\t\t\t),\n\t\t\t30 => \n\t\t\tarray (\n\t\t\t\t'id' => '31',\n\t\t\t\t'slug' => 'driffield-and-rural',\n\t\t\t\t'seats' => '3',\n\t\t\t\t'body_id' => '2',\n\t\t\t\t'created_at' => '2015-01-20 12:24:46',\n\t\t\t\t'updated_at' => '2015-01-20 12:24:46',\n\t\t\t\t'ons_district_code' => 'E05001694',\n\t\t\t\t'ons_district_code_old' => '00FBNL',\n\t\t\t\t'name' => 'Driffield and Rural',\n\t\t\t\t'ons_la_code' => 'E06000011',\n\t\t\t\t'body_name' => 'East Riding of Yorkshire',\n\t\t\t\t'ons_constituency_code' => 'E14000683',\n\t\t\t\t'ons_constituency_code_old' => 'B55',\n\t\t\t\t'ons_constituency_name' => 'East Yorkshire',\n\t\t\t\t'male_all_ages' => '7377',\n\t\t\t\t'm0' => '75',\n\t\t\t\t'm1' => '78',\n\t\t\t\t'm2' => '83',\n\t\t\t\t'm3' => '81',\n\t\t\t\t'm4' => '76',\n\t\t\t\t'm5' => '86',\n\t\t\t\t'm6' => '80',\n\t\t\t\t'm7' => '76',\n\t\t\t\t'm8' => '78',\n\t\t\t\t'm9' => '86',\n\t\t\t\t'm10' => '66',\n\t\t\t\t'm11' => '75',\n\t\t\t\t'm12' => '79',\n\t\t\t\t'm13' => '74',\n\t\t\t\t'm14' => '91',\n\t\t\t\t'm15' => '91',\n\t\t\t\t'm16' => '84',\n\t\t\t\t'm17' => '83',\n\t\t\t\t'm18' => '106',\n\t\t\t\t'm19' => '91',\n\t\t\t\t'm20' => '97',\n\t\t\t\t'm21' => '74',\n\t\t\t\t'm22' => '73',\n\t\t\t\t'm23' => '72',\n\t\t\t\t'm24' => '77',\n\t\t\t\t'm25' => '72',\n\t\t\t\t'm26' => '74',\n\t\t\t\t'm27' => '71',\n\t\t\t\t'm28' => '75',\n\t\t\t\t'm29' => '85',\n\t\t\t\t'm30' => '69',\n\t\t\t\t'm31' => '66',\n\t\t\t\t'm32' => '79',\n\t\t\t\t'm33' => '75',\n\t\t\t\t'm34' => '74',\n\t\t\t\t'm35' => '67',\n\t\t\t\t'm36' => '65',\n\t\t\t\t'm37' => '66',\n\t\t\t\t'm38' => '96',\n\t\t\t\t'm39' => '92',\n\t\t\t\t'm40' => '90',\n\t\t\t\t'm41' => '84',\n\t\t\t\t'm42' => '117',\n\t\t\t\t'm43' => '112',\n\t\t\t\t'm44' => '113',\n\t\t\t\t'm45' => '99',\n\t\t\t\t'm46' => '103',\n\t\t\t\t'm47' => '120',\n\t\t\t\t'm48' => '115',\n\t\t\t\t'm49' => '137',\n\t\t\t\t'm50' => '141',\n\t\t\t\t'm51' => '129',\n\t\t\t\t'm52' => '115',\n\t\t\t\t'm53' => '117',\n\t\t\t\t'm54' => '103',\n\t\t\t\t'm55' => '87',\n\t\t\t\t'm56' => '74',\n\t\t\t\t'm57' => '92',\n\t\t\t\t'm58' => '97',\n\t\t\t\t'm59' => '92',\n\t\t\t\t'm60' => '102',\n\t\t\t\t'm61' => '98',\n\t\t\t\t'm62' => '90',\n\t\t\t\t'm63' => '121',\n\t\t\t\t'm64' => '113',\n\t\t\t\t'm65' => '117',\n\t\t\t\t'm66' => '135',\n\t\t\t\t'm67' => '86',\n\t\t\t\t'm68' => '89',\n\t\t\t\t'm69' => '88',\n\t\t\t\t'm70' => '83',\n\t\t\t\t'm71' => '66',\n\t\t\t\t'm72' => '73',\n\t\t\t\t'm73' => '74',\n\t\t\t\t'm74' => '89',\n\t\t\t\t'm75' => '71',\n\t\t\t\t'm76' => '60',\n\t\t\t\t'm77' => '54',\n\t\t\t\t'm78' => '44',\n\t\t\t\t'm79' => '41',\n\t\t\t\t'm80' => '52',\n\t\t\t\t'm81' => '42',\n\t\t\t\t'm82' => '41',\n\t\t\t\t'm83' => '36',\n\t\t\t\t'm84' => '36',\n\t\t\t\t'm85' => '28',\n\t\t\t\t'm86' => '24',\n\t\t\t\t'm87' => '27',\n\t\t\t\t'm88' => '20',\n\t\t\t\t'm89' => '17',\n\t\t\t\t'm90' => '65',\n\t\t\t\t'female_all_ages' => '7883',\n\t\t\t\t'f0' => '69',\n\t\t\t\t'f1' => '74',\n\t\t\t\t'f2' => '69',\n\t\t\t\t'f3' => '83',\n\t\t\t\t'f4' => '84',\n\t\t\t\t'f5' => '86',\n\t\t\t\t'f6' => '82',\n\t\t\t\t'f7' => '61',\n\t\t\t\t'f8' => '68',\n\t\t\t\t'f9' => '70',\n\t\t\t\t'f10' => '68',\n\t\t\t\t'f11' => '78',\n\t\t\t\t'f12' => '68',\n\t\t\t\t'f13' => '68',\n\t\t\t\t'f14' => '80',\n\t\t\t\t'f15' => '90',\n\t\t\t\t'f16' => '105',\n\t\t\t\t'f17' => '79',\n\t\t\t\t'f18' => '89',\n\t\t\t\t'f19' => '63',\n\t\t\t\t'f20' => '86',\n\t\t\t\t'f21' => '84',\n\t\t\t\t'f22' => '83',\n\t\t\t\t'f23' => '82',\n\t\t\t\t'f24' => '75',\n\t\t\t\t'f25' => '92',\n\t\t\t\t'f26' => '73',\n\t\t\t\t'f27' => '79',\n\t\t\t\t'f28' => '82',\n\t\t\t\t'f29' => '79',\n\t\t\t\t'f30' => '63',\n\t\t\t\t'f31' => '73',\n\t\t\t\t'f32' => '74',\n\t\t\t\t'f33' => '76',\n\t\t\t\t'f34' => '95',\n\t\t\t\t'f35' => '63',\n\t\t\t\t'f36' => '79',\n\t\t\t\t'f37' => '80',\n\t\t\t\t'f38' => '92',\n\t\t\t\t'f39' => '86',\n\t\t\t\t'f40' => '114',\n\t\t\t\t'f41' => '94',\n\t\t\t\t'f42' => '110',\n\t\t\t\t'f43' => '120',\n\t\t\t\t'f44' => '119',\n\t\t\t\t'f45' => '119',\n\t\t\t\t'f46' => '121',\n\t\t\t\t'f47' => '122',\n\t\t\t\t'f48' => '135',\n\t\t\t\t'f49' => '126',\n\t\t\t\t'f50' => '125',\n\t\t\t\t'f51' => '111',\n\t\t\t\t'f52' => '116',\n\t\t\t\t'f53' => '117',\n\t\t\t\t'f54' => '116',\n\t\t\t\t'f55' => '105',\n\t\t\t\t'f56' => '92',\n\t\t\t\t'f57' => '85',\n\t\t\t\t'f58' => '94',\n\t\t\t\t'f59' => '87',\n\t\t\t\t'f60' => '86',\n\t\t\t\t'f61' => '96',\n\t\t\t\t'f62' => '122',\n\t\t\t\t'f63' => '106',\n\t\t\t\t'f64' => '116',\n\t\t\t\t'f65' => '136',\n\t\t\t\t'f66' => '147',\n\t\t\t\t'f67' => '102',\n\t\t\t\t'f68' => '109',\n\t\t\t\t'f69' => '100',\n\t\t\t\t'f70' => '89',\n\t\t\t\t'f71' => '94',\n\t\t\t\t'f72' => '76',\n\t\t\t\t'f73' => '87',\n\t\t\t\t'f74' => '90',\n\t\t\t\t'f75' => '78',\n\t\t\t\t'f76' => '72',\n\t\t\t\t'f77' => '81',\n\t\t\t\t'f78' => '62',\n\t\t\t\t'f79' => '58',\n\t\t\t\t'f80' => '59',\n\t\t\t\t'f81' => '71',\n\t\t\t\t'f82' => '50',\n\t\t\t\t'f83' => '49',\n\t\t\t\t'f84' => '42',\n\t\t\t\t'f85' => '60',\n\t\t\t\t'f86' => '48',\n\t\t\t\t'f87' => '43',\n\t\t\t\t'f88' => '29',\n\t\t\t\t'f89' => '31',\n\t\t\t\t'f90' => '136',\n\t\t\t),\n\t\t\t31 => \n\t\t\tarray (\n\t\t\t\t'id' => '32',\n\t\t\t\t'slug' => 'east-wolds-and-costal',\n\t\t\t\t'seats' => '3',\n\t\t\t\t'body_id' => '2',\n\t\t\t\t'created_at' => '2015-01-20 12:24:46',\n\t\t\t\t'updated_at' => '2015-01-20 12:24:46',\n\t\t\t\t'ons_district_code' => 'E05001695',\n\t\t\t\t'ons_district_code_old' => '00FBNM',\n\t\t\t\t'name' => 'East Wolds and Coastal',\n\t\t\t\t'ons_la_code' => 'E06000011',\n\t\t\t\t'body_name' => 'East Riding of Yorkshire',\n\t\t\t\t'ons_constituency_code' => 'E14000683',\n\t\t\t\t'ons_constituency_code_old' => 'B55',\n\t\t\t\t'ons_constituency_name' => 'East Yorkshire',\n\t\t\t\t'male_all_ages' => '7026',\n\t\t\t\t'm0' => '64',\n\t\t\t\t'm1' => '66',\n\t\t\t\t'm2' => '75',\n\t\t\t\t'm3' => '71',\n\t\t\t\t'm4' => '56',\n\t\t\t\t'm5' => '70',\n\t\t\t\t'm6' => '84',\n\t\t\t\t'm7' => '70',\n\t\t\t\t'm8' => '61',\n\t\t\t\t'm9' => '61',\n\t\t\t\t'm10' => '69',\n\t\t\t\t'm11' => '86',\n\t\t\t\t'm12' => '76',\n\t\t\t\t'm13' => '89',\n\t\t\t\t'm14' => '86',\n\t\t\t\t'm15' => '63',\n\t\t\t\t'm16' => '79',\n\t\t\t\t'm17' => '85',\n\t\t\t\t'm18' => '87',\n\t\t\t\t'm19' => '81',\n\t\t\t\t'm20' => '65',\n\t\t\t\t'm21' => '61',\n\t\t\t\t'm22' => '51',\n\t\t\t\t'm23' => '57',\n\t\t\t\t'm24' => '56',\n\t\t\t\t'm25' => '55',\n\t\t\t\t'm26' => '53',\n\t\t\t\t'm27' => '40',\n\t\t\t\t'm28' => '44',\n\t\t\t\t'm29' => '36',\n\t\t\t\t'm30' => '44',\n\t\t\t\t'm31' => '63',\n\t\t\t\t'm32' => '54',\n\t\t\t\t'm33' => '63',\n\t\t\t\t'm34' => '56',\n\t\t\t\t'm35' => '70',\n\t\t\t\t'm36' => '56',\n\t\t\t\t'm37' => '63',\n\t\t\t\t'm38' => '82',\n\t\t\t\t'm39' => '57',\n\t\t\t\t'm40' => '93',\n\t\t\t\t'm41' => '86',\n\t\t\t\t'm42' => '103',\n\t\t\t\t'm43' => '97',\n\t\t\t\t'm44' => '98',\n\t\t\t\t'm45' => '114',\n\t\t\t\t'm46' => '120',\n\t\t\t\t'm47' => '103',\n\t\t\t\t'm48' => '121',\n\t\t\t\t'm49' => '103',\n\t\t\t\t'm50' => '94',\n\t\t\t\t'm51' => '131',\n\t\t\t\t'm52' => '125',\n\t\t\t\t'm53' => '105',\n\t\t\t\t'm54' => '97',\n\t\t\t\t'm55' => '111',\n\t\t\t\t'm56' => '109',\n\t\t\t\t'm57' => '99',\n\t\t\t\t'm58' => '101',\n\t\t\t\t'm59' => '95',\n\t\t\t\t'm60' => '109',\n\t\t\t\t'm61' => '97',\n\t\t\t\t'm62' => '120',\n\t\t\t\t'm63' => '116',\n\t\t\t\t'm64' => '133',\n\t\t\t\t'm65' => '116',\n\t\t\t\t'm66' => '159',\n\t\t\t\t'm67' => '116',\n\t\t\t\t'm68' => '125',\n\t\t\t\t'm69' => '122',\n\t\t\t\t'm70' => '103',\n\t\t\t\t'm71' => '89',\n\t\t\t\t'm72' => '84',\n\t\t\t\t'm73' => '80',\n\t\t\t\t'm74' => '70',\n\t\t\t\t'm75' => '82',\n\t\t\t\t'm76' => '80',\n\t\t\t\t'm77' => '65',\n\t\t\t\t'm78' => '59',\n\t\t\t\t'm79' => '49',\n\t\t\t\t'm80' => '40',\n\t\t\t\t'm81' => '54',\n\t\t\t\t'm82' => '40',\n\t\t\t\t'm83' => '41',\n\t\t\t\t'm84' => '42',\n\t\t\t\t'm85' => '22',\n\t\t\t\t'm86' => '26',\n\t\t\t\t'm87' => '15',\n\t\t\t\t'm88' => '12',\n\t\t\t\t'm89' => '11',\n\t\t\t\t'm90' => '39',\n\t\t\t\t'female_all_ages' => '7405',\n\t\t\t\t'f0' => '47',\n\t\t\t\t'f1' => '67',\n\t\t\t\t'f2' => '54',\n\t\t\t\t'f3' => '51',\n\t\t\t\t'f4' => '60',\n\t\t\t\t'f5' => '67',\n\t\t\t\t'f6' => '53',\n\t\t\t\t'f7' => '64',\n\t\t\t\t'f8' => '82',\n\t\t\t\t'f9' => '70',\n\t\t\t\t'f10' => '75',\n\t\t\t\t'f11' => '80',\n\t\t\t\t'f12' => '97',\n\t\t\t\t'f13' => '82',\n\t\t\t\t'f14' => '89',\n\t\t\t\t'f15' => '83',\n\t\t\t\t'f16' => '98',\n\t\t\t\t'f17' => '100',\n\t\t\t\t'f18' => '74',\n\t\t\t\t'f19' => '58',\n\t\t\t\t'f20' => '68',\n\t\t\t\t'f21' => '65',\n\t\t\t\t'f22' => '52',\n\t\t\t\t'f23' => '57',\n\t\t\t\t'f24' => '60',\n\t\t\t\t'f25' => '55',\n\t\t\t\t'f26' => '43',\n\t\t\t\t'f27' => '51',\n\t\t\t\t'f28' => '45',\n\t\t\t\t'f29' => '60',\n\t\t\t\t'f30' => '52',\n\t\t\t\t'f31' => '53',\n\t\t\t\t'f32' => '65',\n\t\t\t\t'f33' => '60',\n\t\t\t\t'f34' => '59',\n\t\t\t\t'f35' => '78',\n\t\t\t\t'f36' => '60',\n\t\t\t\t'f37' => '62',\n\t\t\t\t'f38' => '89',\n\t\t\t\t'f39' => '75',\n\t\t\t\t'f40' => '80',\n\t\t\t\t'f41' => '101',\n\t\t\t\t'f42' => '98',\n\t\t\t\t'f43' => '94',\n\t\t\t\t'f44' => '112',\n\t\t\t\t'f45' => '115',\n\t\t\t\t'f46' => '114',\n\t\t\t\t'f47' => '123',\n\t\t\t\t'f48' => '113',\n\t\t\t\t'f49' => '100',\n\t\t\t\t'f50' => '114',\n\t\t\t\t'f51' => '122',\n\t\t\t\t'f52' => '133',\n\t\t\t\t'f53' => '101',\n\t\t\t\t'f54' => '107',\n\t\t\t\t'f55' => '121',\n\t\t\t\t'f56' => '114',\n\t\t\t\t'f57' => '107',\n\t\t\t\t'f58' => '129',\n\t\t\t\t'f59' => '120',\n\t\t\t\t'f60' => '107',\n\t\t\t\t'f61' => '111',\n\t\t\t\t'f62' => '116',\n\t\t\t\t'f63' => '128',\n\t\t\t\t'f64' => '130',\n\t\t\t\t'f65' => '128',\n\t\t\t\t'f66' => '141',\n\t\t\t\t'f67' => '122',\n\t\t\t\t'f68' => '120',\n\t\t\t\t'f69' => '123',\n\t\t\t\t'f70' => '105',\n\t\t\t\t'f71' => '122',\n\t\t\t\t'f72' => '82',\n\t\t\t\t'f73' => '82',\n\t\t\t\t'f74' => '69',\n\t\t\t\t'f75' => '73',\n\t\t\t\t'f76' => '108',\n\t\t\t\t'f77' => '65',\n\t\t\t\t'f78' => '65',\n\t\t\t\t'f79' => '67',\n\t\t\t\t'f80' => '45',\n\t\t\t\t'f81' => '55',\n\t\t\t\t'f82' => '59',\n\t\t\t\t'f83' => '44',\n\t\t\t\t'f84' => '43',\n\t\t\t\t'f85' => '32',\n\t\t\t\t'f86' => '31',\n\t\t\t\t'f87' => '35',\n\t\t\t\t'f88' => '29',\n\t\t\t\t'f89' => '16',\n\t\t\t\t'f90' => '74',\n\t\t\t),\n\t\t\t32 => \n\t\t\tarray (\n\t\t\t\t'id' => '33',\n\t\t\t\t'slug' => 'goole-north',\n\t\t\t\t'seats' => '3',\n\t\t\t\t'body_id' => '2',\n\t\t\t\t'created_at' => '2015-01-20 12:24:46',\n\t\t\t\t'updated_at' => '2015-01-20 12:24:46',\n\t\t\t\t'ons_district_code' => 'E05001696',\n\t\t\t\t'ons_district_code_old' => '00FBNN',\n\t\t\t\t'name' => 'Goole North',\n\t\t\t\t'ons_la_code' => 'E06000011',\n\t\t\t\t'body_name' => 'East Riding of Yorkshire',\n\t\t\t\t'ons_constituency_code' => 'E14000596',\n\t\t\t\t'ons_constituency_code_old' => 'A67',\n\t\t\t\t'ons_constituency_name' => 'Brigg and Goole',\n\t\t\t\t'male_all_ages' => '5367',\n\t\t\t\t'm0' => '73',\n\t\t\t\t'm1' => '86',\n\t\t\t\t'm2' => '72',\n\t\t\t\t'm3' => '84',\n\t\t\t\t'm4' => '73',\n\t\t\t\t'm5' => '59',\n\t\t\t\t'm6' => '70',\n\t\t\t\t'm7' => '64',\n\t\t\t\t'm8' => '56',\n\t\t\t\t'm9' => '63',\n\t\t\t\t'm10' => '46',\n\t\t\t\t'm11' => '49',\n\t\t\t\t'm12' => '51',\n\t\t\t\t'm13' => '58',\n\t\t\t\t'm14' => '52',\n\t\t\t\t'm15' => '61',\n\t\t\t\t'm16' => '69',\n\t\t\t\t'm17' => '61',\n\t\t\t\t'm18' => '45',\n\t\t\t\t'm19' => '71',\n\t\t\t\t'm20' => '82',\n\t\t\t\t'm21' => '60',\n\t\t\t\t'm22' => '51',\n\t\t\t\t'm23' => '75',\n\t\t\t\t'm24' => '62',\n\t\t\t\t'm25' => '69',\n\t\t\t\t'm26' => '71',\n\t\t\t\t'm27' => '65',\n\t\t\t\t'm28' => '85',\n\t\t\t\t'm29' => '60',\n\t\t\t\t'm30' => '71',\n\t\t\t\t'm31' => '90',\n\t\t\t\t'm32' => '73',\n\t\t\t\t'm33' => '76',\n\t\t\t\t'm34' => '79',\n\t\t\t\t'm35' => '64',\n\t\t\t\t'm36' => '55',\n\t\t\t\t'm37' => '63',\n\t\t\t\t'm38' => '72',\n\t\t\t\t'm39' => '75',\n\t\t\t\t'm40' => '66',\n\t\t\t\t'm41' => '67',\n\t\t\t\t'm42' => '87',\n\t\t\t\t'm43' => '72',\n\t\t\t\t'm44' => '73',\n\t\t\t\t'm45' => '69',\n\t\t\t\t'm46' => '85',\n\t\t\t\t'm47' => '82',\n\t\t\t\t'm48' => '69',\n\t\t\t\t'm49' => '87',\n\t\t\t\t'm50' => '85',\n\t\t\t\t'm51' => '79',\n\t\t\t\t'm52' => '68',\n\t\t\t\t'm53' => '57',\n\t\t\t\t'm54' => '80',\n\t\t\t\t'm55' => '82',\n\t\t\t\t'm56' => '58',\n\t\t\t\t'm57' => '50',\n\t\t\t\t'm58' => '53',\n\t\t\t\t'm59' => '46',\n\t\t\t\t'm60' => '76',\n\t\t\t\t'm61' => '69',\n\t\t\t\t'm62' => '55',\n\t\t\t\t'm63' => '58',\n\t\t\t\t'm64' => '69',\n\t\t\t\t'm65' => '59',\n\t\t\t\t'm66' => '82',\n\t\t\t\t'm67' => '64',\n\t\t\t\t'm68' => '49',\n\t\t\t\t'm69' => '56',\n\t\t\t\t'm70' => '45',\n\t\t\t\t'm71' => '50',\n\t\t\t\t'm72' => '40',\n\t\t\t\t'm73' => '43',\n\t\t\t\t'm74' => '55',\n\t\t\t\t'm75' => '40',\n\t\t\t\t'm76' => '49',\n\t\t\t\t'm77' => '37',\n\t\t\t\t'm78' => '36',\n\t\t\t\t'm79' => '31',\n\t\t\t\t'm80' => '33',\n\t\t\t\t'm81' => '30',\n\t\t\t\t'm82' => '31',\n\t\t\t\t'm83' => '28',\n\t\t\t\t'm84' => '16',\n\t\t\t\t'm85' => '13',\n\t\t\t\t'm86' => '7',\n\t\t\t\t'm87' => '21',\n\t\t\t\t'm88' => '14',\n\t\t\t\t'm89' => '10',\n\t\t\t\t'm90' => '25',\n\t\t\t\t'female_all_ages' => '5703',\n\t\t\t\t'f0' => '79',\n\t\t\t\t'f1' => '71',\n\t\t\t\t'f2' => '58',\n\t\t\t\t'f3' => '70',\n\t\t\t\t'f4' => '58',\n\t\t\t\t'f5' => '56',\n\t\t\t\t'f6' => '59',\n\t\t\t\t'f7' => '62',\n\t\t\t\t'f8' => '66',\n\t\t\t\t'f9' => '42',\n\t\t\t\t'f10' => '58',\n\t\t\t\t'f11' => '74',\n\t\t\t\t'f12' => '52',\n\t\t\t\t'f13' => '59',\n\t\t\t\t'f14' => '64',\n\t\t\t\t'f15' => '63',\n\t\t\t\t'f16' => '70',\n\t\t\t\t'f17' => '66',\n\t\t\t\t'f18' => '75',\n\t\t\t\t'f19' => '60',\n\t\t\t\t'f20' => '50',\n\t\t\t\t'f21' => '78',\n\t\t\t\t'f22' => '50',\n\t\t\t\t'f23' => '58',\n\t\t\t\t'f24' => '64',\n\t\t\t\t'f25' => '75',\n\t\t\t\t'f26' => '73',\n\t\t\t\t'f27' => '73',\n\t\t\t\t'f28' => '76',\n\t\t\t\t'f29' => '73',\n\t\t\t\t'f30' => '73',\n\t\t\t\t'f31' => '74',\n\t\t\t\t'f32' => '73',\n\t\t\t\t'f33' => '77',\n\t\t\t\t'f34' => '60',\n\t\t\t\t'f35' => '74',\n\t\t\t\t'f36' => '57',\n\t\t\t\t'f37' => '76',\n\t\t\t\t'f38' => '80',\n\t\t\t\t'f39' => '60',\n\t\t\t\t'f40' => '78',\n\t\t\t\t'f41' => '78',\n\t\t\t\t'f42' => '78',\n\t\t\t\t'f43' => '78',\n\t\t\t\t'f44' => '93',\n\t\t\t\t'f45' => '78',\n\t\t\t\t'f46' => '69',\n\t\t\t\t'f47' => '82',\n\t\t\t\t'f48' => '82',\n\t\t\t\t'f49' => '70',\n\t\t\t\t'f50' => '68',\n\t\t\t\t'f51' => '75',\n\t\t\t\t'f52' => '79',\n\t\t\t\t'f53' => '69',\n\t\t\t\t'f54' => '73',\n\t\t\t\t'f55' => '66',\n\t\t\t\t'f56' => '59',\n\t\t\t\t'f57' => '52',\n\t\t\t\t'f58' => '79',\n\t\t\t\t'f59' => '56',\n\t\t\t\t'f60' => '68',\n\t\t\t\t'f61' => '56',\n\t\t\t\t'f62' => '70',\n\t\t\t\t'f63' => '67',\n\t\t\t\t'f64' => '71',\n\t\t\t\t'f65' => '77',\n\t\t\t\t'f66' => '84',\n\t\t\t\t'f67' => '68',\n\t\t\t\t'f68' => '62',\n\t\t\t\t'f69' => '59',\n\t\t\t\t'f70' => '65',\n\t\t\t\t'f71' => '51',\n\t\t\t\t'f72' => '45',\n\t\t\t\t'f73' => '56',\n\t\t\t\t'f74' => '46',\n\t\t\t\t'f75' => '44',\n\t\t\t\t'f76' => '45',\n\t\t\t\t'f77' => '62',\n\t\t\t\t'f78' => '44',\n\t\t\t\t'f79' => '43',\n\t\t\t\t'f80' => '41',\n\t\t\t\t'f81' => '28',\n\t\t\t\t'f82' => '41',\n\t\t\t\t'f83' => '41',\n\t\t\t\t'f84' => '39',\n\t\t\t\t'f85' => '28',\n\t\t\t\t'f86' => '28',\n\t\t\t\t'f87' => '37',\n\t\t\t\t'f88' => '22',\n\t\t\t\t'f89' => '16',\n\t\t\t\t'f90' => '101',\n\t\t\t),\n\t\t\t33 => \n\t\t\tarray (\n\t\t\t\t'id' => '34',\n\t\t\t\t'slug' => 'goole-south',\n\t\t\t\t'seats' => '3',\n\t\t\t\t'body_id' => '2',\n\t\t\t\t'created_at' => '2015-01-20 12:24:46',\n\t\t\t\t'updated_at' => '2015-01-20 12:24:46',\n\t\t\t\t'ons_district_code' => 'E05001697',\n\t\t\t\t'ons_district_code_old' => '00FBNP',\n\t\t\t\t'name' => 'Goole South',\n\t\t\t\t'ons_la_code' => 'E06000011',\n\t\t\t\t'body_name' => 'East Riding of Yorkshire',\n\t\t\t\t'ons_constituency_code' => 'E14000596',\n\t\t\t\t'ons_constituency_code_old' => 'A67',\n\t\t\t\t'ons_constituency_name' => 'Brigg and Goole',\n\t\t\t\t'male_all_ages' => '5320',\n\t\t\t\t'm0' => '98',\n\t\t\t\t'm1' => '121',\n\t\t\t\t'm2' => '88',\n\t\t\t\t'm3' => '92',\n\t\t\t\t'm4' => '85',\n\t\t\t\t'm5' => '83',\n\t\t\t\t'm6' => '84',\n\t\t\t\t'm7' => '64',\n\t\t\t\t'm8' => '61',\n\t\t\t\t'm9' => '57',\n\t\t\t\t'm10' => '43',\n\t\t\t\t'm11' => '63',\n\t\t\t\t'm12' => '41',\n\t\t\t\t'm13' => '56',\n\t\t\t\t'm14' => '48',\n\t\t\t\t'm15' => '53',\n\t\t\t\t'm16' => '55',\n\t\t\t\t'm17' => '70',\n\t\t\t\t'm18' => '71',\n\t\t\t\t'm19' => '69',\n\t\t\t\t'm20' => '68',\n\t\t\t\t'm21' => '76',\n\t\t\t\t'm22' => '78',\n\t\t\t\t'm23' => '80',\n\t\t\t\t'm24' => '88',\n\t\t\t\t'm25' => '91',\n\t\t\t\t'm26' => '88',\n\t\t\t\t'm27' => '79',\n\t\t\t\t'm28' => '81',\n\t\t\t\t'm29' => '83',\n\t\t\t\t'm30' => '85',\n\t\t\t\t'm31' => '85',\n\t\t\t\t'm32' => '75',\n\t\t\t\t'm33' => '77',\n\t\t\t\t'm34' => '74',\n\t\t\t\t'm35' => '73',\n\t\t\t\t'm36' => '61',\n\t\t\t\t'm37' => '72',\n\t\t\t\t'm38' => '87',\n\t\t\t\t'm39' => '69',\n\t\t\t\t'm40' => '60',\n\t\t\t\t'm41' => '83',\n\t\t\t\t'm42' => '80',\n\t\t\t\t'm43' => '69',\n\t\t\t\t'm44' => '69',\n\t\t\t\t'm45' => '61',\n\t\t\t\t'm46' => '77',\n\t\t\t\t'm47' => '95',\n\t\t\t\t'm48' => '73',\n\t\t\t\t'm49' => '74',\n\t\t\t\t'm50' => '74',\n\t\t\t\t'm51' => '59',\n\t\t\t\t'm52' => '72',\n\t\t\t\t'm53' => '61',\n\t\t\t\t'm54' => '60',\n\t\t\t\t'm55' => '63',\n\t\t\t\t'm56' => '62',\n\t\t\t\t'm57' => '46',\n\t\t\t\t'm58' => '61',\n\t\t\t\t'm59' => '63',\n\t\t\t\t'm60' => '54',\n\t\t\t\t'm61' => '55',\n\t\t\t\t'm62' => '47',\n\t\t\t\t'm63' => '54',\n\t\t\t\t'm64' => '59',\n\t\t\t\t'm65' => '62',\n\t\t\t\t'm66' => '58',\n\t\t\t\t'm67' => '49',\n\t\t\t\t'm68' => '46',\n\t\t\t\t'm69' => '48',\n\t\t\t\t'm70' => '30',\n\t\t\t\t'm71' => '31',\n\t\t\t\t'm72' => '24',\n\t\t\t\t'm73' => '25',\n\t\t\t\t'm74' => '28',\n\t\t\t\t'm75' => '34',\n\t\t\t\t'm76' => '27',\n\t\t\t\t'm77' => '34',\n\t\t\t\t'm78' => '27',\n\t\t\t\t'm79' => '26',\n\t\t\t\t'm80' => '31',\n\t\t\t\t'm81' => '14',\n\t\t\t\t'm82' => '22',\n\t\t\t\t'm83' => '14',\n\t\t\t\t'm84' => '12',\n\t\t\t\t'm85' => '8',\n\t\t\t\t'm86' => '14',\n\t\t\t\t'm87' => '10',\n\t\t\t\t'm88' => '17',\n\t\t\t\t'm89' => '7',\n\t\t\t\t'm90' => '19',\n\t\t\t\t'female_all_ages' => '5211',\n\t\t\t\t'f0' => '77',\n\t\t\t\t'f1' => '71',\n\t\t\t\t'f2' => '75',\n\t\t\t\t'f3' => '92',\n\t\t\t\t'f4' => '70',\n\t\t\t\t'f5' => '62',\n\t\t\t\t'f6' => '56',\n\t\t\t\t'f7' => '61',\n\t\t\t\t'f8' => '73',\n\t\t\t\t'f9' => '56',\n\t\t\t\t'f10' => '63',\n\t\t\t\t'f11' => '55',\n\t\t\t\t'f12' => '52',\n\t\t\t\t'f13' => '62',\n\t\t\t\t'f14' => '58',\n\t\t\t\t'f15' => '45',\n\t\t\t\t'f16' => '58',\n\t\t\t\t'f17' => '65',\n\t\t\t\t'f18' => '58',\n\t\t\t\t'f19' => '71',\n\t\t\t\t'f20' => '69',\n\t\t\t\t'f21' => '89',\n\t\t\t\t'f22' => '78',\n\t\t\t\t'f23' => '62',\n\t\t\t\t'f24' => '84',\n\t\t\t\t'f25' => '86',\n\t\t\t\t'f26' => '74',\n\t\t\t\t'f27' => '106',\n\t\t\t\t'f28' => '86',\n\t\t\t\t'f29' => '74',\n\t\t\t\t'f30' => '61',\n\t\t\t\t'f31' => '67',\n\t\t\t\t'f32' => '78',\n\t\t\t\t'f33' => '78',\n\t\t\t\t'f34' => '67',\n\t\t\t\t'f35' => '62',\n\t\t\t\t'f36' => '63',\n\t\t\t\t'f37' => '50',\n\t\t\t\t'f38' => '61',\n\t\t\t\t'f39' => '70',\n\t\t\t\t'f40' => '51',\n\t\t\t\t'f41' => '67',\n\t\t\t\t'f42' => '64',\n\t\t\t\t'f43' => '63',\n\t\t\t\t'f44' => '84',\n\t\t\t\t'f45' => '78',\n\t\t\t\t'f46' => '57',\n\t\t\t\t'f47' => '57',\n\t\t\t\t'f48' => '70',\n\t\t\t\t'f49' => '69',\n\t\t\t\t'f50' => '75',\n\t\t\t\t'f51' => '81',\n\t\t\t\t'f52' => '76',\n\t\t\t\t'f53' => '71',\n\t\t\t\t'f54' => '75',\n\t\t\t\t'f55' => '56',\n\t\t\t\t'f56' => '63',\n\t\t\t\t'f57' => '79',\n\t\t\t\t'f58' => '58',\n\t\t\t\t'f59' => '53',\n\t\t\t\t'f60' => '59',\n\t\t\t\t'f61' => '49',\n\t\t\t\t'f62' => '53',\n\t\t\t\t'f63' => '62',\n\t\t\t\t'f64' => '50',\n\t\t\t\t'f65' => '54',\n\t\t\t\t'f66' => '50',\n\t\t\t\t'f67' => '31',\n\t\t\t\t'f68' => '38',\n\t\t\t\t'f69' => '51',\n\t\t\t\t'f70' => '34',\n\t\t\t\t'f71' => '31',\n\t\t\t\t'f72' => '30',\n\t\t\t\t'f73' => '42',\n\t\t\t\t'f74' => '40',\n\t\t\t\t'f75' => '29',\n\t\t\t\t'f76' => '29',\n\t\t\t\t'f77' => '30',\n\t\t\t\t'f78' => '47',\n\t\t\t\t'f79' => '33',\n\t\t\t\t'f80' => '26',\n\t\t\t\t'f81' => '30',\n\t\t\t\t'f82' => '17',\n\t\t\t\t'f83' => '27',\n\t\t\t\t'f84' => '21',\n\t\t\t\t'f85' => '26',\n\t\t\t\t'f86' => '20',\n\t\t\t\t'f87' => '18',\n\t\t\t\t'f88' => '11',\n\t\t\t\t'f89' => '17',\n\t\t\t\t'f90' => '64',\n\t\t\t),\n\t\t\t34 => \n\t\t\tarray (\n\t\t\t\t'id' => '35',\n\t\t\t\t'slug' => 'hessle',\n\t\t\t\t'seats' => '3',\n\t\t\t\t'body_id' => '2',\n\t\t\t\t'created_at' => '2015-01-20 12:24:46',\n\t\t\t\t'updated_at' => '2015-01-20 12:24:46',\n\t\t\t\t'ons_district_code' => 'E05001698',\n\t\t\t\t'ons_district_code_old' => '00FBNQ',\n\t\t\t\t'name' => 'Hessle',\n\t\t\t\t'ons_la_code' => 'E06000011',\n\t\t\t\t'body_name' => 'East Riding of Yorkshire',\n\t\t\t\t'ons_constituency_code' => 'E14000773',\n\t\t\t\t'ons_constituency_code_old' => 'C46',\n\t\t\t\t'ons_constituency_name' => 'Kingston upon Hull West and Hessle',\n\t\t\t\t'male_all_ages' => '7205',\n\t\t\t\t'm0' => '73',\n\t\t\t\t'm1' => '87',\n\t\t\t\t'm2' => '79',\n\t\t\t\t'm3' => '86',\n\t\t\t\t'm4' => '72',\n\t\t\t\t'm5' => '100',\n\t\t\t\t'm6' => '80',\n\t\t\t\t'm7' => '84',\n\t\t\t\t'm8' => '82',\n\t\t\t\t'm9' => '77',\n\t\t\t\t'm10' => '63',\n\t\t\t\t'm11' => '81',\n\t\t\t\t'm12' => '108',\n\t\t\t\t'm13' => '95',\n\t\t\t\t'm14' => '103',\n\t\t\t\t'm15' => '86',\n\t\t\t\t'm16' => '98',\n\t\t\t\t'm17' => '85',\n\t\t\t\t'm18' => '90',\n\t\t\t\t'm19' => '84',\n\t\t\t\t'm20' => '83',\n\t\t\t\t'm21' => '89',\n\t\t\t\t'm22' => '93',\n\t\t\t\t'm23' => '67',\n\t\t\t\t'm24' => '76',\n\t\t\t\t'm25' => '97',\n\t\t\t\t'm26' => '81',\n\t\t\t\t'm27' => '82',\n\t\t\t\t'm28' => '87',\n\t\t\t\t'm29' => '80',\n\t\t\t\t'm30' => '77',\n\t\t\t\t'm31' => '63',\n\t\t\t\t'm32' => '103',\n\t\t\t\t'm33' => '71',\n\t\t\t\t'm34' => '77',\n\t\t\t\t'm35' => '79',\n\t\t\t\t'm36' => '83',\n\t\t\t\t'm37' => '97',\n\t\t\t\t'm38' => '84',\n\t\t\t\t'm39' => '78',\n\t\t\t\t'm40' => '99',\n\t\t\t\t'm41' => '104',\n\t\t\t\t'm42' => '97',\n\t\t\t\t'm43' => '102',\n\t\t\t\t'm44' => '110',\n\t\t\t\t'm45' => '114',\n\t\t\t\t'm46' => '121',\n\t\t\t\t'm47' => '110',\n\t\t\t\t'm48' => '133',\n\t\t\t\t'm49' => '123',\n\t\t\t\t'm50' => '134',\n\t\t\t\t'm51' => '117',\n\t\t\t\t'm52' => '118',\n\t\t\t\t'm53' => '96',\n\t\t\t\t'm54' => '105',\n\t\t\t\t'm55' => '116',\n\t\t\t\t'm56' => '110',\n\t\t\t\t'm57' => '82',\n\t\t\t\t'm58' => '104',\n\t\t\t\t'm59' => '89',\n\t\t\t\t'm60' => '69',\n\t\t\t\t'm61' => '74',\n\t\t\t\t'm62' => '76',\n\t\t\t\t'm63' => '90',\n\t\t\t\t'm64' => '89',\n\t\t\t\t'm65' => '96',\n\t\t\t\t'm66' => '114',\n\t\t\t\t'm67' => '74',\n\t\t\t\t'm68' => '59',\n\t\t\t\t'm69' => '69',\n\t\t\t\t'm70' => '60',\n\t\t\t\t'm71' => '58',\n\t\t\t\t'm72' => '70',\n\t\t\t\t'm73' => '57',\n\t\t\t\t'm74' => '62',\n\t\t\t\t'm75' => '58',\n\t\t\t\t'm76' => '61',\n\t\t\t\t'm77' => '47',\n\t\t\t\t'm78' => '38',\n\t\t\t\t'm79' => '49',\n\t\t\t\t'm80' => '42',\n\t\t\t\t'm81' => '56',\n\t\t\t\t'm82' => '32',\n\t\t\t\t'm83' => '31',\n\t\t\t\t'm84' => '27',\n\t\t\t\t'm85' => '17',\n\t\t\t\t'm86' => '17',\n\t\t\t\t'm87' => '15',\n\t\t\t\t'm88' => '12',\n\t\t\t\t'm89' => '12',\n\t\t\t\t'm90' => '30',\n\t\t\t\t'female_all_ages' => '7678',\n\t\t\t\t'f0' => '78',\n\t\t\t\t'f1' => '71',\n\t\t\t\t'f2' => '77',\n\t\t\t\t'f3' => '80',\n\t\t\t\t'f4' => '76',\n\t\t\t\t'f5' => '84',\n\t\t\t\t'f6' => '75',\n\t\t\t\t'f7' => '67',\n\t\t\t\t'f8' => '54',\n\t\t\t\t'f9' => '74',\n\t\t\t\t'f10' => '75',\n\t\t\t\t'f11' => '76',\n\t\t\t\t'f12' => '90',\n\t\t\t\t'f13' => '70',\n\t\t\t\t'f14' => '86',\n\t\t\t\t'f15' => '91',\n\t\t\t\t'f16' => '89',\n\t\t\t\t'f17' => '98',\n\t\t\t\t'f18' => '77',\n\t\t\t\t'f19' => '75',\n\t\t\t\t'f20' => '77',\n\t\t\t\t'f21' => '78',\n\t\t\t\t'f22' => '72',\n\t\t\t\t'f23' => '65',\n\t\t\t\t'f24' => '82',\n\t\t\t\t'f25' => '106',\n\t\t\t\t'f26' => '103',\n\t\t\t\t'f27' => '81',\n\t\t\t\t'f28' => '95',\n\t\t\t\t'f29' => '84',\n\t\t\t\t'f30' => '83',\n\t\t\t\t'f31' => '89',\n\t\t\t\t'f32' => '94',\n\t\t\t\t'f33' => '89',\n\t\t\t\t'f34' => '115',\n\t\t\t\t'f35' => '73',\n\t\t\t\t'f36' => '87',\n\t\t\t\t'f37' => '89',\n\t\t\t\t'f38' => '103',\n\t\t\t\t'f39' => '94',\n\t\t\t\t'f40' => '116',\n\t\t\t\t'f41' => '98',\n\t\t\t\t'f42' => '110',\n\t\t\t\t'f43' => '116',\n\t\t\t\t'f44' => '130',\n\t\t\t\t'f45' => '136',\n\t\t\t\t'f46' => '123',\n\t\t\t\t'f47' => '109',\n\t\t\t\t'f48' => '139',\n\t\t\t\t'f49' => '128',\n\t\t\t\t'f50' => '109',\n\t\t\t\t'f51' => '120',\n\t\t\t\t'f52' => '113',\n\t\t\t\t'f53' => '99',\n\t\t\t\t'f54' => '109',\n\t\t\t\t'f55' => '113',\n\t\t\t\t'f56' => '85',\n\t\t\t\t'f57' => '103',\n\t\t\t\t'f58' => '98',\n\t\t\t\t'f59' => '113',\n\t\t\t\t'f60' => '91',\n\t\t\t\t'f61' => '96',\n\t\t\t\t'f62' => '89',\n\t\t\t\t'f63' => '79',\n\t\t\t\t'f64' => '64',\n\t\t\t\t'f65' => '96',\n\t\t\t\t'f66' => '105',\n\t\t\t\t'f67' => '73',\n\t\t\t\t'f68' => '72',\n\t\t\t\t'f69' => '60',\n\t\t\t\t'f70' => '86',\n\t\t\t\t'f71' => '68',\n\t\t\t\t'f72' => '61',\n\t\t\t\t'f73' => '77',\n\t\t\t\t'f74' => '66',\n\t\t\t\t'f75' => '69',\n\t\t\t\t'f76' => '73',\n\t\t\t\t'f77' => '61',\n\t\t\t\t'f78' => '70',\n\t\t\t\t'f79' => '51',\n\t\t\t\t'f80' => '59',\n\t\t\t\t'f81' => '52',\n\t\t\t\t'f82' => '61',\n\t\t\t\t'f83' => '49',\n\t\t\t\t'f84' => '51',\n\t\t\t\t'f85' => '45',\n\t\t\t\t'f86' => '36',\n\t\t\t\t'f87' => '34',\n\t\t\t\t'f88' => '25',\n\t\t\t\t'f89' => '24',\n\t\t\t\t'f90' => '146',\n\t\t\t),\n\t\t\t35 => \n\t\t\tarray (\n\t\t\t\t'id' => '36',\n\t\t\t\t'slug' => 'holderness',\n\t\t\t\t'seats' => '3',\n\t\t\t\t'body_id' => '2',\n\t\t\t\t'created_at' => '2015-01-20 12:24:46',\n\t\t\t\t'updated_at' => '2015-01-20 12:24:46',\n\t\t\t\t'ons_district_code' => 'E05001699',\n\t\t\t\t'ons_district_code_old' => '00FBNR',\n\t\t\t\t'name' => 'Howden',\n\t\t\t\t'ons_la_code' => 'E06000011',\n\t\t\t\t'body_name' => 'East Riding of Yorkshire',\n\t\t\t\t'ons_constituency_code' => 'E14000724',\n\t\t\t\t'ons_constituency_code_old' => 'B96',\n\t\t\t\t'ons_constituency_name' => 'Haltemprice and Howden',\n\t\t\t\t'male_all_ages' => '2486',\n\t\t\t\t'm0' => '20',\n\t\t\t\t'm1' => '27',\n\t\t\t\t'm2' => '24',\n\t\t\t\t'm3' => '26',\n\t\t\t\t'm4' => '30',\n\t\t\t\t'm5' => '23',\n\t\t\t\t'm6' => '33',\n\t\t\t\t'm7' => '23',\n\t\t\t\t'm8' => '31',\n\t\t\t\t'm9' => '34',\n\t\t\t\t'm10' => '31',\n\t\t\t\t'm11' => '28',\n\t\t\t\t'm12' => '26',\n\t\t\t\t'm13' => '33',\n\t\t\t\t'm14' => '35',\n\t\t\t\t'm15' => '34',\n\t\t\t\t'm16' => '30',\n\t\t\t\t'm17' => '31',\n\t\t\t\t'm18' => '25',\n\t\t\t\t'm19' => '27',\n\t\t\t\t'm20' => '29',\n\t\t\t\t'm21' => '21',\n\t\t\t\t'm22' => '14',\n\t\t\t\t'm23' => '28',\n\t\t\t\t'm24' => '28',\n\t\t\t\t'm25' => '32',\n\t\t\t\t'm26' => '31',\n\t\t\t\t'm27' => '25',\n\t\t\t\t'm28' => '12',\n\t\t\t\t'm29' => '17',\n\t\t\t\t'm30' => '19',\n\t\t\t\t'm31' => '27',\n\t\t\t\t'm32' => '28',\n\t\t\t\t'm33' => '33',\n\t\t\t\t'm34' => '24',\n\t\t\t\t'm35' => '27',\n\t\t\t\t'm36' => '19',\n\t\t\t\t'm37' => '30',\n\t\t\t\t'm38' => '30',\n\t\t\t\t'm39' => '30',\n\t\t\t\t'm40' => '29',\n\t\t\t\t'm41' => '27',\n\t\t\t\t'm42' => '41',\n\t\t\t\t'm43' => '35',\n\t\t\t\t'm44' => '31',\n\t\t\t\t'm45' => '42',\n\t\t\t\t'm46' => '46',\n\t\t\t\t'm47' => '41',\n\t\t\t\t'm48' => '39',\n\t\t\t\t'm49' => '44',\n\t\t\t\t'm50' => '33',\n\t\t\t\t'm51' => '35',\n\t\t\t\t'm52' => '48',\n\t\t\t\t'm53' => '41',\n\t\t\t\t'm54' => '35',\n\t\t\t\t'm55' => '58',\n\t\t\t\t'm56' => '37',\n\t\t\t\t'm57' => '33',\n\t\t\t\t'm58' => '39',\n\t\t\t\t'm59' => '29',\n\t\t\t\t'm60' => '35',\n\t\t\t\t'm61' => '35',\n\t\t\t\t'm62' => '32',\n\t\t\t\t'm63' => '34',\n\t\t\t\t'm64' => '45',\n\t\t\t\t'm65' => '33',\n\t\t\t\t'm66' => '37',\n\t\t\t\t'm67' => '35',\n\t\t\t\t'm68' => '33',\n\t\t\t\t'm69' => '26',\n\t\t\t\t'm70' => '20',\n\t\t\t\t'm71' => '24',\n\t\t\t\t'm72' => '20',\n\t\t\t\t'm73' => '29',\n\t\t\t\t'm74' => '22',\n\t\t\t\t'm75' => '21',\n\t\t\t\t'm76' => '30',\n\t\t\t\t'm77' => '17',\n\t\t\t\t'm78' => '12',\n\t\t\t\t'm79' => '14',\n\t\t\t\t'm80' => '9',\n\t\t\t\t'm81' => '6',\n\t\t\t\t'm82' => '14',\n\t\t\t\t'm83' => '5',\n\t\t\t\t'm84' => '18',\n\t\t\t\t'm85' => '7',\n\t\t\t\t'm86' => '15',\n\t\t\t\t'm87' => '5',\n\t\t\t\t'm88' => '5',\n\t\t\t\t'm89' => '4',\n\t\t\t\t'm90' => '6',\n\t\t\t\t'female_all_ages' => '2460',\n\t\t\t\t'f0' => '12',\n\t\t\t\t'f1' => '24',\n\t\t\t\t'f2' => '28',\n\t\t\t\t'f3' => '23',\n\t\t\t\t'f4' => '27',\n\t\t\t\t'f5' => '15',\n\t\t\t\t'f6' => '30',\n\t\t\t\t'f7' => '19',\n\t\t\t\t'f8' => '22',\n\t\t\t\t'f9' => '21',\n\t\t\t\t'f10' => '23',\n\t\t\t\t'f11' => '21',\n\t\t\t\t'f12' => '14',\n\t\t\t\t'f13' => '31',\n\t\t\t\t'f14' => '24',\n\t\t\t\t'f15' => '27',\n\t\t\t\t'f16' => '21',\n\t\t\t\t'f17' => '24',\n\t\t\t\t'f18' => '22',\n\t\t\t\t'f19' => '28',\n\t\t\t\t'f20' => '21',\n\t\t\t\t'f21' => '31',\n\t\t\t\t'f22' => '29',\n\t\t\t\t'f23' => '22',\n\t\t\t\t'f24' => '19',\n\t\t\t\t'f25' => '26',\n\t\t\t\t'f26' => '21',\n\t\t\t\t'f27' => '21',\n\t\t\t\t'f28' => '30',\n\t\t\t\t'f29' => '22',\n\t\t\t\t'f30' => '25',\n\t\t\t\t'f31' => '21',\n\t\t\t\t'f32' => '22',\n\t\t\t\t'f33' => '33',\n\t\t\t\t'f34' => '33',\n\t\t\t\t'f35' => '27',\n\t\t\t\t'f36' => '20',\n\t\t\t\t'f37' => '25',\n\t\t\t\t'f38' => '27',\n\t\t\t\t'f39' => '33',\n\t\t\t\t'f40' => '37',\n\t\t\t\t'f41' => '41',\n\t\t\t\t'f42' => '42',\n\t\t\t\t'f43' => '24',\n\t\t\t\t'f44' => '32',\n\t\t\t\t'f45' => '44',\n\t\t\t\t'f46' => '35',\n\t\t\t\t'f47' => '42',\n\t\t\t\t'f48' => '39',\n\t\t\t\t'f49' => '40',\n\t\t\t\t'f50' => '48',\n\t\t\t\t'f51' => '29',\n\t\t\t\t'f52' => '40',\n\t\t\t\t'f53' => '46',\n\t\t\t\t'f54' => '34',\n\t\t\t\t'f55' => '44',\n\t\t\t\t'f56' => '46',\n\t\t\t\t'f57' => '34',\n\t\t\t\t'f58' => '35',\n\t\t\t\t'f59' => '35',\n\t\t\t\t'f60' => '43',\n\t\t\t\t'f61' => '34',\n\t\t\t\t'f62' => '31',\n\t\t\t\t'f63' => '38',\n\t\t\t\t'f64' => '38',\n\t\t\t\t'f65' => '38',\n\t\t\t\t'f66' => '48',\n\t\t\t\t'f67' => '30',\n\t\t\t\t'f68' => '33',\n\t\t\t\t'f69' => '30',\n\t\t\t\t'f70' => '18',\n\t\t\t\t'f71' => '24',\n\t\t\t\t'f72' => '25',\n\t\t\t\t'f73' => '19',\n\t\t\t\t'f74' => '19',\n\t\t\t\t'f75' => '29',\n\t\t\t\t'f76' => '25',\n\t\t\t\t'f77' => '18',\n\t\t\t\t'f78' => '17',\n\t\t\t\t'f79' => '19',\n\t\t\t\t'f80' => '15',\n\t\t\t\t'f81' => '16',\n\t\t\t\t'f82' => '16',\n\t\t\t\t'f83' => '13',\n\t\t\t\t'f84' => '16',\n\t\t\t\t'f85' => '9',\n\t\t\t\t'f86' => '9',\n\t\t\t\t'f87' => '11',\n\t\t\t\t'f88' => '7',\n\t\t\t\t'f89' => '12',\n\t\t\t\t'f90' => '29',\n\t\t\t),\n\t\t\t36 => \n\t\t\tarray (\n\t\t\t\t'id' => '37',\n\t\t\t\t'slug' => 'howdenshire',\n\t\t\t\t'seats' => '3',\n\t\t\t\t'body_id' => '2',\n\t\t\t\t'created_at' => '2015-01-20 12:24:46',\n\t\t\t\t'updated_at' => '2015-01-20 12:24:46',\n\t\t\t\t'ons_district_code' => 'E05001700',\n\t\t\t\t'ons_district_code_old' => '00FBNS',\n\t\t\t\t'name' => 'Howdenshire',\n\t\t\t\t'ons_la_code' => 'E06000011',\n\t\t\t\t'body_name' => 'East Riding of Yorkshire',\n\t\t\t\t'ons_constituency_code' => 'E14000724',\n\t\t\t\t'ons_constituency_code_old' => 'B96',\n\t\t\t\t'ons_constituency_name' => 'Haltemprice and Howden',\n\t\t\t\t'male_all_ages' => '7639',\n\t\t\t\t'm0' => '65',\n\t\t\t\t'm1' => '70',\n\t\t\t\t'm2' => '89',\n\t\t\t\t'm3' => '67',\n\t\t\t\t'm4' => '72',\n\t\t\t\t'm5' => '83',\n\t\t\t\t'm6' => '74',\n\t\t\t\t'm7' => '79',\n\t\t\t\t'm8' => '73',\n\t\t\t\t'm9' => '77',\n\t\t\t\t'm10' => '68',\n\t\t\t\t'm11' => '61',\n\t\t\t\t'm12' => '93',\n\t\t\t\t'm13' => '80',\n\t\t\t\t'm14' => '74',\n\t\t\t\t'm15' => '93',\n\t\t\t\t'm16' => '94',\n\t\t\t\t'm17' => '94',\n\t\t\t\t'm18' => '75',\n\t\t\t\t'm19' => '94',\n\t\t\t\t'm20' => '43',\n\t\t\t\t'm21' => '74',\n\t\t\t\t'm22' => '88',\n\t\t\t\t'm23' => '93',\n\t\t\t\t'm24' => '96',\n\t\t\t\t'm25' => '89',\n\t\t\t\t'm26' => '72',\n\t\t\t\t'm27' => '65',\n\t\t\t\t'm28' => '63',\n\t\t\t\t'm29' => '81',\n\t\t\t\t'm30' => '84',\n\t\t\t\t'm31' => '89',\n\t\t\t\t'm32' => '77',\n\t\t\t\t'm33' => '81',\n\t\t\t\t'm34' => '81',\n\t\t\t\t'm35' => '79',\n\t\t\t\t'm36' => '82',\n\t\t\t\t'm37' => '80',\n\t\t\t\t'm38' => '96',\n\t\t\t\t'm39' => '95',\n\t\t\t\t'm40' => '105',\n\t\t\t\t'm41' => '130',\n\t\t\t\t'm42' => '127',\n\t\t\t\t'm43' => '130',\n\t\t\t\t'm44' => '112',\n\t\t\t\t'm45' => '125',\n\t\t\t\t'm46' => '92',\n\t\t\t\t'm47' => '142',\n\t\t\t\t'm48' => '130',\n\t\t\t\t'm49' => '144',\n\t\t\t\t'm50' => '128',\n\t\t\t\t'm51' => '110',\n\t\t\t\t'm52' => '137',\n\t\t\t\t'm53' => '126',\n\t\t\t\t'm54' => '124',\n\t\t\t\t'm55' => '115',\n\t\t\t\t'm56' => '126',\n\t\t\t\t'm57' => '102',\n\t\t\t\t'm58' => '108',\n\t\t\t\t'm59' => '107',\n\t\t\t\t'm60' => '112',\n\t\t\t\t'm61' => '115',\n\t\t\t\t'm62' => '114',\n\t\t\t\t'm63' => '126',\n\t\t\t\t'm64' => '142',\n\t\t\t\t'm65' => '126',\n\t\t\t\t'm66' => '153',\n\t\t\t\t'm67' => '92',\n\t\t\t\t'm68' => '99',\n\t\t\t\t'm69' => '91',\n\t\t\t\t'm70' => '78',\n\t\t\t\t'm71' => '74',\n\t\t\t\t'm72' => '53',\n\t\t\t\t'm73' => '56',\n\t\t\t\t'm74' => '61',\n\t\t\t\t'm75' => '64',\n\t\t\t\t'm76' => '57',\n\t\t\t\t'm77' => '56',\n\t\t\t\t'm78' => '54',\n\t\t\t\t'm79' => '39',\n\t\t\t\t'm80' => '48',\n\t\t\t\t'm81' => '27',\n\t\t\t\t'm82' => '32',\n\t\t\t\t'm83' => '33',\n\t\t\t\t'm84' => '13',\n\t\t\t\t'm85' => '24',\n\t\t\t\t'm86' => '20',\n\t\t\t\t'm87' => '23',\n\t\t\t\t'm88' => '21',\n\t\t\t\t'm89' => '11',\n\t\t\t\t'm90' => '22',\n\t\t\t\t'female_all_ages' => '7655',\n\t\t\t\t'f0' => '50',\n\t\t\t\t'f1' => '67',\n\t\t\t\t'f2' => '75',\n\t\t\t\t'f3' => '77',\n\t\t\t\t'f4' => '75',\n\t\t\t\t'f5' => '80',\n\t\t\t\t'f6' => '73',\n\t\t\t\t'f7' => '77',\n\t\t\t\t'f8' => '96',\n\t\t\t\t'f9' => '90',\n\t\t\t\t'f10' => '82',\n\t\t\t\t'f11' => '64',\n\t\t\t\t'f12' => '76',\n\t\t\t\t'f13' => '62',\n\t\t\t\t'f14' => '71',\n\t\t\t\t'f15' => '99',\n\t\t\t\t'f16' => '94',\n\t\t\t\t'f17' => '111',\n\t\t\t\t'f18' => '92',\n\t\t\t\t'f19' => '81',\n\t\t\t\t'f20' => '62',\n\t\t\t\t'f21' => '67',\n\t\t\t\t'f22' => '73',\n\t\t\t\t'f23' => '72',\n\t\t\t\t'f24' => '58',\n\t\t\t\t'f25' => '70',\n\t\t\t\t'f26' => '92',\n\t\t\t\t'f27' => '63',\n\t\t\t\t'f28' => '61',\n\t\t\t\t'f29' => '52',\n\t\t\t\t'f30' => '61',\n\t\t\t\t'f31' => '58',\n\t\t\t\t'f32' => '67',\n\t\t\t\t'f33' => '71',\n\t\t\t\t'f34' => '80',\n\t\t\t\t'f35' => '80',\n\t\t\t\t'f36' => '73',\n\t\t\t\t'f37' => '80',\n\t\t\t\t'f38' => '100',\n\t\t\t\t'f39' => '87',\n\t\t\t\t'f40' => '104',\n\t\t\t\t'f41' => '101',\n\t\t\t\t'f42' => '116',\n\t\t\t\t'f43' => '121',\n\t\t\t\t'f44' => '120',\n\t\t\t\t'f45' => '137',\n\t\t\t\t'f46' => '130',\n\t\t\t\t'f47' => '146',\n\t\t\t\t'f48' => '144',\n\t\t\t\t'f49' => '152',\n\t\t\t\t'f50' => '141',\n\t\t\t\t'f51' => '130',\n\t\t\t\t'f52' => '130',\n\t\t\t\t'f53' => '133',\n\t\t\t\t'f54' => '104',\n\t\t\t\t'f55' => '105',\n\t\t\t\t'f56' => '111',\n\t\t\t\t'f57' => '143',\n\t\t\t\t'f58' => '111',\n\t\t\t\t'f59' => '106',\n\t\t\t\t'f60' => '109',\n\t\t\t\t'f61' => '111',\n\t\t\t\t'f62' => '104',\n\t\t\t\t'f63' => '110',\n\t\t\t\t'f64' => '127',\n\t\t\t\t'f65' => '130',\n\t\t\t\t'f66' => '122',\n\t\t\t\t'f67' => '115',\n\t\t\t\t'f68' => '101',\n\t\t\t\t'f69' => '109',\n\t\t\t\t'f70' => '88',\n\t\t\t\t'f71' => '51',\n\t\t\t\t'f72' => '62',\n\t\t\t\t'f73' => '70',\n\t\t\t\t'f74' => '70',\n\t\t\t\t'f75' => '61',\n\t\t\t\t'f76' => '65',\n\t\t\t\t'f77' => '57',\n\t\t\t\t'f78' => '56',\n\t\t\t\t'f79' => '50',\n\t\t\t\t'f80' => '47',\n\t\t\t\t'f81' => '40',\n\t\t\t\t'f82' => '36',\n\t\t\t\t'f83' => '38',\n\t\t\t\t'f84' => '35',\n\t\t\t\t'f85' => '37',\n\t\t\t\t'f86' => '28',\n\t\t\t\t'f87' => '24',\n\t\t\t\t'f88' => '26',\n\t\t\t\t'f89' => '21',\n\t\t\t\t'f90' => '51',\n\t\t\t),\n\t\t\t37 => \n\t\t\tarray (\n\t\t\t\t'id' => '38',\n\t\t\t\t'slug' => 'mid-holderness',\n\t\t\t\t'seats' => '3',\n\t\t\t\t'body_id' => '2',\n\t\t\t\t'created_at' => '2015-01-20 12:24:46',\n\t\t\t\t'updated_at' => '2015-01-20 12:24:46',\n\t\t\t\t'ons_district_code' => 'E05001701',\n\t\t\t\t'ons_district_code_old' => '00FBNT',\n\t\t\t\t'name' => 'Mid Holderness',\n\t\t\t\t'ons_la_code' => 'E06000011',\n\t\t\t\t'body_name' => 'East Riding of Yorkshire',\n\t\t\t\t'ons_constituency_code' => 'E14000556',\n\t\t\t\t'ons_constituency_code_old' => 'A27',\n\t\t\t\t'ons_constituency_name' => 'Beverley and Holderness',\n\t\t\t\t'male_all_ages' => '6917',\n\t\t\t\t'm0' => '54',\n\t\t\t\t'm1' => '55',\n\t\t\t\t'm2' => '55',\n\t\t\t\t'm3' => '56',\n\t\t\t\t'm4' => '64',\n\t\t\t\t'm5' => '46',\n\t\t\t\t'm6' => '78',\n\t\t\t\t'm7' => '70',\n\t\t\t\t'm8' => '59',\n\t\t\t\t'm9' => '70',\n\t\t\t\t'm10' => '55',\n\t\t\t\t'm11' => '75',\n\t\t\t\t'm12' => '64',\n\t\t\t\t'm13' => '82',\n\t\t\t\t'm14' => '74',\n\t\t\t\t'm15' => '75',\n\t\t\t\t'm16' => '73',\n\t\t\t\t'm17' => '85',\n\t\t\t\t'm18' => '104',\n\t\t\t\t'm19' => '84',\n\t\t\t\t'm20' => '74',\n\t\t\t\t'm21' => '73',\n\t\t\t\t'm22' => '62',\n\t\t\t\t'm23' => '68',\n\t\t\t\t'm24' => '56',\n\t\t\t\t'm25' => '61',\n\t\t\t\t'm26' => '78',\n\t\t\t\t'm27' => '63',\n\t\t\t\t'm28' => '57',\n\t\t\t\t'm29' => '44',\n\t\t\t\t'm30' => '56',\n\t\t\t\t'm31' => '50',\n\t\t\t\t'm32' => '59',\n\t\t\t\t'm33' => '48',\n\t\t\t\t'm34' => '57',\n\t\t\t\t'm35' => '44',\n\t\t\t\t'm36' => '59',\n\t\t\t\t'm37' => '63',\n\t\t\t\t'm38' => '80',\n\t\t\t\t'm39' => '67',\n\t\t\t\t'm40' => '88',\n\t\t\t\t'm41' => '87',\n\t\t\t\t'm42' => '102',\n\t\t\t\t'm43' => '96',\n\t\t\t\t'm44' => '124',\n\t\t\t\t'm45' => '93',\n\t\t\t\t'm46' => '89',\n\t\t\t\t'm47' => '107',\n\t\t\t\t'm48' => '105',\n\t\t\t\t'm49' => '114',\n\t\t\t\t'm50' => '107',\n\t\t\t\t'm51' => '111',\n\t\t\t\t'm52' => '113',\n\t\t\t\t'm53' => '105',\n\t\t\t\t'm54' => '96',\n\t\t\t\t'm55' => '130',\n\t\t\t\t'm56' => '120',\n\t\t\t\t'm57' => '115',\n\t\t\t\t'm58' => '100',\n\t\t\t\t'm59' => '98',\n\t\t\t\t'm60' => '118',\n\t\t\t\t'm61' => '123',\n\t\t\t\t'm62' => '134',\n\t\t\t\t'm63' => '128',\n\t\t\t\t'm64' => '137',\n\t\t\t\t'm65' => '125',\n\t\t\t\t'm66' => '164',\n\t\t\t\t'm67' => '118',\n\t\t\t\t'm68' => '92',\n\t\t\t\t'm69' => '90',\n\t\t\t\t'm70' => '93',\n\t\t\t\t'm71' => '75',\n\t\t\t\t'm72' => '67',\n\t\t\t\t'm73' => '87',\n\t\t\t\t'm74' => '87',\n\t\t\t\t'm75' => '66',\n\t\t\t\t'm76' => '47',\n\t\t\t\t'm77' => '54',\n\t\t\t\t'm78' => '59',\n\t\t\t\t'm79' => '48',\n\t\t\t\t'm80' => '60',\n\t\t\t\t'm81' => '39',\n\t\t\t\t'm82' => '43',\n\t\t\t\t'm83' => '28',\n\t\t\t\t'm84' => '33',\n\t\t\t\t'm85' => '20',\n\t\t\t\t'm86' => '22',\n\t\t\t\t'm87' => '17',\n\t\t\t\t'm88' => '8',\n\t\t\t\t'm89' => '9',\n\t\t\t\t'm90' => '29',\n\t\t\t\t'female_all_ages' => '6996',\n\t\t\t\t'f0' => '53',\n\t\t\t\t'f1' => '42',\n\t\t\t\t'f2' => '50',\n\t\t\t\t'f3' => '59',\n\t\t\t\t'f4' => '51',\n\t\t\t\t'f5' => '75',\n\t\t\t\t'f6' => '61',\n\t\t\t\t'f7' => '62',\n\t\t\t\t'f8' => '86',\n\t\t\t\t'f9' => '73',\n\t\t\t\t'f10' => '64',\n\t\t\t\t'f11' => '55',\n\t\t\t\t'f12' => '71',\n\t\t\t\t'f13' => '79',\n\t\t\t\t'f14' => '77',\n\t\t\t\t'f15' => '80',\n\t\t\t\t'f16' => '87',\n\t\t\t\t'f17' => '78',\n\t\t\t\t'f18' => '59',\n\t\t\t\t'f19' => '77',\n\t\t\t\t'f20' => '54',\n\t\t\t\t'f21' => '48',\n\t\t\t\t'f22' => '51',\n\t\t\t\t'f23' => '65',\n\t\t\t\t'f24' => '66',\n\t\t\t\t'f25' => '47',\n\t\t\t\t'f26' => '48',\n\t\t\t\t'f27' => '47',\n\t\t\t\t'f28' => '59',\n\t\t\t\t'f29' => '63',\n\t\t\t\t'f30' => '40',\n\t\t\t\t'f31' => '40',\n\t\t\t\t'f32' => '66',\n\t\t\t\t'f33' => '57',\n\t\t\t\t'f34' => '68',\n\t\t\t\t'f35' => '66',\n\t\t\t\t'f36' => '50',\n\t\t\t\t'f37' => '70',\n\t\t\t\t'f38' => '80',\n\t\t\t\t'f39' => '84',\n\t\t\t\t'f40' => '85',\n\t\t\t\t'f41' => '96',\n\t\t\t\t'f42' => '90',\n\t\t\t\t'f43' => '99',\n\t\t\t\t'f44' => '107',\n\t\t\t\t'f45' => '126',\n\t\t\t\t'f46' => '111',\n\t\t\t\t'f47' => '104',\n\t\t\t\t'f48' => '110',\n\t\t\t\t'f49' => '109',\n\t\t\t\t'f50' => '128',\n\t\t\t\t'f51' => '100',\n\t\t\t\t'f52' => '116',\n\t\t\t\t'f53' => '125',\n\t\t\t\t'f54' => '123',\n\t\t\t\t'f55' => '107',\n\t\t\t\t'f56' => '124',\n\t\t\t\t'f57' => '112',\n\t\t\t\t'f58' => '123',\n\t\t\t\t'f59' => '127',\n\t\t\t\t'f60' => '126',\n\t\t\t\t'f61' => '114',\n\t\t\t\t'f62' => '118',\n\t\t\t\t'f63' => '144',\n\t\t\t\t'f64' => '123',\n\t\t\t\t'f65' => '139',\n\t\t\t\t'f66' => '146',\n\t\t\t\t'f67' => '104',\n\t\t\t\t'f68' => '92',\n\t\t\t\t'f69' => '93',\n\t\t\t\t'f70' => '102',\n\t\t\t\t'f71' => '65',\n\t\t\t\t'f72' => '79',\n\t\t\t\t'f73' => '64',\n\t\t\t\t'f74' => '86',\n\t\t\t\t'f75' => '69',\n\t\t\t\t'f76' => '71',\n\t\t\t\t'f77' => '55',\n\t\t\t\t'f78' => '45',\n\t\t\t\t'f79' => '59',\n\t\t\t\t'f80' => '53',\n\t\t\t\t'f81' => '55',\n\t\t\t\t'f82' => '51',\n\t\t\t\t'f83' => '27',\n\t\t\t\t'f84' => '29',\n\t\t\t\t'f85' => '30',\n\t\t\t\t'f86' => '19',\n\t\t\t\t'f87' => '14',\n\t\t\t\t'f88' => '14',\n\t\t\t\t'f89' => '17',\n\t\t\t\t'f90' => '63',\n\t\t\t),\n\t\t\t38 => \n\t\t\tarray (\n\t\t\t\t'id' => '39',\n\t\t\t\t'slug' => 'minster-and-woddmansey',\n\t\t\t\t'seats' => '3',\n\t\t\t\t'body_id' => '2',\n\t\t\t\t'created_at' => '2015-01-20 12:24:46',\n\t\t\t\t'updated_at' => '2015-01-20 12:24:46',\n\t\t\t\t'ons_district_code' => 'E05001702',\n\t\t\t\t'ons_district_code_old' => '00FBNU',\n\t\t\t\t'name' => 'Minster and Woodmansey',\n\t\t\t\t'ons_la_code' => 'E06000011',\n\t\t\t\t'body_name' => 'East Riding of Yorkshire',\n\t\t\t\t'ons_constituency_code' => 'E14000556',\n\t\t\t\t'ons_constituency_code_old' => 'A27',\n\t\t\t\t'ons_constituency_name' => 'Beverley and Holderness',\n\t\t\t\t'male_all_ages' => '7950',\n\t\t\t\t'm0' => '77',\n\t\t\t\t'm1' => '110',\n\t\t\t\t'm2' => '89',\n\t\t\t\t'm3' => '94',\n\t\t\t\t'm4' => '91',\n\t\t\t\t'm5' => '92',\n\t\t\t\t'm6' => '101',\n\t\t\t\t'm7' => '97',\n\t\t\t\t'm8' => '93',\n\t\t\t\t'm9' => '94',\n\t\t\t\t'm10' => '95',\n\t\t\t\t'm11' => '99',\n\t\t\t\t'm12' => '99',\n\t\t\t\t'm13' => '96',\n\t\t\t\t'm14' => '107',\n\t\t\t\t'm15' => '106',\n\t\t\t\t'm16' => '112',\n\t\t\t\t'm17' => '102',\n\t\t\t\t'm18' => '113',\n\t\t\t\t'm19' => '96',\n\t\t\t\t'm20' => '90',\n\t\t\t\t'm21' => '100',\n\t\t\t\t'm22' => '82',\n\t\t\t\t'm23' => '80',\n\t\t\t\t'm24' => '83',\n\t\t\t\t'm25' => '75',\n\t\t\t\t'm26' => '79',\n\t\t\t\t'm27' => '70',\n\t\t\t\t'm28' => '80',\n\t\t\t\t'm29' => '82',\n\t\t\t\t'm30' => '89',\n\t\t\t\t'm31' => '84',\n\t\t\t\t'm32' => '93',\n\t\t\t\t'm33' => '77',\n\t\t\t\t'm34' => '88',\n\t\t\t\t'm35' => '78',\n\t\t\t\t'm36' => '97',\n\t\t\t\t'm37' => '87',\n\t\t\t\t'm38' => '94',\n\t\t\t\t'm39' => '112',\n\t\t\t\t'm40' => '106',\n\t\t\t\t'm41' => '120',\n\t\t\t\t'm42' => '123',\n\t\t\t\t'm43' => '126',\n\t\t\t\t'm44' => '136',\n\t\t\t\t'm45' => '121',\n\t\t\t\t'm46' => '142',\n\t\t\t\t'm47' => '138',\n\t\t\t\t'm48' => '145',\n\t\t\t\t'm49' => '146',\n\t\t\t\t'm50' => '131',\n\t\t\t\t'm51' => '129',\n\t\t\t\t'm52' => '122',\n\t\t\t\t'm53' => '96',\n\t\t\t\t'm54' => '126',\n\t\t\t\t'm55' => '103',\n\t\t\t\t'm56' => '110',\n\t\t\t\t'm57' => '112',\n\t\t\t\t'm58' => '102',\n\t\t\t\t'm59' => '115',\n\t\t\t\t'm60' => '86',\n\t\t\t\t'm61' => '90',\n\t\t\t\t'm62' => '77',\n\t\t\t\t'm63' => '114',\n\t\t\t\t'm64' => '114',\n\t\t\t\t'm65' => '94',\n\t\t\t\t'm66' => '111',\n\t\t\t\t'm67' => '86',\n\t\t\t\t'm68' => '69',\n\t\t\t\t'm69' => '86',\n\t\t\t\t'm70' => '70',\n\t\t\t\t'm71' => '69',\n\t\t\t\t'm72' => '47',\n\t\t\t\t'm73' => '54',\n\t\t\t\t'm74' => '59',\n\t\t\t\t'm75' => '66',\n\t\t\t\t'm76' => '58',\n\t\t\t\t'm77' => '55',\n\t\t\t\t'm78' => '52',\n\t\t\t\t'm79' => '45',\n\t\t\t\t'm80' => '30',\n\t\t\t\t'm81' => '52',\n\t\t\t\t'm82' => '31',\n\t\t\t\t'm83' => '36',\n\t\t\t\t'm84' => '29',\n\t\t\t\t'm85' => '26',\n\t\t\t\t'm86' => '17',\n\t\t\t\t'm87' => '20',\n\t\t\t\t'm88' => '20',\n\t\t\t\t'm89' => '22',\n\t\t\t\t'm90' => '33',\n\t\t\t\t'female_all_ages' => '8414',\n\t\t\t\t'f0' => '97',\n\t\t\t\t'f1' => '87',\n\t\t\t\t'f2' => '79',\n\t\t\t\t'f3' => '101',\n\t\t\t\t'f4' => '97',\n\t\t\t\t'f5' => '78',\n\t\t\t\t'f6' => '90',\n\t\t\t\t'f7' => '104',\n\t\t\t\t'f8' => '93',\n\t\t\t\t'f9' => '89',\n\t\t\t\t'f10' => '82',\n\t\t\t\t'f11' => '89',\n\t\t\t\t'f12' => '96',\n\t\t\t\t'f13' => '101',\n\t\t\t\t'f14' => '102',\n\t\t\t\t'f15' => '104',\n\t\t\t\t'f16' => '100',\n\t\t\t\t'f17' => '89',\n\t\t\t\t'f18' => '98',\n\t\t\t\t'f19' => '78',\n\t\t\t\t'f20' => '95',\n\t\t\t\t'f21' => '83',\n\t\t\t\t'f22' => '87',\n\t\t\t\t'f23' => '90',\n\t\t\t\t'f24' => '81',\n\t\t\t\t'f25' => '102',\n\t\t\t\t'f26' => '74',\n\t\t\t\t'f27' => '103',\n\t\t\t\t'f28' => '95',\n\t\t\t\t'f29' => '93',\n\t\t\t\t'f30' => '95',\n\t\t\t\t'f31' => '102',\n\t\t\t\t'f32' => '87',\n\t\t\t\t'f33' => '84',\n\t\t\t\t'f34' => '105',\n\t\t\t\t'f35' => '94',\n\t\t\t\t'f36' => '87',\n\t\t\t\t'f37' => '90',\n\t\t\t\t'f38' => '113',\n\t\t\t\t'f39' => '115',\n\t\t\t\t'f40' => '121',\n\t\t\t\t'f41' => '113',\n\t\t\t\t'f42' => '134',\n\t\t\t\t'f43' => '149',\n\t\t\t\t'f44' => '130',\n\t\t\t\t'f45' => '145',\n\t\t\t\t'f46' => '138',\n\t\t\t\t'f47' => '149',\n\t\t\t\t'f48' => '134',\n\t\t\t\t'f49' => '156',\n\t\t\t\t'f50' => '136',\n\t\t\t\t'f51' => '113',\n\t\t\t\t'f52' => '111',\n\t\t\t\t'f53' => '125',\n\t\t\t\t'f54' => '104',\n\t\t\t\t'f55' => '137',\n\t\t\t\t'f56' => '89',\n\t\t\t\t'f57' => '99',\n\t\t\t\t'f58' => '96',\n\t\t\t\t'f59' => '100',\n\t\t\t\t'f60' => '106',\n\t\t\t\t'f61' => '102',\n\t\t\t\t'f62' => '85',\n\t\t\t\t'f63' => '102',\n\t\t\t\t'f64' => '103',\n\t\t\t\t'f65' => '122',\n\t\t\t\t'f66' => '128',\n\t\t\t\t'f67' => '94',\n\t\t\t\t'f68' => '78',\n\t\t\t\t'f69' => '86',\n\t\t\t\t'f70' => '65',\n\t\t\t\t'f71' => '59',\n\t\t\t\t'f72' => '67',\n\t\t\t\t'f73' => '67',\n\t\t\t\t'f74' => '63',\n\t\t\t\t'f75' => '85',\n\t\t\t\t'f76' => '62',\n\t\t\t\t'f77' => '79',\n\t\t\t\t'f78' => '64',\n\t\t\t\t'f79' => '63',\n\t\t\t\t'f80' => '55',\n\t\t\t\t'f81' => '53',\n\t\t\t\t'f82' => '62',\n\t\t\t\t'f83' => '64',\n\t\t\t\t'f84' => '56',\n\t\t\t\t'f85' => '32',\n\t\t\t\t'f86' => '34',\n\t\t\t\t'f87' => '22',\n\t\t\t\t'f88' => '28',\n\t\t\t\t'f89' => '24',\n\t\t\t\t'f90' => '96',\n\t\t\t),\n\t\t\t39 => \n\t\t\tarray (\n\t\t\t\t'id' => '40',\n\t\t\t\t'slug' => 'north-holderness',\n\t\t\t\t'seats' => '3',\n\t\t\t\t'body_id' => '2',\n\t\t\t\t'created_at' => '2015-01-20 12:24:46',\n\t\t\t\t'updated_at' => '2015-01-20 12:24:46',\n\t\t\t\t'ons_district_code' => 'E05001703',\n\t\t\t\t'ons_district_code_old' => '00FBNW',\n\t\t\t\t'name' => 'North Holderness',\n\t\t\t\t'ons_la_code' => 'E06000011',\n\t\t\t\t'body_name' => 'East Riding of Yorkshire',\n\t\t\t\t'ons_constituency_code' => 'E14000556',\n\t\t\t\t'ons_constituency_code_old' => 'A27',\n\t\t\t\t'ons_constituency_name' => 'Beverley and Holderness',\n\t\t\t\t'male_all_ages' => '5015',\n\t\t\t\t'm0' => '32',\n\t\t\t\t'm1' => '51',\n\t\t\t\t'm2' => '30',\n\t\t\t\t'm3' => '38',\n\t\t\t\t'm4' => '43',\n\t\t\t\t'm5' => '56',\n\t\t\t\t'm6' => '41',\n\t\t\t\t'm7' => '50',\n\t\t\t\t'm8' => '45',\n\t\t\t\t'm9' => '56',\n\t\t\t\t'm10' => '59',\n\t\t\t\t'm11' => '57',\n\t\t\t\t'm12' => '54',\n\t\t\t\t'm13' => '64',\n\t\t\t\t'm14' => '51',\n\t\t\t\t'm15' => '51',\n\t\t\t\t'm16' => '62',\n\t\t\t\t'm17' => '82',\n\t\t\t\t'm18' => '65',\n\t\t\t\t'm19' => '47',\n\t\t\t\t'm20' => '55',\n\t\t\t\t'm21' => '50',\n\t\t\t\t'm22' => '39',\n\t\t\t\t'm23' => '38',\n\t\t\t\t'm24' => '42',\n\t\t\t\t'm25' => '48',\n\t\t\t\t'm26' => '43',\n\t\t\t\t'm27' => '64',\n\t\t\t\t'm28' => '46',\n\t\t\t\t'm29' => '38',\n\t\t\t\t'm30' => '35',\n\t\t\t\t'm31' => '44',\n\t\t\t\t'm32' => '30',\n\t\t\t\t'm33' => '37',\n\t\t\t\t'm34' => '48',\n\t\t\t\t'm35' => '34',\n\t\t\t\t'm36' => '58',\n\t\t\t\t'm37' => '40',\n\t\t\t\t'm38' => '41',\n\t\t\t\t'm39' => '53',\n\t\t\t\t'm40' => '54',\n\t\t\t\t'm41' => '43',\n\t\t\t\t'm42' => '69',\n\t\t\t\t'm43' => '64',\n\t\t\t\t'm44' => '54',\n\t\t\t\t'm45' => '59',\n\t\t\t\t'm46' => '65',\n\t\t\t\t'm47' => '63',\n\t\t\t\t'm48' => '72',\n\t\t\t\t'm49' => '66',\n\t\t\t\t'm50' => '78',\n\t\t\t\t'm51' => '76',\n\t\t\t\t'm52' => '77',\n\t\t\t\t'm53' => '78',\n\t\t\t\t'm54' => '72',\n\t\t\t\t'm55' => '69',\n\t\t\t\t'm56' => '68',\n\t\t\t\t'm57' => '77',\n\t\t\t\t'm58' => '61',\n\t\t\t\t'm59' => '82',\n\t\t\t\t'm60' => '66',\n\t\t\t\t'm61' => '81',\n\t\t\t\t'm62' => '79',\n\t\t\t\t'm63' => '97',\n\t\t\t\t'm64' => '77',\n\t\t\t\t'm65' => '111',\n\t\t\t\t'm66' => '120',\n\t\t\t\t'm67' => '97',\n\t\t\t\t'm68' => '81',\n\t\t\t\t'm69' => '69',\n\t\t\t\t'm70' => '80',\n\t\t\t\t'm71' => '74',\n\t\t\t\t'm72' => '62',\n\t\t\t\t'm73' => '68',\n\t\t\t\t'm74' => '64',\n\t\t\t\t'm75' => '57',\n\t\t\t\t'm76' => '48',\n\t\t\t\t'm77' => '45',\n\t\t\t\t'm78' => '46',\n\t\t\t\t'm79' => '53',\n\t\t\t\t'm80' => '45',\n\t\t\t\t'm81' => '27',\n\t\t\t\t'm82' => '31',\n\t\t\t\t'm83' => '35',\n\t\t\t\t'm84' => '26',\n\t\t\t\t'm85' => '19',\n\t\t\t\t'm86' => '20',\n\t\t\t\t'm87' => '21',\n\t\t\t\t'm88' => '6',\n\t\t\t\t'm89' => '14',\n\t\t\t\t'm90' => '32',\n\t\t\t\t'female_all_ages' => '5296',\n\t\t\t\t'f0' => '50',\n\t\t\t\t'f1' => '40',\n\t\t\t\t'f2' => '49',\n\t\t\t\t'f3' => '64',\n\t\t\t\t'f4' => '40',\n\t\t\t\t'f5' => '33',\n\t\t\t\t'f6' => '37',\n\t\t\t\t'f7' => '37',\n\t\t\t\t'f8' => '39',\n\t\t\t\t'f9' => '56',\n\t\t\t\t'f10' => '33',\n\t\t\t\t'f11' => '49',\n\t\t\t\t'f12' => '46',\n\t\t\t\t'f13' => '42',\n\t\t\t\t'f14' => '41',\n\t\t\t\t'f15' => '53',\n\t\t\t\t'f16' => '56',\n\t\t\t\t'f17' => '48',\n\t\t\t\t'f18' => '59',\n\t\t\t\t'f19' => '47',\n\t\t\t\t'f20' => '51',\n\t\t\t\t'f21' => '41',\n\t\t\t\t'f22' => '46',\n\t\t\t\t'f23' => '45',\n\t\t\t\t'f24' => '47',\n\t\t\t\t'f25' => '39',\n\t\t\t\t'f26' => '45',\n\t\t\t\t'f27' => '38',\n\t\t\t\t'f28' => '41',\n\t\t\t\t'f29' => '30',\n\t\t\t\t'f30' => '32',\n\t\t\t\t'f31' => '32',\n\t\t\t\t'f32' => '32',\n\t\t\t\t'f33' => '49',\n\t\t\t\t'f34' => '48',\n\t\t\t\t'f35' => '31',\n\t\t\t\t'f36' => '31',\n\t\t\t\t'f37' => '55',\n\t\t\t\t'f38' => '46',\n\t\t\t\t'f39' => '53',\n\t\t\t\t'f40' => '62',\n\t\t\t\t'f41' => '57',\n\t\t\t\t'f42' => '60',\n\t\t\t\t'f43' => '73',\n\t\t\t\t'f44' => '73',\n\t\t\t\t'f45' => '86',\n\t\t\t\t'f46' => '94',\n\t\t\t\t'f47' => '79',\n\t\t\t\t'f48' => '76',\n\t\t\t\t'f49' => '90',\n\t\t\t\t'f50' => '90',\n\t\t\t\t'f51' => '67',\n\t\t\t\t'f52' => '58',\n\t\t\t\t'f53' => '78',\n\t\t\t\t'f54' => '50',\n\t\t\t\t'f55' => '83',\n\t\t\t\t'f56' => '59',\n\t\t\t\t'f57' => '69',\n\t\t\t\t'f58' => '79',\n\t\t\t\t'f59' => '86',\n\t\t\t\t'f60' => '84',\n\t\t\t\t'f61' => '92',\n\t\t\t\t'f62' => '84',\n\t\t\t\t'f63' => '110',\n\t\t\t\t'f64' => '87',\n\t\t\t\t'f65' => '117',\n\t\t\t\t'f66' => '144',\n\t\t\t\t'f67' => '90',\n\t\t\t\t'f68' => '79',\n\t\t\t\t'f69' => '83',\n\t\t\t\t'f70' => '97',\n\t\t\t\t'f71' => '62',\n\t\t\t\t'f72' => '68',\n\t\t\t\t'f73' => '66',\n\t\t\t\t'f74' => '70',\n\t\t\t\t'f75' => '53',\n\t\t\t\t'f76' => '58',\n\t\t\t\t'f77' => '62',\n\t\t\t\t'f78' => '48',\n\t\t\t\t'f79' => '44',\n\t\t\t\t'f80' => '50',\n\t\t\t\t'f81' => '49',\n\t\t\t\t'f82' => '36',\n\t\t\t\t'f83' => '56',\n\t\t\t\t'f84' => '42',\n\t\t\t\t'f85' => '23',\n\t\t\t\t'f86' => '37',\n\t\t\t\t'f87' => '28',\n\t\t\t\t'f88' => '32',\n\t\t\t\t'f89' => '31',\n\t\t\t\t'f90' => '94',\n\t\t\t),\n\t\t\t40 => \n\t\t\tarray (\n\t\t\t\t'id' => '41',\n\t\t\t\t'slug' => 'pocklington-provincial',\n\t\t\t\t'seats' => '3',\n\t\t\t\t'body_id' => '2',\n\t\t\t\t'created_at' => '2015-01-20 12:24:46',\n\t\t\t\t'updated_at' => '2015-01-20 12:24:46',\n\t\t\t\t'ons_district_code' => 'E05001704',\n\t\t\t\t'ons_district_code_old' => '00FBNX',\n\t\t\t\t'name' => 'Pocklington Provincial',\n\t\t\t\t'ons_la_code' => 'E06000011',\n\t\t\t\t'body_name' => 'East Riding of Yorkshire',\n\t\t\t\t'ons_constituency_code' => 'E14000683',\n\t\t\t\t'ons_constituency_code_old' => 'B55',\n\t\t\t\t'ons_constituency_name' => 'East Yorkshire',\n\t\t\t\t'male_all_ages' => '7867',\n\t\t\t\t'm0' => '80',\n\t\t\t\t'm1' => '74',\n\t\t\t\t'm2' => '91',\n\t\t\t\t'm3' => '91',\n\t\t\t\t'm4' => '94',\n\t\t\t\t'm5' => '78',\n\t\t\t\t'm6' => '80',\n\t\t\t\t'm7' => '86',\n\t\t\t\t'm8' => '99',\n\t\t\t\t'm9' => '74',\n\t\t\t\t'm10' => '78',\n\t\t\t\t'm11' => '91',\n\t\t\t\t'm12' => '88',\n\t\t\t\t'm13' => '85',\n\t\t\t\t'm14' => '112',\n\t\t\t\t'm15' => '127',\n\t\t\t\t'm16' => '109',\n\t\t\t\t'm17' => '117',\n\t\t\t\t'm18' => '103',\n\t\t\t\t'm19' => '108',\n\t\t\t\t'm20' => '74',\n\t\t\t\t'm21' => '68',\n\t\t\t\t'm22' => '50',\n\t\t\t\t'm23' => '69',\n\t\t\t\t'm24' => '55',\n\t\t\t\t'm25' => '72',\n\t\t\t\t'm26' => '72',\n\t\t\t\t'm27' => '52',\n\t\t\t\t'm28' => '63',\n\t\t\t\t'm29' => '64',\n\t\t\t\t'm30' => '54',\n\t\t\t\t'm31' => '59',\n\t\t\t\t'm32' => '68',\n\t\t\t\t'm33' => '82',\n\t\t\t\t'm34' => '84',\n\t\t\t\t'm35' => '57',\n\t\t\t\t'm36' => '84',\n\t\t\t\t'm37' => '88',\n\t\t\t\t'm38' => '107',\n\t\t\t\t'm39' => '98',\n\t\t\t\t'm40' => '87',\n\t\t\t\t'm41' => '119',\n\t\t\t\t'm42' => '117',\n\t\t\t\t'm43' => '120',\n\t\t\t\t'm44' => '130',\n\t\t\t\t'm45' => '122',\n\t\t\t\t'm46' => '129',\n\t\t\t\t'm47' => '127',\n\t\t\t\t'm48' => '115',\n\t\t\t\t'm49' => '122',\n\t\t\t\t'm50' => '136',\n\t\t\t\t'm51' => '143',\n\t\t\t\t'm52' => '130',\n\t\t\t\t'm53' => '118',\n\t\t\t\t'm54' => '109',\n\t\t\t\t'm55' => '107',\n\t\t\t\t'm56' => '100',\n\t\t\t\t'm57' => '95',\n\t\t\t\t'm58' => '112',\n\t\t\t\t'm59' => '113',\n\t\t\t\t'm60' => '101',\n\t\t\t\t'm61' => '101',\n\t\t\t\t'm62' => '109',\n\t\t\t\t'm63' => '105',\n\t\t\t\t'm64' => '107',\n\t\t\t\t'm65' => '130',\n\t\t\t\t'm66' => '161',\n\t\t\t\t'm67' => '113',\n\t\t\t\t'm68' => '107',\n\t\t\t\t'm69' => '99',\n\t\t\t\t'm70' => '101',\n\t\t\t\t'm71' => '99',\n\t\t\t\t'm72' => '66',\n\t\t\t\t'm73' => '72',\n\t\t\t\t'm74' => '69',\n\t\t\t\t'm75' => '65',\n\t\t\t\t'm76' => '73',\n\t\t\t\t'm77' => '66',\n\t\t\t\t'm78' => '48',\n\t\t\t\t'm79' => '48',\n\t\t\t\t'm80' => '54',\n\t\t\t\t'm81' => '40',\n\t\t\t\t'm82' => '54',\n\t\t\t\t'm83' => '42',\n\t\t\t\t'm84' => '36',\n\t\t\t\t'm85' => '33',\n\t\t\t\t'm86' => '23',\n\t\t\t\t'm87' => '23',\n\t\t\t\t'm88' => '19',\n\t\t\t\t'm89' => '14',\n\t\t\t\t'm90' => '53',\n\t\t\t\t'female_all_ages' => '8405',\n\t\t\t\t'f0' => '63',\n\t\t\t\t'f1' => '73',\n\t\t\t\t'f2' => '80',\n\t\t\t\t'f3' => '78',\n\t\t\t\t'f4' => '89',\n\t\t\t\t'f5' => '88',\n\t\t\t\t'f6' => '76',\n\t\t\t\t'f7' => '102',\n\t\t\t\t'f8' => '62',\n\t\t\t\t'f9' => '74',\n\t\t\t\t'f10' => '95',\n\t\t\t\t'f11' => '80',\n\t\t\t\t'f12' => '68',\n\t\t\t\t'f13' => '104',\n\t\t\t\t'f14' => '114',\n\t\t\t\t'f15' => '98',\n\t\t\t\t'f16' => '95',\n\t\t\t\t'f17' => '120',\n\t\t\t\t'f18' => '82',\n\t\t\t\t'f19' => '79',\n\t\t\t\t'f20' => '58',\n\t\t\t\t'f21' => '70',\n\t\t\t\t'f22' => '66',\n\t\t\t\t'f23' => '64',\n\t\t\t\t'f24' => '61',\n\t\t\t\t'f25' => '81',\n\t\t\t\t'f26' => '63',\n\t\t\t\t'f27' => '67',\n\t\t\t\t'f28' => '66',\n\t\t\t\t'f29' => '63',\n\t\t\t\t'f30' => '71',\n\t\t\t\t'f31' => '69',\n\t\t\t\t'f32' => '68',\n\t\t\t\t'f33' => '69',\n\t\t\t\t'f34' => '94',\n\t\t\t\t'f35' => '110',\n\t\t\t\t'f36' => '89',\n\t\t\t\t'f37' => '91',\n\t\t\t\t'f38' => '90',\n\t\t\t\t'f39' => '111',\n\t\t\t\t'f40' => '118',\n\t\t\t\t'f41' => '112',\n\t\t\t\t'f42' => '132',\n\t\t\t\t'f43' => '137',\n\t\t\t\t'f44' => '121',\n\t\t\t\t'f45' => '147',\n\t\t\t\t'f46' => '122',\n\t\t\t\t'f47' => '123',\n\t\t\t\t'f48' => '143',\n\t\t\t\t'f49' => '128',\n\t\t\t\t'f50' => '154',\n\t\t\t\t'f51' => '118',\n\t\t\t\t'f52' => '108',\n\t\t\t\t'f53' => '116',\n\t\t\t\t'f54' => '125',\n\t\t\t\t'f55' => '116',\n\t\t\t\t'f56' => '101',\n\t\t\t\t'f57' => '94',\n\t\t\t\t'f58' => '118',\n\t\t\t\t'f59' => '117',\n\t\t\t\t'f60' => '98',\n\t\t\t\t'f61' => '120',\n\t\t\t\t'f62' => '125',\n\t\t\t\t'f63' => '123',\n\t\t\t\t'f64' => '149',\n\t\t\t\t'f65' => '150',\n\t\t\t\t'f66' => '153',\n\t\t\t\t'f67' => '130',\n\t\t\t\t'f68' => '121',\n\t\t\t\t'f69' => '134',\n\t\t\t\t'f70' => '105',\n\t\t\t\t'f71' => '84',\n\t\t\t\t'f72' => '77',\n\t\t\t\t'f73' => '89',\n\t\t\t\t'f74' => '82',\n\t\t\t\t'f75' => '81',\n\t\t\t\t'f76' => '84',\n\t\t\t\t'f77' => '75',\n\t\t\t\t'f78' => '64',\n\t\t\t\t'f79' => '74',\n\t\t\t\t'f80' => '58',\n\t\t\t\t'f81' => '58',\n\t\t\t\t'f82' => '58',\n\t\t\t\t'f83' => '61',\n\t\t\t\t'f84' => '45',\n\t\t\t\t'f85' => '51',\n\t\t\t\t'f86' => '42',\n\t\t\t\t'f87' => '25',\n\t\t\t\t'f88' => '38',\n\t\t\t\t'f89' => '37',\n\t\t\t\t'f90' => '123',\n\t\t\t),\n\t\t\t41 => \n\t\t\tarray (\n\t\t\t\t'id' => '42',\n\t\t\t\t'slug' => 'st-marys',\n\t\t\t\t'seats' => '3',\n\t\t\t\t'body_id' => '2',\n\t\t\t\t'created_at' => '2015-01-20 12:24:46',\n\t\t\t\t'updated_at' => '2015-01-20 12:24:46',\n\t\t\t\t'ons_district_code' => 'E05001705',\n\t\t\t\t'ons_district_code_old' => '00FBNY',\n\t\t\t\t'name' => 'St Mary\\'s',\n\t\t\t\t'ons_la_code' => 'E06000011',\n\t\t\t\t'body_name' => 'East Riding of Yorkshire',\n\t\t\t\t'ons_constituency_code' => 'E14000556',\n\t\t\t\t'ons_constituency_code_old' => 'A27',\n\t\t\t\t'ons_constituency_name' => 'Beverley and Holderness',\n\t\t\t\t'male_all_ages' => '7451',\n\t\t\t\t'm0' => '63',\n\t\t\t\t'm1' => '76',\n\t\t\t\t'm2' => '80',\n\t\t\t\t'm3' => '71',\n\t\t\t\t'm4' => '76',\n\t\t\t\t'm5' => '76',\n\t\t\t\t'm6' => '79',\n\t\t\t\t'm7' => '75',\n\t\t\t\t'm8' => '73',\n\t\t\t\t'm9' => '70',\n\t\t\t\t'm10' => '83',\n\t\t\t\t'm11' => '65',\n\t\t\t\t'm12' => '75',\n\t\t\t\t'm13' => '69',\n\t\t\t\t'm14' => '64',\n\t\t\t\t'm15' => '89',\n\t\t\t\t'm16' => '104',\n\t\t\t\t'm17' => '89',\n\t\t\t\t'm18' => '79',\n\t\t\t\t'm19' => '88',\n\t\t\t\t'm20' => '64',\n\t\t\t\t'm21' => '63',\n\t\t\t\t'm22' => '80',\n\t\t\t\t'm23' => '77',\n\t\t\t\t'm24' => '80',\n\t\t\t\t'm25' => '80',\n\t\t\t\t'm26' => '63',\n\t\t\t\t'm27' => '72',\n\t\t\t\t'm28' => '66',\n\t\t\t\t'm29' => '75',\n\t\t\t\t'm30' => '63',\n\t\t\t\t'm31' => '68',\n\t\t\t\t'm32' => '77',\n\t\t\t\t'm33' => '75',\n\t\t\t\t'm34' => '79',\n\t\t\t\t'm35' => '75',\n\t\t\t\t'm36' => '81',\n\t\t\t\t'm37' => '81',\n\t\t\t\t'm38' => '90',\n\t\t\t\t'm39' => '85',\n\t\t\t\t'm40' => '105',\n\t\t\t\t'm41' => '102',\n\t\t\t\t'm42' => '105',\n\t\t\t\t'm43' => '116',\n\t\t\t\t'm44' => '98',\n\t\t\t\t'm45' => '96',\n\t\t\t\t'm46' => '110',\n\t\t\t\t'm47' => '102',\n\t\t\t\t'm48' => '150',\n\t\t\t\t'm49' => '124',\n\t\t\t\t'm50' => '126',\n\t\t\t\t'm51' => '140',\n\t\t\t\t'm52' => '126',\n\t\t\t\t'm53' => '130',\n\t\t\t\t'm54' => '124',\n\t\t\t\t'm55' => '120',\n\t\t\t\t'm56' => '107',\n\t\t\t\t'm57' => '112',\n\t\t\t\t'm58' => '105',\n\t\t\t\t'm59' => '90',\n\t\t\t\t'm60' => '104',\n\t\t\t\t'm61' => '91',\n\t\t\t\t'm62' => '84',\n\t\t\t\t'm63' => '113',\n\t\t\t\t'm64' => '96',\n\t\t\t\t'm65' => '113',\n\t\t\t\t'm66' => '138',\n\t\t\t\t'm67' => '94',\n\t\t\t\t'm68' => '95',\n\t\t\t\t'm69' => '89',\n\t\t\t\t'm70' => '93',\n\t\t\t\t'm71' => '77',\n\t\t\t\t'm72' => '62',\n\t\t\t\t'm73' => '74',\n\t\t\t\t'm74' => '70',\n\t\t\t\t'm75' => '65',\n\t\t\t\t'm76' => '61',\n\t\t\t\t'm77' => '65',\n\t\t\t\t'm78' => '70',\n\t\t\t\t'm79' => '67',\n\t\t\t\t'm80' => '62',\n\t\t\t\t'm81' => '51',\n\t\t\t\t'm82' => '37',\n\t\t\t\t'm83' => '38',\n\t\t\t\t'm84' => '39',\n\t\t\t\t'm85' => '29',\n\t\t\t\t'm86' => '32',\n\t\t\t\t'm87' => '26',\n\t\t\t\t'm88' => '24',\n\t\t\t\t'm89' => '16',\n\t\t\t\t'm90' => '50',\n\t\t\t\t'female_all_ages' => '8267',\n\t\t\t\t'f0' => '70',\n\t\t\t\t'f1' => '70',\n\t\t\t\t'f2' => '75',\n\t\t\t\t'f3' => '87',\n\t\t\t\t'f4' => '89',\n\t\t\t\t'f5' => '85',\n\t\t\t\t'f6' => '77',\n\t\t\t\t'f7' => '67',\n\t\t\t\t'f8' => '76',\n\t\t\t\t'f9' => '76',\n\t\t\t\t'f10' => '76',\n\t\t\t\t'f11' => '87',\n\t\t\t\t'f12' => '80',\n\t\t\t\t'f13' => '94',\n\t\t\t\t'f14' => '93',\n\t\t\t\t'f15' => '102',\n\t\t\t\t'f16' => '80',\n\t\t\t\t'f17' => '93',\n\t\t\t\t'f18' => '68',\n\t\t\t\t'f19' => '80',\n\t\t\t\t'f20' => '74',\n\t\t\t\t'f21' => '73',\n\t\t\t\t'f22' => '80',\n\t\t\t\t'f23' => '58',\n\t\t\t\t'f24' => '67',\n\t\t\t\t'f25' => '71',\n\t\t\t\t'f26' => '54',\n\t\t\t\t'f27' => '73',\n\t\t\t\t'f28' => '67',\n\t\t\t\t'f29' => '81',\n\t\t\t\t'f30' => '71',\n\t\t\t\t'f31' => '72',\n\t\t\t\t'f32' => '85',\n\t\t\t\t'f33' => '86',\n\t\t\t\t'f34' => '65',\n\t\t\t\t'f35' => '87',\n\t\t\t\t'f36' => '78',\n\t\t\t\t'f37' => '89',\n\t\t\t\t'f38' => '102',\n\t\t\t\t'f39' => '95',\n\t\t\t\t'f40' => '112',\n\t\t\t\t'f41' => '144',\n\t\t\t\t'f42' => '108',\n\t\t\t\t'f43' => '105',\n\t\t\t\t'f44' => '140',\n\t\t\t\t'f45' => '115',\n\t\t\t\t'f46' => '105',\n\t\t\t\t'f47' => '132',\n\t\t\t\t'f48' => '139',\n\t\t\t\t'f49' => '125',\n\t\t\t\t'f50' => '118',\n\t\t\t\t'f51' => '122',\n\t\t\t\t'f52' => '145',\n\t\t\t\t'f53' => '122',\n\t\t\t\t'f54' => '124',\n\t\t\t\t'f55' => '118',\n\t\t\t\t'f56' => '125',\n\t\t\t\t'f57' => '105',\n\t\t\t\t'f58' => '112',\n\t\t\t\t'f59' => '88',\n\t\t\t\t'f60' => '102',\n\t\t\t\t'f61' => '95',\n\t\t\t\t'f62' => '110',\n\t\t\t\t'f63' => '115',\n\t\t\t\t'f64' => '112',\n\t\t\t\t'f65' => '133',\n\t\t\t\t'f66' => '159',\n\t\t\t\t'f67' => '103',\n\t\t\t\t'f68' => '110',\n\t\t\t\t'f69' => '97',\n\t\t\t\t'f70' => '111',\n\t\t\t\t'f71' => '87',\n\t\t\t\t'f72' => '93',\n\t\t\t\t'f73' => '97',\n\t\t\t\t'f74' => '95',\n\t\t\t\t'f75' => '73',\n\t\t\t\t'f76' => '86',\n\t\t\t\t'f77' => '93',\n\t\t\t\t'f78' => '92',\n\t\t\t\t'f79' => '55',\n\t\t\t\t'f80' => '85',\n\t\t\t\t'f81' => '63',\n\t\t\t\t'f82' => '70',\n\t\t\t\t'f83' => '62',\n\t\t\t\t'f84' => '53',\n\t\t\t\t'f85' => '56',\n\t\t\t\t'f86' => '46',\n\t\t\t\t'f87' => '39',\n\t\t\t\t'f88' => '50',\n\t\t\t\t'f89' => '33',\n\t\t\t\t'f90' => '135',\n\t\t\t),\n\t\t\t42 => \n\t\t\tarray (\n\t\t\t\t'id' => '43',\n\t\t\t\t'slug' => 'snaith-airmyn-rawcliffe-and-marshland',\n\t\t\t\t'seats' => '3',\n\t\t\t\t'body_id' => '2',\n\t\t\t\t'created_at' => '2015-01-20 12:24:46',\n\t\t\t\t'updated_at' => '2015-01-20 12:24:46',\n\t\t\t\t'ons_district_code' => 'E05001706',\n\t\t\t\t'ons_district_code_old' => '00FBNZ',\n\t\t\t\t'name' => 'Snaith, Airmyn, Rawcliffe and Marshland',\n\t\t\t\t'ons_la_code' => 'E06000011',\n\t\t\t\t'body_name' => 'East Riding of Yorkshire',\n\t\t\t\t'ons_constituency_code' => 'E14000596',\n\t\t\t\t'ons_constituency_code_old' => 'A67',\n\t\t\t\t'ons_constituency_name' => 'Brigg and Goole',\n\t\t\t\t'male_all_ages' => '4770',\n\t\t\t\t'm0' => '37',\n\t\t\t\t'm1' => '41',\n\t\t\t\t'm2' => '39',\n\t\t\t\t'm3' => '41',\n\t\t\t\t'm4' => '45',\n\t\t\t\t'm5' => '39',\n\t\t\t\t'm6' => '51',\n\t\t\t\t'm7' => '57',\n\t\t\t\t'm8' => '43',\n\t\t\t\t'm9' => '49',\n\t\t\t\t'm10' => '61',\n\t\t\t\t'm11' => '60',\n\t\t\t\t'm12' => '60',\n\t\t\t\t'm13' => '60',\n\t\t\t\t'm14' => '57',\n\t\t\t\t'm15' => '61',\n\t\t\t\t'm16' => '57',\n\t\t\t\t'm17' => '56',\n\t\t\t\t'm18' => '51',\n\t\t\t\t'm19' => '64',\n\t\t\t\t'm20' => '70',\n\t\t\t\t'm21' => '46',\n\t\t\t\t'm22' => '42',\n\t\t\t\t'm23' => '40',\n\t\t\t\t'm24' => '45',\n\t\t\t\t'm25' => '36',\n\t\t\t\t'm26' => '45',\n\t\t\t\t'm27' => '30',\n\t\t\t\t'm28' => '38',\n\t\t\t\t'm29' => '53',\n\t\t\t\t'm30' => '33',\n\t\t\t\t'm31' => '43',\n\t\t\t\t'm32' => '34',\n\t\t\t\t'm33' => '36',\n\t\t\t\t'm34' => '41',\n\t\t\t\t'm35' => '37',\n\t\t\t\t'm36' => '41',\n\t\t\t\t'm37' => '52',\n\t\t\t\t'm38' => '55',\n\t\t\t\t'm39' => '57',\n\t\t\t\t'm40' => '73',\n\t\t\t\t'm41' => '66',\n\t\t\t\t'm42' => '80',\n\t\t\t\t'm43' => '86',\n\t\t\t\t'm44' => '82',\n\t\t\t\t'm45' => '86',\n\t\t\t\t'm46' => '81',\n\t\t\t\t'm47' => '89',\n\t\t\t\t'm48' => '89',\n\t\t\t\t'm49' => '92',\n\t\t\t\t'm50' => '77',\n\t\t\t\t'm51' => '67',\n\t\t\t\t'm52' => '65',\n\t\t\t\t'm53' => '69',\n\t\t\t\t'm54' => '71',\n\t\t\t\t'm55' => '76',\n\t\t\t\t'm56' => '88',\n\t\t\t\t'm57' => '78',\n\t\t\t\t'm58' => '72',\n\t\t\t\t'm59' => '64',\n\t\t\t\t'm60' => '66',\n\t\t\t\t'm61' => '69',\n\t\t\t\t'm62' => '67',\n\t\t\t\t'm63' => '76',\n\t\t\t\t'm64' => '79',\n\t\t\t\t'm65' => '62',\n\t\t\t\t'm66' => '86',\n\t\t\t\t'm67' => '58',\n\t\t\t\t'm68' => '77',\n\t\t\t\t'm69' => '63',\n\t\t\t\t'm70' => '56',\n\t\t\t\t'm71' => '53',\n\t\t\t\t'm72' => '52',\n\t\t\t\t'm73' => '44',\n\t\t\t\t'm74' => '46',\n\t\t\t\t'm75' => '43',\n\t\t\t\t'm76' => '37',\n\t\t\t\t'm77' => '31',\n\t\t\t\t'm78' => '33',\n\t\t\t\t'm79' => '24',\n\t\t\t\t'm80' => '21',\n\t\t\t\t'm81' => '21',\n\t\t\t\t'm82' => '24',\n\t\t\t\t'm83' => '19',\n\t\t\t\t'm84' => '19',\n\t\t\t\t'm85' => '17',\n\t\t\t\t'm86' => '19',\n\t\t\t\t'm87' => '15',\n\t\t\t\t'm88' => '16',\n\t\t\t\t'm89' => '8',\n\t\t\t\t'm90' => '15',\n\t\t\t\t'female_all_ages' => '4895',\n\t\t\t\t'f0' => '38',\n\t\t\t\t'f1' => '30',\n\t\t\t\t'f2' => '42',\n\t\t\t\t'f3' => '40',\n\t\t\t\t'f4' => '50',\n\t\t\t\t'f5' => '48',\n\t\t\t\t'f6' => '35',\n\t\t\t\t'f7' => '48',\n\t\t\t\t'f8' => '51',\n\t\t\t\t'f9' => '50',\n\t\t\t\t'f10' => '53',\n\t\t\t\t'f11' => '64',\n\t\t\t\t'f12' => '48',\n\t\t\t\t'f13' => '52',\n\t\t\t\t'f14' => '65',\n\t\t\t\t'f15' => '63',\n\t\t\t\t'f16' => '79',\n\t\t\t\t'f17' => '69',\n\t\t\t\t'f18' => '40',\n\t\t\t\t'f19' => '45',\n\t\t\t\t'f20' => '37',\n\t\t\t\t'f21' => '30',\n\t\t\t\t'f22' => '48',\n\t\t\t\t'f23' => '32',\n\t\t\t\t'f24' => '43',\n\t\t\t\t'f25' => '32',\n\t\t\t\t'f26' => '46',\n\t\t\t\t'f27' => '34',\n\t\t\t\t'f28' => '43',\n\t\t\t\t'f29' => '40',\n\t\t\t\t'f30' => '50',\n\t\t\t\t'f31' => '41',\n\t\t\t\t'f32' => '50',\n\t\t\t\t'f33' => '53',\n\t\t\t\t'f34' => '44',\n\t\t\t\t'f35' => '48',\n\t\t\t\t'f36' => '34',\n\t\t\t\t'f37' => '62',\n\t\t\t\t'f38' => '61',\n\t\t\t\t'f39' => '71',\n\t\t\t\t'f40' => '67',\n\t\t\t\t'f41' => '72',\n\t\t\t\t'f42' => '82',\n\t\t\t\t'f43' => '90',\n\t\t\t\t'f44' => '100',\n\t\t\t\t'f45' => '75',\n\t\t\t\t'f46' => '90',\n\t\t\t\t'f47' => '74',\n\t\t\t\t'f48' => '71',\n\t\t\t\t'f49' => '67',\n\t\t\t\t'f50' => '78',\n\t\t\t\t'f51' => '91',\n\t\t\t\t'f52' => '82',\n\t\t\t\t'f53' => '67',\n\t\t\t\t'f54' => '51',\n\t\t\t\t'f55' => '81',\n\t\t\t\t'f56' => '80',\n\t\t\t\t'f57' => '66',\n\t\t\t\t'f58' => '73',\n\t\t\t\t'f59' => '81',\n\t\t\t\t'f60' => '70',\n\t\t\t\t'f61' => '61',\n\t\t\t\t'f62' => '71',\n\t\t\t\t'f63' => '65',\n\t\t\t\t'f64' => '83',\n\t\t\t\t'f65' => '88',\n\t\t\t\t'f66' => '89',\n\t\t\t\t'f67' => '65',\n\t\t\t\t'f68' => '67',\n\t\t\t\t'f69' => '59',\n\t\t\t\t'f70' => '55',\n\t\t\t\t'f71' => '49',\n\t\t\t\t'f72' => '53',\n\t\t\t\t'f73' => '50',\n\t\t\t\t'f74' => '44',\n\t\t\t\t'f75' => '48',\n\t\t\t\t'f76' => '43',\n\t\t\t\t'f77' => '25',\n\t\t\t\t'f78' => '30',\n\t\t\t\t'f79' => '28',\n\t\t\t\t'f80' => '42',\n\t\t\t\t'f81' => '36',\n\t\t\t\t'f82' => '37',\n\t\t\t\t'f83' => '32',\n\t\t\t\t'f84' => '20',\n\t\t\t\t'f85' => '27',\n\t\t\t\t'f86' => '13',\n\t\t\t\t'f87' => '17',\n\t\t\t\t'f88' => '10',\n\t\t\t\t'f89' => '9',\n\t\t\t\t'f90' => '62',\n\t\t\t),\n\t\t\t43 => \n\t\t\tarray (\n\t\t\t\t'id' => '44',\n\t\t\t\t'slug' => 'south-east-holderness',\n\t\t\t\t'seats' => '3',\n\t\t\t\t'body_id' => '2',\n\t\t\t\t'created_at' => '2015-01-20 12:24:46',\n\t\t\t\t'updated_at' => '2015-01-20 12:24:46',\n\t\t\t\t'ons_district_code' => 'E05001707',\n\t\t\t\t'ons_district_code_old' => '00FBPA',\n\t\t\t\t'name' => 'South East Holderness',\n\t\t\t\t'ons_la_code' => 'E06000011',\n\t\t\t\t'body_name' => 'East Riding of Yorkshire',\n\t\t\t\t'ons_constituency_code' => 'E14000556',\n\t\t\t\t'ons_constituency_code_old' => 'A27',\n\t\t\t\t'ons_constituency_name' => 'Beverley and Holderness',\n\t\t\t\t'male_all_ages' => '7495',\n\t\t\t\t'm0' => '95',\n\t\t\t\t'm1' => '88',\n\t\t\t\t'm2' => '92',\n\t\t\t\t'm3' => '76',\n\t\t\t\t'm4' => '80',\n\t\t\t\t'm5' => '79',\n\t\t\t\t'm6' => '76',\n\t\t\t\t'm7' => '80',\n\t\t\t\t'm8' => '73',\n\t\t\t\t'm9' => '72',\n\t\t\t\t'm10' => '73',\n\t\t\t\t'm11' => '76',\n\t\t\t\t'm12' => '76',\n\t\t\t\t'm13' => '85',\n\t\t\t\t'm14' => '115',\n\t\t\t\t'm15' => '96',\n\t\t\t\t'm16' => '83',\n\t\t\t\t'm17' => '102',\n\t\t\t\t'm18' => '84',\n\t\t\t\t'm19' => '90',\n\t\t\t\t'm20' => '81',\n\t\t\t\t'm21' => '79',\n\t\t\t\t'm22' => '88',\n\t\t\t\t'm23' => '67',\n\t\t\t\t'm24' => '69',\n\t\t\t\t'm25' => '80',\n\t\t\t\t'm26' => '65',\n\t\t\t\t'm27' => '76',\n\t\t\t\t'm28' => '70',\n\t\t\t\t'm29' => '81',\n\t\t\t\t'm30' => '63',\n\t\t\t\t'm31' => '69',\n\t\t\t\t'm32' => '51',\n\t\t\t\t'm33' => '82',\n\t\t\t\t'm34' => '53',\n\t\t\t\t'm35' => '68',\n\t\t\t\t'm36' => '61',\n\t\t\t\t'm37' => '64',\n\t\t\t\t'm38' => '60',\n\t\t\t\t'm39' => '64',\n\t\t\t\t'm40' => '81',\n\t\t\t\t'm41' => '75',\n\t\t\t\t'm42' => '90',\n\t\t\t\t'm43' => '87',\n\t\t\t\t'm44' => '82',\n\t\t\t\t'm45' => '106',\n\t\t\t\t'm46' => '78',\n\t\t\t\t'm47' => '88',\n\t\t\t\t'm48' => '107',\n\t\t\t\t'm49' => '103',\n\t\t\t\t'm50' => '115',\n\t\t\t\t'm51' => '110',\n\t\t\t\t'm52' => '128',\n\t\t\t\t'm53' => '113',\n\t\t\t\t'm54' => '99',\n\t\t\t\t'm55' => '112',\n\t\t\t\t'm56' => '119',\n\t\t\t\t'm57' => '103',\n\t\t\t\t'm58' => '112',\n\t\t\t\t'm59' => '103',\n\t\t\t\t'm60' => '106',\n\t\t\t\t'm61' => '114',\n\t\t\t\t'm62' => '113',\n\t\t\t\t'm63' => '130',\n\t\t\t\t'm64' => '133',\n\t\t\t\t'm65' => '144',\n\t\t\t\t'm66' => '170',\n\t\t\t\t'm67' => '115',\n\t\t\t\t'm68' => '107',\n\t\t\t\t'm69' => '122',\n\t\t\t\t'm70' => '118',\n\t\t\t\t'm71' => '98',\n\t\t\t\t'm72' => '85',\n\t\t\t\t'm73' => '80',\n\t\t\t\t'm74' => '67',\n\t\t\t\t'm75' => '101',\n\t\t\t\t'm76' => '97',\n\t\t\t\t'm77' => '45',\n\t\t\t\t'm78' => '76',\n\t\t\t\t'm79' => '40',\n\t\t\t\t'm80' => '44',\n\t\t\t\t'm81' => '46',\n\t\t\t\t'm82' => '40',\n\t\t\t\t'm83' => '35',\n\t\t\t\t'm84' => '31',\n\t\t\t\t'm85' => '37',\n\t\t\t\t'm86' => '23',\n\t\t\t\t'm87' => '19',\n\t\t\t\t'm88' => '13',\n\t\t\t\t'm89' => '8',\n\t\t\t\t'm90' => '45',\n\t\t\t\t'female_all_ages' => '7431',\n\t\t\t\t'f0' => '58',\n\t\t\t\t'f1' => '63',\n\t\t\t\t'f2' => '64',\n\t\t\t\t'f3' => '68',\n\t\t\t\t'f4' => '67',\n\t\t\t\t'f5' => '77',\n\t\t\t\t'f6' => '78',\n\t\t\t\t'f7' => '80',\n\t\t\t\t'f8' => '71',\n\t\t\t\t'f9' => '73',\n\t\t\t\t'f10' => '67',\n\t\t\t\t'f11' => '74',\n\t\t\t\t'f12' => '80',\n\t\t\t\t'f13' => '77',\n\t\t\t\t'f14' => '90',\n\t\t\t\t'f15' => '79',\n\t\t\t\t'f16' => '73',\n\t\t\t\t'f17' => '72',\n\t\t\t\t'f18' => '79',\n\t\t\t\t'f19' => '78',\n\t\t\t\t'f20' => '77',\n\t\t\t\t'f21' => '66',\n\t\t\t\t'f22' => '57',\n\t\t\t\t'f23' => '68',\n\t\t\t\t'f24' => '80',\n\t\t\t\t'f25' => '64',\n\t\t\t\t'f26' => '67',\n\t\t\t\t'f27' => '55',\n\t\t\t\t'f28' => '69',\n\t\t\t\t'f29' => '52',\n\t\t\t\t'f30' => '67',\n\t\t\t\t'f31' => '60',\n\t\t\t\t'f32' => '79',\n\t\t\t\t'f33' => '62',\n\t\t\t\t'f34' => '65',\n\t\t\t\t'f35' => '57',\n\t\t\t\t'f36' => '49',\n\t\t\t\t'f37' => '91',\n\t\t\t\t'f38' => '71',\n\t\t\t\t'f39' => '68',\n\t\t\t\t'f40' => '90',\n\t\t\t\t'f41' => '104',\n\t\t\t\t'f42' => '99',\n\t\t\t\t'f43' => '83',\n\t\t\t\t'f44' => '95',\n\t\t\t\t'f45' => '116',\n\t\t\t\t'f46' => '115',\n\t\t\t\t'f47' => '104',\n\t\t\t\t'f48' => '87',\n\t\t\t\t'f49' => '98',\n\t\t\t\t'f50' => '93',\n\t\t\t\t'f51' => '115',\n\t\t\t\t'f52' => '104',\n\t\t\t\t'f53' => '117',\n\t\t\t\t'f54' => '117',\n\t\t\t\t'f55' => '110',\n\t\t\t\t'f56' => '120',\n\t\t\t\t'f57' => '112',\n\t\t\t\t'f58' => '118',\n\t\t\t\t'f59' => '110',\n\t\t\t\t'f60' => '109',\n\t\t\t\t'f61' => '127',\n\t\t\t\t'f62' => '124',\n\t\t\t\t'f63' => '131',\n\t\t\t\t'f64' => '119',\n\t\t\t\t'f65' => '164',\n\t\t\t\t'f66' => '166',\n\t\t\t\t'f67' => '124',\n\t\t\t\t'f68' => '101',\n\t\t\t\t'f69' => '110',\n\t\t\t\t'f70' => '109',\n\t\t\t\t'f71' => '92',\n\t\t\t\t'f72' => '91',\n\t\t\t\t'f73' => '85',\n\t\t\t\t'f74' => '76',\n\t\t\t\t'f75' => '77',\n\t\t\t\t'f76' => '64',\n\t\t\t\t'f77' => '71',\n\t\t\t\t'f78' => '52',\n\t\t\t\t'f79' => '58',\n\t\t\t\t'f80' => '59',\n\t\t\t\t'f81' => '55',\n\t\t\t\t'f82' => '57',\n\t\t\t\t'f83' => '35',\n\t\t\t\t'f84' => '39',\n\t\t\t\t'f85' => '35',\n\t\t\t\t'f86' => '35',\n\t\t\t\t'f87' => '25',\n\t\t\t\t'f88' => '25',\n\t\t\t\t'f89' => '22',\n\t\t\t\t'f90' => '95',\n\t\t\t),\n\t\t\t44 => \n\t\t\tarray (\n\t\t\t\t'id' => '45',\n\t\t\t\t'slug' => 'south-hunsley',\n\t\t\t\t'seats' => '3',\n\t\t\t\t'body_id' => '2',\n\t\t\t\t'created_at' => '2015-01-20 12:24:46',\n\t\t\t\t'updated_at' => '2015-01-20 12:24:46',\n\t\t\t\t'ons_district_code' => 'E05001708',\n\t\t\t\t'ons_district_code_old' => '00FBPB',\n\t\t\t\t'name' => 'South Hunsley',\n\t\t\t\t'ons_la_code' => 'E06000011',\n\t\t\t\t'body_name' => 'East Riding of Yorkshire',\n\t\t\t\t'ons_constituency_code' => 'E14000724',\n\t\t\t\t'ons_constituency_code_old' => 'B96',\n\t\t\t\t'ons_constituency_name' => 'Haltemprice and Howden',\n\t\t\t\t'male_all_ages' => '4912',\n\t\t\t\t'm0' => '41',\n\t\t\t\t'm1' => '35',\n\t\t\t\t'm2' => '55',\n\t\t\t\t'm3' => '56',\n\t\t\t\t'm4' => '51',\n\t\t\t\t'm5' => '63',\n\t\t\t\t'm6' => '59',\n\t\t\t\t'm7' => '62',\n\t\t\t\t'm8' => '62',\n\t\t\t\t'm9' => '52',\n\t\t\t\t'm10' => '61',\n\t\t\t\t'm11' => '54',\n\t\t\t\t'm12' => '69',\n\t\t\t\t'm13' => '62',\n\t\t\t\t'm14' => '70',\n\t\t\t\t'm15' => '70',\n\t\t\t\t'm16' => '77',\n\t\t\t\t'm17' => '65',\n\t\t\t\t'm18' => '70',\n\t\t\t\t'm19' => '43',\n\t\t\t\t'm20' => '46',\n\t\t\t\t'm21' => '33',\n\t\t\t\t'm22' => '36',\n\t\t\t\t'm23' => '32',\n\t\t\t\t'm24' => '26',\n\t\t\t\t'm25' => '31',\n\t\t\t\t'm26' => '35',\n\t\t\t\t'm27' => '35',\n\t\t\t\t'm28' => '41',\n\t\t\t\t'm29' => '29',\n\t\t\t\t'm30' => '37',\n\t\t\t\t'm31' => '24',\n\t\t\t\t'm32' => '38',\n\t\t\t\t'm33' => '33',\n\t\t\t\t'm34' => '41',\n\t\t\t\t'm35' => '59',\n\t\t\t\t'm36' => '52',\n\t\t\t\t'm37' => '57',\n\t\t\t\t'm38' => '59',\n\t\t\t\t'm39' => '74',\n\t\t\t\t'm40' => '74',\n\t\t\t\t'm41' => '74',\n\t\t\t\t'm42' => '77',\n\t\t\t\t'm43' => '72',\n\t\t\t\t'm44' => '76',\n\t\t\t\t'm45' => '75',\n\t\t\t\t'm46' => '81',\n\t\t\t\t'm47' => '75',\n\t\t\t\t'm48' => '81',\n\t\t\t\t'm49' => '74',\n\t\t\t\t'm50' => '88',\n\t\t\t\t'm51' => '67',\n\t\t\t\t'm52' => '72',\n\t\t\t\t'm53' => '63',\n\t\t\t\t'm54' => '65',\n\t\t\t\t'm55' => '74',\n\t\t\t\t'm56' => '77',\n\t\t\t\t'm57' => '60',\n\t\t\t\t'm58' => '53',\n\t\t\t\t'm59' => '66',\n\t\t\t\t'm60' => '64',\n\t\t\t\t'm61' => '61',\n\t\t\t\t'm62' => '73',\n\t\t\t\t'm63' => '68',\n\t\t\t\t'm64' => '67',\n\t\t\t\t'm65' => '70',\n\t\t\t\t'm66' => '88',\n\t\t\t\t'm67' => '80',\n\t\t\t\t'm68' => '67',\n\t\t\t\t'm69' => '76',\n\t\t\t\t'm70' => '62',\n\t\t\t\t'm71' => '66',\n\t\t\t\t'm72' => '39',\n\t\t\t\t'm73' => '52',\n\t\t\t\t'm74' => '53',\n\t\t\t\t'm75' => '59',\n\t\t\t\t'm76' => '55',\n\t\t\t\t'm77' => '47',\n\t\t\t\t'm78' => '33',\n\t\t\t\t'm79' => '38',\n\t\t\t\t'm80' => '38',\n\t\t\t\t'm81' => '34',\n\t\t\t\t'm82' => '27',\n\t\t\t\t'm83' => '29',\n\t\t\t\t'm84' => '25',\n\t\t\t\t'm85' => '22',\n\t\t\t\t'm86' => '17',\n\t\t\t\t'm87' => '15',\n\t\t\t\t'm88' => '16',\n\t\t\t\t'm89' => '6',\n\t\t\t\t'm90' => '26',\n\t\t\t\t'female_all_ages' => '5093',\n\t\t\t\t'f0' => '38',\n\t\t\t\t'f1' => '43',\n\t\t\t\t'f2' => '49',\n\t\t\t\t'f3' => '36',\n\t\t\t\t'f4' => '47',\n\t\t\t\t'f5' => '58',\n\t\t\t\t'f6' => '48',\n\t\t\t\t'f7' => '57',\n\t\t\t\t'f8' => '67',\n\t\t\t\t'f9' => '60',\n\t\t\t\t'f10' => '48',\n\t\t\t\t'f11' => '49',\n\t\t\t\t'f12' => '56',\n\t\t\t\t'f13' => '68',\n\t\t\t\t'f14' => '63',\n\t\t\t\t'f15' => '55',\n\t\t\t\t'f16' => '59',\n\t\t\t\t'f17' => '67',\n\t\t\t\t'f18' => '62',\n\t\t\t\t'f19' => '40',\n\t\t\t\t'f20' => '26',\n\t\t\t\t'f21' => '23',\n\t\t\t\t'f22' => '31',\n\t\t\t\t'f23' => '27',\n\t\t\t\t'f24' => '30',\n\t\t\t\t'f25' => '41',\n\t\t\t\t'f26' => '41',\n\t\t\t\t'f27' => '32',\n\t\t\t\t'f28' => '32',\n\t\t\t\t'f29' => '38',\n\t\t\t\t'f30' => '36',\n\t\t\t\t'f31' => '44',\n\t\t\t\t'f32' => '44',\n\t\t\t\t'f33' => '43',\n\t\t\t\t'f34' => '58',\n\t\t\t\t'f35' => '48',\n\t\t\t\t'f36' => '45',\n\t\t\t\t'f37' => '63',\n\t\t\t\t'f38' => '60',\n\t\t\t\t'f39' => '74',\n\t\t\t\t'f40' => '82',\n\t\t\t\t'f41' => '78',\n\t\t\t\t'f42' => '73',\n\t\t\t\t'f43' => '84',\n\t\t\t\t'f44' => '84',\n\t\t\t\t'f45' => '101',\n\t\t\t\t'f46' => '78',\n\t\t\t\t'f47' => '84',\n\t\t\t\t'f48' => '70',\n\t\t\t\t'f49' => '82',\n\t\t\t\t'f50' => '92',\n\t\t\t\t'f51' => '74',\n\t\t\t\t'f52' => '67',\n\t\t\t\t'f53' => '73',\n\t\t\t\t'f54' => '55',\n\t\t\t\t'f55' => '70',\n\t\t\t\t'f56' => '87',\n\t\t\t\t'f57' => '61',\n\t\t\t\t'f58' => '66',\n\t\t\t\t'f59' => '68',\n\t\t\t\t'f60' => '67',\n\t\t\t\t'f61' => '69',\n\t\t\t\t'f62' => '75',\n\t\t\t\t'f63' => '83',\n\t\t\t\t'f64' => '73',\n\t\t\t\t'f65' => '82',\n\t\t\t\t'f66' => '95',\n\t\t\t\t'f67' => '88',\n\t\t\t\t'f68' => '82',\n\t\t\t\t'f69' => '72',\n\t\t\t\t'f70' => '64',\n\t\t\t\t'f71' => '53',\n\t\t\t\t'f72' => '46',\n\t\t\t\t'f73' => '61',\n\t\t\t\t'f74' => '63',\n\t\t\t\t'f75' => '67',\n\t\t\t\t'f76' => '55',\n\t\t\t\t'f77' => '58',\n\t\t\t\t'f78' => '44',\n\t\t\t\t'f79' => '54',\n\t\t\t\t'f80' => '29',\n\t\t\t\t'f81' => '57',\n\t\t\t\t'f82' => '36',\n\t\t\t\t'f83' => '27',\n\t\t\t\t'f84' => '33',\n\t\t\t\t'f85' => '19',\n\t\t\t\t'f86' => '23',\n\t\t\t\t'f87' => '18',\n\t\t\t\t'f88' => '10',\n\t\t\t\t'f89' => '7',\n\t\t\t\t'f90' => '48',\n\t\t\t),\n\t\t\t45 => \n\t\t\tarray (\n\t\t\t\t'id' => '46',\n\t\t\t\t'slug' => 'south-west-holderness',\n\t\t\t\t'seats' => '3',\n\t\t\t\t'body_id' => '2',\n\t\t\t\t'created_at' => '2015-01-20 12:24:46',\n\t\t\t\t'updated_at' => '2015-01-20 12:24:46',\n\t\t\t\t'ons_district_code' => 'E05001709',\n\t\t\t\t'ons_district_code_old' => '00FBPC',\n\t\t\t\t'name' => 'South West Holderness',\n\t\t\t\t'ons_la_code' => 'E06000011',\n\t\t\t\t'body_name' => 'East Riding of Yorkshire',\n\t\t\t\t'ons_constituency_code' => 'E14000556',\n\t\t\t\t'ons_constituency_code_old' => 'A27',\n\t\t\t\t'ons_constituency_name' => 'Beverley and Holderness',\n\t\t\t\t'male_all_ages' => '7086',\n\t\t\t\t'm0' => '66',\n\t\t\t\t'm1' => '72',\n\t\t\t\t'm2' => '74',\n\t\t\t\t'm3' => '68',\n\t\t\t\t'm4' => '73',\n\t\t\t\t'm5' => '74',\n\t\t\t\t'm6' => '76',\n\t\t\t\t'm7' => '72',\n\t\t\t\t'm8' => '78',\n\t\t\t\t'm9' => '84',\n\t\t\t\t'm10' => '68',\n\t\t\t\t'm11' => '76',\n\t\t\t\t'm12' => '64',\n\t\t\t\t'm13' => '75',\n\t\t\t\t'm14' => '81',\n\t\t\t\t'm15' => '84',\n\t\t\t\t'm16' => '94',\n\t\t\t\t'm17' => '98',\n\t\t\t\t'm18' => '84',\n\t\t\t\t'm19' => '83',\n\t\t\t\t'm20' => '77',\n\t\t\t\t'm21' => '83',\n\t\t\t\t'm22' => '78',\n\t\t\t\t'm23' => '74',\n\t\t\t\t'm24' => '70',\n\t\t\t\t'm25' => '59',\n\t\t\t\t'm26' => '70',\n\t\t\t\t'm27' => '71',\n\t\t\t\t'm28' => '54',\n\t\t\t\t'm29' => '71',\n\t\t\t\t'm30' => '56',\n\t\t\t\t'm31' => '55',\n\t\t\t\t'm32' => '75',\n\t\t\t\t'm33' => '81',\n\t\t\t\t'm34' => '76',\n\t\t\t\t'm35' => '79',\n\t\t\t\t'm36' => '84',\n\t\t\t\t'm37' => '74',\n\t\t\t\t'm38' => '82',\n\t\t\t\t'm39' => '97',\n\t\t\t\t'm40' => '84',\n\t\t\t\t'm41' => '111',\n\t\t\t\t'm42' => '110',\n\t\t\t\t'm43' => '83',\n\t\t\t\t'm44' => '99',\n\t\t\t\t'm45' => '108',\n\t\t\t\t'm46' => '99',\n\t\t\t\t'm47' => '106',\n\t\t\t\t'm48' => '115',\n\t\t\t\t'm49' => '106',\n\t\t\t\t'm50' => '98',\n\t\t\t\t'm51' => '116',\n\t\t\t\t'm52' => '99',\n\t\t\t\t'm53' => '106',\n\t\t\t\t'm54' => '105',\n\t\t\t\t'm55' => '99',\n\t\t\t\t'm56' => '94',\n\t\t\t\t'm57' => '118',\n\t\t\t\t'm58' => '88',\n\t\t\t\t'm59' => '102',\n\t\t\t\t'm60' => '97',\n\t\t\t\t'm61' => '98',\n\t\t\t\t'm62' => '115',\n\t\t\t\t'm63' => '84',\n\t\t\t\t'm64' => '107',\n\t\t\t\t'm65' => '119',\n\t\t\t\t'm66' => '136',\n\t\t\t\t'm67' => '96',\n\t\t\t\t'm68' => '97',\n\t\t\t\t'm69' => '93',\n\t\t\t\t'm70' => '79',\n\t\t\t\t'm71' => '89',\n\t\t\t\t'm72' => '63',\n\t\t\t\t'm73' => '81',\n\t\t\t\t'm74' => '86',\n\t\t\t\t'm75' => '66',\n\t\t\t\t'm76' => '51',\n\t\t\t\t'm77' => '60',\n\t\t\t\t'm78' => '56',\n\t\t\t\t'm79' => '51',\n\t\t\t\t'm80' => '58',\n\t\t\t\t'm81' => '38',\n\t\t\t\t'm82' => '38',\n\t\t\t\t'm83' => '30',\n\t\t\t\t'm84' => '24',\n\t\t\t\t'm85' => '24',\n\t\t\t\t'm86' => '23',\n\t\t\t\t'm87' => '20',\n\t\t\t\t'm88' => '15',\n\t\t\t\t'm89' => '11',\n\t\t\t\t'm90' => '25',\n\t\t\t\t'female_all_ages' => '7438',\n\t\t\t\t'f0' => '52',\n\t\t\t\t'f1' => '64',\n\t\t\t\t'f2' => '60',\n\t\t\t\t'f3' => '71',\n\t\t\t\t'f4' => '82',\n\t\t\t\t'f5' => '60',\n\t\t\t\t'f6' => '69',\n\t\t\t\t'f7' => '68',\n\t\t\t\t'f8' => '72',\n\t\t\t\t'f9' => '71',\n\t\t\t\t'f10' => '57',\n\t\t\t\t'f11' => '87',\n\t\t\t\t'f12' => '78',\n\t\t\t\t'f13' => '93',\n\t\t\t\t'f14' => '87',\n\t\t\t\t'f15' => '79',\n\t\t\t\t'f16' => '73',\n\t\t\t\t'f17' => '82',\n\t\t\t\t'f18' => '69',\n\t\t\t\t'f19' => '69',\n\t\t\t\t'f20' => '66',\n\t\t\t\t'f21' => '62',\n\t\t\t\t'f22' => '71',\n\t\t\t\t'f23' => '57',\n\t\t\t\t'f24' => '50',\n\t\t\t\t'f25' => '69',\n\t\t\t\t'f26' => '64',\n\t\t\t\t'f27' => '67',\n\t\t\t\t'f28' => '80',\n\t\t\t\t'f29' => '70',\n\t\t\t\t'f30' => '59',\n\t\t\t\t'f31' => '74',\n\t\t\t\t'f32' => '80',\n\t\t\t\t'f33' => '72',\n\t\t\t\t'f34' => '72',\n\t\t\t\t'f35' => '71',\n\t\t\t\t'f36' => '72',\n\t\t\t\t'f37' => '93',\n\t\t\t\t'f38' => '95',\n\t\t\t\t'f39' => '105',\n\t\t\t\t'f40' => '117',\n\t\t\t\t'f41' => '112',\n\t\t\t\t'f42' => '105',\n\t\t\t\t'f43' => '90',\n\t\t\t\t'f44' => '93',\n\t\t\t\t'f45' => '124',\n\t\t\t\t'f46' => '93',\n\t\t\t\t'f47' => '108',\n\t\t\t\t'f48' => '100',\n\t\t\t\t'f49' => '107',\n\t\t\t\t'f50' => '116',\n\t\t\t\t'f51' => '127',\n\t\t\t\t'f52' => '111',\n\t\t\t\t'f53' => '85',\n\t\t\t\t'f54' => '101',\n\t\t\t\t'f55' => '119',\n\t\t\t\t'f56' => '86',\n\t\t\t\t'f57' => '106',\n\t\t\t\t'f58' => '102',\n\t\t\t\t'f59' => '98',\n\t\t\t\t'f60' => '116',\n\t\t\t\t'f61' => '93',\n\t\t\t\t'f62' => '104',\n\t\t\t\t'f63' => '136',\n\t\t\t\t'f64' => '123',\n\t\t\t\t'f65' => '149',\n\t\t\t\t'f66' => '166',\n\t\t\t\t'f67' => '112',\n\t\t\t\t'f68' => '99',\n\t\t\t\t'f69' => '99',\n\t\t\t\t'f70' => '88',\n\t\t\t\t'f71' => '88',\n\t\t\t\t'f72' => '81',\n\t\t\t\t'f73' => '74',\n\t\t\t\t'f74' => '67',\n\t\t\t\t'f75' => '80',\n\t\t\t\t'f76' => '82',\n\t\t\t\t'f77' => '83',\n\t\t\t\t'f78' => '73',\n\t\t\t\t'f79' => '54',\n\t\t\t\t'f80' => '57',\n\t\t\t\t'f81' => '68',\n\t\t\t\t'f82' => '43',\n\t\t\t\t'f83' => '53',\n\t\t\t\t'f84' => '49',\n\t\t\t\t'f85' => '27',\n\t\t\t\t'f86' => '30',\n\t\t\t\t'f87' => '27',\n\t\t\t\t'f88' => '25',\n\t\t\t\t'f89' => '20',\n\t\t\t\t'f90' => '80',\n\t\t\t),\n\t\t\t46 => \n\t\t\tarray (\n\t\t\t\t'id' => '47',\n\t\t\t\t'slug' => 'tranby',\n\t\t\t\t'seats' => '3',\n\t\t\t\t'body_id' => '2',\n\t\t\t\t'created_at' => '2015-01-20 12:24:46',\n\t\t\t\t'updated_at' => '2015-01-20 12:24:46',\n\t\t\t\t'ons_district_code' => 'E05001710',\n\t\t\t\t'ons_district_code_old' => '00FBPD',\n\t\t\t\t'name' => 'Tranby',\n\t\t\t\t'ons_la_code' => 'E06000011',\n\t\t\t\t'body_name' => 'East Riding of Yorkshire',\n\t\t\t\t'ons_constituency_code' => 'E14000724',\n\t\t\t\t'ons_constituency_code_old' => 'B96',\n\t\t\t\t'ons_constituency_name' => 'Haltemprice and Howden',\n\t\t\t\t'male_all_ages' => '4706',\n\t\t\t\t'm0' => '44',\n\t\t\t\t'm1' => '54',\n\t\t\t\t'm2' => '52',\n\t\t\t\t'm3' => '42',\n\t\t\t\t'm4' => '57',\n\t\t\t\t'm5' => '57',\n\t\t\t\t'm6' => '53',\n\t\t\t\t'm7' => '48',\n\t\t\t\t'm8' => '72',\n\t\t\t\t'm9' => '48',\n\t\t\t\t'm10' => '51',\n\t\t\t\t'm11' => '45',\n\t\t\t\t'm12' => '67',\n\t\t\t\t'm13' => '56',\n\t\t\t\t'm14' => '67',\n\t\t\t\t'm15' => '48',\n\t\t\t\t'm16' => '47',\n\t\t\t\t'm17' => '59',\n\t\t\t\t'm18' => '52',\n\t\t\t\t'm19' => '51',\n\t\t\t\t'm20' => '55',\n\t\t\t\t'm21' => '45',\n\t\t\t\t'm22' => '38',\n\t\t\t\t'm23' => '46',\n\t\t\t\t'm24' => '43',\n\t\t\t\t'm25' => '39',\n\t\t\t\t'm26' => '50',\n\t\t\t\t'm27' => '47',\n\t\t\t\t'm28' => '51',\n\t\t\t\t'm29' => '45',\n\t\t\t\t'm30' => '57',\n\t\t\t\t'm31' => '42',\n\t\t\t\t'm32' => '40',\n\t\t\t\t'm33' => '41',\n\t\t\t\t'm34' => '52',\n\t\t\t\t'm35' => '43',\n\t\t\t\t'm36' => '48',\n\t\t\t\t'm37' => '43',\n\t\t\t\t'm38' => '49',\n\t\t\t\t'm39' => '46',\n\t\t\t\t'm40' => '61',\n\t\t\t\t'm41' => '78',\n\t\t\t\t'm42' => '47',\n\t\t\t\t'm43' => '56',\n\t\t\t\t'm44' => '62',\n\t\t\t\t'm45' => '67',\n\t\t\t\t'm46' => '83',\n\t\t\t\t'm47' => '69',\n\t\t\t\t'm48' => '75',\n\t\t\t\t'm49' => '67',\n\t\t\t\t'm50' => '66',\n\t\t\t\t'm51' => '69',\n\t\t\t\t'm52' => '68',\n\t\t\t\t'm53' => '63',\n\t\t\t\t'm54' => '69',\n\t\t\t\t'm55' => '64',\n\t\t\t\t'm56' => '75',\n\t\t\t\t'm57' => '59',\n\t\t\t\t'm58' => '62',\n\t\t\t\t'm59' => '61',\n\t\t\t\t'm60' => '69',\n\t\t\t\t'm61' => '58',\n\t\t\t\t'm62' => '65',\n\t\t\t\t'm63' => '74',\n\t\t\t\t'm64' => '62',\n\t\t\t\t'm65' => '78',\n\t\t\t\t'm66' => '111',\n\t\t\t\t'm67' => '81',\n\t\t\t\t'm68' => '51',\n\t\t\t\t'm69' => '64',\n\t\t\t\t'm70' => '41',\n\t\t\t\t'm71' => '32',\n\t\t\t\t'm72' => '35',\n\t\t\t\t'm73' => '41',\n\t\t\t\t'm74' => '52',\n\t\t\t\t'm75' => '57',\n\t\t\t\t'm76' => '38',\n\t\t\t\t'm77' => '45',\n\t\t\t\t'm78' => '25',\n\t\t\t\t'm79' => '40',\n\t\t\t\t'm80' => '35',\n\t\t\t\t'm81' => '38',\n\t\t\t\t'm82' => '30',\n\t\t\t\t'm83' => '29',\n\t\t\t\t'm84' => '26',\n\t\t\t\t'm85' => '27',\n\t\t\t\t'm86' => '14',\n\t\t\t\t'm87' => '19',\n\t\t\t\t'm88' => '8',\n\t\t\t\t'm89' => '14',\n\t\t\t\t'm90' => '36',\n\t\t\t\t'female_all_ages' => '5129',\n\t\t\t\t'f0' => '49',\n\t\t\t\t'f1' => '59',\n\t\t\t\t'f2' => '45',\n\t\t\t\t'f3' => '58',\n\t\t\t\t'f4' => '53',\n\t\t\t\t'f5' => '56',\n\t\t\t\t'f6' => '49',\n\t\t\t\t'f7' => '52',\n\t\t\t\t'f8' => '54',\n\t\t\t\t'f9' => '59',\n\t\t\t\t'f10' => '46',\n\t\t\t\t'f11' => '48',\n\t\t\t\t'f12' => '42',\n\t\t\t\t'f13' => '55',\n\t\t\t\t'f14' => '59',\n\t\t\t\t'f15' => '53',\n\t\t\t\t'f16' => '41',\n\t\t\t\t'f17' => '53',\n\t\t\t\t'f18' => '56',\n\t\t\t\t'f19' => '40',\n\t\t\t\t'f20' => '40',\n\t\t\t\t'f21' => '34',\n\t\t\t\t'f22' => '56',\n\t\t\t\t'f23' => '35',\n\t\t\t\t'f24' => '55',\n\t\t\t\t'f25' => '45',\n\t\t\t\t'f26' => '43',\n\t\t\t\t'f27' => '56',\n\t\t\t\t'f28' => '58',\n\t\t\t\t'f29' => '60',\n\t\t\t\t'f30' => '42',\n\t\t\t\t'f31' => '45',\n\t\t\t\t'f32' => '48',\n\t\t\t\t'f33' => '59',\n\t\t\t\t'f34' => '46',\n\t\t\t\t'f35' => '48',\n\t\t\t\t'f36' => '49',\n\t\t\t\t'f37' => '48',\n\t\t\t\t'f38' => '60',\n\t\t\t\t'f39' => '50',\n\t\t\t\t'f40' => '76',\n\t\t\t\t'f41' => '74',\n\t\t\t\t'f42' => '70',\n\t\t\t\t'f43' => '71',\n\t\t\t\t'f44' => '70',\n\t\t\t\t'f45' => '55',\n\t\t\t\t'f46' => '77',\n\t\t\t\t'f47' => '72',\n\t\t\t\t'f48' => '92',\n\t\t\t\t'f49' => '68',\n\t\t\t\t'f50' => '83',\n\t\t\t\t'f51' => '84',\n\t\t\t\t'f52' => '78',\n\t\t\t\t'f53' => '58',\n\t\t\t\t'f54' => '65',\n\t\t\t\t'f55' => '61',\n\t\t\t\t'f56' => '60',\n\t\t\t\t'f57' => '70',\n\t\t\t\t'f58' => '64',\n\t\t\t\t'f59' => '67',\n\t\t\t\t'f60' => '70',\n\t\t\t\t'f61' => '75',\n\t\t\t\t'f62' => '76',\n\t\t\t\t'f63' => '76',\n\t\t\t\t'f64' => '76',\n\t\t\t\t'f65' => '76',\n\t\t\t\t'f66' => '104',\n\t\t\t\t'f67' => '67',\n\t\t\t\t'f68' => '61',\n\t\t\t\t'f69' => '53',\n\t\t\t\t'f70' => '59',\n\t\t\t\t'f71' => '67',\n\t\t\t\t'f72' => '50',\n\t\t\t\t'f73' => '65',\n\t\t\t\t'f74' => '48',\n\t\t\t\t'f75' => '54',\n\t\t\t\t'f76' => '60',\n\t\t\t\t'f77' => '64',\n\t\t\t\t'f78' => '62',\n\t\t\t\t'f79' => '45',\n\t\t\t\t'f80' => '47',\n\t\t\t\t'f81' => '45',\n\t\t\t\t'f82' => '45',\n\t\t\t\t'f83' => '41',\n\t\t\t\t'f84' => '36',\n\t\t\t\t'f85' => '29',\n\t\t\t\t'f86' => '26',\n\t\t\t\t'f87' => '26',\n\t\t\t\t'f88' => '17',\n\t\t\t\t'f89' => '16',\n\t\t\t\t'f90' => '74',\n\t\t\t),\n\t\t\t47 => \n\t\t\tarray (\n\t\t\t\t'id' => '48',\n\t\t\t\t'slug' => 'willeryby-and-kirk-ella',\n\t\t\t\t'seats' => '3',\n\t\t\t\t'body_id' => '2',\n\t\t\t\t'created_at' => '2015-01-20 12:24:46',\n\t\t\t\t'updated_at' => '2015-01-20 12:24:46',\n\t\t\t\t'ons_district_code' => 'E05001711',\n\t\t\t\t'ons_district_code_old' => '00FBPE',\n\t\t\t\t'name' => 'Willerby and Kirk Ella',\n\t\t\t\t'ons_la_code' => 'E06000011',\n\t\t\t\t'body_name' => 'East Riding of Yorkshire',\n\t\t\t\t'ons_constituency_code' => 'E14000724',\n\t\t\t\t'ons_constituency_code_old' => 'B96',\n\t\t\t\t'ons_constituency_name' => 'Haltemprice and Howden',\n\t\t\t\t'male_all_ages' => '6544',\n\t\t\t\t'm0' => '51',\n\t\t\t\t'm1' => '57',\n\t\t\t\t'm2' => '68',\n\t\t\t\t'm3' => '68',\n\t\t\t\t'm4' => '73',\n\t\t\t\t'm5' => '55',\n\t\t\t\t'm6' => '73',\n\t\t\t\t'm7' => '64',\n\t\t\t\t'm8' => '67',\n\t\t\t\t'm9' => '62',\n\t\t\t\t'm10' => '77',\n\t\t\t\t'm11' => '64',\n\t\t\t\t'm12' => '72',\n\t\t\t\t'm13' => '75',\n\t\t\t\t'm14' => '86',\n\t\t\t\t'm15' => '75',\n\t\t\t\t'm16' => '97',\n\t\t\t\t'm17' => '90',\n\t\t\t\t'm18' => '68',\n\t\t\t\t'm19' => '72',\n\t\t\t\t'm20' => '67',\n\t\t\t\t'm21' => '70',\n\t\t\t\t'm22' => '64',\n\t\t\t\t'm23' => '63',\n\t\t\t\t'm24' => '62',\n\t\t\t\t'm25' => '50',\n\t\t\t\t'm26' => '54',\n\t\t\t\t'm27' => '50',\n\t\t\t\t'm28' => '37',\n\t\t\t\t'm29' => '36',\n\t\t\t\t'm30' => '32',\n\t\t\t\t'm31' => '43',\n\t\t\t\t'm32' => '45',\n\t\t\t\t'm33' => '45',\n\t\t\t\t'm34' => '42',\n\t\t\t\t'm35' => '56',\n\t\t\t\t'm36' => '58',\n\t\t\t\t'm37' => '65',\n\t\t\t\t'm38' => '53',\n\t\t\t\t'm39' => '68',\n\t\t\t\t'm40' => '79',\n\t\t\t\t'm41' => '96',\n\t\t\t\t'm42' => '100',\n\t\t\t\t'm43' => '90',\n\t\t\t\t'm44' => '93',\n\t\t\t\t'm45' => '96',\n\t\t\t\t'm46' => '115',\n\t\t\t\t'm47' => '95',\n\t\t\t\t'm48' => '112',\n\t\t\t\t'm49' => '113',\n\t\t\t\t'm50' => '130',\n\t\t\t\t'm51' => '117',\n\t\t\t\t'm52' => '110',\n\t\t\t\t'm53' => '84',\n\t\t\t\t'm54' => '109',\n\t\t\t\t'm55' => '103',\n\t\t\t\t'm56' => '88',\n\t\t\t\t'm57' => '102',\n\t\t\t\t'm58' => '65',\n\t\t\t\t'm59' => '91',\n\t\t\t\t'm60' => '84',\n\t\t\t\t'm61' => '93',\n\t\t\t\t'm62' => '92',\n\t\t\t\t'm63' => '90',\n\t\t\t\t'm64' => '90',\n\t\t\t\t'm65' => '115',\n\t\t\t\t'm66' => '134',\n\t\t\t\t'm67' => '92',\n\t\t\t\t'm68' => '83',\n\t\t\t\t'm69' => '83',\n\t\t\t\t'm70' => '78',\n\t\t\t\t'm71' => '73',\n\t\t\t\t'm72' => '67',\n\t\t\t\t'm73' => '83',\n\t\t\t\t'm74' => '86',\n\t\t\t\t'm75' => '67',\n\t\t\t\t'm76' => '67',\n\t\t\t\t'm77' => '67',\n\t\t\t\t'm78' => '60',\n\t\t\t\t'm79' => '78',\n\t\t\t\t'm80' => '62',\n\t\t\t\t'm81' => '50',\n\t\t\t\t'm82' => '48',\n\t\t\t\t'm83' => '33',\n\t\t\t\t'm84' => '30',\n\t\t\t\t'm85' => '36',\n\t\t\t\t'm86' => '29',\n\t\t\t\t'm87' => '23',\n\t\t\t\t'm88' => '15',\n\t\t\t\t'm89' => '23',\n\t\t\t\t'm90' => '51',\n\t\t\t\t'female_all_ages' => '6916',\n\t\t\t\t'f0' => '40',\n\t\t\t\t'f1' => '47',\n\t\t\t\t'f2' => '55',\n\t\t\t\t'f3' => '50',\n\t\t\t\t'f4' => '59',\n\t\t\t\t'f5' => '77',\n\t\t\t\t'f6' => '61',\n\t\t\t\t'f7' => '57',\n\t\t\t\t'f8' => '71',\n\t\t\t\t'f9' => '78',\n\t\t\t\t'f10' => '62',\n\t\t\t\t'f11' => '73',\n\t\t\t\t'f12' => '88',\n\t\t\t\t'f13' => '67',\n\t\t\t\t'f14' => '85',\n\t\t\t\t'f15' => '70',\n\t\t\t\t'f16' => '85',\n\t\t\t\t'f17' => '84',\n\t\t\t\t'f18' => '69',\n\t\t\t\t'f19' => '72',\n\t\t\t\t'f20' => '42',\n\t\t\t\t'f21' => '55',\n\t\t\t\t'f22' => '63',\n\t\t\t\t'f23' => '56',\n\t\t\t\t'f24' => '48',\n\t\t\t\t'f25' => '45',\n\t\t\t\t'f26' => '40',\n\t\t\t\t'f27' => '38',\n\t\t\t\t'f28' => '37',\n\t\t\t\t'f29' => '31',\n\t\t\t\t'f30' => '40',\n\t\t\t\t'f31' => '31',\n\t\t\t\t'f32' => '57',\n\t\t\t\t'f33' => '62',\n\t\t\t\t'f34' => '68',\n\t\t\t\t'f35' => '70',\n\t\t\t\t'f36' => '57',\n\t\t\t\t'f37' => '61',\n\t\t\t\t'f38' => '80',\n\t\t\t\t'f39' => '72',\n\t\t\t\t'f40' => '89',\n\t\t\t\t'f41' => '74',\n\t\t\t\t'f42' => '102',\n\t\t\t\t'f43' => '80',\n\t\t\t\t'f44' => '116',\n\t\t\t\t'f45' => '103',\n\t\t\t\t'f46' => '99',\n\t\t\t\t'f47' => '138',\n\t\t\t\t'f48' => '99',\n\t\t\t\t'f49' => '105',\n\t\t\t\t'f50' => '117',\n\t\t\t\t'f51' => '103',\n\t\t\t\t'f52' => '112',\n\t\t\t\t'f53' => '88',\n\t\t\t\t'f54' => '118',\n\t\t\t\t'f55' => '105',\n\t\t\t\t'f56' => '102',\n\t\t\t\t'f57' => '87',\n\t\t\t\t'f58' => '76',\n\t\t\t\t'f59' => '93',\n\t\t\t\t'f60' => '98',\n\t\t\t\t'f61' => '92',\n\t\t\t\t'f62' => '84',\n\t\t\t\t'f63' => '105',\n\t\t\t\t'f64' => '110',\n\t\t\t\t'f65' => '120',\n\t\t\t\t'f66' => '155',\n\t\t\t\t'f67' => '94',\n\t\t\t\t'f68' => '85',\n\t\t\t\t'f69' => '96',\n\t\t\t\t'f70' => '104',\n\t\t\t\t'f71' => '89',\n\t\t\t\t'f72' => '71',\n\t\t\t\t'f73' => '78',\n\t\t\t\t'f74' => '112',\n\t\t\t\t'f75' => '83',\n\t\t\t\t'f76' => '94',\n\t\t\t\t'f77' => '72',\n\t\t\t\t'f78' => '90',\n\t\t\t\t'f79' => '66',\n\t\t\t\t'f80' => '67',\n\t\t\t\t'f81' => '62',\n\t\t\t\t'f82' => '60',\n\t\t\t\t'f83' => '64',\n\t\t\t\t'f84' => '54',\n\t\t\t\t'f85' => '49',\n\t\t\t\t'f86' => '33',\n\t\t\t\t'f87' => '34',\n\t\t\t\t'f88' => '31',\n\t\t\t\t'f89' => '33',\n\t\t\t\t'f90' => '122',\n\t\t\t),\n\t\t\t48 => \n\t\t\tarray (\n\t\t\t\t'id' => '49',\n\t\t\t\t'slug' => 'wolds-weighton',\n\t\t\t\t'seats' => '3',\n\t\t\t\t'body_id' => '2',\n\t\t\t\t'created_at' => '2015-01-20 12:24:46',\n\t\t\t\t'updated_at' => '2015-01-20 12:24:46',\n\t\t\t\t'ons_district_code' => 'E05001712',\n\t\t\t\t'ons_district_code_old' => '00FBPF',\n\t\t\t\t'name' => 'Wolds Weighton',\n\t\t\t\t'ons_la_code' => 'E06000011',\n\t\t\t\t'body_name' => 'East Riding of Yorkshire',\n\t\t\t\t'ons_constituency_code' => 'E14000683',\n\t\t\t\t'ons_constituency_code_old' => 'B55',\n\t\t\t\t'ons_constituency_name' => 'East Yorkshire',\n\t\t\t\t'male_all_ages' => '8284',\n\t\t\t\t'm0' => '68',\n\t\t\t\t'm1' => '78',\n\t\t\t\t'm2' => '74',\n\t\t\t\t'm3' => '89',\n\t\t\t\t'm4' => '100',\n\t\t\t\t'm5' => '112',\n\t\t\t\t'm6' => '105',\n\t\t\t\t'm7' => '95',\n\t\t\t\t'm8' => '78',\n\t\t\t\t'm9' => '87',\n\t\t\t\t'm10' => '91',\n\t\t\t\t'm11' => '82',\n\t\t\t\t'm12' => '88',\n\t\t\t\t'm13' => '94',\n\t\t\t\t'm14' => '98',\n\t\t\t\t'm15' => '86',\n\t\t\t\t'm16' => '85',\n\t\t\t\t'm17' => '82',\n\t\t\t\t'm18' => '102',\n\t\t\t\t'm19' => '95',\n\t\t\t\t'm20' => '79',\n\t\t\t\t'm21' => '65',\n\t\t\t\t'm22' => '69',\n\t\t\t\t'm23' => '69',\n\t\t\t\t'm24' => '82',\n\t\t\t\t'm25' => '89',\n\t\t\t\t'm26' => '88',\n\t\t\t\t'm27' => '74',\n\t\t\t\t'm28' => '78',\n\t\t\t\t'm29' => '81',\n\t\t\t\t'm30' => '91',\n\t\t\t\t'm31' => '95',\n\t\t\t\t'm32' => '98',\n\t\t\t\t'm33' => '83',\n\t\t\t\t'm34' => '89',\n\t\t\t\t'm35' => '109',\n\t\t\t\t'm36' => '102',\n\t\t\t\t'm37' => '96',\n\t\t\t\t'm38' => '82',\n\t\t\t\t'm39' => '120',\n\t\t\t\t'm40' => '119',\n\t\t\t\t'm41' => '115',\n\t\t\t\t'm42' => '98',\n\t\t\t\t'm43' => '124',\n\t\t\t\t'm44' => '135',\n\t\t\t\t'm45' => '140',\n\t\t\t\t'm46' => '135',\n\t\t\t\t'm47' => '142',\n\t\t\t\t'm48' => '151',\n\t\t\t\t'm49' => '142',\n\t\t\t\t'm50' => '146',\n\t\t\t\t'm51' => '142',\n\t\t\t\t'm52' => '138',\n\t\t\t\t'm53' => '135',\n\t\t\t\t'm54' => '123',\n\t\t\t\t'm55' => '129',\n\t\t\t\t'm56' => '130',\n\t\t\t\t'm57' => '123',\n\t\t\t\t'm58' => '111',\n\t\t\t\t'm59' => '107',\n\t\t\t\t'm60' => '99',\n\t\t\t\t'm61' => '118',\n\t\t\t\t'm62' => '144',\n\t\t\t\t'm63' => '138',\n\t\t\t\t'm64' => '136',\n\t\t\t\t'm65' => '129',\n\t\t\t\t'm66' => '161',\n\t\t\t\t'm67' => '109',\n\t\t\t\t'm68' => '76',\n\t\t\t\t'm69' => '105',\n\t\t\t\t'm70' => '89',\n\t\t\t\t'm71' => '99',\n\t\t\t\t'm72' => '65',\n\t\t\t\t'm73' => '56',\n\t\t\t\t'm74' => '65',\n\t\t\t\t'm75' => '77',\n\t\t\t\t'm76' => '59',\n\t\t\t\t'm77' => '41',\n\t\t\t\t'm78' => '57',\n\t\t\t\t'm79' => '47',\n\t\t\t\t'm80' => '42',\n\t\t\t\t'm81' => '35',\n\t\t\t\t'm82' => '43',\n\t\t\t\t'm83' => '23',\n\t\t\t\t'm84' => '37',\n\t\t\t\t'm85' => '17',\n\t\t\t\t'm86' => '17',\n\t\t\t\t'm87' => '19',\n\t\t\t\t'm88' => '18',\n\t\t\t\t'm89' => '15',\n\t\t\t\t'm90' => '35',\n\t\t\t\t'female_all_ages' => '7917',\n\t\t\t\t'f0' => '61',\n\t\t\t\t'f1' => '62',\n\t\t\t\t'f2' => '88',\n\t\t\t\t'f3' => '94',\n\t\t\t\t'f4' => '68',\n\t\t\t\t'f5' => '96',\n\t\t\t\t'f6' => '97',\n\t\t\t\t'f7' => '84',\n\t\t\t\t'f8' => '92',\n\t\t\t\t'f9' => '87',\n\t\t\t\t'f10' => '88',\n\t\t\t\t'f11' => '79',\n\t\t\t\t'f12' => '92',\n\t\t\t\t'f13' => '79',\n\t\t\t\t'f14' => '68',\n\t\t\t\t'f15' => '114',\n\t\t\t\t'f16' => '78',\n\t\t\t\t'f17' => '97',\n\t\t\t\t'f18' => '94',\n\t\t\t\t'f19' => '68',\n\t\t\t\t'f20' => '55',\n\t\t\t\t'f21' => '59',\n\t\t\t\t'f22' => '63',\n\t\t\t\t'f23' => '67',\n\t\t\t\t'f24' => '69',\n\t\t\t\t'f25' => '66',\n\t\t\t\t'f26' => '64',\n\t\t\t\t'f27' => '81',\n\t\t\t\t'f28' => '65',\n\t\t\t\t'f29' => '67',\n\t\t\t\t'f30' => '69',\n\t\t\t\t'f31' => '77',\n\t\t\t\t'f32' => '82',\n\t\t\t\t'f33' => '92',\n\t\t\t\t'f34' => '88',\n\t\t\t\t'f35' => '83',\n\t\t\t\t'f36' => '68',\n\t\t\t\t'f37' => '101',\n\t\t\t\t'f38' => '88',\n\t\t\t\t'f39' => '101',\n\t\t\t\t'f40' => '93',\n\t\t\t\t'f41' => '107',\n\t\t\t\t'f42' => '122',\n\t\t\t\t'f43' => '132',\n\t\t\t\t'f44' => '122',\n\t\t\t\t'f45' => '127',\n\t\t\t\t'f46' => '138',\n\t\t\t\t'f47' => '128',\n\t\t\t\t'f48' => '130',\n\t\t\t\t'f49' => '154',\n\t\t\t\t'f50' => '138',\n\t\t\t\t'f51' => '130',\n\t\t\t\t'f52' => '102',\n\t\t\t\t'f53' => '119',\n\t\t\t\t'f54' => '116',\n\t\t\t\t'f55' => '118',\n\t\t\t\t'f56' => '120',\n\t\t\t\t'f57' => '128',\n\t\t\t\t'f58' => '119',\n\t\t\t\t'f59' => '103',\n\t\t\t\t'f60' => '97',\n\t\t\t\t'f61' => '135',\n\t\t\t\t'f62' => '130',\n\t\t\t\t'f63' => '136',\n\t\t\t\t'f64' => '123',\n\t\t\t\t'f65' => '126',\n\t\t\t\t'f66' => '117',\n\t\t\t\t'f67' => '103',\n\t\t\t\t'f68' => '100',\n\t\t\t\t'f69' => '94',\n\t\t\t\t'f70' => '89',\n\t\t\t\t'f71' => '98',\n\t\t\t\t'f72' => '69',\n\t\t\t\t'f73' => '83',\n\t\t\t\t'f74' => '70',\n\t\t\t\t'f75' => '49',\n\t\t\t\t'f76' => '62',\n\t\t\t\t'f77' => '53',\n\t\t\t\t'f78' => '52',\n\t\t\t\t'f79' => '54',\n\t\t\t\t'f80' => '49',\n\t\t\t\t'f81' => '51',\n\t\t\t\t'f82' => '53',\n\t\t\t\t'f83' => '45',\n\t\t\t\t'f84' => '31',\n\t\t\t\t'f85' => '32',\n\t\t\t\t'f86' => '24',\n\t\t\t\t'f87' => '21',\n\t\t\t\t'f88' => '23',\n\t\t\t\t'f89' => '23',\n\t\t\t\t'f90' => '88',\n\t\t\t),\n\t\t\t49 => \n\t\t\tarray (\n\t\t\t\t'id' => '50',\n\t\t\t\t'slug' => 'croft-baker',\n\t\t\t\t'seats' => '3',\n\t\t\t\t'body_id' => '3',\n\t\t\t\t'created_at' => '2015-01-20 12:24:46',\n\t\t\t\t'updated_at' => '2015-01-20 12:24:46',\n\t\t\t\t'ons_district_code' => 'E05001713',\n\t\t\t\t'ons_district_code_old' => '00FCMQ',\n\t\t\t\t'name' => 'Croft Baker',\n\t\t\t\t'ons_la_code' => 'E06000012',\n\t\t\t\t'body_name' => 'North East Lincolnshire',\n\t\t\t\t'ons_constituency_code' => 'E14000643',\n\t\t\t\t'ons_constituency_code_old' => 'B15',\n\t\t\t\t'ons_constituency_name' => 'Cleethorpes',\n\t\t\t\t'male_all_ages' => '5703',\n\t\t\t\t'm0' => '66',\n\t\t\t\t'm1' => '76',\n\t\t\t\t'm2' => '100',\n\t\t\t\t'm3' => '79',\n\t\t\t\t'm4' => '65',\n\t\t\t\t'm5' => '45',\n\t\t\t\t'm6' => '66',\n\t\t\t\t'm7' => '72',\n\t\t\t\t'm8' => '70',\n\t\t\t\t'm9' => '56',\n\t\t\t\t'm10' => '46',\n\t\t\t\t'm11' => '58',\n\t\t\t\t'm12' => '42',\n\t\t\t\t'm13' => '64',\n\t\t\t\t'm14' => '68',\n\t\t\t\t'm15' => '59',\n\t\t\t\t'm16' => '62',\n\t\t\t\t'm17' => '67',\n\t\t\t\t'm18' => '66',\n\t\t\t\t'm19' => '59',\n\t\t\t\t'm20' => '64',\n\t\t\t\t'm21' => '69',\n\t\t\t\t'm22' => '68',\n\t\t\t\t'm23' => '65',\n\t\t\t\t'm24' => '78',\n\t\t\t\t'm25' => '85',\n\t\t\t\t'm26' => '86',\n\t\t\t\t'm27' => '83',\n\t\t\t\t'm28' => '78',\n\t\t\t\t'm29' => '69',\n\t\t\t\t'm30' => '72',\n\t\t\t\t'm31' => '68',\n\t\t\t\t'm32' => '83',\n\t\t\t\t'm33' => '70',\n\t\t\t\t'm34' => '75',\n\t\t\t\t'm35' => '82',\n\t\t\t\t'm36' => '67',\n\t\t\t\t'm37' => '77',\n\t\t\t\t'm38' => '64',\n\t\t\t\t'm39' => '67',\n\t\t\t\t'm40' => '69',\n\t\t\t\t'm41' => '68',\n\t\t\t\t'm42' => '70',\n\t\t\t\t'm43' => '59',\n\t\t\t\t'm44' => '85',\n\t\t\t\t'm45' => '66',\n\t\t\t\t'm46' => '88',\n\t\t\t\t'm47' => '73',\n\t\t\t\t'm48' => '78',\n\t\t\t\t'm49' => '88',\n\t\t\t\t'm50' => '84',\n\t\t\t\t'm51' => '87',\n\t\t\t\t'm52' => '113',\n\t\t\t\t'm53' => '76',\n\t\t\t\t'm54' => '78',\n\t\t\t\t'm55' => '75',\n\t\t\t\t'm56' => '63',\n\t\t\t\t'm57' => '76',\n\t\t\t\t'm58' => '59',\n\t\t\t\t'm59' => '69',\n\t\t\t\t'm60' => '71',\n\t\t\t\t'm61' => '67',\n\t\t\t\t'm62' => '78',\n\t\t\t\t'm63' => '71',\n\t\t\t\t'm64' => '81',\n\t\t\t\t'm65' => '75',\n\t\t\t\t'm66' => '99',\n\t\t\t\t'm67' => '49',\n\t\t\t\t'm68' => '58',\n\t\t\t\t'm69' => '55',\n\t\t\t\t'm70' => '48',\n\t\t\t\t'm71' => '42',\n\t\t\t\t'm72' => '45',\n\t\t\t\t'm73' => '34',\n\t\t\t\t'm74' => '46',\n\t\t\t\t'm75' => '49',\n\t\t\t\t'm76' => '47',\n\t\t\t\t'm77' => '44',\n\t\t\t\t'm78' => '48',\n\t\t\t\t'm79' => '37',\n\t\t\t\t'm80' => '42',\n\t\t\t\t'm81' => '50',\n\t\t\t\t'm82' => '34',\n\t\t\t\t'm83' => '28',\n\t\t\t\t'm84' => '18',\n\t\t\t\t'm85' => '15',\n\t\t\t\t'm86' => '11',\n\t\t\t\t'm87' => '15',\n\t\t\t\t'm88' => '15',\n\t\t\t\t'm89' => '12',\n\t\t\t\t'm90' => '39',\n\t\t\t\t'female_all_ages' => '6140',\n\t\t\t\t'f0' => '63',\n\t\t\t\t'f1' => '84',\n\t\t\t\t'f2' => '75',\n\t\t\t\t'f3' => '70',\n\t\t\t\t'f4' => '74',\n\t\t\t\t'f5' => '60',\n\t\t\t\t'f6' => '65',\n\t\t\t\t'f7' => '64',\n\t\t\t\t'f8' => '65',\n\t\t\t\t'f9' => '57',\n\t\t\t\t'f10' => '69',\n\t\t\t\t'f11' => '64',\n\t\t\t\t'f12' => '64',\n\t\t\t\t'f13' => '49',\n\t\t\t\t'f14' => '61',\n\t\t\t\t'f15' => '49',\n\t\t\t\t'f16' => '58',\n\t\t\t\t'f17' => '56',\n\t\t\t\t'f18' => '64',\n\t\t\t\t'f19' => '68',\n\t\t\t\t'f20' => '56',\n\t\t\t\t'f21' => '63',\n\t\t\t\t'f22' => '75',\n\t\t\t\t'f23' => '85',\n\t\t\t\t'f24' => '68',\n\t\t\t\t'f25' => '123',\n\t\t\t\t'f26' => '99',\n\t\t\t\t'f27' => '76',\n\t\t\t\t'f28' => '78',\n\t\t\t\t'f29' => '78',\n\t\t\t\t'f30' => '71',\n\t\t\t\t'f31' => '76',\n\t\t\t\t'f32' => '82',\n\t\t\t\t'f33' => '63',\n\t\t\t\t'f34' => '58',\n\t\t\t\t'f35' => '73',\n\t\t\t\t'f36' => '59',\n\t\t\t\t'f37' => '66',\n\t\t\t\t'f38' => '60',\n\t\t\t\t'f39' => '68',\n\t\t\t\t'f40' => '74',\n\t\t\t\t'f41' => '84',\n\t\t\t\t'f42' => '87',\n\t\t\t\t'f43' => '72',\n\t\t\t\t'f44' => '78',\n\t\t\t\t'f45' => '78',\n\t\t\t\t'f46' => '80',\n\t\t\t\t'f47' => '93',\n\t\t\t\t'f48' => '89',\n\t\t\t\t'f49' => '86',\n\t\t\t\t'f50' => '87',\n\t\t\t\t'f51' => '87',\n\t\t\t\t'f52' => '62',\n\t\t\t\t'f53' => '67',\n\t\t\t\t'f54' => '67',\n\t\t\t\t'f55' => '80',\n\t\t\t\t'f56' => '80',\n\t\t\t\t'f57' => '66',\n\t\t\t\t'f58' => '80',\n\t\t\t\t'f59' => '84',\n\t\t\t\t'f60' => '83',\n\t\t\t\t'f61' => '64',\n\t\t\t\t'f62' => '73',\n\t\t\t\t'f63' => '72',\n\t\t\t\t'f64' => '67',\n\t\t\t\t'f65' => '78',\n\t\t\t\t'f66' => '87',\n\t\t\t\t'f67' => '63',\n\t\t\t\t'f68' => '68',\n\t\t\t\t'f69' => '50',\n\t\t\t\t'f70' => '64',\n\t\t\t\t'f71' => '52',\n\t\t\t\t'f72' => '59',\n\t\t\t\t'f73' => '59',\n\t\t\t\t'f74' => '63',\n\t\t\t\t'f75' => '66',\n\t\t\t\t'f76' => '73',\n\t\t\t\t'f77' => '68',\n\t\t\t\t'f78' => '50',\n\t\t\t\t'f79' => '62',\n\t\t\t\t'f80' => '57',\n\t\t\t\t'f81' => '38',\n\t\t\t\t'f82' => '58',\n\t\t\t\t'f83' => '30',\n\t\t\t\t'f84' => '47',\n\t\t\t\t'f85' => '31',\n\t\t\t\t'f86' => '38',\n\t\t\t\t'f87' => '25',\n\t\t\t\t'f88' => '29',\n\t\t\t\t'f89' => '28',\n\t\t\t\t'f90' => '101',\n\t\t\t),\n\t\t\t50 => \n\t\t\tarray (\n\t\t\t\t'id' => '51',\n\t\t\t\t'slug' => 'east-marsh',\n\t\t\t\t'seats' => '3',\n\t\t\t\t'body_id' => '3',\n\t\t\t\t'created_at' => '2015-01-20 12:24:46',\n\t\t\t\t'updated_at' => '2015-01-20 12:24:46',\n\t\t\t\t'ons_district_code' => 'E05001714',\n\t\t\t\t'ons_district_code_old' => '00FCMR',\n\t\t\t\t'name' => 'East Marsh',\n\t\t\t\t'ons_la_code' => 'E06000012',\n\t\t\t\t'body_name' => 'North East Lincolnshire',\n\t\t\t\t'ons_constituency_code' => 'E14000716',\n\t\t\t\t'ons_constituency_code_old' => 'B88',\n\t\t\t\t'ons_constituency_name' => 'Great Grimsby',\n\t\t\t\t'male_all_ages' => '5995',\n\t\t\t\t'm0' => '126',\n\t\t\t\t'm1' => '103',\n\t\t\t\t'm2' => '114',\n\t\t\t\t'm3' => '101',\n\t\t\t\t'm4' => '86',\n\t\t\t\t'm5' => '86',\n\t\t\t\t'm6' => '84',\n\t\t\t\t'm7' => '79',\n\t\t\t\t'm8' => '64',\n\t\t\t\t'm9' => '62',\n\t\t\t\t'm10' => '67',\n\t\t\t\t'm11' => '71',\n\t\t\t\t'm12' => '69',\n\t\t\t\t'm13' => '62',\n\t\t\t\t'm14' => '81',\n\t\t\t\t'm15' => '65',\n\t\t\t\t'm16' => '73',\n\t\t\t\t'm17' => '73',\n\t\t\t\t'm18' => '79',\n\t\t\t\t'm19' => '82',\n\t\t\t\t'm20' => '78',\n\t\t\t\t'm21' => '99',\n\t\t\t\t'm22' => '104',\n\t\t\t\t'm23' => '124',\n\t\t\t\t'm24' => '111',\n\t\t\t\t'm25' => '101',\n\t\t\t\t'm26' => '90',\n\t\t\t\t'm27' => '112',\n\t\t\t\t'm28' => '75',\n\t\t\t\t'm29' => '77',\n\t\t\t\t'm30' => '90',\n\t\t\t\t'm31' => '83',\n\t\t\t\t'm32' => '94',\n\t\t\t\t'm33' => '93',\n\t\t\t\t'm34' => '67',\n\t\t\t\t'm35' => '85',\n\t\t\t\t'm36' => '72',\n\t\t\t\t'm37' => '80',\n\t\t\t\t'm38' => '74',\n\t\t\t\t'm39' => '84',\n\t\t\t\t'm40' => '86',\n\t\t\t\t'm41' => '70',\n\t\t\t\t'm42' => '80',\n\t\t\t\t'm43' => '96',\n\t\t\t\t'm44' => '81',\n\t\t\t\t'm45' => '72',\n\t\t\t\t'm46' => '93',\n\t\t\t\t'm47' => '77',\n\t\t\t\t'm48' => '91',\n\t\t\t\t'm49' => '91',\n\t\t\t\t'm50' => '86',\n\t\t\t\t'm51' => '94',\n\t\t\t\t'm52' => '94',\n\t\t\t\t'm53' => '92',\n\t\t\t\t'm54' => '78',\n\t\t\t\t'm55' => '62',\n\t\t\t\t'm56' => '59',\n\t\t\t\t'm57' => '62',\n\t\t\t\t'm58' => '59',\n\t\t\t\t'm59' => '62',\n\t\t\t\t'm60' => '50',\n\t\t\t\t'm61' => '62',\n\t\t\t\t'm62' => '65',\n\t\t\t\t'm63' => '64',\n\t\t\t\t'm64' => '53',\n\t\t\t\t'm65' => '55',\n\t\t\t\t'm66' => '76',\n\t\t\t\t'm67' => '54',\n\t\t\t\t'm68' => '39',\n\t\t\t\t'm69' => '45',\n\t\t\t\t'm70' => '33',\n\t\t\t\t'm71' => '42',\n\t\t\t\t'm72' => '28',\n\t\t\t\t'm73' => '29',\n\t\t\t\t'm74' => '30',\n\t\t\t\t'm75' => '31',\n\t\t\t\t'm76' => '21',\n\t\t\t\t'm77' => '21',\n\t\t\t\t'm78' => '26',\n\t\t\t\t'm79' => '22',\n\t\t\t\t'm80' => '24',\n\t\t\t\t'm81' => '20',\n\t\t\t\t'm82' => '17',\n\t\t\t\t'm83' => '17',\n\t\t\t\t'm84' => '13',\n\t\t\t\t'm85' => '11',\n\t\t\t\t'm86' => '7',\n\t\t\t\t'm87' => '10',\n\t\t\t\t'm88' => '6',\n\t\t\t\t'm89' => '4',\n\t\t\t\t'm90' => '15',\n\t\t\t\t'female_all_ages' => '5865',\n\t\t\t\t'f0' => '97',\n\t\t\t\t'f1' => '104',\n\t\t\t\t'f2' => '100',\n\t\t\t\t'f3' => '87',\n\t\t\t\t'f4' => '86',\n\t\t\t\t'f5' => '98',\n\t\t\t\t'f6' => '64',\n\t\t\t\t'f7' => '83',\n\t\t\t\t'f8' => '76',\n\t\t\t\t'f9' => '58',\n\t\t\t\t'f10' => '78',\n\t\t\t\t'f11' => '70',\n\t\t\t\t'f12' => '57',\n\t\t\t\t'f13' => '62',\n\t\t\t\t'f14' => '71',\n\t\t\t\t'f15' => '72',\n\t\t\t\t'f16' => '80',\n\t\t\t\t'f17' => '90',\n\t\t\t\t'f18' => '82',\n\t\t\t\t'f19' => '102',\n\t\t\t\t'f20' => '109',\n\t\t\t\t'f21' => '106',\n\t\t\t\t'f22' => '100',\n\t\t\t\t'f23' => '101',\n\t\t\t\t'f24' => '115',\n\t\t\t\t'f25' => '81',\n\t\t\t\t'f26' => '128',\n\t\t\t\t'f27' => '93',\n\t\t\t\t'f28' => '87',\n\t\t\t\t'f29' => '97',\n\t\t\t\t'f30' => '103',\n\t\t\t\t'f31' => '85',\n\t\t\t\t'f32' => '82',\n\t\t\t\t'f33' => '79',\n\t\t\t\t'f34' => '68',\n\t\t\t\t'f35' => '59',\n\t\t\t\t'f36' => '53',\n\t\t\t\t'f37' => '63',\n\t\t\t\t'f38' => '55',\n\t\t\t\t'f39' => '51',\n\t\t\t\t'f40' => '67',\n\t\t\t\t'f41' => '90',\n\t\t\t\t'f42' => '74',\n\t\t\t\t'f43' => '72',\n\t\t\t\t'f44' => '69',\n\t\t\t\t'f45' => '88',\n\t\t\t\t'f46' => '83',\n\t\t\t\t'f47' => '70',\n\t\t\t\t'f48' => '90',\n\t\t\t\t'f49' => '85',\n\t\t\t\t'f50' => '76',\n\t\t\t\t'f51' => '84',\n\t\t\t\t'f52' => '86',\n\t\t\t\t'f53' => '73',\n\t\t\t\t'f54' => '75',\n\t\t\t\t'f55' => '77',\n\t\t\t\t'f56' => '59',\n\t\t\t\t'f57' => '54',\n\t\t\t\t'f58' => '54',\n\t\t\t\t'f59' => '58',\n\t\t\t\t'f60' => '46',\n\t\t\t\t'f61' => '46',\n\t\t\t\t'f62' => '66',\n\t\t\t\t'f63' => '51',\n\t\t\t\t'f64' => '50',\n\t\t\t\t'f65' => '60',\n\t\t\t\t'f66' => '44',\n\t\t\t\t'f67' => '43',\n\t\t\t\t'f68' => '44',\n\t\t\t\t'f69' => '33',\n\t\t\t\t'f70' => '30',\n\t\t\t\t'f71' => '32',\n\t\t\t\t'f72' => '38',\n\t\t\t\t'f73' => '29',\n\t\t\t\t'f74' => '30',\n\t\t\t\t'f75' => '30',\n\t\t\t\t'f76' => '24',\n\t\t\t\t'f77' => '37',\n\t\t\t\t'f78' => '28',\n\t\t\t\t'f79' => '24',\n\t\t\t\t'f80' => '34',\n\t\t\t\t'f81' => '31',\n\t\t\t\t'f82' => '20',\n\t\t\t\t'f83' => '23',\n\t\t\t\t'f84' => '17',\n\t\t\t\t'f85' => '19',\n\t\t\t\t'f86' => '19',\n\t\t\t\t'f87' => '17',\n\t\t\t\t'f88' => '9',\n\t\t\t\t'f89' => '13',\n\t\t\t\t'f90' => '62',\n\t\t\t),\n\t\t\t51 => \n\t\t\tarray (\n\t\t\t\t'id' => '52',\n\t\t\t\t'slug' => 'freshney',\n\t\t\t\t'seats' => '3',\n\t\t\t\t'body_id' => '3',\n\t\t\t\t'created_at' => '2015-01-20 12:24:46',\n\t\t\t\t'updated_at' => '2015-01-20 12:24:46',\n\t\t\t\t'ons_district_code' => 'E05001715',\n\t\t\t\t'ons_district_code_old' => '00FCMS',\n\t\t\t\t'name' => 'Freshney',\n\t\t\t\t'ons_la_code' => 'E06000012',\n\t\t\t\t'body_name' => 'North East Lincolnshire',\n\t\t\t\t'ons_constituency_code' => 'E14000716',\n\t\t\t\t'ons_constituency_code_old' => 'B88',\n\t\t\t\t'ons_constituency_name' => 'Great Grimsby',\n\t\t\t\t'male_all_ages' => '4750',\n\t\t\t\t'm0' => '33',\n\t\t\t\t'm1' => '62',\n\t\t\t\t'm2' => '61',\n\t\t\t\t'm3' => '58',\n\t\t\t\t'm4' => '41',\n\t\t\t\t'm5' => '46',\n\t\t\t\t'm6' => '45',\n\t\t\t\t'm7' => '58',\n\t\t\t\t'm8' => '54',\n\t\t\t\t'm9' => '55',\n\t\t\t\t'm10' => '46',\n\t\t\t\t'm11' => '57',\n\t\t\t\t'm12' => '61',\n\t\t\t\t'm13' => '59',\n\t\t\t\t'm14' => '70',\n\t\t\t\t'm15' => '62',\n\t\t\t\t'm16' => '69',\n\t\t\t\t'm17' => '80',\n\t\t\t\t'm18' => '60',\n\t\t\t\t'm19' => '57',\n\t\t\t\t'm20' => '77',\n\t\t\t\t'm21' => '56',\n\t\t\t\t'm22' => '50',\n\t\t\t\t'm23' => '56',\n\t\t\t\t'm24' => '53',\n\t\t\t\t'm25' => '70',\n\t\t\t\t'm26' => '59',\n\t\t\t\t'm27' => '54',\n\t\t\t\t'm28' => '61',\n\t\t\t\t'm29' => '41',\n\t\t\t\t'm30' => '51',\n\t\t\t\t'm31' => '45',\n\t\t\t\t'm32' => '56',\n\t\t\t\t'm33' => '42',\n\t\t\t\t'm34' => '48',\n\t\t\t\t'm35' => '56',\n\t\t\t\t'm36' => '51',\n\t\t\t\t'm37' => '36',\n\t\t\t\t'm38' => '57',\n\t\t\t\t'm39' => '57',\n\t\t\t\t'm40' => '50',\n\t\t\t\t'm41' => '63',\n\t\t\t\t'm42' => '81',\n\t\t\t\t'm43' => '61',\n\t\t\t\t'm44' => '64',\n\t\t\t\t'm45' => '73',\n\t\t\t\t'm46' => '67',\n\t\t\t\t'm47' => '60',\n\t\t\t\t'm48' => '68',\n\t\t\t\t'm49' => '73',\n\t\t\t\t'm50' => '71',\n\t\t\t\t'm51' => '73',\n\t\t\t\t'm52' => '63',\n\t\t\t\t'm53' => '77',\n\t\t\t\t'm54' => '61',\n\t\t\t\t'm55' => '79',\n\t\t\t\t'm56' => '70',\n\t\t\t\t'm57' => '75',\n\t\t\t\t'm58' => '72',\n\t\t\t\t'm59' => '69',\n\t\t\t\t'm60' => '57',\n\t\t\t\t'm61' => '60',\n\t\t\t\t'm62' => '66',\n\t\t\t\t'm63' => '70',\n\t\t\t\t'm64' => '84',\n\t\t\t\t'm65' => '77',\n\t\t\t\t'm66' => '95',\n\t\t\t\t'm67' => '62',\n\t\t\t\t'm68' => '64',\n\t\t\t\t'm69' => '47',\n\t\t\t\t'm70' => '59',\n\t\t\t\t'm71' => '44',\n\t\t\t\t'm72' => '40',\n\t\t\t\t'm73' => '43',\n\t\t\t\t'm74' => '36',\n\t\t\t\t'm75' => '27',\n\t\t\t\t'm76' => '27',\n\t\t\t\t'm77' => '28',\n\t\t\t\t'm78' => '36',\n\t\t\t\t'm79' => '22',\n\t\t\t\t'm80' => '15',\n\t\t\t\t'm81' => '15',\n\t\t\t\t'm82' => '20',\n\t\t\t\t'm83' => '12',\n\t\t\t\t'm84' => '9',\n\t\t\t\t'm85' => '6',\n\t\t\t\t'm86' => '11',\n\t\t\t\t'm87' => '9',\n\t\t\t\t'm88' => '5',\n\t\t\t\t'm89' => '5',\n\t\t\t\t'm90' => '19',\n\t\t\t\t'female_all_ages' => '4965',\n\t\t\t\t'f0' => '65',\n\t\t\t\t'f1' => '58',\n\t\t\t\t'f2' => '55',\n\t\t\t\t'f3' => '59',\n\t\t\t\t'f4' => '59',\n\t\t\t\t'f5' => '41',\n\t\t\t\t'f6' => '51',\n\t\t\t\t'f7' => '57',\n\t\t\t\t'f8' => '54',\n\t\t\t\t'f9' => '53',\n\t\t\t\t'f10' => '48',\n\t\t\t\t'f11' => '49',\n\t\t\t\t'f12' => '54',\n\t\t\t\t'f13' => '65',\n\t\t\t\t'f14' => '63',\n\t\t\t\t'f15' => '64',\n\t\t\t\t'f16' => '68',\n\t\t\t\t'f17' => '71',\n\t\t\t\t'f18' => '59',\n\t\t\t\t'f19' => '57',\n\t\t\t\t'f20' => '46',\n\t\t\t\t'f21' => '57',\n\t\t\t\t'f22' => '53',\n\t\t\t\t'f23' => '61',\n\t\t\t\t'f24' => '58',\n\t\t\t\t'f25' => '51',\n\t\t\t\t'f26' => '51',\n\t\t\t\t'f27' => '64',\n\t\t\t\t'f28' => '56',\n\t\t\t\t'f29' => '61',\n\t\t\t\t'f30' => '56',\n\t\t\t\t'f31' => '60',\n\t\t\t\t'f32' => '63',\n\t\t\t\t'f33' => '62',\n\t\t\t\t'f34' => '47',\n\t\t\t\t'f35' => '45',\n\t\t\t\t'f36' => '53',\n\t\t\t\t'f37' => '46',\n\t\t\t\t'f38' => '58',\n\t\t\t\t'f39' => '50',\n\t\t\t\t'f40' => '58',\n\t\t\t\t'f41' => '67',\n\t\t\t\t'f42' => '72',\n\t\t\t\t'f43' => '64',\n\t\t\t\t'f44' => '83',\n\t\t\t\t'f45' => '79',\n\t\t\t\t'f46' => '66',\n\t\t\t\t'f47' => '66',\n\t\t\t\t'f48' => '87',\n\t\t\t\t'f49' => '80',\n\t\t\t\t'f50' => '82',\n\t\t\t\t'f51' => '69',\n\t\t\t\t'f52' => '82',\n\t\t\t\t'f53' => '73',\n\t\t\t\t'f54' => '71',\n\t\t\t\t'f55' => '67',\n\t\t\t\t'f56' => '84',\n\t\t\t\t'f57' => '86',\n\t\t\t\t'f58' => '67',\n\t\t\t\t'f59' => '70',\n\t\t\t\t'f60' => '75',\n\t\t\t\t'f61' => '76',\n\t\t\t\t'f62' => '63',\n\t\t\t\t'f63' => '69',\n\t\t\t\t'f64' => '71',\n\t\t\t\t'f65' => '74',\n\t\t\t\t'f66' => '84',\n\t\t\t\t'f67' => '66',\n\t\t\t\t'f68' => '44',\n\t\t\t\t'f69' => '58',\n\t\t\t\t'f70' => '57',\n\t\t\t\t'f71' => '31',\n\t\t\t\t'f72' => '43',\n\t\t\t\t'f73' => '45',\n\t\t\t\t'f74' => '40',\n\t\t\t\t'f75' => '50',\n\t\t\t\t'f76' => '40',\n\t\t\t\t'f77' => '31',\n\t\t\t\t'f78' => '27',\n\t\t\t\t'f79' => '20',\n\t\t\t\t'f80' => '21',\n\t\t\t\t'f81' => '23',\n\t\t\t\t'f82' => '18',\n\t\t\t\t'f83' => '13',\n\t\t\t\t'f84' => '18',\n\t\t\t\t'f85' => '17',\n\t\t\t\t'f86' => '12',\n\t\t\t\t'f87' => '6',\n\t\t\t\t'f88' => '11',\n\t\t\t\t'f89' => '14',\n\t\t\t\t'f90' => '27',\n\t\t\t),\n\t\t\t52 => \n\t\t\tarray (\n\t\t\t\t'id' => '53',\n\t\t\t\t'slug' => 'haverstoe',\n\t\t\t\t'seats' => '3',\n\t\t\t\t'body_id' => '3',\n\t\t\t\t'created_at' => '2015-01-20 12:24:46',\n\t\t\t\t'updated_at' => '2015-01-20 12:24:46',\n\t\t\t\t'ons_district_code' => 'E05001716',\n\t\t\t\t'ons_district_code_old' => '00FCMT',\n\t\t\t\t'name' => 'Haverstoe',\n\t\t\t\t'ons_la_code' => 'E06000012',\n\t\t\t\t'body_name' => 'North East Lincolnshire',\n\t\t\t\t'ons_constituency_code' => 'E14000643',\n\t\t\t\t'ons_constituency_code_old' => 'B15',\n\t\t\t\t'ons_constituency_name' => 'Cleethorpes',\n\t\t\t\t'male_all_ages' => '4779',\n\t\t\t\t'm0' => '36',\n\t\t\t\t'm1' => '33',\n\t\t\t\t'm2' => '40',\n\t\t\t\t'm3' => '51',\n\t\t\t\t'm4' => '33',\n\t\t\t\t'm5' => '52',\n\t\t\t\t'm6' => '50',\n\t\t\t\t'm7' => '47',\n\t\t\t\t'm8' => '60',\n\t\t\t\t'm9' => '45',\n\t\t\t\t'm10' => '55',\n\t\t\t\t'm11' => '39',\n\t\t\t\t'm12' => '48',\n\t\t\t\t'm13' => '51',\n\t\t\t\t'm14' => '51',\n\t\t\t\t'm15' => '52',\n\t\t\t\t'm16' => '52',\n\t\t\t\t'm17' => '57',\n\t\t\t\t'm18' => '54',\n\t\t\t\t'm19' => '48',\n\t\t\t\t'm20' => '30',\n\t\t\t\t'm21' => '41',\n\t\t\t\t'm22' => '52',\n\t\t\t\t'm23' => '47',\n\t\t\t\t'm24' => '41',\n\t\t\t\t'm25' => '37',\n\t\t\t\t'm26' => '37',\n\t\t\t\t'm27' => '41',\n\t\t\t\t'm28' => '24',\n\t\t\t\t'm29' => '30',\n\t\t\t\t'm30' => '44',\n\t\t\t\t'm31' => '41',\n\t\t\t\t'm32' => '34',\n\t\t\t\t'm33' => '36',\n\t\t\t\t'm34' => '36',\n\t\t\t\t'm35' => '34',\n\t\t\t\t'm36' => '27',\n\t\t\t\t'm37' => '47',\n\t\t\t\t'm38' => '56',\n\t\t\t\t'm39' => '66',\n\t\t\t\t'm40' => '71',\n\t\t\t\t'm41' => '58',\n\t\t\t\t'm42' => '57',\n\t\t\t\t'm43' => '65',\n\t\t\t\t'm44' => '66',\n\t\t\t\t'm45' => '61',\n\t\t\t\t'm46' => '70',\n\t\t\t\t'm47' => '65',\n\t\t\t\t'm48' => '80',\n\t\t\t\t'm49' => '68',\n\t\t\t\t'm50' => '61',\n\t\t\t\t'm51' => '60',\n\t\t\t\t'm52' => '72',\n\t\t\t\t'm53' => '68',\n\t\t\t\t'm54' => '65',\n\t\t\t\t'm55' => '68',\n\t\t\t\t'm56' => '67',\n\t\t\t\t'm57' => '64',\n\t\t\t\t'm58' => '73',\n\t\t\t\t'm59' => '65',\n\t\t\t\t'm60' => '75',\n\t\t\t\t'm61' => '65',\n\t\t\t\t'm62' => '61',\n\t\t\t\t'm63' => '84',\n\t\t\t\t'm64' => '82',\n\t\t\t\t'm65' => '99',\n\t\t\t\t'm66' => '121',\n\t\t\t\t'm67' => '69',\n\t\t\t\t'm68' => '63',\n\t\t\t\t'm69' => '76',\n\t\t\t\t'm70' => '76',\n\t\t\t\t'm71' => '71',\n\t\t\t\t'm72' => '61',\n\t\t\t\t'm73' => '63',\n\t\t\t\t'm74' => '54',\n\t\t\t\t'm75' => '61',\n\t\t\t\t'm76' => '74',\n\t\t\t\t'm77' => '45',\n\t\t\t\t'm78' => '56',\n\t\t\t\t'm79' => '50',\n\t\t\t\t'm80' => '44',\n\t\t\t\t'm81' => '28',\n\t\t\t\t'm82' => '32',\n\t\t\t\t'm83' => '29',\n\t\t\t\t'm84' => '27',\n\t\t\t\t'm85' => '26',\n\t\t\t\t'm86' => '18',\n\t\t\t\t'm87' => '22',\n\t\t\t\t'm88' => '15',\n\t\t\t\t'm89' => '13',\n\t\t\t\t'm90' => '40',\n\t\t\t\t'female_all_ages' => '5157',\n\t\t\t\t'f0' => '26',\n\t\t\t\t'f1' => '31',\n\t\t\t\t'f2' => '37',\n\t\t\t\t'f3' => '45',\n\t\t\t\t'f4' => '34',\n\t\t\t\t'f5' => '38',\n\t\t\t\t'f6' => '47',\n\t\t\t\t'f7' => '37',\n\t\t\t\t'f8' => '60',\n\t\t\t\t'f9' => '42',\n\t\t\t\t'f10' => '49',\n\t\t\t\t'f11' => '47',\n\t\t\t\t'f12' => '53',\n\t\t\t\t'f13' => '49',\n\t\t\t\t'f14' => '57',\n\t\t\t\t'f15' => '65',\n\t\t\t\t'f16' => '62',\n\t\t\t\t'f17' => '45',\n\t\t\t\t'f18' => '47',\n\t\t\t\t'f19' => '47',\n\t\t\t\t'f20' => '32',\n\t\t\t\t'f21' => '24',\n\t\t\t\t'f22' => '47',\n\t\t\t\t'f23' => '37',\n\t\t\t\t'f24' => '33',\n\t\t\t\t'f25' => '38',\n\t\t\t\t'f26' => '33',\n\t\t\t\t'f27' => '37',\n\t\t\t\t'f28' => '33',\n\t\t\t\t'f29' => '41',\n\t\t\t\t'f30' => '28',\n\t\t\t\t'f31' => '40',\n\t\t\t\t'f32' => '41',\n\t\t\t\t'f33' => '35',\n\t\t\t\t'f34' => '36',\n\t\t\t\t'f35' => '35',\n\t\t\t\t'f36' => '43',\n\t\t\t\t'f37' => '43',\n\t\t\t\t'f38' => '42',\n\t\t\t\t'f39' => '55',\n\t\t\t\t'f40' => '68',\n\t\t\t\t'f41' => '66',\n\t\t\t\t'f42' => '77',\n\t\t\t\t'f43' => '58',\n\t\t\t\t'f44' => '80',\n\t\t\t\t'f45' => '54',\n\t\t\t\t'f46' => '71',\n\t\t\t\t'f47' => '88',\n\t\t\t\t'f48' => '76',\n\t\t\t\t'f49' => '67',\n\t\t\t\t'f50' => '92',\n\t\t\t\t'f51' => '75',\n\t\t\t\t'f52' => '73',\n\t\t\t\t'f53' => '73',\n\t\t\t\t'f54' => '67',\n\t\t\t\t'f55' => '74',\n\t\t\t\t'f56' => '55',\n\t\t\t\t'f57' => '69',\n\t\t\t\t'f58' => '63',\n\t\t\t\t'f59' => '68',\n\t\t\t\t'f60' => '75',\n\t\t\t\t'f61' => '79',\n\t\t\t\t'f62' => '76',\n\t\t\t\t'f63' => '89',\n\t\t\t\t'f64' => '95',\n\t\t\t\t'f65' => '110',\n\t\t\t\t'f66' => '132',\n\t\t\t\t'f67' => '93',\n\t\t\t\t'f68' => '88',\n\t\t\t\t'f69' => '84',\n\t\t\t\t'f70' => '78',\n\t\t\t\t'f71' => '74',\n\t\t\t\t'f72' => '71',\n\t\t\t\t'f73' => '86',\n\t\t\t\t'f74' => '61',\n\t\t\t\t'f75' => '68',\n\t\t\t\t'f76' => '59',\n\t\t\t\t'f77' => '44',\n\t\t\t\t'f78' => '67',\n\t\t\t\t'f79' => '63',\n\t\t\t\t'f80' => '62',\n\t\t\t\t'f81' => '56',\n\t\t\t\t'f82' => '48',\n\t\t\t\t'f83' => '42',\n\t\t\t\t'f84' => '35',\n\t\t\t\t'f85' => '29',\n\t\t\t\t'f86' => '37',\n\t\t\t\t'f87' => '35',\n\t\t\t\t'f88' => '24',\n\t\t\t\t'f89' => '26',\n\t\t\t\t'f90' => '86',\n\t\t\t),\n\t\t\t53 => \n\t\t\tarray (\n\t\t\t\t'id' => '54',\n\t\t\t\t'slug' => 'heneage',\n\t\t\t\t'seats' => '3',\n\t\t\t\t'body_id' => '3',\n\t\t\t\t'created_at' => '2015-01-20 12:24:46',\n\t\t\t\t'updated_at' => '2015-01-20 12:24:46',\n\t\t\t\t'ons_district_code' => 'E05001717',\n\t\t\t\t'ons_district_code_old' => '00FCMU',\n\t\t\t\t'name' => 'Heneage',\n\t\t\t\t'ons_la_code' => 'E06000012',\n\t\t\t\t'body_name' => 'North East Lincolnshire',\n\t\t\t\t'ons_constituency_code' => 'E14000716',\n\t\t\t\t'ons_constituency_code_old' => 'B88',\n\t\t\t\t'ons_constituency_name' => 'Great Grimsby',\n\t\t\t\t'male_all_ages' => '6083',\n\t\t\t\t'm0' => '105',\n\t\t\t\t'm1' => '103',\n\t\t\t\t'm2' => '80',\n\t\t\t\t'm3' => '96',\n\t\t\t\t'm4' => '88',\n\t\t\t\t'm5' => '107',\n\t\t\t\t'm6' => '91',\n\t\t\t\t'm7' => '81',\n\t\t\t\t'm8' => '84',\n\t\t\t\t'm9' => '78',\n\t\t\t\t'm10' => '65',\n\t\t\t\t'm11' => '71',\n\t\t\t\t'm12' => '71',\n\t\t\t\t'm13' => '68',\n\t\t\t\t'm14' => '71',\n\t\t\t\t'm15' => '75',\n\t\t\t\t'm16' => '93',\n\t\t\t\t'm17' => '81',\n\t\t\t\t'm18' => '84',\n\t\t\t\t'm19' => '77',\n\t\t\t\t'm20' => '81',\n\t\t\t\t'm21' => '88',\n\t\t\t\t'm22' => '127',\n\t\t\t\t'm23' => '91',\n\t\t\t\t'm24' => '111',\n\t\t\t\t'm25' => '111',\n\t\t\t\t'm26' => '123',\n\t\t\t\t'm27' => '103',\n\t\t\t\t'm28' => '96',\n\t\t\t\t'm29' => '101',\n\t\t\t\t'm30' => '67',\n\t\t\t\t'm31' => '81',\n\t\t\t\t'm32' => '82',\n\t\t\t\t'm33' => '78',\n\t\t\t\t'm34' => '80',\n\t\t\t\t'm35' => '57',\n\t\t\t\t'm36' => '68',\n\t\t\t\t'm37' => '73',\n\t\t\t\t'm38' => '67',\n\t\t\t\t'm39' => '72',\n\t\t\t\t'm40' => '81',\n\t\t\t\t'm41' => '96',\n\t\t\t\t'm42' => '102',\n\t\t\t\t'm43' => '98',\n\t\t\t\t'm44' => '89',\n\t\t\t\t'm45' => '103',\n\t\t\t\t'm46' => '81',\n\t\t\t\t'm47' => '97',\n\t\t\t\t'm48' => '98',\n\t\t\t\t'm49' => '74',\n\t\t\t\t'm50' => '71',\n\t\t\t\t'm51' => '83',\n\t\t\t\t'm52' => '85',\n\t\t\t\t'm53' => '78',\n\t\t\t\t'm54' => '70',\n\t\t\t\t'm55' => '81',\n\t\t\t\t'm56' => '63',\n\t\t\t\t'm57' => '68',\n\t\t\t\t'm58' => '73',\n\t\t\t\t'm59' => '65',\n\t\t\t\t'm60' => '59',\n\t\t\t\t'm61' => '62',\n\t\t\t\t'm62' => '45',\n\t\t\t\t'm63' => '51',\n\t\t\t\t'm64' => '53',\n\t\t\t\t'm65' => '68',\n\t\t\t\t'm66' => '51',\n\t\t\t\t'm67' => '44',\n\t\t\t\t'm68' => '35',\n\t\t\t\t'm69' => '43',\n\t\t\t\t'm70' => '38',\n\t\t\t\t'm71' => '37',\n\t\t\t\t'm72' => '35',\n\t\t\t\t'm73' => '31',\n\t\t\t\t'm74' => '35',\n\t\t\t\t'm75' => '36',\n\t\t\t\t'm76' => '29',\n\t\t\t\t'm77' => '29',\n\t\t\t\t'm78' => '25',\n\t\t\t\t'm79' => '27',\n\t\t\t\t'm80' => '23',\n\t\t\t\t'm81' => '20',\n\t\t\t\t'm82' => '17',\n\t\t\t\t'm83' => '18',\n\t\t\t\t'm84' => '23',\n\t\t\t\t'm85' => '11',\n\t\t\t\t'm86' => '8',\n\t\t\t\t'm87' => '8',\n\t\t\t\t'm88' => '15',\n\t\t\t\t'm89' => '7',\n\t\t\t\t'm90' => '18',\n\t\t\t\t'female_all_ages' => '5927',\n\t\t\t\t'f0' => '75',\n\t\t\t\t'f1' => '92',\n\t\t\t\t'f2' => '98',\n\t\t\t\t'f3' => '90',\n\t\t\t\t'f4' => '81',\n\t\t\t\t'f5' => '59',\n\t\t\t\t'f6' => '82',\n\t\t\t\t'f7' => '86',\n\t\t\t\t'f8' => '76',\n\t\t\t\t'f9' => '85',\n\t\t\t\t'f10' => '52',\n\t\t\t\t'f11' => '66',\n\t\t\t\t'f12' => '60',\n\t\t\t\t'f13' => '61',\n\t\t\t\t'f14' => '59',\n\t\t\t\t'f15' => '77',\n\t\t\t\t'f16' => '73',\n\t\t\t\t'f17' => '73',\n\t\t\t\t'f18' => '80',\n\t\t\t\t'f19' => '80',\n\t\t\t\t'f20' => '70',\n\t\t\t\t'f21' => '82',\n\t\t\t\t'f22' => '93',\n\t\t\t\t'f23' => '103',\n\t\t\t\t'f24' => '93',\n\t\t\t\t'f25' => '109',\n\t\t\t\t'f26' => '101',\n\t\t\t\t'f27' => '108',\n\t\t\t\t'f28' => '92',\n\t\t\t\t'f29' => '85',\n\t\t\t\t'f30' => '93',\n\t\t\t\t'f31' => '75',\n\t\t\t\t'f32' => '85',\n\t\t\t\t'f33' => '68',\n\t\t\t\t'f34' => '84',\n\t\t\t\t'f35' => '61',\n\t\t\t\t'f36' => '60',\n\t\t\t\t'f37' => '67',\n\t\t\t\t'f38' => '68',\n\t\t\t\t'f39' => '65',\n\t\t\t\t'f40' => '73',\n\t\t\t\t'f41' => '82',\n\t\t\t\t'f42' => '98',\n\t\t\t\t'f43' => '79',\n\t\t\t\t'f44' => '92',\n\t\t\t\t'f45' => '83',\n\t\t\t\t'f46' => '90',\n\t\t\t\t'f47' => '86',\n\t\t\t\t'f48' => '94',\n\t\t\t\t'f49' => '77',\n\t\t\t\t'f50' => '90',\n\t\t\t\t'f51' => '94',\n\t\t\t\t'f52' => '88',\n\t\t\t\t'f53' => '78',\n\t\t\t\t'f54' => '75',\n\t\t\t\t'f55' => '66',\n\t\t\t\t'f56' => '53',\n\t\t\t\t'f57' => '73',\n\t\t\t\t'f58' => '55',\n\t\t\t\t'f59' => '54',\n\t\t\t\t'f60' => '55',\n\t\t\t\t'f61' => '55',\n\t\t\t\t'f62' => '50',\n\t\t\t\t'f63' => '52',\n\t\t\t\t'f64' => '54',\n\t\t\t\t'f65' => '49',\n\t\t\t\t'f66' => '60',\n\t\t\t\t'f67' => '38',\n\t\t\t\t'f68' => '41',\n\t\t\t\t'f69' => '44',\n\t\t\t\t'f70' => '48',\n\t\t\t\t'f71' => '41',\n\t\t\t\t'f72' => '33',\n\t\t\t\t'f73' => '29',\n\t\t\t\t'f74' => '42',\n\t\t\t\t'f75' => '33',\n\t\t\t\t'f76' => '33',\n\t\t\t\t'f77' => '36',\n\t\t\t\t'f78' => '45',\n\t\t\t\t'f79' => '37',\n\t\t\t\t'f80' => '29',\n\t\t\t\t'f81' => '29',\n\t\t\t\t'f82' => '35',\n\t\t\t\t'f83' => '21',\n\t\t\t\t'f84' => '39',\n\t\t\t\t'f85' => '24',\n\t\t\t\t'f86' => '12',\n\t\t\t\t'f87' => '15',\n\t\t\t\t'f88' => '17',\n\t\t\t\t'f89' => '20',\n\t\t\t\t'f90' => '64',\n\t\t\t),\n\t\t\t54 => \n\t\t\tarray (\n\t\t\t\t'id' => '55',\n\t\t\t\t'slug' => 'humberston-and-new-waltham',\n\t\t\t\t'seats' => '3',\n\t\t\t\t'body_id' => '3',\n\t\t\t\t'created_at' => '2015-01-20 12:24:46',\n\t\t\t\t'updated_at' => '2015-01-20 12:24:46',\n\t\t\t\t'ons_district_code' => 'E05001718',\n\t\t\t\t'ons_district_code_old' => '00FCMW',\n\t\t\t\t'name' => 'Humberston and New Waltham',\n\t\t\t\t'ons_la_code' => 'E06000012',\n\t\t\t\t'body_name' => 'North East Lincolnshire',\n\t\t\t\t'ons_constituency_code' => 'E14000643',\n\t\t\t\t'ons_constituency_code_old' => 'B15',\n\t\t\t\t'ons_constituency_name' => 'Cleethorpes',\n\t\t\t\t'male_all_ages' => '5302',\n\t\t\t\t'm0' => '39',\n\t\t\t\t'm1' => '33',\n\t\t\t\t'm2' => '39',\n\t\t\t\t'm3' => '34',\n\t\t\t\t'm4' => '50',\n\t\t\t\t'm5' => '51',\n\t\t\t\t'm6' => '63',\n\t\t\t\t'm7' => '43',\n\t\t\t\t'm8' => '54',\n\t\t\t\t'm9' => '46',\n\t\t\t\t'm10' => '48',\n\t\t\t\t'm11' => '58',\n\t\t\t\t'm12' => '60',\n\t\t\t\t'm13' => '57',\n\t\t\t\t'm14' => '64',\n\t\t\t\t'm15' => '70',\n\t\t\t\t'm16' => '61',\n\t\t\t\t'm17' => '92',\n\t\t\t\t'm18' => '60',\n\t\t\t\t'm19' => '59',\n\t\t\t\t'm20' => '56',\n\t\t\t\t'm21' => '49',\n\t\t\t\t'm22' => '55',\n\t\t\t\t'm23' => '46',\n\t\t\t\t'm24' => '49',\n\t\t\t\t'm25' => '54',\n\t\t\t\t'm26' => '46',\n\t\t\t\t'm27' => '47',\n\t\t\t\t'm28' => '34',\n\t\t\t\t'm29' => '34',\n\t\t\t\t'm30' => '30',\n\t\t\t\t'm31' => '41',\n\t\t\t\t'm32' => '32',\n\t\t\t\t'm33' => '43',\n\t\t\t\t'm34' => '40',\n\t\t\t\t'm35' => '32',\n\t\t\t\t'm36' => '51',\n\t\t\t\t'm37' => '48',\n\t\t\t\t'm38' => '57',\n\t\t\t\t'm39' => '65',\n\t\t\t\t'm40' => '55',\n\t\t\t\t'm41' => '91',\n\t\t\t\t'm42' => '75',\n\t\t\t\t'm43' => '74',\n\t\t\t\t'm44' => '75',\n\t\t\t\t'm45' => '92',\n\t\t\t\t'm46' => '87',\n\t\t\t\t'm47' => '90',\n\t\t\t\t'm48' => '91',\n\t\t\t\t'm49' => '85',\n\t\t\t\t'm50' => '85',\n\t\t\t\t'm51' => '110',\n\t\t\t\t'm52' => '92',\n\t\t\t\t'm53' => '81',\n\t\t\t\t'm54' => '78',\n\t\t\t\t'm55' => '57',\n\t\t\t\t'm56' => '74',\n\t\t\t\t'm57' => '59',\n\t\t\t\t'm58' => '60',\n\t\t\t\t'm59' => '65',\n\t\t\t\t'm60' => '67',\n\t\t\t\t'm61' => '64',\n\t\t\t\t'm62' => '56',\n\t\t\t\t'm63' => '76',\n\t\t\t\t'm64' => '70',\n\t\t\t\t'm65' => '84',\n\t\t\t\t'm66' => '95',\n\t\t\t\t'm67' => '90',\n\t\t\t\t'm68' => '102',\n\t\t\t\t'm69' => '78',\n\t\t\t\t'm70' => '63',\n\t\t\t\t'm71' => '82',\n\t\t\t\t'm72' => '78',\n\t\t\t\t'm73' => '67',\n\t\t\t\t'm74' => '58',\n\t\t\t\t'm75' => '77',\n\t\t\t\t'm76' => '63',\n\t\t\t\t'm77' => '48',\n\t\t\t\t'm78' => '56',\n\t\t\t\t'm79' => '50',\n\t\t\t\t'm80' => '38',\n\t\t\t\t'm81' => '42',\n\t\t\t\t'm82' => '43',\n\t\t\t\t'm83' => '34',\n\t\t\t\t'm84' => '29',\n\t\t\t\t'm85' => '32',\n\t\t\t\t'm86' => '8',\n\t\t\t\t'm87' => '11',\n\t\t\t\t'm88' => '17',\n\t\t\t\t'm89' => '11',\n\t\t\t\t'm90' => '47',\n\t\t\t\t'female_all_ages' => '5572',\n\t\t\t\t'f0' => '35',\n\t\t\t\t'f1' => '31',\n\t\t\t\t'f2' => '38',\n\t\t\t\t'f3' => '38',\n\t\t\t\t'f4' => '44',\n\t\t\t\t'f5' => '48',\n\t\t\t\t'f6' => '45',\n\t\t\t\t'f7' => '53',\n\t\t\t\t'f8' => '54',\n\t\t\t\t'f9' => '54',\n\t\t\t\t'f10' => '54',\n\t\t\t\t'f11' => '32',\n\t\t\t\t'f12' => '57',\n\t\t\t\t'f13' => '50',\n\t\t\t\t'f14' => '68',\n\t\t\t\t'f15' => '73',\n\t\t\t\t'f16' => '64',\n\t\t\t\t'f17' => '65',\n\t\t\t\t'f18' => '59',\n\t\t\t\t'f19' => '54',\n\t\t\t\t'f20' => '41',\n\t\t\t\t'f21' => '38',\n\t\t\t\t'f22' => '46',\n\t\t\t\t'f23' => '36',\n\t\t\t\t'f24' => '46',\n\t\t\t\t'f25' => '49',\n\t\t\t\t'f26' => '34',\n\t\t\t\t'f27' => '41',\n\t\t\t\t'f28' => '44',\n\t\t\t\t'f29' => '36',\n\t\t\t\t'f30' => '40',\n\t\t\t\t'f31' => '44',\n\t\t\t\t'f32' => '35',\n\t\t\t\t'f33' => '31',\n\t\t\t\t'f34' => '41',\n\t\t\t\t'f35' => '34',\n\t\t\t\t'f36' => '51',\n\t\t\t\t'f37' => '62',\n\t\t\t\t'f38' => '51',\n\t\t\t\t'f39' => '51',\n\t\t\t\t'f40' => '85',\n\t\t\t\t'f41' => '80',\n\t\t\t\t'f42' => '81',\n\t\t\t\t'f43' => '69',\n\t\t\t\t'f44' => '95',\n\t\t\t\t'f45' => '87',\n\t\t\t\t'f46' => '82',\n\t\t\t\t'f47' => '106',\n\t\t\t\t'f48' => '91',\n\t\t\t\t'f49' => '90',\n\t\t\t\t'f50' => '113',\n\t\t\t\t'f51' => '92',\n\t\t\t\t'f52' => '83',\n\t\t\t\t'f53' => '77',\n\t\t\t\t'f54' => '101',\n\t\t\t\t'f55' => '85',\n\t\t\t\t'f56' => '66',\n\t\t\t\t'f57' => '79',\n\t\t\t\t'f58' => '64',\n\t\t\t\t'f59' => '75',\n\t\t\t\t'f60' => '81',\n\t\t\t\t'f61' => '68',\n\t\t\t\t'f62' => '70',\n\t\t\t\t'f63' => '87',\n\t\t\t\t'f64' => '90',\n\t\t\t\t'f65' => '96',\n\t\t\t\t'f66' => '122',\n\t\t\t\t'f67' => '88',\n\t\t\t\t'f68' => '82',\n\t\t\t\t'f69' => '96',\n\t\t\t\t'f70' => '85',\n\t\t\t\t'f71' => '69',\n\t\t\t\t'f72' => '66',\n\t\t\t\t'f73' => '61',\n\t\t\t\t'f74' => '81',\n\t\t\t\t'f75' => '65',\n\t\t\t\t'f76' => '67',\n\t\t\t\t'f77' => '64',\n\t\t\t\t'f78' => '56',\n\t\t\t\t'f79' => '55',\n\t\t\t\t'f80' => '45',\n\t\t\t\t'f81' => '54',\n\t\t\t\t'f82' => '34',\n\t\t\t\t'f83' => '40',\n\t\t\t\t'f84' => '37',\n\t\t\t\t'f85' => '31',\n\t\t\t\t'f86' => '30',\n\t\t\t\t'f87' => '39',\n\t\t\t\t'f88' => '26',\n\t\t\t\t'f89' => '17',\n\t\t\t\t'f90' => '102',\n\t\t\t),\n\t\t\t55 => \n\t\t\tarray (\n\t\t\t\t'id' => '56',\n\t\t\t\t'slug' => 'immingham',\n\t\t\t\t'seats' => '3',\n\t\t\t\t'body_id' => '3',\n\t\t\t\t'created_at' => '2015-01-20 12:24:46',\n\t\t\t\t'updated_at' => '2015-01-20 12:24:46',\n\t\t\t\t'ons_district_code' => 'E05001719',\n\t\t\t\t'ons_district_code_old' => '00FCMX',\n\t\t\t\t'name' => 'Immingham',\n\t\t\t\t'ons_la_code' => 'E06000012',\n\t\t\t\t'body_name' => 'North East Lincolnshire',\n\t\t\t\t'ons_constituency_code' => 'E14000643',\n\t\t\t\t'ons_constituency_code_old' => 'B15',\n\t\t\t\t'ons_constituency_name' => 'Cleethorpes',\n\t\t\t\t'male_all_ages' => '5667',\n\t\t\t\t'm0' => '69',\n\t\t\t\t'm1' => '60',\n\t\t\t\t'm2' => '92',\n\t\t\t\t'm3' => '72',\n\t\t\t\t'm4' => '78',\n\t\t\t\t'm5' => '71',\n\t\t\t\t'm6' => '78',\n\t\t\t\t'm7' => '80',\n\t\t\t\t'm8' => '64',\n\t\t\t\t'm9' => '69',\n\t\t\t\t'm10' => '60',\n\t\t\t\t'm11' => '65',\n\t\t\t\t'm12' => '70',\n\t\t\t\t'm13' => '69',\n\t\t\t\t'm14' => '68',\n\t\t\t\t'm15' => '63',\n\t\t\t\t'm16' => '74',\n\t\t\t\t'm17' => '85',\n\t\t\t\t'm18' => '67',\n\t\t\t\t'm19' => '66',\n\t\t\t\t'm20' => '57',\n\t\t\t\t'm21' => '60',\n\t\t\t\t'm22' => '67',\n\t\t\t\t'm23' => '73',\n\t\t\t\t'm24' => '72',\n\t\t\t\t'm25' => '82',\n\t\t\t\t'm26' => '70',\n\t\t\t\t'm27' => '78',\n\t\t\t\t'm28' => '58',\n\t\t\t\t'm29' => '62',\n\t\t\t\t'm30' => '54',\n\t\t\t\t'm31' => '62',\n\t\t\t\t'm32' => '69',\n\t\t\t\t'm33' => '55',\n\t\t\t\t'm34' => '73',\n\t\t\t\t'm35' => '49',\n\t\t\t\t'm36' => '45',\n\t\t\t\t'm37' => '48',\n\t\t\t\t'm38' => '73',\n\t\t\t\t'm39' => '60',\n\t\t\t\t'm40' => '65',\n\t\t\t\t'm41' => '97',\n\t\t\t\t'm42' => '73',\n\t\t\t\t'm43' => '80',\n\t\t\t\t'm44' => '76',\n\t\t\t\t'm45' => '71',\n\t\t\t\t'm46' => '96',\n\t\t\t\t'm47' => '79',\n\t\t\t\t'm48' => '84',\n\t\t\t\t'm49' => '82',\n\t\t\t\t'm50' => '87',\n\t\t\t\t'm51' => '76',\n\t\t\t\t'm52' => '80',\n\t\t\t\t'm53' => '75',\n\t\t\t\t'm54' => '76',\n\t\t\t\t'm55' => '80',\n\t\t\t\t'm56' => '74',\n\t\t\t\t'm57' => '81',\n\t\t\t\t'm58' => '74',\n\t\t\t\t'm59' => '80',\n\t\t\t\t'm60' => '66',\n\t\t\t\t'm61' => '85',\n\t\t\t\t'm62' => '59',\n\t\t\t\t'm63' => '63',\n\t\t\t\t'm64' => '78',\n\t\t\t\t'm65' => '88',\n\t\t\t\t'm66' => '93',\n\t\t\t\t'm67' => '68',\n\t\t\t\t'm68' => '57',\n\t\t\t\t'm69' => '63',\n\t\t\t\t'm70' => '59',\n\t\t\t\t'm71' => '57',\n\t\t\t\t'm72' => '59',\n\t\t\t\t'm73' => '46',\n\t\t\t\t'm74' => '37',\n\t\t\t\t'm75' => '40',\n\t\t\t\t'm76' => '44',\n\t\t\t\t'm77' => '35',\n\t\t\t\t'm78' => '35',\n\t\t\t\t'm79' => '33',\n\t\t\t\t'm80' => '30',\n\t\t\t\t'm81' => '32',\n\t\t\t\t'm82' => '28',\n\t\t\t\t'm83' => '29',\n\t\t\t\t'm84' => '14',\n\t\t\t\t'm85' => '24',\n\t\t\t\t'm86' => '10',\n\t\t\t\t'm87' => '16',\n\t\t\t\t'm88' => '8',\n\t\t\t\t'm89' => '10',\n\t\t\t\t'm90' => '28',\n\t\t\t\t'female_all_ages' => '5908',\n\t\t\t\t'f0' => '73',\n\t\t\t\t'f1' => '69',\n\t\t\t\t'f2' => '48',\n\t\t\t\t'f3' => '75',\n\t\t\t\t'f4' => '72',\n\t\t\t\t'f5' => '82',\n\t\t\t\t'f6' => '70',\n\t\t\t\t'f7' => '64',\n\t\t\t\t'f8' => '70',\n\t\t\t\t'f9' => '54',\n\t\t\t\t'f10' => '58',\n\t\t\t\t'f11' => '54',\n\t\t\t\t'f12' => '75',\n\t\t\t\t'f13' => '68',\n\t\t\t\t'f14' => '63',\n\t\t\t\t'f15' => '73',\n\t\t\t\t'f16' => '76',\n\t\t\t\t'f17' => '64',\n\t\t\t\t'f18' => '63',\n\t\t\t\t'f19' => '69',\n\t\t\t\t'f20' => '67',\n\t\t\t\t'f21' => '78',\n\t\t\t\t'f22' => '84',\n\t\t\t\t'f23' => '64',\n\t\t\t\t'f24' => '69',\n\t\t\t\t'f25' => '84',\n\t\t\t\t'f26' => '67',\n\t\t\t\t'f27' => '70',\n\t\t\t\t'f28' => '57',\n\t\t\t\t'f29' => '65',\n\t\t\t\t'f30' => '88',\n\t\t\t\t'f31' => '66',\n\t\t\t\t'f32' => '67',\n\t\t\t\t'f33' => '71',\n\t\t\t\t'f34' => '71',\n\t\t\t\t'f35' => '66',\n\t\t\t\t'f36' => '59',\n\t\t\t\t'f37' => '49',\n\t\t\t\t'f38' => '59',\n\t\t\t\t'f39' => '64',\n\t\t\t\t'f40' => '71',\n\t\t\t\t'f41' => '84',\n\t\t\t\t'f42' => '95',\n\t\t\t\t'f43' => '73',\n\t\t\t\t'f44' => '99',\n\t\t\t\t'f45' => '83',\n\t\t\t\t'f46' => '85',\n\t\t\t\t'f47' => '79',\n\t\t\t\t'f48' => '84',\n\t\t\t\t'f49' => '79',\n\t\t\t\t'f50' => '76',\n\t\t\t\t'f51' => '82',\n\t\t\t\t'f52' => '79',\n\t\t\t\t'f53' => '72',\n\t\t\t\t'f54' => '76',\n\t\t\t\t'f55' => '84',\n\t\t\t\t'f56' => '81',\n\t\t\t\t'f57' => '92',\n\t\t\t\t'f58' => '74',\n\t\t\t\t'f59' => '82',\n\t\t\t\t'f60' => '70',\n\t\t\t\t'f61' => '65',\n\t\t\t\t'f62' => '67',\n\t\t\t\t'f63' => '83',\n\t\t\t\t'f64' => '82',\n\t\t\t\t'f65' => '87',\n\t\t\t\t'f66' => '84',\n\t\t\t\t'f67' => '68',\n\t\t\t\t'f68' => '68',\n\t\t\t\t'f69' => '77',\n\t\t\t\t'f70' => '49',\n\t\t\t\t'f71' => '61',\n\t\t\t\t'f72' => '49',\n\t\t\t\t'f73' => '52',\n\t\t\t\t'f74' => '56',\n\t\t\t\t'f75' => '57',\n\t\t\t\t'f76' => '36',\n\t\t\t\t'f77' => '51',\n\t\t\t\t'f78' => '37',\n\t\t\t\t'f79' => '35',\n\t\t\t\t'f80' => '43',\n\t\t\t\t'f81' => '32',\n\t\t\t\t'f82' => '43',\n\t\t\t\t'f83' => '31',\n\t\t\t\t'f84' => '24',\n\t\t\t\t'f85' => '35',\n\t\t\t\t'f86' => '29',\n\t\t\t\t'f87' => '18',\n\t\t\t\t'f88' => '22',\n\t\t\t\t'f89' => '13',\n\t\t\t\t'f90' => '49',\n\t\t\t),\n\t\t\t56 => \n\t\t\tarray (\n\t\t\t\t'id' => '57',\n\t\t\t\t'slug' => 'park',\n\t\t\t\t'seats' => '3',\n\t\t\t\t'body_id' => '3',\n\t\t\t\t'created_at' => '2015-01-20 12:24:46',\n\t\t\t\t'updated_at' => '2015-01-20 12:24:46',\n\t\t\t\t'ons_district_code' => 'E05001720',\n\t\t\t\t'ons_district_code_old' => '00FCMY',\n\t\t\t\t'name' => 'Park',\n\t\t\t\t'ons_la_code' => 'E06000012',\n\t\t\t\t'body_name' => 'North East Lincolnshire',\n\t\t\t\t'ons_constituency_code' => 'E14000716',\n\t\t\t\t'ons_constituency_code_old' => 'B88',\n\t\t\t\t'ons_constituency_name' => 'Great Grimsby',\n\t\t\t\t'male_all_ages' => '5991',\n\t\t\t\t'm0' => '68',\n\t\t\t\t'm1' => '73',\n\t\t\t\t'm2' => '73',\n\t\t\t\t'm3' => '67',\n\t\t\t\t'm4' => '79',\n\t\t\t\t'm5' => '76',\n\t\t\t\t'm6' => '59',\n\t\t\t\t'm7' => '77',\n\t\t\t\t'm8' => '63',\n\t\t\t\t'm9' => '50',\n\t\t\t\t'm10' => '63',\n\t\t\t\t'm11' => '69',\n\t\t\t\t'm12' => '51',\n\t\t\t\t'm13' => '76',\n\t\t\t\t'm14' => '73',\n\t\t\t\t'm15' => '79',\n\t\t\t\t'm16' => '87',\n\t\t\t\t'm17' => '87',\n\t\t\t\t'm18' => '81',\n\t\t\t\t'm19' => '76',\n\t\t\t\t'm20' => '62',\n\t\t\t\t'm21' => '84',\n\t\t\t\t'm22' => '90',\n\t\t\t\t'm23' => '87',\n\t\t\t\t'm24' => '78',\n\t\t\t\t'm25' => '82',\n\t\t\t\t'm26' => '68',\n\t\t\t\t'm27' => '112',\n\t\t\t\t'm28' => '86',\n\t\t\t\t'm29' => '75',\n\t\t\t\t'm30' => '74',\n\t\t\t\t'm31' => '91',\n\t\t\t\t'm32' => '76',\n\t\t\t\t'm33' => '83',\n\t\t\t\t'm34' => '85',\n\t\t\t\t'm35' => '62',\n\t\t\t\t'm36' => '60',\n\t\t\t\t'm37' => '73',\n\t\t\t\t'm38' => '75',\n\t\t\t\t'm39' => '82',\n\t\t\t\t'm40' => '74',\n\t\t\t\t'm41' => '93',\n\t\t\t\t'm42' => '84',\n\t\t\t\t'm43' => '68',\n\t\t\t\t'm44' => '85',\n\t\t\t\t'm45' => '85',\n\t\t\t\t'm46' => '88',\n\t\t\t\t'm47' => '92',\n\t\t\t\t'm48' => '111',\n\t\t\t\t'm49' => '73',\n\t\t\t\t'm50' => '94',\n\t\t\t\t'm51' => '82',\n\t\t\t\t'm52' => '82',\n\t\t\t\t'm53' => '65',\n\t\t\t\t'm54' => '93',\n\t\t\t\t'm55' => '82',\n\t\t\t\t'm56' => '83',\n\t\t\t\t'm57' => '82',\n\t\t\t\t'm58' => '55',\n\t\t\t\t'm59' => '84',\n\t\t\t\t'm60' => '75',\n\t\t\t\t'm61' => '74',\n\t\t\t\t'm62' => '61',\n\t\t\t\t'm63' => '71',\n\t\t\t\t'm64' => '77',\n\t\t\t\t'm65' => '63',\n\t\t\t\t'm66' => '76',\n\t\t\t\t'm67' => '62',\n\t\t\t\t'm68' => '51',\n\t\t\t\t'm69' => '54',\n\t\t\t\t'm70' => '48',\n\t\t\t\t'm71' => '42',\n\t\t\t\t'm72' => '37',\n\t\t\t\t'm73' => '42',\n\t\t\t\t'm74' => '41',\n\t\t\t\t'm75' => '34',\n\t\t\t\t'm76' => '40',\n\t\t\t\t'm77' => '38',\n\t\t\t\t'm78' => '37',\n\t\t\t\t'm79' => '36',\n\t\t\t\t'm80' => '37',\n\t\t\t\t'm81' => '32',\n\t\t\t\t'm82' => '32',\n\t\t\t\t'm83' => '27',\n\t\t\t\t'm84' => '18',\n\t\t\t\t'm85' => '28',\n\t\t\t\t'm86' => '14',\n\t\t\t\t'm87' => '13',\n\t\t\t\t'm88' => '14',\n\t\t\t\t'm89' => '16',\n\t\t\t\t'm90' => '34',\n\t\t\t\t'female_all_ages' => '6043',\n\t\t\t\t'f0' => '49',\n\t\t\t\t'f1' => '69',\n\t\t\t\t'f2' => '58',\n\t\t\t\t'f3' => '77',\n\t\t\t\t'f4' => '64',\n\t\t\t\t'f5' => '54',\n\t\t\t\t'f6' => '65',\n\t\t\t\t'f7' => '63',\n\t\t\t\t'f8' => '72',\n\t\t\t\t'f9' => '50',\n\t\t\t\t'f10' => '69',\n\t\t\t\t'f11' => '69',\n\t\t\t\t'f12' => '61',\n\t\t\t\t'f13' => '49',\n\t\t\t\t'f14' => '52',\n\t\t\t\t'f15' => '62',\n\t\t\t\t'f16' => '80',\n\t\t\t\t'f17' => '81',\n\t\t\t\t'f18' => '59',\n\t\t\t\t'f19' => '57',\n\t\t\t\t'f20' => '64',\n\t\t\t\t'f21' => '74',\n\t\t\t\t'f22' => '70',\n\t\t\t\t'f23' => '76',\n\t\t\t\t'f24' => '91',\n\t\t\t\t'f25' => '104',\n\t\t\t\t'f26' => '71',\n\t\t\t\t'f27' => '81',\n\t\t\t\t'f28' => '75',\n\t\t\t\t'f29' => '74',\n\t\t\t\t'f30' => '60',\n\t\t\t\t'f31' => '66',\n\t\t\t\t'f32' => '79',\n\t\t\t\t'f33' => '78',\n\t\t\t\t'f34' => '71',\n\t\t\t\t'f35' => '66',\n\t\t\t\t'f36' => '70',\n\t\t\t\t'f37' => '56',\n\t\t\t\t'f38' => '73',\n\t\t\t\t'f39' => '72',\n\t\t\t\t'f40' => '66',\n\t\t\t\t'f41' => '65',\n\t\t\t\t'f42' => '97',\n\t\t\t\t'f43' => '88',\n\t\t\t\t'f44' => '84',\n\t\t\t\t'f45' => '79',\n\t\t\t\t'f46' => '88',\n\t\t\t\t'f47' => '96',\n\t\t\t\t'f48' => '88',\n\t\t\t\t'f49' => '92',\n\t\t\t\t'f50' => '74',\n\t\t\t\t'f51' => '83',\n\t\t\t\t'f52' => '72',\n\t\t\t\t'f53' => '96',\n\t\t\t\t'f54' => '81',\n\t\t\t\t'f55' => '85',\n\t\t\t\t'f56' => '88',\n\t\t\t\t'f57' => '82',\n\t\t\t\t'f58' => '79',\n\t\t\t\t'f59' => '71',\n\t\t\t\t'f60' => '66',\n\t\t\t\t'f61' => '65',\n\t\t\t\t'f62' => '68',\n\t\t\t\t'f63' => '55',\n\t\t\t\t'f64' => '68',\n\t\t\t\t'f65' => '89',\n\t\t\t\t'f66' => '76',\n\t\t\t\t'f67' => '57',\n\t\t\t\t'f68' => '57',\n\t\t\t\t'f69' => '56',\n\t\t\t\t'f70' => '53',\n\t\t\t\t'f71' => '34',\n\t\t\t\t'f72' => '41',\n\t\t\t\t'f73' => '66',\n\t\t\t\t'f74' => '52',\n\t\t\t\t'f75' => '60',\n\t\t\t\t'f76' => '63',\n\t\t\t\t'f77' => '51',\n\t\t\t\t'f78' => '54',\n\t\t\t\t'f79' => '41',\n\t\t\t\t'f80' => '47',\n\t\t\t\t'f81' => '48',\n\t\t\t\t'f82' => '54',\n\t\t\t\t'f83' => '41',\n\t\t\t\t'f84' => '40',\n\t\t\t\t'f85' => '32',\n\t\t\t\t'f86' => '41',\n\t\t\t\t'f87' => '32',\n\t\t\t\t'f88' => '25',\n\t\t\t\t'f89' => '25',\n\t\t\t\t'f90' => '101',\n\t\t\t),\n\t\t\t57 => \n\t\t\tarray (\n\t\t\t\t'id' => '58',\n\t\t\t\t'slug' => 'scartho',\n\t\t\t\t'seats' => '3',\n\t\t\t\t'body_id' => '3',\n\t\t\t\t'created_at' => '2015-01-20 12:24:46',\n\t\t\t\t'updated_at' => '2015-01-20 12:24:46',\n\t\t\t\t'ons_district_code' => 'E05001721',\n\t\t\t\t'ons_district_code_old' => '00FCMZ',\n\t\t\t\t'name' => 'Scartho',\n\t\t\t\t'ons_la_code' => 'E06000012',\n\t\t\t\t'body_name' => 'North East Lincolnshire',\n\t\t\t\t'ons_constituency_code' => 'E14000716',\n\t\t\t\t'ons_constituency_code_old' => 'B88',\n\t\t\t\t'ons_constituency_name' => 'Great Grimsby',\n\t\t\t\t'male_all_ages' => '5167',\n\t\t\t\t'm0' => '54',\n\t\t\t\t'm1' => '53',\n\t\t\t\t'm2' => '53',\n\t\t\t\t'm3' => '46',\n\t\t\t\t'm4' => '51',\n\t\t\t\t'm5' => '55',\n\t\t\t\t'm6' => '52',\n\t\t\t\t'm7' => '65',\n\t\t\t\t'm8' => '65',\n\t\t\t\t'm9' => '55',\n\t\t\t\t'm10' => '61',\n\t\t\t\t'm11' => '55',\n\t\t\t\t'm12' => '58',\n\t\t\t\t'm13' => '55',\n\t\t\t\t'm14' => '72',\n\t\t\t\t'm15' => '77',\n\t\t\t\t'm16' => '63',\n\t\t\t\t'm17' => '75',\n\t\t\t\t'm18' => '66',\n\t\t\t\t'm19' => '68',\n\t\t\t\t'm20' => '45',\n\t\t\t\t'm21' => '63',\n\t\t\t\t'm22' => '60',\n\t\t\t\t'm23' => '54',\n\t\t\t\t'm24' => '63',\n\t\t\t\t'm25' => '86',\n\t\t\t\t'm26' => '46',\n\t\t\t\t'm27' => '69',\n\t\t\t\t'm28' => '62',\n\t\t\t\t'm29' => '47',\n\t\t\t\t'm30' => '51',\n\t\t\t\t'm31' => '54',\n\t\t\t\t'm32' => '54',\n\t\t\t\t'm33' => '52',\n\t\t\t\t'm34' => '56',\n\t\t\t\t'm35' => '44',\n\t\t\t\t'm36' => '44',\n\t\t\t\t'm37' => '44',\n\t\t\t\t'm38' => '55',\n\t\t\t\t'm39' => '63',\n\t\t\t\t'm40' => '66',\n\t\t\t\t'm41' => '68',\n\t\t\t\t'm42' => '72',\n\t\t\t\t'm43' => '89',\n\t\t\t\t'm44' => '64',\n\t\t\t\t'm45' => '68',\n\t\t\t\t'm46' => '75',\n\t\t\t\t'm47' => '84',\n\t\t\t\t'm48' => '64',\n\t\t\t\t'm49' => '69',\n\t\t\t\t'm50' => '95',\n\t\t\t\t'm51' => '77',\n\t\t\t\t'm52' => '78',\n\t\t\t\t'm53' => '78',\n\t\t\t\t'm54' => '60',\n\t\t\t\t'm55' => '81',\n\t\t\t\t'm56' => '78',\n\t\t\t\t'm57' => '74',\n\t\t\t\t'm58' => '74',\n\t\t\t\t'm59' => '55',\n\t\t\t\t'm60' => '59',\n\t\t\t\t'm61' => '55',\n\t\t\t\t'm62' => '75',\n\t\t\t\t'm63' => '60',\n\t\t\t\t'm64' => '59',\n\t\t\t\t'm65' => '58',\n\t\t\t\t'm66' => '78',\n\t\t\t\t'm67' => '60',\n\t\t\t\t'm68' => '48',\n\t\t\t\t'm69' => '60',\n\t\t\t\t'm70' => '58',\n\t\t\t\t'm71' => '59',\n\t\t\t\t'm72' => '44',\n\t\t\t\t'm73' => '50',\n\t\t\t\t'm74' => '49',\n\t\t\t\t'm75' => '44',\n\t\t\t\t'm76' => '53',\n\t\t\t\t'm77' => '40',\n\t\t\t\t'm78' => '61',\n\t\t\t\t'm79' => '47',\n\t\t\t\t'm80' => '48',\n\t\t\t\t'm81' => '37',\n\t\t\t\t'm82' => '39',\n\t\t\t\t'm83' => '29',\n\t\t\t\t'm84' => '28',\n\t\t\t\t'm85' => '20',\n\t\t\t\t'm86' => '14',\n\t\t\t\t'm87' => '16',\n\t\t\t\t'm88' => '13',\n\t\t\t\t'm89' => '6',\n\t\t\t\t'm90' => '20',\n\t\t\t\t'female_all_ages' => '5473',\n\t\t\t\t'f0' => '49',\n\t\t\t\t'f1' => '65',\n\t\t\t\t'f2' => '58',\n\t\t\t\t'f3' => '65',\n\t\t\t\t'f4' => '65',\n\t\t\t\t'f5' => '60',\n\t\t\t\t'f6' => '54',\n\t\t\t\t'f7' => '41',\n\t\t\t\t'f8' => '48',\n\t\t\t\t'f9' => '47',\n\t\t\t\t'f10' => '67',\n\t\t\t\t'f11' => '57',\n\t\t\t\t'f12' => '45',\n\t\t\t\t'f13' => '67',\n\t\t\t\t'f14' => '44',\n\t\t\t\t'f15' => '47',\n\t\t\t\t'f16' => '66',\n\t\t\t\t'f17' => '65',\n\t\t\t\t'f18' => '57',\n\t\t\t\t'f19' => '50',\n\t\t\t\t'f20' => '34',\n\t\t\t\t'f21' => '51',\n\t\t\t\t'f22' => '49',\n\t\t\t\t'f23' => '53',\n\t\t\t\t'f24' => '50',\n\t\t\t\t'f25' => '53',\n\t\t\t\t'f26' => '42',\n\t\t\t\t'f27' => '57',\n\t\t\t\t'f28' => '50',\n\t\t\t\t'f29' => '55',\n\t\t\t\t'f30' => '61',\n\t\t\t\t'f31' => '55',\n\t\t\t\t'f32' => '56',\n\t\t\t\t'f33' => '55',\n\t\t\t\t'f34' => '54',\n\t\t\t\t'f35' => '48',\n\t\t\t\t'f36' => '50',\n\t\t\t\t'f37' => '56',\n\t\t\t\t'f38' => '58',\n\t\t\t\t'f39' => '61',\n\t\t\t\t'f40' => '72',\n\t\t\t\t'f41' => '86',\n\t\t\t\t'f42' => '86',\n\t\t\t\t'f43' => '72',\n\t\t\t\t'f44' => '80',\n\t\t\t\t'f45' => '80',\n\t\t\t\t'f46' => '81',\n\t\t\t\t'f47' => '94',\n\t\t\t\t'f48' => '90',\n\t\t\t\t'f49' => '80',\n\t\t\t\t'f50' => '80',\n\t\t\t\t'f51' => '76',\n\t\t\t\t'f52' => '76',\n\t\t\t\t'f53' => '71',\n\t\t\t\t'f54' => '76',\n\t\t\t\t'f55' => '70',\n\t\t\t\t'f56' => '68',\n\t\t\t\t'f57' => '65',\n\t\t\t\t'f58' => '53',\n\t\t\t\t'f59' => '67',\n\t\t\t\t'f60' => '59',\n\t\t\t\t'f61' => '65',\n\t\t\t\t'f62' => '69',\n\t\t\t\t'f63' => '74',\n\t\t\t\t'f64' => '59',\n\t\t\t\t'f65' => '75',\n\t\t\t\t'f66' => '86',\n\t\t\t\t'f67' => '83',\n\t\t\t\t'f68' => '77',\n\t\t\t\t'f69' => '78',\n\t\t\t\t'f70' => '62',\n\t\t\t\t'f71' => '57',\n\t\t\t\t'f72' => '67',\n\t\t\t\t'f73' => '88',\n\t\t\t\t'f74' => '56',\n\t\t\t\t'f75' => '54',\n\t\t\t\t'f76' => '78',\n\t\t\t\t'f77' => '51',\n\t\t\t\t'f78' => '46',\n\t\t\t\t'f79' => '56',\n\t\t\t\t'f80' => '45',\n\t\t\t\t'f81' => '37',\n\t\t\t\t'f82' => '46',\n\t\t\t\t'f83' => '47',\n\t\t\t\t'f84' => '38',\n\t\t\t\t'f85' => '34',\n\t\t\t\t'f86' => '26',\n\t\t\t\t'f87' => '32',\n\t\t\t\t'f88' => '28',\n\t\t\t\t'f89' => '31',\n\t\t\t\t'f90' => '81',\n\t\t\t),\n\t\t\t58 => \n\t\t\tarray (\n\t\t\t\t'id' => '59',\n\t\t\t\t'slug' => 'sidney-sussex',\n\t\t\t\t'seats' => '3',\n\t\t\t\t'body_id' => '3',\n\t\t\t\t'created_at' => '2015-01-20 12:24:46',\n\t\t\t\t'updated_at' => '2015-01-20 12:24:46',\n\t\t\t\t'ons_district_code' => 'E05001722',\n\t\t\t\t'ons_district_code_old' => '00FCNA',\n\t\t\t\t'name' => 'Sidney Sussex',\n\t\t\t\t'ons_la_code' => 'E06000012',\n\t\t\t\t'body_name' => 'North East Lincolnshire',\n\t\t\t\t'ons_constituency_code' => 'E14000643',\n\t\t\t\t'ons_constituency_code_old' => 'B15',\n\t\t\t\t'ons_constituency_name' => 'Cleethorpes',\n\t\t\t\t'male_all_ages' => '6288',\n\t\t\t\t'm0' => '101',\n\t\t\t\t'm1' => '101',\n\t\t\t\t'm2' => '124',\n\t\t\t\t'm3' => '88',\n\t\t\t\t'm4' => '98',\n\t\t\t\t'm5' => '82',\n\t\t\t\t'm6' => '97',\n\t\t\t\t'm7' => '98',\n\t\t\t\t'm8' => '94',\n\t\t\t\t'm9' => '89',\n\t\t\t\t'm10' => '79',\n\t\t\t\t'm11' => '82',\n\t\t\t\t'm12' => '73',\n\t\t\t\t'm13' => '87',\n\t\t\t\t'm14' => '95',\n\t\t\t\t'm15' => '83',\n\t\t\t\t'm16' => '65',\n\t\t\t\t'm17' => '84',\n\t\t\t\t'm18' => '89',\n\t\t\t\t'm19' => '86',\n\t\t\t\t'm20' => '97',\n\t\t\t\t'm21' => '95',\n\t\t\t\t'm22' => '87',\n\t\t\t\t'm23' => '82',\n\t\t\t\t'm24' => '98',\n\t\t\t\t'm25' => '122',\n\t\t\t\t'm26' => '90',\n\t\t\t\t'm27' => '105',\n\t\t\t\t'm28' => '100',\n\t\t\t\t'm29' => '98',\n\t\t\t\t'm30' => '95',\n\t\t\t\t'm31' => '92',\n\t\t\t\t'm32' => '88',\n\t\t\t\t'm33' => '66',\n\t\t\t\t'm34' => '79',\n\t\t\t\t'm35' => '70',\n\t\t\t\t'm36' => '84',\n\t\t\t\t'm37' => '75',\n\t\t\t\t'm38' => '87',\n\t\t\t\t'm39' => '70',\n\t\t\t\t'm40' => '91',\n\t\t\t\t'm41' => '100',\n\t\t\t\t'm42' => '101',\n\t\t\t\t'm43' => '90',\n\t\t\t\t'm44' => '97',\n\t\t\t\t'm45' => '97',\n\t\t\t\t'm46' => '84',\n\t\t\t\t'm47' => '95',\n\t\t\t\t'm48' => '85',\n\t\t\t\t'm49' => '92',\n\t\t\t\t'm50' => '94',\n\t\t\t\t'm51' => '88',\n\t\t\t\t'm52' => '87',\n\t\t\t\t'm53' => '87',\n\t\t\t\t'm54' => '76',\n\t\t\t\t'm55' => '78',\n\t\t\t\t'm56' => '77',\n\t\t\t\t'm57' => '76',\n\t\t\t\t'm58' => '66',\n\t\t\t\t'm59' => '72',\n\t\t\t\t'm60' => '65',\n\t\t\t\t'm61' => '41',\n\t\t\t\t'm62' => '79',\n\t\t\t\t'm63' => '52',\n\t\t\t\t'm64' => '51',\n\t\t\t\t'm65' => '48',\n\t\t\t\t'm66' => '58',\n\t\t\t\t'm67' => '49',\n\t\t\t\t'm68' => '46',\n\t\t\t\t'm69' => '46',\n\t\t\t\t'm70' => '53',\n\t\t\t\t'm71' => '36',\n\t\t\t\t'm72' => '34',\n\t\t\t\t'm73' => '29',\n\t\t\t\t'm74' => '39',\n\t\t\t\t'm75' => '29',\n\t\t\t\t'm76' => '21',\n\t\t\t\t'm77' => '22',\n\t\t\t\t'm78' => '21',\n\t\t\t\t'm79' => '26',\n\t\t\t\t'm80' => '25',\n\t\t\t\t'm81' => '11',\n\t\t\t\t'm82' => '22',\n\t\t\t\t'm83' => '18',\n\t\t\t\t'm84' => '11',\n\t\t\t\t'm85' => '5',\n\t\t\t\t'm86' => '9',\n\t\t\t\t'm87' => '8',\n\t\t\t\t'm88' => '4',\n\t\t\t\t'm89' => '4',\n\t\t\t\t'm90' => '18',\n\t\t\t\t'female_all_ages' => '6379',\n\t\t\t\t'f0' => '84',\n\t\t\t\t'f1' => '123',\n\t\t\t\t'f2' => '88',\n\t\t\t\t'f3' => '96',\n\t\t\t\t'f4' => '103',\n\t\t\t\t'f5' => '97',\n\t\t\t\t'f6' => '102',\n\t\t\t\t'f7' => '96',\n\t\t\t\t'f8' => '83',\n\t\t\t\t'f9' => '82',\n\t\t\t\t'f10' => '85',\n\t\t\t\t'f11' => '78',\n\t\t\t\t'f12' => '65',\n\t\t\t\t'f13' => '66',\n\t\t\t\t'f14' => '90',\n\t\t\t\t'f15' => '75',\n\t\t\t\t'f16' => '77',\n\t\t\t\t'f17' => '83',\n\t\t\t\t'f18' => '79',\n\t\t\t\t'f19' => '100',\n\t\t\t\t'f20' => '86',\n\t\t\t\t'f21' => '95',\n\t\t\t\t'f22' => '101',\n\t\t\t\t'f23' => '118',\n\t\t\t\t'f24' => '127',\n\t\t\t\t'f25' => '116',\n\t\t\t\t'f26' => '111',\n\t\t\t\t'f27' => '98',\n\t\t\t\t'f28' => '98',\n\t\t\t\t'f29' => '124',\n\t\t\t\t'f30' => '93',\n\t\t\t\t'f31' => '91',\n\t\t\t\t'f32' => '71',\n\t\t\t\t'f33' => '92',\n\t\t\t\t'f34' => '74',\n\t\t\t\t'f35' => '75',\n\t\t\t\t'f36' => '68',\n\t\t\t\t'f37' => '73',\n\t\t\t\t'f38' => '62',\n\t\t\t\t'f39' => '71',\n\t\t\t\t'f40' => '70',\n\t\t\t\t'f41' => '105',\n\t\t\t\t'f42' => '83',\n\t\t\t\t'f43' => '88',\n\t\t\t\t'f44' => '99',\n\t\t\t\t'f45' => '113',\n\t\t\t\t'f46' => '108',\n\t\t\t\t'f47' => '84',\n\t\t\t\t'f48' => '90',\n\t\t\t\t'f49' => '87',\n\t\t\t\t'f50' => '85',\n\t\t\t\t'f51' => '91',\n\t\t\t\t'f52' => '99',\n\t\t\t\t'f53' => '67',\n\t\t\t\t'f54' => '81',\n\t\t\t\t'f55' => '86',\n\t\t\t\t'f56' => '63',\n\t\t\t\t'f57' => '77',\n\t\t\t\t'f58' => '69',\n\t\t\t\t'f59' => '61',\n\t\t\t\t'f60' => '58',\n\t\t\t\t'f61' => '60',\n\t\t\t\t'f62' => '50',\n\t\t\t\t'f63' => '45',\n\t\t\t\t'f64' => '49',\n\t\t\t\t'f65' => '65',\n\t\t\t\t'f66' => '56',\n\t\t\t\t'f67' => '39',\n\t\t\t\t'f68' => '43',\n\t\t\t\t'f69' => '34',\n\t\t\t\t'f70' => '41',\n\t\t\t\t'f71' => '35',\n\t\t\t\t'f72' => '35',\n\t\t\t\t'f73' => '32',\n\t\t\t\t'f74' => '46',\n\t\t\t\t'f75' => '44',\n\t\t\t\t'f76' => '44',\n\t\t\t\t'f77' => '31',\n\t\t\t\t'f78' => '30',\n\t\t\t\t'f79' => '32',\n\t\t\t\t'f80' => '26',\n\t\t\t\t'f81' => '21',\n\t\t\t\t'f82' => '21',\n\t\t\t\t'f83' => '15',\n\t\t\t\t'f84' => '14',\n\t\t\t\t'f85' => '9',\n\t\t\t\t'f86' => '16',\n\t\t\t\t'f87' => '12',\n\t\t\t\t'f88' => '10',\n\t\t\t\t'f89' => '15',\n\t\t\t\t'f90' => '49',\n\t\t\t),\n\t\t\t59 => \n\t\t\tarray (\n\t\t\t\t'id' => '60',\n\t\t\t\t'slug' => 'south',\n\t\t\t\t'seats' => '3',\n\t\t\t\t'body_id' => '3',\n\t\t\t\t'created_at' => '2015-01-20 12:24:46',\n\t\t\t\t'updated_at' => '2015-01-20 12:24:46',\n\t\t\t\t'ons_district_code' => 'E05001723',\n\t\t\t\t'ons_district_code_old' => '00FCNB',\n\t\t\t\t'name' => 'South',\n\t\t\t\t'ons_la_code' => 'E06000012',\n\t\t\t\t'body_name' => 'North East Lincolnshire',\n\t\t\t\t'ons_constituency_code' => 'E14000716',\n\t\t\t\t'ons_constituency_code_old' => 'B88',\n\t\t\t\t'ons_constituency_name' => 'Great Grimsby',\n\t\t\t\t'male_all_ages' => '6112',\n\t\t\t\t'm0' => '79',\n\t\t\t\t'm1' => '102',\n\t\t\t\t'm2' => '113',\n\t\t\t\t'm3' => '125',\n\t\t\t\t'm4' => '112',\n\t\t\t\t'm5' => '136',\n\t\t\t\t'm6' => '121',\n\t\t\t\t'm7' => '131',\n\t\t\t\t'm8' => '97',\n\t\t\t\t'm9' => '81',\n\t\t\t\t'm10' => '72',\n\t\t\t\t'm11' => '89',\n\t\t\t\t'm12' => '97',\n\t\t\t\t'm13' => '103',\n\t\t\t\t'm14' => '83',\n\t\t\t\t'm15' => '77',\n\t\t\t\t'm16' => '91',\n\t\t\t\t'm17' => '77',\n\t\t\t\t'm18' => '80',\n\t\t\t\t'm19' => '74',\n\t\t\t\t'm20' => '80',\n\t\t\t\t'm21' => '87',\n\t\t\t\t'm22' => '94',\n\t\t\t\t'm23' => '81',\n\t\t\t\t'm24' => '91',\n\t\t\t\t'm25' => '95',\n\t\t\t\t'm26' => '71',\n\t\t\t\t'm27' => '73',\n\t\t\t\t'm28' => '70',\n\t\t\t\t'm29' => '65',\n\t\t\t\t'm30' => '75',\n\t\t\t\t'm31' => '87',\n\t\t\t\t'm32' => '67',\n\t\t\t\t'm33' => '77',\n\t\t\t\t'm34' => '71',\n\t\t\t\t'm35' => '54',\n\t\t\t\t'm36' => '73',\n\t\t\t\t'm37' => '70',\n\t\t\t\t'm38' => '64',\n\t\t\t\t'm39' => '65',\n\t\t\t\t'm40' => '79',\n\t\t\t\t'm41' => '71',\n\t\t\t\t'm42' => '84',\n\t\t\t\t'm43' => '91',\n\t\t\t\t'm44' => '73',\n\t\t\t\t'm45' => '69',\n\t\t\t\t'm46' => '68',\n\t\t\t\t'm47' => '87',\n\t\t\t\t'm48' => '61',\n\t\t\t\t'm49' => '74',\n\t\t\t\t'm50' => '79',\n\t\t\t\t'm51' => '88',\n\t\t\t\t'm52' => '74',\n\t\t\t\t'm53' => '70',\n\t\t\t\t'm54' => '68',\n\t\t\t\t'm55' => '69',\n\t\t\t\t'm56' => '68',\n\t\t\t\t'm57' => '61',\n\t\t\t\t'm58' => '56',\n\t\t\t\t'm59' => '87',\n\t\t\t\t'm60' => '75',\n\t\t\t\t'm61' => '80',\n\t\t\t\t'm62' => '73',\n\t\t\t\t'm63' => '71',\n\t\t\t\t'm64' => '70',\n\t\t\t\t'm65' => '67',\n\t\t\t\t'm66' => '67',\n\t\t\t\t'm67' => '49',\n\t\t\t\t'm68' => '55',\n\t\t\t\t'm69' => '40',\n\t\t\t\t'm70' => '47',\n\t\t\t\t'm71' => '35',\n\t\t\t\t'm72' => '31',\n\t\t\t\t'm73' => '38',\n\t\t\t\t'm74' => '39',\n\t\t\t\t'm75' => '33',\n\t\t\t\t'm76' => '28',\n\t\t\t\t'm77' => '35',\n\t\t\t\t'm78' => '29',\n\t\t\t\t'm79' => '26',\n\t\t\t\t'm80' => '20',\n\t\t\t\t'm81' => '24',\n\t\t\t\t'm82' => '31',\n\t\t\t\t'm83' => '23',\n\t\t\t\t'm84' => '18',\n\t\t\t\t'm85' => '18',\n\t\t\t\t'm86' => '8',\n\t\t\t\t'm87' => '10',\n\t\t\t\t'm88' => '12',\n\t\t\t\t'm89' => '8',\n\t\t\t\t'm90' => '25',\n\t\t\t\t'female_all_ages' => '6652',\n\t\t\t\t'f0' => '99',\n\t\t\t\t'f1' => '120',\n\t\t\t\t'f2' => '103',\n\t\t\t\t'f3' => '116',\n\t\t\t\t'f4' => '110',\n\t\t\t\t'f5' => '112',\n\t\t\t\t'f6' => '89',\n\t\t\t\t'f7' => '94',\n\t\t\t\t'f8' => '124',\n\t\t\t\t'f9' => '101',\n\t\t\t\t'f10' => '81',\n\t\t\t\t'f11' => '84',\n\t\t\t\t'f12' => '92',\n\t\t\t\t'f13' => '82',\n\t\t\t\t'f14' => '75',\n\t\t\t\t'f15' => '85',\n\t\t\t\t'f16' => '105',\n\t\t\t\t'f17' => '83',\n\t\t\t\t'f18' => '89',\n\t\t\t\t'f19' => '76',\n\t\t\t\t'f20' => '78',\n\t\t\t\t'f21' => '77',\n\t\t\t\t'f22' => '95',\n\t\t\t\t'f23' => '93',\n\t\t\t\t'f24' => '95',\n\t\t\t\t'f25' => '117',\n\t\t\t\t'f26' => '108',\n\t\t\t\t'f27' => '91',\n\t\t\t\t'f28' => '105',\n\t\t\t\t'f29' => '101',\n\t\t\t\t'f30' => '93',\n\t\t\t\t'f31' => '91',\n\t\t\t\t'f32' => '87',\n\t\t\t\t'f33' => '87',\n\t\t\t\t'f34' => '83',\n\t\t\t\t'f35' => '55',\n\t\t\t\t'f36' => '60',\n\t\t\t\t'f37' => '72',\n\t\t\t\t'f38' => '71',\n\t\t\t\t'f39' => '83',\n\t\t\t\t'f40' => '78',\n\t\t\t\t'f41' => '76',\n\t\t\t\t'f42' => '77',\n\t\t\t\t'f43' => '89',\n\t\t\t\t'f44' => '95',\n\t\t\t\t'f45' => '76',\n\t\t\t\t'f46' => '76',\n\t\t\t\t'f47' => '100',\n\t\t\t\t'f48' => '83',\n\t\t\t\t'f49' => '100',\n\t\t\t\t'f50' => '98',\n\t\t\t\t'f51' => '80',\n\t\t\t\t'f52' => '86',\n\t\t\t\t'f53' => '63',\n\t\t\t\t'f54' => '87',\n\t\t\t\t'f55' => '73',\n\t\t\t\t'f56' => '57',\n\t\t\t\t'f57' => '74',\n\t\t\t\t'f58' => '75',\n\t\t\t\t'f59' => '74',\n\t\t\t\t'f60' => '67',\n\t\t\t\t'f61' => '78',\n\t\t\t\t'f62' => '70',\n\t\t\t\t'f63' => '72',\n\t\t\t\t'f64' => '70',\n\t\t\t\t'f65' => '67',\n\t\t\t\t'f66' => '63',\n\t\t\t\t'f67' => '53',\n\t\t\t\t'f68' => '41',\n\t\t\t\t'f69' => '45',\n\t\t\t\t'f70' => '39',\n\t\t\t\t'f71' => '38',\n\t\t\t\t'f72' => '36',\n\t\t\t\t'f73' => '46',\n\t\t\t\t'f74' => '44',\n\t\t\t\t'f75' => '37',\n\t\t\t\t'f76' => '38',\n\t\t\t\t'f77' => '38',\n\t\t\t\t'f78' => '36',\n\t\t\t\t'f79' => '54',\n\t\t\t\t'f80' => '39',\n\t\t\t\t'f81' => '39',\n\t\t\t\t'f82' => '29',\n\t\t\t\t'f83' => '38',\n\t\t\t\t'f84' => '32',\n\t\t\t\t'f85' => '30',\n\t\t\t\t'f86' => '14',\n\t\t\t\t'f87' => '15',\n\t\t\t\t'f88' => '20',\n\t\t\t\t'f89' => '20',\n\t\t\t\t'f90' => '65',\n\t\t\t),\n\t\t\t60 => \n\t\t\tarray (\n\t\t\t\t'id' => '61',\n\t\t\t\t'slug' => 'waltham',\n\t\t\t\t'seats' => '3',\n\t\t\t\t'body_id' => '3',\n\t\t\t\t'created_at' => '2015-01-20 12:24:46',\n\t\t\t\t'updated_at' => '2015-01-20 12:24:46',\n\t\t\t\t'ons_district_code' => 'E05001724',\n\t\t\t\t'ons_district_code_old' => '00FCNC',\n\t\t\t\t'name' => 'Waltham',\n\t\t\t\t'ons_la_code' => 'E06000012',\n\t\t\t\t'body_name' => 'North East Lincolnshire',\n\t\t\t\t'ons_constituency_code' => 'E14000643',\n\t\t\t\t'ons_constituency_code_old' => 'B15',\n\t\t\t\t'ons_constituency_name' => 'Cleethorpes',\n\t\t\t\t'male_all_ages' => '3388',\n\t\t\t\t'm0' => '30',\n\t\t\t\t'm1' => '32',\n\t\t\t\t'm2' => '24',\n\t\t\t\t'm3' => '31',\n\t\t\t\t'm4' => '36',\n\t\t\t\t'm5' => '30',\n\t\t\t\t'm6' => '41',\n\t\t\t\t'm7' => '37',\n\t\t\t\t'm8' => '37',\n\t\t\t\t'm9' => '29',\n\t\t\t\t'm10' => '33',\n\t\t\t\t'm11' => '28',\n\t\t\t\t'm12' => '31',\n\t\t\t\t'm13' => '39',\n\t\t\t\t'm14' => '38',\n\t\t\t\t'm15' => '43',\n\t\t\t\t'm16' => '42',\n\t\t\t\t'm17' => '45',\n\t\t\t\t'm18' => '54',\n\t\t\t\t'm19' => '31',\n\t\t\t\t'm20' => '26',\n\t\t\t\t'm21' => '36',\n\t\t\t\t'm22' => '40',\n\t\t\t\t'm23' => '26',\n\t\t\t\t'm24' => '29',\n\t\t\t\t'm25' => '24',\n\t\t\t\t'm26' => '26',\n\t\t\t\t'm27' => '22',\n\t\t\t\t'm28' => '32',\n\t\t\t\t'm29' => '28',\n\t\t\t\t'm30' => '28',\n\t\t\t\t'm31' => '22',\n\t\t\t\t'm32' => '22',\n\t\t\t\t'm33' => '28',\n\t\t\t\t'm34' => '33',\n\t\t\t\t'm35' => '16',\n\t\t\t\t'm36' => '29',\n\t\t\t\t'm37' => '38',\n\t\t\t\t'm38' => '30',\n\t\t\t\t'm39' => '42',\n\t\t\t\t'm40' => '38',\n\t\t\t\t'm41' => '33',\n\t\t\t\t'm42' => '32',\n\t\t\t\t'm43' => '38',\n\t\t\t\t'm44' => '47',\n\t\t\t\t'm45' => '57',\n\t\t\t\t'm46' => '56',\n\t\t\t\t'm47' => '54',\n\t\t\t\t'm48' => '52',\n\t\t\t\t'm49' => '77',\n\t\t\t\t'm50' => '58',\n\t\t\t\t'm51' => '55',\n\t\t\t\t'm52' => '58',\n\t\t\t\t'm53' => '51',\n\t\t\t\t'm54' => '41',\n\t\t\t\t'm55' => '45',\n\t\t\t\t'm56' => '29',\n\t\t\t\t'm57' => '47',\n\t\t\t\t'm58' => '44',\n\t\t\t\t'm59' => '44',\n\t\t\t\t'm60' => '57',\n\t\t\t\t'm61' => '56',\n\t\t\t\t'm62' => '57',\n\t\t\t\t'm63' => '35',\n\t\t\t\t'm64' => '56',\n\t\t\t\t'm65' => '57',\n\t\t\t\t'm66' => '73',\n\t\t\t\t'm67' => '49',\n\t\t\t\t'm68' => '49',\n\t\t\t\t'm69' => '48',\n\t\t\t\t'm70' => '44',\n\t\t\t\t'm71' => '35',\n\t\t\t\t'm72' => '35',\n\t\t\t\t'm73' => '33',\n\t\t\t\t'm74' => '34',\n\t\t\t\t'm75' => '36',\n\t\t\t\t'm76' => '45',\n\t\t\t\t'm77' => '33',\n\t\t\t\t'm78' => '39',\n\t\t\t\t'm79' => '32',\n\t\t\t\t'm80' => '27',\n\t\t\t\t'm81' => '23',\n\t\t\t\t'm82' => '25',\n\t\t\t\t'm83' => '28',\n\t\t\t\t'm84' => '24',\n\t\t\t\t'm85' => '14',\n\t\t\t\t'm86' => '16',\n\t\t\t\t'm87' => '16',\n\t\t\t\t'm88' => '12',\n\t\t\t\t'm89' => '12',\n\t\t\t\t'm90' => '44',\n\t\t\t\t'female_all_ages' => '3601',\n\t\t\t\t'f0' => '25',\n\t\t\t\t'f1' => '26',\n\t\t\t\t'f2' => '29',\n\t\t\t\t'f3' => '39',\n\t\t\t\t'f4' => '33',\n\t\t\t\t'f5' => '29',\n\t\t\t\t'f6' => '35',\n\t\t\t\t'f7' => '21',\n\t\t\t\t'f8' => '20',\n\t\t\t\t'f9' => '24',\n\t\t\t\t'f10' => '35',\n\t\t\t\t'f11' => '34',\n\t\t\t\t'f12' => '35',\n\t\t\t\t'f13' => '28',\n\t\t\t\t'f14' => '37',\n\t\t\t\t'f15' => '41',\n\t\t\t\t'f16' => '40',\n\t\t\t\t'f17' => '45',\n\t\t\t\t'f18' => '46',\n\t\t\t\t'f19' => '31',\n\t\t\t\t'f20' => '22',\n\t\t\t\t'f21' => '26',\n\t\t\t\t'f22' => '22',\n\t\t\t\t'f23' => '26',\n\t\t\t\t'f24' => '24',\n\t\t\t\t'f25' => '23',\n\t\t\t\t'f26' => '16',\n\t\t\t\t'f27' => '28',\n\t\t\t\t'f28' => '41',\n\t\t\t\t'f29' => '24',\n\t\t\t\t'f30' => '32',\n\t\t\t\t'f31' => '33',\n\t\t\t\t'f32' => '24',\n\t\t\t\t'f33' => '40',\n\t\t\t\t'f34' => '31',\n\t\t\t\t'f35' => '35',\n\t\t\t\t'f36' => '38',\n\t\t\t\t'f37' => '41',\n\t\t\t\t'f38' => '29',\n\t\t\t\t'f39' => '31',\n\t\t\t\t'f40' => '36',\n\t\t\t\t'f41' => '32',\n\t\t\t\t'f42' => '44',\n\t\t\t\t'f43' => '55',\n\t\t\t\t'f44' => '53',\n\t\t\t\t'f45' => '61',\n\t\t\t\t'f46' => '54',\n\t\t\t\t'f47' => '54',\n\t\t\t\t'f48' => '56',\n\t\t\t\t'f49' => '60',\n\t\t\t\t'f50' => '60',\n\t\t\t\t'f51' => '58',\n\t\t\t\t'f52' => '58',\n\t\t\t\t'f53' => '52',\n\t\t\t\t'f54' => '60',\n\t\t\t\t'f55' => '38',\n\t\t\t\t'f56' => '53',\n\t\t\t\t'f57' => '46',\n\t\t\t\t'f58' => '52',\n\t\t\t\t'f59' => '55',\n\t\t\t\t'f60' => '49',\n\t\t\t\t'f61' => '52',\n\t\t\t\t'f62' => '53',\n\t\t\t\t'f63' => '69',\n\t\t\t\t'f64' => '50',\n\t\t\t\t'f65' => '56',\n\t\t\t\t'f66' => '68',\n\t\t\t\t'f67' => '52',\n\t\t\t\t'f68' => '45',\n\t\t\t\t'f69' => '36',\n\t\t\t\t'f70' => '48',\n\t\t\t\t'f71' => '35',\n\t\t\t\t'f72' => '41',\n\t\t\t\t'f73' => '57',\n\t\t\t\t'f74' => '48',\n\t\t\t\t'f75' => '43',\n\t\t\t\t'f76' => '50',\n\t\t\t\t'f77' => '51',\n\t\t\t\t'f78' => '41',\n\t\t\t\t'f79' => '44',\n\t\t\t\t'f80' => '27',\n\t\t\t\t'f81' => '37',\n\t\t\t\t'f82' => '30',\n\t\t\t\t'f83' => '31',\n\t\t\t\t'f84' => '26',\n\t\t\t\t'f85' => '32',\n\t\t\t\t'f86' => '38',\n\t\t\t\t'f87' => '10',\n\t\t\t\t'f88' => '21',\n\t\t\t\t'f89' => '13',\n\t\t\t\t'f90' => '72',\n\t\t\t),\n\t\t\t61 => \n\t\t\tarray (\n\t\t\t\t'id' => '62',\n\t\t\t\t'slug' => 'west-marsh',\n\t\t\t\t'seats' => '3',\n\t\t\t\t'body_id' => '3',\n\t\t\t\t'created_at' => '2015-01-20 12:24:46',\n\t\t\t\t'updated_at' => '2015-01-20 12:24:46',\n\t\t\t\t'ons_district_code' => 'E05001725',\n\t\t\t\t'ons_district_code_old' => '00FCND',\n\t\t\t\t'name' => 'West Marsh',\n\t\t\t\t'ons_la_code' => 'E06000012',\n\t\t\t\t'body_name' => 'North East Lincolnshire',\n\t\t\t\t'ons_constituency_code' => 'E14000716',\n\t\t\t\t'ons_constituency_code_old' => 'B88',\n\t\t\t\t'ons_constituency_name' => 'Great Grimsby',\n\t\t\t\t'male_all_ages' => '3930',\n\t\t\t\t'm0' => '69',\n\t\t\t\t'm1' => '67',\n\t\t\t\t'm2' => '69',\n\t\t\t\t'm3' => '68',\n\t\t\t\t'm4' => '72',\n\t\t\t\t'm5' => '73',\n\t\t\t\t'm6' => '71',\n\t\t\t\t'm7' => '69',\n\t\t\t\t'm8' => '39',\n\t\t\t\t'm9' => '52',\n\t\t\t\t'm10' => '28',\n\t\t\t\t'm11' => '32',\n\t\t\t\t'm12' => '19',\n\t\t\t\t'm13' => '26',\n\t\t\t\t'm14' => '41',\n\t\t\t\t'm15' => '39',\n\t\t\t\t'm16' => '36',\n\t\t\t\t'm17' => '46',\n\t\t\t\t'm18' => '40',\n\t\t\t\t'm19' => '42',\n\t\t\t\t'm20' => '59',\n\t\t\t\t'm21' => '71',\n\t\t\t\t'm22' => '55',\n\t\t\t\t'm23' => '58',\n\t\t\t\t'm24' => '69',\n\t\t\t\t'm25' => '92',\n\t\t\t\t'm26' => '71',\n\t\t\t\t'm27' => '72',\n\t\t\t\t'm28' => '75',\n\t\t\t\t'm29' => '61',\n\t\t\t\t'm30' => '66',\n\t\t\t\t'm31' => '61',\n\t\t\t\t'm32' => '77',\n\t\t\t\t'm33' => '75',\n\t\t\t\t'm34' => '58',\n\t\t\t\t'm35' => '42',\n\t\t\t\t'm36' => '46',\n\t\t\t\t'm37' => '39',\n\t\t\t\t'm38' => '57',\n\t\t\t\t'm39' => '48',\n\t\t\t\t'm40' => '67',\n\t\t\t\t'm41' => '60',\n\t\t\t\t'm42' => '54',\n\t\t\t\t'm43' => '50',\n\t\t\t\t'm44' => '57',\n\t\t\t\t'm45' => '52',\n\t\t\t\t'm46' => '58',\n\t\t\t\t'm47' => '49',\n\t\t\t\t'm48' => '54',\n\t\t\t\t'm49' => '58',\n\t\t\t\t'm50' => '58',\n\t\t\t\t'm51' => '64',\n\t\t\t\t'm52' => '61',\n\t\t\t\t'm53' => '55',\n\t\t\t\t'm54' => '53',\n\t\t\t\t'm55' => '58',\n\t\t\t\t'm56' => '41',\n\t\t\t\t'm57' => '43',\n\t\t\t\t'm58' => '41',\n\t\t\t\t'm59' => '38',\n\t\t\t\t'm60' => '38',\n\t\t\t\t'm61' => '37',\n\t\t\t\t'm62' => '29',\n\t\t\t\t'm63' => '39',\n\t\t\t\t'm64' => '31',\n\t\t\t\t'm65' => '37',\n\t\t\t\t'm66' => '42',\n\t\t\t\t'm67' => '26',\n\t\t\t\t'm68' => '35',\n\t\t\t\t'm69' => '25',\n\t\t\t\t'm70' => '16',\n\t\t\t\t'm71' => '16',\n\t\t\t\t'm72' => '11',\n\t\t\t\t'm73' => '18',\n\t\t\t\t'm74' => '13',\n\t\t\t\t'm75' => '17',\n\t\t\t\t'm76' => '22',\n\t\t\t\t'm77' => '16',\n\t\t\t\t'm78' => '20',\n\t\t\t\t'm79' => '11',\n\t\t\t\t'm80' => '23',\n\t\t\t\t'm81' => '11',\n\t\t\t\t'm82' => '12',\n\t\t\t\t'm83' => '13',\n\t\t\t\t'm84' => '10',\n\t\t\t\t'm85' => '6',\n\t\t\t\t'm86' => '9',\n\t\t\t\t'm87' => '6',\n\t\t\t\t'm88' => '6',\n\t\t\t\t'm89' => '5',\n\t\t\t\t'm90' => '9',\n\t\t\t\t'female_all_ages' => '3935',\n\t\t\t\t'f0' => '93',\n\t\t\t\t'f1' => '82',\n\t\t\t\t'f2' => '67',\n\t\t\t\t'f3' => '72',\n\t\t\t\t'f4' => '63',\n\t\t\t\t'f5' => '49',\n\t\t\t\t'f6' => '52',\n\t\t\t\t'f7' => '46',\n\t\t\t\t'f8' => '48',\n\t\t\t\t'f9' => '46',\n\t\t\t\t'f10' => '38',\n\t\t\t\t'f11' => '46',\n\t\t\t\t'f12' => '30',\n\t\t\t\t'f13' => '43',\n\t\t\t\t'f14' => '44',\n\t\t\t\t'f15' => '42',\n\t\t\t\t'f16' => '56',\n\t\t\t\t'f17' => '36',\n\t\t\t\t'f18' => '42',\n\t\t\t\t'f19' => '48',\n\t\t\t\t'f20' => '56',\n\t\t\t\t'f21' => '57',\n\t\t\t\t'f22' => '63',\n\t\t\t\t'f23' => '86',\n\t\t\t\t'f24' => '95',\n\t\t\t\t'f25' => '101',\n\t\t\t\t'f26' => '84',\n\t\t\t\t'f27' => '89',\n\t\t\t\t'f28' => '70',\n\t\t\t\t'f29' => '83',\n\t\t\t\t'f30' => '54',\n\t\t\t\t'f31' => '64',\n\t\t\t\t'f32' => '55',\n\t\t\t\t'f33' => '52',\n\t\t\t\t'f34' => '54',\n\t\t\t\t'f35' => '39',\n\t\t\t\t'f36' => '39',\n\t\t\t\t'f37' => '42',\n\t\t\t\t'f38' => '46',\n\t\t\t\t'f39' => '58',\n\t\t\t\t'f40' => '46',\n\t\t\t\t'f41' => '59',\n\t\t\t\t'f42' => '56',\n\t\t\t\t'f43' => '54',\n\t\t\t\t'f44' => '55',\n\t\t\t\t'f45' => '46',\n\t\t\t\t'f46' => '38',\n\t\t\t\t'f47' => '52',\n\t\t\t\t'f48' => '54',\n\t\t\t\t'f49' => '51',\n\t\t\t\t'f50' => '39',\n\t\t\t\t'f51' => '50',\n\t\t\t\t'f52' => '51',\n\t\t\t\t'f53' => '48',\n\t\t\t\t'f54' => '46',\n\t\t\t\t'f55' => '39',\n\t\t\t\t'f56' => '41',\n\t\t\t\t'f57' => '33',\n\t\t\t\t'f58' => '41',\n\t\t\t\t'f59' => '25',\n\t\t\t\t'f60' => '31',\n\t\t\t\t'f61' => '41',\n\t\t\t\t'f62' => '43',\n\t\t\t\t'f63' => '31',\n\t\t\t\t'f64' => '25',\n\t\t\t\t'f65' => '33',\n\t\t\t\t'f66' => '32',\n\t\t\t\t'f67' => '33',\n\t\t\t\t'f68' => '17',\n\t\t\t\t'f69' => '27',\n\t\t\t\t'f70' => '27',\n\t\t\t\t'f71' => '22',\n\t\t\t\t'f72' => '26',\n\t\t\t\t'f73' => '24',\n\t\t\t\t'f74' => '21',\n\t\t\t\t'f75' => '18',\n\t\t\t\t'f76' => '29',\n\t\t\t\t'f77' => '17',\n\t\t\t\t'f78' => '23',\n\t\t\t\t'f79' => '16',\n\t\t\t\t'f80' => '10',\n\t\t\t\t'f81' => '16',\n\t\t\t\t'f82' => '13',\n\t\t\t\t'f83' => '11',\n\t\t\t\t'f84' => '13',\n\t\t\t\t'f85' => '19',\n\t\t\t\t'f86' => '17',\n\t\t\t\t'f87' => '9',\n\t\t\t\t'f88' => '7',\n\t\t\t\t'f89' => '8',\n\t\t\t\t'f90' => '22',\n\t\t\t),\n\t\t\t62 => \n\t\t\tarray (\n\t\t\t\t'id' => '63',\n\t\t\t\t'slug' => 'wolds',\n\t\t\t\t'seats' => '3',\n\t\t\t\t'body_id' => '3',\n\t\t\t\t'created_at' => '2015-01-20 12:24:46',\n\t\t\t\t'updated_at' => '2015-01-20 12:24:46',\n\t\t\t\t'ons_district_code' => 'E05001726',\n\t\t\t\t'ons_district_code_old' => '00FCNE',\n\t\t\t\t'name' => 'Wolds',\n\t\t\t\t'ons_la_code' => 'E06000012',\n\t\t\t\t'body_name' => 'North East Lincolnshire',\n\t\t\t\t'ons_constituency_code' => 'E14000643',\n\t\t\t\t'ons_constituency_code_old' => 'B15',\n\t\t\t\t'ons_constituency_name' => 'Cleethorpes',\n\t\t\t\t'male_all_ages' => '3637',\n\t\t\t\t'm0' => '24',\n\t\t\t\t'm1' => '29',\n\t\t\t\t'm2' => '30',\n\t\t\t\t'm3' => '40',\n\t\t\t\t'm4' => '32',\n\t\t\t\t'm5' => '52',\n\t\t\t\t'm6' => '53',\n\t\t\t\t'm7' => '47',\n\t\t\t\t'm8' => '52',\n\t\t\t\t'm9' => '51',\n\t\t\t\t'm10' => '45',\n\t\t\t\t'm11' => '40',\n\t\t\t\t'm12' => '45',\n\t\t\t\t'm13' => '43',\n\t\t\t\t'm14' => '48',\n\t\t\t\t'm15' => '55',\n\t\t\t\t'm16' => '47',\n\t\t\t\t'm17' => '38',\n\t\t\t\t'm18' => '52',\n\t\t\t\t'm19' => '31',\n\t\t\t\t'm20' => '32',\n\t\t\t\t'm21' => '36',\n\t\t\t\t'm22' => '46',\n\t\t\t\t'm23' => '44',\n\t\t\t\t'm24' => '48',\n\t\t\t\t'm25' => '22',\n\t\t\t\t'm26' => '28',\n\t\t\t\t'm27' => '28',\n\t\t\t\t'm28' => '24',\n\t\t\t\t'm29' => '23',\n\t\t\t\t'm30' => '28',\n\t\t\t\t'm31' => '26',\n\t\t\t\t'm32' => '27',\n\t\t\t\t'm33' => '25',\n\t\t\t\t'm34' => '37',\n\t\t\t\t'm35' => '41',\n\t\t\t\t'm36' => '26',\n\t\t\t\t'm37' => '44',\n\t\t\t\t'm38' => '49',\n\t\t\t\t'm39' => '52',\n\t\t\t\t'm40' => '47',\n\t\t\t\t'm41' => '61',\n\t\t\t\t'm42' => '51',\n\t\t\t\t'm43' => '65',\n\t\t\t\t'm44' => '46',\n\t\t\t\t'm45' => '59',\n\t\t\t\t'm46' => '74',\n\t\t\t\t'm47' => '57',\n\t\t\t\t'm48' => '51',\n\t\t\t\t'm49' => '62',\n\t\t\t\t'm50' => '63',\n\t\t\t\t'm51' => '71',\n\t\t\t\t'm52' => '59',\n\t\t\t\t'm53' => '68',\n\t\t\t\t'm54' => '47',\n\t\t\t\t'm55' => '47',\n\t\t\t\t'm56' => '54',\n\t\t\t\t'm57' => '60',\n\t\t\t\t'm58' => '57',\n\t\t\t\t'm59' => '53',\n\t\t\t\t'm60' => '62',\n\t\t\t\t'm61' => '37',\n\t\t\t\t'm62' => '47',\n\t\t\t\t'm63' => '49',\n\t\t\t\t'm64' => '46',\n\t\t\t\t'm65' => '63',\n\t\t\t\t'm66' => '56',\n\t\t\t\t'm67' => '43',\n\t\t\t\t'm68' => '34',\n\t\t\t\t'm69' => '46',\n\t\t\t\t'm70' => '37',\n\t\t\t\t'm71' => '33',\n\t\t\t\t'm72' => '32',\n\t\t\t\t'm73' => '24',\n\t\t\t\t'm74' => '27',\n\t\t\t\t'm75' => '32',\n\t\t\t\t'm76' => '35',\n\t\t\t\t'm77' => '34',\n\t\t\t\t'm78' => '33',\n\t\t\t\t'm79' => '29',\n\t\t\t\t'm80' => '22',\n\t\t\t\t'm81' => '17',\n\t\t\t\t'm82' => '11',\n\t\t\t\t'm83' => '17',\n\t\t\t\t'm84' => '14',\n\t\t\t\t'm85' => '10',\n\t\t\t\t'm86' => '19',\n\t\t\t\t'm87' => '9',\n\t\t\t\t'm88' => '3',\n\t\t\t\t'm89' => '8',\n\t\t\t\t'm90' => '16',\n\t\t\t\t'female_all_ages' => '3749',\n\t\t\t\t'f0' => '21',\n\t\t\t\t'f1' => '34',\n\t\t\t\t'f2' => '22',\n\t\t\t\t'f3' => '39',\n\t\t\t\t'f4' => '38',\n\t\t\t\t'f5' => '37',\n\t\t\t\t'f6' => '30',\n\t\t\t\t'f7' => '42',\n\t\t\t\t'f8' => '53',\n\t\t\t\t'f9' => '40',\n\t\t\t\t'f10' => '46',\n\t\t\t\t'f11' => '56',\n\t\t\t\t'f12' => '45',\n\t\t\t\t'f13' => '53',\n\t\t\t\t'f14' => '55',\n\t\t\t\t'f15' => '35',\n\t\t\t\t'f16' => '55',\n\t\t\t\t'f17' => '45',\n\t\t\t\t'f18' => '40',\n\t\t\t\t'f19' => '28',\n\t\t\t\t'f20' => '29',\n\t\t\t\t'f21' => '25',\n\t\t\t\t'f22' => '24',\n\t\t\t\t'f23' => '25',\n\t\t\t\t'f24' => '26',\n\t\t\t\t'f25' => '34',\n\t\t\t\t'f26' => '27',\n\t\t\t\t'f27' => '29',\n\t\t\t\t'f28' => '28',\n\t\t\t\t'f29' => '36',\n\t\t\t\t'f30' => '30',\n\t\t\t\t'f31' => '26',\n\t\t\t\t'f32' => '43',\n\t\t\t\t'f33' => '31',\n\t\t\t\t'f34' => '38',\n\t\t\t\t'f35' => '42',\n\t\t\t\t'f36' => '46',\n\t\t\t\t'f37' => '48',\n\t\t\t\t'f38' => '50',\n\t\t\t\t'f39' => '58',\n\t\t\t\t'f40' => '44',\n\t\t\t\t'f41' => '67',\n\t\t\t\t'f42' => '60',\n\t\t\t\t'f43' => '61',\n\t\t\t\t'f44' => '64',\n\t\t\t\t'f45' => '66',\n\t\t\t\t'f46' => '52',\n\t\t\t\t'f47' => '67',\n\t\t\t\t'f48' => '71',\n\t\t\t\t'f49' => '63',\n\t\t\t\t'f50' => '77',\n\t\t\t\t'f51' => '85',\n\t\t\t\t'f52' => '67',\n\t\t\t\t'f53' => '60',\n\t\t\t\t'f54' => '54',\n\t\t\t\t'f55' => '57',\n\t\t\t\t'f56' => '55',\n\t\t\t\t'f57' => '46',\n\t\t\t\t'f58' => '45',\n\t\t\t\t'f59' => '50',\n\t\t\t\t'f60' => '43',\n\t\t\t\t'f61' => '39',\n\t\t\t\t'f62' => '44',\n\t\t\t\t'f63' => '37',\n\t\t\t\t'f64' => '46',\n\t\t\t\t'f65' => '50',\n\t\t\t\t'f66' => '61',\n\t\t\t\t'f67' => '50',\n\t\t\t\t'f68' => '56',\n\t\t\t\t'f69' => '48',\n\t\t\t\t'f70' => '43',\n\t\t\t\t'f71' => '43',\n\t\t\t\t'f72' => '31',\n\t\t\t\t'f73' => '33',\n\t\t\t\t'f74' => '43',\n\t\t\t\t'f75' => '35',\n\t\t\t\t'f76' => '31',\n\t\t\t\t'f77' => '29',\n\t\t\t\t'f78' => '26',\n\t\t\t\t'f79' => '29',\n\t\t\t\t'f80' => '30',\n\t\t\t\t'f81' => '23',\n\t\t\t\t'f82' => '22',\n\t\t\t\t'f83' => '24',\n\t\t\t\t'f84' => '19',\n\t\t\t\t'f85' => '20',\n\t\t\t\t'f86' => '10',\n\t\t\t\t'f87' => '5',\n\t\t\t\t'f88' => '8',\n\t\t\t\t'f89' => '10',\n\t\t\t\t'f90' => '41',\n\t\t\t),\n\t\t\t63 => \n\t\t\tarray (\n\t\t\t\t'id' => '64',\n\t\t\t\t'slug' => 'yarborough',\n\t\t\t\t'seats' => '3',\n\t\t\t\t'body_id' => '3',\n\t\t\t\t'created_at' => '2015-01-20 12:24:46',\n\t\t\t\t'updated_at' => '2015-01-20 12:24:46',\n\t\t\t\t'ons_district_code' => 'E05001727',\n\t\t\t\t'ons_district_code_old' => '00FCNF',\n\t\t\t\t'name' => 'Yarborough',\n\t\t\t\t'ons_la_code' => 'E06000012',\n\t\t\t\t'body_name' => 'North East Lincolnshire',\n\t\t\t\t'ons_constituency_code' => 'E14000716',\n\t\t\t\t'ons_constituency_code_old' => 'B88',\n\t\t\t\t'ons_constituency_name' => 'Great Grimsby',\n\t\t\t\t'male_all_ages' => '5592',\n\t\t\t\t'm0' => '82',\n\t\t\t\t'm1' => '93',\n\t\t\t\t'm2' => '76',\n\t\t\t\t'm3' => '85',\n\t\t\t\t'm4' => '68',\n\t\t\t\t'm5' => '71',\n\t\t\t\t'm6' => '63',\n\t\t\t\t'm7' => '65',\n\t\t\t\t'm8' => '58',\n\t\t\t\t'm9' => '58',\n\t\t\t\t'm10' => '54',\n\t\t\t\t'm11' => '62',\n\t\t\t\t'm12' => '46',\n\t\t\t\t'm13' => '56',\n\t\t\t\t'm14' => '72',\n\t\t\t\t'm15' => '51',\n\t\t\t\t'm16' => '60',\n\t\t\t\t'm17' => '70',\n\t\t\t\t'm18' => '74',\n\t\t\t\t'm19' => '72',\n\t\t\t\t'm20' => '53',\n\t\t\t\t'm21' => '72',\n\t\t\t\t'm22' => '92',\n\t\t\t\t'm23' => '71',\n\t\t\t\t'm24' => '95',\n\t\t\t\t'm25' => '109',\n\t\t\t\t'm26' => '109',\n\t\t\t\t'm27' => '96',\n\t\t\t\t'm28' => '104',\n\t\t\t\t'm29' => '86',\n\t\t\t\t'm30' => '75',\n\t\t\t\t'm31' => '87',\n\t\t\t\t'm32' => '81',\n\t\t\t\t'm33' => '72',\n\t\t\t\t'm34' => '69',\n\t\t\t\t'm35' => '47',\n\t\t\t\t'm36' => '59',\n\t\t\t\t'm37' => '64',\n\t\t\t\t'm38' => '64',\n\t\t\t\t'm39' => '74',\n\t\t\t\t'm40' => '69',\n\t\t\t\t'm41' => '79',\n\t\t\t\t'm42' => '80',\n\t\t\t\t'm43' => '71',\n\t\t\t\t'm44' => '77',\n\t\t\t\t'm45' => '77',\n\t\t\t\t'm46' => '68',\n\t\t\t\t'm47' => '79',\n\t\t\t\t'm48' => '79',\n\t\t\t\t'm49' => '84',\n\t\t\t\t'm50' => '90',\n\t\t\t\t'm51' => '74',\n\t\t\t\t'm52' => '84',\n\t\t\t\t'm53' => '82',\n\t\t\t\t'm54' => '70',\n\t\t\t\t'm55' => '66',\n\t\t\t\t'm56' => '82',\n\t\t\t\t'm57' => '62',\n\t\t\t\t'm58' => '65',\n\t\t\t\t'm59' => '68',\n\t\t\t\t'm60' => '79',\n\t\t\t\t'm61' => '53',\n\t\t\t\t'm62' => '65',\n\t\t\t\t'm63' => '64',\n\t\t\t\t'm64' => '59',\n\t\t\t\t'm65' => '53',\n\t\t\t\t'm66' => '86',\n\t\t\t\t'm67' => '52',\n\t\t\t\t'm68' => '53',\n\t\t\t\t'm69' => '46',\n\t\t\t\t'm70' => '40',\n\t\t\t\t'm71' => '47',\n\t\t\t\t'm72' => '35',\n\t\t\t\t'm73' => '44',\n\t\t\t\t'm74' => '34',\n\t\t\t\t'm75' => '40',\n\t\t\t\t'm76' => '42',\n\t\t\t\t'm77' => '26',\n\t\t\t\t'm78' => '34',\n\t\t\t\t'm79' => '29',\n\t\t\t\t'm80' => '30',\n\t\t\t\t'm81' => '23',\n\t\t\t\t'm82' => '23',\n\t\t\t\t'm83' => '19',\n\t\t\t\t'm84' => '16',\n\t\t\t\t'm85' => '14',\n\t\t\t\t'm86' => '20',\n\t\t\t\t'm87' => '11',\n\t\t\t\t'm88' => '3',\n\t\t\t\t'm89' => '3',\n\t\t\t\t'm90' => '28',\n\t\t\t\t'female_all_ages' => '6077',\n\t\t\t\t'f0' => '93',\n\t\t\t\t'f1' => '82',\n\t\t\t\t'f2' => '80',\n\t\t\t\t'f3' => '98',\n\t\t\t\t'f4' => '95',\n\t\t\t\t'f5' => '78',\n\t\t\t\t'f6' => '71',\n\t\t\t\t'f7' => '65',\n\t\t\t\t'f8' => '79',\n\t\t\t\t'f9' => '54',\n\t\t\t\t'f10' => '51',\n\t\t\t\t'f11' => '61',\n\t\t\t\t'f12' => '53',\n\t\t\t\t'f13' => '63',\n\t\t\t\t'f14' => '65',\n\t\t\t\t'f15' => '64',\n\t\t\t\t'f16' => '74',\n\t\t\t\t'f17' => '49',\n\t\t\t\t'f18' => '67',\n\t\t\t\t'f19' => '50',\n\t\t\t\t'f20' => '81',\n\t\t\t\t'f21' => '94',\n\t\t\t\t'f22' => '98',\n\t\t\t\t'f23' => '96',\n\t\t\t\t'f24' => '84',\n\t\t\t\t'f25' => '102',\n\t\t\t\t'f26' => '105',\n\t\t\t\t'f27' => '110',\n\t\t\t\t'f28' => '80',\n\t\t\t\t'f29' => '82',\n\t\t\t\t'f30' => '86',\n\t\t\t\t'f31' => '90',\n\t\t\t\t'f32' => '89',\n\t\t\t\t'f33' => '92',\n\t\t\t\t'f34' => '67',\n\t\t\t\t'f35' => '72',\n\t\t\t\t'f36' => '56',\n\t\t\t\t'f37' => '57',\n\t\t\t\t'f38' => '68',\n\t\t\t\t'f39' => '59',\n\t\t\t\t'f40' => '59',\n\t\t\t\t'f41' => '73',\n\t\t\t\t'f42' => '83',\n\t\t\t\t'f43' => '92',\n\t\t\t\t'f44' => '94',\n\t\t\t\t'f45' => '89',\n\t\t\t\t'f46' => '92',\n\t\t\t\t'f47' => '82',\n\t\t\t\t'f48' => '86',\n\t\t\t\t'f49' => '89',\n\t\t\t\t'f50' => '91',\n\t\t\t\t'f51' => '82',\n\t\t\t\t'f52' => '87',\n\t\t\t\t'f53' => '89',\n\t\t\t\t'f54' => '88',\n\t\t\t\t'f55' => '75',\n\t\t\t\t'f56' => '62',\n\t\t\t\t'f57' => '59',\n\t\t\t\t'f58' => '74',\n\t\t\t\t'f59' => '72',\n\t\t\t\t'f60' => '62',\n\t\t\t\t'f61' => '55',\n\t\t\t\t'f62' => '50',\n\t\t\t\t'f63' => '54',\n\t\t\t\t'f64' => '71',\n\t\t\t\t'f65' => '69',\n\t\t\t\t'f66' => '80',\n\t\t\t\t'f67' => '60',\n\t\t\t\t'f68' => '57',\n\t\t\t\t'f69' => '57',\n\t\t\t\t'f70' => '47',\n\t\t\t\t'f71' => '41',\n\t\t\t\t'f72' => '51',\n\t\t\t\t'f73' => '47',\n\t\t\t\t'f74' => '39',\n\t\t\t\t'f75' => '46',\n\t\t\t\t'f76' => '45',\n\t\t\t\t'f77' => '43',\n\t\t\t\t'f78' => '34',\n\t\t\t\t'f79' => '36',\n\t\t\t\t'f80' => '29',\n\t\t\t\t'f81' => '48',\n\t\t\t\t'f82' => '39',\n\t\t\t\t'f83' => '27',\n\t\t\t\t'f84' => '32',\n\t\t\t\t'f85' => '29',\n\t\t\t\t'f86' => '29',\n\t\t\t\t'f87' => '28',\n\t\t\t\t'f88' => '12',\n\t\t\t\t'f89' => '16',\n\t\t\t\t'f90' => '66',\n\t\t\t),\n\t\t\t64 => \n\t\t\tarray (\n\t\t\t\t'id' => '65',\n\t\t\t\t'slug' => 'ashby',\n\t\t\t\t'seats' => '3',\n\t\t\t\t'body_id' => '4',\n\t\t\t\t'created_at' => '2015-01-20 12:24:46',\n\t\t\t\t'updated_at' => '2015-01-20 12:24:46',\n\t\t\t\t'ons_district_code' => 'E05001728',\n\t\t\t\t'ons_district_code_old' => '00FDMR',\n\t\t\t\t'name' => 'Ashby',\n\t\t\t\t'ons_la_code' => 'E06000013',\n\t\t\t\t'body_name' => 'North Lincolnshire',\n\t\t\t\t'ons_constituency_code' => 'E14000914',\n\t\t\t\t'ons_constituency_code_old' => 'D88',\n\t\t\t\t'ons_constituency_name' => 'Scunthorpe',\n\t\t\t\t'male_all_ages' => '6086',\n\t\t\t\t'm0' => '87',\n\t\t\t\t'm1' => '93',\n\t\t\t\t'm2' => '82',\n\t\t\t\t'm3' => '106',\n\t\t\t\t'm4' => '100',\n\t\t\t\t'm5' => '94',\n\t\t\t\t'm6' => '107',\n\t\t\t\t'm7' => '82',\n\t\t\t\t'm8' => '81',\n\t\t\t\t'm9' => '68',\n\t\t\t\t'm10' => '70',\n\t\t\t\t'm11' => '67',\n\t\t\t\t'm12' => '77',\n\t\t\t\t'm13' => '57',\n\t\t\t\t'm14' => '59',\n\t\t\t\t'm15' => '65',\n\t\t\t\t'm16' => '80',\n\t\t\t\t'm17' => '90',\n\t\t\t\t'm18' => '83',\n\t\t\t\t'm19' => '65',\n\t\t\t\t'm20' => '77',\n\t\t\t\t'm21' => '75',\n\t\t\t\t'm22' => '86',\n\t\t\t\t'm23' => '87',\n\t\t\t\t'm24' => '94',\n\t\t\t\t'm25' => '107',\n\t\t\t\t'm26' => '118',\n\t\t\t\t'm27' => '106',\n\t\t\t\t'm28' => '101',\n\t\t\t\t'm29' => '93',\n\t\t\t\t'm30' => '101',\n\t\t\t\t'm31' => '83',\n\t\t\t\t'm32' => '93',\n\t\t\t\t'm33' => '71',\n\t\t\t\t'm34' => '90',\n\t\t\t\t'm35' => '67',\n\t\t\t\t'm36' => '67',\n\t\t\t\t'm37' => '69',\n\t\t\t\t'm38' => '82',\n\t\t\t\t'm39' => '73',\n\t\t\t\t'm40' => '95',\n\t\t\t\t'm41' => '83',\n\t\t\t\t'm42' => '90',\n\t\t\t\t'm43' => '87',\n\t\t\t\t'm44' => '90',\n\t\t\t\t'm45' => '76',\n\t\t\t\t'm46' => '101',\n\t\t\t\t'm47' => '101',\n\t\t\t\t'm48' => '92',\n\t\t\t\t'm49' => '92',\n\t\t\t\t'm50' => '77',\n\t\t\t\t'm51' => '68',\n\t\t\t\t'm52' => '79',\n\t\t\t\t'm53' => '84',\n\t\t\t\t'm54' => '62',\n\t\t\t\t'm55' => '73',\n\t\t\t\t'm56' => '67',\n\t\t\t\t'm57' => '84',\n\t\t\t\t'm58' => '75',\n\t\t\t\t'm59' => '66',\n\t\t\t\t'm60' => '72',\n\t\t\t\t'm61' => '40',\n\t\t\t\t'm62' => '43',\n\t\t\t\t'm63' => '65',\n\t\t\t\t'm64' => '61',\n\t\t\t\t'm65' => '57',\n\t\t\t\t'm66' => '58',\n\t\t\t\t'm67' => '45',\n\t\t\t\t'm68' => '63',\n\t\t\t\t'm69' => '36',\n\t\t\t\t'm70' => '33',\n\t\t\t\t'm71' => '32',\n\t\t\t\t'm72' => '38',\n\t\t\t\t'm73' => '34',\n\t\t\t\t'm74' => '41',\n\t\t\t\t'm75' => '30',\n\t\t\t\t'm76' => '40',\n\t\t\t\t'm77' => '28',\n\t\t\t\t'm78' => '29',\n\t\t\t\t'm79' => '23',\n\t\t\t\t'm80' => '27',\n\t\t\t\t'm81' => '29',\n\t\t\t\t'm82' => '23',\n\t\t\t\t'm83' => '18',\n\t\t\t\t'm84' => '13',\n\t\t\t\t'm85' => '24',\n\t\t\t\t'm86' => '15',\n\t\t\t\t'm87' => '22',\n\t\t\t\t'm88' => '15',\n\t\t\t\t'm89' => '13',\n\t\t\t\t'm90' => '24',\n\t\t\t\t'female_all_ages' => '6467',\n\t\t\t\t'f0' => '99',\n\t\t\t\t'f1' => '84',\n\t\t\t\t'f2' => '107',\n\t\t\t\t'f3' => '111',\n\t\t\t\t'f4' => '104',\n\t\t\t\t'f5' => '109',\n\t\t\t\t'f6' => '96',\n\t\t\t\t'f7' => '83',\n\t\t\t\t'f8' => '75',\n\t\t\t\t'f9' => '75',\n\t\t\t\t'f10' => '62',\n\t\t\t\t'f11' => '75',\n\t\t\t\t'f12' => '63',\n\t\t\t\t'f13' => '59',\n\t\t\t\t'f14' => '58',\n\t\t\t\t'f15' => '82',\n\t\t\t\t'f16' => '64',\n\t\t\t\t'f17' => '59',\n\t\t\t\t'f18' => '61',\n\t\t\t\t'f19' => '86',\n\t\t\t\t'f20' => '64',\n\t\t\t\t'f21' => '77',\n\t\t\t\t'f22' => '89',\n\t\t\t\t'f23' => '107',\n\t\t\t\t'f24' => '106',\n\t\t\t\t'f25' => '114',\n\t\t\t\t'f26' => '125',\n\t\t\t\t'f27' => '122',\n\t\t\t\t'f28' => '117',\n\t\t\t\t'f29' => '108',\n\t\t\t\t'f30' => '107',\n\t\t\t\t'f31' => '105',\n\t\t\t\t'f32' => '103',\n\t\t\t\t'f33' => '114',\n\t\t\t\t'f34' => '80',\n\t\t\t\t'f35' => '77',\n\t\t\t\t'f36' => '62',\n\t\t\t\t'f37' => '95',\n\t\t\t\t'f38' => '93',\n\t\t\t\t'f39' => '73',\n\t\t\t\t'f40' => '70',\n\t\t\t\t'f41' => '66',\n\t\t\t\t'f42' => '77',\n\t\t\t\t'f43' => '80',\n\t\t\t\t'f44' => '91',\n\t\t\t\t'f45' => '87',\n\t\t\t\t'f46' => '86',\n\t\t\t\t'f47' => '91',\n\t\t\t\t'f48' => '83',\n\t\t\t\t'f49' => '74',\n\t\t\t\t'f50' => '77',\n\t\t\t\t'f51' => '92',\n\t\t\t\t'f52' => '80',\n\t\t\t\t'f53' => '62',\n\t\t\t\t'f54' => '70',\n\t\t\t\t'f55' => '69',\n\t\t\t\t'f56' => '65',\n\t\t\t\t'f57' => '65',\n\t\t\t\t'f58' => '74',\n\t\t\t\t'f59' => '62',\n\t\t\t\t'f60' => '59',\n\t\t\t\t'f61' => '48',\n\t\t\t\t'f62' => '53',\n\t\t\t\t'f63' => '62',\n\t\t\t\t'f64' => '57',\n\t\t\t\t'f65' => '64',\n\t\t\t\t'f66' => '56',\n\t\t\t\t'f67' => '54',\n\t\t\t\t'f68' => '51',\n\t\t\t\t'f69' => '51',\n\t\t\t\t'f70' => '39',\n\t\t\t\t'f71' => '40',\n\t\t\t\t'f72' => '36',\n\t\t\t\t'f73' => '33',\n\t\t\t\t'f74' => '38',\n\t\t\t\t'f75' => '38',\n\t\t\t\t'f76' => '43',\n\t\t\t\t'f77' => '49',\n\t\t\t\t'f78' => '42',\n\t\t\t\t'f79' => '40',\n\t\t\t\t'f80' => '25',\n\t\t\t\t'f81' => '49',\n\t\t\t\t'f82' => '40',\n\t\t\t\t'f83' => '34',\n\t\t\t\t'f84' => '40',\n\t\t\t\t'f85' => '41',\n\t\t\t\t'f86' => '37',\n\t\t\t\t'f87' => '35',\n\t\t\t\t'f88' => '19',\n\t\t\t\t'f89' => '23',\n\t\t\t\t'f90' => '100',\n\t\t\t),\n\t\t\t65 => \n\t\t\tarray (\n\t\t\t\t'id' => '66',\n\t\t\t\t'slug' => 'axholme-central',\n\t\t\t\t'seats' => '3',\n\t\t\t\t'body_id' => '4',\n\t\t\t\t'created_at' => '2015-01-20 12:24:46',\n\t\t\t\t'updated_at' => '2015-01-20 12:24:46',\n\t\t\t\t'ons_district_code' => 'E05001729',\n\t\t\t\t'ons_district_code_old' => '00FDMS',\n\t\t\t\t'name' => 'Axholme Central',\n\t\t\t\t'ons_la_code' => 'E06000013',\n\t\t\t\t'body_name' => 'North Lincolnshire',\n\t\t\t\t'ons_constituency_code' => 'E14000596',\n\t\t\t\t'ons_constituency_code_old' => 'A67',\n\t\t\t\t'ons_constituency_name' => 'Brigg and Goole',\n\t\t\t\t'male_all_ages' => '3608',\n\t\t\t\t'm0' => '36',\n\t\t\t\t'm1' => '31',\n\t\t\t\t'm2' => '28',\n\t\t\t\t'm3' => '42',\n\t\t\t\t'm4' => '46',\n\t\t\t\t'm5' => '38',\n\t\t\t\t'm6' => '47',\n\t\t\t\t'm7' => '54',\n\t\t\t\t'm8' => '41',\n\t\t\t\t'm9' => '24',\n\t\t\t\t'm10' => '33',\n\t\t\t\t'm11' => '41',\n\t\t\t\t'm12' => '40',\n\t\t\t\t'm13' => '45',\n\t\t\t\t'm14' => '48',\n\t\t\t\t'm15' => '54',\n\t\t\t\t'm16' => '46',\n\t\t\t\t'm17' => '51',\n\t\t\t\t'm18' => '48',\n\t\t\t\t'm19' => '38',\n\t\t\t\t'm20' => '25',\n\t\t\t\t'm21' => '42',\n\t\t\t\t'm22' => '41',\n\t\t\t\t'm23' => '28',\n\t\t\t\t'm24' => '31',\n\t\t\t\t'm25' => '38',\n\t\t\t\t'm26' => '36',\n\t\t\t\t'm27' => '29',\n\t\t\t\t'm28' => '27',\n\t\t\t\t'm29' => '36',\n\t\t\t\t'm30' => '26',\n\t\t\t\t'm31' => '21',\n\t\t\t\t'm32' => '30',\n\t\t\t\t'm33' => '27',\n\t\t\t\t'm34' => '29',\n\t\t\t\t'm35' => '33',\n\t\t\t\t'm36' => '33',\n\t\t\t\t'm37' => '28',\n\t\t\t\t'm38' => '35',\n\t\t\t\t'm39' => '40',\n\t\t\t\t'm40' => '47',\n\t\t\t\t'm41' => '52',\n\t\t\t\t'm42' => '49',\n\t\t\t\t'm43' => '60',\n\t\t\t\t'm44' => '50',\n\t\t\t\t'm45' => '57',\n\t\t\t\t'm46' => '50',\n\t\t\t\t'm47' => '64',\n\t\t\t\t'm48' => '64',\n\t\t\t\t'm49' => '68',\n\t\t\t\t'm50' => '61',\n\t\t\t\t'm51' => '64',\n\t\t\t\t'm52' => '57',\n\t\t\t\t'm53' => '56',\n\t\t\t\t'm54' => '59',\n\t\t\t\t'm55' => '51',\n\t\t\t\t'm56' => '61',\n\t\t\t\t'm57' => '55',\n\t\t\t\t'm58' => '47',\n\t\t\t\t'm59' => '43',\n\t\t\t\t'm60' => '60',\n\t\t\t\t'm61' => '45',\n\t\t\t\t'm62' => '63',\n\t\t\t\t'm63' => '69',\n\t\t\t\t'm64' => '57',\n\t\t\t\t'm65' => '50',\n\t\t\t\t'm66' => '65',\n\t\t\t\t'm67' => '52',\n\t\t\t\t'm68' => '56',\n\t\t\t\t'm69' => '37',\n\t\t\t\t'm70' => '40',\n\t\t\t\t'm71' => '38',\n\t\t\t\t'm72' => '42',\n\t\t\t\t'm73' => '30',\n\t\t\t\t'm74' => '34',\n\t\t\t\t'm75' => '31',\n\t\t\t\t'm76' => '29',\n\t\t\t\t'm77' => '25',\n\t\t\t\t'm78' => '25',\n\t\t\t\t'm79' => '28',\n\t\t\t\t'm80' => '9',\n\t\t\t\t'm81' => '23',\n\t\t\t\t'm82' => '18',\n\t\t\t\t'm83' => '22',\n\t\t\t\t'm84' => '17',\n\t\t\t\t'm85' => '8',\n\t\t\t\t'm86' => '14',\n\t\t\t\t'm87' => '13',\n\t\t\t\t'm88' => '1',\n\t\t\t\t'm89' => '10',\n\t\t\t\t'm90' => '16',\n\t\t\t\t'female_all_ages' => '3754',\n\t\t\t\t'f0' => '33',\n\t\t\t\t'f1' => '37',\n\t\t\t\t'f2' => '28',\n\t\t\t\t'f3' => '45',\n\t\t\t\t'f4' => '34',\n\t\t\t\t'f5' => '44',\n\t\t\t\t'f6' => '44',\n\t\t\t\t'f7' => '28',\n\t\t\t\t'f8' => '36',\n\t\t\t\t'f9' => '43',\n\t\t\t\t'f10' => '33',\n\t\t\t\t'f11' => '50',\n\t\t\t\t'f12' => '50',\n\t\t\t\t'f13' => '45',\n\t\t\t\t'f14' => '31',\n\t\t\t\t'f15' => '48',\n\t\t\t\t'f16' => '37',\n\t\t\t\t'f17' => '53',\n\t\t\t\t'f18' => '50',\n\t\t\t\t'f19' => '42',\n\t\t\t\t'f20' => '23',\n\t\t\t\t'f21' => '38',\n\t\t\t\t'f22' => '39',\n\t\t\t\t'f23' => '34',\n\t\t\t\t'f24' => '29',\n\t\t\t\t'f25' => '27',\n\t\t\t\t'f26' => '28',\n\t\t\t\t'f27' => '24',\n\t\t\t\t'f28' => '19',\n\t\t\t\t'f29' => '27',\n\t\t\t\t'f30' => '25',\n\t\t\t\t'f31' => '43',\n\t\t\t\t'f32' => '32',\n\t\t\t\t'f33' => '34',\n\t\t\t\t'f34' => '42',\n\t\t\t\t'f35' => '37',\n\t\t\t\t'f36' => '37',\n\t\t\t\t'f37' => '37',\n\t\t\t\t'f38' => '57',\n\t\t\t\t'f39' => '41',\n\t\t\t\t'f40' => '46',\n\t\t\t\t'f41' => '58',\n\t\t\t\t'f42' => '53',\n\t\t\t\t'f43' => '69',\n\t\t\t\t'f44' => '60',\n\t\t\t\t'f45' => '45',\n\t\t\t\t'f46' => '67',\n\t\t\t\t'f47' => '68',\n\t\t\t\t'f48' => '69',\n\t\t\t\t'f49' => '71',\n\t\t\t\t'f50' => '55',\n\t\t\t\t'f51' => '57',\n\t\t\t\t'f52' => '57',\n\t\t\t\t'f53' => '60',\n\t\t\t\t'f54' => '62',\n\t\t\t\t'f55' => '58',\n\t\t\t\t'f56' => '55',\n\t\t\t\t'f57' => '60',\n\t\t\t\t'f58' => '50',\n\t\t\t\t'f59' => '55',\n\t\t\t\t'f60' => '55',\n\t\t\t\t'f61' => '56',\n\t\t\t\t'f62' => '52',\n\t\t\t\t'f63' => '61',\n\t\t\t\t'f64' => '55',\n\t\t\t\t'f65' => '60',\n\t\t\t\t'f66' => '47',\n\t\t\t\t'f67' => '68',\n\t\t\t\t'f68' => '44',\n\t\t\t\t'f69' => '40',\n\t\t\t\t'f70' => '48',\n\t\t\t\t'f71' => '33',\n\t\t\t\t'f72' => '29',\n\t\t\t\t'f73' => '31',\n\t\t\t\t'f74' => '36',\n\t\t\t\t'f75' => '29',\n\t\t\t\t'f76' => '34',\n\t\t\t\t'f77' => '28',\n\t\t\t\t'f78' => '32',\n\t\t\t\t'f79' => '24',\n\t\t\t\t'f80' => '28',\n\t\t\t\t'f81' => '35',\n\t\t\t\t'f82' => '19',\n\t\t\t\t'f83' => '22',\n\t\t\t\t'f84' => '23',\n\t\t\t\t'f85' => '4',\n\t\t\t\t'f86' => '15',\n\t\t\t\t'f87' => '12',\n\t\t\t\t'f88' => '16',\n\t\t\t\t'f89' => '18',\n\t\t\t\t'f90' => '41',\n\t\t\t),\n\t\t\t66 => \n\t\t\tarray (\n\t\t\t\t'id' => '67',\n\t\t\t\t'slug' => 'axholme-north',\n\t\t\t\t'seats' => '3',\n\t\t\t\t'body_id' => '4',\n\t\t\t\t'created_at' => '2015-01-20 12:24:46',\n\t\t\t\t'updated_at' => '2015-01-20 12:24:46',\n\t\t\t\t'ons_district_code' => 'E05001730',\n\t\t\t\t'ons_district_code_old' => '00FDMT',\n\t\t\t\t'name' => 'Axholme North',\n\t\t\t\t'ons_la_code' => 'E06000013',\n\t\t\t\t'body_name' => 'North Lincolnshire',\n\t\t\t\t'ons_constituency_code' => 'E14000596',\n\t\t\t\t'ons_constituency_code_old' => 'A67',\n\t\t\t\t'ons_constituency_name' => 'Brigg and Goole',\n\t\t\t\t'male_all_ages' => '4179',\n\t\t\t\t'm0' => '52',\n\t\t\t\t'm1' => '47',\n\t\t\t\t'm2' => '39',\n\t\t\t\t'm3' => '46',\n\t\t\t\t'm4' => '61',\n\t\t\t\t'm5' => '47',\n\t\t\t\t'm6' => '41',\n\t\t\t\t'm7' => '37',\n\t\t\t\t'm8' => '49',\n\t\t\t\t'm9' => '42',\n\t\t\t\t'm10' => '57',\n\t\t\t\t'm11' => '62',\n\t\t\t\t'm12' => '35',\n\t\t\t\t'm13' => '44',\n\t\t\t\t'm14' => '50',\n\t\t\t\t'm15' => '56',\n\t\t\t\t'm16' => '45',\n\t\t\t\t'm17' => '49',\n\t\t\t\t'm18' => '48',\n\t\t\t\t'm19' => '50',\n\t\t\t\t'm20' => '51',\n\t\t\t\t'm21' => '59',\n\t\t\t\t'm22' => '40',\n\t\t\t\t'm23' => '53',\n\t\t\t\t'm24' => '53',\n\t\t\t\t'm25' => '44',\n\t\t\t\t'm26' => '41',\n\t\t\t\t'm27' => '38',\n\t\t\t\t'm28' => '41',\n\t\t\t\t'm29' => '63',\n\t\t\t\t'm30' => '50',\n\t\t\t\t'm31' => '48',\n\t\t\t\t'm32' => '33',\n\t\t\t\t'm33' => '41',\n\t\t\t\t'm34' => '38',\n\t\t\t\t'm35' => '41',\n\t\t\t\t'm36' => '33',\n\t\t\t\t'm37' => '41',\n\t\t\t\t'm38' => '45',\n\t\t\t\t'm39' => '53',\n\t\t\t\t'm40' => '51',\n\t\t\t\t'm41' => '54',\n\t\t\t\t'm42' => '65',\n\t\t\t\t'm43' => '66',\n\t\t\t\t'm44' => '64',\n\t\t\t\t'm45' => '62',\n\t\t\t\t'm46' => '68',\n\t\t\t\t'm47' => '64',\n\t\t\t\t'm48' => '69',\n\t\t\t\t'm49' => '76',\n\t\t\t\t'm50' => '89',\n\t\t\t\t'm51' => '63',\n\t\t\t\t'm52' => '61',\n\t\t\t\t'm53' => '76',\n\t\t\t\t'm54' => '78',\n\t\t\t\t'm55' => '63',\n\t\t\t\t'm56' => '52',\n\t\t\t\t'm57' => '48',\n\t\t\t\t'm58' => '66',\n\t\t\t\t'm59' => '46',\n\t\t\t\t'm60' => '68',\n\t\t\t\t'm61' => '52',\n\t\t\t\t'm62' => '59',\n\t\t\t\t'm63' => '55',\n\t\t\t\t'm64' => '65',\n\t\t\t\t'm65' => '77',\n\t\t\t\t'm66' => '70',\n\t\t\t\t'm67' => '51',\n\t\t\t\t'm68' => '44',\n\t\t\t\t'm69' => '59',\n\t\t\t\t'm70' => '45',\n\t\t\t\t'm71' => '28',\n\t\t\t\t'm72' => '33',\n\t\t\t\t'm73' => '25',\n\t\t\t\t'm74' => '28',\n\t\t\t\t'm75' => '32',\n\t\t\t\t'm76' => '30',\n\t\t\t\t'm77' => '22',\n\t\t\t\t'm78' => '24',\n\t\t\t\t'm79' => '21',\n\t\t\t\t'm80' => '19',\n\t\t\t\t'm81' => '17',\n\t\t\t\t'm82' => '22',\n\t\t\t\t'm83' => '18',\n\t\t\t\t'm84' => '9',\n\t\t\t\t'm85' => '9',\n\t\t\t\t'm86' => '13',\n\t\t\t\t'm87' => '9',\n\t\t\t\t'm88' => '7',\n\t\t\t\t'm89' => '7',\n\t\t\t\t'm90' => '17',\n\t\t\t\t'female_all_ages' => '4166',\n\t\t\t\t'f0' => '46',\n\t\t\t\t'f1' => '41',\n\t\t\t\t'f2' => '42',\n\t\t\t\t'f3' => '45',\n\t\t\t\t'f4' => '43',\n\t\t\t\t'f5' => '57',\n\t\t\t\t'f6' => '45',\n\t\t\t\t'f7' => '48',\n\t\t\t\t'f8' => '42',\n\t\t\t\t'f9' => '35',\n\t\t\t\t'f10' => '39',\n\t\t\t\t'f11' => '47',\n\t\t\t\t'f12' => '38',\n\t\t\t\t'f13' => '48',\n\t\t\t\t'f14' => '56',\n\t\t\t\t'f15' => '49',\n\t\t\t\t'f16' => '56',\n\t\t\t\t'f17' => '38',\n\t\t\t\t'f18' => '47',\n\t\t\t\t'f19' => '50',\n\t\t\t\t'f20' => '38',\n\t\t\t\t'f21' => '52',\n\t\t\t\t'f22' => '47',\n\t\t\t\t'f23' => '46',\n\t\t\t\t'f24' => '39',\n\t\t\t\t'f25' => '35',\n\t\t\t\t'f26' => '54',\n\t\t\t\t'f27' => '61',\n\t\t\t\t'f28' => '49',\n\t\t\t\t'f29' => '47',\n\t\t\t\t'f30' => '52',\n\t\t\t\t'f31' => '46',\n\t\t\t\t'f32' => '40',\n\t\t\t\t'f33' => '50',\n\t\t\t\t'f34' => '47',\n\t\t\t\t'f35' => '50',\n\t\t\t\t'f36' => '48',\n\t\t\t\t'f37' => '49',\n\t\t\t\t'f38' => '38',\n\t\t\t\t'f39' => '56',\n\t\t\t\t'f40' => '53',\n\t\t\t\t'f41' => '44',\n\t\t\t\t'f42' => '57',\n\t\t\t\t'f43' => '65',\n\t\t\t\t'f44' => '68',\n\t\t\t\t'f45' => '71',\n\t\t\t\t'f46' => '47',\n\t\t\t\t'f47' => '73',\n\t\t\t\t'f48' => '72',\n\t\t\t\t'f49' => '71',\n\t\t\t\t'f50' => '52',\n\t\t\t\t'f51' => '59',\n\t\t\t\t'f52' => '68',\n\t\t\t\t'f53' => '66',\n\t\t\t\t'f54' => '64',\n\t\t\t\t'f55' => '78',\n\t\t\t\t'f56' => '62',\n\t\t\t\t'f57' => '66',\n\t\t\t\t'f58' => '48',\n\t\t\t\t'f59' => '62',\n\t\t\t\t'f60' => '53',\n\t\t\t\t'f61' => '51',\n\t\t\t\t'f62' => '59',\n\t\t\t\t'f63' => '60',\n\t\t\t\t'f64' => '50',\n\t\t\t\t'f65' => '68',\n\t\t\t\t'f66' => '48',\n\t\t\t\t'f67' => '49',\n\t\t\t\t'f68' => '54',\n\t\t\t\t'f69' => '44',\n\t\t\t\t'f70' => '33',\n\t\t\t\t'f71' => '38',\n\t\t\t\t'f72' => '35',\n\t\t\t\t'f73' => '28',\n\t\t\t\t'f74' => '43',\n\t\t\t\t'f75' => '32',\n\t\t\t\t'f76' => '24',\n\t\t\t\t'f77' => '33',\n\t\t\t\t'f78' => '27',\n\t\t\t\t'f79' => '17',\n\t\t\t\t'f80' => '26',\n\t\t\t\t'f81' => '26',\n\t\t\t\t'f82' => '22',\n\t\t\t\t'f83' => '21',\n\t\t\t\t'f84' => '19',\n\t\t\t\t'f85' => '16',\n\t\t\t\t'f86' => '14',\n\t\t\t\t'f87' => '16',\n\t\t\t\t'f88' => '5',\n\t\t\t\t'f89' => '14',\n\t\t\t\t'f90' => '39',\n\t\t\t),\n\t\t\t67 => \n\t\t\tarray (\n\t\t\t\t'id' => '68',\n\t\t\t\t'slug' => 'axholme-south',\n\t\t\t\t'seats' => '3',\n\t\t\t\t'body_id' => '4',\n\t\t\t\t'created_at' => '2015-01-20 12:24:46',\n\t\t\t\t'updated_at' => '2015-01-20 12:24:46',\n\t\t\t\t'ons_district_code' => 'E05001731',\n\t\t\t\t'ons_district_code_old' => '00FDMU',\n\t\t\t\t'name' => 'Axholme South',\n\t\t\t\t'ons_la_code' => 'E06000013',\n\t\t\t\t'body_name' => 'North Lincolnshire',\n\t\t\t\t'ons_constituency_code' => 'E14000596',\n\t\t\t\t'ons_constituency_code_old' => 'A67',\n\t\t\t\t'ons_constituency_name' => 'Brigg and Goole',\n\t\t\t\t'male_all_ages' => '3501',\n\t\t\t\t'm0' => '19',\n\t\t\t\t'm1' => '29',\n\t\t\t\t'm2' => '29',\n\t\t\t\t'm3' => '33',\n\t\t\t\t'm4' => '37',\n\t\t\t\t'm5' => '39',\n\t\t\t\t'm6' => '34',\n\t\t\t\t'm7' => '43',\n\t\t\t\t'm8' => '45',\n\t\t\t\t'm9' => '39',\n\t\t\t\t'm10' => '33',\n\t\t\t\t'm11' => '44',\n\t\t\t\t'm12' => '44',\n\t\t\t\t'm13' => '50',\n\t\t\t\t'm14' => '35',\n\t\t\t\t'm15' => '51',\n\t\t\t\t'm16' => '44',\n\t\t\t\t'm17' => '45',\n\t\t\t\t'm18' => '45',\n\t\t\t\t'm19' => '39',\n\t\t\t\t'm20' => '33',\n\t\t\t\t'm21' => '27',\n\t\t\t\t'm22' => '37',\n\t\t\t\t'm23' => '32',\n\t\t\t\t'm24' => '25',\n\t\t\t\t'm25' => '25',\n\t\t\t\t'm26' => '28',\n\t\t\t\t'm27' => '20',\n\t\t\t\t'm28' => '21',\n\t\t\t\t'm29' => '18',\n\t\t\t\t'm30' => '25',\n\t\t\t\t'm31' => '27',\n\t\t\t\t'm32' => '21',\n\t\t\t\t'm33' => '27',\n\t\t\t\t'm34' => '25',\n\t\t\t\t'm35' => '20',\n\t\t\t\t'm36' => '26',\n\t\t\t\t'm37' => '33',\n\t\t\t\t'm38' => '27',\n\t\t\t\t'm39' => '45',\n\t\t\t\t'm40' => '45',\n\t\t\t\t'm41' => '59',\n\t\t\t\t'm42' => '53',\n\t\t\t\t'm43' => '46',\n\t\t\t\t'm44' => '50',\n\t\t\t\t'm45' => '53',\n\t\t\t\t'm46' => '55',\n\t\t\t\t'm47' => '57',\n\t\t\t\t'm48' => '73',\n\t\t\t\t'm49' => '76',\n\t\t\t\t'm50' => '60',\n\t\t\t\t'm51' => '68',\n\t\t\t\t'm52' => '56',\n\t\t\t\t'm53' => '46',\n\t\t\t\t'm54' => '52',\n\t\t\t\t'm55' => '45',\n\t\t\t\t'm56' => '53',\n\t\t\t\t'm57' => '51',\n\t\t\t\t'm58' => '64',\n\t\t\t\t'm59' => '46',\n\t\t\t\t'm60' => '51',\n\t\t\t\t'm61' => '54',\n\t\t\t\t'm62' => '51',\n\t\t\t\t'm63' => '46',\n\t\t\t\t'm64' => '63',\n\t\t\t\t'm65' => '76',\n\t\t\t\t'm66' => '73',\n\t\t\t\t'm67' => '44',\n\t\t\t\t'm68' => '49',\n\t\t\t\t'm69' => '62',\n\t\t\t\t'm70' => '49',\n\t\t\t\t'm71' => '45',\n\t\t\t\t'm72' => '33',\n\t\t\t\t'm73' => '36',\n\t\t\t\t'm74' => '34',\n\t\t\t\t'm75' => '26',\n\t\t\t\t'm76' => '33',\n\t\t\t\t'm77' => '29',\n\t\t\t\t'm78' => '33',\n\t\t\t\t'm79' => '21',\n\t\t\t\t'm80' => '39',\n\t\t\t\t'm81' => '19',\n\t\t\t\t'm82' => '12',\n\t\t\t\t'm83' => '16',\n\t\t\t\t'm84' => '13',\n\t\t\t\t'm85' => '15',\n\t\t\t\t'm86' => '12',\n\t\t\t\t'm87' => '11',\n\t\t\t\t'm88' => '5',\n\t\t\t\t'm89' => '3',\n\t\t\t\t'm90' => '21',\n\t\t\t\t'female_all_ages' => '3644',\n\t\t\t\t'f0' => '33',\n\t\t\t\t'f1' => '28',\n\t\t\t\t'f2' => '24',\n\t\t\t\t'f3' => '26',\n\t\t\t\t'f4' => '31',\n\t\t\t\t'f5' => '28',\n\t\t\t\t'f6' => '33',\n\t\t\t\t'f7' => '48',\n\t\t\t\t'f8' => '49',\n\t\t\t\t'f9' => '30',\n\t\t\t\t'f10' => '22',\n\t\t\t\t'f11' => '38',\n\t\t\t\t'f12' => '39',\n\t\t\t\t'f13' => '46',\n\t\t\t\t'f14' => '46',\n\t\t\t\t'f15' => '43',\n\t\t\t\t'f16' => '44',\n\t\t\t\t'f17' => '56',\n\t\t\t\t'f18' => '39',\n\t\t\t\t'f19' => '34',\n\t\t\t\t'f20' => '31',\n\t\t\t\t'f21' => '35',\n\t\t\t\t'f22' => '36',\n\t\t\t\t'f23' => '22',\n\t\t\t\t'f24' => '27',\n\t\t\t\t'f25' => '25',\n\t\t\t\t'f26' => '21',\n\t\t\t\t'f27' => '23',\n\t\t\t\t'f28' => '23',\n\t\t\t\t'f29' => '23',\n\t\t\t\t'f30' => '15',\n\t\t\t\t'f31' => '22',\n\t\t\t\t'f32' => '29',\n\t\t\t\t'f33' => '28',\n\t\t\t\t'f34' => '31',\n\t\t\t\t'f35' => '29',\n\t\t\t\t'f36' => '26',\n\t\t\t\t'f37' => '38',\n\t\t\t\t'f38' => '28',\n\t\t\t\t'f39' => '45',\n\t\t\t\t'f40' => '44',\n\t\t\t\t'f41' => '59',\n\t\t\t\t'f42' => '54',\n\t\t\t\t'f43' => '59',\n\t\t\t\t'f44' => '57',\n\t\t\t\t'f45' => '44',\n\t\t\t\t'f46' => '57',\n\t\t\t\t'f47' => '79',\n\t\t\t\t'f48' => '75',\n\t\t\t\t'f49' => '53',\n\t\t\t\t'f50' => '60',\n\t\t\t\t'f51' => '67',\n\t\t\t\t'f52' => '55',\n\t\t\t\t'f53' => '55',\n\t\t\t\t'f54' => '56',\n\t\t\t\t'f55' => '48',\n\t\t\t\t'f56' => '61',\n\t\t\t\t'f57' => '52',\n\t\t\t\t'f58' => '51',\n\t\t\t\t'f59' => '50',\n\t\t\t\t'f60' => '57',\n\t\t\t\t'f61' => '39',\n\t\t\t\t'f62' => '70',\n\t\t\t\t'f63' => '67',\n\t\t\t\t'f64' => '86',\n\t\t\t\t'f65' => '61',\n\t\t\t\t'f66' => '76',\n\t\t\t\t'f67' => '44',\n\t\t\t\t'f68' => '56',\n\t\t\t\t'f69' => '37',\n\t\t\t\t'f70' => '56',\n\t\t\t\t'f71' => '54',\n\t\t\t\t'f72' => '42',\n\t\t\t\t'f73' => '33',\n\t\t\t\t'f74' => '33',\n\t\t\t\t'f75' => '37',\n\t\t\t\t'f76' => '27',\n\t\t\t\t'f77' => '30',\n\t\t\t\t'f78' => '24',\n\t\t\t\t'f79' => '43',\n\t\t\t\t'f80' => '31',\n\t\t\t\t'f81' => '22',\n\t\t\t\t'f82' => '27',\n\t\t\t\t'f83' => '23',\n\t\t\t\t'f84' => '22',\n\t\t\t\t'f85' => '22',\n\t\t\t\t'f86' => '12',\n\t\t\t\t'f87' => '13',\n\t\t\t\t'f88' => '7',\n\t\t\t\t'f89' => '12',\n\t\t\t\t'f90' => '51',\n\t\t\t),\n\t\t\t68 => \n\t\t\tarray (\n\t\t\t\t'id' => '69',\n\t\t\t\t'slug' => 'barton',\n\t\t\t\t'seats' => '3',\n\t\t\t\t'body_id' => '4',\n\t\t\t\t'created_at' => '2015-01-20 12:24:46',\n\t\t\t\t'updated_at' => '2015-01-20 12:24:46',\n\t\t\t\t'ons_district_code' => 'E05001732',\n\t\t\t\t'ons_district_code_old' => '00FDMW',\n\t\t\t\t'name' => 'Barton',\n\t\t\t\t'ons_la_code' => 'E06000013',\n\t\t\t\t'body_name' => 'North Lincolnshire',\n\t\t\t\t'ons_constituency_code' => 'E14000643',\n\t\t\t\t'ons_constituency_code_old' => 'B15',\n\t\t\t\t'ons_constituency_name' => 'Cleethorpes',\n\t\t\t\t'male_all_ages' => '5492',\n\t\t\t\t'm0' => '63',\n\t\t\t\t'm1' => '68',\n\t\t\t\t'm2' => '63',\n\t\t\t\t'm3' => '79',\n\t\t\t\t'm4' => '67',\n\t\t\t\t'm5' => '67',\n\t\t\t\t'm6' => '62',\n\t\t\t\t'm7' => '81',\n\t\t\t\t'm8' => '60',\n\t\t\t\t'm9' => '66',\n\t\t\t\t'm10' => '55',\n\t\t\t\t'm11' => '60',\n\t\t\t\t'm12' => '80',\n\t\t\t\t'm13' => '83',\n\t\t\t\t'm14' => '61',\n\t\t\t\t'm15' => '66',\n\t\t\t\t'm16' => '64',\n\t\t\t\t'm17' => '71',\n\t\t\t\t'm18' => '73',\n\t\t\t\t'm19' => '58',\n\t\t\t\t'm20' => '58',\n\t\t\t\t'm21' => '56',\n\t\t\t\t'm22' => '59',\n\t\t\t\t'm23' => '61',\n\t\t\t\t'm24' => '53',\n\t\t\t\t'm25' => '63',\n\t\t\t\t'm26' => '46',\n\t\t\t\t'm27' => '61',\n\t\t\t\t'm28' => '59',\n\t\t\t\t'm29' => '59',\n\t\t\t\t'm30' => '55',\n\t\t\t\t'm31' => '63',\n\t\t\t\t'm32' => '60',\n\t\t\t\t'm33' => '67',\n\t\t\t\t'm34' => '68',\n\t\t\t\t'm35' => '62',\n\t\t\t\t'm36' => '50',\n\t\t\t\t'm37' => '63',\n\t\t\t\t'm38' => '55',\n\t\t\t\t'm39' => '70',\n\t\t\t\t'm40' => '74',\n\t\t\t\t'm41' => '84',\n\t\t\t\t'm42' => '83',\n\t\t\t\t'm43' => '81',\n\t\t\t\t'm44' => '105',\n\t\t\t\t'm45' => '66',\n\t\t\t\t'm46' => '79',\n\t\t\t\t'm47' => '74',\n\t\t\t\t'm48' => '76',\n\t\t\t\t'm49' => '100',\n\t\t\t\t'm50' => '75',\n\t\t\t\t'm51' => '85',\n\t\t\t\t'm52' => '86',\n\t\t\t\t'm53' => '69',\n\t\t\t\t'm54' => '67',\n\t\t\t\t'm55' => '67',\n\t\t\t\t'm56' => '74',\n\t\t\t\t'm57' => '86',\n\t\t\t\t'm58' => '60',\n\t\t\t\t'm59' => '72',\n\t\t\t\t'm60' => '71',\n\t\t\t\t'm61' => '80',\n\t\t\t\t'm62' => '68',\n\t\t\t\t'm63' => '70',\n\t\t\t\t'm64' => '90',\n\t\t\t\t'm65' => '75',\n\t\t\t\t'm66' => '93',\n\t\t\t\t'm67' => '52',\n\t\t\t\t'm68' => '59',\n\t\t\t\t'm69' => '68',\n\t\t\t\t'm70' => '47',\n\t\t\t\t'm71' => '57',\n\t\t\t\t'm72' => '37',\n\t\t\t\t'm73' => '60',\n\t\t\t\t'm74' => '45',\n\t\t\t\t'm75' => '54',\n\t\t\t\t'm76' => '43',\n\t\t\t\t'm77' => '47',\n\t\t\t\t'm78' => '39',\n\t\t\t\t'm79' => '29',\n\t\t\t\t'm80' => '27',\n\t\t\t\t'm81' => '22',\n\t\t\t\t'm82' => '28',\n\t\t\t\t'm83' => '21',\n\t\t\t\t'm84' => '24',\n\t\t\t\t'm85' => '17',\n\t\t\t\t'm86' => '14',\n\t\t\t\t'm87' => '8',\n\t\t\t\t'm88' => '11',\n\t\t\t\t'm89' => '5',\n\t\t\t\t'm90' => '33',\n\t\t\t\t'female_all_ages' => '5747',\n\t\t\t\t'f0' => '80',\n\t\t\t\t'f1' => '65',\n\t\t\t\t'f2' => '70',\n\t\t\t\t'f3' => '58',\n\t\t\t\t'f4' => '75',\n\t\t\t\t'f5' => '67',\n\t\t\t\t'f6' => '73',\n\t\t\t\t'f7' => '72',\n\t\t\t\t'f8' => '55',\n\t\t\t\t'f9' => '56',\n\t\t\t\t'f10' => '50',\n\t\t\t\t'f11' => '49',\n\t\t\t\t'f12' => '68',\n\t\t\t\t'f13' => '51',\n\t\t\t\t'f14' => '48',\n\t\t\t\t'f15' => '73',\n\t\t\t\t'f16' => '84',\n\t\t\t\t'f17' => '71',\n\t\t\t\t'f18' => '67',\n\t\t\t\t'f19' => '53',\n\t\t\t\t'f20' => '38',\n\t\t\t\t'f21' => '52',\n\t\t\t\t'f22' => '67',\n\t\t\t\t'f23' => '57',\n\t\t\t\t'f24' => '71',\n\t\t\t\t'f25' => '77',\n\t\t\t\t'f26' => '74',\n\t\t\t\t'f27' => '66',\n\t\t\t\t'f28' => '61',\n\t\t\t\t'f29' => '71',\n\t\t\t\t'f30' => '80',\n\t\t\t\t'f31' => '64',\n\t\t\t\t'f32' => '69',\n\t\t\t\t'f33' => '62',\n\t\t\t\t'f34' => '58',\n\t\t\t\t'f35' => '38',\n\t\t\t\t'f36' => '53',\n\t\t\t\t'f37' => '71',\n\t\t\t\t'f38' => '83',\n\t\t\t\t'f39' => '62',\n\t\t\t\t'f40' => '63',\n\t\t\t\t'f41' => '72',\n\t\t\t\t'f42' => '93',\n\t\t\t\t'f43' => '97',\n\t\t\t\t'f44' => '76',\n\t\t\t\t'f45' => '96',\n\t\t\t\t'f46' => '86',\n\t\t\t\t'f47' => '82',\n\t\t\t\t'f48' => '86',\n\t\t\t\t'f49' => '95',\n\t\t\t\t'f50' => '73',\n\t\t\t\t'f51' => '77',\n\t\t\t\t'f52' => '76',\n\t\t\t\t'f53' => '91',\n\t\t\t\t'f54' => '66',\n\t\t\t\t'f55' => '71',\n\t\t\t\t'f56' => '69',\n\t\t\t\t'f57' => '76',\n\t\t\t\t'f58' => '90',\n\t\t\t\t'f59' => '54',\n\t\t\t\t'f60' => '68',\n\t\t\t\t'f61' => '90',\n\t\t\t\t'f62' => '76',\n\t\t\t\t'f63' => '75',\n\t\t\t\t'f64' => '65',\n\t\t\t\t'f65' => '90',\n\t\t\t\t'f66' => '87',\n\t\t\t\t'f67' => '81',\n\t\t\t\t'f68' => '76',\n\t\t\t\t'f69' => '66',\n\t\t\t\t'f70' => '67',\n\t\t\t\t'f71' => '55',\n\t\t\t\t'f72' => '47',\n\t\t\t\t'f73' => '46',\n\t\t\t\t'f74' => '49',\n\t\t\t\t'f75' => '41',\n\t\t\t\t'f76' => '48',\n\t\t\t\t'f77' => '49',\n\t\t\t\t'f78' => '35',\n\t\t\t\t'f79' => '32',\n\t\t\t\t'f80' => '32',\n\t\t\t\t'f81' => '46',\n\t\t\t\t'f82' => '46',\n\t\t\t\t'f83' => '44',\n\t\t\t\t'f84' => '25',\n\t\t\t\t'f85' => '21',\n\t\t\t\t'f86' => '17',\n\t\t\t\t'f87' => '17',\n\t\t\t\t'f88' => '23',\n\t\t\t\t'f89' => '18',\n\t\t\t\t'f90' => '67',\n\t\t\t),\n\t\t\t69 => \n\t\t\tarray (\n\t\t\t\t'id' => '70',\n\t\t\t\t'slug' => 'bottesford',\n\t\t\t\t'seats' => '3',\n\t\t\t\t'body_id' => '4',\n\t\t\t\t'created_at' => '2015-01-20 12:24:46',\n\t\t\t\t'updated_at' => '2015-01-20 12:24:46',\n\t\t\t\t'ons_district_code' => 'E05001733',\n\t\t\t\t'ons_district_code_old' => '00FDMX',\n\t\t\t\t'name' => 'Bottesford',\n\t\t\t\t'ons_la_code' => 'E06000013',\n\t\t\t\t'body_name' => 'North Lincolnshire',\n\t\t\t\t'ons_constituency_code' => 'E14000914',\n\t\t\t\t'ons_constituency_code_old' => 'D88',\n\t\t\t\t'ons_constituency_name' => 'Scunthorpe',\n\t\t\t\t'male_all_ages' => '5334',\n\t\t\t\t'm0' => '41',\n\t\t\t\t'm1' => '46',\n\t\t\t\t'm2' => '40',\n\t\t\t\t'm3' => '54',\n\t\t\t\t'm4' => '53',\n\t\t\t\t'm5' => '47',\n\t\t\t\t'm6' => '54',\n\t\t\t\t'm7' => '64',\n\t\t\t\t'm8' => '56',\n\t\t\t\t'm9' => '54',\n\t\t\t\t'm10' => '49',\n\t\t\t\t'm11' => '40',\n\t\t\t\t'm12' => '65',\n\t\t\t\t'm13' => '60',\n\t\t\t\t'm14' => '49',\n\t\t\t\t'm15' => '51',\n\t\t\t\t'm16' => '55',\n\t\t\t\t'm17' => '58',\n\t\t\t\t'm18' => '60',\n\t\t\t\t'm19' => '47',\n\t\t\t\t'm20' => '40',\n\t\t\t\t'm21' => '40',\n\t\t\t\t'm22' => '46',\n\t\t\t\t'm23' => '41',\n\t\t\t\t'm24' => '51',\n\t\t\t\t'm25' => '63',\n\t\t\t\t'm26' => '47',\n\t\t\t\t'm27' => '52',\n\t\t\t\t'm28' => '57',\n\t\t\t\t'm29' => '52',\n\t\t\t\t'm30' => '50',\n\t\t\t\t'm31' => '48',\n\t\t\t\t'm32' => '53',\n\t\t\t\t'm33' => '62',\n\t\t\t\t'm34' => '65',\n\t\t\t\t'm35' => '57',\n\t\t\t\t'm36' => '54',\n\t\t\t\t'm37' => '49',\n\t\t\t\t'm38' => '58',\n\t\t\t\t'm39' => '71',\n\t\t\t\t'm40' => '56',\n\t\t\t\t'm41' => '68',\n\t\t\t\t'm42' => '70',\n\t\t\t\t'm43' => '72',\n\t\t\t\t'm44' => '88',\n\t\t\t\t'm45' => '69',\n\t\t\t\t'm46' => '75',\n\t\t\t\t'm47' => '78',\n\t\t\t\t'm48' => '65',\n\t\t\t\t'm49' => '73',\n\t\t\t\t'm50' => '90',\n\t\t\t\t'm51' => '76',\n\t\t\t\t'm52' => '74',\n\t\t\t\t'm53' => '78',\n\t\t\t\t'm54' => '70',\n\t\t\t\t'm55' => '93',\n\t\t\t\t'm56' => '85',\n\t\t\t\t'm57' => '66',\n\t\t\t\t'm58' => '66',\n\t\t\t\t'm59' => '80',\n\t\t\t\t'm60' => '94',\n\t\t\t\t'm61' => '78',\n\t\t\t\t'm62' => '88',\n\t\t\t\t'm63' => '96',\n\t\t\t\t'm64' => '74',\n\t\t\t\t'm65' => '106',\n\t\t\t\t'm66' => '105',\n\t\t\t\t'm67' => '84',\n\t\t\t\t'm68' => '72',\n\t\t\t\t'm69' => '81',\n\t\t\t\t'm70' => '78',\n\t\t\t\t'm71' => '54',\n\t\t\t\t'm72' => '48',\n\t\t\t\t'm73' => '64',\n\t\t\t\t'm74' => '60',\n\t\t\t\t'm75' => '61',\n\t\t\t\t'm76' => '59',\n\t\t\t\t'm77' => '55',\n\t\t\t\t'm78' => '55',\n\t\t\t\t'm79' => '42',\n\t\t\t\t'm80' => '39',\n\t\t\t\t'm81' => '36',\n\t\t\t\t'm82' => '42',\n\t\t\t\t'm83' => '31',\n\t\t\t\t'm84' => '31',\n\t\t\t\t'm85' => '21',\n\t\t\t\t'm86' => '18',\n\t\t\t\t'm87' => '16',\n\t\t\t\t'm88' => '15',\n\t\t\t\t'm89' => '14',\n\t\t\t\t'm90' => '26',\n\t\t\t\t'female_all_ages' => '5521',\n\t\t\t\t'f0' => '47',\n\t\t\t\t'f1' => '50',\n\t\t\t\t'f2' => '35',\n\t\t\t\t'f3' => '44',\n\t\t\t\t'f4' => '44',\n\t\t\t\t'f5' => '51',\n\t\t\t\t'f6' => '39',\n\t\t\t\t'f7' => '55',\n\t\t\t\t'f8' => '43',\n\t\t\t\t'f9' => '50',\n\t\t\t\t'f10' => '47',\n\t\t\t\t'f11' => '49',\n\t\t\t\t'f12' => '55',\n\t\t\t\t'f13' => '59',\n\t\t\t\t'f14' => '44',\n\t\t\t\t'f15' => '49',\n\t\t\t\t'f16' => '63',\n\t\t\t\t'f17' => '59',\n\t\t\t\t'f18' => '58',\n\t\t\t\t'f19' => '32',\n\t\t\t\t'f20' => '38',\n\t\t\t\t'f21' => '46',\n\t\t\t\t'f22' => '49',\n\t\t\t\t'f23' => '39',\n\t\t\t\t'f24' => '45',\n\t\t\t\t'f25' => '47',\n\t\t\t\t'f26' => '63',\n\t\t\t\t'f27' => '45',\n\t\t\t\t'f28' => '49',\n\t\t\t\t'f29' => '57',\n\t\t\t\t'f30' => '41',\n\t\t\t\t'f31' => '53',\n\t\t\t\t'f32' => '54',\n\t\t\t\t'f33' => '48',\n\t\t\t\t'f34' => '62',\n\t\t\t\t'f35' => '55',\n\t\t\t\t'f36' => '46',\n\t\t\t\t'f37' => '53',\n\t\t\t\t'f38' => '69',\n\t\t\t\t'f39' => '58',\n\t\t\t\t'f40' => '51',\n\t\t\t\t'f41' => '76',\n\t\t\t\t'f42' => '64',\n\t\t\t\t'f43' => '81',\n\t\t\t\t'f44' => '83',\n\t\t\t\t'f45' => '87',\n\t\t\t\t'f46' => '73',\n\t\t\t\t'f47' => '78',\n\t\t\t\t'f48' => '75',\n\t\t\t\t'f49' => '88',\n\t\t\t\t'f50' => '79',\n\t\t\t\t'f51' => '73',\n\t\t\t\t'f52' => '115',\n\t\t\t\t'f53' => '72',\n\t\t\t\t'f54' => '73',\n\t\t\t\t'f55' => '68',\n\t\t\t\t'f56' => '83',\n\t\t\t\t'f57' => '80',\n\t\t\t\t'f58' => '80',\n\t\t\t\t'f59' => '96',\n\t\t\t\t'f60' => '90',\n\t\t\t\t'f61' => '105',\n\t\t\t\t'f62' => '104',\n\t\t\t\t'f63' => '79',\n\t\t\t\t'f64' => '86',\n\t\t\t\t'f65' => '106',\n\t\t\t\t'f66' => '92',\n\t\t\t\t'f67' => '76',\n\t\t\t\t'f68' => '87',\n\t\t\t\t'f69' => '93',\n\t\t\t\t'f70' => '71',\n\t\t\t\t'f71' => '89',\n\t\t\t\t'f72' => '81',\n\t\t\t\t'f73' => '71',\n\t\t\t\t'f74' => '74',\n\t\t\t\t'f75' => '49',\n\t\t\t\t'f76' => '61',\n\t\t\t\t'f77' => '38',\n\t\t\t\t'f78' => '67',\n\t\t\t\t'f79' => '39',\n\t\t\t\t'f80' => '47',\n\t\t\t\t'f81' => '63',\n\t\t\t\t'f82' => '27',\n\t\t\t\t'f83' => '40',\n\t\t\t\t'f84' => '43',\n\t\t\t\t'f85' => '29',\n\t\t\t\t'f86' => '23',\n\t\t\t\t'f87' => '30',\n\t\t\t\t'f88' => '15',\n\t\t\t\t'f89' => '16',\n\t\t\t\t'f90' => '65',\n\t\t\t),\n\t\t\t70 => \n\t\t\tarray (\n\t\t\t\t'id' => '71',\n\t\t\t\t'slug' => 'brigg-and-wolds',\n\t\t\t\t'seats' => '3',\n\t\t\t\t'body_id' => '4',\n\t\t\t\t'created_at' => '2015-01-20 12:24:46',\n\t\t\t\t'updated_at' => '2015-01-20 12:24:46',\n\t\t\t\t'ons_district_code' => 'E05001734',\n\t\t\t\t'ons_district_code_old' => '00FDMY',\n\t\t\t\t'name' => 'Brigg and Wolds',\n\t\t\t\t'ons_la_code' => 'E06000013',\n\t\t\t\t'body_name' => 'North Lincolnshire',\n\t\t\t\t'ons_constituency_code' => 'E14000596',\n\t\t\t\t'ons_constituency_code_old' => 'A67',\n\t\t\t\t'ons_constituency_name' => 'Brigg and Goole',\n\t\t\t\t'male_all_ages' => '5691',\n\t\t\t\t'm0' => '41',\n\t\t\t\t'm1' => '64',\n\t\t\t\t'm2' => '51',\n\t\t\t\t'm3' => '73',\n\t\t\t\t'm4' => '63',\n\t\t\t\t'm5' => '68',\n\t\t\t\t'm6' => '64',\n\t\t\t\t'm7' => '60',\n\t\t\t\t'm8' => '70',\n\t\t\t\t'm9' => '68',\n\t\t\t\t'm10' => '56',\n\t\t\t\t'm11' => '56',\n\t\t\t\t'm12' => '53',\n\t\t\t\t'm13' => '67',\n\t\t\t\t'm14' => '63',\n\t\t\t\t'm15' => '80',\n\t\t\t\t'm16' => '54',\n\t\t\t\t'm17' => '48',\n\t\t\t\t'm18' => '63',\n\t\t\t\t'm19' => '52',\n\t\t\t\t'm20' => '60',\n\t\t\t\t'm21' => '56',\n\t\t\t\t'm22' => '64',\n\t\t\t\t'm23' => '56',\n\t\t\t\t'm24' => '56',\n\t\t\t\t'm25' => '50',\n\t\t\t\t'm26' => '53',\n\t\t\t\t'm27' => '67',\n\t\t\t\t'm28' => '67',\n\t\t\t\t'm29' => '47',\n\t\t\t\t'm30' => '53',\n\t\t\t\t'm31' => '47',\n\t\t\t\t'm32' => '44',\n\t\t\t\t'm33' => '51',\n\t\t\t\t'm34' => '53',\n\t\t\t\t'm35' => '54',\n\t\t\t\t'm36' => '51',\n\t\t\t\t'm37' => '51',\n\t\t\t\t'm38' => '63',\n\t\t\t\t'm39' => '66',\n\t\t\t\t'm40' => '66',\n\t\t\t\t'm41' => '85',\n\t\t\t\t'm42' => '79',\n\t\t\t\t'm43' => '73',\n\t\t\t\t'm44' => '77',\n\t\t\t\t'm45' => '92',\n\t\t\t\t'm46' => '83',\n\t\t\t\t'm47' => '97',\n\t\t\t\t'm48' => '93',\n\t\t\t\t'm49' => '104',\n\t\t\t\t'm50' => '109',\n\t\t\t\t'm51' => '107',\n\t\t\t\t'm52' => '85',\n\t\t\t\t'm53' => '94',\n\t\t\t\t'm54' => '75',\n\t\t\t\t'm55' => '74',\n\t\t\t\t'm56' => '88',\n\t\t\t\t'm57' => '94',\n\t\t\t\t'm58' => '79',\n\t\t\t\t'm59' => '79',\n\t\t\t\t'm60' => '84',\n\t\t\t\t'm61' => '92',\n\t\t\t\t'm62' => '87',\n\t\t\t\t'm63' => '86',\n\t\t\t\t'm64' => '81',\n\t\t\t\t'm65' => '113',\n\t\t\t\t'm66' => '111',\n\t\t\t\t'm67' => '85',\n\t\t\t\t'm68' => '72',\n\t\t\t\t'm69' => '79',\n\t\t\t\t'm70' => '60',\n\t\t\t\t'm71' => '63',\n\t\t\t\t'm72' => '64',\n\t\t\t\t'm73' => '59',\n\t\t\t\t'm74' => '54',\n\t\t\t\t'm75' => '55',\n\t\t\t\t'm76' => '31',\n\t\t\t\t'm77' => '47',\n\t\t\t\t'm78' => '48',\n\t\t\t\t'm79' => '29',\n\t\t\t\t'm80' => '21',\n\t\t\t\t'm81' => '29',\n\t\t\t\t'm82' => '31',\n\t\t\t\t'm83' => '29',\n\t\t\t\t'm84' => '24',\n\t\t\t\t'm85' => '18',\n\t\t\t\t'm86' => '23',\n\t\t\t\t'm87' => '8',\n\t\t\t\t'm88' => '5',\n\t\t\t\t'm89' => '8',\n\t\t\t\t'm90' => '39',\n\t\t\t\t'female_all_ages' => '5892',\n\t\t\t\t'f0' => '50',\n\t\t\t\t'f1' => '54',\n\t\t\t\t'f2' => '59',\n\t\t\t\t'f3' => '63',\n\t\t\t\t'f4' => '58',\n\t\t\t\t'f5' => '73',\n\t\t\t\t'f6' => '66',\n\t\t\t\t'f7' => '72',\n\t\t\t\t'f8' => '73',\n\t\t\t\t'f9' => '44',\n\t\t\t\t'f10' => '67',\n\t\t\t\t'f11' => '46',\n\t\t\t\t'f12' => '61',\n\t\t\t\t'f13' => '49',\n\t\t\t\t'f14' => '65',\n\t\t\t\t'f15' => '73',\n\t\t\t\t'f16' => '74',\n\t\t\t\t'f17' => '70',\n\t\t\t\t'f18' => '66',\n\t\t\t\t'f19' => '42',\n\t\t\t\t'f20' => '44',\n\t\t\t\t'f21' => '52',\n\t\t\t\t'f22' => '55',\n\t\t\t\t'f23' => '43',\n\t\t\t\t'f24' => '58',\n\t\t\t\t'f25' => '57',\n\t\t\t\t'f26' => '62',\n\t\t\t\t'f27' => '69',\n\t\t\t\t'f28' => '60',\n\t\t\t\t'f29' => '46',\n\t\t\t\t'f30' => '68',\n\t\t\t\t'f31' => '60',\n\t\t\t\t'f32' => '53',\n\t\t\t\t'f33' => '73',\n\t\t\t\t'f34' => '56',\n\t\t\t\t'f35' => '42',\n\t\t\t\t'f36' => '51',\n\t\t\t\t'f37' => '72',\n\t\t\t\t'f38' => '73',\n\t\t\t\t'f39' => '75',\n\t\t\t\t'f40' => '78',\n\t\t\t\t'f41' => '85',\n\t\t\t\t'f42' => '81',\n\t\t\t\t'f43' => '91',\n\t\t\t\t'f44' => '80',\n\t\t\t\t'f45' => '88',\n\t\t\t\t'f46' => '85',\n\t\t\t\t'f47' => '83',\n\t\t\t\t'f48' => '100',\n\t\t\t\t'f49' => '100',\n\t\t\t\t'f50' => '80',\n\t\t\t\t'f51' => '78',\n\t\t\t\t'f52' => '77',\n\t\t\t\t'f53' => '90',\n\t\t\t\t'f54' => '95',\n\t\t\t\t'f55' => '103',\n\t\t\t\t'f56' => '83',\n\t\t\t\t'f57' => '85',\n\t\t\t\t'f58' => '77',\n\t\t\t\t'f59' => '99',\n\t\t\t\t'f60' => '83',\n\t\t\t\t'f61' => '70',\n\t\t\t\t'f62' => '72',\n\t\t\t\t'f63' => '88',\n\t\t\t\t'f64' => '88',\n\t\t\t\t'f65' => '85',\n\t\t\t\t'f66' => '102',\n\t\t\t\t'f67' => '64',\n\t\t\t\t'f68' => '68',\n\t\t\t\t'f69' => '70',\n\t\t\t\t'f70' => '63',\n\t\t\t\t'f71' => '61',\n\t\t\t\t'f72' => '55',\n\t\t\t\t'f73' => '63',\n\t\t\t\t'f74' => '54',\n\t\t\t\t'f75' => '46',\n\t\t\t\t'f76' => '56',\n\t\t\t\t'f77' => '39',\n\t\t\t\t'f78' => '50',\n\t\t\t\t'f79' => '45',\n\t\t\t\t'f80' => '43',\n\t\t\t\t'f81' => '43',\n\t\t\t\t'f82' => '45',\n\t\t\t\t'f83' => '27',\n\t\t\t\t'f84' => '45',\n\t\t\t\t'f85' => '29',\n\t\t\t\t'f86' => '28',\n\t\t\t\t'f87' => '15',\n\t\t\t\t'f88' => '23',\n\t\t\t\t'f89' => '25',\n\t\t\t\t'f90' => '115',\n\t\t\t),\n\t\t\t71 => \n\t\t\tarray (\n\t\t\t\t'id' => '72',\n\t\t\t\t'slug' => 'broughton-and-appleby',\n\t\t\t\t'seats' => '3',\n\t\t\t\t'body_id' => '4',\n\t\t\t\t'created_at' => '2015-01-20 12:24:46',\n\t\t\t\t'updated_at' => '2015-01-20 12:24:46',\n\t\t\t\t'ons_district_code' => 'E05001735',\n\t\t\t\t'ons_district_code_old' => '00FDMZ',\n\t\t\t\t'name' => 'Broughton and Appleby',\n\t\t\t\t'ons_la_code' => 'E06000013',\n\t\t\t\t'body_name' => 'North Lincolnshire',\n\t\t\t\t'ons_constituency_code' => 'E14000596',\n\t\t\t\t'ons_constituency_code_old' => 'A67',\n\t\t\t\t'ons_constituency_name' => 'Brigg and Goole',\n\t\t\t\t'male_all_ages' => '3276',\n\t\t\t\t'm0' => '30',\n\t\t\t\t'm1' => '31',\n\t\t\t\t'm2' => '28',\n\t\t\t\t'm3' => '29',\n\t\t\t\t'm4' => '25',\n\t\t\t\t'm5' => '35',\n\t\t\t\t'm6' => '38',\n\t\t\t\t'm7' => '35',\n\t\t\t\t'm8' => '37',\n\t\t\t\t'm9' => '34',\n\t\t\t\t'm10' => '39',\n\t\t\t\t'm11' => '42',\n\t\t\t\t'm12' => '36',\n\t\t\t\t'm13' => '32',\n\t\t\t\t'm14' => '42',\n\t\t\t\t'm15' => '24',\n\t\t\t\t'm16' => '36',\n\t\t\t\t'm17' => '43',\n\t\t\t\t'm18' => '50',\n\t\t\t\t'm19' => '28',\n\t\t\t\t'm20' => '37',\n\t\t\t\t'm21' => '36',\n\t\t\t\t'm22' => '46',\n\t\t\t\t'm23' => '44',\n\t\t\t\t'm24' => '38',\n\t\t\t\t'm25' => '40',\n\t\t\t\t'm26' => '41',\n\t\t\t\t'm27' => '40',\n\t\t\t\t'm28' => '53',\n\t\t\t\t'm29' => '42',\n\t\t\t\t'm30' => '34',\n\t\t\t\t'm31' => '32',\n\t\t\t\t'm32' => '32',\n\t\t\t\t'm33' => '31',\n\t\t\t\t'm34' => '32',\n\t\t\t\t'm35' => '34',\n\t\t\t\t'm36' => '28',\n\t\t\t\t'm37' => '25',\n\t\t\t\t'm38' => '37',\n\t\t\t\t'm39' => '41',\n\t\t\t\t'm40' => '38',\n\t\t\t\t'm41' => '52',\n\t\t\t\t'm42' => '46',\n\t\t\t\t'm43' => '44',\n\t\t\t\t'm44' => '59',\n\t\t\t\t'm45' => '52',\n\t\t\t\t'm46' => '60',\n\t\t\t\t'm47' => '46',\n\t\t\t\t'm48' => '62',\n\t\t\t\t'm49' => '49',\n\t\t\t\t'm50' => '54',\n\t\t\t\t'm51' => '49',\n\t\t\t\t'm52' => '48',\n\t\t\t\t'm53' => '63',\n\t\t\t\t'm54' => '41',\n\t\t\t\t'm55' => '61',\n\t\t\t\t'm56' => '39',\n\t\t\t\t'm57' => '52',\n\t\t\t\t'm58' => '48',\n\t\t\t\t'm59' => '34',\n\t\t\t\t'm60' => '48',\n\t\t\t\t'm61' => '43',\n\t\t\t\t'm62' => '42',\n\t\t\t\t'm63' => '43',\n\t\t\t\t'm64' => '52',\n\t\t\t\t'm65' => '56',\n\t\t\t\t'm66' => '55',\n\t\t\t\t'm67' => '38',\n\t\t\t\t'm68' => '33',\n\t\t\t\t'm69' => '48',\n\t\t\t\t'm70' => '38',\n\t\t\t\t'm71' => '41',\n\t\t\t\t'm72' => '21',\n\t\t\t\t'm73' => '26',\n\t\t\t\t'm74' => '31',\n\t\t\t\t'm75' => '16',\n\t\t\t\t'm76' => '19',\n\t\t\t\t'm77' => '25',\n\t\t\t\t'm78' => '20',\n\t\t\t\t'm79' => '20',\n\t\t\t\t'm80' => '13',\n\t\t\t\t'm81' => '16',\n\t\t\t\t'm82' => '18',\n\t\t\t\t'm83' => '11',\n\t\t\t\t'm84' => '18',\n\t\t\t\t'm85' => '9',\n\t\t\t\t'm86' => '12',\n\t\t\t\t'm87' => '7',\n\t\t\t\t'm88' => '9',\n\t\t\t\t'm89' => '4',\n\t\t\t\t'm90' => '10',\n\t\t\t\t'female_all_ages' => '3468',\n\t\t\t\t'f0' => '35',\n\t\t\t\t'f1' => '30',\n\t\t\t\t'f2' => '39',\n\t\t\t\t'f3' => '24',\n\t\t\t\t'f4' => '30',\n\t\t\t\t'f5' => '41',\n\t\t\t\t'f6' => '28',\n\t\t\t\t'f7' => '32',\n\t\t\t\t'f8' => '36',\n\t\t\t\t'f9' => '51',\n\t\t\t\t'f10' => '32',\n\t\t\t\t'f11' => '38',\n\t\t\t\t'f12' => '37',\n\t\t\t\t'f13' => '34',\n\t\t\t\t'f14' => '45',\n\t\t\t\t'f15' => '41',\n\t\t\t\t'f16' => '39',\n\t\t\t\t'f17' => '38',\n\t\t\t\t'f18' => '38',\n\t\t\t\t'f19' => '34',\n\t\t\t\t'f20' => '23',\n\t\t\t\t'f21' => '38',\n\t\t\t\t'f22' => '29',\n\t\t\t\t'f23' => '45',\n\t\t\t\t'f24' => '38',\n\t\t\t\t'f25' => '39',\n\t\t\t\t'f26' => '42',\n\t\t\t\t'f27' => '36',\n\t\t\t\t'f28' => '33',\n\t\t\t\t'f29' => '43',\n\t\t\t\t'f30' => '27',\n\t\t\t\t'f31' => '28',\n\t\t\t\t'f32' => '37',\n\t\t\t\t'f33' => '27',\n\t\t\t\t'f34' => '40',\n\t\t\t\t'f35' => '30',\n\t\t\t\t'f36' => '33',\n\t\t\t\t'f37' => '31',\n\t\t\t\t'f38' => '39',\n\t\t\t\t'f39' => '37',\n\t\t\t\t'f40' => '43',\n\t\t\t\t'f41' => '48',\n\t\t\t\t'f42' => '42',\n\t\t\t\t'f43' => '54',\n\t\t\t\t'f44' => '52',\n\t\t\t\t'f45' => '66',\n\t\t\t\t'f46' => '68',\n\t\t\t\t'f47' => '61',\n\t\t\t\t'f48' => '50',\n\t\t\t\t'f49' => '52',\n\t\t\t\t'f50' => '58',\n\t\t\t\t'f51' => '54',\n\t\t\t\t'f52' => '45',\n\t\t\t\t'f53' => '64',\n\t\t\t\t'f54' => '48',\n\t\t\t\t'f55' => '56',\n\t\t\t\t'f56' => '52',\n\t\t\t\t'f57' => '47',\n\t\t\t\t'f58' => '44',\n\t\t\t\t'f59' => '37',\n\t\t\t\t'f60' => '42',\n\t\t\t\t'f61' => '28',\n\t\t\t\t'f62' => '41',\n\t\t\t\t'f63' => '39',\n\t\t\t\t'f64' => '39',\n\t\t\t\t'f65' => '43',\n\t\t\t\t'f66' => '49',\n\t\t\t\t'f67' => '50',\n\t\t\t\t'f68' => '41',\n\t\t\t\t'f69' => '46',\n\t\t\t\t'f70' => '39',\n\t\t\t\t'f71' => '45',\n\t\t\t\t'f72' => '26',\n\t\t\t\t'f73' => '36',\n\t\t\t\t'f74' => '42',\n\t\t\t\t'f75' => '30',\n\t\t\t\t'f76' => '31',\n\t\t\t\t'f77' => '23',\n\t\t\t\t'f78' => '26',\n\t\t\t\t'f79' => '27',\n\t\t\t\t'f80' => '38',\n\t\t\t\t'f81' => '29',\n\t\t\t\t'f82' => '30',\n\t\t\t\t'f83' => '11',\n\t\t\t\t'f84' => '22',\n\t\t\t\t'f85' => '25',\n\t\t\t\t'f86' => '11',\n\t\t\t\t'f87' => '17',\n\t\t\t\t'f88' => '18',\n\t\t\t\t'f89' => '21',\n\t\t\t\t'f90' => '45',\n\t\t\t),\n\t\t\t72 => \n\t\t\tarray (\n\t\t\t\t'id' => '73',\n\t\t\t\t'slug' => 'brumby',\n\t\t\t\t'seats' => '3',\n\t\t\t\t'body_id' => '4',\n\t\t\t\t'created_at' => '2015-01-20 12:24:46',\n\t\t\t\t'updated_at' => '2015-01-20 12:24:46',\n\t\t\t\t'ons_district_code' => 'E05001736',\n\t\t\t\t'ons_district_code_old' => '00FDNA',\n\t\t\t\t'name' => 'Brumby',\n\t\t\t\t'ons_la_code' => 'E06000013',\n\t\t\t\t'body_name' => 'North Lincolnshire',\n\t\t\t\t'ons_constituency_code' => 'E14000914',\n\t\t\t\t'ons_constituency_code_old' => 'D88',\n\t\t\t\t'ons_constituency_name' => 'Scunthorpe',\n\t\t\t\t'male_all_ages' => '5770',\n\t\t\t\t'm0' => '104',\n\t\t\t\t'm1' => '95',\n\t\t\t\t'm2' => '82',\n\t\t\t\t'm3' => '88',\n\t\t\t\t'm4' => '107',\n\t\t\t\t'm5' => '95',\n\t\t\t\t'm6' => '107',\n\t\t\t\t'm7' => '91',\n\t\t\t\t'm8' => '75',\n\t\t\t\t'm9' => '81',\n\t\t\t\t'm10' => '78',\n\t\t\t\t'm11' => '83',\n\t\t\t\t'm12' => '80',\n\t\t\t\t'm13' => '68',\n\t\t\t\t'm14' => '57',\n\t\t\t\t'm15' => '78',\n\t\t\t\t'm16' => '91',\n\t\t\t\t'm17' => '89',\n\t\t\t\t'm18' => '92',\n\t\t\t\t'm19' => '80',\n\t\t\t\t'm20' => '80',\n\t\t\t\t'm21' => '82',\n\t\t\t\t'm22' => '87',\n\t\t\t\t'm23' => '61',\n\t\t\t\t'm24' => '84',\n\t\t\t\t'm25' => '69',\n\t\t\t\t'm26' => '76',\n\t\t\t\t'm27' => '91',\n\t\t\t\t'm28' => '78',\n\t\t\t\t'm29' => '76',\n\t\t\t\t'm30' => '66',\n\t\t\t\t'm31' => '72',\n\t\t\t\t'm32' => '66',\n\t\t\t\t'm33' => '73',\n\t\t\t\t'm34' => '65',\n\t\t\t\t'm35' => '59',\n\t\t\t\t'm36' => '70',\n\t\t\t\t'm37' => '53',\n\t\t\t\t'm38' => '44',\n\t\t\t\t'm39' => '56',\n\t\t\t\t'm40' => '67',\n\t\t\t\t'm41' => '69',\n\t\t\t\t'm42' => '78',\n\t\t\t\t'm43' => '55',\n\t\t\t\t'm44' => '83',\n\t\t\t\t'm45' => '81',\n\t\t\t\t'm46' => '84',\n\t\t\t\t'm47' => '79',\n\t\t\t\t'm48' => '94',\n\t\t\t\t'm49' => '74',\n\t\t\t\t'm50' => '81',\n\t\t\t\t'm51' => '87',\n\t\t\t\t'm52' => '84',\n\t\t\t\t'm53' => '74',\n\t\t\t\t'm54' => '60',\n\t\t\t\t'm55' => '64',\n\t\t\t\t'm56' => '86',\n\t\t\t\t'm57' => '72',\n\t\t\t\t'm58' => '72',\n\t\t\t\t'm59' => '52',\n\t\t\t\t'm60' => '63',\n\t\t\t\t'm61' => '55',\n\t\t\t\t'm62' => '69',\n\t\t\t\t'm63' => '67',\n\t\t\t\t'm64' => '65',\n\t\t\t\t'm65' => '66',\n\t\t\t\t'm66' => '63',\n\t\t\t\t'm67' => '51',\n\t\t\t\t'm68' => '55',\n\t\t\t\t'm69' => '47',\n\t\t\t\t'm70' => '42',\n\t\t\t\t'm71' => '47',\n\t\t\t\t'm72' => '55',\n\t\t\t\t'm73' => '31',\n\t\t\t\t'm74' => '27',\n\t\t\t\t'm75' => '42',\n\t\t\t\t'm76' => '37',\n\t\t\t\t'm77' => '43',\n\t\t\t\t'm78' => '32',\n\t\t\t\t'm79' => '25',\n\t\t\t\t'm80' => '22',\n\t\t\t\t'm81' => '19',\n\t\t\t\t'm82' => '13',\n\t\t\t\t'm83' => '23',\n\t\t\t\t'm84' => '26',\n\t\t\t\t'm85' => '13',\n\t\t\t\t'm86' => '7',\n\t\t\t\t'm87' => '8',\n\t\t\t\t'm88' => '10',\n\t\t\t\t'm89' => '8',\n\t\t\t\t'm90' => '14',\n\t\t\t\t'female_all_ages' => '6079',\n\t\t\t\t'f0' => '86',\n\t\t\t\t'f1' => '89',\n\t\t\t\t'f2' => '102',\n\t\t\t\t'f3' => '97',\n\t\t\t\t'f4' => '106',\n\t\t\t\t'f5' => '75',\n\t\t\t\t'f6' => '81',\n\t\t\t\t'f7' => '73',\n\t\t\t\t'f8' => '79',\n\t\t\t\t'f9' => '84',\n\t\t\t\t'f10' => '70',\n\t\t\t\t'f11' => '66',\n\t\t\t\t'f12' => '75',\n\t\t\t\t'f13' => '73',\n\t\t\t\t'f14' => '68',\n\t\t\t\t'f15' => '72',\n\t\t\t\t'f16' => '83',\n\t\t\t\t'f17' => '72',\n\t\t\t\t'f18' => '87',\n\t\t\t\t'f19' => '78',\n\t\t\t\t'f20' => '80',\n\t\t\t\t'f21' => '62',\n\t\t\t\t'f22' => '95',\n\t\t\t\t'f23' => '84',\n\t\t\t\t'f24' => '77',\n\t\t\t\t'f25' => '84',\n\t\t\t\t'f26' => '90',\n\t\t\t\t'f27' => '77',\n\t\t\t\t'f28' => '93',\n\t\t\t\t'f29' => '91',\n\t\t\t\t'f30' => '79',\n\t\t\t\t'f31' => '77',\n\t\t\t\t'f32' => '79',\n\t\t\t\t'f33' => '67',\n\t\t\t\t'f34' => '73',\n\t\t\t\t'f35' => '60',\n\t\t\t\t'f36' => '64',\n\t\t\t\t'f37' => '66',\n\t\t\t\t'f38' => '61',\n\t\t\t\t'f39' => '63',\n\t\t\t\t'f40' => '64',\n\t\t\t\t'f41' => '74',\n\t\t\t\t'f42' => '81',\n\t\t\t\t'f43' => '85',\n\t\t\t\t'f44' => '89',\n\t\t\t\t'f45' => '77',\n\t\t\t\t'f46' => '88',\n\t\t\t\t'f47' => '86',\n\t\t\t\t'f48' => '92',\n\t\t\t\t'f49' => '92',\n\t\t\t\t'f50' => '96',\n\t\t\t\t'f51' => '96',\n\t\t\t\t'f52' => '84',\n\t\t\t\t'f53' => '66',\n\t\t\t\t'f54' => '83',\n\t\t\t\t'f55' => '59',\n\t\t\t\t'f56' => '64',\n\t\t\t\t'f57' => '76',\n\t\t\t\t'f58' => '66',\n\t\t\t\t'f59' => '64',\n\t\t\t\t'f60' => '68',\n\t\t\t\t'f61' => '61',\n\t\t\t\t'f62' => '66',\n\t\t\t\t'f63' => '68',\n\t\t\t\t'f64' => '67',\n\t\t\t\t'f65' => '73',\n\t\t\t\t'f66' => '67',\n\t\t\t\t'f67' => '52',\n\t\t\t\t'f68' => '57',\n\t\t\t\t'f69' => '56',\n\t\t\t\t'f70' => '52',\n\t\t\t\t'f71' => '54',\n\t\t\t\t'f72' => '38',\n\t\t\t\t'f73' => '47',\n\t\t\t\t'f74' => '51',\n\t\t\t\t'f75' => '44',\n\t\t\t\t'f76' => '44',\n\t\t\t\t'f77' => '44',\n\t\t\t\t'f78' => '37',\n\t\t\t\t'f79' => '38',\n\t\t\t\t'f80' => '33',\n\t\t\t\t'f81' => '31',\n\t\t\t\t'f82' => '32',\n\t\t\t\t'f83' => '29',\n\t\t\t\t'f84' => '22',\n\t\t\t\t'f85' => '17',\n\t\t\t\t'f86' => '16',\n\t\t\t\t'f87' => '20',\n\t\t\t\t'f88' => '14',\n\t\t\t\t'f89' => '13',\n\t\t\t\t'f90' => '48',\n\t\t\t),\n\t\t\t73 => \n\t\t\tarray (\n\t\t\t\t'id' => '74',\n\t\t\t\t'slug' => 'burringham-and-gunness',\n\t\t\t\t'seats' => '3',\n\t\t\t\t'body_id' => '4',\n\t\t\t\t'created_at' => '2015-01-20 12:24:46',\n\t\t\t\t'updated_at' => '2015-01-20 12:24:46',\n\t\t\t\t'ons_district_code' => 'E05001737',\n\t\t\t\t'ons_district_code_old' => '00FDNB',\n\t\t\t\t'name' => 'Burringham and Gunness',\n\t\t\t\t'ons_la_code' => 'E06000013',\n\t\t\t\t'body_name' => 'North Lincolnshire',\n\t\t\t\t'ons_constituency_code' => 'E14000596',\n\t\t\t\t'ons_constituency_code_old' => 'A67',\n\t\t\t\t'ons_constituency_name' => 'Brigg and Goole',\n\t\t\t\t'male_all_ages' => '1861',\n\t\t\t\t'm0' => '18',\n\t\t\t\t'm1' => '22',\n\t\t\t\t'm2' => '23',\n\t\t\t\t'm3' => '27',\n\t\t\t\t'm4' => '19',\n\t\t\t\t'm5' => '14',\n\t\t\t\t'm6' => '18',\n\t\t\t\t'm7' => '8',\n\t\t\t\t'm8' => '19',\n\t\t\t\t'm9' => '15',\n\t\t\t\t'm10' => '11',\n\t\t\t\t'm11' => '11',\n\t\t\t\t'm12' => '12',\n\t\t\t\t'm13' => '20',\n\t\t\t\t'm14' => '13',\n\t\t\t\t'm15' => '14',\n\t\t\t\t'm16' => '17',\n\t\t\t\t'm17' => '16',\n\t\t\t\t'm18' => '10',\n\t\t\t\t'm19' => '19',\n\t\t\t\t'm20' => '20',\n\t\t\t\t'm21' => '23',\n\t\t\t\t'm22' => '27',\n\t\t\t\t'm23' => '15',\n\t\t\t\t'm24' => '18',\n\t\t\t\t'm25' => '25',\n\t\t\t\t'm26' => '10',\n\t\t\t\t'm27' => '21',\n\t\t\t\t'm28' => '40',\n\t\t\t\t'm29' => '20',\n\t\t\t\t'm30' => '26',\n\t\t\t\t'm31' => '23',\n\t\t\t\t'm32' => '28',\n\t\t\t\t'm33' => '19',\n\t\t\t\t'm34' => '18',\n\t\t\t\t'm35' => '10',\n\t\t\t\t'm36' => '16',\n\t\t\t\t'm37' => '17',\n\t\t\t\t'm38' => '16',\n\t\t\t\t'm39' => '14',\n\t\t\t\t'm40' => '29',\n\t\t\t\t'm41' => '21',\n\t\t\t\t'm42' => '25',\n\t\t\t\t'm43' => '34',\n\t\t\t\t'm44' => '26',\n\t\t\t\t'm45' => '25',\n\t\t\t\t'm46' => '26',\n\t\t\t\t'm47' => '31',\n\t\t\t\t'm48' => '21',\n\t\t\t\t'm49' => '27',\n\t\t\t\t'm50' => '22',\n\t\t\t\t'm51' => '26',\n\t\t\t\t'm52' => '21',\n\t\t\t\t'm53' => '27',\n\t\t\t\t'm54' => '25',\n\t\t\t\t'm55' => '31',\n\t\t\t\t'm56' => '20',\n\t\t\t\t'm57' => '35',\n\t\t\t\t'm58' => '25',\n\t\t\t\t'm59' => '21',\n\t\t\t\t'm60' => '24',\n\t\t\t\t'm61' => '23',\n\t\t\t\t'm62' => '27',\n\t\t\t\t'm63' => '23',\n\t\t\t\t'm64' => '30',\n\t\t\t\t'm65' => '37',\n\t\t\t\t'm66' => '33',\n\t\t\t\t'm67' => '34',\n\t\t\t\t'm68' => '24',\n\t\t\t\t'm69' => '23',\n\t\t\t\t'm70' => '26',\n\t\t\t\t'm71' => '23',\n\t\t\t\t'm72' => '18',\n\t\t\t\t'm73' => '23',\n\t\t\t\t'm74' => '30',\n\t\t\t\t'm75' => '32',\n\t\t\t\t'm76' => '20',\n\t\t\t\t'm77' => '21',\n\t\t\t\t'm78' => '16',\n\t\t\t\t'm79' => '15',\n\t\t\t\t'm80' => '20',\n\t\t\t\t'm81' => '8',\n\t\t\t\t'm82' => '8',\n\t\t\t\t'm83' => '13',\n\t\t\t\t'm84' => '11',\n\t\t\t\t'm85' => '9',\n\t\t\t\t'm86' => '8',\n\t\t\t\t'm87' => '6',\n\t\t\t\t'm88' => '4',\n\t\t\t\t'm89' => '8',\n\t\t\t\t'm90' => '14',\n\t\t\t\t'female_all_ages' => '1903',\n\t\t\t\t'f0' => '13',\n\t\t\t\t'f1' => '19',\n\t\t\t\t'f2' => '23',\n\t\t\t\t'f3' => '14',\n\t\t\t\t'f4' => '19',\n\t\t\t\t'f5' => '11',\n\t\t\t\t'f6' => '16',\n\t\t\t\t'f7' => '13',\n\t\t\t\t'f8' => '15',\n\t\t\t\t'f9' => '9',\n\t\t\t\t'f10' => '20',\n\t\t\t\t'f11' => '6',\n\t\t\t\t'f12' => '12',\n\t\t\t\t'f13' => '18',\n\t\t\t\t'f14' => '13',\n\t\t\t\t'f15' => '14',\n\t\t\t\t'f16' => '6',\n\t\t\t\t'f17' => '20',\n\t\t\t\t'f18' => '11',\n\t\t\t\t'f19' => '10',\n\t\t\t\t'f20' => '6',\n\t\t\t\t'f21' => '15',\n\t\t\t\t'f22' => '20',\n\t\t\t\t'f23' => '36',\n\t\t\t\t'f24' => '20',\n\t\t\t\t'f25' => '25',\n\t\t\t\t'f26' => '27',\n\t\t\t\t'f27' => '29',\n\t\t\t\t'f28' => '19',\n\t\t\t\t'f29' => '28',\n\t\t\t\t'f30' => '28',\n\t\t\t\t'f31' => '22',\n\t\t\t\t'f32' => '10',\n\t\t\t\t'f33' => '23',\n\t\t\t\t'f34' => '13',\n\t\t\t\t'f35' => '8',\n\t\t\t\t'f36' => '16',\n\t\t\t\t'f37' => '11',\n\t\t\t\t'f38' => '16',\n\t\t\t\t'f39' => '22',\n\t\t\t\t'f40' => '27',\n\t\t\t\t'f41' => '20',\n\t\t\t\t'f42' => '21',\n\t\t\t\t'f43' => '18',\n\t\t\t\t'f44' => '25',\n\t\t\t\t'f45' => '15',\n\t\t\t\t'f46' => '22',\n\t\t\t\t'f47' => '24',\n\t\t\t\t'f48' => '19',\n\t\t\t\t'f49' => '22',\n\t\t\t\t'f50' => '26',\n\t\t\t\t'f51' => '28',\n\t\t\t\t'f52' => '15',\n\t\t\t\t'f53' => '25',\n\t\t\t\t'f54' => '27',\n\t\t\t\t'f55' => '27',\n\t\t\t\t'f56' => '31',\n\t\t\t\t'f57' => '32',\n\t\t\t\t'f58' => '31',\n\t\t\t\t'f59' => '22',\n\t\t\t\t'f60' => '33',\n\t\t\t\t'f61' => '31',\n\t\t\t\t'f62' => '27',\n\t\t\t\t'f63' => '36',\n\t\t\t\t'f64' => '31',\n\t\t\t\t'f65' => '23',\n\t\t\t\t'f66' => '45',\n\t\t\t\t'f67' => '38',\n\t\t\t\t'f68' => '34',\n\t\t\t\t'f69' => '33',\n\t\t\t\t'f70' => '31',\n\t\t\t\t'f71' => '37',\n\t\t\t\t'f72' => '22',\n\t\t\t\t'f73' => '30',\n\t\t\t\t'f74' => '27',\n\t\t\t\t'f75' => '23',\n\t\t\t\t'f76' => '25',\n\t\t\t\t'f77' => '30',\n\t\t\t\t'f78' => '14',\n\t\t\t\t'f79' => '15',\n\t\t\t\t'f80' => '17',\n\t\t\t\t'f81' => '14',\n\t\t\t\t'f82' => '14',\n\t\t\t\t'f83' => '14',\n\t\t\t\t'f84' => '9',\n\t\t\t\t'f85' => '13',\n\t\t\t\t'f86' => '10',\n\t\t\t\t'f87' => '10',\n\t\t\t\t'f88' => '8',\n\t\t\t\t'f89' => '12',\n\t\t\t\t'f90' => '44',\n\t\t\t),\n\t\t\t74 => \n\t\t\tarray (\n\t\t\t\t'id' => '75',\n\t\t\t\t'slug' => 'burton-upon-stather-and-winterton',\n\t\t\t\t'seats' => '3',\n\t\t\t\t'body_id' => '4',\n\t\t\t\t'created_at' => '2015-01-20 12:24:46',\n\t\t\t\t'updated_at' => '2015-01-20 12:24:46',\n\t\t\t\t'ons_district_code' => 'E05001738',\n\t\t\t\t'ons_district_code_old' => '00FDNC',\n\t\t\t\t'name' => 'Burton upon Stather and Winterton',\n\t\t\t\t'ons_la_code' => 'E06000013',\n\t\t\t\t'body_name' => 'North Lincolnshire',\n\t\t\t\t'ons_constituency_code' => 'E14000596',\n\t\t\t\t'ons_constituency_code_old' => 'A67',\n\t\t\t\t'ons_constituency_name' => 'Brigg and Goole',\n\t\t\t\t'male_all_ages' => '5589',\n\t\t\t\t'm0' => '44',\n\t\t\t\t'm1' => '53',\n\t\t\t\t'm2' => '59',\n\t\t\t\t'm3' => '56',\n\t\t\t\t'm4' => '68',\n\t\t\t\t'm5' => '70',\n\t\t\t\t'm6' => '55',\n\t\t\t\t'm7' => '68',\n\t\t\t\t'm8' => '62',\n\t\t\t\t'm9' => '74',\n\t\t\t\t'm10' => '60',\n\t\t\t\t'm11' => '70',\n\t\t\t\t'm12' => '58',\n\t\t\t\t'm13' => '87',\n\t\t\t\t'm14' => '68',\n\t\t\t\t'm15' => '82',\n\t\t\t\t'm16' => '82',\n\t\t\t\t'm17' => '79',\n\t\t\t\t'm18' => '79',\n\t\t\t\t'm19' => '69',\n\t\t\t\t'm20' => '58',\n\t\t\t\t'm21' => '49',\n\t\t\t\t'm22' => '58',\n\t\t\t\t'm23' => '39',\n\t\t\t\t'm24' => '54',\n\t\t\t\t'm25' => '48',\n\t\t\t\t'm26' => '52',\n\t\t\t\t'm27' => '51',\n\t\t\t\t'm28' => '43',\n\t\t\t\t'm29' => '56',\n\t\t\t\t'm30' => '62',\n\t\t\t\t'm31' => '55',\n\t\t\t\t'm32' => '53',\n\t\t\t\t'm33' => '64',\n\t\t\t\t'm34' => '51',\n\t\t\t\t'm35' => '59',\n\t\t\t\t'm36' => '57',\n\t\t\t\t'm37' => '54',\n\t\t\t\t'm38' => '56',\n\t\t\t\t'm39' => '64',\n\t\t\t\t'm40' => '73',\n\t\t\t\t'm41' => '67',\n\t\t\t\t'm42' => '64',\n\t\t\t\t'm43' => '74',\n\t\t\t\t'm44' => '92',\n\t\t\t\t'm45' => '97',\n\t\t\t\t'm46' => '90',\n\t\t\t\t'm47' => '96',\n\t\t\t\t'm48' => '111',\n\t\t\t\t'm49' => '83',\n\t\t\t\t'm50' => '88',\n\t\t\t\t'm51' => '92',\n\t\t\t\t'm52' => '86',\n\t\t\t\t'm53' => '85',\n\t\t\t\t'm54' => '85',\n\t\t\t\t'm55' => '84',\n\t\t\t\t'm56' => '79',\n\t\t\t\t'm57' => '68',\n\t\t\t\t'm58' => '76',\n\t\t\t\t'm59' => '75',\n\t\t\t\t'm60' => '79',\n\t\t\t\t'm61' => '72',\n\t\t\t\t'm62' => '68',\n\t\t\t\t'm63' => '79',\n\t\t\t\t'm64' => '80',\n\t\t\t\t'm65' => '83',\n\t\t\t\t'm66' => '105',\n\t\t\t\t'm67' => '78',\n\t\t\t\t'm68' => '69',\n\t\t\t\t'm69' => '61',\n\t\t\t\t'm70' => '66',\n\t\t\t\t'm71' => '62',\n\t\t\t\t'm72' => '55',\n\t\t\t\t'm73' => '67',\n\t\t\t\t'm74' => '51',\n\t\t\t\t'm75' => '50',\n\t\t\t\t'm76' => '44',\n\t\t\t\t'm77' => '32',\n\t\t\t\t'm78' => '48',\n\t\t\t\t'm79' => '35',\n\t\t\t\t'm80' => '34',\n\t\t\t\t'm81' => '25',\n\t\t\t\t'm82' => '33',\n\t\t\t\t'm83' => '26',\n\t\t\t\t'm84' => '18',\n\t\t\t\t'm85' => '16',\n\t\t\t\t'm86' => '12',\n\t\t\t\t'm87' => '12',\n\t\t\t\t'm88' => '8',\n\t\t\t\t'm89' => '8',\n\t\t\t\t'm90' => '22',\n\t\t\t\t'female_all_ages' => '5732',\n\t\t\t\t'f0' => '64',\n\t\t\t\t'f1' => '60',\n\t\t\t\t'f2' => '70',\n\t\t\t\t'f3' => '57',\n\t\t\t\t'f4' => '76',\n\t\t\t\t'f5' => '52',\n\t\t\t\t'f6' => '46',\n\t\t\t\t'f7' => '68',\n\t\t\t\t'f8' => '49',\n\t\t\t\t'f9' => '57',\n\t\t\t\t'f10' => '69',\n\t\t\t\t'f11' => '47',\n\t\t\t\t'f12' => '48',\n\t\t\t\t'f13' => '59',\n\t\t\t\t'f14' => '63',\n\t\t\t\t'f15' => '59',\n\t\t\t\t'f16' => '65',\n\t\t\t\t'f17' => '76',\n\t\t\t\t'f18' => '53',\n\t\t\t\t'f19' => '50',\n\t\t\t\t'f20' => '48',\n\t\t\t\t'f21' => '49',\n\t\t\t\t'f22' => '49',\n\t\t\t\t'f23' => '48',\n\t\t\t\t'f24' => '58',\n\t\t\t\t'f25' => '48',\n\t\t\t\t'f26' => '55',\n\t\t\t\t'f27' => '51',\n\t\t\t\t'f28' => '55',\n\t\t\t\t'f29' => '62',\n\t\t\t\t'f30' => '53',\n\t\t\t\t'f31' => '46',\n\t\t\t\t'f32' => '60',\n\t\t\t\t'f33' => '58',\n\t\t\t\t'f34' => '63',\n\t\t\t\t'f35' => '36',\n\t\t\t\t'f36' => '58',\n\t\t\t\t'f37' => '60',\n\t\t\t\t'f38' => '64',\n\t\t\t\t'f39' => '74',\n\t\t\t\t'f40' => '73',\n\t\t\t\t'f41' => '79',\n\t\t\t\t'f42' => '101',\n\t\t\t\t'f43' => '96',\n\t\t\t\t'f44' => '89',\n\t\t\t\t'f45' => '102',\n\t\t\t\t'f46' => '102',\n\t\t\t\t'f47' => '86',\n\t\t\t\t'f48' => '92',\n\t\t\t\t'f49' => '85',\n\t\t\t\t'f50' => '93',\n\t\t\t\t'f51' => '88',\n\t\t\t\t'f52' => '90',\n\t\t\t\t'f53' => '72',\n\t\t\t\t'f54' => '85',\n\t\t\t\t'f55' => '100',\n\t\t\t\t'f56' => '73',\n\t\t\t\t'f57' => '84',\n\t\t\t\t'f58' => '76',\n\t\t\t\t'f59' => '75',\n\t\t\t\t'f60' => '81',\n\t\t\t\t'f61' => '91',\n\t\t\t\t'f62' => '74',\n\t\t\t\t'f63' => '70',\n\t\t\t\t'f64' => '98',\n\t\t\t\t'f65' => '95',\n\t\t\t\t'f66' => '84',\n\t\t\t\t'f67' => '73',\n\t\t\t\t'f68' => '83',\n\t\t\t\t'f69' => '73',\n\t\t\t\t'f70' => '76',\n\t\t\t\t'f71' => '57',\n\t\t\t\t'f72' => '60',\n\t\t\t\t'f73' => '58',\n\t\t\t\t'f74' => '50',\n\t\t\t\t'f75' => '45',\n\t\t\t\t'f76' => '57',\n\t\t\t\t'f77' => '44',\n\t\t\t\t'f78' => '40',\n\t\t\t\t'f79' => '51',\n\t\t\t\t'f80' => '34',\n\t\t\t\t'f81' => '40',\n\t\t\t\t'f82' => '28',\n\t\t\t\t'f83' => '36',\n\t\t\t\t'f84' => '26',\n\t\t\t\t'f85' => '41',\n\t\t\t\t'f86' => '22',\n\t\t\t\t'f87' => '20',\n\t\t\t\t'f88' => '21',\n\t\t\t\t'f89' => '20',\n\t\t\t\t'f90' => '60',\n\t\t\t),\n\t\t\t75 => \n\t\t\tarray (\n\t\t\t\t'id' => '76',\n\t\t\t\t'slug' => 'crosby-and-park',\n\t\t\t\t'seats' => '3',\n\t\t\t\t'body_id' => '4',\n\t\t\t\t'created_at' => '2015-01-20 12:24:46',\n\t\t\t\t'updated_at' => '2015-01-20 12:24:46',\n\t\t\t\t'ons_district_code' => 'E05001739',\n\t\t\t\t'ons_district_code_old' => '00FDND',\n\t\t\t\t'name' => 'Crosby and Park',\n\t\t\t\t'ons_la_code' => 'E06000013',\n\t\t\t\t'body_name' => 'North Lincolnshire',\n\t\t\t\t'ons_constituency_code' => 'E14000914',\n\t\t\t\t'ons_constituency_code_old' => 'D88',\n\t\t\t\t'ons_constituency_name' => 'Scunthorpe',\n\t\t\t\t'male_all_ages' => '6963',\n\t\t\t\t'm0' => '105',\n\t\t\t\t'm1' => '117',\n\t\t\t\t'm2' => '119',\n\t\t\t\t'm3' => '110',\n\t\t\t\t'm4' => '102',\n\t\t\t\t'm5' => '121',\n\t\t\t\t'm6' => '109',\n\t\t\t\t'm7' => '102',\n\t\t\t\t'm8' => '98',\n\t\t\t\t'm9' => '82',\n\t\t\t\t'm10' => '82',\n\t\t\t\t'm11' => '98',\n\t\t\t\t'm12' => '81',\n\t\t\t\t'm13' => '75',\n\t\t\t\t'm14' => '81',\n\t\t\t\t'm15' => '73',\n\t\t\t\t'm16' => '78',\n\t\t\t\t'm17' => '97',\n\t\t\t\t'm18' => '84',\n\t\t\t\t'm19' => '88',\n\t\t\t\t'm20' => '102',\n\t\t\t\t'm21' => '96',\n\t\t\t\t'm22' => '108',\n\t\t\t\t'm23' => '105',\n\t\t\t\t'm24' => '98',\n\t\t\t\t'm25' => '99',\n\t\t\t\t'm26' => '124',\n\t\t\t\t'm27' => '114',\n\t\t\t\t'm28' => '138',\n\t\t\t\t'm29' => '128',\n\t\t\t\t'm30' => '122',\n\t\t\t\t'm31' => '110',\n\t\t\t\t'm32' => '119',\n\t\t\t\t'm33' => '123',\n\t\t\t\t'm34' => '112',\n\t\t\t\t'm35' => '97',\n\t\t\t\t'm36' => '102',\n\t\t\t\t'm37' => '106',\n\t\t\t\t'm38' => '93',\n\t\t\t\t'm39' => '91',\n\t\t\t\t'm40' => '89',\n\t\t\t\t'm41' => '100',\n\t\t\t\t'm42' => '84',\n\t\t\t\t'm43' => '87',\n\t\t\t\t'm44' => '105',\n\t\t\t\t'm45' => '93',\n\t\t\t\t'm46' => '89',\n\t\t\t\t'm47' => '88',\n\t\t\t\t'm48' => '70',\n\t\t\t\t'm49' => '93',\n\t\t\t\t'm50' => '101',\n\t\t\t\t'm51' => '87',\n\t\t\t\t'm52' => '75',\n\t\t\t\t'm53' => '94',\n\t\t\t\t'm54' => '87',\n\t\t\t\t'm55' => '76',\n\t\t\t\t'm56' => '68',\n\t\t\t\t'm57' => '53',\n\t\t\t\t'm58' => '61',\n\t\t\t\t'm59' => '74',\n\t\t\t\t'm60' => '77',\n\t\t\t\t'm61' => '75',\n\t\t\t\t'm62' => '66',\n\t\t\t\t'm63' => '77',\n\t\t\t\t'm64' => '55',\n\t\t\t\t'm65' => '50',\n\t\t\t\t'm66' => '69',\n\t\t\t\t'm67' => '44',\n\t\t\t\t'm68' => '58',\n\t\t\t\t'm69' => '60',\n\t\t\t\t'm70' => '52',\n\t\t\t\t'm71' => '46',\n\t\t\t\t'm72' => '44',\n\t\t\t\t'm73' => '39',\n\t\t\t\t'm74' => '43',\n\t\t\t\t'm75' => '43',\n\t\t\t\t'm76' => '32',\n\t\t\t\t'm77' => '41',\n\t\t\t\t'm78' => '33',\n\t\t\t\t'm79' => '27',\n\t\t\t\t'm80' => '28',\n\t\t\t\t'm81' => '12',\n\t\t\t\t'm82' => '26',\n\t\t\t\t'm83' => '9',\n\t\t\t\t'm84' => '11',\n\t\t\t\t'm85' => '9',\n\t\t\t\t'm86' => '23',\n\t\t\t\t'm87' => '10',\n\t\t\t\t'm88' => '8',\n\t\t\t\t'm89' => '9',\n\t\t\t\t'm90' => '24',\n\t\t\t\t'female_all_ages' => '6835',\n\t\t\t\t'f0' => '99',\n\t\t\t\t'f1' => '95',\n\t\t\t\t'f2' => '124',\n\t\t\t\t'f3' => '96',\n\t\t\t\t'f4' => '112',\n\t\t\t\t'f5' => '100',\n\t\t\t\t'f6' => '89',\n\t\t\t\t'f7' => '90',\n\t\t\t\t'f8' => '92',\n\t\t\t\t'f9' => '92',\n\t\t\t\t'f10' => '58',\n\t\t\t\t'f11' => '83',\n\t\t\t\t'f12' => '100',\n\t\t\t\t'f13' => '98',\n\t\t\t\t'f14' => '90',\n\t\t\t\t'f15' => '79',\n\t\t\t\t'f16' => '94',\n\t\t\t\t'f17' => '77',\n\t\t\t\t'f18' => '80',\n\t\t\t\t'f19' => '87',\n\t\t\t\t'f20' => '69',\n\t\t\t\t'f21' => '74',\n\t\t\t\t'f22' => '107',\n\t\t\t\t'f23' => '108',\n\t\t\t\t'f24' => '105',\n\t\t\t\t'f25' => '122',\n\t\t\t\t'f26' => '130',\n\t\t\t\t'f27' => '129',\n\t\t\t\t'f28' => '122',\n\t\t\t\t'f29' => '130',\n\t\t\t\t'f30' => '105',\n\t\t\t\t'f31' => '98',\n\t\t\t\t'f32' => '105',\n\t\t\t\t'f33' => '84',\n\t\t\t\t'f34' => '83',\n\t\t\t\t'f35' => '78',\n\t\t\t\t'f36' => '87',\n\t\t\t\t'f37' => '93',\n\t\t\t\t'f38' => '80',\n\t\t\t\t'f39' => '75',\n\t\t\t\t'f40' => '81',\n\t\t\t\t'f41' => '79',\n\t\t\t\t'f42' => '80',\n\t\t\t\t'f43' => '97',\n\t\t\t\t'f44' => '106',\n\t\t\t\t'f45' => '89',\n\t\t\t\t'f46' => '72',\n\t\t\t\t'f47' => '84',\n\t\t\t\t'f48' => '99',\n\t\t\t\t'f49' => '79',\n\t\t\t\t'f50' => '98',\n\t\t\t\t'f51' => '83',\n\t\t\t\t'f52' => '104',\n\t\t\t\t'f53' => '82',\n\t\t\t\t'f54' => '66',\n\t\t\t\t'f55' => '65',\n\t\t\t\t'f56' => '57',\n\t\t\t\t'f57' => '63',\n\t\t\t\t'f58' => '81',\n\t\t\t\t'f59' => '62',\n\t\t\t\t'f60' => '78',\n\t\t\t\t'f61' => '66',\n\t\t\t\t'f62' => '67',\n\t\t\t\t'f63' => '75',\n\t\t\t\t'f64' => '55',\n\t\t\t\t'f65' => '62',\n\t\t\t\t'f66' => '79',\n\t\t\t\t'f67' => '51',\n\t\t\t\t'f68' => '54',\n\t\t\t\t'f69' => '44',\n\t\t\t\t'f70' => '37',\n\t\t\t\t'f71' => '59',\n\t\t\t\t'f72' => '42',\n\t\t\t\t'f73' => '53',\n\t\t\t\t'f74' => '27',\n\t\t\t\t'f75' => '43',\n\t\t\t\t'f76' => '48',\n\t\t\t\t'f77' => '44',\n\t\t\t\t'f78' => '43',\n\t\t\t\t'f79' => '26',\n\t\t\t\t'f80' => '35',\n\t\t\t\t'f81' => '28',\n\t\t\t\t'f82' => '36',\n\t\t\t\t'f83' => '33',\n\t\t\t\t'f84' => '27',\n\t\t\t\t'f85' => '24',\n\t\t\t\t'f86' => '17',\n\t\t\t\t'f87' => '23',\n\t\t\t\t'f88' => '20',\n\t\t\t\t'f89' => '16',\n\t\t\t\t'f90' => '77',\n\t\t\t),\n\t\t\t76 => \n\t\t\tarray (\n\t\t\t\t'id' => '77',\n\t\t\t\t'slug' => 'ferry',\n\t\t\t\t'seats' => '3',\n\t\t\t\t'body_id' => '4',\n\t\t\t\t'created_at' => '2015-01-20 12:24:46',\n\t\t\t\t'updated_at' => '2015-01-20 12:24:46',\n\t\t\t\t'ons_district_code' => 'E05001740',\n\t\t\t\t'ons_district_code_old' => '00FDNE',\n\t\t\t\t'name' => 'Ferry',\n\t\t\t\t'ons_la_code' => 'E06000013',\n\t\t\t\t'body_name' => 'North Lincolnshire',\n\t\t\t\t'ons_constituency_code' => 'E14000643',\n\t\t\t\t'ons_constituency_code_old' => 'B15',\n\t\t\t\t'ons_constituency_name' => 'Cleethorpes',\n\t\t\t\t'male_all_ages' => '5506',\n\t\t\t\t'm0' => '53',\n\t\t\t\t'm1' => '57',\n\t\t\t\t'm2' => '52',\n\t\t\t\t'm3' => '58',\n\t\t\t\t'm4' => '70',\n\t\t\t\t'm5' => '54',\n\t\t\t\t'm6' => '50',\n\t\t\t\t'm7' => '60',\n\t\t\t\t'm8' => '47',\n\t\t\t\t'm9' => '56',\n\t\t\t\t'm10' => '63',\n\t\t\t\t'm11' => '47',\n\t\t\t\t'm12' => '61',\n\t\t\t\t'm13' => '67',\n\t\t\t\t'm14' => '62',\n\t\t\t\t'm15' => '50',\n\t\t\t\t'm16' => '65',\n\t\t\t\t'm17' => '80',\n\t\t\t\t'm18' => '71',\n\t\t\t\t'm19' => '53',\n\t\t\t\t'm20' => '43',\n\t\t\t\t'm21' => '61',\n\t\t\t\t'm22' => '58',\n\t\t\t\t'm23' => '65',\n\t\t\t\t'm24' => '49',\n\t\t\t\t'm25' => '46',\n\t\t\t\t'm26' => '56',\n\t\t\t\t'm27' => '46',\n\t\t\t\t'm28' => '43',\n\t\t\t\t'm29' => '59',\n\t\t\t\t'm30' => '41',\n\t\t\t\t'm31' => '50',\n\t\t\t\t'm32' => '43',\n\t\t\t\t'm33' => '49',\n\t\t\t\t'm34' => '37',\n\t\t\t\t'm35' => '50',\n\t\t\t\t'm36' => '56',\n\t\t\t\t'm37' => '65',\n\t\t\t\t'm38' => '66',\n\t\t\t\t'm39' => '63',\n\t\t\t\t'm40' => '65',\n\t\t\t\t'm41' => '68',\n\t\t\t\t'm42' => '83',\n\t\t\t\t'm43' => '90',\n\t\t\t\t'm44' => '91',\n\t\t\t\t'm45' => '109',\n\t\t\t\t'm46' => '98',\n\t\t\t\t'm47' => '89',\n\t\t\t\t'm48' => '103',\n\t\t\t\t'm49' => '99',\n\t\t\t\t'm50' => '94',\n\t\t\t\t'm51' => '79',\n\t\t\t\t'm52' => '104',\n\t\t\t\t'm53' => '95',\n\t\t\t\t'm54' => '91',\n\t\t\t\t'm55' => '95',\n\t\t\t\t'm56' => '82',\n\t\t\t\t'm57' => '86',\n\t\t\t\t'm58' => '81',\n\t\t\t\t'm59' => '85',\n\t\t\t\t'm60' => '69',\n\t\t\t\t'm61' => '81',\n\t\t\t\t'm62' => '88',\n\t\t\t\t'm63' => '87',\n\t\t\t\t'm64' => '87',\n\t\t\t\t'm65' => '93',\n\t\t\t\t'm66' => '100',\n\t\t\t\t'm67' => '76',\n\t\t\t\t'm68' => '84',\n\t\t\t\t'm69' => '75',\n\t\t\t\t'm70' => '58',\n\t\t\t\t'm71' => '60',\n\t\t\t\t'm72' => '56',\n\t\t\t\t'm73' => '50',\n\t\t\t\t'm74' => '49',\n\t\t\t\t'm75' => '49',\n\t\t\t\t'm76' => '44',\n\t\t\t\t'm77' => '38',\n\t\t\t\t'm78' => '27',\n\t\t\t\t'm79' => '29',\n\t\t\t\t'm80' => '38',\n\t\t\t\t'm81' => '24',\n\t\t\t\t'm82' => '23',\n\t\t\t\t'm83' => '25',\n\t\t\t\t'm84' => '14',\n\t\t\t\t'm85' => '13',\n\t\t\t\t'm86' => '21',\n\t\t\t\t'm87' => '10',\n\t\t\t\t'm88' => '6',\n\t\t\t\t'm89' => '8',\n\t\t\t\t'm90' => '15',\n\t\t\t\t'female_all_ages' => '5655',\n\t\t\t\t'f0' => '57',\n\t\t\t\t'f1' => '58',\n\t\t\t\t'f2' => '56',\n\t\t\t\t'f3' => '51',\n\t\t\t\t'f4' => '57',\n\t\t\t\t'f5' => '66',\n\t\t\t\t'f6' => '64',\n\t\t\t\t'f7' => '75',\n\t\t\t\t'f8' => '53',\n\t\t\t\t'f9' => '60',\n\t\t\t\t'f10' => '65',\n\t\t\t\t'f11' => '52',\n\t\t\t\t'f12' => '65',\n\t\t\t\t'f13' => '65',\n\t\t\t\t'f14' => '52',\n\t\t\t\t'f15' => '60',\n\t\t\t\t'f16' => '64',\n\t\t\t\t'f17' => '52',\n\t\t\t\t'f18' => '56',\n\t\t\t\t'f19' => '55',\n\t\t\t\t'f20' => '50',\n\t\t\t\t'f21' => '45',\n\t\t\t\t'f22' => '50',\n\t\t\t\t'f23' => '59',\n\t\t\t\t'f24' => '42',\n\t\t\t\t'f25' => '48',\n\t\t\t\t'f26' => '48',\n\t\t\t\t'f27' => '51',\n\t\t\t\t'f28' => '56',\n\t\t\t\t'f29' => '43',\n\t\t\t\t'f30' => '66',\n\t\t\t\t'f31' => '59',\n\t\t\t\t'f32' => '47',\n\t\t\t\t'f33' => '73',\n\t\t\t\t'f34' => '53',\n\t\t\t\t'f35' => '64',\n\t\t\t\t'f36' => '47',\n\t\t\t\t'f37' => '52',\n\t\t\t\t'f38' => '52',\n\t\t\t\t'f39' => '76',\n\t\t\t\t'f40' => '96',\n\t\t\t\t'f41' => '88',\n\t\t\t\t'f42' => '87',\n\t\t\t\t'f43' => '76',\n\t\t\t\t'f44' => '93',\n\t\t\t\t'f45' => '102',\n\t\t\t\t'f46' => '108',\n\t\t\t\t'f47' => '91',\n\t\t\t\t'f48' => '93',\n\t\t\t\t'f49' => '96',\n\t\t\t\t'f50' => '93',\n\t\t\t\t'f51' => '100',\n\t\t\t\t'f52' => '84',\n\t\t\t\t'f53' => '94',\n\t\t\t\t'f54' => '100',\n\t\t\t\t'f55' => '82',\n\t\t\t\t'f56' => '93',\n\t\t\t\t'f57' => '78',\n\t\t\t\t'f58' => '77',\n\t\t\t\t'f59' => '81',\n\t\t\t\t'f60' => '105',\n\t\t\t\t'f61' => '75',\n\t\t\t\t'f62' => '83',\n\t\t\t\t'f63' => '99',\n\t\t\t\t'f64' => '78',\n\t\t\t\t'f65' => '93',\n\t\t\t\t'f66' => '88',\n\t\t\t\t'f67' => '74',\n\t\t\t\t'f68' => '75',\n\t\t\t\t'f69' => '74',\n\t\t\t\t'f70' => '48',\n\t\t\t\t'f71' => '43',\n\t\t\t\t'f72' => '66',\n\t\t\t\t'f73' => '52',\n\t\t\t\t'f74' => '47',\n\t\t\t\t'f75' => '39',\n\t\t\t\t'f76' => '38',\n\t\t\t\t'f77' => '48',\n\t\t\t\t'f78' => '39',\n\t\t\t\t'f79' => '21',\n\t\t\t\t'f80' => '33',\n\t\t\t\t'f81' => '34',\n\t\t\t\t'f82' => '32',\n\t\t\t\t'f83' => '36',\n\t\t\t\t'f84' => '18',\n\t\t\t\t'f85' => '23',\n\t\t\t\t'f86' => '17',\n\t\t\t\t'f87' => '20',\n\t\t\t\t'f88' => '17',\n\t\t\t\t'f89' => '13',\n\t\t\t\t'f90' => '51',\n\t\t\t),\n\t\t\t77 => \n\t\t\tarray (\n\t\t\t\t'id' => '78',\n\t\t\t\t'slug' => 'frodingham',\n\t\t\t\t'seats' => '3',\n\t\t\t\t'body_id' => '4',\n\t\t\t\t'created_at' => '2015-01-20 12:24:46',\n\t\t\t\t'updated_at' => '2015-01-20 12:24:46',\n\t\t\t\t'ons_district_code' => 'E05001741',\n\t\t\t\t'ons_district_code_old' => '00FDNF',\n\t\t\t\t'name' => 'Frodingham',\n\t\t\t\t'ons_la_code' => 'E06000013',\n\t\t\t\t'body_name' => 'North Lincolnshire',\n\t\t\t\t'ons_constituency_code' => 'E14000914',\n\t\t\t\t'ons_constituency_code_old' => 'D88',\n\t\t\t\t'ons_constituency_name' => 'Scunthorpe',\n\t\t\t\t'male_all_ages' => '4067',\n\t\t\t\t'm0' => '57',\n\t\t\t\t'm1' => '76',\n\t\t\t\t'm2' => '65',\n\t\t\t\t'm3' => '65',\n\t\t\t\t'm4' => '66',\n\t\t\t\t'm5' => '46',\n\t\t\t\t'm6' => '75',\n\t\t\t\t'm7' => '81',\n\t\t\t\t'm8' => '64',\n\t\t\t\t'm9' => '53',\n\t\t\t\t'm10' => '51',\n\t\t\t\t'm11' => '62',\n\t\t\t\t'm12' => '37',\n\t\t\t\t'm13' => '46',\n\t\t\t\t'm14' => '37',\n\t\t\t\t'm15' => '58',\n\t\t\t\t'm16' => '42',\n\t\t\t\t'm17' => '60',\n\t\t\t\t'm18' => '58',\n\t\t\t\t'm19' => '34',\n\t\t\t\t'm20' => '56',\n\t\t\t\t'm21' => '54',\n\t\t\t\t'm22' => '50',\n\t\t\t\t'm23' => '58',\n\t\t\t\t'm24' => '53',\n\t\t\t\t'm25' => '55',\n\t\t\t\t'm26' => '61',\n\t\t\t\t'm27' => '62',\n\t\t\t\t'm28' => '61',\n\t\t\t\t'm29' => '56',\n\t\t\t\t'm30' => '65',\n\t\t\t\t'm31' => '58',\n\t\t\t\t'm32' => '67',\n\t\t\t\t'm33' => '59',\n\t\t\t\t'm34' => '60',\n\t\t\t\t'm35' => '44',\n\t\t\t\t'm36' => '49',\n\t\t\t\t'm37' => '38',\n\t\t\t\t'm38' => '48',\n\t\t\t\t'm39' => '50',\n\t\t\t\t'm40' => '44',\n\t\t\t\t'm41' => '54',\n\t\t\t\t'm42' => '58',\n\t\t\t\t'm43' => '67',\n\t\t\t\t'm44' => '60',\n\t\t\t\t'm45' => '56',\n\t\t\t\t'm46' => '69',\n\t\t\t\t'm47' => '60',\n\t\t\t\t'm48' => '57',\n\t\t\t\t'm49' => '68',\n\t\t\t\t'm50' => '62',\n\t\t\t\t'm51' => '52',\n\t\t\t\t'm52' => '76',\n\t\t\t\t'm53' => '54',\n\t\t\t\t'm54' => '52',\n\t\t\t\t'm55' => '54',\n\t\t\t\t'm56' => '34',\n\t\t\t\t'm57' => '58',\n\t\t\t\t'm58' => '47',\n\t\t\t\t'm59' => '45',\n\t\t\t\t'm60' => '47',\n\t\t\t\t'm61' => '54',\n\t\t\t\t'm62' => '47',\n\t\t\t\t'm63' => '44',\n\t\t\t\t'm64' => '34',\n\t\t\t\t'm65' => '33',\n\t\t\t\t'm66' => '48',\n\t\t\t\t'm67' => '25',\n\t\t\t\t'm68' => '29',\n\t\t\t\t'm69' => '25',\n\t\t\t\t'm70' => '34',\n\t\t\t\t'm71' => '21',\n\t\t\t\t'm72' => '20',\n\t\t\t\t'm73' => '20',\n\t\t\t\t'm74' => '30',\n\t\t\t\t'm75' => '16',\n\t\t\t\t'm76' => '19',\n\t\t\t\t'm77' => '16',\n\t\t\t\t'm78' => '19',\n\t\t\t\t'm79' => '15',\n\t\t\t\t'm80' => '14',\n\t\t\t\t'm81' => '11',\n\t\t\t\t'm82' => '9',\n\t\t\t\t'm83' => '12',\n\t\t\t\t'm84' => '12',\n\t\t\t\t'm85' => '10',\n\t\t\t\t'm86' => '7',\n\t\t\t\t'm87' => '7',\n\t\t\t\t'm88' => '4',\n\t\t\t\t'm89' => '7',\n\t\t\t\t'm90' => '14',\n\t\t\t\t'female_all_ages' => '4148',\n\t\t\t\t'f0' => '45',\n\t\t\t\t'f1' => '49',\n\t\t\t\t'f2' => '66',\n\t\t\t\t'f3' => '66',\n\t\t\t\t'f4' => '53',\n\t\t\t\t'f5' => '58',\n\t\t\t\t'f6' => '76',\n\t\t\t\t'f7' => '51',\n\t\t\t\t'f8' => '63',\n\t\t\t\t'f9' => '52',\n\t\t\t\t'f10' => '52',\n\t\t\t\t'f11' => '37',\n\t\t\t\t'f12' => '39',\n\t\t\t\t'f13' => '50',\n\t\t\t\t'f14' => '45',\n\t\t\t\t'f15' => '48',\n\t\t\t\t'f16' => '43',\n\t\t\t\t'f17' => '56',\n\t\t\t\t'f18' => '62',\n\t\t\t\t'f19' => '47',\n\t\t\t\t'f20' => '51',\n\t\t\t\t'f21' => '49',\n\t\t\t\t'f22' => '57',\n\t\t\t\t'f23' => '57',\n\t\t\t\t'f24' => '58',\n\t\t\t\t'f25' => '73',\n\t\t\t\t'f26' => '81',\n\t\t\t\t'f27' => '92',\n\t\t\t\t'f28' => '69',\n\t\t\t\t'f29' => '48',\n\t\t\t\t'f30' => '67',\n\t\t\t\t'f31' => '65',\n\t\t\t\t'f32' => '57',\n\t\t\t\t'f33' => '54',\n\t\t\t\t'f34' => '56',\n\t\t\t\t'f35' => '41',\n\t\t\t\t'f36' => '50',\n\t\t\t\t'f37' => '56',\n\t\t\t\t'f38' => '45',\n\t\t\t\t'f39' => '46',\n\t\t\t\t'f40' => '56',\n\t\t\t\t'f41' => '47',\n\t\t\t\t'f42' => '65',\n\t\t\t\t'f43' => '60',\n\t\t\t\t'f44' => '74',\n\t\t\t\t'f45' => '50',\n\t\t\t\t'f46' => '69',\n\t\t\t\t'f47' => '66',\n\t\t\t\t'f48' => '72',\n\t\t\t\t'f49' => '63',\n\t\t\t\t'f50' => '51',\n\t\t\t\t'f51' => '55',\n\t\t\t\t'f52' => '54',\n\t\t\t\t'f53' => '48',\n\t\t\t\t'f54' => '56',\n\t\t\t\t'f55' => '60',\n\t\t\t\t'f56' => '37',\n\t\t\t\t'f57' => '48',\n\t\t\t\t'f58' => '49',\n\t\t\t\t'f59' => '44',\n\t\t\t\t'f60' => '51',\n\t\t\t\t'f61' => '50',\n\t\t\t\t'f62' => '37',\n\t\t\t\t'f63' => '31',\n\t\t\t\t'f64' => '39',\n\t\t\t\t'f65' => '28',\n\t\t\t\t'f66' => '39',\n\t\t\t\t'f67' => '25',\n\t\t\t\t'f68' => '37',\n\t\t\t\t'f69' => '24',\n\t\t\t\t'f70' => '31',\n\t\t\t\t'f71' => '27',\n\t\t\t\t'f72' => '17',\n\t\t\t\t'f73' => '27',\n\t\t\t\t'f74' => '20',\n\t\t\t\t'f75' => '19',\n\t\t\t\t'f76' => '16',\n\t\t\t\t'f77' => '22',\n\t\t\t\t'f78' => '25',\n\t\t\t\t'f79' => '26',\n\t\t\t\t'f80' => '19',\n\t\t\t\t'f81' => '15',\n\t\t\t\t'f82' => '21',\n\t\t\t\t'f83' => '19',\n\t\t\t\t'f84' => '16',\n\t\t\t\t'f85' => '19',\n\t\t\t\t'f86' => '13',\n\t\t\t\t'f87' => '15',\n\t\t\t\t'f88' => '15',\n\t\t\t\t'f89' => '13',\n\t\t\t\t'f90' => '38',\n\t\t\t),\n\t\t\t78 => \n\t\t\tarray (\n\t\t\t\t'id' => '79',\n\t\t\t\t'slug' => 'kingsway-with-lincoln-gardens',\n\t\t\t\t'seats' => '3',\n\t\t\t\t'body_id' => '4',\n\t\t\t\t'created_at' => '2015-01-20 12:24:46',\n\t\t\t\t'updated_at' => '2015-01-20 12:24:46',\n\t\t\t\t'ons_district_code' => 'E05001742',\n\t\t\t\t'ons_district_code_old' => '00FDNG',\n\t\t\t\t'name' => 'Kingsway with Lincoln Gardens',\n\t\t\t\t'ons_la_code' => 'E06000013',\n\t\t\t\t'body_name' => 'North Lincolnshire',\n\t\t\t\t'ons_constituency_code' => 'E14000914',\n\t\t\t\t'ons_constituency_code_old' => 'D88',\n\t\t\t\t'ons_constituency_name' => 'Scunthorpe',\n\t\t\t\t'male_all_ages' => '5567',\n\t\t\t\t'm0' => '71',\n\t\t\t\t'm1' => '75',\n\t\t\t\t'm2' => '66',\n\t\t\t\t'm3' => '87',\n\t\t\t\t'm4' => '95',\n\t\t\t\t'm5' => '71',\n\t\t\t\t'm6' => '60',\n\t\t\t\t'm7' => '67',\n\t\t\t\t'm8' => '65',\n\t\t\t\t'm9' => '58',\n\t\t\t\t'm10' => '85',\n\t\t\t\t'm11' => '75',\n\t\t\t\t'm12' => '70',\n\t\t\t\t'm13' => '75',\n\t\t\t\t'm14' => '73',\n\t\t\t\t'm15' => '62',\n\t\t\t\t'm16' => '63',\n\t\t\t\t'm17' => '71',\n\t\t\t\t'm18' => '79',\n\t\t\t\t'm19' => '64',\n\t\t\t\t'm20' => '73',\n\t\t\t\t'm21' => '58',\n\t\t\t\t'm22' => '70',\n\t\t\t\t'm23' => '72',\n\t\t\t\t'm24' => '70',\n\t\t\t\t'm25' => '68',\n\t\t\t\t'm26' => '64',\n\t\t\t\t'm27' => '76',\n\t\t\t\t'm28' => '65',\n\t\t\t\t'm29' => '65',\n\t\t\t\t'm30' => '68',\n\t\t\t\t'm31' => '67',\n\t\t\t\t'm32' => '67',\n\t\t\t\t'm33' => '81',\n\t\t\t\t'm34' => '83',\n\t\t\t\t'm35' => '58',\n\t\t\t\t'm36' => '76',\n\t\t\t\t'm37' => '51',\n\t\t\t\t'm38' => '73',\n\t\t\t\t'm39' => '55',\n\t\t\t\t'm40' => '77',\n\t\t\t\t'm41' => '72',\n\t\t\t\t'm42' => '61',\n\t\t\t\t'm43' => '71',\n\t\t\t\t'm44' => '78',\n\t\t\t\t'm45' => '74',\n\t\t\t\t'm46' => '80',\n\t\t\t\t'm47' => '79',\n\t\t\t\t'm48' => '88',\n\t\t\t\t'm49' => '85',\n\t\t\t\t'm50' => '92',\n\t\t\t\t'm51' => '91',\n\t\t\t\t'm52' => '100',\n\t\t\t\t'm53' => '85',\n\t\t\t\t'm54' => '81',\n\t\t\t\t'm55' => '76',\n\t\t\t\t'm56' => '65',\n\t\t\t\t'm57' => '75',\n\t\t\t\t'm58' => '72',\n\t\t\t\t'm59' => '72',\n\t\t\t\t'm60' => '67',\n\t\t\t\t'm61' => '68',\n\t\t\t\t'm62' => '64',\n\t\t\t\t'm63' => '54',\n\t\t\t\t'm64' => '61',\n\t\t\t\t'm65' => '67',\n\t\t\t\t'm66' => '83',\n\t\t\t\t'm67' => '59',\n\t\t\t\t'm68' => '38',\n\t\t\t\t'm69' => '44',\n\t\t\t\t'm70' => '44',\n\t\t\t\t'm71' => '36',\n\t\t\t\t'm72' => '31',\n\t\t\t\t'm73' => '33',\n\t\t\t\t'm74' => '33',\n\t\t\t\t'm75' => '24',\n\t\t\t\t'm76' => '46',\n\t\t\t\t'm77' => '37',\n\t\t\t\t'm78' => '32',\n\t\t\t\t'm79' => '36',\n\t\t\t\t'm80' => '28',\n\t\t\t\t'm81' => '30',\n\t\t\t\t'm82' => '32',\n\t\t\t\t'm83' => '22',\n\t\t\t\t'm84' => '22',\n\t\t\t\t'm85' => '18',\n\t\t\t\t'm86' => '24',\n\t\t\t\t'm87' => '12',\n\t\t\t\t'm88' => '11',\n\t\t\t\t'm89' => '16',\n\t\t\t\t'm90' => '29',\n\t\t\t\t'female_all_ages' => '5882',\n\t\t\t\t'f0' => '79',\n\t\t\t\t'f1' => '87',\n\t\t\t\t'f2' => '63',\n\t\t\t\t'f3' => '71',\n\t\t\t\t'f4' => '68',\n\t\t\t\t'f5' => '72',\n\t\t\t\t'f6' => '69',\n\t\t\t\t'f7' => '70',\n\t\t\t\t'f8' => '79',\n\t\t\t\t'f9' => '67',\n\t\t\t\t'f10' => '74',\n\t\t\t\t'f11' => '63',\n\t\t\t\t'f12' => '65',\n\t\t\t\t'f13' => '67',\n\t\t\t\t'f14' => '56',\n\t\t\t\t'f15' => '73',\n\t\t\t\t'f16' => '67',\n\t\t\t\t'f17' => '75',\n\t\t\t\t'f18' => '80',\n\t\t\t\t'f19' => '56',\n\t\t\t\t'f20' => '71',\n\t\t\t\t'f21' => '61',\n\t\t\t\t'f22' => '71',\n\t\t\t\t'f23' => '70',\n\t\t\t\t'f24' => '64',\n\t\t\t\t'f25' => '78',\n\t\t\t\t'f26' => '70',\n\t\t\t\t'f27' => '73',\n\t\t\t\t'f28' => '69',\n\t\t\t\t'f29' => '71',\n\t\t\t\t'f30' => '83',\n\t\t\t\t'f31' => '80',\n\t\t\t\t'f32' => '71',\n\t\t\t\t'f33' => '69',\n\t\t\t\t'f34' => '79',\n\t\t\t\t'f35' => '58',\n\t\t\t\t'f36' => '63',\n\t\t\t\t'f37' => '62',\n\t\t\t\t'f38' => '65',\n\t\t\t\t'f39' => '63',\n\t\t\t\t'f40' => '57',\n\t\t\t\t'f41' => '74',\n\t\t\t\t'f42' => '76',\n\t\t\t\t'f43' => '71',\n\t\t\t\t'f44' => '86',\n\t\t\t\t'f45' => '90',\n\t\t\t\t'f46' => '76',\n\t\t\t\t'f47' => '92',\n\t\t\t\t'f48' => '81',\n\t\t\t\t'f49' => '75',\n\t\t\t\t'f50' => '90',\n\t\t\t\t'f51' => '87',\n\t\t\t\t'f52' => '83',\n\t\t\t\t'f53' => '68',\n\t\t\t\t'f54' => '73',\n\t\t\t\t'f55' => '80',\n\t\t\t\t'f56' => '66',\n\t\t\t\t'f57' => '63',\n\t\t\t\t'f58' => '93',\n\t\t\t\t'f59' => '73',\n\t\t\t\t'f60' => '75',\n\t\t\t\t'f61' => '61',\n\t\t\t\t'f62' => '63',\n\t\t\t\t'f63' => '69',\n\t\t\t\t'f64' => '69',\n\t\t\t\t'f65' => '51',\n\t\t\t\t'f66' => '77',\n\t\t\t\t'f67' => '43',\n\t\t\t\t'f68' => '50',\n\t\t\t\t'f69' => '47',\n\t\t\t\t'f70' => '60',\n\t\t\t\t'f71' => '52',\n\t\t\t\t'f72' => '39',\n\t\t\t\t'f73' => '56',\n\t\t\t\t'f74' => '52',\n\t\t\t\t'f75' => '54',\n\t\t\t\t'f76' => '38',\n\t\t\t\t'f77' => '38',\n\t\t\t\t'f78' => '35',\n\t\t\t\t'f79' => '50',\n\t\t\t\t'f80' => '48',\n\t\t\t\t'f81' => '43',\n\t\t\t\t'f82' => '44',\n\t\t\t\t'f83' => '35',\n\t\t\t\t'f84' => '22',\n\t\t\t\t'f85' => '37',\n\t\t\t\t'f86' => '24',\n\t\t\t\t'f87' => '39',\n\t\t\t\t'f88' => '21',\n\t\t\t\t'f89' => '25',\n\t\t\t\t'f90' => '119',\n\t\t\t),\n\t\t\t79 => \n\t\t\tarray (\n\t\t\t\t'id' => '80',\n\t\t\t\t'slug' => 'ridge',\n\t\t\t\t'seats' => '3',\n\t\t\t\t'body_id' => '4',\n\t\t\t\t'created_at' => '2015-01-20 12:24:46',\n\t\t\t\t'updated_at' => '2015-01-20 12:24:46',\n\t\t\t\t'ons_district_code' => 'E05001743',\n\t\t\t\t'ons_district_code_old' => '00FDNH',\n\t\t\t\t'name' => 'Ridge',\n\t\t\t\t'ons_la_code' => 'E06000013',\n\t\t\t\t'body_name' => 'North Lincolnshire',\n\t\t\t\t'ons_constituency_code' => 'E14000914',\n\t\t\t\t'ons_constituency_code_old' => 'D88',\n\t\t\t\t'ons_constituency_name' => 'Scunthorpe',\n\t\t\t\t'male_all_ages' => '6273',\n\t\t\t\t'm0' => '45',\n\t\t\t\t'm1' => '52',\n\t\t\t\t'm2' => '49',\n\t\t\t\t'm3' => '55',\n\t\t\t\t'm4' => '55',\n\t\t\t\t'm5' => '85',\n\t\t\t\t'm6' => '84',\n\t\t\t\t'm7' => '62',\n\t\t\t\t'm8' => '61',\n\t\t\t\t'm9' => '70',\n\t\t\t\t'm10' => '54',\n\t\t\t\t'm11' => '58',\n\t\t\t\t'm12' => '71',\n\t\t\t\t'm13' => '83',\n\t\t\t\t'm14' => '76',\n\t\t\t\t'm15' => '69',\n\t\t\t\t'm16' => '93',\n\t\t\t\t'm17' => '81',\n\t\t\t\t'm18' => '75',\n\t\t\t\t'm19' => '63',\n\t\t\t\t'm20' => '64',\n\t\t\t\t'm21' => '42',\n\t\t\t\t'm22' => '58',\n\t\t\t\t'm23' => '62',\n\t\t\t\t'm24' => '56',\n\t\t\t\t'm25' => '67',\n\t\t\t\t'm26' => '65',\n\t\t\t\t'm27' => '54',\n\t\t\t\t'm28' => '67',\n\t\t\t\t'm29' => '59',\n\t\t\t\t'm30' => '52',\n\t\t\t\t'm31' => '46',\n\t\t\t\t'm32' => '65',\n\t\t\t\t'm33' => '66',\n\t\t\t\t'm34' => '55',\n\t\t\t\t'm35' => '48',\n\t\t\t\t'm36' => '50',\n\t\t\t\t'm37' => '55',\n\t\t\t\t'm38' => '62',\n\t\t\t\t'm39' => '59',\n\t\t\t\t'm40' => '61',\n\t\t\t\t'm41' => '87',\n\t\t\t\t'm42' => '86',\n\t\t\t\t'm43' => '82',\n\t\t\t\t'm44' => '98',\n\t\t\t\t'm45' => '85',\n\t\t\t\t'm46' => '98',\n\t\t\t\t'm47' => '111',\n\t\t\t\t'm48' => '106',\n\t\t\t\t'm49' => '130',\n\t\t\t\t'm50' => '103',\n\t\t\t\t'm51' => '111',\n\t\t\t\t'm52' => '90',\n\t\t\t\t'm53' => '97',\n\t\t\t\t'm54' => '96',\n\t\t\t\t'm55' => '100',\n\t\t\t\t'm56' => '70',\n\t\t\t\t'm57' => '95',\n\t\t\t\t'm58' => '91',\n\t\t\t\t'm59' => '81',\n\t\t\t\t'm60' => '89',\n\t\t\t\t'm61' => '107',\n\t\t\t\t'm62' => '93',\n\t\t\t\t'm63' => '92',\n\t\t\t\t'm64' => '88',\n\t\t\t\t'm65' => '96',\n\t\t\t\t'm66' => '113',\n\t\t\t\t'm67' => '79',\n\t\t\t\t'm68' => '96',\n\t\t\t\t'm69' => '86',\n\t\t\t\t'm70' => '83',\n\t\t\t\t'm71' => '88',\n\t\t\t\t'm72' => '74',\n\t\t\t\t'm73' => '73',\n\t\t\t\t'm74' => '75',\n\t\t\t\t'm75' => '79',\n\t\t\t\t'm76' => '58',\n\t\t\t\t'm77' => '60',\n\t\t\t\t'm78' => '42',\n\t\t\t\t'm79' => '53',\n\t\t\t\t'm80' => '48',\n\t\t\t\t'm81' => '37',\n\t\t\t\t'm82' => '41',\n\t\t\t\t'm83' => '20',\n\t\t\t\t'm84' => '15',\n\t\t\t\t'm85' => '20',\n\t\t\t\t'm86' => '25',\n\t\t\t\t'm87' => '15',\n\t\t\t\t'm88' => '17',\n\t\t\t\t'm89' => '15',\n\t\t\t\t'm90' => '25',\n\t\t\t\t'female_all_ages' => '6458',\n\t\t\t\t'f0' => '42',\n\t\t\t\t'f1' => '59',\n\t\t\t\t'f2' => '51',\n\t\t\t\t'f3' => '65',\n\t\t\t\t'f4' => '60',\n\t\t\t\t'f5' => '71',\n\t\t\t\t'f6' => '61',\n\t\t\t\t'f7' => '73',\n\t\t\t\t'f8' => '49',\n\t\t\t\t'f9' => '76',\n\t\t\t\t'f10' => '61',\n\t\t\t\t'f11' => '51',\n\t\t\t\t'f12' => '67',\n\t\t\t\t'f13' => '70',\n\t\t\t\t'f14' => '81',\n\t\t\t\t'f15' => '57',\n\t\t\t\t'f16' => '74',\n\t\t\t\t'f17' => '70',\n\t\t\t\t'f18' => '63',\n\t\t\t\t'f19' => '43',\n\t\t\t\t'f20' => '48',\n\t\t\t\t'f21' => '60',\n\t\t\t\t'f22' => '57',\n\t\t\t\t'f23' => '69',\n\t\t\t\t'f24' => '63',\n\t\t\t\t'f25' => '47',\n\t\t\t\t'f26' => '65',\n\t\t\t\t'f27' => '42',\n\t\t\t\t'f28' => '50',\n\t\t\t\t'f29' => '55',\n\t\t\t\t'f30' => '49',\n\t\t\t\t'f31' => '44',\n\t\t\t\t'f32' => '60',\n\t\t\t\t'f33' => '66',\n\t\t\t\t'f34' => '65',\n\t\t\t\t'f35' => '46',\n\t\t\t\t'f36' => '52',\n\t\t\t\t'f37' => '69',\n\t\t\t\t'f38' => '72',\n\t\t\t\t'f39' => '95',\n\t\t\t\t'f40' => '92',\n\t\t\t\t'f41' => '78',\n\t\t\t\t'f42' => '103',\n\t\t\t\t'f43' => '95',\n\t\t\t\t'f44' => '98',\n\t\t\t\t'f45' => '105',\n\t\t\t\t'f46' => '106',\n\t\t\t\t'f47' => '111',\n\t\t\t\t'f48' => '96',\n\t\t\t\t'f49' => '95',\n\t\t\t\t'f50' => '117',\n\t\t\t\t'f51' => '90',\n\t\t\t\t'f52' => '95',\n\t\t\t\t'f53' => '100',\n\t\t\t\t'f54' => '96',\n\t\t\t\t'f55' => '83',\n\t\t\t\t'f56' => '102',\n\t\t\t\t'f57' => '103',\n\t\t\t\t'f58' => '104',\n\t\t\t\t'f59' => '93',\n\t\t\t\t'f60' => '85',\n\t\t\t\t'f61' => '86',\n\t\t\t\t'f62' => '95',\n\t\t\t\t'f63' => '97',\n\t\t\t\t'f64' => '114',\n\t\t\t\t'f65' => '112',\n\t\t\t\t'f66' => '126',\n\t\t\t\t'f67' => '101',\n\t\t\t\t'f68' => '103',\n\t\t\t\t'f69' => '117',\n\t\t\t\t'f70' => '89',\n\t\t\t\t'f71' => '85',\n\t\t\t\t'f72' => '53',\n\t\t\t\t'f73' => '63',\n\t\t\t\t'f74' => '66',\n\t\t\t\t'f75' => '71',\n\t\t\t\t'f76' => '62',\n\t\t\t\t'f77' => '62',\n\t\t\t\t'f78' => '61',\n\t\t\t\t'f79' => '47',\n\t\t\t\t'f80' => '45',\n\t\t\t\t'f81' => '37',\n\t\t\t\t'f82' => '37',\n\t\t\t\t'f83' => '41',\n\t\t\t\t'f84' => '36',\n\t\t\t\t'f85' => '25',\n\t\t\t\t'f86' => '19',\n\t\t\t\t'f87' => '25',\n\t\t\t\t'f88' => '26',\n\t\t\t\t'f89' => '17',\n\t\t\t\t'f90' => '75',\n\t\t\t),\n\t\t\t80 => \n\t\t\tarray (\n\t\t\t\t'id' => '81',\n\t\t\t\t'slug' => 'town',\n\t\t\t\t'seats' => '3',\n\t\t\t\t'body_id' => '4',\n\t\t\t\t'created_at' => '2015-01-20 12:24:46',\n\t\t\t\t'updated_at' => '2015-01-20 12:24:46',\n\t\t\t\t'ons_district_code' => 'E05001744',\n\t\t\t\t'ons_district_code_old' => '00FDNJ',\n\t\t\t\t'name' => 'Town',\n\t\t\t\t'ons_la_code' => 'E06000013',\n\t\t\t\t'body_name' => 'North Lincolnshire',\n\t\t\t\t'ons_constituency_code' => 'E14000914',\n\t\t\t\t'ons_constituency_code_old' => 'D88',\n\t\t\t\t'ons_constituency_name' => 'Scunthorpe',\n\t\t\t\t'male_all_ages' => '4518',\n\t\t\t\t'm0' => '70',\n\t\t\t\t'm1' => '66',\n\t\t\t\t'm2' => '81',\n\t\t\t\t'm3' => '77',\n\t\t\t\t'm4' => '65',\n\t\t\t\t'm5' => '64',\n\t\t\t\t'm6' => '65',\n\t\t\t\t'm7' => '67',\n\t\t\t\t'm8' => '52',\n\t\t\t\t'm9' => '62',\n\t\t\t\t'm10' => '52',\n\t\t\t\t'm11' => '57',\n\t\t\t\t'm12' => '37',\n\t\t\t\t'm13' => '43',\n\t\t\t\t'm14' => '55',\n\t\t\t\t'm15' => '50',\n\t\t\t\t'm16' => '57',\n\t\t\t\t'm17' => '41',\n\t\t\t\t'm18' => '58',\n\t\t\t\t'm19' => '43',\n\t\t\t\t'm20' => '48',\n\t\t\t\t'm21' => '46',\n\t\t\t\t'm22' => '74',\n\t\t\t\t'm23' => '52',\n\t\t\t\t'm24' => '68',\n\t\t\t\t'm25' => '66',\n\t\t\t\t'm26' => '91',\n\t\t\t\t'm27' => '83',\n\t\t\t\t'm28' => '104',\n\t\t\t\t'm29' => '78',\n\t\t\t\t'm30' => '98',\n\t\t\t\t'm31' => '92',\n\t\t\t\t'm32' => '85',\n\t\t\t\t'm33' => '91',\n\t\t\t\t'm34' => '72',\n\t\t\t\t'm35' => '72',\n\t\t\t\t'm36' => '82',\n\t\t\t\t'm37' => '72',\n\t\t\t\t'm38' => '62',\n\t\t\t\t'm39' => '82',\n\t\t\t\t'm40' => '52',\n\t\t\t\t'm41' => '59',\n\t\t\t\t'm42' => '65',\n\t\t\t\t'm43' => '83',\n\t\t\t\t'm44' => '74',\n\t\t\t\t'm45' => '71',\n\t\t\t\t'm46' => '74',\n\t\t\t\t'm47' => '57',\n\t\t\t\t'm48' => '67',\n\t\t\t\t'm49' => '48',\n\t\t\t\t'm50' => '44',\n\t\t\t\t'm51' => '60',\n\t\t\t\t'm52' => '63',\n\t\t\t\t'm53' => '52',\n\t\t\t\t'm54' => '48',\n\t\t\t\t'm55' => '64',\n\t\t\t\t'm56' => '46',\n\t\t\t\t'm57' => '45',\n\t\t\t\t'm58' => '28',\n\t\t\t\t'm59' => '43',\n\t\t\t\t'm60' => '42',\n\t\t\t\t'm61' => '49',\n\t\t\t\t'm62' => '35',\n\t\t\t\t'm63' => '33',\n\t\t\t\t'm64' => '43',\n\t\t\t\t'm65' => '41',\n\t\t\t\t'm66' => '34',\n\t\t\t\t'm67' => '21',\n\t\t\t\t'm68' => '33',\n\t\t\t\t'm69' => '33',\n\t\t\t\t'm70' => '29',\n\t\t\t\t'm71' => '24',\n\t\t\t\t'm72' => '13',\n\t\t\t\t'm73' => '28',\n\t\t\t\t'm74' => '23',\n\t\t\t\t'm75' => '25',\n\t\t\t\t'm76' => '21',\n\t\t\t\t'm77' => '20',\n\t\t\t\t'm78' => '19',\n\t\t\t\t'm79' => '18',\n\t\t\t\t'm80' => '13',\n\t\t\t\t'm81' => '7',\n\t\t\t\t'm82' => '16',\n\t\t\t\t'm83' => '9',\n\t\t\t\t'm84' => '16',\n\t\t\t\t'm85' => '6',\n\t\t\t\t'm86' => '14',\n\t\t\t\t'm87' => '8',\n\t\t\t\t'm88' => '7',\n\t\t\t\t'm89' => '4',\n\t\t\t\t'm90' => '11',\n\t\t\t\t'female_all_ages' => '4128',\n\t\t\t\t'f0' => '64',\n\t\t\t\t'f1' => '54',\n\t\t\t\t'f2' => '59',\n\t\t\t\t'f3' => '45',\n\t\t\t\t'f4' => '54',\n\t\t\t\t'f5' => '64',\n\t\t\t\t'f6' => '54',\n\t\t\t\t'f7' => '51',\n\t\t\t\t'f8' => '51',\n\t\t\t\t'f9' => '59',\n\t\t\t\t'f10' => '49',\n\t\t\t\t'f11' => '60',\n\t\t\t\t'f12' => '56',\n\t\t\t\t'f13' => '46',\n\t\t\t\t'f14' => '51',\n\t\t\t\t'f15' => '36',\n\t\t\t\t'f16' => '40',\n\t\t\t\t'f17' => '45',\n\t\t\t\t'f18' => '40',\n\t\t\t\t'f19' => '48',\n\t\t\t\t'f20' => '63',\n\t\t\t\t'f21' => '66',\n\t\t\t\t'f22' => '69',\n\t\t\t\t'f23' => '79',\n\t\t\t\t'f24' => '60',\n\t\t\t\t'f25' => '70',\n\t\t\t\t'f26' => '79',\n\t\t\t\t'f27' => '81',\n\t\t\t\t'f28' => '64',\n\t\t\t\t'f29' => '73',\n\t\t\t\t'f30' => '81',\n\t\t\t\t'f31' => '79',\n\t\t\t\t'f32' => '73',\n\t\t\t\t'f33' => '71',\n\t\t\t\t'f34' => '67',\n\t\t\t\t'f35' => '44',\n\t\t\t\t'f36' => '46',\n\t\t\t\t'f37' => '36',\n\t\t\t\t'f38' => '48',\n\t\t\t\t'f39' => '48',\n\t\t\t\t'f40' => '49',\n\t\t\t\t'f41' => '57',\n\t\t\t\t'f42' => '48',\n\t\t\t\t'f43' => '69',\n\t\t\t\t'f44' => '52',\n\t\t\t\t'f45' => '38',\n\t\t\t\t'f46' => '56',\n\t\t\t\t'f47' => '46',\n\t\t\t\t'f48' => '51',\n\t\t\t\t'f49' => '45',\n\t\t\t\t'f50' => '59',\n\t\t\t\t'f51' => '57',\n\t\t\t\t'f52' => '46',\n\t\t\t\t'f53' => '52',\n\t\t\t\t'f54' => '57',\n\t\t\t\t'f55' => '40',\n\t\t\t\t'f56' => '45',\n\t\t\t\t'f57' => '47',\n\t\t\t\t'f58' => '38',\n\t\t\t\t'f59' => '44',\n\t\t\t\t'f60' => '36',\n\t\t\t\t'f61' => '27',\n\t\t\t\t'f62' => '43',\n\t\t\t\t'f63' => '45',\n\t\t\t\t'f64' => '30',\n\t\t\t\t'f65' => '36',\n\t\t\t\t'f66' => '34',\n\t\t\t\t'f67' => '22',\n\t\t\t\t'f68' => '29',\n\t\t\t\t'f69' => '29',\n\t\t\t\t'f70' => '24',\n\t\t\t\t'f71' => '30',\n\t\t\t\t'f72' => '29',\n\t\t\t\t'f73' => '28',\n\t\t\t\t'f74' => '28',\n\t\t\t\t'f75' => '25',\n\t\t\t\t'f76' => '12',\n\t\t\t\t'f77' => '30',\n\t\t\t\t'f78' => '22',\n\t\t\t\t'f79' => '28',\n\t\t\t\t'f80' => '26',\n\t\t\t\t'f81' => '19',\n\t\t\t\t'f82' => '13',\n\t\t\t\t'f83' => '17',\n\t\t\t\t'f84' => '20',\n\t\t\t\t'f85' => '21',\n\t\t\t\t'f86' => '17',\n\t\t\t\t'f87' => '15',\n\t\t\t\t'f88' => '9',\n\t\t\t\t'f89' => '15',\n\t\t\t\t'f90' => '50',\n\t\t\t),\n\t\t));\n\t}", "public function show(District $district)\n {\n return view('district')->with('districtArr',District::all());\n }", "function save_places_count_in_district()\n{\n $districts = DataManager::getDistricts();\n foreach ($districts as $dis)\n {\n $count = DataManager::getPlaceCountOnDistrict(substr($dis->district, 0,6));\n /* update */\n }\n}", "public function district()\n {\n return $this->belongsTo('App\\Models\\Admin\\Location\\District');\n }", "function get_distributor_dt($channelID, $provinsi)\n\t{\n\n\t\t$channelID = $this->db->escape_str($channelID);\n\t\t$provinsi = $this->db->escape_str($provinsi);\n\n\t\t$channel_id = \"dist_channel_id='{$channelID}' AND dist_status='1' \";\n\n\t\tif (!empty($provinsi)){\n\t\t\t$channel_id = $channel_id . \" AND dist_market_area REGEXP '[[:<:]]{$provinsi}[[:>:]]' = 1 \";\n\t\t}\n\t\t\n\t\t// variable initialization\n\t\t$search \t\t= \"\";\n\t\t$start \t\t\t= 0;\n\t\t$rows \t\t\t= 20;\n\t\t$iTotal \t\t= 0;\n\t\t$iFilteredTotal = 0;\n\t\t$_sql_where \t= array($channel_id);\n\t\t$sql_where \t\t= '';\n\t\t$cols \t\t\t= array( \"dist_id\" );\n\t\t$sort \t\t\t= \"asc\";\n\t\t\n\t\t// get search value (if any)\n\t\tif (isset($_GET['sSearch']) && $_GET['sSearch'] != \"\" ) {\n\t\t\t$search = $_GET['sSearch'];\n\t\t}\n\n\t\t// limit\n\t\t$start = $this->datatables_model->get_start();\n\t\t$rows = $this->datatables_model->get_rows();\n\t\t// sort\n\t\t$sort = $this->datatables_model->get_sort($cols);\n\t\t$sort_dir = $this->datatables_model->get_sort_dir();\n\t\t \n // Running Query Total Row\n\t\t$sql = \" SELECT count(0) as iTotal FROM {$this->distributor} LEFT JOIN {$this->province} p ON (prov_id=dist_province_id) WHERE {$channel_id}\";\n\n\t\t$q = $this->db->query($sql);\n\t\t$iTotal = $q->row('iTotal');\n\n\t\t$q->free_result();\n\n\t\t// Kolom Pencarian\n\t\tif( $search!='' ){\n\t\t\t$_sql_where[] = \"\n\t\t\t\t(\n\t\t\t\t\tUCASE(dist_name) LIKE '%\".strtoupper($this->db->escape_str($search)).\"%'\n\t\t\t\t\tOR\n\t\t\t\t\tUCASE(dist_city) LIKE '%\".strtoupper($this->db->escape_str($search)).\"%'\n\t\t\t\t\tOR\n\t\t\t\t\tUCASE(dist_address_1) LIKE '%\".strtoupper($this->db->escape_str($search)).\"%'\n\t\t\t\t\tOR\n\t\t\t\t\tUCASE(dist_address_2) LIKE '%\".strtoupper($this->db->escape_str($search)).\"%'\n\t\t\t\t\tOR\n\t\t\t\t\tUCASE(dist_address_3) LIKE '%\".strtoupper($this->db->escape_str($search)).\"%'\n\t\t\t\t\tOR\n\t\t\t\t\tUCASE(prov_name) LIKE '%\".strtoupper($this->db->escape_str($search)).\"%'\n\t\t\t\t)\n\t\t\t\";\n\t\t}\n\n\t\tif(count($_sql_where)>0) $sql_where = \" WHERE \".implode(' AND ',$_sql_where);\t\n\n\t\t$sql = \"SELECT dist_id, dist_name, dist_address_1, dist_address_2, dist_address_3, dist_telp, dist_fax, dist_email, dist_market_area, dist_market_area_city, \n\t\t\t\tprov_name, sd_id \n\t\t\t\tFROM {$this->distributor}\n\t\t\t\tLEFT JOIN {$this->province} p ON (prov_id=dist_province_id) \n\t\t\t\tLEFT JOIN {$this->sub_distributor} s ON (s.sd_distributor_id=dist_id)\n\t\t\t\t$sql_where \n\t\t\t\tGROUP BY dist_id\";\n\n\t\tif($sort!='' && $sort_dir!='') $order = \" ORDER BY $sort $sort_dir \";\n\t\t\n\t\t$query = $this->db->query($sql. $order. \" LIMIT $start,$rows \");\n\t\t$data = $query->result_array();\n\n\t\tif( $search!='' ){\n\t\t\t$iFilteredTotal = count($query->result());\n\t\t}else{\n\t\t\t$iFilteredTotal = $iTotal;\n\t\t}\n\n\t\t$query->free_result();\n\n // query Province\n $sql_p = \"SELECT prov_id, prov_name FROM {$this->province}\";\n $query = $this->db->query($sql_p);\n $propinsi = $query->result_array();\n $query->free_result();\n\t\t\n\t\t// ----- START Looping dapatkan nama provinsi sesuai market area ------\n\t\t$loop = count($data);\n\t\tif ($loop > 0)\n\t\t{\n\n\t for ($i=0; $i < $loop; $i++) { \n\t\t\t\t$nama_prov = array();\n\t\t\t\t$tmp = array();\n\n\t\t\t\t$market_id = explode(',', $data[$i]['dist_market_area']);\n\t\t\t\t$total_market = count($market_id);\n\n\t \tif ($total_market > 0){\n\t \t\tfor ($j=0; $j < $total_market; $j++) { \n\t\t \t\t$is_found = $this->in_array_r($propinsi, 'prov_id', $market_id[$j]);\n\t\t \t\t$nama_prov[] = $is_found;\n\t\t \t}\t\n\t \t}\n\n\t \t$nama_prov = implode(', ', $nama_prov);\n\t \t$tmp['wilayah_pemasaran']= $nama_prov;\n\t \t$gabung = array_merge($data[$i], $tmp);\n\t \t// print_r(array_merge($data[$i], $tmp));\n\n\t \t$final_data[$i] = $gabung;\n\t }\n\t // ------ END Looping -------\n\t }else{\n\t \t$final_data = $data;\n\t }\n\n /*_d($final_data);\n exit;*/\n\n\n // * Output \n $output = array(\n \"sEcho\" => $this->datatables_model->get_echo(),\n \"iTotalRecords\" => $iTotal,\n \"iTotalDisplayRecords\" => $iFilteredTotal,\n \"aaData\" => $final_data\n );\n\n\t\treturn json_encode($output);\n\t}", "public function district()\n {\n return $this->belongsTo('App\\models\\addressDistrictModel', 'district_id');\n }", "public function district()\n {\n return $this->belongsTo('App\\District');\n }", "public function district()\n {\n return $this->belongsTo('App\\District');\n }", "public function district()\n {\n return $this->hasOne('App\\District','id','district_id');\n }", "public function days() {\n\t\tforeach ( self::$_days as $day => $day_title ) {\n\t\t\t$day_weather = $this->_weather [$day];\n\t\t\t$condition = $day_weather ['condition'];\n\t\t\t$temp = $day_weather ['temp'];\n\t\t\t$wind = $day_weather ['wind'];\n\t\t\t$pm25 = isset ( $day_weather ['pm25'] ) ? ( int ) $day_weather ['pm25'] : 0;\n\t\t\tempty ( $pm25 ) && $pm25 = '未知';\n\t\t\t$date = $day_weather ['date'];\n\t\t\t$time = $day_weather ['time'];\n\t\t\t$icon = $day_weather ['imgs'] [0];\n\t\t\tif (isset ( $this->_workflow )) {\n\t\t\t\t$this->_workflow->result ( 'weather_' . $day, $day_weather ['link'], \"{$time} {$day_title},{$condition}\", \"气温{$temp},{$wind},PM2.5:{$pm25},{$date}\", 'icon/' . $icon . '.jpg' );\n\t\t\t}\n\t\t}\n\t}", "public function show(Districts $districts)\n {\n //\n }", "public function show($id)\n {\n $district=DeliveryTime::with('district')->where('divisionId',$id)->distinct('districtId')->get('districtId');\n return response()->json($district);\n }", "public function district(){\n return $this->belongsTo('App\\District', 'district_id');\n }", "public function get_district($country, $type, $province) {\n $this->db->select('district, name');\n $array = array('type' => $type, 'country' => $country, 'province' => $province);\n $this->db->where($array);\n $query = $this->db->get('location');\n return $query->result(); \n }", "function get_districts($id)\n{\n $url = set_url('disctricts');\n $url .= '?city_id=' . $id;\n $token = $_SESSION['token'];\n $cURLConnection = curl_init($url);\n curl_setopt($cURLConnection, CURLOPT_HTTPHEADER, ['Content-Type: application/json', 'Authorization: Bearer ' . $token,]);\n curl_setopt($cURLConnection, CURLOPT_RETURNTRANSFER, true);\n $apiResponse = curl_exec($cURLConnection);\n curl_close($cURLConnection);\n print_r($apiResponse);\n exit;\n}", "public function districts(){\n return $this->hasMany(District::class);\n }", "public function run(): void\n {\n $districts = XrefDistrict::where('ddsa_code', 'like', '04%')->get()->pluck('id', 'ddsa_code');\n\n $data_seeds = [\n /*\n * melaka\n */\n /*\n * === MELAKA TENGAH\n */\n ['ddsa_code' => '040101', 'name' => 'Alai', 'level' => 1, 'xref_district_id' => '0401'],\n ['ddsa_code' => '040102', 'name' => 'Ayer Molek', 'level' => 1, 'xref_district_id' => '0401'],\n ['ddsa_code' => '040103', 'name' => 'Bachang', 'level' => 1, 'xref_district_id' => '0401'],\n ['ddsa_code' => '040104', 'name' => 'Balai Panjang', 'level' => 1, 'xref_district_id' => '0401'],\n ['ddsa_code' => '040105', 'name' => 'Batu Berendam', 'level' => 1, 'xref_district_id' => '0401'],\n ['ddsa_code' => '040106', 'name' => 'Bertam', 'level' => 1, 'xref_district_id' => '0401'],\n ['ddsa_code' => '040107', 'name' => 'Bukit Baru', 'level' => 1, 'xref_district_id' => '0401'],\n ['ddsa_code' => '040108', 'name' => 'Bukit Katil', 'level' => 1, 'xref_district_id' => '0401'],\n ['ddsa_code' => '040109', 'name' => 'Bukit Lintang', 'level' => 1, 'xref_district_id' => '0401'],\n ['ddsa_code' => '040110', 'name' => 'Bukit Piatu', 'level' => 1, 'xref_district_id' => '0401'],\n ['ddsa_code' => '040111', 'name' => 'Bukit Rambai', 'level' => 1, 'xref_district_id' => '0401'],\n ['ddsa_code' => '040112', 'name' => 'Cheng', 'level' => 1, 'xref_district_id' => '0401'],\n ['ddsa_code' => '040113', 'name' => 'Duyong', 'level' => 1, 'xref_district_id' => '0401'],\n ['ddsa_code' => '040114', 'name' => 'Ujong Pasir', 'level' => 1, 'xref_district_id' => '0401'],\n ['ddsa_code' => '040115', 'name' => 'Kandang', 'level' => 1, 'xref_district_id' => '0401'],\n ['ddsa_code' => '040116', 'name' => 'Klebang Besar', 'level' => 1, 'xref_district_id' => '0401'],\n ['ddsa_code' => '040117', 'name' => 'Klebang Kechil', 'level' => 1, 'xref_district_id' => '0401'],\n ['ddsa_code' => '040118', 'name' => 'Krubong', 'level' => 1, 'xref_district_id' => '0401'],\n ['ddsa_code' => '040119', 'name' => 'Padang Semabok', 'level' => 1, 'xref_district_id' => '0401'],\n ['ddsa_code' => '040120', 'name' => 'Padang Temu', 'level' => 1, 'xref_district_id' => '0401'],\n ['ddsa_code' => '040121', 'name' => 'Paya Rumput', 'level' => 1, 'xref_district_id' => '0401'],\n ['ddsa_code' => '040122', 'name' => 'Pringgit', 'level' => 1, 'xref_district_id' => '0401'],\n ['ddsa_code' => '040123', 'name' => 'Pernu', 'level' => 1, 'xref_district_id' => '0401'],\n ['ddsa_code' => '040124', 'name' => 'Semabok', 'level' => 1, 'xref_district_id' => '0401'],\n ['ddsa_code' => '040125', 'name' => 'Sungai Udang', 'level' => 1, 'xref_district_id' => '0401'],\n ['ddsa_code' => '040126', 'name' => 'Tangga Batu', 'level' => 1, 'xref_district_id' => '0401'],\n ['ddsa_code' => '040127', 'name' => 'Tanjong Keling', 'level' => 1, 'xref_district_id' => '0401'],\n ['ddsa_code' => '040128', 'name' => 'Tanjong Minyak', 'level' => 1, 'xref_district_id' => '0401'],\n ['ddsa_code' => '040129', 'name' => 'Telok Mas', 'level' => 1, 'xref_district_id' => '0401'],\n\n ['ddsa_code' => '040140', 'name' => 'Bandar Bukit Baru', 'level' => 2, 'xref_district_id' => '0401'],\n ['ddsa_code' => '040141', 'name' => 'Bandar Melaka', 'level' => 2, 'xref_district_id' => '0401'],\n\n ['ddsa_code' => '040170', 'name' => 'Pekan Ayer Molek', 'level' => 3, 'xref_district_id' => '0401'],\n ['ddsa_code' => '040171', 'name' => 'Pekan Batu Berendam', 'level' => 3, 'xref_district_id' => '0401'],\n ['ddsa_code' => '040172', 'name' => 'Pekan Bukit Rambai', 'level' => 3, 'xref_district_id' => '0401'],\n ['ddsa_code' => '040173', 'name' => 'Pekan Kandang', 'level' => 3, 'xref_district_id' => '0401'],\n ['ddsa_code' => '040174', 'name' => 'Pekan Klebang', 'level' => 3, 'xref_district_id' => '0401'],\n ['ddsa_code' => '040175', 'name' => 'Pekan Paya Rumput', 'level' => 3, 'xref_district_id' => '0401'],\n ['ddsa_code' => '040176', 'name' => 'Pekan Sungai Udang', 'level' => 3, 'xref_district_id' => '0401'],\n ['ddsa_code' => '040177', 'name' => 'Pekan Tangga Batu', 'level' => 3, 'xref_district_id' => '0401'],\n ['ddsa_code' => '040178', 'name' => 'Pekan Tanjong Kling', 'level' => 3, 'xref_district_id' => '0401'],\n /*\n * === JASIN\n */\n ['ddsa_code' => '040201', 'name' => 'Ayer Panas', 'level' => 1, 'xref_district_id' => '0402'],\n ['ddsa_code' => '040202', 'name' => 'Batang Malaka', 'level' => 1, 'xref_district_id' => '0402'],\n ['ddsa_code' => '040203', 'name' => 'Bukit Senggeh', 'level' => 1, 'xref_district_id' => '0402'],\n ['ddsa_code' => '040204', 'name' => 'Chabau', 'level' => 1, 'xref_district_id' => '0402'],\n ['ddsa_code' => '040205', 'name' => 'Chin Chin', 'level' => 1, 'xref_district_id' => '0402'],\n ['ddsa_code' => '040206', 'name' => 'Chohong', 'level' => 1, 'xref_district_id' => '0402'],\n ['ddsa_code' => '040207', 'name' => 'Jasin', 'level' => 1, 'xref_district_id' => '0402'],\n ['ddsa_code' => '040208', 'name' => 'Jus', 'level' => 1, 'xref_district_id' => '0402'],\n ['ddsa_code' => '040209', 'name' => 'Kesang', 'level' => 1, 'xref_district_id' => '0402'],\n ['ddsa_code' => '040210', 'name' => 'Merlimau', 'level' => 1, 'xref_district_id' => '0402'],\n ['ddsa_code' => '040211', 'name' => 'Nyalas', 'level' => 1, 'xref_district_id' => '0402'],\n ['ddsa_code' => '040212', 'name' => 'Rim', 'level' => 1, 'xref_district_id' => '0402'],\n ['ddsa_code' => '040213', 'name' => 'Sebatu', 'level' => 1, 'xref_district_id' => '0402'],\n ['ddsa_code' => '040214', 'name' => 'Selandar', 'level' => 1, 'xref_district_id' => '0402'],\n ['ddsa_code' => '040215', 'name' => 'Sempang', 'level' => 1, 'xref_district_id' => '0402'],\n ['ddsa_code' => '040216', 'name' => 'Semujok', 'level' => 1, 'xref_district_id' => '0402'],\n ['ddsa_code' => '040217', 'name' => 'Serkam', 'level' => 1, 'xref_district_id' => '0402'],\n ['ddsa_code' => '040218', 'name' => 'Sungei Rambai', 'level' => 1, 'xref_district_id' => '0402'],\n ['ddsa_code' => '040219', 'name' => 'Tedong', 'level' => 1, 'xref_district_id' => '0402'],\n ['ddsa_code' => '040220', 'name' => 'Umbai', 'level' => 1, 'xref_district_id' => '0402'],\n\n ['ddsa_code' => '040240', 'name' => 'Bandar Jasin', 'level' => 2, 'xref_district_id' => '0402'],\n ['ddsa_code' => '040241', 'name' => 'Bandar Merlimau', 'level' => 2, 'xref_district_id' => '0402'],\n\n ['ddsa_code' => '040270', 'name' => 'Pekan Asahan', 'level' => 3, 'xref_district_id' => '0402'],\n ['ddsa_code' => '040271', 'name' => 'Pekan Batang Malaka', 'level' => 3, 'xref_district_id' => '0402'],\n ['ddsa_code' => '040272', 'name' => 'Pekan Bemban', 'level' => 3, 'xref_district_id' => '0402'],\n ['ddsa_code' => '040273', 'name' => 'Pekan Chin Chin', 'level' => 3, 'xref_district_id' => '0402'],\n ['ddsa_code' => '040274', 'name' => 'Pekan Kesang Pajak', 'level' => 3, 'xref_district_id' => '0402'],\n ['ddsa_code' => '040275', 'name' => 'Pekan Nyalas', 'level' => 3, 'xref_district_id' => '0402'],\n ['ddsa_code' => '040276', 'name' => 'Pekan Selandar', 'level' => 3, 'xref_district_id' => '0402'],\n ['ddsa_code' => '040277', 'name' => 'Pekan Sempang Bekoh', 'level' => 3, 'xref_district_id' => '0402'],\n ['ddsa_code' => '040278', 'name' => 'Pekan Sungai Rambai', 'level' => 3, 'xref_district_id' => '0402'],\n /*\n * === ALOR GAJAR\n */\n ['ddsa_code' => '040301', 'name' => \"Ayer Pa'abas\", 'level' => 1, 'xref_district_id' => '0403'],\n ['ddsa_code' => '040302', 'name' => 'Belimbing', 'level' => 1, 'xref_district_id' => '0403'],\n ['ddsa_code' => '040303', 'name' => 'Beringin', 'level' => 1, 'xref_district_id' => '0403'],\n ['ddsa_code' => '040304', 'name' => 'Brisu', 'level' => 1, 'xref_district_id' => '0403'],\n ['ddsa_code' => '040305', 'name' => 'Durian Tunggal', 'level' => 1, 'xref_district_id' => '0403'],\n ['ddsa_code' => '040306', 'name' => 'Gadek', 'level' => 1, 'xref_district_id' => '0403'],\n ['ddsa_code' => '040307', 'name' => 'Kelemak', 'level' => 1, 'xref_district_id' => '0403'],\n ['ddsa_code' => '040308', 'name' => 'Kemuning', 'level' => 1, 'xref_district_id' => '0403'],\n ['ddsa_code' => '040309', 'name' => 'Kuala Linggi', 'level' => 1, 'xref_district_id' => '0403'],\n ['ddsa_code' => '040310', 'name' => 'Kuala Sungei Baru', 'level' => 1, 'xref_district_id' => '0403'],\n ['ddsa_code' => '040311', 'name' => 'Lendu', 'level' => 1, 'xref_district_id' => '0403'],\n ['ddsa_code' => '040312', 'name' => 'Machap', 'level' => 1, 'xref_district_id' => '0403'],\n ['ddsa_code' => '040313', 'name' => 'Masjid Tanah', 'level' => 1, 'xref_district_id' => '0403'],\n ['ddsa_code' => '040314', 'name' => 'Melaka Pindah', 'level' => 1, 'xref_district_id' => '0403'],\n ['ddsa_code' => '040315', 'name' => 'Melekek', 'level' => 1, 'xref_district_id' => '0403'],\n ['ddsa_code' => '040316', 'name' => 'Padang Sebang', 'level' => 1, 'xref_district_id' => '0403'],\n ['ddsa_code' => '040317', 'name' => 'Parit Melana', 'level' => 1, 'xref_district_id' => '0403'],\n ['ddsa_code' => '040318', 'name' => 'Pegoh', 'level' => 1, 'xref_district_id' => '0403'],\n ['ddsa_code' => '040319', 'name' => 'Pulau Sebang', 'level' => 1, 'xref_district_id' => '0403'],\n ['ddsa_code' => '040320', 'name' => 'Ramuan China Besar', 'level' => 1, 'xref_district_id' => '0403'],\n ['ddsa_code' => '040321', 'name' => 'Ramuan China Kechil', 'level' => 1, 'xref_district_id' => '0403'],\n ['ddsa_code' => '040322', 'name' => 'Rembia', 'level' => 1, 'xref_district_id' => '0403'],\n ['ddsa_code' => '040323', 'name' => 'Sungei Baru Hilir', 'level' => 1, 'xref_district_id' => '0403'],\n ['ddsa_code' => '040324', 'name' => 'Sungei Baru Tengah', 'level' => 1, 'xref_district_id' => '0403'],\n ['ddsa_code' => '040325', 'name' => 'Sungei Baru Ulu', 'level' => 1, 'xref_district_id' => '0403'],\n ['ddsa_code' => '040326', 'name' => 'Sungei Buloh', 'level' => 1, 'xref_district_id' => '0403'],\n ['ddsa_code' => '040327', 'name' => 'Sungei Petai', 'level' => 1, 'xref_district_id' => '0403'],\n ['ddsa_code' => '040328', 'name' => 'Sungei Siput', 'level' => 1, 'xref_district_id' => '0403'],\n ['ddsa_code' => '040329', 'name' => 'Taboh Naning', 'level' => 1, 'xref_district_id' => '0403'],\n ['ddsa_code' => '040330', 'name' => 'Tanjong Rimau', 'level' => 1, 'xref_district_id' => '0403'],\n ['ddsa_code' => '040331', 'name' => 'Tebong', 'level' => 1, 'xref_district_id' => '0403'],\n\n ['ddsa_code' => '040340', 'name' => 'Bandar Alor Gajah', 'level' => 2, 'xref_district_id' => '0403'],\n ['ddsa_code' => '040341', 'name' => 'Bandar Masjid Tanah', 'level' => 2, 'xref_district_id' => '0403'],\n ['ddsa_code' => '040342', 'name' => 'Bandar Pulau Sebang', 'level' => 2, 'xref_district_id' => '0403'],\n\n ['ddsa_code' => '040370', 'name' => 'Pekan Durian Tunggal', 'level' => 3, 'xref_district_id' => '0403'],\n ['ddsa_code' => '040371', 'name' => 'Pekan Kuala Sungai BARU', 'level' => 3, 'xref_district_id' => '0403'],\n ['ddsa_code' => '040372', 'name' => 'Pekan Lubok China', 'level' => 3, 'xref_district_id' => '0403'],\n ['ddsa_code' => '040373', 'name' => 'Pekan Rembia', 'level' => 3, 'xref_district_id' => '0403'],\n ];\n\n foreach ($data_seeds as $seed) {\n $seed['xref_district_id'] = $districts[$seed['xref_district_id']];\n XrefSubdistrict::create($seed);\n }\n }", "public function getDistricts()\n {\n return $this->hasMany(Districts::className(), ['regency_id' => 'id']);\n }", "public function index()\n {\n $districts = [];\n if(isset($_GET['country'])){\n $country = Country::where('id',$_GET['country'])->first();\n }else{\n $country = Country::first();\n }\n $s_country = $country;\n $states = $country->states;\n $countries = Country::all();\n\n if(isset($_GET['state'])){\n $state = State::where('id',$_GET['state'])->first();\n }else{\n $state = $country->states->first();\n }\n if($state){\n $districts = $state->districts;\n }\n\n $s_state = $state;\n return view('admin.district.index',compact('countries','s_country','states','s_state','districts'));\n }", "public function index()\n {\n\n $districts=District::join('divisions','divisions.id','districts.division_id')\n ->select(\n 'districts.id',\n 'districts.district_name',\n 'divisions.division_name'\n )->paginate(10);\n\n return view('district.view',compact('districts'));\n }", "public function run()\n {\n $districts = [\n ['name' => 'Dhaka', 'parent_id' => null],['name' => 'Chattogram', 'parent_id' => null],\n ['name' => 'Sylhet', 'parent_id' => null],['name' => 'Rajshahi', 'parent_id' => null],\n ['name' => 'Rangpur', 'parent_id' => null],['name' => 'Khulna', 'parent_id' => null],\n ['name' => 'Barisal', 'parent_id' => null],['name' => 'Mymensingh', 'parent_id' => null],\n \n ['name' => 'Dhaka', 'parent_id' => 1],['name' => 'Gazipur', 'parent_id' => 1],\n ['name' => 'Narayanganj', 'parent_id' => 1],['name' => 'Narsingdi', 'parent_id' => 1],\n ['name' => 'Manikganj', 'parent_id' => 1],['name' => 'Kishoreganj', 'parent_id' => 1], \n ['name' => 'Chattogram', 'parent_id' => 2],['name' => \"Cox's Bazar\", 'parent_id' => 2], \n ['name' => 'Rangamati', 'parent_id' => 2],['name' => 'Bandarban', 'parent_id' => 2],\n ['name' => 'Khagrachhari', 'parent_id' => 2],['name' => 'Cumilla', 'parent_id' => 2],\n ['name' => 'Noakhali', 'parent_id' => 2],['name' => 'Feni', 'parent_id' => 2],\n ['name' => 'Sunamganj', 'parent_id' => 3],['name' => 'Sylhet', 'parent_id' => 3],\n ['name' => 'Joypurhat', 'parent_id' => 4],['name' => 'Rajshahi', 'parent_id' => 4],\n ['name' => 'Rangpur', 'parent_id' => 5],['name' => 'Kurigram', 'parent_id' => 5],\n ['name' => 'Bagerhat', 'parent_id' => 6],['name' => 'Khulna', 'parent_id' => 6],\n ['name' => 'Barguna', 'parent_id' => 7],['name' => 'Barisal', 'parent_id' => 7],\n ['name' => 'Netrokona', 'parent_id' => 8],['name' => 'Mymensingh', 'parent_id' => 8],\n ];\n\n foreach ($districts as $district) {\n District::create(array(\n 'name' => $district[\"name\"],\n 'parent_id' => $district[\"parent_id\"],\n 'created_at' => now(),\n 'updated_at' => now(),\n ));\n }\n }", "public function District()\n {\n return $this->belongsTo('App\\District');\n }", "public function district(Request $request, $id)\n {\n $district = Taxonomy::where('parent_id', $id)->get();\n if (count($district)) {\n return response()->json($district);\n } else {\n return response()->json();\n }\n }", "public function nsdKhulnaNsd($date=null)\n {\n\n $zone = \\Request::segment(3);\n $organization = \\Request::segment(4);\n $lastUpldatedDateTime = $date;\n\n $zoneInfo = Zone::where('alise','=',$zone)->first();\n $navalLocation = NsdName::where('alise','=',$organization)->orderBy('id')->first();\n\n \n $data['zone'] = $zone;\n $data['organization'] = $organization;\n $data['date'] = $date;\n\n $data['suppliers'] = DB::table($zoneInfo->alise.'_suppliers')\n // ->where('status_id','=',1)\n ->whereRaw(\"find_in_set('\".$navalLocation->id.\"',registered_nsd_id)\")\n ->where(function($query) use ($lastUpldatedDateTime){\n $query->whereDate('created_at','>',$lastUpldatedDateTime);\n $query->orWhereDate('updated_at', '>', $lastUpldatedDateTime);\n })->get();\n\n $data['suppliers_personal_infos'] = DB::table($zoneInfo->alise.'_suppliers_personal_info')\n // ->where('status_id','=',1)\n ->where(function($query) use ($lastUpldatedDateTime){\n $query->whereDate('created_at','>',$lastUpldatedDateTime);\n $query->orWhereDate('updated_at', '>', $lastUpldatedDateTime);\n })->get();\n\n return $data;\n }", "public function show()\n\t{\n\t\ttry {\n\n\t\t$state_id = Input::get('state_id');\n\t\t$township_id = Input::get('township_id');\n\t\t$academic_year = Input::get('academic_year');\n\t\t\t\n\t\tif(isset($township_id)) {\n\n\t\t\t$q = \"SELECT *\";\n\t\t\n\t\t} else {\n\t\t\n\t\t\t$q = \"SELECT state_id,state_division\";\n\t\t\n\t\t}\n\n\t\t$q .= \" FROM v_state_township WHERE state_id = \".$state_id.\" AND (township_id = '\".$township_id.\"' OR '' = '\".$township_id.\"') GROUP BY state_id\";\n\n\t\t$region = DB::select(DB::raw($q));\n\n\t\t$dtSchool=DB::select(\"SELECT SUM(student_intake.total_boy)+SUM(student_intake.total_girl) AS total_students,student_intake.grade,v_school.school_no,v_school.school_name,v_school.location,v_school.school_level,teacher_count.primary_no,teacher_count.jat_no,teacher_count.sat_no,teacher_count.head_no,teacher_count.office_staff_no FROM v_school LEFT JOIN student_intake ON v_school.school_id=student_intake.school_id and v_school.school_year=student_intake.school_year LEFT JOIN teacher_count ON v_school.school_id=teacher_count.school_id AND v_school.school_year=teacher_count.school_year WHERE (v_school.state_divsion_id = '\".$state_id.\"' OR ''='\".$state_id.\"') AND (v_school.township_id ='\".$township_id.\"' OR ''='\".$township_id.\"') AND (student_intake.school_year='\".$academic_year.\"' OR ''='\".$academic_year.\"') GROUP BY v_school.school_no,student_intake.grade \");\n\n\t\t\tfor($i = 0; $i < count($dtSchool); $i++) {\n\n\t\t\tif($dtSchool[$i]->location == \"Rural\") {\n\t\t\t\t$rural_level[] = $dtSchool[$i]->school_level;\n\t\t\t}\n\n\t\t\tif($dtSchool[$i]->location == \"Urban\") {\n\t\t\t\t$urban_level[] = $dtSchool[$i]->school_level;\n\t\t\t}\n\n\t\t}\n\t\t$rural_levels = array_values(array_unique($rural_level));\n\t\t$urban_levels = array_values(array_unique($urban_level));\n\t\tfor($row=0;$row<count($rural_levels);$row++){\n\t\t\t///rural\n\t\t\t$pri_count=0;$mid_count=0;$high_count=0;$pri_count25=0;$mid_count25=0;$high_count25=0;$pri_count30=0;$mid_count30=0;$high_count30=0;$pri_count35=0;$mid_count35=0;$high_count35=0; $pri_count40=0;$mid_count40=0;$high_count40=0;$pri_count45=0;$mid_count45=0;$high_count45=0;$pri_count50=0;$mid_count50=0;$high_count50=0;$pri_count60=0;$mid_count60=0;$high_count60=0;\n\t\t\t///urban\n\n\t\t\tfor($a=0;$a<count($dtSchool);$a++)\n\t\t\t{\n\t\t\t\tif($dtSchool[$a]->school_level == $rural_levels[$row] && $dtSchool[$a]->location==\"Rural\") \n\t\t\t\t{\n\t\t\t\t\t $j=$a;$total5=\"\";$total9=\"\";$total11=\"\";$pri_ratio=\"\";$mid_ratio=\"\";$high_ratio=\"\";\n\n\t\t\t\t\t\t$school_location=$dtSchool[$a]->location;\n\t\t\t\t\t\t$school_level=$dtSchool[$a]->school_level;\n\n\t\t\t\t\t\t$g1=\"\";$g2=\"\";$g3=\"\";$g4=\"\";$g5=\"\";\n\t\t\t\t\t\t\tif($dtSchool[$a]->grade=='01') {\n\t\t\t\t\t\t\t\t$g1=$dtSchool[$a]->total_students;\n\t\t\t\t\t\t\t\tif ($a!=count($dtSchool)-1 && $dtSchool[$a+1]->school_no==$dtSchool[$a]->school_no) {\n\t\t\t\t\t\t\t\t\t$a+=1;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\tif($dtSchool[$a]->grade=='02') {\n\t\t\t\t\t\t$g2=$dtSchool[$a]->total_students;\n\t\t\t\t\t\tif ($a!=count($dtSchool)-1 && $dtSchool[$a+1]->school_no==$dtSchool[$a]->school_no) {\n\t\t\t\t\t\t\t$a+=1;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif($dtSchool[$a]->grade=='03') {\n\t\t\t\t\t\t$g3=$dtSchool[$a]->total_students;\n\t\t\t\t\t\tif ($a!=count($dtSchool)-1 && $dtSchool[$a+1]->school_no==$dtSchool[$a]->school_no) {\n\t\t\t\t\t\t\t$a+=1;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif($dtSchool[$a]->grade=='04') {\n\t\t\t\t\t\t$g4=$dtSchool[$a]->total_students;\n\t\t\t\t\t\tif ($a!=count($dtSchool)-1 && $dtSchool[$a+1]->school_no==$dtSchool[$a]->school_no) {\n\t\t\t\t\t\t\t$a+=1;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif ($dtSchool[$a]->grade=='05') {\n\t\t\t\t\t\t$g5=$dtSchool[$a]->total_students;\n\t\t\t\t\t\tif ($a!=count($dtSchool)-1 && $dtSchool[$a+1]->school_no==$dtSchool[$a]->school_no) {\n\t\t\t\t\t\t\t$a+=1;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t$total5=$g1+$g2+$g3+$g4+$g5;\n\n\t\t\t\tif ($dtSchool[$j]->primary_no!=0 && $dtSchool[$j]->primary_no!='' && $total5!=0) \n\t\t\t\t{\n\t\t\t\t\t$pri_ratio=$total5/$dtSchool[$j]->primary_no+$dtSchool[$j]->head_no;\n\t\t\t\t\t$pri_ratio;\n\t\t\t\t}\n\t\t\t\t$g6=\"\";$g7=\"\";$g8=\"\";$g9=\"\";\n\t\t\t\t\tif($dtSchool[$a]->grade=='06') {\n\t\t\t\t\t\t$g6=$dtSchool[$a]->total_students;\n\t\t\t\t\t\tif ($a!=count($dtSchool)-1 && $dtSchool[$a+1]->school_no==$dtSchool[$a]->school_no) {\n\t\t\t\t\t\t\t$a+=1;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif($dtSchool[$a]->grade=='07') {\n\t\t\t\t\t\t$g7=$dtSchool[$a]->total_students;\n\t\t\t\t\t\tif ($a!=count($dtSchool)-1 && $dtSchool[$a+1]->school_no==$dtSchool[$a]->school_no) {\n\t\t\t\t\t\t\t$a+=1;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif($dtSchool[$a]->grade=='08') {\n\t\t\t\t\t\t$g8=$dtSchool[$a]->total_students;\n\t\t\t\t\t\tif ($a!=count($dtSchool)-1 && $dtSchool[$a+1]->school_no==$dtSchool[$a]->school_no) {\n\t\t\t\t\t\t\t$a+=1;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif($dtSchool[$a]->grade=='09') {\n\t\t\t\t\t\t$g9=$dtSchool[$a]->total_students;\n\t\t\t\t\t\tif ($a!=count($dtSchool)-1 && $dtSchool[$a+1]->school_no==$dtSchool[$a]->school_no) {\n\t\t\t\t\t\t\t$a+=1;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t $total9=$g6+$g7+$g8+$g9;\n\t\t\t\tif ($dtSchool[$j]->jat_no!=0 && $dtSchool[$j]->jat_no!='' && $total9!=0) \n\t\t\t\t{\n\t\t\t\t\t$mid_ratio=$total9/$dtSchool[$j]->jat_no+$dtSchool[$j]->sat_no;\n\t\t\t\t\t$pri_mid=$pri_ratio+$mid_ratio;\n\t\t\t\t}\n\n\t\t\t\t$g10=\"\";$g11=\"\";\n\t\t\t\t\tif($dtSchool[$a]->grade=='10') {\n\t\t\t\t\t\t$g10=$dtSchool[$a]->total_students;\n\t\t\t\t\t\tif ($a!=count($dtSchool)-1 && $dtSchool[$a+1]->school_no==$dtSchool[$a]->school_no) {\n\t\t\t\t\t\t\t$a+=1;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif($dtSchool[$a]->grade=='11') {\n\t\t\t\t\t\t$g11=$dtSchool[$a]->total_students;\n\t\t\t\t\t\tif ($a!=count($dtSchool)-1 && $dtSchool[$a+1]->school_no==$dtSchool[$a]->school_no) {\n\t\t\t\t\t\t\t$a+=1;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t$total11=$g10+$g11;\n\t\t\t\t\tif ($dtSchool[$j]->sat_no!=0 && $dtSchool[$j]->sat_no!='' && $total11!=0) \n\t\t\t\t\t{\n\t\t\t\t\t\t$high_ratio=$total11/$dtSchool[$j]->sat_no+$dtSchool[$j]->sat_no;\n\t\t\t\t\t\t$pri_mid_high=$pri_ratio+$mid_ratio+$high_ratio;\n\t\t\t\t\t}\n\n\t\t\t\t\tif($pri_ratio==0)\n\t\t\t\t\t{\n\t\t\t\t\t\t$pri_count=$pri_count+1;\n\t\t\t\t\t}\n\t\t\t\t\tif ($mid_ratio==0)\n\t\t\t\t\t{\n\t\t\t\t\t\t$mid_count=$mid_count+1;\n\t\t\t\t\t}\n\t\t\t\t\tif ($high_ratio==0)\n\t\t\t\t\t{\n\t\t\t\t\t\t$high_count=$high_count+1;\n\t\t\t\t\t}\n\t\t\t\t\t///25\n\t\t\t\t\tif($pri_ratio>0 && $pri_ratio<25)\n\t\t\t\t\t{\n\t\t\t\t\t\t$pri_count25=$pri_count25+1;\n\t\t\t\t\t}\n\t\t\t\t\tif ($mid_ratio>0 && $mid_ratio<25)\n\t\t\t\t\t{\n\t\t\t\t\t\t$mid_count25=$mid_count25+1;\n\t\t\t\t\t}\n\t\t\t\t\tif ($high_ratio>0 && $high_ratio<25)\n\t\t\t\t\t{\n\t\t\t\t\t\t$high_count25=$high_count25+1;\n\t\t\t\t\t}\n\t\t\t\t\t////30\n\t\t\t\t\tif($pri_ratio>25 && $pri_ratio<30)\n\t\t\t\t\t{\n\t\t\t\t\t\t$pri_count30=$pri_count30+1;\n\t\t\t\t\t}\n\t\t\t\t\tif ($mid_ratio>25 && $mid_ratio<30)\n\t\t\t\t\t{\n\t\t\t\t\t\t$mid_count30=$mid_count30+1;\n\t\t\t\t\t}\n\t\t\t\t\tif ($high_ratio>25 && $high_ratio<30)\n\t\t\t\t\t{\n\t\t\t\t\t\t$high_count30=$high_count30+1;\n\t\t\t\t\t}\n\t\t\t\t\t////35\n\t\t\t\t\tif($pri_ratio>30 && $pri_ratio<35)\n\t\t\t\t\t{\n\t\t\t\t\t\t$pri_count35=$pri_count35+1;\n\t\t\t\t\t}\n\t\t\t\t\tif ($mid_ratio>30 && $mid_ratio<35)\n\t\t\t\t\t{\n\t\t\t\t\t\t$mid_count35=$mid_count35+1;\n\t\t\t\t\t}\n\t\t\t\t\tif ($high_ratio>30 && $high_ratio<35)\n\t\t\t\t\t{\n\t\t\t\t\t\t$high_count35=$high_count35+1;\n\t\t\t\t\t}\n\t\t\t\t\t///40\n\t\t\t\t\tif($pri_ratio>35 && $pri_ratio<40)\n\t\t\t\t\t{\n\t\t\t\t\t\t$pri_count40=$pri_count40+1;\n\t\t\t\t\t}\n\t\t\t\t\tif ($mid_ratio>35 && $mid_ratio<40)\n\t\t\t\t\t{\n\t\t\t\t\t\t$mid_count40=$mid_count40+1;\n\t\t\t\t\t}\n\t\t\t\t\tif ($high_ratio>35 && $high_ratio<40)\n\t\t\t\t\t{\n\t\t\t\t\t\t$high_count40=$high_count40+1;\n\t\t\t\t\t}\n\t\t\t\t\t///45\n\t\t\t\t\tif($pri_ratio>40 && $pri_ratio<45)\n\t\t\t\t\t{\n\t\t\t\t\t\t$pri_count45=$pri_count45+1;\n\t\t\t\t\t}\n\t\t\t\t\tif ($mid_ratio>40 && $mid_ratio<45)\n\t\t\t\t\t{\n\t\t\t\t\t\t$mid_count45=$mid_count45+1;\n\t\t\t\t\t}\n\t\t\t\t\tif ($high_ratio>40 && $high_ratio<45)\n\t\t\t\t\t{\n\t\t\t\t\t\t$high_count45=$high_count45+1;\n\t\t\t\t\t}\n\t\t\t\t\t///50\n\t\t\t\t\tif($pri_ratio>45 && $pri_ratio<50)\n\t\t\t\t\t{\n\t\t\t\t\t\t$pri_count50=$pri_count50+1;\n\t\t\t\t\t}\n\t\t\t\t\tif ($mid_ratio>45 && $mid_ratio<50)\n\t\t\t\t\t{\n\t\t\t\t\t\t$mid_count50=$mid_count50+1;\n\t\t\t\t\t}\n\t\t\t\t\tif ($high_ratio>45 && $high_ratio<50)\n\t\t\t\t\t{\n\t\t\t\t\t\t$high_count50=$high_count50+1;\n\t\t\t\t\t}\n\t\t\t\t\t////>50\n\t\t\t\t\tif($pri_ratio>50)\n\t\t\t\t\t{\n\t\t\t\t\t\t$pri_count60=$pri_count60+1;\n\t\t\t\t\t}\n\t\t\t\t\tif ($mid_ratio>50)\n\t\t\t\t\t{\n\t\t\t\t\t\t$mid_count60=$mid_count60+1;\n\t\t\t\t\t}\n\t\t\t\t\tif ($high_ratio>50)\n\t\t\t\t\t{\n\t\t\t\t\t\t$high_count60=$high_count60+1;\n\t\t\t\t\t}\t\n\t\t\t\t}\t\t\t\n\t\t\t}\n\t\t\t$arr_rural[]=array(\n\t\t\t\t\t'location' => 'Rural',\n\t\t\t\t\t'school_level' => $rural_levels[$row],\n\t\t\t\t\t'ratio0' => 'Ratio 0',\n\t\t\t\t\t'pri_count' => $pri_count,\n\t\t\t\t\t'mid_count' => $mid_count,\n\t\t\t\t\t'high_count' => $high_count,\n\t\t\t\t\t'ratio25' => 'Ratio Between 0 and 25',\n\t\t\t\t\t'pri_count25' => $pri_count25,\n\t\t\t\t\t'mid_count25' => $mid_count25,\n\t\t\t\t\t'high_count25' => $high_count25,\n\t\t\t\t\t'ratio30' => 'Ratio Between 25 and 30',\n\t\t\t\t\t'pri_count30' => $pri_count30,\n\t\t\t\t\t'mid_count30' => $mid_count30,\n\t\t\t\t\t'high_count30' => $high_count30,\n\t\t\t\t\t'ratio35' => 'Ratio Between 30 and 35',\n\t\t\t\t\t'pri_count35' => $pri_count35,\n\t\t\t\t\t'mid_count35' => $mid_count35,\n\t\t\t\t\t'high_count35' => $high_count35,\n\t\t\t\t\t'ratio40' => 'Ratio Between 35 and 40',\n\t\t\t\t\t'pri_count40' => $pri_count40,\n\t\t\t\t\t'mid_count40' => $mid_count40,\n\t\t\t\t\t'high_count40' => $high_count40,\n\t\t\t\t\t'ratio45' => 'Ratio Between 40 and 45',\n\t\t\t\t\t'pri_count45' => $pri_count45,\n\t\t\t\t\t'mid_count45' => $mid_count45,\n\t\t\t\t\t'high_count45' => $high_count45,\n\t\t\t\t\t'ratio50' => 'Ratio Between 45 and 50',\n\t\t\t\t\t'pri_count50' => $pri_count50,\n\t\t\t\t\t'mid_count50' => $mid_count50,\n\t\t\t\t\t'high_count50' => $high_count50,\n\t\t\t\t\t'ratio60' => 'Ratio > 50',\n\t\t\t\t\t'pri_count60' => $pri_count60,\n\t\t\t\t\t'mid_count60' => $mid_count60,\n\t\t\t\t\t'high_count60' => $high_count60\t\n\t\t\t\t\t\n\t\t\t\t);\n\t\t}///end rural loop\n\n\t\t///start urban loop\n\t\tfor($u=0;$u<count($urban_levels);$u++){\n\t\t\t///rural\n\t\t\t$pri_count=0;$mid_count=0;$high_count=0;$pri_count25=0;$mid_count25=0;$high_count25=0;$pri_count30=0;$mid_count30=0;$high_count30=0;$pri_count35=0;$mid_count35=0;$high_count35=0; $pri_count40=0;$mid_count40=0;$high_count40=0;$pri_count45=0;$mid_count45=0;$high_count45=0;$pri_count50=0;$mid_count50=0;$high_count50=0;$pri_count60=0;$mid_count60=0;$high_count60=0;\n\n\n\t\t\tfor($su=0;$su<count($dtSchool);$su++)\n\t\t\t{\n\t\t\t\tif($dtSchool[$su]->school_level == $urban_levels[$u] && $dtSchool[$su]->location==\"Urban\") \n\t\t\t\t{\n\t\t\t\t\t $j=$su;$total5=\"\";$total9=\"\";$total11=\"\";$pri_ratio=\"\";$mid_ratio=\"\";$high_ratio=\"\";\n\n\t\t\t\t\t\t$school_location=$dtSchool[$su]->location;\n\t\t\t\t\t\t$school_level=$dtSchool[$su]->school_level;\n\n\t\t\t\t\t\t$g1=\"\";$g2=\"\";$g3=\"\";$g4=\"\";$g5=\"\";\n\t\t\t\t\t\t\tif($dtSchool[$su]->grade=='01') {\n\t\t\t\t\t\t\t\t$g1=$dtSchool[$su]->total_students;\n\t\t\t\t\t\t\t\tif ($su!=count($dtSchool)-1 && $dtSchool[$su+1]->school_no==$dtSchool[$su]->school_no) {\n\t\t\t\t\t\t\t\t\t$su+=1;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\tif($dtSchool[$su]->grade=='02') {\n\t\t\t\t\t\t$g2=$dtSchool[$su]->total_students;\n\t\t\t\t\t\tif ($su!=count($dtSchool)-1 && $dtSchool[$su+1]->school_no==$dtSchool[$su]->school_no) {\n\t\t\t\t\t\t\t$su+=1;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif($dtSchool[$su]->grade=='03') {\n\t\t\t\t\t\t$g3=$dtSchool[$su]->total_students;\n\t\t\t\t\t\tif ($su!=count($dtSchool)-1 && $dtSchool[$su+1]->school_no==$dtSchool[$su]->school_no) {\n\t\t\t\t\t\t\t$su+=1;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif($dtSchool[$su]->grade=='04') {\n\t\t\t\t\t\t$g4=$dtSchool[$su]->total_students;\n\t\t\t\t\t\tif ($su!=count($dtSchool)-1 && $dtSchool[$su+1]->school_no==$dtSchool[$su]->school_no) {\n\t\t\t\t\t\t\t$su+=1;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif ($dtSchool[$su]->grade=='05') {\n\t\t\t\t\t\t$g5=$dtSchool[$su]->total_students;\n\t\t\t\t\t\tif ($su!=count($dtSchool)-1 && $dtSchool[$su+1]->school_no==$dtSchool[$su]->school_no) {\n\t\t\t\t\t\t\t$su+=1;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t$total5=$g1+$g2+$g3+$g4+$g5;\n\n\t\t\t\tif ($dtSchool[$j]->primary_no!=0 && $dtSchool[$j]->primary_no!='' && $total5!=0) \n\t\t\t\t{\n\t\t\t\t\t$pri_ratio=$total5/$dtSchool[$j]->primary_no+$dtSchool[$j]->head_no;\n\t\t\t\t\t$pri_ratio;\n\t\t\t\t}\n\t\t\t\t$g6=\"\";$g7=\"\";$g8=\"\";$g9=\"\";\n\t\t\t\t\tif($dtSchool[$su]->grade=='06') {\n\t\t\t\t\t\t$g6=$dtSchool[$su]->total_students;\n\t\t\t\t\t\tif ($su!=count($dtSchool)-1 && $dtSchool[$su+1]->school_no==$dtSchool[$su]->school_no) {\n\t\t\t\t\t\t\t$su+=1;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif($dtSchool[$su]->grade=='07') {\n\t\t\t\t\t\t$g7=$dtSchool[$su]->total_students;\n\t\t\t\t\t\tif ($su!=count($dtSchool)-1 && $dtSchool[$su+1]->school_no==$dtSchool[$su]->school_no) {\n\t\t\t\t\t\t\t$su+=1;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif($dtSchool[$su]->grade=='08') {\n\t\t\t\t\t\t$g8=$dtSchool[$su]->total_students;\n\t\t\t\t\t\tif ($su!=count($dtSchool)-1 && $dtSchool[$su+1]->school_no==$dtSchool[$su]->school_no) {\n\t\t\t\t\t\t\t$su+=1;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif($dtSchool[$su]->grade=='09') {\n\t\t\t\t\t\t$g9=$dtSchool[$su]->total_students;\n\t\t\t\t\t\tif ($su!=count($dtSchool)-1 && $dtSchool[$su+1]->school_no==$dtSchool[$su]->school_no) {\n\t\t\t\t\t\t\t$su+=1;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t $total9=$g6+$g7+$g8+$g9;\n\t\t\t\tif ($dtSchool[$j]->jat_no!=0 && $dtSchool[$j]->jat_no!='' && $total9!=0) \n\t\t\t\t{\n\t\t\t\t\t$mid_ratio=$total9/$dtSchool[$j]->jat_no+$dtSchool[$j]->sat_no;\n\t\t\t\t\t$pri_mid=$pri_ratio+$mid_ratio;\n\t\t\t\t}\n\n\t\t\t\t$g10=\"\";$g11=\"\";\n\t\t\t\t\tif($dtSchool[$su]->grade=='10') {\n\t\t\t\t\t\t$g10=$dtSchool[$su]->total_students;\n\t\t\t\t\t\tif ($su!=count($dtSchool)-1 && $dtSchool[$su+1]->school_no==$dtSchool[$su]->school_no) {\n\t\t\t\t\t\t\t$su+=1;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif($dtSchool[$su]->grade=='11') {\n\t\t\t\t\t\t$g11=$dtSchool[$su]->total_students;\n\t\t\t\t\t\tif ($su!=count($dtSchool)-1 && $dtSchool[$su+1]->school_no==$dtSchool[$su]->school_no) {\n\t\t\t\t\t\t\t$su+=1;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t$total11=$g10+$g11;\n\t\t\t\t\tif ($dtSchool[$j]->sat_no!=0 && $dtSchool[$j]->sat_no!='' && $total11!=0) \n\t\t\t\t\t{\n\t\t\t\t\t\t$high_ratio=$total11/$dtSchool[$j]->sat_no+$dtSchool[$j]->sat_no;\n\t\t\t\t\t\t$pri_mid_high=$pri_ratio+$mid_ratio+$high_ratio;\n\t\t\t\t\t}\n\n\t\t\t\t\tif($pri_ratio==0)\n\t\t\t\t\t{\n\t\t\t\t\t\t$pri_count=$pri_count+1;\n\t\t\t\t\t}\n\t\t\t\t\tif ($mid_ratio==0)\n\t\t\t\t\t{\n\t\t\t\t\t\t$mid_count=$mid_count+1;\n\t\t\t\t\t}\n\t\t\t\t\tif ($high_ratio==0)\n\t\t\t\t\t{\n\t\t\t\t\t\t$high_count=$high_count+1;\n\t\t\t\t\t}\n\t\t\t\t\t///25\n\t\t\t\t\tif($pri_ratio>0 && $pri_ratio<25)\n\t\t\t\t\t{\n\t\t\t\t\t\t$pri_count25=$pri_count25+1;\n\t\t\t\t\t}\n\t\t\t\t\tif ($mid_ratio>0 && $mid_ratio<25)\n\t\t\t\t\t{\n\t\t\t\t\t\t$mid_count25=$mid_count25+1;\n\t\t\t\t\t}\n\t\t\t\t\tif ($high_ratio>0 && $high_ratio<25)\n\t\t\t\t\t{\n\t\t\t\t\t\t$high_count25=$high_count25+1;\n\t\t\t\t\t}\n\t\t\t\t\t////30\n\t\t\t\t\tif($pri_ratio>25 && $pri_ratio<30)\n\t\t\t\t\t{\n\t\t\t\t\t\t$pri_count30=$pri_count30+1;\n\t\t\t\t\t}\n\t\t\t\t\tif ($mid_ratio>25 && $mid_ratio<30)\n\t\t\t\t\t{\n\t\t\t\t\t\t$mid_count30=$mid_count30+1;\n\t\t\t\t\t}\n\t\t\t\t\tif ($high_ratio>25 && $high_ratio<30)\n\t\t\t\t\t{\n\t\t\t\t\t\t$high_count30=$high_count30+1;\n\t\t\t\t\t}\n\t\t\t\t\t////35\n\t\t\t\t\tif($pri_ratio>30 && $pri_ratio<35)\n\t\t\t\t\t{\n\t\t\t\t\t\t$pri_count35=$pri_count35+1;\n\t\t\t\t\t}\n\t\t\t\t\tif ($mid_ratio>30 && $mid_ratio<35)\n\t\t\t\t\t{\n\t\t\t\t\t\t$mid_count35=$mid_count35+1;\n\t\t\t\t\t}\n\t\t\t\t\tif ($high_ratio>30 && $high_ratio<35)\n\t\t\t\t\t{\n\t\t\t\t\t\t$high_count35=$high_count35+1;\n\t\t\t\t\t}\n\t\t\t\t\t///40\n\t\t\t\t\tif($pri_ratio>35 && $pri_ratio<40)\n\t\t\t\t\t{\n\t\t\t\t\t\t$pri_count40=$pri_count40+1;\n\t\t\t\t\t}\n\t\t\t\t\tif ($mid_ratio>35 && $mid_ratio<40)\n\t\t\t\t\t{\n\t\t\t\t\t\t$mid_count40=$mid_count40+1;\n\t\t\t\t\t}\n\t\t\t\t\tif ($high_ratio>35 && $high_ratio<40)\n\t\t\t\t\t{\n\t\t\t\t\t\t$high_count40=$high_count40+1;\n\t\t\t\t\t}\n\t\t\t\t\t///45\n\t\t\t\t\tif($pri_ratio>40 && $pri_ratio<45)\n\t\t\t\t\t{\n\t\t\t\t\t\t$pri_count45=$pri_count45+1;\n\t\t\t\t\t}\n\t\t\t\t\tif ($mid_ratio>40 && $mid_ratio<45)\n\t\t\t\t\t{\n\t\t\t\t\t\t$mid_count45=$mid_count45+1;\n\t\t\t\t\t}\n\t\t\t\t\tif ($high_ratio>40 && $high_ratio<45)\n\t\t\t\t\t{\n\t\t\t\t\t\t$high_count45=$high_count45+1;\n\t\t\t\t\t}\n\t\t\t\t\t///50\n\t\t\t\t\tif($pri_ratio>45 && $pri_ratio<50)\n\t\t\t\t\t{\n\t\t\t\t\t\t$pri_count50=$pri_count50+1;\n\t\t\t\t\t}\n\t\t\t\t\tif ($mid_ratio>45 && $mid_ratio<50)\n\t\t\t\t\t{\n\t\t\t\t\t\t$mid_count50=$mid_count50+1;\n\t\t\t\t\t}\n\t\t\t\t\tif ($high_ratio>45 && $high_ratio<50)\n\t\t\t\t\t{\n\t\t\t\t\t\t$high_count50=$high_count50+1;\n\t\t\t\t\t}\n\t\t\t\t\t////>50\n\t\t\t\t\tif($pri_ratio>50)\n\t\t\t\t\t{\n\t\t\t\t\t\t$pri_count60=$pri_count60+1;\n\t\t\t\t\t}\n\t\t\t\t\tif ($mid_ratio>50)\n\t\t\t\t\t{\n\t\t\t\t\t\t$mid_count60=$mid_count60+1;\n\t\t\t\t\t}\n\t\t\t\t\tif ($high_ratio>50)\n\t\t\t\t\t{\n\t\t\t\t\t\t$high_count60=$high_count60+1;\n\t\t\t\t\t}\t\n\t\t\t\t}\t\t\t\n\t\t\t}\n\t\t\t$arr_urban[]=array(\n\t\t\t\t\t'location' => 'Urban',\n\t\t\t\t\t'school_level' => $urban_levels[$u],\n\t\t\t\t\t'ratio0' => 'Ratio 0',\n\t\t\t\t\t'pri_count' => $pri_count,\n\t\t\t\t\t'mid_count' => $mid_count,\n\t\t\t\t\t'high_count' => $high_count,\n\t\t\t\t\t'ratio25' => 'Ratio Between 0 and 25',\n\t\t\t\t\t'pri_count25' => $pri_count25,\n\t\t\t\t\t'mid_count25' => $mid_count25,\n\t\t\t\t\t'high_count25' => $high_count25,\n\t\t\t\t\t'ratio30' => 'Ratio Between 25 and 30',\n\t\t\t\t\t'pri_count30' => $pri_count30,\n\t\t\t\t\t'mid_count30' => $mid_count30,\n\t\t\t\t\t'high_count30' => $high_count30,\n\t\t\t\t\t'ratio35' => 'Ratio Between 30 and 35',\n\t\t\t\t\t'pri_count35' => $pri_count35,\n\t\t\t\t\t'mid_count35' => $mid_count35,\n\t\t\t\t\t'high_count35' => $high_count35,\n\t\t\t\t\t'ratio40' => 'Ratio Between 35 and 40',\n\t\t\t\t\t'pri_count40' => $pri_count40,\n\t\t\t\t\t'mid_count40' => $mid_count40,\n\t\t\t\t\t'high_count40' => $high_count40,\n\t\t\t\t\t'ratio45' => 'Ratio Between 40 and 45',\n\t\t\t\t\t'pri_count45' => $pri_count45,\n\t\t\t\t\t'mid_count45' => $mid_count45,\n\t\t\t\t\t'high_count45' => $high_count45,\n\t\t\t\t\t'ratio50' => 'Ratio Between 45 and 50',\n\t\t\t\t\t'pri_count50' => $pri_count50,\n\t\t\t\t\t'mid_count50' => $mid_count50,\n\t\t\t\t\t'high_count50' => $high_count50,\n\t\t\t\t\t'ratio60' => 'Ratio > 50',\n\t\t\t\t\t'pri_count60' => $pri_count60,\n\t\t\t\t\t'mid_count60' => $mid_count60,\n\t\t\t\t\t'high_count60' => $high_count60\t\n\t\t\t\t\t\n\t\t\t\t);\n\t\t}\t/// end urban loop\t\n\t\t\t$state_name=DB::select(DB::raw(\"SELECT state_division FROM state_division WHERE id=\".Input::get('state_id')));\n\n\t\t\tif($township_id){\n\t\t\t\t$township_name=DB::select(DB::raw(\"SELECT township_name FROM township WHERE id=\".Input::get('township_id')));\n\t\t\t}\n\n\t\t\t$request_input=array($state_name[0]->state_division,isset($township_name[0]->township_name)? $township_name[0]->township_name:'ALL',Input::get('academic_year'));\t\n\n\t\t\t//print_r($arr_rural);\n\t\t\tExcel::create('Pupil Teacher Ratio', function($excel) use($rural_levels,$urban_levels,$arr_urban,$arr_rural,$request_input) {\n\n\t\t\t$excel->sheet('PupilTeacherTownshipRatio', function($sheet) use($rural_levels,$urban_levels,$arr_rural,$arr_urban,$request_input){\n\n\t $sheet->prependRow(array('Township Education Management Information System'))->mergeCells('A1:D1',function($cells){\n\t \t\t\t\t$cells->setFontSize(18);\n\t \t\t\t\t$cells->setAlignment('center');\n\t \t\t\t\t$cells->setValignment('middle');\n\t \t\t\t});\n\t \t\t$sheet->appendRow(array('Pupil Teacher Ratio By Township Report'))->mergeCells('A2:D2',function($cells){\n\t \t\t\t\t\n\t \t\t\t\t$cells->setFontSize(18);\n\t \t\t\t\t$cells->setAlignment('center');\n\t \t\t\t\t $cells->setValignment('middle');\n\t \t\t\t});\n\t \t\t$sheet->appendRow(array('Division : '.$request_input[0]))->mergeCells('A3:D3',function($cells){\n\t \t\t\t\n\t \t\t\t\t$cells->setFontSize(18);\n\t \t\t\t\t$cells->setAlignment('left');\n\t \t\t\t\t $cells->setValignment('middle');\n\t \t\t});\n\t \t\t$sheet->appendRow(array('Township : '.$request_input[1]))->mergeCells('A4:D4',function($cell){\n\t \t\t\t\n\t \t\t\t\t$cell->setFontSize(11);\n\t \t\t\t\t$cell->setAlignment('right');\n\t \t\t\t\t$cell->setValignment('middle');\n\t \t\t});\n\t \t\t$sheet->appendRow(array('Academic Year :'.$request_input[2]))->mergeCells('A5:D5',function($cell){\n\t \t\t\t\n\t \t\t\t$cell->setFontSize(18);\n\t \t\t\t$cell->setAlignment('left');\n\t \t\t\t$cell->setValignment('middle');\n\t \t\t});\n\n\t \t\t\n\n\t///////////////// Start Rural\n\t\t\t\t$count=$sheet->getHighestRow()+1;\n\t\t\t\t\t$sheet->appendRow(array('Location : Rural'))->mergeCells('A'.$count.':D'.$count,function($cell){\n\t\t\t\t\t$cell->setFontWeight('bold');\n\t\t \t\t$cell->setFontSize(18);\n\t\t \t\t$cell->setAlignment('left');\n\t\t \t\t$cell->setValignment('middle');\n\t\t\t\t});\n\t\t\t\tfor($row=0;$row<count($rural_levels);$row++)\n\t\t\t\t{ \n\t\t\t\n\t\t\t\t$count=$sheet->getHighestRow()+1;\n\t\t\t\t\t$sheet->appendRow(array('School Level :'.$rural_levels[$row]))->mergeCells('A'.$count.':D'.$count,function($cell){\n\t\t\t\t\t$cell->setFontWeight('bold');\n\t\t \t\t$cell->setFontSize(18);\n\t\t \t\t$cell->setAlignment('left');\n\t\t \t\t$cell->setValignment('middle');\n\t\t\t\t});\n\n\t\t\t\t$sheet->appendRow(array('Ratio','Primary Ratio','Middle Ratio','High Ratio'));\n\n\t\t\t\tfor($i=0;$i<count($arr_rural);$i++)\n\t\t\t\t{\t\n\t\t\t\tif($arr_rural[$i]['school_level'] == $rural_levels[$row] && $arr_rural[$i]['location']==\"Rural\")\n\t\t\t\t{\n\t\t\t\t\t///ratio 0\n\t\t\t\t\t$count=$sheet->getHighestRow()+1;\n\t\t\t\t\t$sheet->cell('A'.$count,function($cell) use($arr_rural,$i){\n\t \t\t\t\t$cell->setValue('Ratio 0');\n\t\t\t \t\t$cell->setFontSize(12);\n\t\t\t \t\t$cell->setAlignment('left');\n\t\t\t \t\t$cell->setValignment('middle');\n\t\t\t \t});\n\t\t\t \t$sheet->cell('B'.$count,function($cell) use($arr_rural,$i){\n\t \t\t\t\t$cell->setValue($arr_rural[$i]['pri_count']);\n\t\t\t \t\t$cell->setFontSize(12);\n\t\t\t \t\t$cell->setAlignment('left');\n\t\t\t \t\t$cell->setValignment('middle');\n\t\t\t \t});\n\t\t\t \t$sheet->cell('C'.$count,function($cell) use($arr_rural,$i){\n\t\t\t \t\t\n\t\t \t\t\t\t$cell->setValue($arr_rural[$i]['mid_count']);\n\t\t\t \t\t$cell->setFontSize(12);\n\t\t\t \t\t$cell->setAlignment('left');\n\t\t\t \t\t$cell->setValignment('middle');\n\t\t\t \t});\n\t\t\t\t\t$sheet->cell('D'.$count,function($cell) use($arr_rural,$i){\n\t\t\t\t\t\n\t\t\t \t\t$cell->setValue($arr_rural[$i]['high_count']);\n\t\t\t\t\t $cell->setFontSize(12);\n\t\t\t\t\t $cell->setAlignment('left');\n\t\t\t\t\t $cell->setValignment('middle');\n\t\t\t\t\t});\n\t\t\t\t\t\n\t\t\t\t\t////ratio 25\n\t\t\t\t\t$count=$sheet->getHighestRow()+1;\n\t\t\t\t\t$sheet->cell('A'.$count,function($cell) use($arr_rural,$i){\n\t \t\t\t\t$cell->setValue($arr_rural[$i]['ratio25']);\n\t\t\t \t\t$cell->setFontSize(12);\n\t\t\t \t\t$cell->setAlignment('left');\n\t\t\t \t\t$cell->setValignment('middle');\n\t\t\t \t});\n\t\t\t \t$sheet->cell('B'.$count,function($cell) use($arr_rural,$i){\n\t \t\t\t\t$cell->setValue($arr_rural[$i]['pri_count25']);\n\t\t\t \t\t$cell->setFontSize(12);\n\t\t\t \t\t$cell->setAlignment('left');\n\t\t\t \t\t$cell->setValignment('middle');\n\t\t\t \t});\n\t\t\t \t$sheet->cell('C'.$count,function($cell) use($arr_rural,$i){\n\t\t\t \t\t\n\t\t \t\t\t\t$cell->setValue($arr_rural[$i]['mid_count25']);\n\t\t\t \t\t$cell->setFontSize(12);\n\t\t\t \t\t$cell->setAlignment('left');\n\t\t\t \t\t$cell->setValignment('middle');\n\t\t\t \t});\n\t\t\t\t\t$sheet->cell('D'.$count,function($cell) use($arr_rural,$i){\n\t\t\t\t\t\n\t\t\t \t\t$cell->setValue($arr_rural[$i]['high_count25']);\n\t\t\t\t\t $cell->setFontSize(12);\n\t\t\t\t\t $cell->setAlignment('left');\n\t\t\t\t\t $cell->setValignment('middle');\n\t\t\t\t\t});\n\n\t\t\t\t\t///ratio 30\n\t\t\t\t\t$count=$sheet->getHighestRow()+1;\n\t\t\t\t\t$sheet->cell('A'.$count,function($cell) use($arr_rural,$i){\n\t \t\t\t\t$cell->setValue($arr_rural[$i]['ratio30']);\n\t\t\t \t\t$cell->setFontSize(12);\n\t\t\t \t\t$cell->setAlignment('left');\n\t\t\t \t\t$cell->setValignment('middle');\n\t\t\t \t});\n\t\t\t \t$sheet->cell('B'.$count,function($cell) use($arr_rural,$i){\n\t \t\t\t\t$cell->setValue($arr_rural[$i]['pri_count30']);\n\t\t\t \t\t$cell->setFontSize(12);\n\t\t\t \t\t$cell->setAlignment('left');\n\t\t\t \t\t$cell->setValignment('middle');\n\t\t\t \t});\n\t\t\t \t$sheet->cell('C'.$count,function($cell) use($arr_rural,$i){\n\t\t\t \t\t\n\t\t \t\t\t\t$cell->setValue($arr_rural[$i]['mid_count30']);\n\t\t\t \t\t$cell->setFontSize(12);\n\t\t\t \t\t$cell->setAlignment('left');\n\t\t\t \t\t$cell->setValignment('middle');\n\t\t\t \t});\n\t\t\t\t\t$sheet->cell('D'.$count,function($cell) use($arr_rural,$i){\n\t\t\t\t\t\n\t\t\t \t\t$cell->setValue($arr_rural[$i]['high_count30']);\n\t\t\t\t\t $cell->setFontSize(12);\n\t\t\t\t\t $cell->setAlignment('left');\n\t\t\t\t\t $cell->setValignment('middle');\n\t\t\t\t\t});\n\t\t\t\t\t\n\t\t\t\t\t////ratio 35\n\t\t\t\t\t$count=$sheet->getHighestRow()+1;\n\t\t\t\t\t$sheet->cell('A'.$count,function($cell) use($arr_rural,$i){\n\t \t\t\t\t$cell->setValue($arr_rural[$i]['ratio35']);\n\t\t\t \t\t$cell->setFontSize(12);\n\t\t\t \t\t$cell->setAlignment('left');\n\t\t\t \t\t$cell->setValignment('middle');\n\t\t\t \t});\n\t\t\t \t$sheet->cell('B'.$count,function($cell) use($arr_rural,$i){\n\t \t\t\t\t$cell->setValue($arr_rural[$i]['pri_count35']);\n\t\t\t \t\t$cell->setFontSize(12);\n\t\t\t \t\t$cell->setAlignment('left');\n\t\t\t \t\t$cell->setValignment('middle');\n\t\t\t \t});\n\t\t\t \t$sheet->cell('C'.$count,function($cell) use($arr_rural,$i){\n\t\t\t \t\t\n\t\t \t\t\t\t$cell->setValue($arr_rural[$i]['mid_count35']);\n\t\t\t \t\t$cell->setFontSize(12);\n\t\t\t \t\t$cell->setAlignment('left');\n\t\t\t \t\t$cell->setValignment('middle');\n\t\t\t \t});\n\t\t\t\t\t$sheet->cell('D'.$count,function($cell) use($arr_rural,$i){\n\t\t\t\t\t\n\t\t\t \t\t$cell->setValue($arr_rural[$i]['high_count35']);\n\t\t\t\t\t $cell->setFontSize(12);\n\t\t\t\t\t $cell->setAlignment('left');\n\t\t\t\t\t $cell->setValignment('middle');\n\t\t\t\t\t});\n\n\t\t\t\t\t///ratio 40\n\t\t\t\t\t$count=$sheet->getHighestRow()+1;\n\t\t\t\t\t$sheet->cell('A'.$count,function($cell) use($arr_rural,$i){\n\t \t\t\t\t$cell->setValue($arr_rural[$i]['ratio40']);\n\t\t\t \t\t$cell->setFontSize(12);\n\t\t\t \t\t$cell->setAlignment('left');\n\t\t\t \t\t$cell->setValignment('middle');\n\t\t\t \t});\n\t\t\t \t$sheet->cell('B'.$count,function($cell) use($arr_rural,$i){\n\t \t\t\t\t$cell->setValue($arr_rural[$i]['pri_count40']);\n\t\t\t \t\t$cell->setFontSize(12);\n\t\t\t \t\t$cell->setAlignment('left');\n\t\t\t \t\t$cell->setValignment('middle');\n\t\t\t \t});\n\t\t\t \t$sheet->cell('C'.$count,function($cell) use($arr_rural,$i){\n\t\t\t \t\t\n\t\t \t\t\t\t$cell->setValue($arr_rural[$i]['mid_count40']);\n\t\t\t \t\t$cell->setFontSize(12);\n\t\t\t \t\t$cell->setAlignment('left');\n\t\t\t \t\t$cell->setValignment('middle');\n\t\t\t \t});\n\t\t\t\t\t$sheet->cell('D'.$count,function($cell) use($arr_rural,$i){\n\t\t\t\t\t\n\t\t\t \t\t$cell->setValue($arr_rural[$i]['high_count40']);\n\t\t\t\t\t $cell->setFontSize(12);\n\t\t\t\t\t $cell->setAlignment('left');\n\t\t\t\t\t $cell->setValignment('middle');\n\t\t\t\t\t});\n\t\t\t\t\t\n\t\t\t\t\t////ratio 45\n\t\t\t\t\t$count=$sheet->getHighestRow()+1;\n\t\t\t\t\t$sheet->cell('A'.$count,function($cell) use($arr_rural,$i){\n\t \t\t\t\t$cell->setValue($arr_rural[$i]['ratio45']);\n\t\t\t \t\t$cell->setFontSize(12);\n\t\t\t \t\t$cell->setAlignment('left');\n\t\t\t \t\t$cell->setValignment('middle');\n\t\t\t \t});\n\t\t\t \t$sheet->cell('B'.$count,function($cell) use($arr_rural,$i){\n\t \t\t\t\t$cell->setValue($arr_rural[$i]['pri_count45']);\n\t\t\t \t\t$cell->setFontSize(12);\n\t\t\t \t\t$cell->setAlignment('left');\n\t\t\t \t\t$cell->setValignment('middle');\n\t\t\t \t});\n\t\t\t \t$sheet->cell('C'.$count,function($cell) use($arr_rural,$i){\n\t\t\t \t\t\n\t\t \t\t\t\t$cell->setValue($arr_rural[$i]['mid_count45']);\n\t\t\t \t\t$cell->setFontSize(12);\n\t\t\t \t\t$cell->setAlignment('left');\n\t\t\t \t\t$cell->setValignment('middle');\n\t\t\t \t});\n\t\t\t\t\t$sheet->cell('D'.$count,function($cell) use($arr_rural,$i){\n\t\t\t\t\t\n\t\t\t \t\t$cell->setValue($arr_rural[$i]['high_count45']);\n\t\t\t\t\t $cell->setFontSize(12);\n\t\t\t\t\t $cell->setAlignment('left');\n\t\t\t\t\t $cell->setValignment('middle');\n\t\t\t\t\t});\n\n\t\t\t\t\t///ratio 50\n\t\t\t\t\t$count=$sheet->getHighestRow()+1;\n\t\t\t\t\t$sheet->cell('A'.$count,function($cell) use($arr_rural,$i){\n\t \t\t\t\t$cell->setValue($arr_rural[$i]['ratio50']);\n\t\t\t \t\t$cell->setFontSize(12);\n\t\t\t \t\t$cell->setAlignment('left');\n\t\t\t \t\t$cell->setValignment('middle');\n\t\t\t \t});\n\t\t\t \t$sheet->cell('B'.$count,function($cell) use($arr_rural,$i){\n\t \t\t\t\t$cell->setValue($arr_rural[$i]['pri_count50']);\n\t\t\t \t\t$cell->setFontSize(12);\n\t\t\t \t\t$cell->setAlignment('left');\n\t\t\t \t\t$cell->setValignment('middle');\n\t\t\t \t});\n\t\t\t \t$sheet->cell('C'.$count,function($cell) use($arr_rural,$i){\n\t\t\t \t\t\n\t\t \t\t\t\t$cell->setValue($arr_rural[$i]['mid_count50']);\n\t\t\t \t\t$cell->setFontSize(12);\n\t\t\t \t\t$cell->setAlignment('left');\n\t\t\t \t\t$cell->setValignment('middle');\n\t\t\t \t});\n\t\t\t\t\t$sheet->cell('D'.$count,function($cell) use($arr_rural,$i){\n\t\t\t\t\t\n\t\t\t \t\t$cell->setValue($arr_rural[$i]['high_count50']);\n\t\t\t\t\t $cell->setFontSize(12);\n\t\t\t\t\t $cell->setAlignment('left');\n\t\t\t\t\t $cell->setValignment('middle');\n\t\t\t\t\t});\n\t\t\t\t\t\n\t\t\t\t\t////ratio 60\n\t\t\t\t\t$count=$sheet->getHighestRow()+1;\n\t\t\t\t\t$sheet->cell('A'.$count,function($cell) use($arr_rural,$i){\n\t \t\t\t\t$cell->setValue($arr_rural[$i]['ratio60']);\n\t\t\t \t\t$cell->setFontSize(12);\n\t\t\t \t\t$cell->setAlignment('left');\n\t\t\t \t\t$cell->setValignment('middle');\n\t\t\t \t});\n\t\t\t \t$sheet->cell('B'.$count,function($cell) use($arr_rural,$i){\n\t \t\t\t\t$cell->setValue($arr_rural[$i]['pri_count60']);\n\t\t\t \t\t$cell->setFontSize(12);\n\t\t\t \t\t$cell->setAlignment('left');\n\t\t\t \t\t$cell->setValignment('middle');\n\t\t\t \t});\n\t\t\t \t$sheet->cell('C'.$count,function($cell) use($arr_rural,$i){\n\t\t\t \t\t\n\t\t \t\t\t\t$cell->setValue($arr_rural[$i]['mid_count60']);\n\t\t\t \t\t$cell->setFontSize(12);\n\t\t\t \t\t$cell->setAlignment('left');\n\t\t\t \t\t$cell->setValignment('middle');\n\t\t\t \t});\n\t\t\t\t\t$sheet->cell('D'.$count,function($cell) use($arr_rural,$i){\n\t\t\t\t\t\n\t\t\t \t\t$cell->setValue($arr_rural[$i]['high_count60']);\n\t\t\t\t\t $cell->setFontSize(12);\n\t\t\t\t\t $cell->setAlignment('left');\n\t\t\t\t\t $cell->setValignment('middle');\n\t\t\t\t\t});\n\n\t\t\t\t\t\n\t\t\t\t}\n \t\t\t} \n\t\t\t\t\n\t\t}\t\t\n\n\t//////////////// End Rural\n\n\t/////////////// Start Urban\n\n\t\t\t\t$count=$sheet->getHighestRow()+1;\n\t\t\t\t\t$sheet->appendRow(array('Location : Urban'))->mergeCells('A'.$count.':D'.$count,function($cell){\n\t\t\t\t\t$cell->setFontWeight('bold');\n\t\t \t\t$cell->setFontSize(18);\n\t\t \t\t$cell->setAlignment('left');\n\t\t \t\t$cell->setValignment('middle');\n\t\t\t\t});\n\t\t\t\tfor($ur=0;$ur<count($urban_levels);$ur++)\n\t\t\t\t{ \n\t\t\t\n\t\t\t\t$count=$sheet->getHighestRow()+1;\n\t\t\t\t\t$sheet->appendRow(array('School Level :'.$urban_levels[$ur]))->mergeCells('A'.$count.':D'.$count,function($cell){\n\t\t\t\t\t$cell->setFontWeight('bold');\n\t\t \t\t$cell->setFontSize(18);\n\t\t \t\t$cell->setAlignment('left');\n\t\t \t\t$cell->setValignment('middle');\n\t\t\t\t});\n\n\t\t\t\t$sheet->appendRow(array('Ratio','Primary Ratio','Middle Ratio','High Ratio'));\n\n\t\t\t\tfor($au=0;$au<count($arr_urban);$au++)\n\t\t\t\t{\t\n\t\t\t\tif($arr_urban[$au]['school_level'] == $urban_levels[$ur] && $arr_urban[$au]['location']==\"Urban\")\n\t\t\t\t{\n\t\t\t\t\t///ratio 0\n\t\t\t\t\t$count=$sheet->getHighestRow()+1;\n\t\t\t\t\t$sheet->cell('A'.$count,function($cell) use($arr_urban,$au){\n\t \t\t\t\t$cell->setValue('Ratio 0');\n\t\t\t \t\t$cell->setFontSize(12);\n\t\t\t \t\t$cell->setAlignment('left');\n\t\t\t \t\t$cell->setValignment('middle');\n\t\t\t \t});\n\t\t\t \t$sheet->cell('B'.$count,function($cell) use($arr_urban,$au){\n\t \t\t\t\t$cell->setValue($arr_urban[$au]['pri_count']);\n\t\t\t \t\t$cell->setFontSize(12);\n\t\t\t \t\t$cell->setAlignment('left');\n\t\t\t \t\t$cell->setValignment('middle');\n\t\t\t \t});\n\t\t\t \t$sheet->cell('C'.$count,function($cell) use($arr_urban,$au){\n\t\t\t \t\t\n\t\t \t\t\t\t$cell->setValue($arr_urban[$au]['mid_count']);\n\t\t\t \t\t$cell->setFontSize(12);\n\t\t\t \t\t$cell->setAlignment('left');\n\t\t\t \t\t$cell->setValignment('middle');\n\t\t\t \t});\n\t\t\t\t\t$sheet->cell('D'.$count,function($cell) use($arr_urban,$au){\n\t\t\t\t\t\n\t\t\t \t\t$cell->setValue($arr_urban[$au]['high_count']);\n\t\t\t\t\t $cell->setFontSize(12);\n\t\t\t\t\t $cell->setAlignment('left');\n\t\t\t\t\t $cell->setValignment('middle');\n\t\t\t\t\t});\n\t\t\t\t\t\n\t\t\t\t\t////ratio 25\n\t\t\t\t\t$count=$sheet->getHighestRow()+1;\n\t\t\t\t\t$sheet->cell('A'.$count,function($cell) use($arr_urban,$au){\n\t \t\t\t\t$cell->setValue($arr_urban[$au]['ratio25']);\n\t\t\t \t\t$cell->setFontSize(12);\n\t\t\t \t\t$cell->setAlignment('left');\n\t\t\t \t\t$cell->setValignment('middle');\n\t\t\t \t});\n\t\t\t \t$sheet->cell('B'.$count,function($cell) use($arr_urban,$au){\n\t \t\t\t\t$cell->setValue($arr_urban[$au]['pri_count25']);\n\t\t\t \t\t$cell->setFontSize(12);\n\t\t\t \t\t$cell->setAlignment('left');\n\t\t\t \t\t$cell->setValignment('middle');\n\t\t\t \t});\n\t\t\t \t$sheet->cell('C'.$count,function($cell) use($arr_urban,$au){\n\t\t\t \t\t\n\t\t \t\t\t\t$cell->setValue($arr_urban[$au]['mid_count25']);\n\t\t\t \t\t$cell->setFontSize(12);\n\t\t\t \t\t$cell->setAlignment('left');\n\t\t\t \t\t$cell->setValignment('middle');\n\t\t\t \t});\n\t\t\t\t\t$sheet->cell('D'.$count,function($cell) use($arr_urban,$au){\n\t\t\t\t\t\n\t\t\t \t\t$cell->setValue($arr_urban[$au]['high_count25']);\n\t\t\t\t\t $cell->setFontSize(12);\n\t\t\t\t\t $cell->setAlignment('left');\n\t\t\t\t\t $cell->setValignment('middle');\n\t\t\t\t\t});\n\n\t\t\t\t\t///ratio 30\n\t\t\t\t\t$count=$sheet->getHighestRow()+1;\n\t\t\t\t\t$sheet->cell('A'.$count,function($cell) use($arr_urban,$au){\n\t \t\t\t\t$cell->setValue($arr_urban[$au]['ratio30']);\n\t\t\t \t\t$cell->setFontSize(12);\n\t\t\t \t\t$cell->setAlignment('left');\n\t\t\t \t\t$cell->setValignment('middle');\n\t\t\t \t});\n\t\t\t \t$sheet->cell('B'.$count,function($cell) use($arr_urban,$au){\n\t \t\t\t\t$cell->setValue($arr_urban[$au]['pri_count30']);\n\t\t\t \t\t$cell->setFontSize(12);\n\t\t\t \t\t$cell->setAlignment('left');\n\t\t\t \t\t$cell->setValignment('middle');\n\t\t\t \t});\n\t\t\t \t$sheet->cell('C'.$count,function($cell) use($arr_urban,$au){\n\t\t\t \t\t\n\t\t \t\t\t\t$cell->setValue($arr_urban[$au]['mid_count30']);\n\t\t\t \t\t$cell->setFontSize(12);\n\t\t\t \t\t$cell->setAlignment('left');\n\t\t\t \t\t$cell->setValignment('middle');\n\t\t\t \t});\n\t\t\t\t\t$sheet->cell('D'.$count,function($cell) use($arr_urban,$au){\n\t\t\t\t\t\n\t\t\t \t\t$cell->setValue($arr_urban[$au]['high_count30']);\n\t\t\t\t\t $cell->setFontSize(12);\n\t\t\t\t\t $cell->setAlignment('left');\n\t\t\t\t\t $cell->setValignment('middle');\n\t\t\t\t\t});\n\t\t\t\t\t\n\t\t\t\t\t////ratio 35\n\t\t\t\t\t$count=$sheet->getHighestRow()+1;\n\t\t\t\t\t$sheet->cell('A'.$count,function($cell) use($arr_urban,$au){\n\t \t\t\t\t$cell->setValue($arr_urban[$au]['ratio35']);\n\t\t\t \t\t$cell->setFontSize(12);\n\t\t\t \t\t$cell->setAlignment('left');\n\t\t\t \t\t$cell->setValignment('middle');\n\t\t\t \t});\n\t\t\t \t$sheet->cell('B'.$count,function($cell) use($arr_urban,$au){\n\t \t\t\t\t$cell->setValue($arr_urban[$au]['pri_count35']);\n\t\t\t \t\t$cell->setFontSize(12);\n\t\t\t \t\t$cell->setAlignment('left');\n\t\t\t \t\t$cell->setValignment('middle');\n\t\t\t \t});\n\t\t\t \t$sheet->cell('C'.$count,function($cell) use($arr_urban,$au){\n\t\t\t \t\t\n\t\t \t\t\t\t$cell->setValue($arr_urban[$au]['mid_count35']);\n\t\t\t \t\t$cell->setFontSize(12);\n\t\t\t \t\t$cell->setAlignment('left');\n\t\t\t \t\t$cell->setValignment('middle');\n\t\t\t \t});\n\t\t\t\t\t$sheet->cell('D'.$count,function($cell) use($arr_urban,$au){\n\t\t\t\t\t\n\t\t\t \t\t$cell->setValue($arr_urban[$au]['high_count35']);\n\t\t\t\t\t $cell->setFontSize(12);\n\t\t\t\t\t $cell->setAlignment('left');\n\t\t\t\t\t $cell->setValignment('middle');\n\t\t\t\t\t});\n\n\t\t\t\t\t///ratio 40\n\t\t\t\t\t$count=$sheet->getHighestRow()+1;\n\t\t\t\t\t$sheet->cell('A'.$count,function($cell) use($arr_urban,$au){\n\t \t\t\t\t$cell->setValue($arr_urban[$au]['ratio40']);\n\t\t\t \t\t$cell->setFontSize(12);\n\t\t\t \t\t$cell->setAlignment('left');\n\t\t\t \t\t$cell->setValignment('middle');\n\t\t\t \t});\n\t\t\t \t$sheet->cell('B'.$count,function($cell) use($arr_urban,$au){\n\t \t\t\t\t$cell->setValue($arr_urban[$au]['pri_count40']);\n\t\t\t \t\t$cell->setFontSize(12);\n\t\t\t \t\t$cell->setAlignment('left');\n\t\t\t \t\t$cell->setValignment('middle');\n\t\t\t \t});\n\t\t\t \t$sheet->cell('C'.$count,function($cell) use($arr_urban,$au){\n\t\t\t \t\t\n\t\t \t\t\t\t$cell->setValue($arr_urban[$au]['mid_count40']);\n\t\t\t \t\t$cell->setFontSize(12);\n\t\t\t \t\t$cell->setAlignment('left');\n\t\t\t \t\t$cell->setValignment('middle');\n\t\t\t \t});\n\t\t\t\t\t$sheet->cell('D'.$count,function($cell) use($arr_urban,$au){\n\t\t\t\t\t\n\t\t\t \t\t$cell->setValue($arr_urban[$au]['high_count40']);\n\t\t\t\t\t $cell->setFontSize(12);\n\t\t\t\t\t $cell->setAlignment('left');\n\t\t\t\t\t $cell->setValignment('middle');\n\t\t\t\t\t});\n\t\t\t\t\t\n\t\t\t\t\t////ratio 45\n\t\t\t\t\t$count=$sheet->getHighestRow()+1;\n\t\t\t\t\t$sheet->cell('A'.$count,function($cell) use($arr_urban,$au){\n\t \t\t\t\t$cell->setValue($arr_urban[$au]['ratio45']);\n\t\t\t \t\t$cell->setFontSize(12);\n\t\t\t \t\t$cell->setAlignment('left');\n\t\t\t \t\t$cell->setValignment('middle');\n\t\t\t \t});\n\t\t\t \t$sheet->cell('B'.$count,function($cell) use($arr_urban,$au){\n\t \t\t\t\t$cell->setValue($arr_urban[$au]['pri_count45']);\n\t\t\t \t\t$cell->setFontSize(12);\n\t\t\t \t\t$cell->setAlignment('left');\n\t\t\t \t\t$cell->setValignment('middle');\n\t\t\t \t});\n\t\t\t \t$sheet->cell('C'.$count,function($cell) use($arr_urban,$au){\n\t\t\t \t\t\n\t\t \t\t\t\t$cell->setValue($arr_urban[$au]['mid_count45']);\n\t\t\t \t\t$cell->setFontSize(12);\n\t\t\t \t\t$cell->setAlignment('left');\n\t\t\t \t\t$cell->setValignment('middle');\n\t\t\t \t});\n\t\t\t\t\t$sheet->cell('D'.$count,function($cell) use($arr_urban,$au){\n\t\t\t\t\t\n\t\t\t \t\t$cell->setValue($arr_urban[$au]['high_count45']);\n\t\t\t\t\t $cell->setFontSize(12);\n\t\t\t\t\t $cell->setAlignment('left');\n\t\t\t\t\t $cell->setValignment('middle');\n\t\t\t\t\t});\n\n\t\t\t\t\t///ratio 50\n\t\t\t\t\t$count=$sheet->getHighestRow()+1;\n\t\t\t\t\t$sheet->cell('A'.$count,function($cell) use($arr_urban,$au){\n\t \t\t\t\t$cell->setValue($arr_urban[$au]['ratio50']);\n\t\t\t \t\t$cell->setFontSize(12);\n\t\t\t \t\t$cell->setAlignment('left');\n\t\t\t \t\t$cell->setValignment('middle');\n\t\t\t \t});\n\t\t\t \t$sheet->cell('B'.$count,function($cell) use($arr_urban,$au){\n\t \t\t\t\t$cell->setValue($arr_urban[$au]['pri_count50']);\n\t\t\t \t\t$cell->setFontSize(12);\n\t\t\t \t\t$cell->setAlignment('left');\n\t\t\t \t\t$cell->setValignment('middle');\n\t\t\t \t});\n\t\t\t \t$sheet->cell('C'.$count,function($cell) use($arr_urban,$au){\n\t\t\t \t\t\n\t\t \t\t\t\t$cell->setValue($arr_urban[$au]['mid_count50']);\n\t\t\t \t\t$cell->setFontSize(12);\n\t\t\t \t\t$cell->setAlignment('left');\n\t\t\t \t\t$cell->setValignment('middle');\n\t\t\t \t});\n\t\t\t\t\t$sheet->cell('D'.$count,function($cell) use($arr_urban,$au){\n\t\t\t\t\t\n\t\t\t \t\t$cell->setValue($arr_urban[$au]['high_count50']);\n\t\t\t\t\t $cell->setFontSize(12);\n\t\t\t\t\t $cell->setAlignment('left');\n\t\t\t\t\t $cell->setValignment('middle');\n\t\t\t\t\t});\n\t\t\t\t\t\n\t\t\t\t\t////ratio 60\n\t\t\t\t\t$count=$sheet->getHighestRow()+1;\n\t\t\t\t\t$sheet->cell('A'.$count,function($cell) use($arr_urban,$au){\n\t \t\t\t\t$cell->setValue($arr_urban[$au]['ratio60']);\n\t\t\t \t\t$cell->setFontSize(12);\n\t\t\t \t\t$cell->setAlignment('left');\n\t\t\t \t\t$cell->setValignment('middle');\n\t\t\t \t});\n\t\t\t \t$sheet->cell('B'.$count,function($cell) use($arr_urban,$au){\n\t \t\t\t\t$cell->setValue($arr_urban[$au]['pri_count60']);\n\t\t\t \t\t$cell->setFontSize(12);\n\t\t\t \t\t$cell->setAlignment('left');\n\t\t\t \t\t$cell->setValignment('middle');\n\t\t\t \t});\n\t\t\t \t$sheet->cell('C'.$count,function($cell) use($arr_urban,$au){\n\t\t\t \t\t\n\t\t \t\t\t\t$cell->setValue($arr_urban[$au]['mid_count60']);\n\t\t\t \t\t$cell->setFontSize(12);\n\t\t\t \t\t$cell->setAlignment('left');\n\t\t\t \t\t$cell->setValignment('middle');\n\t\t\t \t});\n\t\t\t\t\t$sheet->cell('D'.$count,function($cell) use($arr_urban,$au){\n\t\t\t\t\t\n\t\t\t \t\t$cell->setValue($arr_urban[$au]['high_count60']);\n\t\t\t\t\t $cell->setFontSize(12);\n\t\t\t\t\t $cell->setAlignment('left');\n\t\t\t\t\t $cell->setValignment('middle');\n\t\t\t\t\t});\n\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t////////////// End Urban\n\t\t\t\t$sheet->setBorder('A1'.':D'.$sheet->getHighestRow(), 'thin');\t\t\n\t \t});\n\n\t\t\t})->download('xlsx');\n\t\t\t$err = \"There is no data.\";\n\t\t\tthrow new Exception($err);\n\t\t\t\n\t\t} catch (Exception $e) {\n\n\t\t\t$error = \"There is no data.\";\n\t\t\treturn view('teacher_report.teacher_ratio_township', compact('error'));\n\n\t\t}\n\t}", "public function district()\n {\n return $this->belongsTo('App\\DistrictOffice');\n }", "public function getThrendsDaily(Request $request) {\n\n\n if (($request->has('fr') && $request->has('to')) && (is_iso_date($request->input('fr')) && is_iso_date($request->input('to')))) {\n\n $this->dr->fr = carbonCheckorNow($request->input('fr'));\n $this->dr->to = carbonCheckorNow($request->input('to'));\n\n if ($this->dr->fr->gt($this->dr->to))\n return 'fr is gt to';\n\n $len = $this->dr->to->diffInDays($this->dr->fr);\n } else {\n\n $date = carbonCheckorNow($request->input('date'));\n $len = 6;\n if ($request->has('len') && $request->input('len')>0 && $request->input('len')<90)\n $len = $request->input('len');\n\n $this->dr->to = $date;\n $this->dr->fr = $date->copy()->subDays($len);\n } \n\n $datas = [];\n\n\n // return $this->dr->to->diffInDays($this->dr->fr);\n\n // return $this->dr->fr;\n // return $this->dr->fr->copy()->subDay();\n\n $dailysales = $this->repo\n // ->skipCache()\n ->getAllByDr($this->dr->fr->copy()->subDay(), $this->dr->to, ['sales', 'branchid', 'date']);\n\n // $branchs = \\App\\Models\\Boss\\Branch::select(['code', 'descriptor', 'id'])->active()->orderBy('code')->get();\n $branchs = \\App\\Models\\Branch::select(['code', 'descriptor', 'id'])->whereIn('id', collect($dailysales->pluck('branchid'))->unique()->toArray())->orderBy('code')->get();\n\n foreach($branchs as $key => $branch) {\n $datas[$key]['code'] = $branch->code;\n $datas[$key]['descriptor'] = $branch->descriptor;\n\n $to_date = $this->dr->to->copy();\n for ($i=0; $i<=$len+1; $i++) {\n $to = $to_date->copy()->subDay($i);\n \n $datas[$key]['dss'][$i]['date'] = $to;\n\n $filtered = $dailysales->filter(function ($item) use ($to, $branch) {\n return ($item->branchid == $branch->id) && ($item->date->format('Y-m-d') == $to->format('Y-m-d'))\n ? $item : null;\n });\n\n $f = $filtered->first();\n\n $datas[$key]['dss'][$i]['sales'] = is_null($f) ? NULL : $f->sales;\n }\n }\n\n\n // return $datas;\n\n\n foreach($datas as $j => $data) {\n foreach($data['dss'] as $k => $ds) {\n if ($k==0 && is_null($datas[$j]['dss'][$k]['sales'])) {\n $prev_sales = NULL;\n } else {\n if (($k)<=$len)\n $prev_sales = is_null($datas[$j]['dss'][($k+1)]['sales']) ? 0 : $datas[$j]['dss'][($k+1)]['sales'];\n else\n $prev_sales = 0;\n }\n $datas[$j]['dss'][$k]['prev_sales'] = $prev_sales;\n $datas[$j]['dss'][$k]['diff'] = $datas[$j]['dss'][$k]['sales'] - $prev_sales;\n $datas[$j]['dss'][$k]['pct'] = $prev_sales>0 ? ($datas[$j]['dss'][$k]['diff']/$prev_sales)*100 : 0;\n }\n }\n\n foreach($datas as $l => $data) {\n unset($datas[$l]['dss'][$len+1]);\n }\n\n // return $datas;\n\n /*\n if (!in_array($request->user()->id, ['41F0FB56DFA811E69815D19988DDBE1E', '11E943EA14DDA9E4EAAFBD26C5429A67'])) {\n\n $email = [\n 'body' => $request->user()->name.' '.$this->dr->fr->format('Y-m-d').' '.$this->dr->to->format('Y-m-d')\n ];\n\n \\Mail::queue('emails.notifier', $email, function ($m) {\n $m->from('[email protected]', 'GI App - Boss');\n $m->to('[email protected]')->subject('Sales Trend');\n });\n }\n */\n\n\n $view = view('report.trends-all-daily')\n ->with('datas', $datas);\n return $this->setViewWithDR($view);\n\n return $datas[0]['dss'];\n }", "public function load_district($id){\n\t\t$loc_list = $this->ContactBranch->find('list', array('fields' => array('id','branch'),\n\t\t'order' => array('branch ASC'),'conditions' => array('status' => '1', 'is_deleted' => 'N',\n\t\t'state_id' => $id)));\n\t\t$options .= \"<option value=''>Choose District</option>\";\n\t\tforeach($loc_list as $key => $option){ \n\t\t\t$options .= \"<option value='\".$key.\"'>\".$option.\"</option>\";\n\t\t}\n\t\techo $options;\n\t}", "public function scopeDistrict($query)\n {\n return $query->where('level', 1);\n }", "public function run()\n {\n $file_path = public_path('data/districts/districts.csv');\n $excel = new \\App\\Helper\\ExcelReader($file_path);\n $districtData = [];\n if($excel->fileExists()) {\n $districts = $excel->getData();\n foreach ($districts as $district) {\n $divisionData[] = [\n 'division_id' => $district['division_id'],\n 'districtName' => $district['name'],\n 'banglaName' => $district['bangla_name'],\n // 'districtLatitude' => $district['lat'],\n // 'districtLongitude' => $district['lon'],\n // 'website' => $district['url'],\n ];\n }\n }\n $districtInsert = District::insert($divisionData);\n }", "public function nsdDhakaNsdTenders($date=null){\n\n $zone = \\Request::segment(3);\n $organization = \\Request::segment(4);\n $lastUpldatedDateTime = $date;\n\n $zoneInfo = Zone::where('alise','=',$zone)->first();\n $navalLocation = NsdName::where('alise','=',$organization)->orderBy('id')->first();\n\n \n $data['zone'] = $zone;\n $data['organization'] = $organization;\n $data['date'] = $date;\n\n $data['tenders'] = DB::table($zoneInfo->alise.'_tenders')\n // ->where('status_id','=',1)\n ->where('nsd_id','=',$navalLocation->id)\n ->where(function($query) use ($lastUpldatedDateTime){\n $query->whereDate('created_at','>',$lastUpldatedDateTime);\n $query->orWhereDate('updated_at', '>', $lastUpldatedDateTime);\n })->get();\n\n return $data;\n\n }", "public function nsdDgdpNsdTenders($date=null){\n\n $zone = \\Request::segment(3);\n $organization = \\Request::segment(4);\n $lastUpldatedDateTime = $date;\n\n $zoneInfo = Zone::where('alise','=',$zone)->first();\n $navalLocation = NsdName::where('alise','=',$organization)->orderBy('id')->first();\n\n \n $data['zone'] = $zone;\n $data['organization'] = $organization;\n $data['date'] = $date;\n\n $data['tenders'] = DB::table($zoneInfo->alise.'_tenders')\n // ->where('status_id','=',1)\n ->where('nsd_id','=',$navalLocation->id)\n ->where(function($query) use ($lastUpldatedDateTime){\n $query->whereDate('created_at','>',$lastUpldatedDateTime);\n $query->orWhereDate('updated_at', '>', $lastUpldatedDateTime);\n })->get();\n\n return $data;\n\n }", "public function getDistrictByProvince($provinceId){\n\t\t$Cache=new CacheFile();\n\t\t$data=$Cache->get(md5('district'.$provinceId),'',$this->cachePath,36000);\n\t\tif($data)\n\t\treturn $data;\n\n\t\t$this->tableName = 'district';\n\t\t$result = $this->select('id,name,province_id','province_id='.$provinceId,null,null,'id');\n\t\t$Cache->set(md5('district'.$provinceId),$result,36000,'',$this->cachePath);\n\t\treturn $result;\n\t}", "public static function reporteEstadosDesignaciones()\n {\n $sql =\"SELECT sed.abreviacion as sede, fac.nombre as facultad, edes.descripcion as estado, COUNT(DISTINCT des.iddesignacion) as cantidad\n FROM designaciones des \n JOIN estados_designaciones edes ON des.idestadodesignacion = edes.idestadodesignacion\n JOIN profesores prof ON des.idprofesor = prof.idprofesor\n JOIN personas per ON prof.idpersona = per.idpersona \n JOIN dedicaciones ded ON des.iddedicacion = ded.iddedicacion\n JOIN catedras cat ON des.idcatedra = cat.idcatedra \n JOIN sedes sed ON cat.idsede = sed.idsede \n JOIN materias_planes mp ON cat.idmateriaplan = mp.idmateriaplan\n JOIN materias m ON mp.idmateria = m.idmateria\n JOIN planes_estudios pe ON mp.idplanestudio = pe.idplanestudio\n JOIN carreras car ON pe.idcarrera = car.idcarrera \n JOIN facultades fac ON car.idfacultad = fac.idfacultad \n JOIN tipos_designaciones td ON des.idtipodesignacion = td.idtipodesignacion\n JOIN categoria_designaciones cd ON td.idcategoriadesignacion= cd.idcategoriadesignacion\n WHERE YEAR(des.inicio)= YEAR(now()) \n GROUP BY car.idfacultad, sed.idsede, edes.idestadodesignacion\n ORDER BY sed.idsede, car.nombre; \";\n \n \n $q = Doctrine_Manager::getInstance()->getCurrentConnection()->fetchAssoc($sql);\n \n return $q;\n }", "public function index(Request $request) {\n// dd($districts);\n return view('admin.dashboard');\n }", "public function days() {\n //TODO prediction\n }", "public function getDateDebut();", "public function f_get_distContact()\n {\n\n $sql = $this->db->query(\" SELECT * FROM md_dm_dist_contact a, md_district b WHERE a.dist_cd = b.district_code \");\n return $sql->result();\n\n }", "public function run()\n {\n //\n \tDB::table('districts')->insert([\n 'name' => 'Daffiama Bussie Issa',\n 'region_id' => 9\n ]);\n DB::table('districts')->insert([\n 'name' => 'Jirapa/Lambussie',\n 'region_id' => 9\n ]);\n DB::table('districts')->insert([\n 'name' => 'Lambussie Karni',\n 'region_id' => 9\n ]);\n DB::table('districts')->insert([\n 'name' => 'Lawra',\n 'region_id' => 9\n ]);\n DB::table('districts')->insert([\n 'name' => 'Nadowli',\n 'region_id' => 9\n ]);\n DB::table('districts')->insert([\n 'name' => 'Nandom',\n 'region_id' => 9\n ]);\n DB::table('districts')->insert([\n 'name' => 'Sissala East',\n 'region_id' => 9\n ]);\n DB::table('districts')->insert([\n 'name' => 'Sissala West',\n 'region_id' => 9\n ]);\n DB::table('districts')->insert([\n 'name' => 'Wa East',\n 'region_id' => 9\n ]);\n DB::table('districts')->insert([\n 'name' => 'Wa Municipal',\n 'region_id' => 9\n ]);\n DB::table('districts')->insert([\n 'name' => 'Wa West',\n 'region_id' => 9\n ]);\n }", "public function show(DistrictReport $districtReport, Expense $expense)\n {\n //\n }", "function getDay()\r\n {\r\n return $this->dia;\r\n }", "public function getDailyStatistics()\n {\n $date = new \\DateTime();\n $date = $date->format('Y-m-d');\n\n $builder = $this->createQueryBuilder(\"a\");\n\n $builder\n ->where('a.date = :date')\n ->setParameter('date', $date);\n\n $result = $builder->getQuery()->getOneOrNullResult();\n\n return $result;\n }", "public function getDistrict($divisionId){\r\n\r\n\t$this->db->where('divi_id',$divisionId);\r\n\t$district=$this->db->get('district_tab');\r\n\t$output='<option value=\"\">Select an option</option>';\r\n \r\n foreach ($district->result() as $dis) {\r\n \t$output.='<option value=\"'.$dis->id.'\">'.$dis->district_name.'</option>';\r\n }\r\n return $output;\r\n}", "public function daily()\n {\n $days = [];\n if ($this->daily) {\n setlocale(LC_ALL, 'sv_SV');\n $comingDays = array_slice($this->daily[\"data\"], 1, 30);\n foreach ($comingDays as $i => $data) {\n if ($data[\"time\"]) {\n $this->parseDate(\"daily\", $i, $data[\"time\"]);\n $days[$i] = $this->pushInfo(\n $this->daily[\"data\"][$i],\n [\n \"weekday\",\n \"date\",\n \"icon\",\n \"summary\",\n \"temperatureMax\",\n \"apparentTemperatureMax\",\n \"temperatureMin\",\n \"apparentTemperatureMin\",\n \"time\"\n ]\n );\n }\n }\n }\n return $days;\n }", "public function getParishesToDistrict( $district ) {\r\n $key = md5('parishes' . $district);\r\n if (!$data = $this->_cache->load( $key )) {\r\n $select = $this->select()\r\n ->from($this->_name, array(\r\n 'id' => 'osID', 'term' => 'CONCAT(label,\" (\",type,\")\")'\r\n ))\r\n ->order('label')\r\n ->where('districtID =?', (int) $district);\r\n $data = $this->getAdapter()->fetchAll($select);\r\n $this->_cache->save($data, $key);\r\n }\r\n return $data;\r\n }", "public function index()\n {\n $records = District::all()->load('city');\n return view('admin/pages/districts.all', compact('records'));\n }", "function get_details_on_date_range($sdate,$edate) {\n $query = \"\n SELECT\n tbl_tender_basic_details.tender_id,\n tbl_tender_basic_details.mgo_file_ref,\n tbl_tender_basic_details.dos_file_ref,\n tbl_tender_basic_details.vote_id,\n tbl_vote_master.vote_head,\n tbl_vote_master.vote_name,\n tbl_tender_basic_details.item_id,\n tbl_items_list.item_code,\n tbl_items_list.item_name,\n tbl_tender_basic_details.quantity,\n tbl_tender_basic_details.unit_type_id,\n tbl_unit_types.unit_name,\n tbl_tender_basic_details.tndr_open_date,\n tbl_doc_ho_from_dos.ho_date,\n tbl_date_of_doc_ho.date_of_doc_ho,\n tbl_tec_due_date.tec_due_date,\n tbl_received_tec.received_tec_date,\n tbl_forward_tec.forward_tec_date,\n tbl_recommandation_due_date.recomma_due_date,\n tbl_received_recommendation.rece_rec_date,\n tbl_forward_to_tender_bd.fwd_tb_date,\n tbl_tender_board_approval.tb_approval_date,\n tbl_suppliers.supplier_ref,\n tbl_suppliers.supplier_name,\n tbl_approved_supplier.appd_sup_remarks,\n tbl_delivery_date.delivery_date,\n tbl_delivery_date.delivery_remarks\n FROM\n tbl_tender_basic_details\n Inner Join tbl_vote_master ON tbl_vote_master.vote_id = tbl_tender_basic_details.vote_id\n Inner Join tbl_items_list ON tbl_items_list.item_id = tbl_tender_basic_details.item_id\n Inner Join tbl_unit_types ON tbl_unit_types.unit_id = tbl_tender_basic_details.unit_type_id\n Inner Join tbl_doc_ho_from_dos ON tbl_doc_ho_from_dos.ho_mgo_file_ref = tbl_tender_basic_details.mgo_file_ref\n Inner Join tbl_date_of_doc_ho ON tbl_date_of_doc_ho.date_of_doc_ho_mgo_ref = tbl_doc_ho_from_dos.ho_mgo_file_ref\n Inner Join tbl_tec_due_date ON tbl_tec_due_date.tec_due_mgo_ref = tbl_date_of_doc_ho.date_of_doc_ho_mgo_ref\n Inner Join tbl_received_tec ON tbl_received_tec.received_tec_mgo_ref = tbl_tec_due_date.tec_due_mgo_ref\n Inner Join tbl_forward_tec ON tbl_forward_tec.forward_tec_mgo_ref = tbl_received_tec.received_tec_mgo_ref\n Inner Join tbl_recommandation_due_date ON tbl_recommandation_due_date.recomma_date_mgo_ref = tbl_forward_tec.forward_tec_mgo_ref\n Inner Join tbl_received_recommendation ON tbl_received_recommendation.rece_rec_mgo_ref = tbl_recommandation_due_date.recomma_date_mgo_ref\n Inner Join tbl_forward_to_tender_bd ON tbl_forward_to_tender_bd.fwd_tb_mgo_ref = tbl_received_recommendation.rece_rec_mgo_ref\n Inner Join tbl_tender_board_approval ON tbl_tender_board_approval.tb_approval_mgo_ref = tbl_forward_to_tender_bd.fwd_tb_mgo_ref\n Inner Join tbl_approved_supplier ON tbl_approved_supplier.appd_mgo_file_ref = tbl_tender_board_approval.tb_approval_mgo_ref\n Inner Join tbl_delivery_date ON tbl_delivery_date.delivery_date_mgo_ref = tbl_approved_supplier.appd_mgo_file_ref\n Inner Join tbl_suppliers ON tbl_suppliers.supplier_id = tbl_approved_supplier.appd_sup_id\n WHERE delivery_date BETWEEN '$sdate' AND '$edate'\n \";\n $query_result = $this->mDbm->setData($query);\n return $query_result;\n }", "public function nsdDgdpNsdItems($date=null){\n\n $zone = \\Request::segment(3);\n $organization = \\Request::segment(4);\n $lastUpldatedDateTime = $date;\n\n $zoneInfo = Zone::where('alise','=',$zone)->first();\n $navalLocation = NsdName::where('alise','=',$organization)->orderBy('id')->first();\n\n \n $data['zone'] = $zone;\n $data['organization'] = $organization;\n $data['date'] = $date;\n\n $data['items'] = DB::table($zoneInfo->alise.'_items')\n // ->where('status_id','=',1)\n ->whereRaw(\"find_in_set('\".$navalLocation->id.\"',nsd_id)\")\n ->where(function($query) use ($lastUpldatedDateTime){\n $query->whereDate('created_at','>',$lastUpldatedDateTime);\n $query->orWhereDate('updated_at', '>', $lastUpldatedDateTime);\n })->limit(1)->get();\n\n return $data;\n\n }", "private function calculateNationalDay(): void\n {\n if ($this->year < 1916) {\n return;\n }\n\n $holidayName = 'Svenska flaggans dag';\n\n // Since 1983 this day was named 'Sveriges nationaldag'\n if ($this->year >= 1983) {\n $holidayName = 'Sveriges nationaldag';\n }\n\n $this->addHoliday(new Holiday(\n 'nationalDay',\n ['sv' => $holidayName],\n new DateTime(\"$this->year-6-6\", DateTimeZoneFactory::getDateTimeZone($this->timezone)),\n $this->locale\n ));\n }", "public function findDistrictName(Request $request)\n {\n\n $response_dist = District::where('division_id', $request->id)->get();\n return response()->json($response_dist);\n\n }", "public function nsdDhakaNsdItems($date=null){\n\n $zone = \\Request::segment(3);\n $organization = \\Request::segment(4);\n $lastUpldatedDateTime = $date;\n\n $zoneInfo = Zone::where('alise','=',$zone)->first();\n $navalLocation = NsdName::where('alise','=',$organization)->orderBy('id')->first();\n\n \n $data['zone'] = $zone;\n $data['organization'] = $organization;\n $data['date'] = $date;\n\n $data['items'] = DB::table($zoneInfo->alise.'_items')\n // ->where('status_id','=',1)\n ->whereRaw(\"find_in_set('\".$navalLocation->id.\"',nsd_id)\")\n ->where(function($query) use ($lastUpldatedDateTime){\n $query->whereDate('created_at','>',$lastUpldatedDateTime);\n $query->orWhereDate('updated_at', '>', $lastUpldatedDateTime);\n })->get();\n\n return $data;\n\n }" ]
[ "0.67293316", "0.65986574", "0.63050854", "0.6213003", "0.61374", "0.61374", "0.6083828", "0.59343004", "0.5927776", "0.58718556", "0.58718556", "0.5827501", "0.5805237", "0.57807857", "0.5765914", "0.572393", "0.5710099", "0.5671252", "0.56501824", "0.56356156", "0.56031215", "0.5593868", "0.5591207", "0.55588984", "0.5558822", "0.55435866", "0.553563", "0.55204105", "0.5478061", "0.5473604", "0.54695034", "0.54679596", "0.5465872", "0.5456413", "0.54540056", "0.54536927", "0.542862", "0.5427679", "0.54256564", "0.5424099", "0.5399477", "0.5395811", "0.5390075", "0.53802603", "0.5377292", "0.53761184", "0.5350849", "0.534972", "0.53492546", "0.5346876", "0.53361946", "0.53330666", "0.5323891", "0.5311787", "0.5285986", "0.5279228", "0.527688", "0.527688", "0.52752507", "0.52727777", "0.5266856", "0.5257979", "0.5251826", "0.5249082", "0.5248911", "0.52297986", "0.52177167", "0.5196605", "0.5150338", "0.51309794", "0.5129348", "0.5123766", "0.50988054", "0.509865", "0.5093805", "0.509292", "0.5091518", "0.5091382", "0.50723755", "0.50705564", "0.5038359", "0.5030061", "0.50179666", "0.5015533", "0.5014979", "0.501405", "0.50140154", "0.50123173", "0.5007311", "0.50067383", "0.499411", "0.49930322", "0.4990147", "0.49882358", "0.4987221", "0.4967526", "0.4956461", "0.49541467", "0.4951845", "0.4949384", "0.49446544" ]
0.0
-1
like all the other controllers, pulls data from the db, throws it into the view. do each one individually.
public function index(){ $this->load->helper('url'); $recipesData = $this->recipes->getRecipes(); $recipes = array(); foreach($recipesData as $recipe){ $ingredients = $this->recipes->getIngredients($recipe->id); $strIngredients = ""; foreach($ingredients as $ingredient){ $strIngredients .= ' ' . $ingredient->name; } $recipes[] = array('name' => $recipe->name, 'description' => $strIngredients, 'id' => $recipe->id); } $this->data['recipesRow'] = $recipes; $stockData = $this->stock->getStock(); $stock = array(); foreach($stockData as $stok){ // ran out of names $stock[] = array('name' => $stok->name, 'price' => $stok->price, 'quantity' => $stok->quantity, 'id' => $stok->id); } $this->data['stockRow'] = $stock; $suppliesData = $this->supplies->getSupplies(); $supplies = array(); foreach($suppliesData as $supply){ $supplies[] = array('name' => $supply->name, 'on hand' => $supply->onHand, 'containerspership' => $supply->containersPerShipment, 'containers' => $supply->containers, 'itemspercontainer' => $supply->itemsPerContainer, 'cost' => $supply->cost, 'id' => $supply->id); } $this->data['suppliesRow'] = $supplies; $this->data['pagetitle'] = 'Administrator'; $this->data['pagebody'] = 'administrator'; $this->render(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function index() {\r\n $data['data'] = $this->MemberModel->getData(3); //executes function from model returns rexcord set\r\n $this->load->view('MemberView', $data); //directs and passes data from the databse to the view\r\n }", "function run() {\r\n $this->view->data=$this->model->run();\r\n }", "public function all()\n {\n /**\n * TODO: Load the data from the database.\n */\n\n $this->load->model('prize_package');\n $this->load->model('prize');\n\n\n /**\n * Generate the views.\n */\n\n $this->load->view('global/header');\n\n if ($this->session->has_userdata('user')) {\n /**\n * TODO: Check permissions and show organizer options if appropriate.\n */\n $this->load->view('menu/user_menu');\n }\n else\n {\n $this->load->view('menu/default_menu');\n }\n\n $this->load->view('global/footer');\n\n// $this->prize_package->get_packages_and_prizes();\n }", "public function listView(): void\n {\n $this->_data = $this->_entity->fetch();\n if (!$this->special) {\n $newData = $this->_builder->submitCreate();\n if ($newData) {\n array_push($this->_data, $newData);\n }\n }\n require VF . \"{$this->route}/list.php\";\n require VF . \"{$this->route}/create.php\";\n }", "function view(){\n\n $course_id = $this->params[0];\n $this->course = get_first(\"SELECT * FROM course WHERE course_id = '{$course_id}'\");\n $this->lessons = get_all(\"SELECT * FROM lesson WHERE course_id = '{$course_id}'\");\n }", "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 {\n $this->load->model('Crud_model');\n $records = $this->Crud_model->getRecords();\n $this->load->view('Crud_view', ['records' => $records]);\n }", "function run()\r\n{\r\n $arrViewData = array();\r\n $arrViewData['reservas'] = obtenerTodasReservas();\r\n\r\n renderizar('mantenimientos/reservas', $arrViewData);\r\n}", "public function get(){\n\t\t// Get a view and populate it with model data\n\t\t$view = $this->getView('index');\n\n\t\t// Check to see if sqlite3 is running on this machine\n\t\t$lastLine = exec('which sqlite3', $output, $return);\n\t\t$view->check['sqlite3 is available on command line'] = $lastLine != '' && $return == 0;\n\t\t$view->check['sqlite3 command is executable'] = is_executable($lastLine);\n\n\t\t// Make sure that the sample csv file is available\n\t\t$view->check['Sample database source file'] = file_exists('../data/sample.csv');\n\t\t$view->check['Sample source file is writable'] = is_writable('../data/sample.csv');\n\n\t\t// Make sure that the db file is available\n\t\t$view->check['Sample Database'] = file_exists('../data/sample.db');\n\t\t$view->check['Sample DB is writable'] = is_writable('../data/sample.db');\n\n\t\t// Make sure that the refresh script is available\n\t\t$view->check['Database refresh script'] = is_readable('../data/refreshdb.sql');\n\n\t\t// Make sure that the database is available and configured\n\t\tif(class_exists('SQLite3') && $view->check['Sample Database']) {\n\t\t\t$view->check['PHP SQLLite3 support'] = true;\n\t\t\t$view->check['Recipient table exists and is not empty'] = $this->db->getTableLength('recipient');\n\t\t\t$view->check['List table exists and is not empty'] = $this->db->getTableLength('list') !== null;\n\t\t} else {\n\t\t\t$view->check['PHP SQLLite3 support'] = false;\n\t\t}\n\n\t\t$view->render();\n\t}", "public function run() {\n\t\t$this->db->fetchAll('pundits');\n\t\t$this->response = array(\n\t\t\t'status' => 'success',\n\t\t\t'command'=> 'list',\n\t\t\t'data' => $this->db->get_last_result()\n\t\t);\n\t}", "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}", "function index(){\r\n \r\n $all = $this->model->selectAll();\r\n $this->data('all', $all);\r\n $this->loadView();\r\n }", "public function index()\r\n\t\t{\r\n\t\t\t$my_Array=array();\r\n\t\t\t\r\n\t\t\t$this->load->view(\"view5\");\r\n\t\t\t\r\n\t\t\tif ($mysql=$this->model5->get_records())// if everythings ok...\r\n\t\t\t\t{\r\n\t\t\t\t\t$my_Array[\"records\"]=$mysql;\r\n\t\t\t\t\t$this->load->view(\"view5\", $my_Array);\r\n\t\t\t\t}\r\n\t\t}", "public function loadData()\n\t{\n\t\t$this->load->view('data_page');\n\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 }", "public function index()\n\t{\n\t\t//get all accessories\n\t\t$accessories = $this->Accessories->all();\n\t\t//get all categories\n\t\t$categories = $this->Categories->all();\n\t\t//inject model into controller\n\t\t$this->data['accessories'] = $accessories;\n\t\t//inject model into controller\n\t\t$this->data['categories'] = $categories;\n\t\t$this->data['pagebody'] = 'catalogue';\n\t\t$this->data['pagetitle'] = 'Catalog Page';\n\t\t$this->render();\n\t}", "public function index()\n {\n $data['row'] = $this->items_m->get();\n $this->template->load('template', 'product/item/item_data', $data);\n }", "public function view() {\n\n // Only allow AJAX requests\n if (!$this->input->is_ajax_request()) {\n return show_404();\n }\n\n // Retrieve request\n $gridIO = (new GridHelper())\n ->parseRequest($this->input);\n\n // Load requested data\n $articles = (new ExtArticlesModel())->init()\n ->set($gridIO->getRequest())\n ->load();\n\n // Prepare response ...\n $gridIO->setTotal($articles->getTotalCount($gridIO));\n foreach ($articles->toArray() as $article) {\n\n $gridIO->addRow([\n \"id\" => $article->get(\"id\"),\n \"title\" => $article->get(\"title\"),\n \"author\" => $article->getAuthor()->get(\"username\"),\n \"published\" => PermitHelper::validPermitExists(PermitTypes::ARTICLE, $article->get(\"id\"))\n ]);\n\n }\n\n // ... and output it\n $gridIO->generateResponse($this->output);\n\n }", "public function all()\n {\n if (!$this->isLogged()) exit;\n $this->oUtil->getModel('Todo');\n $this->oModel = new \\TestProject\\Model\\Todo;\n\n $this->oUtil->oTodos = $this->oModel->getAll();\n\n $this->oUtil->getView('index');\n }", "public function run(){\t\t\n\t\t/* this startup function for any controller */\n\t\t\n\t\t//$data = $this->db->DB_Fetch_Grid(\"users\");\n\t\t//return $this->json($data);\n\n\t\treturn $this->json([\"test\"=>\"done\",\"response\"=>2244234,\"route\"=>\"users\"]);\n\t\n\t}", "public function index () {\r\n $method = strtoupper($_SERVER['REQUEST_METHOD']);\r\n \r\n switch ($method) {\n case 'GET':\n $this->view();\n break;\n case 'POST':\r\n $this->insert();\r\n break;\r\n case 'PUT':\r\n $this->update();\r\n break;\r\n case 'DELETE':\r\n $this->delete();\r\n break;\n default:\n break;\n }\r\n }", "public function indexAction()\n {\n $conn1 = Doctrine_Manager::getInstance()->getConnection('one');\n $posts = Doctrine_Query::create($conn1)\n ->from('Model_Post p')\n ->orderBy('p.created_at DESC')\n ->execute();\n \n $conn2 = Doctrine_Manager::getInstance()->getConnection('two');\n $dummy = Doctrine_Query::create($conn2)\n ->from('Model_Post p')\n ->select('p.content')\n ->where('p.author = ?', 'danceric')\n ->execute();\n \n $this->view->posts = $posts;\n }", "public function index()\n {\n $this->updateTitle('Database Users');\n $this->getEssentials();\n $this->loadView();\n }", "public function action_index() \n\t{\n\n\t\t/**\n\t\t * Put some standars elements from site\n\t\t */\n\t\t$bigger_team = ORM::factory('Team')->get_biggest()->find();\n\n\t\t$main_team = ORM::factory('Team')->get_most_popular()->find();\n\t\t$main_team_photos = ORM::factory('Photo')\n\t\t\t->order_by('uploaded', 'DESC')\n\t\t\t->where('team_id', '=', $main_team->id)\n\t\t\t->limit(5)\n\t\t\t->find_all();\n\t\t$main_team_avatar = $main_team->avatar;\n\t\t\n\t\ttry\r\n\t\t{\n\t\t\t$popular_teams = ORM::factory('Team')\n\t\t\t\t->get_biggest($bigger_team->counter, $main_team->id)->limit(3)->find_all();\n\t\t\t\n\t\t\t$component_carousel = View::factory('Component/Carousel')\n\t\t\t\t->set('team', \t$main_team->as_array())\n\t\t\t\t->set('photos', $main_team_photos->as_array())\n\t\t\t\t->set('avatar', $main_team_avatar->as_array());\n\t\t\t\n\t\t\t$component_access_quick = View::factory('Component/Access/Quick');\n\t\t\t\n\t\t\t$component_thumbnails_team = View::factory('Component/Thumbnails/Team')\n\t\t\t\t->set('teams', $popular_teams->as_array());\n\t\t\t\n\t\t\t$this->view_container = $this->view_content = View::factory('Container/Welcome/Main')\n\t\t\t\t->set('user', Auth::instance()->get_user())\n\t\t\t\t->set('component_carousel', \t\t$component_carousel)\n\t\t\t\t->set('component_thumbnails_team', \t$component_thumbnails_team);\n\t\t\t\n\t\t\t\n\t\t\t/**\n\t\t\t * View presentation\n\t\t\t */\n\t\t\t$this->view_container->container_statistics = View::factory('Presentation');\n\t\t}\r\n\t\tcatch (Exception $e)\r\n\t\t{\r\n\t\t\t$this->after();\n\t\t\tHTTP::redirect();\r\n\t\t}\n\t}", "public function view(){\n\t\t$this->buildListing();\n\t}", "public function index()\n {\n $data['data'] = $this->itemCRUD->get();\n\n $this->load->view('theme/header'); \n $this->load->view('items/list',$data);\n $this->load->view('theme/footer');\n }", "public function data_fetch()\n\t{\t\n\t\t\n\t\tif(!$this->set_data->is_logged_in()){\n\t\t\tredirect('user/index');\n\t\t}\n\t\telse{ \t\t\n\t\t\t\n\t\t\t\n\t\t\t/* Auto load pagination library */\n\t\t\t/* Set the pagination configs */\n \t\t$config['base_url'] = '/user/data_fetch';\n \t\t$config['total_rows'] = $this->db->get('UserDetails')->num_rows();\n \t\t$config['per_page'] = '10'; \n \t\t$this->pagination->initialize($config); \n\n\t\t\t$data['query'] = $this->user_model->retrieve(null,$config['per_page']);\n\t\t\t$this->layout->view('user/display_view',$data);\t\n\t\t\t\n\t\t}\n\t}", "public function actionIndex()\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$sql_project = 'SELECT * FROM project';\n\t\t$sqlprovider = new CSqlDataProvider($sql_project);\n\t\t$projectLists = $sqlprovider-> getData();\n\t\t$data['projects'] = $projectLists;\n\t\n\t\t\n\t\t$sql_persons = 'SELECT * FROM person';\n\t\t$sqlprovider_person = new CSqlDataProvider($sql_persons);\n\t\t$personLists = $sqlprovider_person-> getData();\n\t\t$data['persons'] = $personLists;\n\t\n\t\t$sql_rooms = 'SELECT * FROM room';\n\t\t$sqlprovider_rooms = new CSqlDataProvider($sql_rooms);\n\t\t$roomLists = $sqlprovider_rooms-> getData();\n\t\t$data['rooms'] = $roomLists;\n\n\t\t$data['room_list'] = Room::model()->findAll();\n\n\t\t$this->render('index',$data);\n\t\t//$this->render('index');\n\t}", "protected function all()\n {\n $viewmodel = new TodoModel();\n $this->returnView($viewmodel->all(),true);\n }", "public function clientorders(){\n\n //orders information\n $this->loadData(Orders::getOrder($_SESSION[\"userId\"]), \"oOrders1\");\n if(Orders::getOrder($_SESSION[\"userId\"])){\n //last order information\n foreach ($this->oOrders1 as $order1){ \n $this->loadData(OrdersproductsDetails::getOrderProductD($order1->id), \"oOrders\");\n //load list of orders each time\n $this->loadView(\"views/cmsOrders.php\", 1, \"list\"); \n } \n } \n \n //load list of orders\n //$this->loadView(\"views/cmsOrders.php\", 1, \"list\"); \n //user information\n $this->loadData(User::getCurrent(), \"oCurUser\");\n //load the header\n $this->loadView(\"views/header.php\", 1 ,\"header\"); \n //load the admin final view\n $this->loadLastView(\"views/cmsClient.php\"); \n $this->loadLastView(\"views/main.php\"); \n }", "public function index() {\n $this->data['pagebody'] = 'justone';\n // build the list of authors, to pass on to our view\n $full = $this->quotes->all();\n $authorNum = count($full);\n $source = $this->quotes->get($authorNum);\n\n $this->data['who'] = $source['who'];\n $this->data['mug'] = $source['mug'];\n $this->data['what'] = $source['what'];\n $this->render();\n }", "public function index () {\n $method = strtoupper($_SERVER['REQUEST_METHOD']);\n \n switch ($method) {\n case 'GET':\n $this->view();\n break;\n case 'POST':\n $this->insert();\n break;\n case 'PUT':\n $this->update();\n break;\n case 'DELETE':\n $this->delete();\n break;\n default:\n break;\n }\n }", "public function index() {\n //$this->load->library('twig', $config);\n $this->initLoad();\n $result = $this->{$this->model_name}->getAll($this->web['postdata']['page'], $this->web['postdata']['limit'], array('sort_by' => $this->web['postdata']['sort_by'], 'order_type' => $this->web['postdata']['order_type']));\n if ($result) {\n $this->web['rows'] = $result;\n } else {\n $this->web['rows'] = array();\n }\n $this->web['roles_accesses'] = null;\n //if (in_array($this->session->userdata['loggedin']['role_id'], array('1', '2'))) {\n // $this->web['roles_accesses'] = $this->roles_accesses[$this->module_access_id];\n //}\n\t //echo $this->module_access_id; exit;\n\t $this->web['roles_accesses'] = $this->roles_accesses[$this->module_access_id];\t\n $this->web['total_records'] = $this->{$this->model_name}->total_records;\n $this->web['total_pages'] = $this->{$this->model_name}->total_pages;\n $this->web['model']['new'] = base64_encode(0);\n $this->web['section'][] = $this->web['view'] . DIRECTORY_SEPARATOR . 'index';\n $rand = rand(500, 10000);\n $this->general_model->load_my_view($this->web);\n }", "public function index()\n {\n $data['data'] = $this->itemCRUD->get_itemCRUD();\n\n\n $this->load->view('theme/header'); \n $this->load->view('itemCRUD/list',$data);\n $this->load->view('theme/footer');\n }", "public function execute () {\n $input = [\n 'active' => [0,1]\n ];\n $categories = $this->_api_client->get('/category', $input);\n\n // set returned value to the view\n $this->set('categories', $categories);\n\n // get products using the API\n $input = [\n 'active' => [0,1]\n ];\n $products = $this->_api_client->get('/product', $input);\n\n // set returned value to the view\n $this->set('products', $products);\n }", "public function index()\r\n\t{\r\n\t\t//init modal\r\n\t\t$this->load->database();\r\n\t\t$this->load->model('Mmain');\r\n\t\t\r\n\t\t\t\r\n\t\t\r\n\t\t//init view\r\n\t\t\r\n\t\t$renderTemp=$this->Mmain->qRead($this->tableQuery.$this->ordQuery,$this->fieldQuery,\"\");\r\n\t\tforeach($renderTemp->result() as $row)\r\n\t\t{\r\n\t\t\t$row->ava_user=\"<img src='\".base_url().\"/assets/admin/img/avatar/thumb/\".$row->ava_user.\"' height='100px' width='auto' class='center-block'>\";\r\n\t\t\t/*\r\n\t\t\tif($row->sex==1)\r\n\t\t\t{\r\n\t\t\t\t$row->sex=\"<span class='label label-primary'><i class='fa fa-mars'></i>&nbsp; Male</span>\";\t\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif($row->pinned==0)\r\n\t\t\t{\r\n\t\t\t\t\r\n\t\t\t\t\t$row->pinned=\"<span class='label label-success'>Pinned</span>\";\t\t\r\n\t\t\t\t\r\n\t\t\t}\t\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\t\t$row->pinned=\"<span class='label label-default'>Not Pinned</span>\";\t\t\r\n\t\t\t\t\r\n\t\t\t}\t\t\r\n*/\t\t\t\r\n\t\t\t\r\n\t\t}\r\n\t\t$output['render']=$renderTemp;\r\n\t\t//init view\r\n\t\t$output['pageTitle']=$this->viewFormTitle;\r\n\t\t$output['breadcrumbTitle']=$this->breadcrumbTitle;\r\n\t\t$output['breadcrumbLink']=$this->viewLink;\r\n\t\t$output['detLink']=$this->viewLink.\"/det\";\r\n\t\t$output['saveLink']=$this->viewLink.\"/add\";\r\n\t\t$output['deleteLink']=$this->viewLink.\"/delete\";\r\n\t\t$output['primaryKey']=$this->primaryKey;\r\n\t\t$output['tableHeader']=$this->viewFormTableHeader;\r\n\t\t\r\n\t\t//render view\r\n\t\t$this->fn->getheader();\r\n\t\t$this->load->view($this->viewPage,$output);\r\n\t\t$this->fn->getfooter();\r\n\t}", "public function read(){\n\t\t\t$recordPerPage = 25;\n\t\t\t//tinh so trang\n\t\t\t$numPage = ceil($this->modelTotal()/$recordPerPage);\n\t\t\t//goi ham de lay du lieu\n\t\t\t$listRecord = $this->modelRead($recordPerPage);\n\t\t\t//load view\n\t\t\tinclude \"Views/BlogsView.php\";\n\t\t}", "public function index()\n {\n\t\t//return $view->fetch();\n }", "public function index()\n {\n $this->context['data'] = $this->usersRepo->getAll();\n $this->render($this->context);\n }", "public function loadView ()\n {\n $data['category'][0] = $this->utility->getFieldsCategory('Programming model');\n $data['category'][1] = $this->utility->getFieldsCategory('General testing characteristics');\n $data['category'][2] = $this->utility->getFieldsCategory('Concurrent testing characteristics');\n $data['category'][3] = $this->utility->getFieldsCategory('Testing tool support');\n\n $data['name'][0] = 'Study identification';\n $data['name'][1] = 'Programming model';\n $data['name'][2] = 'General testing characteristics';\n $data['name'][3] = 'Concurrent testing characteristics';\n $data['name'][4] = 'Testing tool support';\n\n $count = 0;\n foreach($data['category'] as $fields) {\n $count2 = 0;\n foreach($fields as $field) {\n $data['category'][$count][$count2]['typeheadJS'] = $this->technique->singleTableInfo (ucfirst($field['html_id']));\n\n $tempExample = $this->technique->singleTableInfo (ucfirst($field['html_id']));\n $countExample = 0;\n $example = \"\";\n\n foreach ($tempExample as $value) {\n if (strcasecmp($value, \"No Information\") != 0 && strcasecmp($value, \"Not informed\") != 0) {\n $example .= ucfirst($value) . ', ';\n if ($countExample++ >= 3) break;\n }\n }\n $data['category'][$count][$count2]['example']=rtrim($example,\", \");\n\n $count2++;\n }\n $count++;\n }\n // echo \"<pre>\";\n // print_r($data);\n // echo \"</pre>\";\n \n $this->load->view('insert/insert_page', $data);\n }", "protected function doExecute()\n\t{\n\t\t$this->db = JFactory::getDbo();\n\n\t\t// Get the issues and their GitHub ID from the database\n\t\t$this->getIssues();\n\n\t\t// Get the comments from GitHub now\n\t\t$this->getComments();\n\n\t\t// Process the comments now\n\t\t$this->processComments();\n\t}", "function run() {\n\t\t$view = new View();\n\t\t\n\t\t$students = new Student();\n\t\tif ($view->students_tbl = $students->get_students_as_tbl_arr() ) {\n\t\t\t$view->error = $students->get_error();\n\t\t}\n\n\t\t$view->student_desc = $students->get_student_desc();\n\t\t$view->render('main_page.php');\n\t}", "public function index()\n {\n // load views\n require APP . 'view/_templates/header.php';\n\t\t$model = $this->loadModel('CHome');\n\t\t$results = $model->loadCards();\n require APP . 'view/home/index.php';\n require APP . 'view/_templates/footer.php';\n }", "function lists()\n {\n $data[\"data\"] = $this->RapatModel->get();\n $this->load->view('rapat/lists', $data);\n }", "public function index() {\n\n $database = App::resolve('database');\n $tasks = $database->fetchAll('tasks');\n require 'app/views/tasks.view.php';\n}", "public static function readAll() {\n $tab_p = ModelProduit::selectAll();\n $controller = \"produit\";\n $view = \"listProduit\";\n $pagetitle = \"Liste des produits\";\n require File::build_path(array('view', 'view.php'));\n }", "public function index()\n\t{\n\t\t$data = $this->crud->select()->orderBy('crud_id', 'desc')->get();\n\t\t$this->template('crud/index', $data);\n\t}", "function all(){\r\n $data = $this -> model -> getXML();\r\n render('index',$data);\r\n }", "public function indexAction() {\n $db = $this->getDB();\n \n #load the first few employees\n $sql = 'select * from employees limit 100';\n $stmt = $db->prepare($sql);\n $stmt->execute();\n \n \n #create a new View\n $view = new \\view\\federal_employees($this->_action, $stmt->fetchAll(\\PDO::FETCH_ASSOC));\n \n }", "function page_view() //get all records from database \n\t{ \n\t\tif($this->session->userdata('logged_in')==\"\")\n\t\t\theader(\"Location: \".$this->config->base_url().\"Login\");\n\t\t$this->cache_update();\n\t\t$this->check_privilege(13);\n\t\t//mandatory requirements for pages loading nav and sidebar\n\t\t$this->load->driver('cache',array('adapter' => 'file'));\n\t\t$u_type = array('var'=>$this->cache->get('Active_status'.$this->session->userdata('loginid'))['user_type_id_fk']);\n\t\t$this->load->model('profile_model');\n\t\t$noti = array('meeting'=>$this->profile_model->meeting_notification());\n\t\t$u_type['notification'] = $noti;\n\t\t$u_type['noti1']=$this->profile_model->custom_notification();\n\t\t$this->load->view('dashboard/navbar',$u_type);\n\t\t$da = $this->profile_model->get_profile_info($this->session->userdata('uid'));\n\t\t$this->load->view('dashboard/sidebar',$da);\n\t\t//mandatory requirements end\n\n\t\t$this->load->model('Sup_admin');\n\t \t$query=$this->Sup_admin->page_view();\n\t\t $data['records']=$query->result();\n\n\t\t $this->load->model('Crud_model');\n\t\t $this->db->trans_off();\n $this->db->trans_strict(FALSE);\n $this->db->trans_start();\n\t\t $this->Crud_model->audit_upload($this->session->userdata('loginid'),\n\t\t\t\t\t\t\t current_url(),\n\t\t\t\t\t\t\t 'Pages active page visited',\n\t\t\t\t\t\t\t 'Custom message here');\n\t\t $this->db->trans_complete();\n\t\t $this->load->view('page_view',$data); \n\t\t $this->load->view('dashboard/footer');\n \t}", "public function index()\n {\n //\n $services = DB::table('process_service')\n ->select('process_service.*')\n ->where('ACTIVE_STATUS', '1')\n ->where('PARENT_SERVICE_ID', '=', NULL)\n ->where('HOME_PAGE_SHOW', '1')\n ->orderBy('SL_NO', 'ASC')\n ->take(4)\n ->get();\n //\n $blogs = DB::table('process_blog')\n ->select('process_blog.*')\n ->where('ACTIVE_STATUS', '1')\n ->where('PUBLISH_START_DATE', '<=', $this->dateFormat())\n ->where('PUBLISH_END_DATE', '>=', $this->dateFormat())\n ->orderBy('BLOG_ID', 'DESC')\n ->take(6)\n ->get();\n\n //\n $events = DB::table('process_event')\n ->select('process_event.*')\n ->where('ACTIVE_STATUS', '1')\n ->where('PUBLISH_START_DATE', '<=', $this->dateFormat())\n ->where('PUBLISH_END_DATE', '>=', $this->dateFormat())\n ->orderBy('EVENT_ID', 'DESC')\n ->take(6)\n ->get();\n\n //\n return view('index')->with('services', $services)\n ->with('blogs', $blogs)\n ->with('events', $events);\n }", "public function admin_index() {\r\n\t\t$this->data = $this->{$this->modelClass}->find('all');\r\n }", "public function index() {\n $this->template->content = View::instance('v_activities_index');\n $this->template->title = \"Activities\";\n\n # Build the query\n $q = \"SELECT \n activities .* , \n users.first_name, \n users.last_name\n FROM activities\n INNER JOIN users \n ON activities.user_id = users.user_id\";\n\n # Run the query\n $activities = DB::instance(DB_NAME)->select_rows($q);\n\n # Pass data to the View\n $this->template->content->activities = $activities;\n\n # Render the View\n echo $this->template;\n\n }", "public function index()\n\t{\n\t\t$this->set('users', $this->User->find('all')); // view vars\n\t}", "public function index() {\n $data = $this->Post->find('all');\n $this->set('data', $data);\n }", "public function indexAction()\n {\n\t \t// Debemos recuperar las carreras dependiendo de las categorias. getAllRacesForResults\n\t \t\n \t$races = new Application_Model_DbTable_Races();\n \t$this->view->races = $races->getAllRacesForResults();\n \t\r\n\t}", "public function viewall() {\n $kidphysical_view = NidaraKidPhysicalInfo::find();\n if ($kidphysical_view):\n \n\n\t\treturn $this->response->setJsonContent ([ \n\t\t\t\t\t'status' => true,\n\t\t\t\t\t'data' =>$kidphysical_view\n\t\t\t]);\n else:\n return $this->response->setJsonContent(['status' => false, 'Message' => 'Faield']);\n endif;\n }", "function index()\n\t{\n\t\t$this->_list();\n\t\t$this->display();\n\t}", "public function index()\n\t{\n\t\t$data = DB::table($this->common_name)->where('org_id','=',Session::get('userdata')->org_id)->where('status','=','1')->get();\n\t\treturn View::make(''.$this->common_name.'.list')->with('common_name',$this->common_name)->with('data',$data);\n\t}", "public function index()\n\t{\n\t\t\n\n\t\t$this->load->database();\n\t\t$query = $this->db->query('SELECT * FROM quote');\n\t\tforeach ($query->result_array() as $row)\n\t\t{\n\t\t\t$informations[]=$row['information'];\n\t\t\t$status[]=$row['status'];\n\t\t}\n\t\tfor ($i=0 ; $i < count($status) ; $i++ ) {\n\n\t\t\tif($status[$i]==\"1\"){\n\t\t\t\t$status2[]=$status[$i];\n\t\t\t\t$informations2[]=$informations[$i];\n\t\t\t}\n\t\t}\n\t\t\n\t\t$data['quotes']=$informations2;\n\t\t\n\t\t$this->load->database();\n\t\t$query = $this->db->query('SELECT * FROM slideshow');\n\t\tforeach ($query->result_array() as $row)\n\t\t{\n\t\t\t$media_urls[]=$row['media_url'];\n\t\t\t$slide_status[]=$row['status'];\n\t\t}\n\n\t\tfor ($i=0 ; $i < count($slide_status) ; $i++ ) {\n\n\t\t\tif($slide_status[$i]==\"1\"){\n\t\t\t\t$status3[]=$slide_status[$i];\n\t\t\t\t$media_urls2[]=$media_urls[$i];\n\t\t\t}\n\t\t}\n\t\t$data['slideshow']=$media_urls2;\n\n\n\n\t\t$data['page_title']= \"Home\";\n\t\t$this->load->view('header',$data);\n\t\t$this->load->view('navigation',$data);\n\t\t$this->load->view('home',$data);\n\t\t$this->load->view('footer',$data);\n\t}", "function index()\n {\n $this->data['pagebody'] = 'justone'; // this is the view we want shown\n // build the list of authors, to pass on to our view\n $record = $this->quotes->get(5);\n $this->data['who'] = $record['who'];\n $this->data['mug'] = $record['mug'];\n $this->data['where'] = $record['where'];\n $this->data['what'] = $record['what'];\n\n $this->render();\n }", "public function index()\r\n\t{ $data['slider']=$this->Site_model->update_slider();\r\n $data['facilities']=$this->Site_model->get_facilities();\r\n $data['news']=$this->Site_model->get_news();\r\n $data['department']=$this->Site_model->get_departments();\r\n $data['events']=$this->Site_model->get_events();\r\n //$data['get_quotes']=$this->Site_model->get_quotes();\r\n\t\t$this->load->view('inc/header',$data);\r\n $this->load->view('site/index',$data);\r\n $this->load->view('inc/footer');\r\n\t}", "public function index_action(){\n $this->db = new PaginasModel();\n \n $this->view(\"home/index\", $dados);\n }", "public function index() {\n\t\t//assign public class values to function variable\n\t\t$data = $this->data;\n\t\t$data['common_data'] = $this->common_data;\n\t\t\n\t\t$data['reviews'] = $this->review_model->get();\n\n\t\t$template['body_content'] = $this->load->view('backend/reviews/index', $data, true);\t\n\t\t$this->load->view('backend/layouts/template', $template, false);\t\t\n\t}", "public function perform()\n {\n // init variables for this view\n $this->initVars();\n\n // get last published articles \n $this->model->action('article','select',\n array('result' => & $this->tplVar['art_pubdate'], \n 'limit' => array('perPage' => 10,\n 'numPage' => 1), \n 'order' => array('pubdate','desc'),\n 'fields' => array('id_article','title','id_node',\n 'status','pubdate') )); \n\n // get node + node branch of each article\n foreach($this->tplVar['art_pubdate'] as & $article)\n {\n $article['nodeBranch'] = array();\n $article['node'] = array();\n \n // get navigation node branch content of the article node\n $this->model->action('navigation','getBranch', \n array('result' => & $article['nodeBranch'],\n 'id_node' => (int)$article['id_node'],\n 'fields' => array('title','id_node','id_parent'))); \n \n // get article node content\n $this->model->action('navigation','getNode', \n array('result' => & $article['node'],\n 'id_node' => (int)$article['id_node'],\n 'fields' => array('title','id_node')));\n $this->getLock( $article ); \n }\n \n // get last modified articles \n $this->model->action('article','select',\n array('result' => & $this->tplVar['art_modifydate'], \n 'limit' => array('perPage' => 10,\n 'numPage' => 1), \n 'order' => array('modifydate','desc'),\n 'fields' => array('id_article','title','id_node',\n 'status','modifydate') )); \n\n // get node + node branch of each article\n foreach($this->tplVar['art_modifydate'] as & $article)\n {\n $article['nodeBranch'] = array();\n $article['node'] = array();\n \n // get navigation node branch content of the article node\n $this->model->action('navigation','getBranch', \n array('result' => & $article['nodeBranch'],\n 'id_node' => (int)$article['id_node'],\n 'fields' => array('title','id_node','id_parent'))); \n \n // get article node content\n $this->model->action('navigation','getNode', \n array('result' => & $article['node'],\n 'id_node' => (int)$article['id_node'],\n 'fields' => array('title','id_node')));\n $this->getLock( $article );\n } \n }", "public function index() {\n // pass all categories and uom to products view\n $data = array(\n 'products' => $this->ProductsModel->view(),\n 'categories' => $this->ProductCategoriesModel->view(),\n 'uoms' => $this->UomModel->view(),\n );\n\n $this->load->view('header');\n $this->load->view('products/product_view', $data);\n $this->load->view(\"footer\");\n }", "public function indexAction() {\n $user = new Application_Model_UserMapper();\n $this->view->users = $user->fetchAll();\n }", "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 $postId = $this->request->getParameter(\"id\");\n \n $post = $this->post->getPost($postId);\n $comments = $this->comment->getComments($postId);\n \n $this->generateView(array('post' => $post, 'comments' => $comments));\n }", "public function IndexAction() {\r\n $this->ExecuteView();\r\n }", "public function processGet() {\n if (!isset($this->arguments[\"data\"])) {\n $this->inmueblesDestacados();\n } else if (is_numeric($this->arguments[\"data\"])) {\n $this->view((int) $this->arguments[\"data\"]);\n } else {\n $this->findByfilters($this->arguments[\"data\"]);\n }\n }", "public function indexAction()\r\n {\r\n $tuser = new Pits_Model_DbTable_TUser();\r\n $this->view->nbinscrits = $tuser->inscrits();\r\n $this->view->nbbloques = $tuser->bloques();\r\n\r\n $televes = new Pits_Model_DbTable_TEleves();\r\n $this->view->nbUsersAvecEnfants = $televes->nbUsersAvecEnfants();\r\n $this->view->nbEnfantsInscrits = $televes->nbEnfantsInscrits();\r\n $this->view->nbEnfantsPreInscrits = $televes->nbEnfantsPreInscrits();\r\n $dates = $televes->getDatesPourAdmin();\r\n $this->view->derniereCreation = $dates['derniereCreation'];\r\n $this->view->derniereModif = $dates['derniereModif'];\r\n $this->view->derniereExtraction = $dates['derniereExtraction'];\r\n\r\n $tpaybox = new Pits_Model_DbTable_TPaybox();\r\n $this->view->nbPaybox = $tpaybox->nbPaybox();\r\n $this->view->totalPaybox = $tpaybox->totalPaybox();\r\n }", "public function run()\n { \n if(isset($_GET['nombre'])){\n\t\t\t$nombre = $_GET['nombre'];\n\t\t}\n\t\telse{\n\t\t\t$nombre = '';\n\t\t}\n\t\t\n\t\tif(isset($_GET['tipo'])){\n\t\t\t$tipo = $_GET['tipo'];\n\t\t}\n\t\telse{\n\t\t\t$tipo = '';\n\t\t}\n\t\t\n\t\t$model = new Variables;\n\t\t$criteria = new CDbCriteria;\n\t\t$criteria->addCondition('descripcion_tipo_variable LIKE \"%'. $nombre . '%\"');\n\t\tif($tipo != '')\n\t\t\t$criteria->compare('id_tipo_variable', $tipo);\n\t\t$criteria->order = 'id_tipo_variable DESC';\n\t\t\n\t\t$tipos_variable = CHtml::listData(TiposVariable::model()->findAll(), 'id', 'nombre_tipo_variable');\n\t\t$tipos_variable[\"\"] = \"Todos los tipos de variable\";\n\t\tksort($tipos_variable);\n\n\t\t\n\t\t$reporte = new CActiveDataProvider($model, array('criteria' => $criteria));\n\t\t$errores = \"\";\n\n $this->controller->render('lista_variables',array(\n\t\t\t'nombre' => $nombre,\n\t\t\t'tipo' => $tipo,\n\t\t\t'errores' => $errores,\n\t\t\t'tipos_variable' => $tipos_variable,\n\t\t\t'dataProvider' => $reporte,\n ));\n }", "public function index()\n {\n if (!is_logged_in()) {\n redirect(url('user/index'));\n }\n\n $thread_count = Thread::getNumRows();\n $pagination = pagination($thread_count);\n $threads = Thread::getAll($pagination['max']);\n $this->set(get_defined_vars());\n }", "public function index()\n {\n// $model = new Airport_Model();\n\n //$rows = $this->Airport_model->as_array()\n//\t\t\t\t\t\t\t\t\t->find_all();\n// $this->setVar('rows', $rows);\n\n $data['rows'] = $this->model->findall();\n\t\techo view('Bobk\\airports\\Views\\orig_index', $data);\n//\t\techo view('orig_index', $data); // don't work\n }", "public function indexAction() {\n\t\t// recebendo posts do método get posts\n\t\t$posts = $this->model->getPosts ();\n\t\t\n\t\t// criando variável de view (posts) os posts recebidos\n\t\t$this->view->posts = $posts;\n\t}", "public function dataestablishall() {\n $user_teacher = $this->session->userdata('user');\n $this->load->view('template/header', $user_teacher);\n $this->load->view('include/navigation');\n $this->load->view('template/sidebar_teacher');\n\n $dataestablish['establsih'] = $this->establishmodel->establishall();\n $this->load->view('teacher/dataestablishall', $dataestablish);\n $this->load->view('template/foot');\n }", "public function index()\n\t{\t\t\n/*\n\t\t// all analyses\t\n\t\t$analyses = Analyses::all();\n\n\t\tforeach($analyses as $analyse)\n\t\t{\n\t\t\t$ana = Analyses::find( $analyse->id );\n\t\t\t\n\t\t\t$ana->pub_date_temp = $analyse->pub_date;\n\t\t\t$ana->created_at_temp = $analyse->created_at;\n\t\t\t$ana->updated_at_temp = $analyse->updated_at;\n\t\t\t\n\t\t\t$ana->save();\n\t\t}\n\n\t\t// all arrets\n\t\t$arrets = Arrets::all();\n\n\t\tforeach($arrets as $arret)\n\t\t{\n\t\t\t$arr = Arrets::find( $arret->id );\n\t\t\t\n\t\t\t$arr->pub_date_temp = $arret->pub_date;\n\t\t\t$arr->created_at_temp = $arret->created_at;\n\t\t\t$arr->updated_at_temp = $arret->updated_at;\n\t\t\t\n\t\t\t$arr->save();\n\t\t}\n\n\t\t// all ba cat\n\t\t$baCategories = BaCategories::all();\n\n\t\tforeach($baCategories as $baCategorie)\n\t\t{\n\t\t\t$bcat = BaCategories::find( $baCategorie->id );\n\t\t\t\n\t\t\t$bcat->created_at_temp = $baCategorie->created_at;\n\t\t\t$bcat->updated_at_temp = $baCategorie->updated_at;\n\t\t\t\n\t\t\t$bcat->save();\n\t\t}\n\n\t\t// all bs cat\n\t\t$bsCategories = BsCategories::all();\n\n\t\tforeach($bsCategories as $bsCategorie)\n\t\t{\n\t\t\t$bscat = BsCategories::find( $bsCategorie->id );\n\t\t\t\n\t\t\t$bscat->created_at_temp = $bsCategorie->created_at;\n\t\t\t$bscat->updated_at_temp = $bsCategorie->updated_at;\n\t\t\t\n\t\t\t$bscat->save();\n\t\t}\n\n\t\t// all Seminaires\n\t\t$seminaires = Seminaires::all();\n\n\t\tforeach($seminaires as $seminaire)\n\t\t{\n\t\t\t$sem = Seminaires::find( $seminaire->id );\n\t\t\t\n\t\t\t$sem->created_at_temp = $seminaire->created_at;\n\t\t\t$sem->updated_at_temp = $seminaire->updated_at;\n\t\t\t\n\t\t\t$sem->save();\n\t\t}\t\t\n\n\t\t// all Subjects\n\t\t$subjects = Subjects::all();\n\n\t\tforeach($subjects as $subject)\n\t\t{\n\t\t\t$sub = Subjects::find( $subject->id );\n\t\t\t\n\t\t\t$sub->created_at_temp = $subject->created_at;\n\t\t\t$sub->updated_at_temp = $subject->updated_at;\n\t\t\t\n\t\t\t$sub->save();\n\t\t}\n*/\n $colloques = $this->colloque->getActifs();\n $inscriptions = $this->inscription->getLast(5);\n\n\t\treturn View::make('admin.index')->with(array('colloques' => $colloques, 'inscriptions' => $inscriptions));\n\t}", "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 }", "public function index() {\n // get all uom from database\n $data = array(\n 'uoms' => $this->UomModel->view(),\n );\n\n $this->load->view('header');\n $this->load->view('products/uom_view', $data);\n $this->load->view(\"footer\");\n }", "public function index()\n {\n $profile = $this->display_model->get_profile_list(); \n $data['profile'] = $profile;\n \n \n //call the model function to get the data\n $quesresult = $this->display_model->get_question_list(); \n $data['questlist'] = $quesresult;\n \n \n //call the model function to get the data\n $projectresult = $this->display_model->get_project(); \n $data['project'] = $projectresult;\n \n //load the view\n $this->load->view('display_view',$data);\n }", "public function indexAction(){\n //Supply the view with a list of all articles\n $articles = Article::find([\n 'order' => 'creationDate DESC'\n ]);\n $this->view->setVar(\"articles\", $articles);\n }", "protected function _getItems(){\n\n\t\t// get parent\n\t\t$model = new Default_Model_ProjectImages();\n\t\t$parentModel = new Default_Model_Projects();\n\t\t$parent = $parentModel->findById($this->_session->id);\n\n\n\t\t// get the item list\n\t\t$model = new $this->_primaryModel;\n\t\t$items = $model->fetchNotTrashedByParentId($this->_session->id);\n\n\t\t// assign specific vars to the view\n\t\t$this->view->assign(array (\n\t\t\t'items' => $items,\n\t\t\t'parent' => $parent,\n//\t\t\t'title' => $items->getRow(0)->title\n\t\t\t'title' => \"TITLE\"\n\t\t));\n\t}", "public function execute() {\n\n\t\tif (!Utils::getGet('action')) {\n\t\t\t$_GET['action'] = 'show';\n\t\t}\n\n\t\tif ($_GET['action'] == 'show') {\n\t\t\t$this->show();\n\t\t}\n\n\t\tif ($_GET['action'] == 'modification') {\n\t\t\tif (Utils::getGet('id')) {\n\t\t\t\t$id = Utils::getGet('id');\n\t\t\t\t$id = intval($_GET['id']);\n\t\t\t\t$this->modification($id);\n\t\t\t} else {\n\t\t\t\t$this->modificationAll();\n\t\t\t}\n\t\t}\n\n\t\tif ($_GET['action'] == 'cree') {\n\t\t\t$this->creePage();\n\t\t}\n\n\t\tif ($_GET['action'] == 'supprimer') {\n\t\t\tif (Utils::getGet('id')) {\n\t\t\t\t$id = Utils::getGet('id');\n\t\t\t\t$id = intval($_GET['id']);\n\t\t\t\t$this->souprimePage($id);\n\t\t\t} else {\n\t\t\t\t$this->modificationAll();\n\t\t\t}\n\t\t}\n\n\t}", "public function index()\n {\n $data['row'] = $this->categorys_m->get();\n $this->template->load('template', 'product/category/category_data', $data);\n }", "public function index()\n\t{\n\t\t$data = array();\n\t\t$model_data\t\t\t=\tarray();\n\t\t\n\t\t$model_data['model_list']\t=\t$this->model_model->get_all_models();\n\n $data['navigation'] = $this->load->view('template/navigation','',TRUE);\n $data['content'] = $this->load->view('pages/model/model',$model_data,TRUE);\n $data['footer'] = $this->load->view('template/footer','',TRUE);\n\t\t$this->load->view('template/main_template',$data);\n\t}", "public function index()\n {\n // Instance new Model (Song)\n //$Song = new Login();\n // getting all songs and amount of songs\n // $songs = $Song->getCredentials();\n // $amount_of_songs = $Song->getAmountOfSongs();\n\n // load views. within the views we can echo out $songs and $amount_of_songs easily\n require APP . 'view/_templates/header.php';\n require APP . 'view/login/index.php';\n require APP . 'view/_templates/footer.php';\n }", "public function index() {\n\t\t$respostas = $this->Resposta->find('all');\n\n\t\t$this->set('respostas', $respostas);\n\t}", "public static function view() \n {\n $articleDAO = new ArticleDAO();\n $articles = $articleDAO->load();\n\n $dispatch = new Dispatch();\n $dispatch->render(\n 'main_page', [\n 'articles' => $articles\n ]\n );\n }", "public function index()\n\t{\n\t\t//\n\t\t$pickups = Pickup::all();\n\t\t\n\t\tforeach($pickups as $pickup)\n\t\t{\n\t\t\t$pickup->company_name = Company::where('row_id', '=', $pickup->fk_company)->firstOrFail()->company_name;\n\t\t\t\n\t\t\ttry {\n\t\t\t\t$object = Object::where('row_id', '=', $pickup->fk_order)->firstOrFail();\n\t\t\t\t$pickup->order = $object->f_code . ' ' . $object->f_name;\n\t\t\t}\n\t\t\tcatch(Exception $e)\n\t\t\t{\n\t\t\t\t$pickup->order = '';\n\t\t\t}\n\t\t\t\n\t\t\ttry {\n\t\t\t\t$object = Object::where('row_id', '=', $pickup->fk_box)->firstOrFail();\n\t\t\t\t$pickup->box = $object->f_code . ' ' . $object->f_name;\n\t\t\t}\n\t\t\tcatch(Exception $e)\n\t\t\t{ \n\t\t\t\t$pickup->box = '';\n\t\t\t}\n\t\t}\n\t\t\n\t \n\n\t\t// load the view and pass the data\n return View::make('adminpickup.index')\n ->with('pickups', $pickups);\n\t}", "public function index() {\n // if we have POST data to create a new song entry\n\n\n $listings = $this->fetchListings();\n\n require APP . 'view/_templates/header.php';\n require APP . 'view/dashboard/index.php';\n require APP . 'view/_templates/footer.php';\n }", "function index(){\n //Obtenemos todos los registros de la tabla alumno\n $alumnos=$this->model->get();\n //Convertimos el resultado a formato JSON y se lo asignamos a una variable para poder mostrarlo en la vista\n // $this->view->alumnos= json_encode($alumnos);\n $this->view->alumnos= $alumnos;\n $this->view->render('alumno/index2');\n }", "public function run() {\n $this->render('dataSaved', array());\n }", "public function recordacoes(){\n $this->validaAutenticacao();\n $comentario = Container::getModel('Comentarios');\n $this->view->comentarios = $comentario->getComentariosNaoAprovado();\n\n $vitimas = Container::getModel('Vitimas');\n $this->view->vitimas = $vitimas->getAllDashboard();\n\n $this->menu();\n $this->render('recordacoes', 'layout-dashboard');\n }", "public function index() {\r\n $models = TodoItemModel::findAll();\r\n require $this->views_folder . 'index.php';\r\n }", "public function indexAction()\n {\n $ctrl = $this->dbController->find($this->checkControllerIdParam());\n $vCtrl = FALSE;\n $vAction = array();\n\n IF($ctrl->count() === 1) {\n $ctrlRow = new Admin_Model_DbRow_Controller($ctrl->current());\n\n FOREACH($this->dbAction->findActionByControllerId($ctrlRow->get('id')) AS $row) {\n $vAction[] = new Admin_Model_DbRow_Action($row);\n }\n\n $vCtrl = $ctrlRow;\n }\n \n $this->view->controller = $vCtrl;\n $this->view->actions = $vAction;\n }", "public function postAction()\n {\n // $this->view->blog = $Blog->fetchAll();\n \n }", "public function index()\n\t{ \n\t\t$data = [\n 'profile' => $this->db->get('profile')->result_object(),\n 'qoutes' => $this->db->get('qoutes')->result_object() ,\n 'blog' => $this->db->order_by('id', 'DESC')->limit(3)->get('blog')->result_object(),\n 'blogs' => $this->db->order_by('id', 'DESC')->limit(1)->get('blog')->result_object()\n\t\t];\n\t\t$this->load->view('home/index', $data);\n\t}", "public function run()\n {\n //$list = MytodoList::findOrFail(1);\n $item1 = new MyTodoItem();\n $item1->mytodo_list_id = 1;\n $item1->content = \"Belajar View\";\n $item1->save();\n\n $item2 = new MyTodoItem();\n $item2->mytodo_list_id = 1;\n $item2->content = \"Belajar Controller\";\n $item2->save();\n }", "public function run()\n {\n\n if (isset($this->request[\"p\"])) {\n switch ($this->request[\"p\"]) {\n\n case \"new_task\":\n case \"tasks\":\n $taskController = new TasksController();\n $taskController->run();\n $this->content = $taskController->getTaskById();\n break;\n\n case \"login\":\n\n $login = new Login();\n $login->validateInput($this->request);\n\n break;\n\n case \"logout\":\n Login::logout();\n break;\n\n case \"register\":\n if (isset($this->request[\"register\"][\"submit\"])) {\n $input = new Input();\n $user = $input->validateRegister($this->request[\"register\"]);\n $reg = new Register();\n if ($user !== false) {\n $reg->saveRegistration($user);\n }\n }\n\n break;\n\n case \"user-admin\":\n if (isset($_SESSION[\"active_user\"]) && $_SESSION[\"active_user\"]->getRole() == __ADMIN__) {\n try {\n (new UserController())->run();\n } catch (\\Exception $e) {\n Notice::set(\"error\", $e->getMessage());\n }\n } else {\n header(\"Location: ?p=home\");\n exit();\n }\n break;\n\n case \"news\":\n case \"news-admin\":\n if (isset($_SESSION[\"active_user\"]) && $_SESSION[\"active_user\"]->getRole() == __ADMIN__) {\n try {\n $news = new NewsController();\n $news->run();\n\n $this->content = $news->getUploadedImages();\n } catch (\\Exception $e) {\n Notice::set(\"error\", $e->getMessage());\n }\n } else {\n header(\"Location: ?p=home\");\n exit();\n }\n break;\n\n case \"contact\":\n $input = new Input();\n if (isset($this->request[\"contact\"][\"submit\"])) {\n $input->validateContact($this->request[\"contact\"]);\n }\n break;\n\n }\n }\n }" ]
[ "0.6614171", "0.65896195", "0.651736", "0.65077776", "0.64798987", "0.6478829", "0.6467275", "0.6407041", "0.6379127", "0.63708276", "0.63701", "0.636618", "0.63462025", "0.63396066", "0.63339204", "0.63233596", "0.6314824", "0.6288283", "0.6275687", "0.62703335", "0.62660086", "0.6241632", "0.62376535", "0.62356055", "0.62334853", "0.6231461", "0.62313646", "0.6229428", "0.62271225", "0.62129307", "0.62017494", "0.6196301", "0.6170112", "0.6168587", "0.61601275", "0.61594594", "0.61566013", "0.6148101", "0.61425996", "0.61418265", "0.61415637", "0.6140168", "0.6140052", "0.6138646", "0.6131818", "0.6127191", "0.6123291", "0.6121165", "0.61163086", "0.61154646", "0.6105257", "0.61025196", "0.60920036", "0.6090492", "0.6087846", "0.6087327", "0.6087267", "0.60801095", "0.60711265", "0.6065968", "0.6045", "0.6043843", "0.6043731", "0.6036242", "0.6035179", "0.6034043", "0.603244", "0.6031403", "0.60265535", "0.6025538", "0.60222954", "0.6015517", "0.6012966", "0.6011507", "0.60102797", "0.60092163", "0.60081106", "0.60078454", "0.6007581", "0.6006996", "0.60034883", "0.6002285", "0.5999418", "0.5998241", "0.5996703", "0.59921974", "0.598711", "0.59866625", "0.5974453", "0.5969387", "0.59690917", "0.5968556", "0.5962447", "0.5959363", "0.59570265", "0.5954653", "0.5952881", "0.5950924", "0.59485066", "0.5942802" ]
0.60365653
63
Check if multisite is on and this feature is allowed
public function register(){ if(is_multisite()){ $multisiteOption = get_site_option('Autobody_Network_group'); if(!($multisiteOption['autobody_search'] == 1)) return; } $option = get_option('Autobody_group'); $activated = (isset($option['autobody_search'])) ? $option['autobody_search'] : false ; if(!$activated) return false; $this->settings = new SettingsApi(); $this->AdminCallbacks = new AdminCallbacks(); $this->adminSubpages(); $this->settings->addSubPages($this->admin_subpages)->register(); add_shortcode( 'autobody_searchbox', array($this , 'autobody_searchbox' ) ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function is_multisite() {\n\t// \treturn MULTISITE;\n\n\t// if ( defined( 'SUBDOMAIN_INSTALL' ) || defined( 'VHOST' ) || defined( 'SUNRISE' ) )\n\t// \treturn true;\n\n\treturn false;\n}", "private function isProductionSiteAllowed()\n\t{\n\t\tif (GetConfig('HostingId')) {\n\t\t\tif (GetConfig('AvailableFeatures') & FEATURE_AVAILABLE_LIVE_EBAY_LISTING) {\n\t\t\t\treturn true;\n\t\t\t} else {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "public static function isMultiSiteEnabled()\n {\n return sfConfig::get('app_rt_enable_multi_site', false);\n }", "protected function isMultisite()\n\t{\n\t\treturn is_multisite();\n\t}", "protected function IsMultisite() {\n\t\treturn function_exists( 'is_multisite' ) && is_multisite();\n\t}", "function ms_site_check()\n {\n }", "public static function may_restrict_by_site()\n {\n return 3 == lib::create( 'business\\session' )->get_role()->tier;\n }", "public function isSite() {\n return false;\n }", "private function is_wp_multisite_ready() {\n\t\t$wp_multisite = is_multisite() && ( false === $this->multisite_compatible ) ? false : true;\n\n\t\tif ( false == $wp_multisite ) {\n\t\t\t$this->add_error_notice(\n\t\t\t\t'Your site is set up as a Network (Multisite)',\n\t\t\t\t'This plugin is not compatible with multisite environment'\n\t\t\t);\n\t\t}\n\n\t\treturn $wp_multisite;\n\t}", "function jetpack_is_atomic_site() {\n\t$at_options = get_option( 'at_options', array() );\n\treturn ! empty( $at_options ) || defined( 'WPCOMSH__PLUGIN_FILE' );\n}", "public function isSiteAdmin(){\n\t\treturn $this->rank_user==config('ranks.SITE_ADMIN');\n\t}", "function is_multisite()\n {\n }", "function check_access() {\n if (!get_site()) {\n return true; // no access check before site is fully set up\n }\n $context = empty($this->context) ? get_context_instance(CONTEXT_SYSTEM) : $this->context;\n foreach($this->req_capability as $cap) {\n if (is_valid_capability($cap) and has_capability($cap, $context)) {\n return true;\n }\n }\n return false;\n }", "function is_multisite() {\n\t\treturn false;\n\t}", "protected function _isAllowed()\n {\n return Mage::getSingleton('admin/session')->isAllowed('system/config/newsletter');\n }", "function mc_switch_sites() {\n\tif ( function_exists( 'is_multisite' ) && is_multisite() ) {\n\t\tif ( get_site_option( 'mc_multisite' ) == 2 && my_calendar_table() != my_calendar_table( 'global' ) ) {\n\t\t\tif ( get_option( 'mc_current_table' ) == '1' ) {\n\t\t\t\t// can post to either, but is currently set to post to central table.\n\t\t\t\treturn true;\n\t\t\t}\n\t\t} elseif ( get_site_option( 'mc_multisite' ) == 1 && my_calendar_table() != my_calendar_table( 'global' ) ) {\n\t\t\t// can only post to central table.\n\t\t\treturn true;\n\t\t}\n\t}\n\n\treturn false;\n}", "public static function isAllowedViewSite()\n {\n if ((int) SettingService::getSetting('application_disable_site')) {\n $user = UserIdentityService::getCurrentUserIdentity();\n\n if ($user['role'] != AclBaseModel::DEFAULT_ROLE_ADMIN) {\n // get a visitor IP\n $remote = new RemoteAddress;\n $remote->setUseProxy(true);\n\n $userIp = $remote->getIpAddress();\n\n // get list of allowed ACL roles\n if (null != ($allowedAclRoles = SettingService::getSetting('application_disable_site_acl'))) {\n if (!is_array($allowedAclRoles)) {\n $allowedAclRoles = [$allowedAclRoles];\n }\n }\n\n // get list of allowed IPs\n if (null != ($allowedIps = SettingService::getSetting('application_disable_site_ip'))) {\n $allowedIps = explode(',', $allowedIps);\n }\n\n if ($allowedAclRoles || $allowedIps) {\n if (($allowedAclRoles && in_array($user['role'], $allowedAclRoles)) \n || ($allowedIps && in_array($userIp, $allowedIps))) {\n\n return true;\n }\n }\n\n return false;\n }\n }\n\n return true;\n }", "public function is_network_active() {\n\n\t\tif ( ! is_multisite() ) {\n\t\t\treturn false;\n\t\t}\n\n\t\t// Check the sitewide plugins array.\n\t\t$base = $this->basename;\n\t\t$plugins = get_site_option( 'active_sitewide_plugins' );\n\n\t\tif ( ! is_array( $plugins ) || ! isset( $plugins[ $base ] ) ) {\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t}", "function multisite_over_quota_message()\n {\n }", "function wp_sub_enabled() {\n\tif ( is_network_admin() ) {\n\t\treturn false;\n\t}\n\n\treturn apply_filters( 'wp_sub_enabled', true );\n}", "function is_allowed_to_install() {\n\t\t\treturn ( $this->is_premium() || ! $this->is_org_repo_compliant() );\n\t\t}", "function is_wpmu_sitewide_plugin( $file ) {\n\t_deprecated_function( __FUNCTION__, '3.0.0', 'is_network_only_plugin()' );\n\treturn is_network_only_plugin( $file );\n}", "function lti_site_admin() {\n\tif ( function_exists( 'is_super_admin' ) ) {\n\t\treturn is_super_admin();\n\t} elseif ( function_exists( 'is_site_admin' ) ) {\n\t\treturn is_site_admin();\n\t} else {\n\t\treturn true;\n\t}\n}", "function applies() {\n\t\t$context =& $this->_router->getContext($this->_request);\n\t\treturn ( $context && $context->getSetting('restrictSiteAccess'));\n\t}", "function is_wpmu_sitewide_plugin($file)\n {\n }", "function in_safe_mode()\n{\n global $SITE_INFO;\n if (!empty($SITE_INFO['safe_mode'])) {\n if (!isset($_GET['keep_safe_mode'])) {\n return ($SITE_INFO['safe_mode'] == '1'); // Useful for testing HPHP support, and generally more robust and fast\n }\n }\n\n $backdoor_ip = ((!empty($SITE_INFO['backdoor_ip'])) && (cms_srv('REMOTE_ADDR') == $SITE_INFO['backdoor_ip']) && (cms_srv('HTTP_X_FORWARDED_FOR') == ''));\n\n global $CHECKING_SAFEMODE, $REQUIRED_CODE;\n if (!$backdoor_ip) {\n if (!isset($REQUIRED_CODE['lang']) || !$REQUIRED_CODE['lang']) {\n return false; // Too early. We can get in horrible problems when doing get_member() below if lang hasn't loaded yet\n }\n if ($CHECKING_SAFEMODE) {\n return false; // Stops infinite loops (e.g. Check safe mode > Check access > Check usergroups > Check implicit usergroup hooks > Check whether to look at custom implicit usergroup hooks [i.e. if not in safe mode])\n }\n }\n $CHECKING_SAFEMODE = true;\n $ret = ((get_param_integer('keep_safe_mode', 0) == 1) && ($backdoor_ip || (isset($GLOBALS['IS_ACTUALLY_ADMIN']) && ($GLOBALS['IS_ACTUALLY_ADMIN'])) || (!array_key_exists('FORUM_DRIVER', $GLOBALS)) || ($GLOBALS['FORUM_DRIVER'] === null) || (!function_exists('get_member')) || (empty($GLOBALS['MEMBER_CACHED'])) || ($GLOBALS['FORUM_DRIVER']->is_super_admin(get_member()))));\n $CHECKING_SAFEMODE = false;\n return $ret;\n}", "public function isAllowed()\n {\n if ($this->appState->getAreaCode() == self::AREA_BACKEND) {\n return false;\n }\n\n $userAgentList = $this->helperData->getUserAgentList();\n $userAgent = $this->geoipHelperHttp->getHttpUserAgent();\n if (!empty($userAgentList) && $userAgent) {\n foreach ($userAgentList as $agent) {\n $agent = str_replace(['*', '/'], ['.*', '\\/'], $agent);\n if (preg_match(\"/{$agent}$/i\", $userAgent)) {\n return false;\n }\n }\n }\n\n $request = $this->request;\n $exceptionUrls = $this->helperData->getExceptionUrls();\n if (!empty($exceptionUrls)) {\n $requestString = $request->getRequestString();\n foreach ($exceptionUrls as $url) {\n $url = str_replace('*', '.*?', $url);\n if (preg_match('!^' . $url . '$!i', $requestString)) {\n return false;\n }\n }\n }\n\n return true;\n }", "function wp_allowed_protocols()\n {\n }", "public static function allowServerInfo()\n\t{\n\t\treturn MHTTPD::$config['Admin']['allow_server_info'];\n\t}", "function is_subdomain_install()\n {\n }", "function cjpopups_is_local(){\n\tif($_SERVER['REMOTE_ADDR'] == '127.0.0.1'){\n\t\treturn true;\n\t}elseif(strpos(site_url(), 'cssjockey') > 0){\n\t\treturn true;\n\t}else{\n\t\treturn false;\n\t}\n}", "public static function is_forbidden_source() {\n\t\t\t// Forbidden domains.\n\t\t\t$forbidden = array(\n\t\t\t\t'wpengine' => '.wpengine.com',\n\t\t\t\t'dev' => '.dev',\n\t\t\t\t'local' => '.local',\n\t\t\t);\n\n\t\t\t// Filter to add or remove domains from forbidden array.\n\t\t\t$forbidden = apply_filters( 'imutils_forbiddden_domains', $forbidden );\n\n\t\t\t// Grab the installs url.\n\t\t\t$this_domain = self::get_site_hostname();\n\n\t\t\tforeach ( $forbidden as $domain ) {\n\t\t\t\tif ( false !== strpos( $this_domain, $domain ) ) {\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn false;\n\t\t}", "public function isIpnUrlAccessRestricted()\n {\n return Mage::getStoreConfigFlag(self::GENERAL_SETTINGS_PATH . 'restrictaccess', $this->getStoreId());\n }", "public function isCDEnabledAndRequestNonLocalNonAdmin()\n {\n $settings = $this->getSettings();\n return !Mage::app()->getRequest()->getPost('is_local_request')\n && !Mage::app()->getStore()->isAdmin()\n && $settings['enabled'];\n }", "public function isSiteSpecific()\n {\n return $this->siteSpecific;\n }", "public function isEnabled()\n\t{\n\t\treturn Mage::helper('wordpress')->isPluginEnabled('wordpress-seo/wp-seo.php') \n\t\t\t|| Mage::helper('wordpress')->isPluginEnabled('wordpress-seo-premium/wp-seo-premium.php');\n\t}", "function isSitePlugin() {\n\t\treturn false;\n\t}", "function adminChk(){\r\n\treturn $_SERVER[\"REMOTE_ADDR\"] == \"118.36.189.171\" || $_SERVER[\"REMOTE_ADDR\"] == \"39.115.229.173\" || $_SERVER[\"REMOTE_ADDR\"] == \"127.0.0.1\";\r\n}", "function ajan_is_network_activated() {\n\n\t// Default to is_multisite()\n\t$retval = is_multisite();\n\n\t// Check the sitewide plugins array\n\t$base = activitynotifications()->basename;\n\t$plugins = get_site_option( 'active_sitewide_plugins' );\n\n\t// Override is_multisite() if not network activated\n\tif ( ! is_array( $plugins ) || ! isset( $plugins[$base] ) )\n\t\t$retval = false;\n\n\treturn (bool) apply_filters( 'ajan_is_network_activated', $retval );\n}", "function robots_access(){\r\n if(is_production() && get_option('blog_public') == '0') update_option('blog_public', '1');\r\n if(!is_production() && get_option('blog_public') == '1') update_option('blog_public', '0');\r\n}", "protected function _isAllowed()\n {\n return Mage::getSingleton('admin/session')->isAllowed('sales/mfb_myflyingbox/offer');\n }", "public static function isRequestFromServerLocal() {\n $ip = UtilsNet::fetch_alt_ip();\n return in_array($ip, UtilsNet::getServerLocalIps());\n }", "public function checkAcquiaHosted() {\n return isset($_SERVER['AH_SITE_ENVIRONMENT'], $_SERVER['AH_SITE_NAME']);\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}", "public static function check()\n\t\t{\n\t\t\tif(!($v = get_option(\"ws_plugin__s2member_activated_version\")) || !version_compare($v, WS_PLUGIN__S2MEMBER_VERSION, \">=\"))\n\t\t\t\tc_ws_plugin__s2member_installation::activate(\"version\");\n\n\t\t\telse if(is_multisite() && is_main_site() && (!($mms_v = get_option(\"ws_plugin__s2member_activated_mms_version\")) || !version_compare($mms_v, WS_PLUGIN__S2MEMBER_VERSION, \">=\")))\n\t\t\t\tc_ws_plugin__s2member_installation::activate(\"mms_version\");\n\n\t\t\telse if(!($l = (int)get_option(\"ws_plugin__s2member_activated_levels\")) || $l !== $GLOBALS[\"WS_PLUGIN__\"][\"s2member\"][\"c\"][\"levels\"])\n\t\t\t\tc_ws_plugin__s2member_installation::activate(\"levels\");\n\t\t}", "public function isTrackingAllowed() {\n\t $data = Mage::getStoreConfig('rublon_allow_tracking');\n\t \t\t\n\t return !empty($data)?true:false;\n\t}", "function hasSitePriv()\n {\n $priv = (int) $this->getValueByFieldName('priv_id');\n $sitePriv = RowManager_AdminManager::PRIVILEDGE_SITE;\n return ( $priv == $sitePriv);\n }", "public function hasWebsite() {\n return $this->_has(8);\n }", "public static function Wpml_active_check() {\n\n if ( ! self::$active_plugins ) {\n self::init();\n }\n\n return in_array( 'sitepress-multilingual-cms/sitepress.php', self::$active_plugins ) || array_key_exists( 'sitepress-multilingual-cms/sitepress.php', self::$active_plugins );\n }", "public function security_check() {\n\t\t\tif ( current_user_can( 'activate_plugins' ) ) {\n\t\t\t\t//Conditionally adding the function for database context for \n\t\t\t\tadd_filter( 'clean_url', array( $this, 'save_shortcode' ), 99, 3 );\n\t\t\t}\n\t\t}", "public static function isProdEnvironment()\r\n {\r\n return in_array($_SERVER['HTTP_HOST'], static::getProdDomains());\r\n }", "public function hasWebsite() {\n return $this->_has(9);\n }", "protected function isIntranet()\n {\n return false;\n }", "function is_pro_site($blog_id = false, $level = false) {\r\n global $psts;\r\n\treturn $psts->is_pro_site($blog_id, $level);\r\n}", "protected function _isAllowed()\n {\n switch ($this->getRequest()->getActionName()) {\n case 'new':\n case 'save':\n return Mage::getSingleton('gri_cms/config')->canCurrentUserSaveVersion();\n break;\n case 'delete':\n return Mage::getSingleton('gri_cms/config')->canCurrentUserDeleteVersion();\n break;\n case 'massDeleteRevisions':\n return Mage::getSingleton('gri_cms/config')->canCurrentUserDeleteRevision();\n break;\n default:\n return Mage::getSingleton('admin/session')->isAllowed('cms/page');\n break;\n }\n }", "function the_champ_social_sharing_enabled(){\r\n\tglobal $theChampSharingOptions;\r\n\tif(isset($theChampSharingOptions['enable']) && $theChampSharingOptions['enable'] == 1){\r\n\t\treturn true;\r\n\t}else{\r\n\t\treturn false;\r\n\t}\r\n}", "function wpcom_vip_check_site_url( $site_urls ) {\n _deprecated_function( __FUNCTION__, '2.0.0' );\n\n return false;\n}", "function trusted() {\n\t//-----------------------------------------------------------\n\t// Check for trusted host\n\tif(getenv('HTTP_REFERRER')) {\n\t\t$ref_url_parts=parse_url(getenv('HTTP_REFERRER'));\n\t\t} else {\n\t\t$ref_url_parts=parse_url(getenv('HTTP_REFERER'));\n\t\t}\n\tif($ref_url_parts['host'] !== $this->accept_host) {\n\t\treturn false;\n\t\t//print \"ERROR - You do not have permission to access this site remotely.\";\n\t\t//exit;\n\t} else {\n\t\treturn true;\n\t}\n}", "function canHandleCurrentUrl() ;", "protected function _isAllowed()\r\n {\r\n return Mage::getSingleton('admin/session')->isAllowed('system/thetailor_workgroup_workflow');\r\n }", "function is_live() {\n\treturn preg_match( DEVELOPMENT_HOSTS_EXPRESSION, $_SERVER['SERVER_NAME']) ? false : true;\n}", "function wpcom_is_vip() {\n _deprecated_function( __FUNCTION__, '2.0.0' );\n\n return WPCOM_IS_VIP_ENV;\n}", "private function _isLoggedIn() {\n \n if ( ! is_multisite() ) { \n if ( ! function_exists( 'is_user_logged_in' ) ) {\n include( ABSPATH . \"wp-includes/pluggable.php\" ); \n } \n return is_user_logged_in();\n }\n \n // For multi-sites\n return is_user_member_of_blog( get_current_user_id(), get_current_blog_id() );\n\n }", "function isEnabled()\n{\n global $avahips_config;\n\n // Load Avahi-PS configuration file\n $aps_cfg = load_conffile($avahips_config);\n\n // Check for IPFS as a backend database for publication\n if (isset($aps_cfg['DATABASE']) && strpos($aps_cfg['DATABASE'], 'ipfs') !== false) {\n return true;\n }\n return false;\n}", "public function isVconnetEnabled() {\n\t\n\t\t$installed = Mage::helper('core')->isModuleEnabled('Vconnect_Postnord');\n\t\t\n\t\tif($installed == true) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t\n\t}", "private function isApiAvailable() {\n\t\treturn get_option(\"wp_broadbean_ipavailibility\") == 1;\n\t}", "function is_main_site($site_id = \\null, $network_id = \\null)\n {\n }", "protected function _isAllowed()\n {\n return Mage::getSingleton('admin/session')->isAllowed('bs_misc/aircraft');\n }", "function is_site_admin($user_login = '')\n {\n }", "function isWhiteListed($tld) {\r\n\t$wpbar_options = get_option(\"wpbar_options\");\r\n\t$whitelist=explode(\"\\n\",$wpbar_options[\"whitelist\"]);\r\n\t$white=false;\r\n\tfor($i=0;$i<sizeof($whitelist);$i++){\r\n\t\tif(trim($tld)==trim(get_domain($whitelist[$i])))\r\n\t\t\t$white=true;\r\n\t}\r\n\treturn $white;\r\n}", "public function isEnabled()\n\t{\n\t\t// note: don't use $this->_main->.. as it might not exist when this func is called.\n\t\treturn Mage::helper('shoptimally_upsalecoupons/main')->isEnabled();\n\t}", "function is_network_mode()\n\t{\n\t\tstatic $network_mode = null;\n\t\t\n\t\tif ($network_mode === null) {\n\t\t\t$network_mode = (defined('MULTISITE') && MULTISITE);\n\t\t}\n\t\t\n\t\treturn $network_mode;\n\t}", "public function is_network_detected()\n {\n /* Plugin is loaded via mu-plugins. */\n\n if (strpos(Utility::normalize_path($this->root_path), Utility::normalize_path(WPMU_PLUGIN_DIR)) !== false) {\n return true;\n }\n\n if (is_multisite()) {\n /* Looks through network enabled plugins to see if our one is there. */\n foreach (wp_get_active_network_plugins() as $path) {\n if ($this->boot_file == $path) {\n return true;\n }\n }\n }\n return false;\n }", "function cfwprapi_can_user_have_access( WP_REST_Request $request ) {\n return current_user_can( 'manage_options' );\n}", "function classicpress_check_can_migrate() {\n\t// First: Run a series of checks for conditions that are inherent to this\n\t// WordPress install and this user session.\n\n\t// Check: Are we already on ClassicPress?\n\tif ( function_exists( 'classicpress_version' ) ) {\n\t\tif ( is_multisite() ) {\n\t\t\t$delete_plugin_url = network_admin_url( 'plugins.php' );\n\t\t} else {\n\t\t\t$delete_plugin_url = admin_url( 'plugins.php' );\n\t\t}\n?>\n\t\t<div class=\"notice notice-success\">\n\t\t\t<p>\n\t\t\t\t<?php esc_html_e(\n\t\t\t\t\t\"Hey, good job, you're already running ClassicPress!\",\n\t\t\t\t\t'switch-to-classicpress'\n\t\t\t\t); ?>\n\t\t\t</p>\n\t\t\t<p>\n\t\t\t\t<?php echo sprintf(\n\t\t\t\t\t/* translators: %s: URL to plugins page */\n\t\t\t\t\t__(\n\t\t\t\t\t\t'You can <a href=\"%s\">delete this plugin</a> now.',\n\t\t\t\t\t\t'switch-to-classicpress'\n\t\t\t\t\t),\n\t\t\t\t\t$delete_plugin_url\n\t\t\t\t); ?>\n\t\t\t</p>\n\t\t</div>\n<?php\n\t\treturn false;\n\t}\n\n\t// Check: Are we running on WordPress.com?\n\t// @see https://github.com/Automattic/jetpack/blob/6.6.1/functions.global.php#L32-L43\n\t$at_options = get_option( 'at_options', array() );\n\tif ( ! empty( $at_options ) || defined( 'WPCOMSH__PLUGIN_FILE' ) ) {\n?>\n\t\t<div class=\"notice notice-error\">\n\t\t\t<p>\n\t\t\t\t<?php esc_html_e(\n\t\t\t\t\t\"Sorry, this plugin doesn't support sites hosted on WordPress.com.\",\n\t\t\t\t\t'switch-to-classicpress'\n\t\t\t\t); ?>\n\t\t\t</p>\n\t\t\t<p>\n\t\t\t\t<?php _e(\n\t\t\t\t\t'In order to switch to ClassicPress, you\\'ll need to <a href=\"https://move.wordpress.com/\">move to a self-hosted WordPress site</a> first.',\n\t\t\t\t\t'switch-to-classicpress'\n\t\t\t\t); ?>\n\t\t\t</p>\n\t\t</div>\n<?php\n\t\treturn false;\n\t}\n\n\t// Check: Does the current user have permission to update core?\n\tif ( ! current_user_can( 'update_core' ) ) {\n?>\n\t\t<div class=\"notice notice-error\">\n\t\t\t<p>\n\t\t\t\t<?php esc_html_e(\n\t\t\t\t\t\"Sorry, you're not allowed to perform this action.\",\n\t\t\t\t\t'switch-to-classicpress'\n\t\t\t\t); ?>\n\t\t\t</p>\n\t\t\t<p>\n\t\t\t\t<?php esc_html_e(\n\t\t\t\t\t\"Please contact a site administrator for more information.\",\n\t\t\t\t\t'switch-to-classicpress'\n\t\t\t\t); ?>\n\t\t\t</p>\n\t\t</div>\n<?php\n\t\treturn false;\n\t}\n\n\t// The first round of checks has passed. Now, run a second round related\n\t// to conditions that the user (or at least the hosting provider) has\n\t// control over, and display the results in a table.\n\n\t$preflight_checks = array();\n\t$icon_preflight_pass = (\n\t\t'<div class=\"cp-preflight-icon cp-pass\">'\n\t\t\t. '<div class=\"dashicons dashicons-yes\"></div>'\n\t\t. '</div>'\n\t);\n\t$icon_preflight_fail = (\n\t\t'<div class=\"cp-preflight-icon cp-fail\">'\n\t\t\t. '<div class=\"dashicons dashicons-no\"></div>'\n\t\t. '</div>'\n\t);\n\t$icon_preflight_warn = (\n\t\t'<div class=\"cp-preflight-icon cp-warn\">'\n\t\t\t. '<div class=\"dashicons dashicons-flag\"></div>'\n\t\t. '</div>'\n\t);\n\techo '<table id=\"cp-preflight-checks\">' . \"\\n\";\n\n\t// Check: Supported WP version\n\t// More versions can be added after they are confirmed to work.\n\tglobal $wp_version;\n\t$wp_version_min = '4.9.0';\n\t$wp_version_max = '5.0.0';\n\t$wp_version_check_intro_message = sprintf( __(\n\t\t/* translators: 1: minimum supported WordPress version, 2: maximum supported WordPress version */\n\t\t'This plugin supports WordPress versions <strong>%1$s</strong> to <strong>%2$s</strong> (and some newer development versions).',\n\t\t'switch-to-classicpress'\n\t), $wp_version_min, $wp_version_max );\n\t$wp_version_check_intro_message .= \"<br>\\n\";\n\tif (\n\t\t// Version is outside of our \"stable release\" range...\n\t\t(\n\t\t\tversion_compare( $wp_version, $wp_version_min, 'lt' ) ||\n\t\t\tversion_compare( $wp_version, $wp_version_max, 'gt' )\n\t\t) &&\n\t\t// ... and it's not a known development release.\n\t\t! preg_match( '#^5\\.0\\.1-(alpha|beta)\\b#', $wp_version ) &&\n\t\t! preg_match( '#^5\\.1-(alpha|beta)\\b#', $wp_version )\n\t) {\n\t\t/**\n\t\t * Filters whether to ignore the result of the WP version check.\n\t\t *\n\t\t * @since 0.4.0\n\t\t *\n\t\t * @param bool $ignore Ignore the WP version check. Defaults to false.\n\t\t */\n\t\tif ( apply_filters( 'classicpress_ignore_wp_version', false ) ) {\n\t\t\t$preflight_checks['wp_version'] = true;\n\t\t\techo \"<tr>\\n<td>$icon_preflight_warn</td>\\n<td>\\n\";\n\t\t\techo \"<p>\\n\";\n\t\t\techo $wp_version_check_intro_message;\n\t\t\t_e(\n\t\t\t\t'The preflight check for supported WordPress versions has been <strong class=\"cp-emphasis\">disabled</strong>.',\n\t\t\t\t'switch-to-classicpress'\n\t\t\t);\n\t\t\techo \"<br>\\n\";\n\t\t\t_e(\n\t\t\t\t'We cannot guarantee that the migration process is going to work, and may even leave your current installation partially broken.',\n\t\t\t\t'switch-to-classicpress'\n\t\t\t);\n\t\t\techo \"<br>\\n\";\n\t\t\t_e(\n\t\t\t\t'<strong class=\"cp-emphasis\">Proceed at your own risk!</strong>',\n\t\t\t\t'switch-to-classicpress'\n\t\t\t);\n\t\t} else {\n\t\t\t$preflight_checks['wp_version'] = false;\n\t\t\techo \"<tr>\\n<td>$icon_preflight_fail</td>\\n<td>\\n\";\n\t\t\techo \"<p>\\n\";\n\t\t\techo $wp_version_check_intro_message;\n\t\t}\n\t} else {\n\t\t$preflight_checks['wp_version'] = true;\n\t\tif ( substr( $wp_version, 0, 1 ) === '5' ) {\n\t\t\techo \"<tr>\\n<td>$icon_preflight_warn</td>\\n<td>\\n\";\n\t\t} else {\n\t\t\techo \"<tr>\\n<td>$icon_preflight_pass</td>\\n<td>\\n\";\n\t\t}\n\t\techo \"<p>\\n\";\n\t\techo $wp_version_check_intro_message;\n\t}\n\tprintf( __(\n\t\t/* translators: current WordPress version */\n\t\t'You are running WordPress version <strong>%s</strong>.',\n\t\t'switch-to-classicpress'\n\t), $wp_version );\n\tif ( substr( $wp_version, 0, 1 ) === '5' && $preflight_checks['wp_version'] ) {\n\t\techo \"<br>\\n\";\n\t\t_e(\n\t\t\t'Migration is supported, but content edited in the new WordPress block editor may not be fully compatible with ClassicPress.',\n\t\t\t'switch-to-classicpress'\n\t\t);\n\t\techo \"<br>\\n\";\n\t\t_e(\n\t\t\t'After the migration, we recommend reviewing each recently edited post or page and restoring to an earlier revision if needed.',\n\t\t\t'switch-to-classicpress'\n\t\t);\n\t}\n\techo \"\\n</p>\\n\";\n\t// TODO: Add instructions if WP too old.\n\techo \"</td></tr>\\n\";\n\n\t// Check: Supported PHP version\n\t$php_version_min = '5.6';\n\tif ( version_compare( PHP_VERSION, $php_version_min, 'lt' ) ) {\n\t\t$preflight_checks['php_version'] = false;\n\t\techo \"<tr>\\n<td>$icon_preflight_fail</td>\\n<td>\\n\";\n\t} else {\n\t\t$preflight_checks['php_version'] = true;\n\t\techo \"<tr>\\n<td>$icon_preflight_pass</td>\\n<td>\\n\";\n\t}\n\techo \"<p>\\n\";\n\tprintf( __(\n\t\t/* translators: minimum supported PHP version */\n\t\t'ClassicPress supports PHP versions <strong>%1$s</strong> and <strong>newer</strong>.',\n\t\t'switch-to-classicpress'\n\t), $php_version_min );\n\techo \"<br>\\n\";\n\tprintf( __(\n\t\t/* translators: current PHP version */\n\t\t'You are using PHP version <strong>%s</strong>.',\n\t\t'switch-to-classicpress'\n\t), PHP_VERSION );\n\techo \"\\n</p>\\n\";\n\t// TODO: Add instructions if PHP too old.\n\techo \"</td></tr>\\n\";\n\n\t// Check: Support for outgoing HTTPS requests\n\tif ( ! wp_http_supports( array( 'ssl' ) ) ) {\n\t\t$preflight_checks['wp_http_supports_ssl'] = false;\n\t\techo \"<tr>\\n<td>$icon_preflight_fail</td>\\n<td>\\n\";\n\t} else {\n\t\t$preflight_checks['wp_http_supports_ssl'] = true;\n\t\techo \"<tr>\\n<td>$icon_preflight_pass</td>\\n<td>\\n\";\n\t}\n\techo \"<p>\\n\";\n\t_e(\n\t\t'ClassicPress only supports communicating with the ClassicPress.net API over SSL.',\n\t\t'switch-to-classicpress'\n\t);\n\techo \"\\n<br>\\n\";\n\tif ( $preflight_checks['wp_http_supports_ssl'] ) {\n\t\t_e(\n\t\t\t'This site supports making outgoing connections securely using SSL.',\n\t\t\t'switch-to-classicpress'\n\t\t);\n\t} else {\n\t\t_e(\n\t\t\t'This site <strong class=\"cp-emphasis\">does not</strong> support making outgoing connections securely using SSL.',\n\t\t\t'switch-to-classicpress'\n\t\t);\n\t\t// TODO: Add instructions if SSL not supported.\n\t}\n\techo \"\\n</p>\\n\";\n\techo \"</td></tr>\\n\";\n\n\t// Check: Core files checksums\n\t$modified_files = classicpress_check_core_files();\n\tif ( $modified_files === false || ! empty( $modified_files ) ) {\n\t\techo \"<tr>\\n<td>$icon_preflight_warn</td>\\n<td>\\n\";\n\t} else {\n\t\techo \"<tr>\\n<td>$icon_preflight_pass</td>\\n<td>\\n\";\n\t}\n\techo \"<p>\\n\";\n\t_e(\n\t\t'Your WordPress core files will be overwritten.',\n\t\t'switch-to-classicpress'\n\t);\n\techo \"\\n<br>\\n\";\n\tif ( $modified_files === false ) {\n\t\t_e(\n\t\t\t'<strong class=\"cp-emphasis\">Unable to determine whether core files were modified</strong>.',\n\t\t\t'switch-to-classicpress'\n\t\t);\n\t\techo \"\\n<br>\\n\";\n\t\t_e(\n\t\t\t'This is most likely because you are running a development version of WordPress.',\n\t\t\t'switch-to-classicpress'\n\t\t);\n\t} else if ( empty( $modified_files ) ) {\n\t\t_e(\n\t\t\t'You have not modified any core files.',\n\t\t\t'switch-to-classicpress'\n\t\t);\n\t} else {\n\t\techo '<strong class=\"cp-emphasis\">';\n\t\t_e(\n\t\t\t'Modified core files detected. These customisations will be lost.',\n\t\t\t'switch-to-classicpress'\n\t\t);\n\t\techo \"</strong>\\n<br>\\n\";\n\t\t_e(\n\t\t\t'If you have JavaScript enabled, you can see a list of modified files <strong>in your browser console</strong>.',\n\t\t\t'switch-to-classicpress'\n\t\t);\n\t\techo \"\\n<script>console.log( 'modified core files:', \";\n\t\techo wp_json_encode( $modified_files );\n\t\techo ' );</script>';\n\t}\n\techo \"\\n</p>\\n\";\n\techo \"</td></tr>\\n\";\n\n\t// TODO: Any other checks needed?\n\n\tif ( is_multisite() ) {\n\t\t// Show a reminder to backup the multisite install first\n\t\techo \"<tr>\\n<td>$icon_preflight_warn</td>\\n<td>\\n\";\n\t\techo \"<p>\\n\";\n\t\t_e(\n\t\t\t'Multisite installation detected.',\n\t\t\t'switch-to-classicpress'\n\t\t);\n\t\techo \"\\n<br>\\n\";\n\t\t_e(\n\t\t\t'Migrating to ClassicPress is supported, but it is <strong class=\"cp-emphasis\">very important</strong> that you perform a backup first.',\n\t\t\t'switch-to-classicpress'\n\t\t);\n\t\techo \"\\n<br>\\n\";\n\t\t_e(\n\t\t\t'It would also be a good idea to try the migration on a development or staging site first.',\n\t\t\t'switch-to-classicpress'\n\t\t);\n\t\techo \"\\n</p>\\n\";\n\t\techo \"</td></tr>\\n\";\n\t}\n\n\techo \"</table>\\n\";\n\n\tif (\n\t\t$preflight_checks['wp_version'] &&\n\t\t$preflight_checks['php_version'] &&\n\t\t$preflight_checks['wp_http_supports_ssl']\n\t) {\n\t\tupdate_option( 'classicpress_preflight_checks', $preflight_checks, false );\n\t\treturn true;\n\t} else {\n\t\tdelete_option( 'classicpress_preflight_checks' );\n\t\treturn false;\n\t}\n}", "public function checkIfLoginAllowedInBranch() {}", "function local_ue_has_capability_somewhere($capability, $excludesystem = true, $excludesite = true,\n $doanything = false, $contextlevels = '') {\n global $USER, $DB;\n\n $contextclause = '';\n\n if ($contextlevels) {\n list($sql, $params) = $DB->get_in_or_equal(explode(',', $contextlevels), SQL_PARAMS_QM);\n $contextclause = \"\n AND ctx.contextlevel $sql\n \";\n }\n $params[] = $capability;\n $params[] = $USER->id;\n\n // This is a a quick rough query that may not handle all role override possibility.\n\n $sql = \"\n SELECT\n COUNT(DISTINCT ra.id)\n FROM\n {role_capabilities} rc,\n {role_assignments} ra,\n {context} ctx\n WHERE\n rc.roleid = ra.roleid AND\n ra.contextid = ctx.id AND\n rc.capability = ?\n $contextclause\n AND ra.userid = ? AND\n rc.permission = 1\n \";\n $hassome = $DB->count_records_sql($sql, $params);\n\n if ($excludesite && !empty($hassome) && array_key_exists(SITEID, $hassome)) {\n unset($hassome[SITEID]);\n }\n\n if (!empty($hassome)) {\n return true;\n }\n\n $systemcontext = context_system::instance();\n if (!$excludesystem && has_capability($capability, $systemcontext, $USER->id, $doanything)) {\n return true;\n }\n\n return false;\n}", "private function _isAllowed()\r\n {\r\n $req = $this->app->request();\r\n $resource = strtoupper($req->getMethod()) . $req->getResourceUri() ;\r\n return in_array($resource, $this->config['allowed_resources']);\r\n }", "public function isApiEnabled()\n {\n return (Mage::getStoreConfig('smsnotifier/main_conf/active')==0) ? 0 : 1;\n\n }", "private function isAllowed() {\n $allowed = array(\n \"rss\" => array(\"feed\"),\n \"torrent\" => array(\"download\"),\n \"user\" => array(\"login\", \"register\", \"confirm\", \"recover\", \"invite\")\n );\n if (!isset($allowed[$this->data['url']['application']]))\n return false;\n if (in_array($this->data['url']['action'], $allowed[$this->data['url']['application']]))\n return true;\n else\n return false;\n }", "public function checkAllowed() {\r\n\t\t// if option is not active return true!\r\n\t\tif (Mage::getStoreConfig('b2bprofessional/generalsettings/activecustomers')) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\r\n\t\t$iUserStoreId\t\t= Mage::getSingleton('customer/session')->getCustomer()->getStore()->getGroupID();\r\n\t\t$iCurrentStoreId\t= Mage::app()->getStore()->getGroupID();\r\n\r\n\t\tif ($iUserStoreId == $iCurrentStoreId) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t}", "function theme_haarlem_is_extranet() {\n\n\tstatic $result;\n\t\n\tif (isset($result)) {\n\t\treturn $result;\n\t}\n\t\n\t$result = false;\n\tif (elgg_get_plugin_setting('is_extranet', 'theme_haarlem_intranet') == 'yes') {\n\t\t$result = true;\n\t}\n\t\n\treturn $result;\n}", "public static function allowServerStatus()\n\t{\n\t\treturn MHTTPD::$config['Admin']['allow_server_status'];\n\t}", "public function checkInServerList()\n {\n $serverList = preg_split('/\\r\\n|[\\r\\n]/', ConfPPM::getConf('server_list'));\n $myIP = array();\n $myIP[] = isset($_SERVER['HTTP_X_FORWARDED_FOR']) ? $_SERVER['HTTP_X_FORWARDED_FOR'] : '127.0.0.1';\n $myIP[] = isset($_SERVER['HTTP_CF_CONNECTING_IP']) ? $_SERVER['HTTP_CF_CONNECTING_IP'] : '127.0.0.1';\n $myIP[] = isset($_SERVER['HTTP_X_REAL_IP']) ? $_SERVER['HTTP_X_REAL_IP'] : '127.0.0.1';\n $myIP[] = isset($_SERVER['REMOTE_ADDR']) ? $_SERVER['REMOTE_ADDR'] : '127.0.0.1';\n $myIP[] = isset($_SERVER['GEOIP_ADDR']) ? $_SERVER['GEOIP_ADDR'] : '127.0.0.1';\n if (empty(array_intersect($serverList, $myIP))) {\n return false;\n } else {\n return true;\n }\n }", "public function itsec_admin_init_multisite() {\n\n\t\tif ( isset( $_POST['itsec_online_files'] ) ) {\n\n\t\t\tif ( ! wp_verify_nonce( $_POST['_wpnonce'], 'security_page_toplevel_page_itsec_settings-options' ) ) {\n\t\t\t\tdie( __( 'Security error!', 'it-l10n-ithemes-security-pro' ) );\n\t\t\t}\n\n\t\t\tupdate_site_option( 'itsec_online_files', $_POST['itsec_online_files'] ); //we must manually save network options\n\n\t\t}\n\n\t}", "public static function get_allowed_on_network()\n {\n }", "function ajan_is_multiblog_mode() {\n\n\t// Setup some default values\n\t$retval = false;\n\t$is_multisite = is_multisite();\n\t$network_active = ajan_is_network_activated();\n\t$is_multiblog = defined( 'AJAN_ENABLE_MULTIBLOG' ) && AJAN_ENABLE_MULTIBLOG;\n\n\t// Multisite, Network Activated, and Specifically Multiblog\n\tif ( $is_multisite && $network_active && $is_multiblog ) {\n\t\t$retval = true;\n\n\t// Multisite, but not network activated\n\t} elseif ( $is_multisite && ! $network_active ) {\n\t\t$retval = true;\n\t}\n\n\treturn apply_filters( 'ajan_is_multiblog_mode', $retval );\n}", "protected function _isAllowed()\n {\n return Mage::getSingleton('admin/session')->isAllowed('drugento_countryorder/country');\n }", "protected function _isAllowed()\n {\n\t$session = Mage::getSingleton('admin/session');\n return ($session->isAllowed('iqnomy') || $session->isAllowed('system/iqnomy'));\n }", "public static function detectProductionMode()\n\t{\n\t\t$addrs = array();\n\t\tif (PHP_SAPI === 'cli') {\n\t\t\t$addrs[] = getHostByName(php_uname('n'));\n\t\t} else {\n\t\t\tif (!isset($_SERVER['SERVER_ADDR']) && !isset($_SERVER['LOCAL_ADDR'])) {\n\t\t\t\treturn TRUE;\n\t\t\t}\n\t\t\tif (isset($_SERVER['HTTP_X_FORWARDED_FOR'])) { // proxy server detected\n\t\t\t\t$addrs = preg_split('#,\\s*#', $_SERVER['HTTP_X_FORWARDED_FOR']);\n\t\t\t}\n\t\t\tif (isset($_SERVER['REMOTE_ADDR'])) {\n\t\t\t\t$addrs[] = $_SERVER['REMOTE_ADDR'];\n\t\t\t}\n\t\t\t$addrs[] = isset($_SERVER['SERVER_ADDR']) ? $_SERVER['SERVER_ADDR'] : $_SERVER['LOCAL_ADDR'];\n\t\t}\n\n\t\tforeach ($addrs as $addr) {\n\t\t\t$oct = explode('.', $addr);\n\t\t\t// 10.0.0.0/8 Private network\n\t\t\t// 127.0.0.0/8 Loopback\n\t\t\t// 169.254.0.0/16 & ::1 Link-Local\n\t\t\t// 172.16.0.0/12 Private network\n\t\t\t// 192.168.0.0/16 Private network\n\t\t\tif ($addr !== '::1' && (count($oct) !== 4 || ($oct[0] !== '10' && $oct[0] !== '127' && ($oct[0] !== '172' || $oct[1] < 16 || $oct[1] > 31)\n\t\t\t\t&& ($oct[0] !== '169' || $oct[1] !== '254') && ($oct[0] !== '192' || $oct[1] !== '168')))\n\t\t\t) {\n\t\t\t\treturn TRUE;\n\t\t\t}\n\t\t}\n\t\treturn FALSE;\n\t}", "public function isProvisioned() {\n\t\tif(is_file($this->sites_available_path . $this->sitename)){\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public static function isLocalAccess() {\r\n $my_ips = array(\r\n '188.254.173.58', // J\r\n '192.241.136.146', // js\r\n '192.241.147.53', // zeus\r\n );\r\n\r\n return empty($_SERVER['REMOTE_ADDR'])\r\n || preg_match('#^(127\\.0\\.0\\.1|192\\.168\\.[0-2]\\.)#si', $_SERVER['REMOTE_ADDR'])\r\n || in_array($_SERVER['REMOTE_ADDR'], $my_ips);\r\n }", "function is_user_option_local($key, $user_id = 0, $blog_id = 0)\n {\n }", "protected function _isAllowed()\n {\n \treturn true;\n }", "public function can_do_default() {\n $context = context_system::instance();\n return has_capability('local/elisprogram:manage', $context);\n }", "public function is_test_environment() {\n\n if(empty($this->production_site_url))\n return true;\n else\n return get_site_url() === $this->production_site_url ? false : true;\n }", "function the_champ_social_login_enabled(){\r\n\tglobal $theChampLoginOptions;\r\n\tif(isset($theChampLoginOptions['enable']) && $theChampLoginOptions['enable'] == 1){\r\n\t\treturn true;\r\n\t}else{\r\n\t\treturn false;\r\n\t}\r\n}", "protected function _isAllowed()\n {\n return Mage::getSingleton('admin/session')->isAllowed('bs_material/bs_handover/handovertwo');\n }", "public function isEnabledInSystem()\r\n\t{\r\n\t\t// Get global vars\r\n\t\tglobal $realtime_webservice_global_enabled;\r\n\t\t// If both vars have a value, then it IS enabled\r\n\t\treturn $realtime_webservice_global_enabled;\r\n\t}", "static function is_requested()\n {\n $retval = FALSE;\n if (self::is_requested_page()) {\n $retval = self::is_requested_page();\n } elseif (self::is_requested_post_type()) {\n $retval = self::is_requested_post_type();\n }\n return apply_filters('is_ngg_admin_page', $retval);\n }", "public function canHandleCurrentUrl() {}" ]
[ "0.7262101", "0.70172584", "0.69088966", "0.6827712", "0.6740569", "0.67308456", "0.6609747", "0.65630555", "0.6554143", "0.65285754", "0.64625573", "0.64503735", "0.6425157", "0.6411872", "0.6373264", "0.6331928", "0.6324281", "0.6238157", "0.6234666", "0.6218275", "0.6187316", "0.61800605", "0.6151948", "0.61383975", "0.6130515", "0.61035156", "0.6100028", "0.6025947", "0.6018042", "0.60133106", "0.60051435", "0.5996763", "0.59758365", "0.59404236", "0.5935066", "0.5928186", "0.5923997", "0.5916838", "0.5914313", "0.5902177", "0.58791304", "0.5876977", "0.5855079", "0.5853415", "0.5849259", "0.5838341", "0.58350044", "0.5822071", "0.5809613", "0.5786153", "0.5781926", "0.578159", "0.57801485", "0.5779831", "0.5779355", "0.5775872", "0.57692856", "0.57692575", "0.57544935", "0.57487845", "0.57464474", "0.57388645", "0.57385355", "0.57339853", "0.5732719", "0.57302934", "0.5721489", "0.5694704", "0.5691454", "0.56815606", "0.5676305", "0.56622607", "0.5658633", "0.5649429", "0.56481266", "0.56309503", "0.5625827", "0.56117004", "0.5607991", "0.5605652", "0.56054544", "0.5603246", "0.5603195", "0.5601386", "0.5587853", "0.5577479", "0.5575467", "0.5569425", "0.556908", "0.55684805", "0.5561696", "0.55607456", "0.55604714", "0.556031", "0.55602914", "0.5558308", "0.55579007", "0.5547432", "0.55442894", "0.55427116", "0.5541385" ]
0.0
-1